Skip to content

Commit 05d02f0

Browse files
committed
更新项目
1 parent 8109ebe commit 05d02f0

File tree

109 files changed

+11464
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+11464
-2
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
charset=utf-8
5+
end_of_line=lf
6+
insert_final_newline=true
7+
max_line_length = 100
8+
9+
[*.{yml,yaml,json}]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
[Makefile]
17+
indent_style = tab

.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# port 端口号
2+
VITE_PORT = 8999
3+
4+
# open 运行 npm run dev 时自动打开浏览器
5+
VITE_OPEN = false
6+
7+
# 公共基础路径
8+
VITE_PUBLIC_PATH = ./

.env.development

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# 本地环境
2+
ENV = development
3+
4+
# 本地环境接口地址
5+
VITE_BASE_URL='/dev'
6+
7+
# 开发环境接口代理
8+
VITE_PROXY_URL='http://47.109.79.197:8888/api'
9+
# VITE_PROXY_URL='https://api.yueqiuke.cn/api'
10+
11+
# 删除 console
12+
VITE_DROP_CONSOLE = false

.env.production

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 线上环境
2+
ENV = production
3+
4+
# 线上环境接口地址
5+
VITE_API_URL = 'http://47.109.79.197:8888/'
6+
7+
# 删除 console
8+
VITE_DROP_CONSOLE = true

.eslintignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
*.sh
3+
node_modules
4+
lib
5+
*.md
6+
*.scss
7+
*.woff
8+
*.ttf
9+
.vscode
10+
.idea
11+
dist
12+
mock
13+
public
14+
bin
15+
build
16+
config
17+
index.html
18+
src/assets

.eslintrc.cjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports ={
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
extends: ['eslint:recommended', 'plugin:vue/vue3-essential', 'plugin:prettier/recommended'],
8+
overrides: [
9+
{
10+
env: {
11+
node: true,
12+
},
13+
files: ['.eslintrc.{js,cjs}'],
14+
parserOptions: {
15+
sourceType: 'script',
16+
},
17+
},
18+
],
19+
parser: 'vue-eslint-parser',
20+
parserOptions: {
21+
ecmaVersion: 'latest',
22+
sourceType: 'module',
23+
},
24+
plugins: ['vue'],
25+
rules: {
26+
'vue/multi-word-component-names': 'off'
27+
},
28+
};

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/dist/*
2+
.local
3+
.output.js
4+
/node_modules/**
5+
6+
**/*.svg
7+
**/*.sh
8+
9+
/public/*

.prettierrc.cjs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports ={
2+
// 一行最多多少个字符
3+
printWidth: 150,
4+
// 指定每个缩进级别的空格数
5+
tabWidth: 2,
6+
// 使用制表符而不是空格缩进行
7+
useTabs: true,
8+
// 在语句末尾打印分号
9+
semi: true,
10+
// 使用单引号而不是双引号
11+
singleQuote: true,
12+
// 更改引用对象属性的时间 可选值"<as-needed|consistent|preserve>"
13+
quoteProps: 'as-needed',
14+
// 在JSX中使用单引号而不是双引号
15+
jsxSingleQuote: false,
16+
// 多行时尽可能打印尾随逗号。(例如,单行数组永远不会出现逗号结尾。) 可选值"<none|es5|all>",默认none
17+
trailingComma: 'es5',
18+
// 在对象文字中的括号之间打印空格
19+
bracketSpacing: true,
20+
// jsx 标签的反尖括号需要换行
21+
jsxBracketSameLine: false,
22+
// 在单独的箭头函数参数周围包括括号 always:(x) => x \ avoid:x => x
23+
arrowParens: 'always',
24+
// 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码
25+
rangeStart: 0,
26+
rangeEnd: Infinity,
27+
// 指定要使用的解析器,不需要写文件开头的 @prettier
28+
requirePragma: false,
29+
// 不需要自动在文件开头插入 @prettier
30+
insertPragma: false,
31+
// 使用默认的折行标准 always\never\preserve
32+
proseWrap: 'preserve',
33+
// 指定HTML文件的全局空格敏感度 css\strict\ignore
34+
htmlWhitespaceSensitivity: 'css',
35+
// Vue文件脚本和样式标签缩进
36+
vueIndentScriptAndStyle: false,
37+
// 换行符使用 lf 结尾是 可选值"<auto|lf|crlf|cr>"
38+
endOfLine: 'lf',
39+
};

.vite/deps_temp_af3b983c/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
# spring-boot-plus-vue3
1+
# Vue 3 + Vite
22

3-
#### [spring-boot-plus-vue3](https://gitee.com/geekidea/spring-boot-plus-vue3)
3+
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
## Recommended IDE Setup
6+
7+
- [VS Code](https://code.visualstudio.com/) + [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (previously Volar) and disable Vetur

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="./favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>spring-boot-plus-vue3</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "spring-boot-plus-vue3",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite --host",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx --fix",
11+
"lint:prettier": "prettier --write \"**/*.{js,ts,json,css,less,scss,vue,html,md}\""
12+
},
13+
"dependencies": {
14+
"@element-plus/icons-vue": "^2.3.1",
15+
"@highlightjs/vue-plugin": "^2.1.0",
16+
"autoprefixer": "^10.4.19",
17+
"axios": "^1.6.8",
18+
"dayjs": "^1.11.10",
19+
"element-plus": "^2.7.2",
20+
"highlight.js": "^11.9.0",
21+
"js-cookie": "^3.0.5",
22+
"js-md5": "^0.8.3",
23+
"nprogress": "^0.2.0",
24+
"pinia": "^2.1.7",
25+
"pinia-plugin-persist": "^1.0.0",
26+
"postcss": "^8.4.38",
27+
"qs": "^6.12.1",
28+
"tailwindcss": "^3.4.3",
29+
"vue": "^3.4.21",
30+
"vue-clipboard3": "^2.0.0",
31+
"vue-router": "^4.3.1"
32+
},
33+
"devDependencies": {
34+
"@vitejs/plugin-vue": "^5.0.4",
35+
"eslint": "8.57.0",
36+
"eslint-config-prettier": "^9.1.0",
37+
"eslint-plugin-prettier": "^5.1.3",
38+
"eslint-plugin-vue": "^9.25.0",
39+
"prettier": "^3.2.5",
40+
"sass": "^1.75.0",
41+
"sass-loader": "^14.2.1",
42+
"unplugin-vue-components": "^0.26.0",
43+
"vite": "^5.2.0",
44+
"vite-plugin-svg-icons": "^2.0.1"
45+
},
46+
"engines": {
47+
"node": ">=18.0.0"
48+
},
49+
"volta": {
50+
"node": "18.20.2"
51+
}
52+
}

0 commit comments

Comments
 (0)