This commit is contained in:
Nukeap committed 2025-02-05 14:07:14 +03:00
1 parent 59a41b5a12
commit be64f519b5
6 files changed
+54 -31

No files matched your search

+2 -1
View File
@@ -8,4 +8,5 @@ env/
.vscode/ .vscode/
/docs/.vitepress/ /docs/.vitepress/
/docs/src /docs/src
/node_modules/ /node_modules/
/.husky/
File renamed without changes.
+21
View File
@@ -4,6 +4,10 @@
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"hasInstallScript": true,
"dependencies": {
"husky": "^9.1.7"
},
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.19.0", "@eslint/js": "^9.19.0",
"eslint": "^9.19.0", "eslint": "^9.19.0",
@@ -11,6 +15,7 @@
"eslint-plugin-prettier": "^5.2.3", "eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-vue": "^9.32.0", "eslint-plugin-vue": "^9.32.0",
"globals": "^15.14.0", "globals": "^15.14.0",
"husky": "^8.0.0",
"lint-staged": "^15.4.3", "lint-staged": "^15.4.3",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"vitepress": "^1.6.3" "vitepress": "^1.6.3"
@@ -2717,6 +2722,22 @@
"node": ">=16.17.0" "node": ">=16.17.0"
} }
}, },
"node_modules/husky": {
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
"dev": true,
"license": "MIT",
"bin": {
"husky": "lib/bin.js"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/ignore": { "node_modules/ignore": {
"version": "5.3.2", "version": "5.3.2",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+8 -3
View File
@@ -4,8 +4,9 @@
"docs:build": "vitepress build docs", "docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs", "docs:preview": "vitepress preview docs",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"postinstall": "git config core.hooksPath .git-hooks", "postinstall": "npx husky-init && xcopy /E /I /Y sys\\hooks\\* .husky\\",
"lint-staged": "lint-staged" "lint-staged": "lint-staged",
"prepare": "husky install"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.19.0", "@eslint/js": "^9.19.0",
@@ -16,12 +17,16 @@
"globals": "^15.14.0", "globals": "^15.14.0",
"lint-staged": "^15.4.3", "lint-staged": "^15.4.3",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"vitepress": "^1.6.3" "vitepress": "^1.6.3",
"husky": "^8.0.0"
}, },
"lint-staged": { "lint-staged": {
"*.{js,ts,vue}": [ "*.{js,ts,vue}": [
"prettier --write", "prettier --write",
"eslint --fix" "eslint --fix"
] ]
},
"dependencies": {
"husky": "^9.1.7"
} }
} }
+20 -27
View File
@@ -2,51 +2,44 @@
<router-view /> <router-view />
</template> </template>
<script setup > <script setup>
import {useAccountStore} from '@/store/AccountStore' import { useAccountStore } from '@/store/AccountStore';
const accountStore = useAccountStore() const accountStore = useAccountStore();
accountStore.setUser(accountStore.getuserFromStorage())
accountStore.setUser(accountStore.getuserFromStorage());
</script> </script>
<style> <style>
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 1px; width: 1px;
height: 6px; height: 6px;
} }
/* Track */ /* Track */
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
-webkit-border-radius: 6px;
-webkit-border-radius: 6px; border-radius: 6px;
border-radius: 6px;
} }
/* Handle */ /* Handle */
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
-webkit-border-radius: 6px; -webkit-border-radius: 6px;
border-radius: 6px; border-radius: 6px;
background: rgb(var(--v-theme-scrollbar)) background: rgb(var(--v-theme-scrollbar));
} }
::-webkit-scrollbar-thumb:window-inactive { ::-webkit-scrollbar-thumb:window-inactive {
background: rgb(var(--v-theme-scrollbar)) background: rgb(var(--v-theme-scrollbar));
} }
.bggrad { .bggrad {
background: linear-gradient(to top right, rgba(19,84,122,.8), rgba(128,208,199,.8)); background: linear-gradient(to top right, rgba(19, 84, 122, 0.8), rgba(128, 208, 199, 0.8));
} }
.bgCard { .bgCard {
/* #ffffff6b #ffffff8c*/ /* #ffffff6b #ffffff8c*/
background: #ffffff38 ; background: #ffffff38;
} }
.bgText { .bgText {
background: #ffffffb0; background: #ffffffb0;
line-height: 2.1rem!important; line-height: 2.1rem !important;
} }
.gap { .gap {
@@ -54,11 +47,11 @@ import {useAccountStore} from '@/store/AccountStore'
} }
.w100 { .w100 {
max-width: 100%!important max-width: 100% !important;
} }
.bottom-alert { .bottom-alert {
bottom: 10px; bottom: 10px;
left: 40%; left: 40%;
} }
</style> </style>
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
npm run lint-staged