From e379d5e9bfd598f1c1cea269a4a2546cb134529b Mon Sep 17 00:00:00 2001 From: Kirk Lin Date: Sat, 30 Dec 2023 22:27:16 +0800 Subject: [PATCH] style: fix style --- .github/CODE_OF_CONDUCT.md | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 1 - README.md | 3 - README.zh-CN.md | 3 - eslint.config.js | 8 +- netlify.toml | 18 ++-- package.json | 2 +- pnpm-lock.yaml | 83 ++----------------- src/components/Icon/UnoCSSIconButton.vue | 2 +- src/components/README.md | 1 - src/layouts/Footer/index.vue | 6 +- .../Navbar/components/ThemeChange/index.vue | 2 +- .../Navbar/components/ThemeChange/types.ts | 6 +- 13 files changed, 30 insertions(+), 107 deletions(-) diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index 00c616c..7c14047 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -55,7 +55,7 @@ further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team. +reported by contacting the project team. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 23fa589..85468b0 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -27,7 +27,6 @@ _Put an `x` in the boxes that apply_ ## Linked Issues - ## Further comments diff --git a/README.md b/README.md index fb5b2d1..dc4a3dd 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,6 @@ Mocking up web app with Boot-Vue (speed)
### Performance Boot-Vue Outstanding performance - ## directory ``` @@ -120,7 +119,6 @@ pnpm run build And you will see the generated file in `dist` that ready to be served. - ### Deploy on Netlify Go to [Netlify](https://app.netlify.com/start) and select your clone, `OK` along the way, and your App will be live in a minute. @@ -138,4 +136,3 @@ Run the image and specify port mapping with the `-p` flag. ```bash docker run --rm -it -p 8080:80 viteboot:latest ``` - diff --git a/README.zh-CN.md b/README.zh-CN.md index 6b39990..40e1ba8 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -36,7 +36,6 @@ ### 性能 Boot-Vue Outstanding performance - ## 项目结构 ``` @@ -116,7 +115,6 @@ pnpm run build 然后你会看到用于发布的 `dist` 文件夹被生成。 - ### 部署到 Netlify 前往 [Netlify](https://app.netlify.com/start) 并选择你的仓库, 一路 `OK` 下去,稍等一下后,你的应用将被创建. @@ -134,4 +132,3 @@ docker buildx build . -t viteboot:latest ```bash docker run --rm -it -p 8080:80 viteboot:latest ``` - diff --git a/eslint.config.js b/eslint.config.js index 5b6dda0..d359b9d 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,7 +1,5 @@ import kirklin from "@kirklin/eslint-config"; -import unocss from "@unocss/eslint-plugin"; -export default kirklin( - {}, - unocss.configs.flat, -); +export default kirklin({ + unocss: true, +}); diff --git a/netlify.toml b/netlify.toml index bd06a07..55a2f3d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,12 +1,12 @@ -[build.environment] - NPM_FLAGS = "--version" - NODE_VERSION = "16" - [build] - publish = "dist" - command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build" +publish = "dist" +command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build" + +[build.environment] +NPM_FLAGS = "--version" +NODE_VERSION = "16" [[redirects]] - from = "/*" - to = "/index.html" - status = 200 +from = "/*" +to = "/index.html" +status = 200 diff --git a/package.json b/package.json index 04be789..99226e1 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@iconify-json/mdi": "^1.1.63", "@iconify-json/tabler": "^1.1.102", "@intlify/unplugin-vue-i18n": "^2.0.0", - "@kirklin/eslint-config": "^1.1.0", + "@kirklin/eslint-config": "^1.1.1", "@types/node": "^20.10.6", "@types/nprogress": "^0.2.3", "@unocss/eslint-config": "^0.58.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5c7f70e..f6a7a5f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -53,8 +53,8 @@ devDependencies: specifier: ^2.0.0 version: 2.0.0(rollup@2.79.1)(vue-i18n@9.8.0) '@kirklin/eslint-config': - specifier: ^1.1.0 - version: 1.1.0(@vue/compiler-sfc@3.4.3)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.1.0) + specifier: ^1.1.1 + version: 1.1.1(@vue/compiler-sfc@3.4.3)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.1.0) '@types/node': specifier: ^20.10.6 version: 20.10.6 @@ -2253,8 +2253,8 @@ packages: '@jridgewell/resolve-uri': 3.1.0 '@jridgewell/sourcemap-codec': 1.4.14 - /@kirklin/eslint-config@1.1.0(@vue/compiler-sfc@3.4.3)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.1.0): - resolution: {integrity: sha512-T2xcSgbtg6H7Zt9r92KvCjBx/knFR0pfMzRFFkgDeTPOIXS0E3VeAkTGKWCYrLA9l1K0lOx75xJadHpCOtzrDQ==} + /@kirklin/eslint-config@1.1.1(@vue/compiler-sfc@3.4.3)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.1.0): + resolution: {integrity: sha512-fMKxncrh90gpJWB0Md8yUSpUVPA0dwKnN/3x709IqxWS4PSp+oi8jcjwIOdgrHeWQZ6QUBVHvUxfv4R6ASp7+Q==} hasBin: true peerDependencies: '@unocss/eslint-plugin': '>=0.50.0' @@ -2595,7 +2595,7 @@ packages: peerDependencies: eslint: '*' dependencies: - '@typescript-eslint/utils': 6.13.2(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@5.3.3) eslint: 8.56.0 transitivePeerDependencies: - supports-color @@ -2609,7 +2609,7 @@ packages: eslint: '>=8.40.0' dependencies: '@stylistic/eslint-plugin-js': 1.5.1(eslint@8.56.0) - '@typescript-eslint/utils': 6.13.2(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@5.3.3) eslint: 8.56.0 transitivePeerDependencies: - supports-color @@ -2758,14 +2758,6 @@ packages: - supports-color dev: true - /@typescript-eslint/scope-manager@6.13.2: - resolution: {integrity: sha512-CXQA0xo7z6x13FeDYCgBkjWzNqzBn8RXaE3QVQVIUm74fWJLkJkaHmHdKStrxQllGh6Q4eUGyNpMe0b1hMkXFA==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.13.2 - '@typescript-eslint/visitor-keys': 6.13.2 - dev: true - /@typescript-eslint/scope-manager@6.16.0: resolution: {integrity: sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==} engines: {node: ^16.0.0 || >=18.0.0} @@ -2794,37 +2786,11 @@ packages: - supports-color dev: true - /@typescript-eslint/types@6.13.2: - resolution: {integrity: sha512-7sxbQ+EMRubQc3wTfTsycgYpSujyVbI1xw+3UMRUcrhSy+pN09y/lWzeKDbvhoqcRbHdc+APLs/PWYi/cisLPg==} - engines: {node: ^16.0.0 || >=18.0.0} - dev: true - /@typescript-eslint/types@6.16.0: resolution: {integrity: sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==} engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/typescript-estree@6.13.2(typescript@5.3.3): - resolution: {integrity: sha512-SuD8YLQv6WHnOEtKv8D6HZUzOub855cfPnPMKvdM/Bh1plv1f7Q/0iFUDLKKlxHcEstQnaUU4QZskgQq74t+3w==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/types': 6.13.2 - '@typescript-eslint/visitor-keys': 6.13.2 - debug: 4.3.4 - globby: 11.1.0 - is-glob: 4.0.3 - semver: 7.5.4 - ts-api-utils: 1.0.1(typescript@5.3.3) - typescript: 5.3.3 - transitivePeerDependencies: - - supports-color - dev: true - /@typescript-eslint/typescript-estree@6.16.0(typescript@5.3.3): resolution: {integrity: sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -2847,25 +2813,6 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@6.13.2(eslint@8.56.0)(typescript@5.3.3): - resolution: {integrity: sha512-b9Ptq4eAZUym4idijCRzl61oPCwwREcfDI8xGk751Vhzig5fFZR9CyzDz4Sp/nxSLBYxUPyh4QdIDqWykFhNmQ==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) - '@types/json-schema': 7.0.12 - '@types/semver': 7.5.0 - '@typescript-eslint/scope-manager': 6.13.2 - '@typescript-eslint/types': 6.13.2 - '@typescript-eslint/typescript-estree': 6.13.2(typescript@5.3.3) - eslint: 8.56.0 - semver: 7.5.4 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - /@typescript-eslint/utils@6.16.0(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -2885,14 +2832,6 @@ packages: - typescript dev: true - /@typescript-eslint/visitor-keys@6.13.2: - resolution: {integrity: sha512-OGznFs0eAQXJsp+xSd6k/O1UbFi/K/L7WjqeRoFE7vadjAF9y0uppXhYNQNEqygjou782maGClOoZwPqF0Drlw==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.13.2 - eslint-visitor-keys: 3.4.3 - dev: true - /@typescript-eslint/visitor-keys@6.16.0: resolution: {integrity: sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -4718,7 +4657,7 @@ packages: builtins: 5.0.1 eslint: 8.56.0 eslint-plugin-es-x: 7.5.0(eslint@8.56.0) - get-tsconfig: 4.7.0 + get-tsconfig: 4.7.2 globals: 13.24.0 ignore: 5.2.4 is-builtin-module: 3.2.1 @@ -4751,7 +4690,7 @@ packages: vue-eslint-parser: optional: true dependencies: - '@typescript-eslint/utils': 6.13.2(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@5.3.3) eslint: 8.56.0 minimatch: 9.0.3 natural-compare-lite: 1.4.0 @@ -5269,12 +5208,6 @@ packages: get-intrinsic: 1.2.2 dev: true - /get-tsconfig@4.7.0: - resolution: {integrity: sha512-pmjiZ7xtB8URYm74PlGJozDNyhvsVLUcpBa8DZBG3bWHwaHa9bPiRpiSfovw+fjhwONSCWKRyk+JQHEGZmMrzw==} - dependencies: - resolve-pkg-maps: 1.0.0 - dev: true - /get-tsconfig@4.7.2: resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==} dependencies: diff --git a/src/components/Icon/UnoCSSIconButton.vue b/src/components/Icon/UnoCSSIconButton.vue index 2034af3..87aaf5b 100644 --- a/src/components/Icon/UnoCSSIconButton.vue +++ b/src/components/Icon/UnoCSSIconButton.vue @@ -1,6 +1,6 @@