From 48ea68d46f92432248cddb99f653805e3c952487 Mon Sep 17 00:00:00 2001 From: Wisdom Date: Thu, 18 Apr 2024 10:33:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=93=20feat:=20update=20project=20info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 - .env.production | 1 - .gitignore | 2 ++ .stylelintignore | 1 - .stylelintrc.cjs | 70 +++++++++++++++++++++++------------------------ LICENSE | 2 +- guide.md | 6 ---- index.html | 2 +- renovate.json | 6 ---- src/base/index.ts | 2 +- vite.config.ts | 2 +- 11 files changed, 41 insertions(+), 54 deletions(-) delete mode 100644 guide.md delete mode 100644 renovate.json diff --git a/.env.development b/.env.development index 243c9e6..ceaa4f3 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1 @@ -VUE_APP_BASE_API=http://api.test.xxx.xxx.com VITE_BASE_API=http://api.test.xxx.xxx.com/api diff --git a/.env.production b/.env.production index 0ed1e17..dcc5066 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1 @@ -VUE_APP_BASE_API=http://api.test.xxx.xxx.com/api/production VITE_BASE_API=http://api.test.xxx.xxx.com/api/production diff --git a/.gitignore b/.gitignore index d806ffa..393df00 100644 --- a/.gitignore +++ b/.gitignore @@ -9,8 +9,10 @@ /coverage # production +.DS_Store /dist /dist-ssr +temp # misc .DS_Store diff --git a/.stylelintignore b/.stylelintignore index c78eb59..26cd786 100644 --- a/.stylelintignore +++ b/.stylelintignore @@ -1,6 +1,5 @@ node_modules bin -obj *.* !*.vue !*.css diff --git a/.stylelintrc.cjs b/.stylelintrc.cjs index 36b7b18..4501ba1 100644 --- a/.stylelintrc.cjs +++ b/.stylelintrc.cjs @@ -1,63 +1,63 @@ module.exports = { - "extends": [ - "stylelint-config-standard", - "stylelint-config-standard-scss", - "stylelint-config-recommended-vue", - "stylelint-config-recommended-vue/scss" + 'extends': [ + 'stylelint-config-standard', + 'stylelint-config-standard-scss', + 'stylelint-config-recommended-vue', + 'stylelint-config-recommended-vue/scss' ], - "ignoreFiles": ["**/*.js", "**/*.ts"], - "defaultSeverity": "error", - "rules": { - "unit-disallowed-list": [ - "rem", - "pt" + 'ignoreFiles': ['**/*.js', '**/*.ts'], + 'defaultSeverity': 'error', + 'rules': { + 'unit-disallowed-list': [ + 'rem', + 'pt' ], - "no-empty-source": null, - "block-no-empty": null, + 'no-empty-source': null, + 'block-no-empty': null, 'declaration-block-no-duplicate-custom-properties': null, - "font-family-no-missing-generic-family-keyword": null, + 'font-family-no-missing-generic-family-keyword': null, - "selector-class-pattern": "^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$|^Mui.*$|^([a-z][a-z0-9]*)(_[a-z0-9]+)*$", + 'selector-class-pattern': '^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$|^Mui.*$|^([a-z][a-z0-9]*)(_[a-z0-9]+)*$', - "scss/at-mixin-pattern": "^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$|^Mui.*$|^([a-z][a-z0-9]*)(_[a-z0-9]+)*$", - "scss/double-slash-comment-whitespace-inside": "always", - "scss/dollar-variable-pattern": null, + 'scss/at-mixin-pattern': '^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$|^Mui.*$|^([a-z][a-z0-9]*)(_[a-z0-9]+)*$', + 'scss/double-slash-comment-whitespace-inside': 'always', + 'scss/dollar-variable-pattern': null, - "selector-pseudo-class-no-unknown": [ + 'selector-pseudo-class-no-unknown': [ true, { - "ignorePseudoClasses": [ - "export", - "deep" + 'ignorePseudoClasses': [ + 'export', + 'deep' ] } ], - "property-no-unknown": null, - "at-rule-empty-line-before": [ - "always", + 'property-no-unknown': null, + 'at-rule-empty-line-before': [ + 'always', { - "except": ["first-nested", "blockless-after-same-name-blockless"] + 'except': ['first-nested', 'blockless-after-same-name-blockless'] } ], - "custom-property-empty-line-before": [ - "always", + 'custom-property-empty-line-before': [ + 'always', { - "except": ["after-custom-property", "first-nested"] + 'except': ['after-custom-property', 'first-nested'] } ], - "declaration-empty-line-before": [ - "always", + 'declaration-empty-line-before': [ + 'always', { - "except": ["after-declaration", "first-nested"] + 'except': ['after-declaration', 'first-nested'] } ], - "rule-empty-line-before": ["always-multi-line"], + 'rule-empty-line-before': ['always-multi-line'], // 忽视 -webkit-xxxx 等兼容写法 - "property-no-vendor-prefix": [ + 'property-no-vendor-prefix': [ true, { - ignoreProperties: ["box-shadow"] + ignoreProperties: ['box-shadow'] } ] } diff --git a/LICENSE b/LICENSE index 52ad00d..9243c43 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Wisdom +Copyright (c) 2022-PRESENT Wisdom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/guide.md b/guide.md deleted file mode 100644 index 62ed955..0000000 --- a/guide.md +++ /dev/null @@ -1,6 +0,0 @@ -* 安装 naive-ui -* 安装 xicon 库 -```bash -pnpm add @vicons/fluent @vicons/ionicons4 @vicons/ionicons5 @vicons/antd @vicons/material @vicons/fa @vicons/tabler @vicons/carbon -pnpm add @vicons/utils -``` diff --git a/index.html b/index.html index 831dda4..2cb00e0 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Vite Naive Template + Vue3 Tab Demo
diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 228f1c2..0000000 --- a/renovate.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": [ - "config:base" - ], - "pin": false -} diff --git a/src/base/index.ts b/src/base/index.ts index 5fec858..4d6aed2 100644 --- a/src/base/index.ts +++ b/src/base/index.ts @@ -1,3 +1,3 @@ -export const systemTitleEn = 'Vite Naive Template' +export const systemTitleEn = 'Vue3 Tab Demo' export const systemTitleZh = 'NaiveUI Template 项目' // export const systemTitleZh = '' diff --git a/vite.config.ts b/vite.config.ts index 5f9555e..a2118a9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,7 +15,7 @@ const htmlPlugin = () => { transformIndexHtml (html) { return html.replace( /(.*?)<\/title>/, - '<title>Vite Naive Template' + 'Vue3 Tab Demo' ) } }