From cdcdfea6f99d05594e56370460d72f1a5e9125e9 Mon Sep 17 00:00:00 2001 From: unitwk Date: Sun, 20 Aug 2023 22:59:52 +0800 Subject: [PATCH] Refactor: project structure --- .github/ISSUE_TEMPLATE/-bug-report-.md | 16 ----- .github/ISSUE_TEMPLATE/-feature-request--.md | 10 --- .github/ISSUE_TEMPLATE/-question-.md | 10 --- .github/github.txt | 0 .github/workflows/codeql.yml | 72 -------------------- .github/workflows/dependency-review.yml | 20 ------ .github/workflows/node.js.yml | 30 -------- start-frontend.sh | 2 + start-backend.sh => start-panel.sh | 2 +- 9 files changed, 3 insertions(+), 159 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/-bug-report-.md delete mode 100644 .github/ISSUE_TEMPLATE/-feature-request--.md delete mode 100644 .github/ISSUE_TEMPLATE/-question-.md delete mode 100755 .github/github.txt delete mode 100755 .github/workflows/codeql.yml delete mode 100755 .github/workflows/dependency-review.yml delete mode 100755 .github/workflows/node.js.yml create mode 100755 start-frontend.sh rename start-backend.sh => start-panel.sh (50%) diff --git a/.github/ISSUE_TEMPLATE/-bug-report-.md b/.github/ISSUE_TEMPLATE/-bug-report-.md deleted file mode 100644 index 18669ffb..00000000 --- a/.github/ISSUE_TEMPLATE/-bug-report-.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -name: "[Bug report]" -about: Bug report -title: '' -labels: '' -assignees: '' - ---- - -**MCSManager Version** - -**System Info/Version** - -**Node Version** - -**Step** diff --git a/.github/ISSUE_TEMPLATE/-feature-request--.md b/.github/ISSUE_TEMPLATE/-feature-request--.md deleted file mode 100644 index 28d48493..00000000 --- a/.github/ISSUE_TEMPLATE/-feature-request--.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: "[Feature request] " -about: Feature request -title: '' -labels: Feature Request -assignees: '' - ---- - - diff --git a/.github/ISSUE_TEMPLATE/-question-.md b/.github/ISSUE_TEMPLATE/-question-.md deleted file mode 100644 index 4a3e96eb..00000000 --- a/.github/ISSUE_TEMPLATE/-question-.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: "[Question]" -about: Create a question -title: '' -labels: '' -assignees: '' - ---- - - diff --git a/.github/github.txt b/.github/github.txt deleted file mode 100755 index e69de29b..00000000 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100755 index cecd7f80..00000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,72 +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: [ "master" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "master" ] - schedule: - - cron: '34 21 * * 6' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'javascript' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # 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. - - # 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 - - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # ℹī¸ 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 the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml deleted file mode 100755 index fe461b42..00000000 --- a/.github/workflows/dependency-review.yml +++ /dev/null @@ -1,20 +0,0 @@ -# Dependency Review Action -# -# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. -# -# Source repository: https://github.com/actions/dependency-review-action -# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement -name: 'Dependency Review' -on: [pull_request] - -permissions: - contents: read - -jobs: - dependency-review: - runs-on: ubuntu-latest - steps: - - name: 'Checkout Repository' - uses: actions/checkout@v3 - - name: 'Dependency Review' - uses: actions/dependency-review-action@v2 diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100755 index 778a4ebf..00000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [14.x, 16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm install - - run: npm run dev diff --git a/start-frontend.sh b/start-frontend.sh new file mode 100755 index 00000000..0a5d8b3a --- /dev/null +++ b/start-frontend.sh @@ -0,0 +1,2 @@ +cd frontend +npm run dev \ No newline at end of file diff --git a/start-backend.sh b/start-panel.sh similarity index 50% rename from start-backend.sh rename to start-panel.sh index c9a4947f..51fbc540 100755 --- a/start-backend.sh +++ b/start-panel.sh @@ -1,2 +1,2 @@ -cd backend +cd panel npm run dev \ No newline at end of file