Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit 8aa7704

Browse files
authored
Initial commit
0 parents  commit 8aa7704

File tree

188 files changed

+14907
-0
lines changed

Some content is hidden

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

188 files changed

+14907
-0
lines changed

.editorconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# 修改配置后重启编辑器
2+
# 配置项文档:https://editorconfig.org/
3+
4+
# 告知 EditorConfig 插件,当前即是根文件
5+
root = true
6+
7+
# 适用全部文件
8+
[*]
9+
## 设置字符集
10+
charset = utf-8
11+
## 缩进风格 space | tab,建议 space(会自动继承给 Prettier)
12+
indent_style = space
13+
## 缩进的空格数(会自动继承给 Prettier)
14+
indent_size = 2
15+
## 换行符类型 lf | cr | crlf,一般都是设置为 lf
16+
end_of_line = lf
17+
## 是否在文件末尾插入空白行
18+
insert_final_newline = true
19+
## 是否删除一行中的前后空格
20+
trim_trailing_whitespace = true
21+
22+
# 适用 .md 文件
23+
[*.md]
24+
insert_final_newline = false
25+
trim_trailing_whitespace = false

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# 所有环境自定义的环境变量(命名必须以 VITE_ 开头)
2+
3+
## 项目标题
4+
VITE_APP_TITLE = V3 Admin Vite

.env.development

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 开发环境自定义的环境变量(命名必须以 VITE_ 开头)
2+
3+
## 后端接口公共路径(如果解决跨域问题采用反向代理就只需写公共路径)
4+
VITE_BASE_API = '/api/v1'
5+
6+
## 路由模式 hash 或 html5
7+
VITE_ROUTER_HISTORY = 'hash'
8+
9+
## 开发环境地址前缀(一般 '/','./' 都可以)
10+
VITE_PUBLIC_PATH = '/'

.env.production

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 生产环境自定义的环境变量(命名必须以 VITE_ 开头)
2+
3+
## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径)
4+
VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1'
5+
6+
## 路由模式 hash 或 html5
7+
VITE_ROUTER_HISTORY = 'hash'
8+
9+
## 打包路径(就是网站前缀,例如部署到 https://un-pany.github.io/v3-admin-vite/ 域名下,就需要填写 /v3-admin-vite/)
10+
VITE_PUBLIC_PATH = '/v3-admin-vite/'

.env.staging

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 预发布环境自定义的环境变量(命名必须以 VITE_ 开头)
2+
3+
## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径)
4+
VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1'
5+
6+
## 路由模式 hash 或 html5
7+
VITE_ROUTER_HISTORY = 'hash'
8+
9+
## 打包路径(就是网站前缀,例如部署到 https://un-pany.github.io/v3-admin-vite/ 域名下,就需要填写 /v3-admin-vite/)
10+
VITE_PUBLIC_PATH = '/v3-admin-vite/'

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Eslint 会忽略的文件
2+
3+
.DS_Store
4+
node_modules
5+
dist
6+
dist-ssr
7+
*.local
8+
.npmrc

.eslintrc.cjs

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true,
6+
es6: true
7+
},
8+
extends: [
9+
"plugin:vue/vue3-essential",
10+
"eslint:recommended",
11+
"@vue/typescript/recommended",
12+
"@vue/prettier",
13+
"@vue/eslint-config-typescript"
14+
],
15+
parser: "vue-eslint-parser",
16+
parserOptions: {
17+
parser: "@typescript-eslint/parser",
18+
ecmaVersion: 2020,
19+
sourceType: "module",
20+
jsxPragma: "React",
21+
ecmaFeatures: {
22+
jsx: true,
23+
tsx: true
24+
}
25+
},
26+
rules: {
27+
// TS
28+
"@typescript-eslint/no-unused-expressions": "off",
29+
"@typescript-eslint/no-explicit-any": "off",
30+
"no-debugger": "off",
31+
"@typescript-eslint/explicit-module-boundary-types": "off",
32+
"@typescript-eslint/ban-types": "off",
33+
"@typescript-eslint/ban-ts-comment": "off",
34+
"@typescript-eslint/no-empty-function": "off",
35+
"@typescript-eslint/no-non-null-assertion": "off",
36+
"@typescript-eslint/no-unused-vars": [
37+
"error",
38+
{
39+
argsIgnorePattern: "^_",
40+
varsIgnorePattern: "^_"
41+
}
42+
],
43+
"no-unused-vars": [
44+
"error",
45+
{
46+
argsIgnorePattern: "^_",
47+
varsIgnorePattern: "^_"
48+
}
49+
],
50+
// Vue
51+
"vue/no-v-html": "off",
52+
"vue/require-default-prop": "off",
53+
"vue/require-explicit-emits": "off",
54+
"vue/multi-word-component-names": "off",
55+
"vue/html-self-closing": [
56+
"error",
57+
{
58+
html: {
59+
void: "always",
60+
normal: "always",
61+
component: "always"
62+
},
63+
svg: "always",
64+
math: "always"
65+
}
66+
],
67+
// Prettier
68+
"prettier/prettier": [
69+
"error",
70+
{
71+
endOfLine: "auto"
72+
}
73+
]
74+
}
75+
}

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: https://github.com/un-pany/v3-admin-vite/issues/69

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build And Deploy v3-admin-vite
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
persist-credentials: false
16+
17+
- name: Setup Node.js 20.17.0
18+
uses: actions/setup-node@master
19+
with:
20+
node-version: 20.17.0
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v2
24+
with:
25+
version: 9.11.0
26+
27+
- name: Build
28+
run: pnpm install && pnpm build:prod
29+
30+
- name: Deploy
31+
uses: JamesIves/github-pages-deploy-action@releases/v3
32+
with:
33+
ACCESS_TOKEN: ${{ secrets.V3_ADMIN_VITE }}
34+
BRANCH: gh-pages
35+
FOLDER: dist

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- "v*"
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20.17.0
22+
23+
- run: npx changelogithub
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.V3_ADMIN_VITE }}

0 commit comments

Comments
 (0)