diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..b4dc325 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,54 @@ +name: Lint + +permissions: read-all + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + permissions: + contents: read + packages: read + pull-requests: write + checks: write + strategy: + matrix: + node-version: [22] + steps: + - uses: actions/checkout@v2 + + - name: Get PNPM version from package.json + id: pnpm-version + shell: bash + run: echo "pnpm_version=$(node -p "require('./package.json').engines.pnpm")" >> "$GITHUB_OUTPUT" + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: ${{ steps.pnpm-version.outputs.pnpm_version }} + + - 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 + + - name: Gather lint results + run: pnpm run lint:report + continue-on-error: true + + - name: Upload lint results + uses: ataylorme/eslint-annotate-action@v3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + report-json: "eslint_report.json" diff --git a/.github/workflows/nuxt-deploy.yml b/.github/workflows/nuxt-deploy.yml index e98563c..981f042 100644 --- a/.github/workflows/nuxt-deploy.yml +++ b/.github/workflows/nuxt-deploy.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [ 20 ] + node-version: [22] steps: - uses: actions/checkout@v3 - run: corepack enable @@ -22,7 +22,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: 'pnpm' + cache: "pnpm" - run: pnpm install - run: NUXT_APP_BASE_URL=/web/ pnpm dlx nuxt build --preset github_pages - name: Upload artifact @@ -35,8 +35,8 @@ jobs: needs: build # Grant GITHUB_TOKEN the permissions required to make a Pages deployment permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source # Deploy to the github_pages environment environment: name: github_pages diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..932826f --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +.idea +.output diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b4bfed3 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + "plugins": ["prettier-plugin-tailwindcss"] +} diff --git a/components/CatchSection.vue b/components/CatchSection.vue index fb1f346..dc06e0d 100644 --- a/components/CatchSection.vue +++ b/components/CatchSection.vue @@ -4,10 +4,8 @@
-
-

- Testing. -

+
+

Testing.

@@ -24,18 +22,12 @@ Downloads - - diff --git a/components/NavBar.vue b/components/NavBar.vue index c3c134d..5e08c4b 100644 --- a/components/NavBar.vue +++ b/components/NavBar.vue @@ -5,134 +5,168 @@
logo - Mockbukkit + Mockbukkit -
-