Skip to content

Commit 55e4394

Browse files
author
locdp
committed
chore(projects): init project
1 parent 5fe1a79 commit 55e4394

File tree

375 files changed

+43928
-1
lines changed

Some content is hidden

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

375 files changed

+43928
-1
lines changed

Diff for: .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

Diff for: .env

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# the base url of the application, the default is "/"
2+
# if use a sub directory, it must be end with "/", like "/admin/" but not "/admin"
3+
VITE_BASE_URL=/
4+
5+
VITE_APP_DESC=VueElementAdmin is a fresh and elegant admin template
6+
7+
# the prefix of the icon name
8+
VITE_ICON_PREFIX=icon
9+
10+
# the prefix of the local svg icon component, must include VITE_ICON_PREFIX
11+
# format {VITE_ICON_PREFIX}-{local icon name}
12+
VITE_ICON_LOCAL_PREFIX=icon-local
13+
14+
# whether to enable authentication, commonly used for demo projects
15+
VITE_AUTH_ROUTE_VISIBLE=Y
16+
17+
# static auth route home
18+
VITE_ROUTE_HOME=/home
19+
20+
# default menu icon
21+
VITE_MENU_ICON=mdi:menu
22+
23+
# whether to enable http proxy when is dev mode
24+
VITE_HTTP_PROXY=N
25+
26+
# vue-router mode: hash | history | memory
27+
VITE_ROUTER_HISTORY_MODE=history
28+
29+
# success code of backend service, when the code is received, the request is successful
30+
VITE_SERVICE_SUCCESS_CODE=0000
31+
32+
# logout codes of backend service, when the code is received, the user will be logged out and redirected to login page
33+
VITE_SERVICE_LOGOUT_CODES=8888,8889
34+
35+
# modal logout codes of backend service, when the code is received, the user will be logged out by displaying a modal
36+
VITE_SERVICE_MODAL_LOGOUT_CODES=7777,7778
37+
38+
# token expired codes of backend service, when the code is received, it will refresh the token and resend the request
39+
VITE_SERVICE_EXPIRED_TOKEN_CODES=9999,9998,3333
40+
41+
# the defined super role
42+
VITE_STATIC_SUPER_ROLE=R_SUPER
43+
44+
# sourcemap
45+
VITE_SOURCE_MAP=N
46+
47+
# used to differentiate storage across different domains
48+
VITE_STORAGE_PREFIX=VNA_
49+
50+
# the port number on which the server is running
51+
VITE_SERVER_PORT=9527
52+
53+
# the port number used for previewing the application
54+
VITE_PREVIEW_PORT=9725
55+
56+
# used to control whether the program automatically detects updates
57+
VITE_AUTOMATICALLY_DETECT_UPDATE=Y

Diff for: .env.development

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
NODE_ENV=development
2+
3+
VITE_APP_TITLE=VueElementAdmin
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, dev environment
9+
VITE_SERVICE_BASE_URL=https://mock.apifox.cn/m1/3109515-0-default
10+
11+
# other backend service base url, dev environment
12+
VITE_OTHER_SERVICE_BASE_URL= `{
13+
"demo": "http://localhost:9528"
14+
}`

Diff for: .env.production

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

Diff for: .env.testing

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
VITE_APP_TITLE=VueElementAdmin
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, tst environment
7+
VITE_SERVICE_BASE_URL=https://mock.apifox.cn/m1/3109515-0-default
8+
9+
# other backend service base url, tst environment
10+
VITE_OTHER_SERVICE_BASE_URL= `{
11+
"demo": "http://localhost:9528"
12+
}`

Diff for: .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

Diff for: .github/ISSUE_TEMPLATE/bug-report.yaml

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: 🐞 Bug Report
2+
description: Encountered an error while using the software or feature
3+
title: '[Bug]: '
4+
labels: [bug?]
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
## Please submit according to the following requirements
11+
### 1. After submission, you need to specify the label and deadline.
12+
---
13+
14+
- type: markdown
15+
attributes:
16+
value: |
17+
## Environment Information
18+
Please modify the following information according to the actual usage environment.
19+
20+
- type: input
21+
id: env-program-ver
22+
attributes:
23+
label: Software Version
24+
validations:
25+
required: true
26+
27+
- type: dropdown
28+
id: env-vm-ver
29+
attributes:
30+
label: Operating Environment
31+
description: Select the system version on which the software is running
32+
options:
33+
- Windows (64)
34+
- Windows (32/x84)
35+
- MacOS
36+
- Linux
37+
- Ubuntu
38+
- CentOS
39+
- ArchLinux
40+
- UNIX (Android)
41+
- Other (please specify below)
42+
validations:
43+
required: true
44+
45+
- type: dropdown
46+
id: env-vm-arch
47+
attributes:
48+
label: Operating Architecture
49+
description: (Optional) Select the system architecture on which the software is running
50+
options:
51+
- AMD64
52+
- x86
53+
- ARM [32] (Alias:AArch32 / ARMv7)
54+
- ARM [64] (Alias:AArch64 / ARMv8)
55+
- Other
56+
57+
- type: textarea
58+
id: reproduce-steps
59+
attributes:
60+
label: Reproduce Steps
61+
description: |
62+
What operations do we need to perform to make the bug appear?
63+
The concise and clear reproduction steps can help us locate the problem more quickly.
64+
validations:
65+
required: true
66+
67+
- type: textarea
68+
id: expected
69+
attributes:
70+
label: What is the expected result?
71+
validations:
72+
required: true
73+
74+
- type: textarea
75+
id: actual
76+
attributes:
77+
label: What is the actual result?
78+
validations:
79+
required: true
80+
81+
- type: textarea
82+
id: logging
83+
attributes:
84+
label: Logging (Optional)
85+
render: golang
86+
87+
- type: textarea
88+
id: extra-desc
89+
attributes:
90+
label: Additional Description (Optional)

