build(projects): update deps, add prettier format command

This commit is contained in:
Soybean 2023-03-12 22:45:39 +08:00
parent cc13fcc8aa
commit 36e5feac98
14 changed files with 906 additions and 2159 deletions

View File

@ -1,11 +1,17 @@
module.exports = { module.exports = {
extends: ['soybeanjs-vue'], extends: ['soybeanjs/vue'],
overrides: [ overrides: [
{ {
files: ['./scripts/*.ts'], files: ['./scripts/*.ts'],
rules: { rules: {
'no-unused-expressions': 'off' 'no-unused-expressions': 'off'
} }
},
{
files: ['*.vue'],
rules: {
'no-undef': 'off' // use tsc to check the ts code of the vue
}
} }
], ],
settings: { settings: {

View File

@ -1,6 +1,6 @@
name: Bug提交 name: Bug提交
description: 在使用软件或功能的过程中遇到了错误 description: 在使用软件或功能的过程中遇到了错误
title: '[Bug]: ' title: "[Bug]: "
labels: [bug?] labels: [bug?]
body: body:

View File

@ -2,7 +2,7 @@ name: Release
on: on:
push: push:
tags: tags:
- 'v*.**' - "v*.**"
permissions: permissions:
contents: write contents: write

View File

@ -19,7 +19,6 @@
"naumovs.color-highlight", "naumovs.color-highlight",
"pkief.material-icon-theme", "pkief.material-icon-theme",
"sdras.vue-vscode-snippets", "sdras.vue-vscode-snippets",
"steoates.autoimport",
"vue.volar", "vue.volar",
"vue.vscode-typescript-vue-plugin", "vue.vscode-typescript-vue-plugin",
"whtouche.vscode-js-console-utils", "whtouche.vscode-js-console-utils",

15
.vscode/settings.json vendored
View File

@ -9,20 +9,7 @@
"strings": true "strings": true
}, },
"editor.tabSize": 2, "editor.tabSize": 2,
"eslint.validate": [ "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "json"],
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"json",
"jsonc",
"json5",
"yaml",
"yml",
"markdown"
],
"files.associations": { "files.associations": {
"*.env.*": "dotenv" "*.env.*": "dotenv"
}, },

View File

@ -44,7 +44,8 @@
"build:vercel": "cross-env VITE_HASH_ROUTE=Y VITE_VERCEL=Y vite build", "build:vercel": "cross-env VITE_HASH_ROUTE=Y VITE_VERCEL=Y vite build",
"preview": "vite preview", "preview": "vite preview",
"typecheck": "vue-tsc --noEmit --skipLibCheck", "typecheck": "vue-tsc --noEmit --skipLibCheck",
"lint": "eslint . --fix", "lint": "eslint . --fix --ext .js,.jsx,.mjs,.json,.ts,.tsx,.vue",
"format": "soy prettier-format",
"commit": "soy git-commit", "commit": "soy git-commit",
"cleanup": "soy cleanup", "cleanup": "soy cleanup",
"update-pkg": "soy update-pkg", "update-pkg": "soy update-pkg",
@ -52,7 +53,7 @@
"logo": "tsx ./scripts/logo.ts", "logo": "tsx ./scripts/logo.ts",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"release": "standard-version", "release": "standard-version",
"prepare": "simple-git-hooks" "prepare": "soy init-git-hooks"
}, },
"dependencies": { "dependencies": {
"@antv/data-set": "^0.11.8", "@antv/data-set": "^0.11.8",
@ -60,7 +61,7 @@
"@better-scroll/core": "^2.5.0", "@better-scroll/core": "^2.5.0",
"@soybeanjs/vue-admin-layout": "^1.1.1", "@soybeanjs/vue-admin-layout": "^1.1.1",
"@soybeanjs/vue-admin-tab": "^1.0.5", "@soybeanjs/vue-admin-tab": "^1.0.5",
"@vueuse/core": "^9.12.0", "@vueuse/core": "^9.13.0",
"axios": "0.27.2", "axios": "0.27.2",
"clipboard": "^2.0.11", "clipboard": "^2.0.11",
"colord": "^2.9.3", "colord": "^2.9.3",
@ -70,11 +71,11 @@
"form-data": "^4.0.0", "form-data": "^4.0.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"naive-ui": "2.34.3", "naive-ui": "2.34.3",
"pinia": "^2.0.30", "pinia": "^2.0.33",
"print-js": "^1.6.0", "print-js": "^1.6.0",
"qs": "^6.11.0", "qs": "^6.11.1",
"swiper": "^9.0.4", "swiper": "^9.1.0",
"ua-parser-js": "^1.0.33", "ua-parser-js": "^1.0.34",
"vditor": "^3.9.0", "vditor": "^3.9.0",
"vue": "3.2.47", "vue": "3.2.47",
"vue-i18n": "^9.2.2", "vue-i18n": "^9.2.2",
@ -84,44 +85,44 @@
"xgplayer": "^2.32.2" "xgplayer": "^2.32.2"
}, },
"devDependencies": { "devDependencies": {
"@amap/amap-jsapi-types": "^0.0.10", "@amap/amap-jsapi-types": "^0.0.13",
"@iconify/json": "^2.2.20", "@iconify/json": "^2.2.33",
"@iconify/vue": "^4.1.0", "@iconify/vue": "^4.1.0",
"@soybeanjs/cli": "^0.1.6", "@soybeanjs/cli": "^0.1.7",
"@soybeanjs/vite-plugin-vue-page-route": "^0.0.5", "@soybeanjs/vite-plugin-vue-page-route": "^0.0.5",
"@types/bmapgl": "^0.0.5", "@types/bmapgl": "^0.0.5",
"@types/crypto-js": "^4.1.1", "@types/crypto-js": "^4.1.1",
"@types/node": "18.13.0", "@types/node": "18.15.0",
"@types/qs": "^6.9.7", "@types/qs": "^6.9.7",
"@types/ua-parser-js": "^0.7.36", "@types/ua-parser-js": "^0.7.36",
"@unocss/preset-uno": "^0.49.4", "@unocss/preset-uno": "^0.50.4",
"@unocss/transformer-directives": "^0.49.4", "@unocss/transformer-directives": "^0.50.4",
"@unocss/vite": "^0.49.4", "@unocss/vite": "^0.50.4",
"@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.0", "@vitejs/plugin-vue-jsx": "^3.0.0",
"conventional-changelog": "^3.1.25", "conventional-changelog": "^3.1.25",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"eslint": "^8.34.0", "eslint": "^8.36.0",
"eslint-config-soybeanjs-vue": "^0.2.3", "eslint-config-soybeanjs": "^0.3.1",
"lint-staged": "12.5.0", "lint-staged": "12.5.0",
"mockjs": "^1.1.0", "mockjs": "^1.1.0",
"rollup-plugin-visualizer": "^5.9.0", "rollup-plugin-visualizer": "^5.9.0",
"sass": "^1.58.0", "sass": "^1.59.2",
"simple-git-hooks": "^2.8.1", "simple-git-hooks": "^2.8.1",
"standard-version": "^9.5.0", "standard-version": "^9.5.0",
"tsx": "^3.12.3", "tsx": "^3.12.4",
"typescript": "4.9.5", "typescript": "4.9.5",
"unplugin-icons": "^0.15.2", "unplugin-icons": "^0.15.3",
"unplugin-vue-components": "0.23.0", "unplugin-vue-components": "0.24.1",
"unplugin-vue-macros": "1.6.4", "unplugin-vue-macros": "1.6.4",
"vite": "^4.1.1", "vite": "^4.1.4",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-html": "^3.2.0", "vite-plugin-html": "^3.2.0",
"vite-plugin-mock": "^2.9.6", "vite-plugin-mock": "^2.9.6",
"vite-plugin-progress": "^0.0.6", "vite-plugin-progress": "^0.0.6",
"vite-plugin-pwa": "^0.14.4", "vite-plugin-pwa": "^0.14.4",
"vite-plugin-svg-icons": "^2.0.1", "vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "^1.0.24" "vue-tsc": "^1.2.0"
}, },
"pnpm": { "pnpm": {
"patchedDependencies": { "patchedDependencies": {
@ -133,6 +134,6 @@
"pre-commit": "pnpm typecheck && pnpm lint-staged" "pre-commit": "pnpm typecheck && pnpm lint-staged"
}, },
"lint-staged": { "lint-staged": {
"*": "eslint . --fix" "*.{js,jsx,mjs,json,ts,tsx,vue}": "eslint . --fix"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,9 @@
@import './transition.css'; @import "./transition.css";
@import './reset.css'; @import "./reset.css";
@import './scrollbar.css'; @import "./scrollbar.css";
html, body, #app { html,
body,
#app {
height: 100%; height: 100%;
} }

View File

@ -24,7 +24,9 @@ html {
-webkit-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */
-moz-tab-size: 4; /* 3 */ -moz-tab-size: 4; /* 3 */
tab-size: 4; /* 3 */ tab-size: 4; /* 3 */
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
} }
/* /*
@ -98,7 +100,8 @@ code,
kbd, kbd,
samp, samp,
pre { pre {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace; /* 1 */
font-size: 1em; /* 2 */ font-size: 1em; /* 2 */
} }
@ -176,9 +179,9 @@ select {
*/ */
button, button,
[type='button'], [type="button"],
[type='reset'], [type="reset"],
[type='submit'] { [type="submit"] {
-webkit-appearance: button; /* 1 */ -webkit-appearance: button; /* 1 */
/* background-color: transparent; 2 */ /* background-color: transparent; 2 */
background-image: none; /* 2 */ background-image: none; /* 2 */
@ -222,7 +225,7 @@ Correct the cursor style of increment and decrement buttons in Safari.
2. Correct the outline style in Safari. 2. Correct the outline style in Safari.
*/ */
[type='search'] { [type="search"] {
-webkit-appearance: textfield; /* 1 */ -webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */ outline-offset: -2px; /* 2 */
} }

View File

@ -24,7 +24,6 @@ html::-webkit-scrollbar-track-piece {
border-radius: 0; border-radius: 0;
} }
html.dark { html.dark {
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: #555 transparent; scrollbar-color: #555 transparent;

View File

@ -1 +1 @@
@import './scrollbar.scss'; @import "./scrollbar.scss";

View File

@ -1,4 +1,4 @@
@mixin scrollbar($size:8px, $color:#d9d9d9) { @mixin scrollbar($size: 8px, $color: #d9d9d9) {
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background-color: $color; background-color: $color;
border-radius: $size; border-radius: $size;