-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate demo applications to playground (#4116)
* chore: detail adjustment * refactor: Migrate demo applications to playground * perf: logic optimization * chore: update docs * chore: update docs
- Loading branch information
Showing
138 changed files
with
3,190 additions
and
675 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,42 @@ | ||
# Contributing Guide | ||
# Vben Admin Contributing Guide | ||
|
||
1. Make sure you put things in the right category! | ||
2. Always add your items to the end of a list. To be fair, the order is first-come-first-serve. | ||
3. If you think something belongs in the wrong category, or think there needs to be a new category, feel free to edit things too. | ||
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,46 @@ on: | |
- main | ||
|
||
jobs: | ||
deploy-push-ftp: | ||
deploy-push-playground-ftp: | ||
name: Deploy Push Ftp | ||
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
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 run build | ||
|
||
- name: Sync Playground files | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ${{ secrets.PRO_FTP_HOST }} | ||
username: ${{ secrets.WEB_PLAYGROUND_FTP_ACCOUNT }} | ||
password: ${{ secrets.WEB_PLAYGROUND_FTP_PWSSWORD }} | ||
local-dir: ./playground/dist/ | ||
|
||
- name: Sync Docs files | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ${{ secrets.PRO_FTP_HOST }} | ||
username: ${{ secrets.WEBSITE_FTP_ACCOUNT }} | ||
password: ${{ secrets.WEBSITE_FTP_PASSWORD }} | ||
local-dir: ./docs/.vitepress/dist/ | ||
|
||
deploy-push-antd-ftp: | ||
name: Deploy Push Ftp | ||
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') | ||
runs-on: ubuntu-latest | ||
|
@@ -22,47 +61,79 @@ jobs: | |
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 | ||
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 | ||
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 | ||
|
||
- name: Sync Web Antd files | ||
- name: Sync files | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ${{ secrets.PRO_FTP_HOST }} | ||
username: ${{ secrets.WEB_ANTD_FTP_ACCOUNT }} | ||
password: ${{ secrets.WEB_ANTD_FTP_PASSWORD }} | ||
local-dir: ./apps/web-antd/dist/ | ||
|
||
- name: Sync Web Naive files | ||
uses: SamKirkland/[email protected] | ||
deploy-push-ele-ftp: | ||
name: Deploy Push Ftp | ||
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
server: ${{ secrets.PRO_FTP_HOST }} | ||
username: ${{ secrets.WEB_NAIVE_FTP_ACCOUNT }} | ||
password: ${{ secrets.WEB_NAIVE_FTP_PASSWORD }} | ||
local-dir: ./apps/web-naive/dist/ | ||
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: Sync Web Ele files | ||
- name: Setup Node | ||
uses: ./.github/actions/setup-node | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Sync files | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ${{ secrets.PRO_FTP_HOST }} | ||
username: ${{ secrets.WEB_ELE_FTP_ACCOUNT }} | ||
password: ${{ secrets.WEB_ELE_FTP_PASSWORD }} | ||
local-dir: ./apps/web-ele/dist/ | ||
|
||
- name: Sync Docs files | ||
deploy-push-naive-ftp: | ||
name: Deploy Push Ftp | ||
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
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 | ||
|
||
- name: Sync files | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ${{ secrets.PRO_FTP_HOST }} | ||
username: ${{ secrets.WEBSITE_FTP_ACCOUNT }} | ||
password: ${{ secrets.WEBSITE_FTP_PASSWORD }} | ||
local-dir: ./docs/.vitepress/dist/ | ||
username: ${{ secrets.WEB_NAIVE_FTP_ACCOUNT }} | ||
password: ${{ secrets.WEB_NAIVE_FTP_PASSWORD }} | ||
local-dir: ./apps/web-naive/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# 应用标题 | ||
VITE_APP_TITLE=Vben Admin | ||
VITE_APP_TITLE=Vben Admin Antd | ||
|
||
# 应用命名空间,用于缓存、store等功能的前缀,确保隔离 | ||
VITE_APP_NAMESPACE=vben-web-antd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# 端口号 | ||
VITE_PORT=5555 | ||
VITE_PORT=5666 | ||
|
||
VITE_BASE=/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './core'; | ||
export * from './demos'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.