Skip to content

Commit

Permalink
wip(server): 添加管理员管理、认证、登录等
Browse files Browse the repository at this point in the history
  • Loading branch information
wsvaio committed Jan 11, 2024
1 parent 63fe164 commit 38b19ec
Show file tree
Hide file tree
Showing 20 changed files with 2,334 additions and 3,022 deletions.
4 changes: 4 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"root": true,
"extends": ["@wsvaio"]
}
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Editor configuration, see http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
}

4 changes: 4 additions & 0 deletions .simple-git-hooks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"pre-commit": "pnpm lint-staged",
"commit-msg": "pnpm commitlint -e"
}
5 changes: 5 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"root": true,
"extends": ["@wsvaio/stylelint-config"],
"ignoreFiles": ["node_modules", "public", "dist", "normalize.css", "* copy*"]
}
19 changes: 10 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.acceptSuggestionOnCommitCharacter": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
"other": "on",
"comments": "on",
"strings": "on"
},
"stylelint.enable": true,
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass", "html"],
"eslint.experimental.useFlatConfig": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
"source.fixAll.stylelint": "explicit",
"source.organizeImports": "never"
},
"less.lint.unknownAtRules": "ignore",
"npm.packageManager": "pnpm",
Expand All @@ -31,8 +32,8 @@
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
},
"editor.inlineSuggest.showToolbar": "always"
"editor.inlineSuggest.showToolbar": "always",



}
25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import wsvaio, { vue } from "@wsvaio/eslint-config";

export default wsvaio(
{
unocss: true,
ignores: [
"node_modules/*",
"public/*",
"dist/*",
"/src/routes/WebVideoCtrl",

"**/* copy*",
"**.auto-import.d.ts",
"**/auto-components.d.ts",

"**/*.js",
],
},
vue,
{
rules: {
'ts/consistent-type-definitions': 'off'
}
}
);
52 changes: 23 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,42 @@
"postinstall": "nuxt prepare"
},
"devDependencies": {
"@iconify/json": "^2.2.144",
"@nuxt/devtools": "latest",
"@iconify/json": "^2.2.167",
"@nuxt/devtools": "^1.0.6",
"@nuxtjs/eslint-module": "^4.1.0",
"@nuxtjs/stylelint-module": "^5.1.0",
"@pinia/nuxt": "^0.5.1",
"@prisma/client": "^5.6.0",
"@prisma/client": "^5.8.0",
"@types/jsonwebtoken": "^9.0.5",
"@types/nodemailer": "^6.4.14",
"@unocss/nuxt": "^0.57.5",
"@vue-macros/reactivity-transform": "^0.4.0",
"@vueuse/core": "^10.6.1",
"@vueuse/nuxt": "^10.6.1",
"@wsvaio/eslint-config": "^0.0.7",
"@wsvaio/pinia-plugin-persist": "^1.0.2",
"@wsvaio/stylelint-config": "^0.0.7",
"@unocss/nuxt": "^0.58.3",
"@vue-macros/reactivity-transform": "^0.4.2",
"@vueuse/core": "^10.7.1",
"@vueuse/nuxt": "^10.7.1",
"@wsvaio/eslint-config": "^1.0.4",
"@wsvaio/pinia-plugin-persist": "^1.0.3",
"@wsvaio/stylelint-config": "^0.0.10",
"colord": "^2.9.3",
"eslint": "^8.53.0",
"eslint": "^8.56.0",
"less": "^4.2.0",
"marked": "^10.0.0",
"md-editor-v3": "^4.8.3",
"nuxt": "^3.8.0",
"marked": "^11.1.1",
"md-editor-v3": "^4.10.0",
"nuxt": "^3.9.1",
"oh-my-live2d": "^0.3.0",
"pinia": "^2.1.7",
"prisma": "^5.6.0",
"stylelint": "^15.11.0",
"prisma": "^5.8.0",
"stylelint": "^16.1.0",
"typed": "10.0.0-beta.2",
"unocss": "^0.57.4",
"vue": "^3.3.6",
"unocss": "^0.58.3",
"vue": "^3.4.8",
"vue-router": "^4.2.5"
},
"eslintConfig": {
"extends": "@wsvaio/eslint-config",
"rules": {
"no-mixed-spaces-and-tabs": "off"
}
},
"stylelint": {
"extends": "@wsvaio/stylelint-config"
},

"dependencies": {
"@types/ua-parser-js": "^0.7.39",
"@wsvaio/utils": "^1.0.19",
"nodemailer": "^6.9.7",
"@wsvaio/utils": "^1.0.22",
"jsonwebtoken": "^9.0.2",
"nodemailer": "^6.9.8",
"ua-parser-js": "^1.0.37"
}
}
Loading

0 comments on commit 38b19ec

Please sign in to comment.