Skip to content

Commit 77835f8

Browse files
committed
Init project #1
1 parent bf2cb70 commit 77835f8

File tree

271 files changed

+17569
-15
lines changed

Some content is hidden

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

271 files changed

+17569
-15
lines changed

.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Editor configuration, see http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true

.env

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
VITE_BASE_URL=/
2+
3+
VITE_APP_DESC=Vue Boilerplate is a fresh and elegant admin template
4+
5+
# the prefix of the icon name
6+
VITE_ICON_PREFIX=icon
7+
8+
# the prefix of the local svg icon component, must include VITE_ICON_PREFIX
9+
# format {VITE_ICON_PREFIX}-{local icon name}
10+
VITE_ICON_LOCAL_PREFIX=icon-local
11+
12+
# auth route mode: static | dynamic
13+
VITE_AUTH_ROUTE_MODE=static
14+
15+
# static auth route home
16+
VITE_ROUTE_HOME=home
17+
18+
# default menu icon
19+
VITE_MENU_ICON=mdi:menu
20+
21+
# whether to enable http proxy when is dev mode
22+
VITE_HTTP_PROXY=Y
23+
24+
# vue-router mode: hash | history | memory
25+
VITE_ROUTER_HISTORY_MODE=history
26+
27+
# success code of backend service, when the code is received, the request is successful
28+
VITE_SERVICE_SUCCESS_CODE=0000
29+
30+
# logout codes of backend service, when the code is received, the user will be logged out and redirected to login page
31+
VITE_SERVICE_LOGOUT_CODES=8888,8889
32+
33+
# modal logout codes of backend service, when the code is received, the user will be logged out by displaying a modal
34+
VITE_SERVICE_MODAL_LOGOUT_CODES=7777,7778
35+
36+
# token expired codes of backend service, when the code is received, it will refresh the token and resend the request
37+
VITE_SERVICE_EXPIRED_TOKEN_CODES=9999,9998
38+
39+
# when the route mode is static, the defined super role
40+
VITE_STATIC_SUPER_ROLE=R_SUPER
41+
42+
# sourcemap
43+
VITE_SOURCE_MAP=N
44+
45+
# Used to differentiate storage across different domains
46+
VITE_STORAGE_PREFIX=VBP_

.env.development

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
NODE_ENV=development
2+
3+
VITE_APP_TITLE='DEV | Vue Boilerplate'
4+
5+
# the build version prefix displayed in the bottom right corner of the screen
6+
VITE_BUILD_PREFIX=dev
7+
8+
# backend service base url, test environment
9+
VITE_SERVICE_BASE_URL=https://mock.apifox.cn/m1/3109515-0-default
10+
11+
# other backend service base url, test environment
12+
VITE_OTHER_SERVICE_BASE_URL= `{
13+
"demo": "http://localhost:9671"
14+
}`

.env.production

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
VITE_APP_TITLE='Vue Boilerplate'
2+
3+
# the build version prefix displayed in the bottom right corner of the screen
4+
VITE_BUILD_PREFIX=v
5+
6+
# backend service base url, test environment
7+
VITE_SERVICE_BASE_URL=https://mock.apifox.cn/m1/3109515-0-default
8+
9+
# other backend service base url, test environment
10+
VITE_OTHER_SERVICE_BASE_URL= `{
11+
"demo": "http://localhost:9671"
12+
}`

.env.staging

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
VITE_APP_TITLE='STG | Vue Boilerplate'
2+
3+
# the build version prefix displayed in the bottom right corner of the screen
4+
VITE_BUILD_PREFIX=stg
5+
6+
# backend service base url, test environment
7+
VITE_SERVICE_BASE_URL=https://mock.apifox.cn/m1/3109515-0-default
8+
9+
# other backend service base url, test environment
10+
VITE_OTHER_SERVICE_BASE_URL= `{
11+
"demo": "http://localhost:9671"
12+
}`

.env.testing

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
VITE_APP_TITLE='TST | Vue Boilerplate'
2+
3+
# the build version prefix displayed in the bottom right corner of the screen
4+
VITE_BUILD_PREFIX=tst
5+
6+
# backend service base url, test environment
7+
VITE_SERVICE_BASE_URL=https://mock.apifox.cn/m1/3109515-0-default
8+
9+
# other backend service base url, test environment
10+
VITE_OTHER_SERVICE_BASE_URL= `{
11+
"demo": "http://localhost:9671"
12+
}`

.gitattributes

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"*.vue" eol=lf
2+
"*.js" eol=lf
3+
"*.ts" eol=lf
4+
"*.jsx" eol=lf
5+
"*.tsx" eol=lf
6+
"*.mjs" eol=lf
7+
"*.json" eol=lf
8+
"*.html" eol=lf
9+
"*.css" eol=lf
10+
"*.scss" eol=lf
11+
"*.md" eol=lf
12+
"*.yaml" eol=lf
13+
"*.yml" eol=lf

.gitignore

+35-14
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
1-
.architect
2-
bootstrap.css
3-
bootstrap.js
4-
bootstrap.json
5-
bootstrap.jsonp
6-
build/
7-
classic.json
8-
classic.jsonp
9-
ext/
10-
modern.json
11-
modern.jsonp
12-
resources/sass/.sass-cache/
13-
resources/.arch-internal-preview.css
14-
.arch-internal-preview.css
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+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
!.vscode/settings.json
24+
!.vscode/launch.json
25+
.idea
26+
*.suo
27+
*.ntvs*
28+
*.njsproj
29+
*.sln
30+
*.sw?
31+
32+
package-lock.json
33+
yarn.lock
34+
35+
.VSCodeCounter

