-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
suwo.zhang
committed
Oct 6, 2024
0 parents
commit a7c0784
Showing
333 changed files
with
76,419 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = tab | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 环境变量必须以VITE_开头,否则不会读取 | ||
# 本地环境 | ||
VITE_NODE_ENV = development | ||
|
||
# 标题 | ||
VITE_APP_TITLE = 采集配置 | ||
|
||
# 接口地址 | ||
VITE_APP_API = https://mock.apifox.cn/m1/4021385-0-default/api | ||
|
||
# 接口地址 | ||
VITE_APP_API_BASE = http://localhost:8100 | ||
|
||
# 本地端口 | ||
VITE_APP_PORT = 2800 | ||
|
||
# 是否开启代理 | ||
VITE_APP_PROXY = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 环境变量必须以VITE_开头,否则不会读取 | ||
# 生产环境 | ||
VITE_NODE_ENV = production | ||
|
||
# 标题 | ||
VITE_APP_TITLE = 采集配置 | ||
|
||
# 接口地址 | ||
VITE_APP_API = https://mock.apifox.cn/m1/4021385-0-default/api | ||
|
||
# 接口地址 | ||
VITE_APP_API_BASE = http://localhost:8092 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-prettier'], | ||
rules: { | ||
'vue/multi-word-component-names': [ | ||
'off', | ||
{ | ||
ignores: [], | ||
}, | ||
], | ||
'vue/attributes-order': [ | ||
'error', | ||
{ | ||
order: ['DEFINITION', 'LIST_RENDERING', 'CONDITIONALS', 'RENDER_MODIFIERS', 'GLOBAL', ['UNIQUE', 'SLOT'], 'TWO_WAY_BINDING', 'OTHER_DIRECTIVES', 'OTHER_ATTR', 'EVENTS', 'CONTENT'], | ||
alphabetical: false, | ||
}, | ||
], | ||
'vue/no-unused-vars': ['warn'], | ||
'no-return-await': ['warn'], | ||
'no-multiple-empty-lines': ['warn'], | ||
eqeqeq: ['error', 'always'], | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
endOfLine: 'auto', | ||
}, | ||
], | ||
}, | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
node: true, | ||
'vue/setup-compiler-macros': true, | ||
}, | ||
globals: { | ||
defineOptions: 'writable', | ||
defineProps: 'readonly', | ||
NodeJS: true, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 忽略格式化文件 (根据项目需要自行添加) | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"tabWidth": 2, | ||
"printWidth": 500, | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"bracketSpacing": true, | ||
"semi": false, | ||
"endOfLine": "auto", | ||
"quoteProps": "as-needed", | ||
"useTabs": false, | ||
"extends": ["prettier"], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"arrow-body-style": "off", | ||
"prefer-arrow-callback": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 sakuya | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
原版仓库 [SCUI](https://gitee.com/lolicode/scui) | ||
|
||
1. 本仓库只是将 vue-cli 替换为 vite(vite版本与官网),只做了为适配 vite 的必要修改,其它仍与原版一致(除部分静态资源)。 | ||
2. 和原SCUI不同的一点就是加入了eslint和prettier,stylelint没必要 | ||
|
||
### 使用 yarn | ||
|
||
``` | ||
# 进入项目目录 | ||
cd ./scui-restructure | ||
# 安装依赖 | ||
yarn | ||
# 启动项目(开发模式) | ||
yarn dev | ||
``` | ||
|
||
### 使用 npm | ||
|
||
``` | ||
# 进入项目目录 | ||
cd ./scui-restructure | ||
# 安装依赖 | ||
npm i | ||
# 启动项目(开发模式) | ||
npm run dev | ||
``` | ||
|
||
|
||
### 升级所有依赖 | ||
|
||
``` | ||
你可以使用以下命令来更新工程里面的所有package: | ||
首先,在项目路径下,执行以下命令安装npm-check-updates包: | ||
npm install -g npm-check-updates | ||
然后,用此工具检查过期的packages,它将会列出所有可更新的包: | ||
ncu | ||
如果你想更新所有的包,运行: | ||
ncu -u | ||
这将升级 package.json 文件中所有版本号。现在只需要运行 npm install 来更新你的 node_modules 目录。 | ||
npm install | ||
``` | ||
|
||
### 本次升级项目 | ||
|
||
> 包升级关系 | ||
``` | ||
@element-plus/icons-vue 2.1.0 → 2.3.1 | ||
@tinymce/tinymce-vue 5.0.0 → 5.1.1 | ||
@vitejs/plugin-vue ^4.1.0 → ^4.5.2 | ||
@vue/eslint-config-prettier ^7.0.0 → ^8.0.0 | ||
axios 0.27.2 → 1.6.2 | ||
codemirror 5.65.5 → 5.65.16 | ||
core-js 3.24.1 → 3.34.0 | ||
cropperjs 1.5.12 → 1.6.1 | ||
crypto-js 4.1.1 → 4.2.0 | ||
echarts 5.3.3 → 5.4.3 | ||
element-plus 2.3.0 → 2.4.3 | ||
eslint ^8.5.0 → ^8.55.0 | ||
eslint-plugin-vue ^9.3.0 → ^9.19.2 | ||
pinyin-match ^1.2.2 → ^1.2.5 | ||
prettier ^2.5.1 → ^3.1.1 | ||
sass 1.59.3 → 1.69.5 | ||
sortablejs 1.15.0 → 1.15.1 | ||
terser ^5.15.0 → ^5.26.0 | ||
tinymce 6.1.2 → 6.8.2 | ||
vite ^4.2.0 → ^5.0.7 | ||
vue 3.2.47 → 3.3.11 | ||
vue-i18n 9.2.2 → 9.8.0 | ||
vue-router 4.1.3 → 4.2.5 | ||
vuex 4.0.2 → 4.1.0 | ||
xgplayer 2.31.7 → 3.0.10 | ||
xgplayer-hls 2.5.2 → 3.0.10 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: ['@vue/cli-plugin-babel/preset'], | ||
} |
Oops, something went wrong.