Skip to content

Commit

Permalink
Merge pull request #2 from Demetory/develop
Browse files Browse the repository at this point in the history
Package update
  • Loading branch information
Demetory committed Jan 25, 2023
2 parents f91d749 + bfa52f6 commit 2f5fe6a
Show file tree
Hide file tree
Showing 11 changed files with 431 additions and 271 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

- Full configured and ready
- No complex || heavy dependencies
- Google Lighthouse Reports are 100% in green zone
- Atomic Design Patter
- Pre-configured HTML index page (including SEO-metatags and No-Script section)
- Prepared public folder (icons, robots.txt, htaccess, humans.txt, etc)
Expand All @@ -25,13 +26,14 @@
<br/>
<br/>
![image](/public/cover.jpg)
![image](/public/images/lighthouse.png)

<br/><br/>

## Requirements

- [Node.js](https://nodejs.org/en/): >= 16.11.0
- [npm](https://www.npmjs.com/): >= 6.32.4
- [Node.js](https://nodejs.org/en/): >= 16.17.0
- [npm](https://www.npmjs.com/): >= 9.2.0
<br/><br/>

## Recommended IDE
Expand Down
652 changes: 402 additions & 250 deletions package-lock.json

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
{
"name": "dim-vue3-template",
"version": "0.0.1",
"description": "Vue3 Starter Template",
"author": "Demetory",
"version": "0.0.3",
"engines": {
"node": ">= 16.11.0",
"npm": ">= 6.32.4"
"node": ">= 16.17.0",
"npm": ">= 9.2.0"
},
"browserslist": [
"last 10 Chrome versions",
"last 10 Firefox versions",
"last 4 Edge versions",
"last 7 Safari versions",
"last 8 Android versions",
"last 8 ChromeAndroid versions",
"last 8 FirefoxAndroid versions",
"last 10 iOS versions",
"last 5 Opera versions"
],
"scripts": {
"dev": "vite",
"build": "run-p type-check build-only",
Expand Down
2 changes: 1 addition & 1 deletion public/humans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Demetrey <demetrey.ru>

/* SITE */
Last update: 2022/11/24
Last update: 2023/01/25
Standards: HTML5, CSS3/SCSS, TypeScript, Script Setup SFC
Components: Vite3, Vue3, Pinia, ESlint, Prettier, VueUse, Axios
Software: VSCode
Binary file added public/images/lighthouse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/scss/_vars/_var.colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $font-selection: #fff;
$font-grey: #dbdbdb;

// Links
$link-main: #00bd6f;
$link-main: #00663c;
$link-main-hover: #3f3f46;
$link-main-active: #000;

Expand Down
2 changes: 1 addition & 1 deletion src/components/atom/AtomCube.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const edges = [
:key="`edge-${index}`"
:class="['cube-edge', `cube-${edge.name}`, `cube-${edge.className}`]"
>
<img alt="Dim Vue 3 Template" :src="useImage(edge.img)" />
<img alt="Dim Vue 3 Template" :src="useImage(edge.img)" width="100" height="100" />
</span>
</div>
</router-link>
Expand Down
4 changes: 1 addition & 3 deletions src/components/molecule/MoleculeCopyright.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import { computed } from "vue";
// Modules
import { useExamplePiniaStore } from "@/stores/examplePinia";
import { useDateTZ, useDateToRoman } from "@/composables/useDate";
// Components
import AtomLink from "@/components/atom/AtomLink.vue";
// Composables
import { useDateTZ, useDateToRoman } from "@/composables/useDate";
// Data
const examplePiniaStore = useExamplePiniaStore();
const date: Date = new Date();
Expand Down
6 changes: 4 additions & 2 deletions src/composables/useDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ function useDateToRoman(num: number) {
"IX",
];

// @ts-expect-error: wrong type info
while (iterations--) result = (key[+digits.pop() + iterations * 10] || "") + result;
while (iterations--) {
const digit: string | undefined = digits!.pop();
result = (key[+digit! + iterations * 10] || "") + result;
}

return Array(+digits.join("") + 1).join("M") + result;
}
Expand Down
2 changes: 0 additions & 2 deletions src/views/ViewExamples.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup lang="ts">
// Modules
// Components
import OrganismExampleAxios from "@/components/organism/OrganismExampleAxios.vue";
import OrganismExamplePinia from "@/components/organism/OrganismExamplePinia.vue";
Expand Down
7 changes: 1 addition & 6 deletions tsconfig.config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"extends": "@vue/tsconfig/tsconfig.node.json",
"include": [
"vite.config.*",
"vitest.config.*",
"cypress.config.*",
"playwright.config.*"
],
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"],
"compilerOptions": {
"composite": true,
"types": ["node"]
Expand Down

0 comments on commit 2f5fe6a

Please sign in to comment.