diff --git a/.github/ISSUE_TEMPLATE/1_bug_report.yml b/.github/ISSUE_TEMPLATE/1_bug_report.yml deleted file mode 100644 index d181c38..0000000 --- a/.github/ISSUE_TEMPLATE/1_bug_report.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: '🐛 反馈缺陷 Bug Report' -description: '反馈一个问题缺陷 | Report an bug' -title: '[Bug] ' -labels: '🐛 Bug' -body: - - type: dropdown - attributes: - label: '💻 系统环境 | Operating System' - options: - - Windows - - macOS - - Ubuntu - - Other Linux - - Other - validations: - required: true - - type: dropdown - attributes: - label: '🌐 浏览器 | Browser' - options: - - Chrome - - Edge - - Safari - - Firefox - - Other - validations: - required: true - - type: textarea - attributes: - label: '🐛 问题描述 | Bug Description' - description: A clear and concise description of the bug. - validations: - required: true - - type: textarea - attributes: - label: '🚦 期望结果 | Expected Behavior' - description: A clear and concise description of what you expected to happen. - - type: textarea - attributes: - label: '📷 复现步骤 | Recurrence Steps' - description: A clear and concise description of how to recurrence. - - type: textarea - attributes: - label: '📝 补充信息 | Additional Information' - description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here. diff --git a/.github/ISSUE_TEMPLATE/2_feature_request.yml b/.github/ISSUE_TEMPLATE/2_feature_request.yml deleted file mode 100644 index edcf7d0..0000000 --- a/.github/ISSUE_TEMPLATE/2_feature_request.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: '🌠 功能需求 Feature Request' -description: '需求或建议 | Suggest an idea' -title: '[Request] ' -labels: '🌠 Feature Request' -body: - - type: textarea - attributes: - label: '🥰 需求描述 | Feature Description' - description: Please add a clear and concise description of the problem you are seeking to solve with this feature request. - validations: - required: true - - type: textarea - attributes: - label: '🧐 解决方案 | Proposed Solution' - description: Describe the solution you'd like in a clear and concise manner. - validations: - required: true - - type: textarea - attributes: - label: '📝 补充信息 | Additional Information' - description: Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/3_question.yml b/.github/ISSUE_TEMPLATE/3_question.yml deleted file mode 100644 index f989f7d..0000000 --- a/.github/ISSUE_TEMPLATE/3_question.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: '😇 疑问或帮助 Help Wanted' -description: '疑问或需要帮助 | Need help' -title: '[Question] ' -labels: '😇 Help Wanted' -body: - - type: textarea - attributes: - label: '🧐 问题描述 | Proposed Solution' - description: A clear and concise description of the proplem. - validations: - required: true - - type: textarea - attributes: - label: '📝 补充信息 | Additional Information' - description: Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/4_other.md b/.github/ISSUE_TEMPLATE/4_other.md deleted file mode 100644 index 215dd1f..0000000 --- a/.github/ISSUE_TEMPLATE/4_other.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: '📝 其他 Other' -about: '其他问题 | Other issues' -title: '' -labels: '' -assignees: '' ---- diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index a73b6cf..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,17 +0,0 @@ -#### 💻 变更类型 | Change Type - - - -- \[ ] ✨ feat -- \[ ] 🐛 fix -- \[ ] 💄 style -- \[ ] 🔨 chore -- \[ ] 📝 docs - -#### 🔀 变更说明 | Description of Change - - - -#### 📝 补充信息 | Additional Information - - diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml deleted file mode 100644 index eea0d46..0000000 --- a/.github/workflows/auto-merge.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Dependabot Auto Merge -on: - pull_request_target: - types: [labeled, edited] - -jobs: - merge: - if: contains(github.event.pull_request.labels.*.name, 'dependencies') - name: Dependabot Auto Merge - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install pnpm - uses: pnpm/action-setup@v4 - - - name: Setup Node.js environment - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install deps - run: pnpm install - - - name: Merge - uses: ahmadnassri/action-dependabot-auto-merge@v2 - with: - command: merge - target: minor - github-token: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/issue-check-inactive.yml b/.github/workflows/issue-check-inactive.yml deleted file mode 100644 index d37c4c3..0000000 --- a/.github/workflows/issue-check-inactive.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Issue Check Inactive - -on: - schedule: - - cron: '0 0 */15 * *' - -permissions: - contents: read - -jobs: - issue-check-inactive: - permissions: - issues: write # for actions-cool/issues-helper to update issues - pull-requests: write # for actions-cool/issues-helper to update PRs - runs-on: ubuntu-latest - steps: - - name: check-inactive - uses: actions-cool/issues-helper@v3 - with: - actions: 'check-inactive' - inactive-label: 'Inactive' - inactive-day: 30 diff --git a/.github/workflows/issue-close-require.yml b/.github/workflows/issue-close-require.yml deleted file mode 100644 index 68d6b6c..0000000 --- a/.github/workflows/issue-close-require.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Issue Close Require - -on: - schedule: - - cron: '0 0 * * *' - -permissions: - contents: read - -jobs: - issue-close-require: - permissions: - issues: write # for actions-cool/issues-helper to update issues - pull-requests: write # for actions-cool/issues-helper to update PRs - runs-on: ubuntu-latest - steps: - - name: need reproduce - uses: actions-cool/issues-helper@v3 - with: - actions: 'close-issues' - labels: '✅ Fixed' - inactive-day: 3 - body: | - Since the issue was labeled with `✅ Fixed`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. - - 由于该 issue 被标记为已修复,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 - - name: need reproduce - uses: actions-cool/issues-helper@v3 - with: - actions: 'close-issues' - labels: '🤔 Need Reproduce' - inactive-day: 3 - body: | - Since the issue was labeled with `🤔 Need Reproduce`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. - - 由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 - - name: need reproduce - uses: actions-cool/issues-helper@v3 - with: - actions: 'close-issues' - labels: "🙅🏻‍♀️ WON'T DO" - inactive-day: 3 - body: | - Since the issue was labeled with `🙅🏻‍♀️ WON'T DO`, and no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. - - 由于该 issue 被标记为暂不处理,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 diff --git a/.github/workflows/issue-remove-inactive.yml b/.github/workflows/issue-remove-inactive.yml deleted file mode 100644 index dbe42dd..0000000 --- a/.github/workflows/issue-remove-inactive.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Issue Remove Inactive - -on: - issues: - types: [edited] - issue_comment: - types: [created, edited] - -permissions: - contents: read - -jobs: - issue-remove-inactive: - permissions: - issues: write # for actions-cool/issues-helper to update issues - pull-requests: write # for actions-cool/issues-helper to update PRs - runs-on: ubuntu-latest - steps: - - name: remove inactive - if: github.event.issue.state == 'open' && github.actor == github.event.issue.user.login - uses: actions-cool/issues-helper@v3 - with: - actions: 'remove-labels' - issue-number: ${{ github.event.issue.number }} - labels: 'Inactive' diff --git a/.github/workflows/publish-release-assets.yml b/.github/workflows/publish-release-assets.yml deleted file mode 100644 index b54e949..0000000 --- a/.github/workflows/publish-release-assets.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: Publish Release Assets - -on: - release: - types: [published] - -permissions: - contents: write - -jobs: - publish: - name: Publish Release Assets - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Setup Bun - uses: oven-sh/setup-bun@v1 - with: - bun-version: 'latest' - - - name: Cache Bun dependencies - uses: actions/cache@v3 - with: - path: | - ~/.bun - key: ${{ runner.os }}-bun-cache-${{ hashFiles('**/bun.lockb') }} - restore-keys: | - ${{ runner.os }}-bun-cache- - - - name: Install deps - run: bun install --cache - - - name: Build - run: bun run build - - - name: Run publish script - run: | - chmod +x scripts/publish.sh - ./scripts/publish.sh - - - name: Upload tar.gz file to release - uses: softprops/action-gh-release@v2 - with: - files: | - out/ppanel-admin-web.tar.gz - out/ppanel-user-web.tar.gz - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log in to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Install jq - run: sudo apt-get install -y jq - - - name: Extract version from package.json - id: version - run: echo "PPANEL_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV - - - name: Build and push Docker image for ppanel-admin-web - uses: docker/build-push-action@v6 - with: - context: . - file: ./docker/ppanel-admin-web/Dockerfile - platforms: linux/amd64,linux/arm64 - push: true - tags: | - ${{ secrets.DOCKER_USERNAME }}/ppanel-admin-web:latest - ${{ secrets.DOCKER_USERNAME }}/ppanel-admin-web:${{ env.PPANEL_VERSION }} - - - name: Build and push Docker image for ppanel-user-web - uses: docker/build-push-action@v6 - with: - context: . - file: ./docker/ppanel-user-web/Dockerfile - platforms: linux/amd64,linux/arm64 - push: true - tags: | - ${{ secrets.DOCKER_USERNAME }}/ppanel-user-web:latest - ${{ secrets.DOCKER_USERNAME }}/ppanel-user-web:${{ env.PPANEL_VERSION }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 2dab160..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Build and Release - -on: - push: - branches: [main, next, beta] - -permissions: - contents: write - -jobs: - release: - name: Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Setup Bun - uses: oven-sh/setup-bun@v1 - with: - bun-version: 'latest' - - - name: Cache Bun dependencies - uses: actions/cache@v3 - with: - path: | - ~/.bun - node_modules - key: ${{ runner.os }}-bun-cache-${{ hashFiles('**/bun.lockb') }} - restore-keys: | - ${{ runner.os }}-bun-cache- - - - name: Install deps - run: bun install - - - name: Build - run: bun run build - - - name: Release - id: release - run: bun run release - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 353034a..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "eslint.workingDirectories": [ - { - "mode": "auto" - } - ], - "explorer.fileNesting.enabled": true, - "explorer.fileNesting.patterns": { - "*.ts": "${capture}.js", - "*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts", - "*.jsx": "${capture}.js", - "*.tsx": "${capture}.ts", - "README.md": "*.md, LICENSE" - } -}