chore: 清理上游遗留文件
- 删除 .github(Actions/Issue/PR 模板) - 删除 .changeset(上游版本管理) - 删除 .gitpod.yml/.gitattributes/.gitconfig/tea.yaml - 删除多语言 README、LICENSE、cspell.json - 删除 scripts/deploy(上游 Docker 脚本) - 删除 vben-admin.code-workspace - 清理 pnpm-workspace.yaml 无用引用
This commit is contained in:
parent
86a38bdfc8
commit
40a59c700f
@ -1,5 +0,0 @@
|
|||||||
# Changesets
|
|
||||||
|
|
||||||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it [in our repository](https://github.com/changesets/changesets)
|
|
||||||
|
|
||||||
We have a quick list of common questions to get you started engaging with this project in [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
|
|
||||||
"changelog": [
|
|
||||||
"@changesets/changelog-github",
|
|
||||||
{ "repo": "vbenjs/vue-vben-admin" }
|
|
||||||
],
|
|
||||||
"commit": false,
|
|
||||||
"fixed": [["@vben-core/*", "@vben/*"]],
|
|
||||||
"snapshot": {
|
|
||||||
"prereleaseTemplate": "{tag}-{datetime}"
|
|
||||||
},
|
|
||||||
"privatePackages": { "version": true, "tag": true },
|
|
||||||
"linked": [],
|
|
||||||
"access": "public",
|
|
||||||
"baseBranch": "main",
|
|
||||||
"updateInternalDependencies": "patch",
|
|
||||||
"ignore": []
|
|
||||||
}
|
|
||||||
11
.gitattributes
vendored
11
.gitattributes
vendored
@ -1,11 +0,0 @@
|
|||||||
# https://docs.github.com/cn/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
|
|
||||||
|
|
||||||
# Automatically normalize line endings (to LF) for all text-based files.
|
|
||||||
* text=auto eol=lf
|
|
||||||
|
|
||||||
# Declare files that will always have CRLF line endings on checkout.
|
|
||||||
*.{cmd,[cC][mM][dD]} text eol=crlf
|
|
||||||
*.{bat,[bB][aA][tT]} text eol=crlf
|
|
||||||
|
|
||||||
# Denote all files that are truly binary and should not be modified.
|
|
||||||
*.{ico,png,jpg,jpeg,gif,webp,svg,woff,woff2} binary
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
[core]
|
|
||||||
ignorecase = false
|
|
||||||
14
.github/CODEOWNERS
vendored
14
.github/CODEOWNERS
vendored
@ -1,14 +0,0 @@
|
|||||||
# default onwer
|
|
||||||
* anncwb@126.com vince292007@gmail.com netfan@foxmail.com jinmao88@qq.com
|
|
||||||
|
|
||||||
# vben core onwer
|
|
||||||
/.github/ anncwb@126.com vince292007@gmail.com netfan@foxmail.com jinmao88@qq.com
|
|
||||||
/.vscode/ anncwb@126.com vince292007@gmail.com netfan@foxmail.com jinmao88@qq.com
|
|
||||||
/packages/ anncwb@126.com vince292007@gmail.com netfan@foxmail.com jinmao88@qq.com
|
|
||||||
/packages/@core/ anncwb@126.com vince292007@gmail.com netfan@foxmail.com jinmao88@qq.com
|
|
||||||
/internal/ anncwb@126.com vince292007@gmail.com netfan@foxmail.com jinmao88@qq.com
|
|
||||||
/scripts/ anncwb@126.com vince292007@gmail.com netfan@foxmail.com jinmao88@qq.com
|
|
||||||
|
|
||||||
# vben team onwer
|
|
||||||
apps/ anncwb@126.com vince292007@gmail.com netfan@foxmail.com @vbenjs/team-v5 jinmao88@qq.com
|
|
||||||
docs/ anncwb@126.com vince292007@gmail.com netfan@foxmail.com @vbenjs/team-v5 jinmao88@qq.com
|
|
||||||
74
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
74
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
@ -1,74 +0,0 @@
|
|||||||
name: 🐞 Bug Report
|
|
||||||
description: Report an issue with Vben Admin to help us make it better.
|
|
||||||
title: 'Bug: '
|
|
||||||
labels: ['bug: pending triage']
|
|
||||||
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
Thanks for taking the time to fill out this bug report!
|
|
||||||
- type: dropdown
|
|
||||||
id: version
|
|
||||||
attributes:
|
|
||||||
label: Version
|
|
||||||
description: What version of our software are you running?
|
|
||||||
options:
|
|
||||||
- Vben Admin V5
|
|
||||||
- Vben Admin V2
|
|
||||||
default: 0
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: bug-desc
|
|
||||||
attributes:
|
|
||||||
label: Describe the bug?
|
|
||||||
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
|
|
||||||
placeholder: Bug Description
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: reproduction
|
|
||||||
attributes:
|
|
||||||
label: Reproduction
|
|
||||||
description: Please provide a link to [StackBlitz](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/basic?initialPath=__vitest__/) (you can also use [examples](https://github.com/vitest-dev/vitest/tree/main/examples)) or a github repo that can reproduce the problem you ran into. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required unless you are absolutely sure that the issue is obvious and the provided information is enough to understand the problem. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "needs reproduction" label. If no reproduction is provided after 3 days, it will be auto-closed.
|
|
||||||
placeholder: Reproduction
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: system-info
|
|
||||||
attributes:
|
|
||||||
label: System Info
|
|
||||||
description: Output of `npx envinfo --system --npmPackages '{vue}' --binaries --browsers`
|
|
||||||
render: shell
|
|
||||||
placeholder: System, Binaries, Browsers
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: logs
|
|
||||||
attributes:
|
|
||||||
label: Relevant log output
|
|
||||||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
|
||||||
render: shell
|
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
id: terms
|
|
||||||
attributes:
|
|
||||||
label: Validations
|
|
||||||
description: Before submitting the issue, please make sure you do the following
|
|
||||||
# description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com).
|
|
||||||
options:
|
|
||||||
- label: Read the [docs](https://doc.vben.pro/)
|
|
||||||
required: true
|
|
||||||
- label: Ensure the code is up to date. (Some issues have been fixed in the latest version)
|
|
||||||
required: true
|
|
||||||
- label: I have searched the [existing issues](https://github.com/vbenjs/vue-vben-admin/issues) and checked that my issue does not duplicate any existing issues.
|
|
||||||
required: true
|
|
||||||
- label: Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vbenjs/vue-vben-admin/discussions) or join our [Discord Chat Server](https://discord.gg/8GuAdwDhj6).
|
|
||||||
required: true
|
|
||||||
- label: The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
|
|
||||||
required: true
|
|
||||||
38
.github/ISSUE_TEMPLATE/docs.yml
vendored
38
.github/ISSUE_TEMPLATE/docs.yml
vendored
@ -1,38 +0,0 @@
|
|||||||
name: 📚 Documentation
|
|
||||||
description: Report an issue with Vben Admin Website to help us make it better.
|
|
||||||
title: 'Docs: '
|
|
||||||
labels: [documentation]
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
Thanks for taking the time to fill out this issue!
|
|
||||||
- type: checkboxes
|
|
||||||
id: documentation_is
|
|
||||||
attributes:
|
|
||||||
label: Documentation is
|
|
||||||
options:
|
|
||||||
- label: Missing
|
|
||||||
- label: Outdated
|
|
||||||
- label: Confusing
|
|
||||||
- label: Not sure?
|
|
||||||
- type: textarea
|
|
||||||
id: description
|
|
||||||
attributes:
|
|
||||||
label: Explain in Detail
|
|
||||||
description: A clear and concise description of your suggestion. If you intend to submit a PR for this issue, tell us in the description. Thanks!
|
|
||||||
placeholder: The description of ... page is not clear. I thought it meant ... but it wasn't.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: suggestion
|
|
||||||
attributes:
|
|
||||||
label: Your Suggestion for Changes
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: reproduction-steps
|
|
||||||
attributes:
|
|
||||||
label: Steps to reproduce
|
|
||||||
description: Please provide any reproduction steps that may need to be described. E.g. if it happens only when running the dev or build script make sure it's clear which one to use.
|
|
||||||
placeholder: Run `pnpm install` followed by `pnpm run docs:dev`
|
|
||||||
70
.github/ISSUE_TEMPLATE/feature-request.yml
vendored
70
.github/ISSUE_TEMPLATE/feature-request.yml
vendored
@ -1,70 +0,0 @@
|
|||||||
name: ✨ New Feature Proposal
|
|
||||||
description: Propose a new feature to be added to Vben Admin
|
|
||||||
title: 'FEATURE: '
|
|
||||||
labels: ['enhancement: pending triage']
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
Thank you for suggesting a feature for our project! Please fill out the information below to help us understand and implement your request!
|
|
||||||
- type: dropdown
|
|
||||||
id: version
|
|
||||||
attributes:
|
|
||||||
label: Version
|
|
||||||
description: What version of our software are you running?
|
|
||||||
options:
|
|
||||||
- Vben Admin V5
|
|
||||||
- Vben Admin V2
|
|
||||||
default: 0
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: description
|
|
||||||
attributes:
|
|
||||||
label: Description
|
|
||||||
description: A detailed description of the feature request.
|
|
||||||
placeholder: Please describe the feature you would like to see, and why it would be useful.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: proposed-solution
|
|
||||||
attributes:
|
|
||||||
label: Proposed Solution
|
|
||||||
description: A clear and concise description of what you want to happen.
|
|
||||||
placeholder: Describe the solution you'd like to see
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: alternatives
|
|
||||||
attributes:
|
|
||||||
label: Alternatives Considered
|
|
||||||
description: |
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
placeholder: Describe any alternative solutions or features you've considered
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
|
|
||||||
- type: input
|
|
||||||
id: additional-context
|
|
||||||
attributes:
|
|
||||||
label: Additional Context
|
|
||||||
description: Add any other context or screenshots about the feature request here.
|
|
||||||
placeholder: Any additional information
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
id: checkboxes
|
|
||||||
attributes:
|
|
||||||
label: Validations
|
|
||||||
description: Before submitting the issue, please make sure you do the following
|
|
||||||
options:
|
|
||||||
- label: Read the [docs](https://doc.vben.pro/)
|
|
||||||
required: true
|
|
||||||
- label: Ensure the code is up to date. (Some issues have been fixed in the latest version)
|
|
||||||
required: true
|
|
||||||
- label: I have searched the [existing issues](https://github.com/vbenjs/vue-vben-admin/issues) and checked that my issue does not duplicate any existing issues.
|
|
||||||
required: true
|
|
||||||
40
.github/actions/setup-node/action.yml
vendored
40
.github/actions/setup-node/action.yml
vendored
@ -1,40 +0,0 @@
|
|||||||
name: 'Setup Node'
|
|
||||||
|
|
||||||
description: 'Setup node and pnpm'
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: 'composite'
|
|
||||||
steps:
|
|
||||||
- name: Install pnpm
|
|
||||||
uses: pnpm/action-setup@v6
|
|
||||||
|
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v6
|
|
||||||
with:
|
|
||||||
node-version-file: .node-version
|
|
||||||
cache: 'pnpm'
|
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
|
||||||
name: Setup pnpm cache
|
|
||||||
if: ${{ github.ref_name == 'main' }}
|
|
||||||
with:
|
|
||||||
path: ${{ env.STORE_PATH }}
|
|
||||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pnpm-store-
|
|
||||||
|
|
||||||
- uses: actions/cache/restore@v4
|
|
||||||
if: ${{ github.ref_name != 'main' }}
|
|
||||||
with:
|
|
||||||
path: ${{ env.STORE_PATH }}
|
|
||||||
key: |
|
|
||||||
${{ runner.os }}-pnpm-store-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
shell: bash
|
|
||||||
run: pnpm install --frozen-lockfile
|
|
||||||
89
.github/commit-convention.md
vendored
89
.github/commit-convention.md
vendored
@ -1,89 +0,0 @@
|
|||||||
## Git Commit Message Convention
|
|
||||||
|
|
||||||
> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular).
|
|
||||||
|
|
||||||
#### TL;DR:
|
|
||||||
|
|
||||||
Messages must be matched by the following regex:
|
|
||||||
|
|
||||||
```js
|
|
||||||
/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip): .{1,50}/;
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Examples
|
|
||||||
|
|
||||||
Appears under "Features" header, `dev` subheader:
|
|
||||||
|
|
||||||
```
|
|
||||||
feat(dev): add 'comments' option
|
|
||||||
```
|
|
||||||
|
|
||||||
Appears under "Bug Fixes" header, `dev` subheader, with a link to issue #28:
|
|
||||||
|
|
||||||
```
|
|
||||||
fix(dev): fix dev error
|
|
||||||
|
|
||||||
close #28
|
|
||||||
```
|
|
||||||
|
|
||||||
Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation:
|
|
||||||
|
|
||||||
```
|
|
||||||
perf(build): remove 'foo' option
|
|
||||||
|
|
||||||
BREAKING CHANGE: The 'foo' option has been removed.
|
|
||||||
```
|
|
||||||
|
|
||||||
The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header.
|
|
||||||
|
|
||||||
```
|
|
||||||
revert: feat(compiler): add 'comments' option
|
|
||||||
|
|
||||||
This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
|
|
||||||
```
|
|
||||||
|
|
||||||
### Full Message Format
|
|
||||||
|
|
||||||
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
|
|
||||||
|
|
||||||
```
|
|
||||||
<type>(<scope>): <subject>
|
|
||||||
<BLANK LINE>
|
|
||||||
<body>
|
|
||||||
<BLANK LINE>
|
|
||||||
<footer>
|
|
||||||
```
|
|
||||||
|
|
||||||
The **header** is mandatory and the **scope** of the header is optional.
|
|
||||||
|
|
||||||
### Revert
|
|
||||||
|
|
||||||
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body, it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
|
|
||||||
|
|
||||||
### Type
|
|
||||||
|
|
||||||
If the prefix is `feat`, `fix` or `perf`, it will appear in the changelog. However, if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.
|
|
||||||
|
|
||||||
Other prefixes are up to your discretion. Suggested prefixes are `docs`, `chore`, `style`, `refactor`, and `test` for non-changelog related tasks.
|
|
||||||
|
|
||||||
### Scope
|
|
||||||
|
|
||||||
The scope could be anything specifying the place of the commit change. For example `dev`, `build`, `workflow`, `cli` etc...
|
|
||||||
|
|
||||||
### Subject
|
|
||||||
|
|
||||||
The subject contains a succinct description of the change:
|
|
||||||
|
|
||||||
- use the imperative, present tense: "change" not "changed" nor "changes"
|
|
||||||
- don't capitalize the first letter
|
|
||||||
- no dot (.) at the end
|
|
||||||
|
|
||||||
### Body
|
|
||||||
|
|
||||||
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.
|
|
||||||
|
|
||||||
### Footer
|
|
||||||
|
|
||||||
The footer should contain any information about **Breaking Changes** and is also the place to reference GitHub issues that this commit **Closes**.
|
|
||||||
|
|
||||||
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
|
|
||||||
39
.github/config.yml
vendored
39
.github/config.yml
vendored
@ -1,39 +0,0 @@
|
|||||||
# Prevent issues being created without using the template
|
|
||||||
blank_issues_enabled: false
|
|
||||||
checkIssueTemplate: true
|
|
||||||
checkPullRequestTemplate: true
|
|
||||||
|
|
||||||
contact_links:
|
|
||||||
- name: 💬 Discord Chat
|
|
||||||
url: https://discord.gg/8GuAdwDhj6
|
|
||||||
about: Ask questions and discuss with other Vben users in real time.
|
|
||||||
|
|
||||||
- name: ❓ Questions & Discussions
|
|
||||||
url: https://github.com/@vbenjs/vue-vben-admin/discussions
|
|
||||||
about: Use GitHub discussions for message-board style questions and discussions.
|
|
||||||
|
|
||||||
# Comment to be posted to on PRs from first time contributors in your repository
|
|
||||||
newPRWelcomeComment: |
|
|
||||||
💖 Thanks for opening this pull request! 💖
|
|
||||||
Please be patient and we will get back to you as soon as we can.
|
|
||||||
|
|
||||||
# Comment to be posted to on pull requests merged by a first time user
|
|
||||||
firstPRMergeComment: >
|
|
||||||
Thanks for your contribution! 🎉🎉🎉
|
|
||||||
|
|
||||||
|
|
||||||
# Comment to be posted to on first time issues
|
|
||||||
newIssueWelcomeComment: >
|
|
||||||
Thanks for opening your first issue! Be sure to follow the issue template and provide every bit of information to help the developers!
|
|
||||||
|
|
||||||
|
|
||||||
# *OPTIONAL* default titles to check against for lack of descriptiveness
|
|
||||||
# MUST BE ALL LOWERCASE
|
|
||||||
requestInfoDefaultTitles:
|
|
||||||
- update readme.md
|
|
||||||
- updates
|
|
||||||
|
|
||||||
# *Required* Comment to reply with
|
|
||||||
requestInfoReplyComment: >
|
|
||||||
Thanks for filing this issue/PR! It would be much appreciated if you could provide us with more information so we can effectively analyze the situation in context.
|
|
||||||
|
|
||||||
40
.github/contributing.md
vendored
40
.github/contributing.md
vendored
@ -1,40 +0,0 @@
|
|||||||
# Vben Admin Contributing Guide
|
|
||||||
|
|
||||||
Hi! We're really excited that you are interested in contributing to Vben Admin. Before submitting your contribution, please make sure to take a moment and read through the following guidelines:
|
|
||||||
|
|
||||||
- [Pull Request Guidelines](#pull-request-guidelines)
|
|
||||||
|
|
||||||
## Contributor Code of Conduct
|
|
||||||
|
|
||||||
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
|
||||||
|
|
||||||
We are committed to making participation in this project a harassment-free experience for everyone, regardless of the level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
|
|
||||||
|
|
||||||
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
|
||||||
|
|
||||||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
|
||||||
|
|
||||||
## Pull Request Guidelines
|
|
||||||
|
|
||||||
- Checkout a topic branch from the relevant branch, e.g. main, and merge back against that branch.
|
|
||||||
|
|
||||||
- If adding a new feature:
|
|
||||||
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.
|
|
||||||
|
|
||||||
- If fixing bug:
|
|
||||||
- Provide a detailed description of the bug in the PR. Live demo preferred.
|
|
||||||
|
|
||||||
- It's OK to have multiple small commits as you work on the PR - GitHub can automatically squash them before merging.
|
|
||||||
|
|
||||||
## Development Setup
|
|
||||||
|
|
||||||
You will need [pnpm](https://pnpm.io/)
|
|
||||||
|
|
||||||
After cloning the repo, run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# install the dependencies of the project
|
|
||||||
$ pnpm install
|
|
||||||
# start the project
|
|
||||||
$ pnpm run dev
|
|
||||||
```
|
|
||||||
17
.github/dependabot.yml
vendored
17
.github/dependabot.yml
vendored
@ -1,17 +0,0 @@
|
|||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: npm
|
|
||||||
directory: '/'
|
|
||||||
schedule:
|
|
||||||
interval: daily
|
|
||||||
groups:
|
|
||||||
non-breaking-changes:
|
|
||||||
update-types: [minor, patch]
|
|
||||||
|
|
||||||
- package-ecosystem: github-actions
|
|
||||||
directory: '/'
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
groups:
|
|
||||||
non-breaking-changes:
|
|
||||||
update-types: [minor, patch]
|
|
||||||
33
.github/pull_request_template.md
vendored
33
.github/pull_request_template.md
vendored
@ -1,33 +0,0 @@
|
|||||||
## Description
|
|
||||||
|
|
||||||
<!-- Please describe the change as necessary. If it's a feature or enhancement please be as detailed as possible. If it's a bug fix, please link the issue that it fixes or describe the bug in as much detail.
|
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- You can also add additional context here -->
|
|
||||||
|
|
||||||
## Type of change
|
|
||||||
|
|
||||||
Please delete options that are not relevant.
|
|
||||||
|
|
||||||
- [ ] Bug fix (non-breaking change which fixes an issue)
|
|
||||||
- [ ] New feature (non-breaking change which adds functionality)
|
|
||||||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
|
||||||
- [ ] This change requires a documentation update
|
|
||||||
- [ ] Please, don't make changes to `pnpm-lock.yaml` unless you introduce a new test example.
|
|
||||||
|
|
||||||
## Checklist
|
|
||||||
|
|
||||||
> ℹ️ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in [CONTRIBUTING](contributing.md).
|
|
||||||
|
|
||||||
- [ ] If you introduce new functionality, document it. You can run documentation with `pnpm run docs:dev` command.
|
|
||||||
- [ ] Run the tests with `pnpm test`.
|
|
||||||
- [ ] Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with `feat:`, `fix:`, `perf:`, `docs:`, or `chore:`.
|
|
||||||
- [ ] My code follows the style guidelines of this project
|
|
||||||
- [ ] I have performed a self-review of my own code
|
|
||||||
- [ ] I have commented my code, particularly in hard-to-understand areas
|
|
||||||
- [ ] I have made corresponding changes to the documentation
|
|
||||||
- [ ] My changes generate no new warnings
|
|
||||||
- [ ] I have added tests that prove my fix is effective or that my feature works
|
|
||||||
- [ ] New and existing unit tests pass locally with my changes
|
|
||||||
- [ ] Any dependent changes have been merged and published in downstream modules
|
|
||||||
61
.github/release-drafter.yml
vendored
61
.github/release-drafter.yml
vendored
@ -1,61 +0,0 @@
|
|||||||
name-template: 'v$RESOLVED_VERSION'
|
|
||||||
tag-template: 'v$RESOLVED_VERSION'
|
|
||||||
version-template: $MAJOR.$MINOR.$PATCH
|
|
||||||
change-template: '* $TITLE (#$NUMBER) @$AUTHOR'
|
|
||||||
template: |
|
|
||||||
# What's Changed
|
|
||||||
|
|
||||||
$CHANGES
|
|
||||||
|
|
||||||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
|
|
||||||
|
|
||||||
categories:
|
|
||||||
- title: '🚀 Features'
|
|
||||||
labels:
|
|
||||||
- 'feature'
|
|
||||||
- title: '🐞 Bug Fixes'
|
|
||||||
labels:
|
|
||||||
- 'bug'
|
|
||||||
- title: '📈 Performance & Enhancement'
|
|
||||||
labels:
|
|
||||||
- 'perf'
|
|
||||||
- 'enhancement'
|
|
||||||
- title: 📝 Documentation
|
|
||||||
labels:
|
|
||||||
- 'documentation'
|
|
||||||
- title: 👻 Maintenance
|
|
||||||
labels:
|
|
||||||
- 'chore'
|
|
||||||
- 'dependencies'
|
|
||||||
# collapse-after: 12
|
|
||||||
- title: 🚦 Tests
|
|
||||||
labels:
|
|
||||||
- 'tests'
|
|
||||||
- title: 'Breaking'
|
|
||||||
label: 'breaking'
|
|
||||||
|
|
||||||
version-resolver:
|
|
||||||
major:
|
|
||||||
labels:
|
|
||||||
- 'major'
|
|
||||||
- 'breaking'
|
|
||||||
minor:
|
|
||||||
labels:
|
|
||||||
- 'minor'
|
|
||||||
patch:
|
|
||||||
labels:
|
|
||||||
- 'feature'
|
|
||||||
- 'patch'
|
|
||||||
- 'bug'
|
|
||||||
- 'maintenance'
|
|
||||||
- 'docs'
|
|
||||||
- 'dependencies'
|
|
||||||
- 'security'
|
|
||||||
|
|
||||||
exclude-labels:
|
|
||||||
- 'skip-changelog'
|
|
||||||
- 'no-changelog'
|
|
||||||
- 'changelog'
|
|
||||||
- 'bump versions'
|
|
||||||
- 'reverted'
|
|
||||||
- 'invalid'
|
|
||||||
13
.github/semantic.yml
vendored
13
.github/semantic.yml
vendored
@ -1,13 +0,0 @@
|
|||||||
titleAndCommits: true
|
|
||||||
types:
|
|
||||||
- feat
|
|
||||||
- fix
|
|
||||||
- docs
|
|
||||||
- chore
|
|
||||||
- style
|
|
||||||
- refactor
|
|
||||||
- perf
|
|
||||||
- test
|
|
||||||
- build
|
|
||||||
- ci
|
|
||||||
- revert
|
|
||||||
48
.github/workflows/build.yml
vendored
48
.github/workflows/build.yml
vendored
@ -1,48 +0,0 @@
|
|||||||
# name: Dependabot post-update
|
|
||||||
name: Build detection
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types: [opened, synchronize, reopened]
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
env:
|
|
||||||
HUSKY: '0'
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
post-update:
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
# if: ${{ github.actor == 'dependabot[bot]' }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
# - macos-latest
|
|
||||||
- windows-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Checkout out pull request
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
gh pr checkout ${{ github.event.pull_request.number }}
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: ./.github/actions/setup-node
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
pnpm run build
|
|
||||||
42
.github/workflows/changeset-version.yml
vendored
42
.github/workflows/changeset-version.yml
vendored
@ -1,42 +0,0 @@
|
|||||||
# https://github.com/changesets/action
|
|
||||||
name: Changeset version
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- closed
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
version:
|
|
||||||
if: (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') && github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') && github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
# if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
timeout-minutes: 15
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: ./.github/actions/setup-node
|
|
||||||
|
|
||||||
- name: Create Release Pull Request
|
|
||||||
uses: changesets/action@v1
|
|
||||||
with:
|
|
||||||
version: pnpm run version
|
|
||||||
commit: 'chore: bump versions'
|
|
||||||
title: 'chore: bump versions'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
125
.github/workflows/ci.yml
vendored
125
.github/workflows/ci.yml
vendored
@ -1,125 +0,0 @@
|
|||||||
name: CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- 'releases/*'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
TZ: Asia/Shanghai
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
name: Test
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
# - macos-latest
|
|
||||||
- windows-latest
|
|
||||||
timeout-minutes: 20
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Install pnpm
|
|
||||||
uses: pnpm/action-setup@v6
|
|
||||||
with:
|
|
||||||
run_install: false
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: ./.github/actions/setup-node
|
|
||||||
|
|
||||||
# - name: Check Git version
|
|
||||||
# run: git --version
|
|
||||||
|
|
||||||
# - name: Setup mock Git user
|
|
||||||
# run: git config --global user.email "you@example.com" && git config --global user.name "Your Name"
|
|
||||||
|
|
||||||
- name: Vitest tests
|
|
||||||
run: pnpm run test:unit
|
|
||||||
|
|
||||||
# - name: Upload coverage
|
|
||||||
# uses: codecov/codecov-action@v4
|
|
||||||
# with:
|
|
||||||
# token: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
|
|
||||||
lint:
|
|
||||||
name: Lint
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
# - macos-latest
|
|
||||||
- windows-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: ./.github/actions/setup-node
|
|
||||||
|
|
||||||
- name: Lint
|
|
||||||
run: pnpm run lint
|
|
||||||
|
|
||||||
check:
|
|
||||||
name: Check
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
timeout-minutes: 20
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
# - macos-latest
|
|
||||||
- windows-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: ./.github/actions/setup-node
|
|
||||||
|
|
||||||
- name: Typecheck
|
|
||||||
run: pnpm check:type
|
|
||||||
|
|
||||||
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions
|
|
||||||
- name: Check workflow files
|
|
||||||
if: runner.os == 'Linux'
|
|
||||||
run: |
|
|
||||||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
|
||||||
./actionlint -color -shellcheck=""
|
|
||||||
|
|
||||||
ci-ok:
|
|
||||||
name: CI OK
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [test, check, lint]
|
|
||||||
env:
|
|
||||||
FAILURE: ${{ contains(join(needs.*.result, ','), 'failure') }}
|
|
||||||
steps:
|
|
||||||
- name: Check for failure
|
|
||||||
run: |
|
|
||||||
echo $FAILURE
|
|
||||||
if [ "$FAILURE" = "false" ]; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
94
.github/workflows/codeql.yml
vendored
94
.github/workflows/codeql.yml
vendored
@ -1,94 +0,0 @@
|
|||||||
# For most projects, this workflow file will not need changing; you simply need
|
|
||||||
# to commit it to your repository.
|
|
||||||
#
|
|
||||||
# You may wish to alter this file to override the set of languages analyzed,
|
|
||||||
# or to provide custom queries or build logic.
|
|
||||||
#
|
|
||||||
# ******** NOTE ********
|
|
||||||
# We have attempted to detect the languages in your repository. Please check
|
|
||||||
# the `language` matrix defined below to confirm you have the correct set of
|
|
||||||
# supported CodeQL languages.
|
|
||||||
#
|
|
||||||
name: 'CodeQL'
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ['main']
|
|
||||||
pull_request:
|
|
||||||
branches: ['main']
|
|
||||||
schedule:
|
|
||||||
- cron: '35 0 * * 0'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
analyze:
|
|
||||||
name: Analyze (${{ matrix.language }})
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
# Runner size impacts CodeQL analysis time. To learn more, please see:
|
|
||||||
# - https://gh.io/recommended-hardware-resources-for-running-codeql
|
|
||||||
# - https://gh.io/supported-runners-and-hardware-resources
|
|
||||||
# - https://gh.io/using-larger-runners (GitHub.com only)
|
|
||||||
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
|
|
||||||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
|
|
||||||
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
|
|
||||||
permissions:
|
|
||||||
# required for all workflows
|
|
||||||
security-events: write
|
|
||||||
|
|
||||||
# required to fetch internal or private CodeQL packs
|
|
||||||
packages: read
|
|
||||||
|
|
||||||
# only required for workflows in private repositories
|
|
||||||
actions: read
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- language: javascript-typescript
|
|
||||||
build-mode: none
|
|
||||||
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
|
|
||||||
# Use `c-cpp` to analyze code written in C, C++ or both
|
|
||||||
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
|
|
||||||
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
|
|
||||||
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
|
|
||||||
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
|
|
||||||
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
|
|
||||||
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
|
||||||
- name: Initialize CodeQL
|
|
||||||
uses: github/codeql-action/init@v3
|
|
||||||
with:
|
|
||||||
languages: ${{ matrix.language }}
|
|
||||||
build-mode: ${{ matrix.build-mode }}
|
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
||||||
# By default, queries listed here will override any specified in a config file.
|
|
||||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
||||||
|
|
||||||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
||||||
# queries: security-extended,security-and-quality
|
|
||||||
|
|
||||||
# If the analyze step fails for one of the languages you are analyzing with
|
|
||||||
# "We were unable to automatically build your code", modify the matrix above
|
|
||||||
# to set the build mode to "manual" for that language. Then modify this step
|
|
||||||
# to build your code.
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
|
||||||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
||||||
- if: matrix.build-mode == 'manual'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo 'If you are using a "manual" build mode for one or more of the' \
|
|
||||||
'languages you are analyzing, replace this with the commands to build' \
|
|
||||||
'your code, for example:'
|
|
||||||
echo ' make bootstrap'
|
|
||||||
echo ' make release'
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
|
||||||
uses: github/codeql-action/analyze@v3
|
|
||||||
with:
|
|
||||||
category: '/language:${{matrix.language}}'
|
|
||||||
172
.github/workflows/deploy.yml
vendored
172
.github/workflows/deploy.yml
vendored
@ -1,172 +0,0 @@
|
|||||||
name: Deploy Website on push
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy-playground-ftp:
|
|
||||||
name: Deploy Push Playground Ftp
|
|
||||||
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') && github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Sed Config Base
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
sed -i "s#VITE_COMPRESS\s*=.*#VITE_COMPRESS = gzip#g" ./playground/.env.production
|
|
||||||
sed -i "s#VITE_PWA\s*=.*#VITE_PWA = true#g" ./playground/.env.production
|
|
||||||
cat ./playground/.env.production
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: ./.github/actions/setup-node
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: pnpm build:play
|
|
||||||
|
|
||||||
- name: Sync Playground files
|
|
||||||
uses: SamKirkland/FTP-Deploy-Action@v4.4.0
|
|
||||||
with:
|
|
||||||
server: ${{ secrets.PRO_FTP_HOST }}
|
|
||||||
username: ${{ secrets.WEB_PLAYGROUND_FTP_ACCOUNT }}
|
|
||||||
password: ${{ secrets.WEB_PLAYGROUND_FTP_PWSSWORD }}
|
|
||||||
local-dir: ./playground/dist/
|
|
||||||
|
|
||||||
deploy-docs-ftp:
|
|
||||||
name: Deploy Push Docs Ftp
|
|
||||||
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') && github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: ./.github/actions/setup-node
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: pnpm build:docs
|
|
||||||
|
|
||||||
- name: Sync Docs files
|
|
||||||
uses: SamKirkland/FTP-Deploy-Action@v4.4.0
|
|
||||||
with:
|
|
||||||
server: ${{ secrets.PRO_FTP_HOST }}
|
|
||||||
username: ${{ secrets.WEBSITE_FTP_ACCOUNT }}
|
|
||||||
password: ${{ secrets.WEBSITE_FTP_PASSWORD }}
|
|
||||||
local-dir: ./docs/.vitepress/dist/
|
|
||||||
|
|
||||||
deploy-antd-ftp:
|
|
||||||
name: Deploy Push Antd Ftp
|
|
||||||
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') && github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Sed Config Base
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
sed -i "s#VITE_COMPRESS\s*=.*#VITE_COMPRESS = gzip#g" ./apps/web-antd/.env.production
|
|
||||||
sed -i "s#VITE_PWA\s*=.*#VITE_PWA = true#g" ./apps/web-antd/.env.production
|
|
||||||
cat ./apps/web-antd/.env.production
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: ./.github/actions/setup-node
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: pnpm run build:antd
|
|
||||||
|
|
||||||
- name: Sync files
|
|
||||||
uses: SamKirkland/FTP-Deploy-Action@v4.4.0
|
|
||||||
with:
|
|
||||||
server: ${{ secrets.PRO_FTP_HOST }}
|
|
||||||
username: ${{ secrets.WEB_ANTD_FTP_ACCOUNT }}
|
|
||||||
password: ${{ secrets.WEB_ANTD_FTP_PASSWORD }}
|
|
||||||
local-dir: ./apps/web-antd/dist/
|
|
||||||
|
|
||||||
deploy-ele-ftp:
|
|
||||||
name: Deploy Push Element Ftp
|
|
||||||
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') && github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Sed Config Base
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
sed -i "s#VITE_COMPRESS\s*=.*#VITE_COMPRESS = gzip#g" ./apps/web-ele/.env.production
|
|
||||||
sed -i "s#VITE_PWA\s*=.*#VITE_PWA = true#g" ./apps/web-ele/.env.production
|
|
||||||
cat ./apps/web-ele/.env.production
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: ./.github/actions/setup-node
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: pnpm run build:ele
|
|
||||||
|
|
||||||
- name: Sync files
|
|
||||||
uses: SamKirkland/FTP-Deploy-Action@v4.4.0
|
|
||||||
with:
|
|
||||||
server: ${{ secrets.PRO_FTP_HOST }}
|
|
||||||
username: ${{ secrets.WEB_ELE_FTP_ACCOUNT }}
|
|
||||||
password: ${{ secrets.WEB_ELE_FTP_PASSWORD }}
|
|
||||||
local-dir: ./apps/web-ele/dist/
|
|
||||||
|
|
||||||
deploy-naive-ftp:
|
|
||||||
name: Deploy Push Naive Ftp
|
|
||||||
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') && github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Sed Config Base
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
sed -i "s#VITE_COMPRESS\s*=.*#VITE_COMPRESS = gzip#g" ./apps/web-naive/.env.production
|
|
||||||
sed -i "s#VITE_PWA\s*=.*#VITE_PWA = true#g" ./apps/web-naive/.env.production
|
|
||||||
cat ./apps/web-naive/.env.production
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: ./.github/actions/setup-node
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: pnpm run build:naive
|
|
||||||
|
|
||||||
- name: Sync files
|
|
||||||
uses: SamKirkland/FTP-Deploy-Action@v4.4.0
|
|
||||||
with:
|
|
||||||
server: ${{ secrets.PRO_FTP_HOST }}
|
|
||||||
username: ${{ secrets.WEB_NAIVE_FTP_ACCOUNT }}
|
|
||||||
password: ${{ secrets.WEB_NAIVE_FTP_PASSWORD }}
|
|
||||||
local-dir: ./apps/web-naive/dist/
|
|
||||||
|
|
||||||
rerun-on-failure:
|
|
||||||
name: Rerun on failure
|
|
||||||
needs:
|
|
||||||
- deploy-playground-ftp
|
|
||||||
- deploy-docs-ftp
|
|
||||||
- deploy-antd-ftp
|
|
||||||
- deploy-ele-ftp
|
|
||||||
- deploy-naive-ftp
|
|
||||||
if: failure() && fromJSON(github.run_attempt) < 10
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Retry ${{ fromJSON(github.run_attempt) }} of 10
|
|
||||||
env:
|
|
||||||
GH_REPO: ${{ github.repository }}
|
|
||||||
GH_TOKEN: ${{ github.token }}
|
|
||||||
run: gh workflow run rerun.yml -F run_id=${{ github.run_id }}
|
|
||||||
25
.github/workflows/draft.yml
vendored
25
.github/workflows/draft.yml
vendored
@ -1,25 +0,0 @@
|
|||||||
name: Release Drafter
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update_release_draft:
|
|
||||||
permissions:
|
|
||||||
# write permission is required to create a github release
|
|
||||||
contents: write
|
|
||||||
# write permission is required for autolabeler
|
|
||||||
# otherwise, read permission is required at least
|
|
||||||
pull-requests: write
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: release-drafter/release-drafter@v7
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
31
.github/workflows/issue-close-require.yml
vendored
31
.github/workflows/issue-close-require.yml
vendored
@ -1,31 +0,0 @@
|
|||||||
# 每天零点运行一次,它会检查所有带有 "need reproduction" 标签的 Issues。如果这些 Issues 在过去的 3 天内没有任何活动,它们将会被自动关闭。这有助于保持 Issue 列表的整洁,并且提醒用户在必要时提供更多的信息。
|
|
||||||
name: Issue Close Require
|
|
||||||
|
|
||||||
# 触发条件:每天零点
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
contents: write
|
|
||||||
issues: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
close-issues:
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
# 关闭未活动的 Issues
|
|
||||||
- name: Close Inactive Issues
|
|
||||||
uses: actions/stale@v9
|
|
||||||
with:
|
|
||||||
days-before-stale: -1 # Issues and PR will never be flagged stale automatically.
|
|
||||||
stale-issue-label: needs-reproduction # Label that flags an issue as stale.
|
|
||||||
only-labels: needs-reproduction # Only process these issues
|
|
||||||
days-before-issue-close: 3
|
|
||||||
ignore-updates: true
|
|
||||||
remove-stale-when-updated: false
|
|
||||||
close-issue-message: This issue was closed because it was open for 3 days without a valid reproduction.
|
|
||||||
close-issue-label: closed-by-action
|
|
||||||
46
.github/workflows/issue-labeled.yml
vendored
46
.github/workflows/issue-labeled.yml
vendored
@ -1,46 +0,0 @@
|
|||||||
name: Label Based Actions
|
|
||||||
|
|
||||||
on:
|
|
||||||
issues:
|
|
||||||
types: [labeled]
|
|
||||||
# pull_request:
|
|
||||||
# types: [labeled]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
reply-labeled:
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: remove enhancement pending
|
|
||||||
if: github.event.label.name == 'enhancement'
|
|
||||||
uses: actions-cool/issues-helper@v3
|
|
||||||
with:
|
|
||||||
actions: 'remove-labels'
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
issue-number: ${{ github.event.issue.number }}
|
|
||||||
labels: 'enhancement: pending triage'
|
|
||||||
|
|
||||||
- name: remove bug pending
|
|
||||||
if: github.event.label.name == 'bug'
|
|
||||||
uses: actions-cool/issues-helper@v3
|
|
||||||
with:
|
|
||||||
actions: 'remove-labels'
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
issue-number: ${{ github.event.issue.number }}
|
|
||||||
labels: 'bug: pending triage'
|
|
||||||
|
|
||||||
- name: needs reproduction
|
|
||||||
if: github.event.label.name == 'needs reproduction'
|
|
||||||
uses: actions-cool/issues-helper@v3
|
|
||||||
with:
|
|
||||||
actions: 'create-comment, remove-labels'
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
issue-number: ${{ github.event.issue.number }}
|
|
||||||
body: |
|
|
||||||
Hello @${{ github.event.issue.user.login }}. Please provide the complete reproduction steps and code. Issues labeled by `needs reproduction` will be closed if no activities in 3 days.
|
|
||||||
labels: 'bug: pending triage'
|
|
||||||
24
.github/workflows/lock.yml
vendored
24
.github/workflows/lock.yml
vendored
@ -1,24 +0,0 @@
|
|||||||
name: Lock Threads
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
action:
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: dessant/lock-threads@v5
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
issue-inactive-days: '14'
|
|
||||||
issue-lock-reason: ''
|
|
||||||
pr-inactive-days: '30'
|
|
||||||
pr-lock-reason: ''
|
|
||||||
process-only: 'issues, prs'
|
|
||||||
80
.github/workflows/release-tag.yml
vendored
80
.github/workflows/release-tag.yml
vendored
@ -1,80 +0,0 @@
|
|||||||
name: Create Release Tag
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*.*.*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
||||||
|
|
||||||
env:
|
|
||||||
HUSKY: '0'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Create Release
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [22]
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
# - name: Checkout code
|
|
||||||
# uses: actions/checkout@v6
|
|
||||||
# with:
|
|
||||||
# fetch-depth: 0
|
|
||||||
|
|
||||||
# - name: Install pnpm
|
|
||||||
# uses: pnpm/action-setup@v4
|
|
||||||
|
|
||||||
# - name: Use Node.js ${{ matrix.node-version }}
|
|
||||||
# uses: actions/setup-node@v4
|
|
||||||
# with:
|
|
||||||
# node-version: ${{ matrix.node-version }}
|
|
||||||
# cache: "pnpm"
|
|
||||||
|
|
||||||
# - name: Install dependencies
|
|
||||||
# run: pnpm install --frozen-lockfile
|
|
||||||
|
|
||||||
# - name: Test and Build
|
|
||||||
# run: |
|
|
||||||
# pnpm run test
|
|
||||||
# pnpm run build
|
|
||||||
|
|
||||||
- name: version
|
|
||||||
id: version
|
|
||||||
run: |
|
|
||||||
tag=${GITHUB_REF/refs\/tags\//}
|
|
||||||
version=${tag#v}
|
|
||||||
major=${version%%.*}
|
|
||||||
echo "tag=${tag}" >> $GITHUB_OUTPUT
|
|
||||||
echo "version=${version}" >> $GITHUB_OUTPUT
|
|
||||||
echo "major=${major}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- uses: release-drafter/release-drafter@v7
|
|
||||||
with:
|
|
||||||
version: ${{ steps.version.outputs.version }}
|
|
||||||
publish: true
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# - name: force update major tag
|
|
||||||
# run: |
|
|
||||||
# git tag v${{ steps.version.outputs.major }} ${{ steps.version.outputs.tag }} -f
|
|
||||||
# git push origin refs/tags/v${{ steps.version.outputs.major }} -f
|
|
||||||
|
|
||||||
# - name: Create Release for Tag
|
|
||||||
# id: release_tag
|
|
||||||
# uses: ncipollo/release-action@v1
|
|
||||||
# with:
|
|
||||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# generateReleaseNotes: "true"
|
|
||||||
# body: |
|
|
||||||
# > Please refer to [CHANGELOG.md](https://github.com/vbenjs/vue-vben-admin/blob/main/CHANGELOG.md) for details.
|
|
||||||
19
.github/workflows/rerun.yml
vendored
19
.github/workflows/rerun.yml
vendored
@ -1,19 +0,0 @@
|
|||||||
name: Rerun workflow
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
run_id:
|
|
||||||
description: The workflow id to relanch
|
|
||||||
required: true
|
|
||||||
jobs:
|
|
||||||
rerun:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: rerun ${{ inputs.run_id }}
|
|
||||||
env:
|
|
||||||
GH_REPO: ${{ github.repository }}
|
|
||||||
GH_TOKEN: ${{ github.token }}
|
|
||||||
run: |
|
|
||||||
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
|
|
||||||
gh run rerun ${{ inputs.run_id }} --failed
|
|
||||||
41
.github/workflows/semantic-pull-request.yml
vendored
41
.github/workflows/semantic-pull-request.yml
vendored
@ -1,41 +0,0 @@
|
|||||||
name: Semantic Pull Request
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- edited
|
|
||||||
- synchronize
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
main:
|
|
||||||
name: Semantic Pull Request
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Validate PR title
|
|
||||||
uses: amannn/action-semantic-pull-request@v5
|
|
||||||
with:
|
|
||||||
wip: true
|
|
||||||
subjectPattern: ^(?![A-Z]).+$
|
|
||||||
subjectPatternError: |
|
|
||||||
The subject "{subject}" found in the pull request title "{title}"
|
|
||||||
didn't match the configured pattern. Please ensure that the subject
|
|
||||||
doesn't start with an uppercase character.
|
|
||||||
requireScope: false
|
|
||||||
types: |
|
|
||||||
fix
|
|
||||||
feat
|
|
||||||
docs
|
|
||||||
style
|
|
||||||
refactor
|
|
||||||
perf
|
|
||||||
test
|
|
||||||
build
|
|
||||||
ci
|
|
||||||
chore
|
|
||||||
revert
|
|
||||||
types
|
|
||||||
release
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
19
.github/workflows/stale.yml
vendored
19
.github/workflows/stale.yml
vendored
@ -1,19 +0,0 @@
|
|||||||
name: 'Close stale issues'
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 1 * * *'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
stale:
|
|
||||||
if: github.repository == 'vbenjs/vue-vben-admin'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/stale@v9
|
|
||||||
with:
|
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days'
|
|
||||||
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days'
|
|
||||||
exempt-issue-labels: 'bug,enhancement'
|
|
||||||
days-before-stale: 60
|
|
||||||
days-before-close: 7
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
ports:
|
|
||||||
- port: 5555
|
|
||||||
onOpen: open-preview
|
|
||||||
tasks:
|
|
||||||
- init: npm i -g corepack && pnpm install
|
|
||||||
command: pnpm run dev:play
|
|
||||||
9
LICENSE
9
LICENSE
@ -1,9 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2024-present, Vben
|
|
||||||
|
|
||||||
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.
|
|
||||||
157
README.ja-JP.md
157
README.ja-JP.md
@ -1,157 +0,0 @@
|
|||||||
<div align="center">
|
|
||||||
<a href="https://github.com/anncwb/vue-vben-admin">
|
|
||||||
<img alt="VbenAdmin Logo" width="215" src="https://unpkg.com/@vbenjs/static-source@0.1.7/source/logo-v1.webp">
|
|
||||||
</a>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
[](LICENSE)
|
|
||||||
|
|
||||||
<h1>Vue Vben Admin</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
[](https://sonarcloud.io/summary/new_code?id=vbenjs_vue-vben-admin)    
|
|
||||||
|
|
||||||
**日本語** | [English](./README.md) | [中文](./README.zh-CN.md)
|
|
||||||
|
|
||||||
## 紹介
|
|
||||||
|
|
||||||
Vue Vben Adminは、最新の`vue3`、`vite`、`TypeScript`などの主流技術を使用して開発された、無料でオープンソースの中・後端テンプレートです。すぐに使える中・後端のフロントエンドソリューションとして、学習の参考にもなります。
|
|
||||||
|
|
||||||
## アップグレード通知
|
|
||||||
|
|
||||||
これは最新バージョン `5.0` であり、以前のバージョンとは互換性がありません。新しいプロジェクトを開始する場合は、最新バージョンを使用することをお勧めします。古いバージョンを表示したい場合は、[v2ブランチ](https://github.com/vbenjs/vue-vben-admin/tree/v2)を使用してください。
|
|
||||||
|
|
||||||
## 特徴
|
|
||||||
|
|
||||||
- **最新技術スタック**:Vue 3やViteなどの最先端フロントエンド技術で開発
|
|
||||||
- **TypeScript**:アプリケーション規模のJavaScriptのための言語
|
|
||||||
- **テーマ**:複数のテーマカラーが利用可能で、カスタマイズオプションも豊富
|
|
||||||
- **国際化**:完全な内蔵国際化サポート
|
|
||||||
- **権限管理**:動的ルートベースの権限生成ソリューションを内蔵
|
|
||||||
|
|
||||||
## プレビュー
|
|
||||||
|
|
||||||
- [Vben Admin](https://vben.pro/) - フルバージョンの中国語サイト
|
|
||||||
|
|
||||||
テストアカウント:vben/123456
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview1.png">
|
|
||||||
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview2.png">
|
|
||||||
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview3.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
### Gitpodを使用
|
|
||||||
|
|
||||||
Gitpod(GitHub用の無料オンライン開発環境)でプロジェクトを開き、すぐにコーディングを開始します。
|
|
||||||
|
|
||||||
[](https://gitpod.io/#https://github.com/vbenjs/vue-vben-admin)
|
|
||||||
|
|
||||||
## ドキュメント
|
|
||||||
|
|
||||||
[ドキュメント](https://doc.vben.pro/)
|
|
||||||
|
|
||||||
## インストールと使用
|
|
||||||
|
|
||||||
1. プロジェクトコードを取得
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git clone https://github.com/vbenjs/vue-vben-admin.git
|
|
||||||
```
|
|
||||||
|
|
||||||
2. 依存関係のインストール
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd vue-vben-admin
|
|
||||||
npm i -g corepack
|
|
||||||
pnpm install
|
|
||||||
```
|
|
||||||
|
|
||||||
3. 実行
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pnpm dev
|
|
||||||
```
|
|
||||||
|
|
||||||
4. ビルド
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pnpm build
|
|
||||||
```
|
|
||||||
|
|
||||||
## 変更ログ
|
|
||||||
|
|
||||||
[CHANGELOG](https://github.com/vbenjs/vue-vben-admin/releases)
|
|
||||||
|
|
||||||
## 貢献方法
|
|
||||||
|
|
||||||
ご参加をお待ちしておりますするか、Pull Requestを送信してください。
|
|
||||||
|
|
||||||
**Pull Request プロセス:**
|
|
||||||
|
|
||||||
1. コードをフォーク
|
|
||||||
2. 自分のブランチを作成:`git checkout -b feat/xxxx`
|
|
||||||
3. 変更をコミット:`git commit -am 'feat(function): add xxxxx'`
|
|
||||||
4. ブランチをプッシュ:`git push origin feat/xxxx`
|
|
||||||
5. `pull request`を送信
|
|
||||||
|
|
||||||
## Git貢献提出規則
|
|
||||||
|
|
||||||
参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 規則 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
|
|
||||||
|
|
||||||
- `feat` 新機能の追加
|
|
||||||
- `fix` 問題/バグの修正
|
|
||||||
- `style` コードスタイルに関連し、実行結果に影響しない
|
|
||||||
- `perf` 最適化/パフォーマンス向上
|
|
||||||
- `refactor` リファクタリング
|
|
||||||
- `revert` 変更の取り消し
|
|
||||||
- `test` テスト関連
|
|
||||||
- `docs` ドキュメント/注釈
|
|
||||||
- `chore` 依存関係の更新/スキャフォールディング設定の変更など
|
|
||||||
- `ci` 継続的インテグレーション
|
|
||||||
- `types` 型定義ファイルの変更
|
|
||||||
|
|
||||||
## ブラウザサポート
|
|
||||||
|
|
||||||
ローカル開発には `Chrome 80+` ブラウザを推奨します
|
|
||||||
|
|
||||||
モダンブラウザをサポートし、IEはサポートしません
|
|
||||||
|
|
||||||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
|
|
||||||
| :-: | :-: | :-: | :-: |
|
|
||||||
| 最新2バージョン | 最新2バージョン | 最新2バージョン | 最新2バージョン |
|
|
||||||
|
|
||||||
## メンテナー
|
|
||||||
|
|
||||||
[@Vben](https://github.com/anncwb)
|
|
||||||
|
|
||||||
## スター歴史
|
|
||||||
|
|
||||||
[](https://star-history.com/#vbenjs/vue-vben-admin&Date)
|
|
||||||
|
|
||||||
## 寄付
|
|
||||||
|
|
||||||
このプロジェクトが役に立つと思われた場合、作者にコーヒーを一杯おごってサポートを示すことができます!
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
<a style="display: block;width: 100px;height: 50px;line-height: 50px; color: #fff;text-align: center; background: #408aed;border-radius: 4px;" href="https://www.paypal.com/paypalme/cvvben">Paypal Me</a>
|
|
||||||
|
|
||||||
## 貢献者
|
|
||||||
|
|
||||||
<a href="https://openomy.app/github/vbenjs/vue-vben-admin" target="_blank" style="display: block; width: 100%;" align="center">
|
|
||||||
<img src="https://openomy.app/svg?repo=vbenjs/vue-vben-admin&chart=bubble&latestMonth=3" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" />
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="https://github.com/vbenjs/vue-vben-admin/graphs/contributors">
|
|
||||||
<img alt="Contributors" src="https://contrib.rocks/image?repo=vbenjs/vue-vben-admin" />
|
|
||||||
</a>
|
|
||||||
|
|
||||||
## Discord
|
|
||||||
|
|
||||||
- [Github Discussions](https://github.com/anncwb/vue-vben-admin/discussions)
|
|
||||||
|
|
||||||
## ライセンス
|
|
||||||
|
|
||||||
[MIT © Vben-2020](./LICENSE)
|
|
||||||
157
README.zh-CN.md
157
README.zh-CN.md
@ -1,157 +0,0 @@
|
|||||||
<div align="center">
|
|
||||||
<a href="https://github.com/anncwb/vue-vben-admin">
|
|
||||||
<img alt="VbenAdmin Logo" width="215" src="https://unpkg.com/@vbenjs/static-source@0.1.7/source/logo-v1.webp">
|
|
||||||
</a>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
[](LICENSE)
|
|
||||||
|
|
||||||
<h1>Vue Vben Admin</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
[](https://sonarcloud.io/summary/new_code?id=vbenjs_vue-vben-admin)    
|
|
||||||
|
|
||||||
**中文** | [English](./README.md) | [日本語](./README.ja-JP.md)
|
|
||||||
|
|
||||||
## 简介
|
|
||||||
|
|
||||||
Vue Vben Admin 是 Vue Vben Admin 的升级版本。作为一个免费开源的中后台模板,它采用了最新的 Vue 3、Vite、TypeScript 等主流技术开发,开箱即用,可用于中后台前端开发,也适合学习参考。
|
|
||||||
|
|
||||||
## 升级提示
|
|
||||||
|
|
||||||
该版本为最新版本 `5.0`,与其他版本不兼容,如果你是新项目,建议使用最新版本。如果你想查看旧版本,请使用 [v2 分支](https://github.com/vbenjs/vue-vben-admin/tree/v2)
|
|
||||||
|
|
||||||
## 特性
|
|
||||||
|
|
||||||
- **最新技术栈**:使用 Vue3/vite 等前端前沿技术开发
|
|
||||||
- **TypeScript**:应用程序级 JavaScript 的语言
|
|
||||||
- **主题**:提供多套主题色彩,可配置自定义主题
|
|
||||||
- **国际化**:内置完善的国际化方案
|
|
||||||
- **权限**:内置完善的动态路由权限生成方案
|
|
||||||
|
|
||||||
## 预览
|
|
||||||
|
|
||||||
- [Vben Admin](https://vben.pro/) - 完整版中文站点
|
|
||||||
|
|
||||||
测试账号:vben/123456
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview1.png">
|
|
||||||
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview2.png">
|
|
||||||
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview3.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
### 使用 Gitpod
|
|
||||||
|
|
||||||
在 Gitpod(适用于 GitHub 的免费在线开发环境)中打开项目,并立即开始编码。
|
|
||||||
|
|
||||||
[](https://gitpod.io/#https://github.com/vbenjs/vue-vben-admin)
|
|
||||||
|
|
||||||
## 文档
|
|
||||||
|
|
||||||
[文档地址](https://doc.vben.pro/)
|
|
||||||
|
|
||||||
## 安装使用
|
|
||||||
|
|
||||||
1. 获取项目代码
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git clone https://github.com/vbenjs/vue-vben-admin.git
|
|
||||||
```
|
|
||||||
|
|
||||||
2. 安装依赖
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd vue-vben-admin
|
|
||||||
npm i -g corepack
|
|
||||||
pnpm install
|
|
||||||
```
|
|
||||||
|
|
||||||
3. 运行
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pnpm dev
|
|
||||||
```
|
|
||||||
|
|
||||||
4. 打包
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pnpm build
|
|
||||||
```
|
|
||||||
|
|
||||||
## 更新日志
|
|
||||||
|
|
||||||
[CHANGELOG](https://github.com/vbenjs/vue-vben-admin/releases)
|
|
||||||
|
|
||||||
## 如何贡献
|
|
||||||
|
|
||||||
非常欢迎你的加入 或者提交一个 Pull Request。
|
|
||||||
|
|
||||||
**Pull Request 流程:**
|
|
||||||
|
|
||||||
1. Fork 代码
|
|
||||||
2. 创建自己的分支:`git checkout -b feature/xxxx`
|
|
||||||
3. 提交你的修改:`git commit -am 'feat(function): add xxxxx'`
|
|
||||||
4. 推送您的分支:`git push origin feature/xxxx`
|
|
||||||
5. 提交 `pull request`
|
|
||||||
|
|
||||||
## Git 贡献提交规范
|
|
||||||
|
|
||||||
参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
|
|
||||||
|
|
||||||
- `feat` 增加新功能
|
|
||||||
- `fix` 修复问题/BUG
|
|
||||||
- `style` 代码风格相关无影响运行结果的
|
|
||||||
- `perf` 优化/性能提升
|
|
||||||
- `refactor` 重构
|
|
||||||
- `revert` 撤销修改
|
|
||||||
- `test` 测试相关
|
|
||||||
- `docs` 文档/注释
|
|
||||||
- `chore` 依赖更新/脚手架配置修改等
|
|
||||||
- `ci` 持续集成
|
|
||||||
- `types` 类型定义文件更改
|
|
||||||
|
|
||||||
## 浏览器支持
|
|
||||||
|
|
||||||
本地开发推荐使用 `Chrome 80+` 浏览器
|
|
||||||
|
|
||||||
支持现代浏览器,不支持 IE
|
|
||||||
|
|
||||||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
|
|
||||||
| :-: | :-: | :-: | :-: |
|
|
||||||
| last 2 versions | last 2 versions | last 2 versions | last 2 versions |
|
|
||||||
|
|
||||||
## 维护者
|
|
||||||
|
|
||||||
[@Vben](https://github.com/anncwb)
|
|
||||||
|
|
||||||
## Star 历史
|
|
||||||
|
|
||||||
[](https://star-history.com/#vbenjs/vue-vben-admin&Date)
|
|
||||||
|
|
||||||
## 捐赠
|
|
||||||
|
|
||||||
如果你觉得这个项目对你有帮助,你可以帮作者买一杯咖啡表示支持!
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
<a style="display: block;width: 100px;height: 50px;line-height: 50px; color: #fff;text-align: center; background: #408aed;border-radius: 4px;" href="https://www.paypal.com/paypalme/cvvben">Paypal Me</a>
|
|
||||||
|
|
||||||
## 贡献者
|
|
||||||
|
|
||||||
<a href="https://openomy.app/github/vbenjs/vue-vben-admin" target="_blank" style="display: block; width: 100%;" align="center">
|
|
||||||
<img src="https://openomy.app/svg?repo=vbenjs/vue-vben-admin&chart=bubble&latestMonth=3" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" />
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="https://github.com/vbenjs/vue-vben-admin/graphs/contributors">
|
|
||||||
<img alt="Contributors" src="https://contrib.rocks/image?repo=vbenjs/vue-vben-admin" />
|
|
||||||
</a>
|
|
||||||
|
|
||||||
## Discord
|
|
||||||
|
|
||||||
- [Github Discussions](https://github.com/anncwb/vue-vben-admin/discussions)
|
|
||||||
|
|
||||||
## 许可证
|
|
||||||
|
|
||||||
[MIT © Vben-2020](./LICENSE)
|
|
||||||
91
cspell.json
91
cspell.json
@ -1,91 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
|
|
||||||
"version": "0.2",
|
|
||||||
"language": "en,en-US",
|
|
||||||
"allowCompoundWords": true,
|
|
||||||
"words": [
|
|
||||||
"acmr",
|
|
||||||
"antd",
|
|
||||||
"antdv",
|
|
||||||
"archiver",
|
|
||||||
"astro",
|
|
||||||
"axios",
|
|
||||||
"brotli",
|
|
||||||
"cascader",
|
|
||||||
"chatcmpl",
|
|
||||||
"clsx",
|
|
||||||
"dedup",
|
|
||||||
"defu",
|
|
||||||
"demi",
|
|
||||||
"dotenv",
|
|
||||||
"echart",
|
|
||||||
"echarts",
|
|
||||||
"ependencies",
|
|
||||||
"esbuild",
|
|
||||||
"esno",
|
|
||||||
"etag",
|
|
||||||
"execa",
|
|
||||||
"iconify",
|
|
||||||
"iconoir",
|
|
||||||
"intlify",
|
|
||||||
"isequal",
|
|
||||||
"jspm",
|
|
||||||
"lockb",
|
|
||||||
"lucide",
|
|
||||||
"minh",
|
|
||||||
"minw",
|
|
||||||
"mkdist",
|
|
||||||
"mockjs",
|
|
||||||
"naiveui",
|
|
||||||
"napi",
|
|
||||||
"nocheck",
|
|
||||||
"nolebase",
|
|
||||||
"noopener",
|
|
||||||
"noreferrer",
|
|
||||||
"nprogress",
|
|
||||||
"nuxt",
|
|
||||||
"organisation",
|
|
||||||
"oxfmt",
|
|
||||||
"oxlint",
|
|
||||||
"pinia",
|
|
||||||
"prefixs",
|
|
||||||
"publint",
|
|
||||||
"qrcode",
|
|
||||||
"reka",
|
|
||||||
"rollup",
|
|
||||||
"shadcn",
|
|
||||||
"sonner",
|
|
||||||
"sortablejs",
|
|
||||||
"styl",
|
|
||||||
"tabler",
|
|
||||||
"taze",
|
|
||||||
"tdesign",
|
|
||||||
"tsdown",
|
|
||||||
"tsgolint",
|
|
||||||
"turborepo",
|
|
||||||
"ui-kit",
|
|
||||||
"uicons",
|
|
||||||
"unplugin",
|
|
||||||
"unref",
|
|
||||||
"vben",
|
|
||||||
"vbenjs",
|
|
||||||
"vite",
|
|
||||||
"vitejs",
|
|
||||||
"vitepress",
|
|
||||||
"vitest",
|
|
||||||
"vnode",
|
|
||||||
"vueuse",
|
|
||||||
"yxxx"
|
|
||||||
],
|
|
||||||
"ignorePaths": [
|
|
||||||
"**/*-dist/**",
|
|
||||||
"**/*.log",
|
|
||||||
"**/*.spec.ts",
|
|
||||||
"**/*.test.ts",
|
|
||||||
"**/__tests__/**",
|
|
||||||
"**/dist/**",
|
|
||||||
"**/icons/**",
|
|
||||||
"**/node_modules/**",
|
|
||||||
"pnpm-lock.yaml"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -4,10 +4,8 @@ packages:
|
|||||||
- packages/*
|
- packages/*
|
||||||
- packages/@core/base/*
|
- packages/@core/base/*
|
||||||
- packages/@core/ui-kit/*
|
- packages/@core/ui-kit/*
|
||||||
- packages/@core/forward/*
|
|
||||||
- packages/@core/*
|
- packages/@core/*
|
||||||
- packages/effects/*
|
- packages/effects/*
|
||||||
- packages/business/*
|
|
||||||
- apps/*
|
- apps/*
|
||||||
- scripts/*
|
- scripts/*
|
||||||
|
|
||||||
|
|||||||
@ -1,38 +0,0 @@
|
|||||||
FROM node:22-slim AS builder
|
|
||||||
|
|
||||||
# --max-old-space-size
|
|
||||||
ENV PNPM_HOME="/pnpm"
|
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
|
||||||
ENV NODE_OPTIONS=--max-old-space-size=8192
|
|
||||||
ENV TZ=Asia/Shanghai
|
|
||||||
ENV CI=true
|
|
||||||
|
|
||||||
RUN npm i -g corepack
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# copy package.json and pnpm-lock.yaml to workspace
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
# 安装依赖
|
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
|
||||||
RUN pnpm run build --filter=\!./docs
|
|
||||||
|
|
||||||
RUN echo "Builder Success 🎉"
|
|
||||||
|
|
||||||
FROM nginx:stable-alpine AS production
|
|
||||||
|
|
||||||
# 配置 nginx
|
|
||||||
RUN echo "types { application/javascript js mjs; }" > /etc/nginx/conf.d/mjs.conf \
|
|
||||||
&& rm -rf /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
# 复制构建产物
|
|
||||||
COPY --from=builder /app/playground/dist /usr/share/nginx/html
|
|
||||||
|
|
||||||
# 复制 nginx 配置
|
|
||||||
COPY --from=builder /app/scripts/deploy/nginx.conf /etc/nginx/nginx.conf
|
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
# 启动 nginx
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
||||||
LOG_FILE=${SCRIPT_DIR}/build-local-docker-image.log
|
|
||||||
ERROR=""
|
|
||||||
IMAGE_NAME="vben-admin-local"
|
|
||||||
|
|
||||||
function stop_and_remove_container() {
|
|
||||||
# Stop and remove the existing container
|
|
||||||
docker stop ${IMAGE_NAME} >/dev/null 2>&1
|
|
||||||
docker rm ${IMAGE_NAME} >/dev/null 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
function remove_image() {
|
|
||||||
# Remove the existing image
|
|
||||||
docker rmi vben-admin-pro >/dev/null 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
function install_dependencies() {
|
|
||||||
# Install all dependencies
|
|
||||||
cd ${SCRIPT_DIR}
|
|
||||||
pnpm install || ERROR="install_dependencies failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
function build_image() {
|
|
||||||
# build docker
|
|
||||||
docker build ../../ -f Dockerfile -t ${IMAGE_NAME} || ERROR="build_image failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
function log_message() {
|
|
||||||
if [[ ${ERROR} != "" ]];
|
|
||||||
then
|
|
||||||
>&2 echo "build failed, Please check build-local-docker-image.log for more details"
|
|
||||||
>&2 echo "ERROR: ${ERROR}"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "docker image with tag '${IMAGE_NAME}' built sussessfully. Use below sample command to run the container"
|
|
||||||
echo ""
|
|
||||||
echo "docker run -d -p 8010:8080 --name ${IMAGE_NAME} ${IMAGE_NAME}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "Info: Stopping and removing existing container and image" | tee ${LOG_FILE}
|
|
||||||
stop_and_remove_container
|
|
||||||
remove_image
|
|
||||||
|
|
||||||
echo "Info: Installing dependencies" | tee -a ${LOG_FILE}
|
|
||||||
install_dependencies 1>> ${LOG_FILE} 2>> ${LOG_FILE}
|
|
||||||
|
|
||||||
if [[ ${ERROR} == "" ]]; then
|
|
||||||
echo "Info: Building docker image" | tee -a ${LOG_FILE}
|
|
||||||
build_image 1>> ${LOG_FILE} 2>> ${LOG_FILE}
|
|
||||||
fi
|
|
||||||
|
|
||||||
log_message | tee -a ${LOG_FILE}
|
|
||||||
@ -1,75 +0,0 @@
|
|||||||
|
|
||||||
#user nobody;
|
|
||||||
worker_processes 1;
|
|
||||||
|
|
||||||
#error_log logs/error.log;
|
|
||||||
#error_log logs/error.log notice;
|
|
||||||
#error_log logs/error.log info;
|
|
||||||
|
|
||||||
#pid logs/nginx.pid;
|
|
||||||
|
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
http {
|
|
||||||
include mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
types {
|
|
||||||
application/javascript js mjs;
|
|
||||||
text/css css;
|
|
||||||
text/html html;
|
|
||||||
}
|
|
||||||
|
|
||||||
sendfile on;
|
|
||||||
# tcp_nopush on;
|
|
||||||
|
|
||||||
#keepalive_timeout 0;
|
|
||||||
# keepalive_timeout 65;
|
|
||||||
|
|
||||||
# gzip on;
|
|
||||||
# gzip_buffers 32 16k;
|
|
||||||
# gzip_comp_level 6;
|
|
||||||
# gzip_min_length 1k;
|
|
||||||
# gzip_static on;
|
|
||||||
# gzip_types text/plain
|
|
||||||
# text/css
|
|
||||||
# application/javascript
|
|
||||||
# application/json
|
|
||||||
# application/x-javascript
|
|
||||||
# text/xml
|
|
||||||
# application/xml
|
|
||||||
# application/xml+rss
|
|
||||||
# text/javascript; #设置压缩的文件类型
|
|
||||||
# gzip_vary on;
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 8080;
|
|
||||||
server_name localhost;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
index index.html;
|
|
||||||
# Enable CORS
|
|
||||||
add_header 'Access-Control-Allow-Origin' '*';
|
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
||||||
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
|
|
||||||
if ($request_method = 'OPTIONS') {
|
|
||||||
add_header 'Access-Control-Max-Age' 1728000;
|
|
||||||
add_header 'Content-Type' 'text/plain charset=UTF-8';
|
|
||||||
add_header 'Content-Length' 0;
|
|
||||||
return 204;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
error_page 500 502 503 504 /50x.html;
|
|
||||||
|
|
||||||
location = /50x.html {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
6
tea.yaml
6
tea.yaml
@ -1,6 +0,0 @@
|
|||||||
# https://tea.xyz/what-is-this-file
|
|
||||||
---
|
|
||||||
version: 1.0.0
|
|
||||||
codeOwners:
|
|
||||||
- '0xB33cc732DFc15Cd39eF50Fb165c876E24417E48f'
|
|
||||||
quorum: 1
|
|
||||||
@ -1,184 +0,0 @@
|
|||||||
{
|
|
||||||
"folders": [
|
|
||||||
{
|
|
||||||
"name": "@vben/backend-mock",
|
|
||||||
"path": "apps/backend-mock"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/web-antd",
|
|
||||||
"path": "apps/web-antd"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/web-antdv-next",
|
|
||||||
"path": "apps/web-antdv-next"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/web-ele",
|
|
||||||
"path": "apps/web-ele"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/web-naive",
|
|
||||||
"path": "apps/web-naive"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/web-tdesign",
|
|
||||||
"path": "apps/web-tdesign"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/docs",
|
|
||||||
"path": "docs"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/commitlint-config",
|
|
||||||
"path": "internal/lint-configs/commitlint-config"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/eslint-config",
|
|
||||||
"path": "internal/lint-configs/eslint-config"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/oxfmt-config",
|
|
||||||
"path": "internal/lint-configs/oxfmt-config"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/oxlint-config",
|
|
||||||
"path": "internal/lint-configs/oxlint-config"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/stylelint-config",
|
|
||||||
"path": "internal/lint-configs/stylelint-config"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/node-utils",
|
|
||||||
"path": "internal/node-utils"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/tailwind-config",
|
|
||||||
"path": "internal/tailwind-config"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/tsconfig",
|
|
||||||
"path": "internal/tsconfig"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/vite-config",
|
|
||||||
"path": "internal/vite-config"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/design",
|
|
||||||
"path": "packages/@core/base/design"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/icons",
|
|
||||||
"path": "packages/@core/base/icons"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/shared",
|
|
||||||
"path": "packages/@core/base/shared"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/typings",
|
|
||||||
"path": "packages/@core/base/typings"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/composables",
|
|
||||||
"path": "packages/@core/composables"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/preferences",
|
|
||||||
"path": "packages/@core/preferences"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/form-ui",
|
|
||||||
"path": "packages/@core/ui-kit/form-ui"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/layout-ui",
|
|
||||||
"path": "packages/@core/ui-kit/layout-ui"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/menu-ui",
|
|
||||||
"path": "packages/@core/ui-kit/menu-ui"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/popup-ui",
|
|
||||||
"path": "packages/@core/ui-kit/popup-ui"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/shadcn-ui",
|
|
||||||
"path": "packages/@core/ui-kit/shadcn-ui"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben-core/tabs-ui",
|
|
||||||
"path": "packages/@core/ui-kit/tabs-ui"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/constants",
|
|
||||||
"path": "packages/constants"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/access",
|
|
||||||
"path": "packages/effects/access"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/common-ui",
|
|
||||||
"path": "packages/effects/common-ui"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/hooks",
|
|
||||||
"path": "packages/effects/hooks"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/layouts",
|
|
||||||
"path": "packages/effects/layouts"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/plugins",
|
|
||||||
"path": "packages/effects/plugins"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/request",
|
|
||||||
"path": "packages/effects/request"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/icons",
|
|
||||||
"path": "packages/icons"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/locales",
|
|
||||||
"path": "packages/locales"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/preferences",
|
|
||||||
"path": "packages/preferences"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/stores",
|
|
||||||
"path": "packages/stores"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/styles",
|
|
||||||
"path": "packages/styles"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/types",
|
|
||||||
"path": "packages/types"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/utils",
|
|
||||||
"path": "packages/utils"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/playground",
|
|
||||||
"path": "playground"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/turbo-run",
|
|
||||||
"path": "scripts/turbo-run"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@vben/vsh",
|
|
||||||
"path": "scripts/vsh"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user