.gitlab-ci.yml

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
variables:
2+
PRJ_NAME: webapp
3+
4+
PRJ_DIR: /var/www/html/vue_boilerplate_2024
5+
DEV_DIR: $PRJ_DIR/dev/$PRJ_NAME
6+
TEST_DIR: $PRJ_DIR/tst/$PRJ_NAME
7+
8+
ZIP_NAME: vue-boilerplate-prd
9+
10+
stages:
11+
- build
12+
- zip
13+
- deploy
14+
15+
# ###########################
16+
# DEV - LINUX #
17+
# ###########################
18+
19+
vue-boilerplate:dev:
20+
stage: build
21+
before_script:
22+
- node -v
23+
- 'if [ ! -d $DEV_DIR ]; then echo "$DEV_DIR does not exist" ; exit 1 ; fi'
24+
- npm install --progress=false
25+
script:
26+
- npm run build:dev
27+
- rm -rf .git
28+
- 'if [ -d $DEV_DIR/dist ]; then rm -rf $DEV_DIR/dist ; fi'
29+
- cp -Rf dist/ $DEV_DIR
30+
only:
31+
refs:
32+
- develop
33+
- /^feature\/.*$/
34+
- /^hotfix\/.*$/
35+
variables:
36+
- $CI_COMMIT_MESSAGE =~ /^dev\d+\.\d+\.\d+/
37+
tags:
38+
- web_dev
39+
40+
# ###########################
41+
# TEST - LINUX #
42+
# ###########################
43+
44+
vue-boilerplate:test:
45+
stage: build
46+
before_script:
47+
- node -v
48+
- 'if [ ! -d $TEST_DIR ]; then echo "$TEST_DIR does not exist" ; exit 1 ; fi'
49+
- npm install --progress=false
50+
script:
51+
- npm run build:tst
52+
- rm -rf .git
53+
- 'if [ -d $TEST_DIR/dist ]; then rm -rf $TEST_DIR/dist ; fi'
54+
- cp -Rf dist/ $TEST_DIR
55+
only:
56+
refs:
57+
- release
58+
- web
59+
variables:
60+
- $CI_BUILD == "testing"
61+
tags:
62+
- web_dev
63+
64+
# ###########################
65+
# STG/PRD - LINUX57 #
66+
# ###########################
67+
68+
vue-boilerplate:zip:build:
69+
stage: build
70+
variables:
71+
DOWNLOAD_DIR: /var/www/html/DOWNLOAD
72+
before_script:
73+
- node -v
74+
- npm install --progress=false
75+
script:
76+
- npm run build
77+
- zip -qr $ZIP_NAME-$CI_COMMIT_REF_NAME.zip ./dist
78+
- mv $ZIP_NAME-$CI_COMMIT_REF_NAME.zip $DOWNLOAD_DIR
79+
artifacts:
80+
expire_in: 1 day
81+
paths:
82+
- dist
83+
only:
84+
refs:
85+
- master
86+
- web
87+
variables:
88+
- $CI_BUILD =~ /^v\d+\.\d+\.\d+$/
89+
tags:
90+
- web_dev

.gitlab/issue_templates/bug_report.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
| Version | OS | Device |
2+
| ------- | --------- | ------ |
3+
| v1.2.3 | Chrome/45 | |
4+
5+
### Steps to reproduce
6+
7+
1.
8+
2.
9+
3.
10+
11+
### Expected result
12+
13+
-
14+
15+
### Actual result
16+
17+
-
18+
19+
### Additional details / screenshot
20+
21+
-
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
description or requirement
2+
3+
- foo
4+
- bar
5+
6+
### Technical requirement
7+
8+
-
9+
10+
### Mockup/UI
11+
12+
-
13+
14+
### References
15+
16+
-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Changelog
2+
3+
### v
4+
5+
-
6+
7+
/assign
8+
9+
/unlabel ~"L::DONE" ~"L::DOING" ~"s::linked"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Changelog
2+
3+
### v
4+
5+
-
6+
7+
/assign
8+
9+
/label ~"L::RELEASED"

.npmrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
shamefully-hoist=true
2+
ignore-workspace-root-check=true
3+
link-workspace-packages=true

.vscode/extensions.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"recommendations": [
3+
"afzalsayed96.icones",
4+
"antfu.iconify",
5+
"antfu.unocss",
6+
"dbaeumer.vscode-eslint",
7+
"editorconfig.editorconfig",
8+
"esbenp.prettier-vscode",
9+
"formulahendry.auto-close-tag",
10+
"formulahendry.auto-complete-tag",
11+
"formulahendry.auto-rename-tag",
12+
"lokalise.i18n-ally",
13+
"mhutchie.git-graph",
14+
"mikestead.dotenv",
15+
"naumovs.color-highlight",
16+
"pkief.material-icon-theme",
17+
"sdras.vue-vscode-snippets",
18+
"vue.volar",
19+
"whtouche.vscode-js-console-utils",
20+
"zhuangtongfa.material-theme"
21+
]
22+
}

.vscode/launch.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "chrome",
6+
"request": "launch",
7+
"name": "Vue Debugger",
8+
"url": "http://localhost:9527",
9+
"webRoot": "${workspaceFolder}"
10+
},
11+
{
12+
"type": "node",
13+
"request": "launch",
14+
"name": "TS Debugger",
15+
"runtimeExecutable": "tsx",
16+
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/**"],
17+
"program": "${file}"
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)