Diff for: .github/ISSUE_TEMPLATE/feature_request.yaml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: 🚀 Feature Request
3+
description: Suggest an idea to help us improve W&B
4+
title: '[Feature]: '
5+
labels:
6+
- feature_request
7+
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
**Thanks :heart: for taking the time to fill out this feature request report!**
13+
We kindly ask that you search to see if an issue [already exists](https://github.com/soybeanjs/soybean-admin/issues?q=is%3Aissue+sort%3Acreated-desc+) for your feature.
14+
15+
We are also happy to accept contributions from our users. For more details see [here](https://github.com/soybeanjs/soybean-admin/blob/main/README.md#how-to-contribute).
16+
17+
- type: textarea
18+
attributes:
19+
label: Description
20+
description: |
21+
A clear and concise description of the feature you're interested in.
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
attributes:
27+
label: Suggested Solution
28+
description: |
29+
Describe the solution you'd like. A clear and concise description of what you want to happen.
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
attributes:
35+
label: Alternatives
36+
description: |
37+
Describe alternatives you've considered.
38+
A clear and concise description of any alternative solutions or features you've considered.
39+
validations:
40+
required: false
41+
42+
- type: textarea
43+
attributes:
44+
label: Additional Context
45+
description: |
46+
Add any other context about the problem here.
47+
validations:
48+
required: false

Diff for: .github/PULL_REQUEST_TEMPLATE/pr.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
First of all, thank you for your contribution! 😄
2+
3+
New feature please send pull request to feature branch, and rest to main branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!
4+
5+
[[中文版模板 / Chinese template](./pr_cn.md)]
6+
7+
### This is a ...
8+
9+
- [ ] New feature
10+
- [ ] Bug fix
11+
- [ ] Site / document update
12+
- [ ] Component style update
13+
- [ ] TypeScript definition update
14+
- [ ] Refactoring
15+
- [ ] Code style optimization
16+
- [ ] Branch merge
17+
- [ ] Other (about what?)
18+
19+
### What's the background?
20+
21+
> 1. Describe the source of requirement.
22+
> 2. Resolve what problem.
23+
> 3. Related issue link.
24+
25+
### API Realization (Optional if not new feature)
26+
27+
> 1. Basic thought of solution and other optional proposal.
28+
> 2. List final API realization and usage sample.
29+
> 3. GIF or snapshot should be provided if includes UI/interactive modification.
30+
31+
### What's the effect? (Optional if not new feature)
32+
33+
> 1. Does this PR affect user? Which part will be affected?
34+
> 2. What will say in changelog?
35+
> 3. Does this PR contains potential break change or other risk?
36+
37+
### Changelog description (Optional if not new feature)
38+
39+
> 1. English description
40+
> 2. Chinese description (optional)
41+
42+
### Self Check before Merge
43+
44+
- [ ] Doc is updated/provided or not needed
45+
- [ ] Demo is updated/provided or not needed
46+
- [ ] TypeScript definition is updated/provided or not needed
47+
- [ ] Changelog is provided or not needed
48+
49+
### Additional Plan? (Optional if not new feature)
50+
51+
> If this PR related with other PR or following info. You can type here.

Diff for: .github/workflows/linter.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Lint Code
3+
4+
permissions:
5+
contents: write
6+
7+
on:
8+
pull_request:
9+
branches: [main]
10+
11+
jobs:
12+
lint:
13+
name: Lint All Code
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout Code
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Lint Code Base
23+
uses: github/super-linter@v4
24+
env:
25+
VALIDATE_ALL_CODEBASE: false
26+
DEFAULT_BRANCH: main
27+
# To change branch master or main
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
FILTER_REGEX_EXCLUDE: (docs|.github)
30+
VALIDATE_MARKDOWN: false

Diff for: .github/workflows/release.yml

+25
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@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 18.x
22+
23+
- run: npx githublogen
24+
env:
25+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)