From f1e5732079c41ccc8173c4f3a767808d69215c23 Mon Sep 17 00:00:00 2001 From: PadBro Date: Fri, 26 Dec 2025 12:31:25 +0100 Subject: [PATCH] feat(ticket): read own tickets --- .github/workflows/ci.yml | 26 +- .github/workflows/release.yml | 13 +- .gitignore | 2 + app/components/card/application.vue | 2 +- app/components/card/bot-token.vue | 2 +- app/components/card/ticket.vue | 2 +- app/components/ticket/action-cell.vue | 4 +- app/layouts/default.vue | 11 +- app/pages/discord/callback.vue | 2 +- app/pages/index.vue | 8 +- app/pages/ticket/index.vue | 2 +- app/pages/ticket/transcript/[ticket_id].vue | 2 +- app/utils/helper.ts | 11 +- package.json | 5 +- yarn.lock | 20495 +++++++++++------- 15 files changed, 12509 insertions(+), 8078 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55e0a29..be5f9b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,11 +23,16 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: v22.12.0 - - name: Create .npmrc + node-version: v24.12.0 + - name: Enable Corepack + run: corepack enable + - name: Create .yarnrc.yml run: | - echo "@OrdinarySMP:registry=https://npm.pkg.github.com" > .npmrc - echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc + echo "nodeLinker: node-modules" > .yarnrc.yml + echo "npmScopes:" >> .yarnrc.yml + echo " OrdinarySMP:" >> .yarnrc.yml + echo " npmRegistryServer: "https://npm.pkg.github.com"" >> .yarnrc.yml + echo " npmAuthToken: ${{ secrets.GITHUB_TOKEN }}" >> .yarnrc.yml - name: Install commitlint run: yarn add commitlint@latest conventional-changelog-conventionalcommits @commitlint/config-conventional - name: Validate current commit (last commit) with commitlint @@ -45,11 +50,16 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: v22.12.0 - - name: Create .npmrc + node-version: v24.12.0 + - name: Enable Corepack + run: corepack enable + - name: Create .yarnrc.yml run: | - echo "@OrdinarySMP:registry=https://npm.pkg.github.com" > .npmrc - echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc + echo "nodeLinker: node-modules" > .yarnrc.yml + echo "npmScopes:" >> .yarnrc.yml + echo " OrdinarySMP:" >> .yarnrc.yml + echo " npmRegistryServer: "https://npm.pkg.github.com"" >> .yarnrc.yml + echo " npmAuthToken: ${{ secrets.GITHUB_TOKEN }}" >> .yarnrc.yml - name: Install dependencies run: yarn install --frozen-lockfile - name: Run typecheck diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2740737..b8676d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,11 +15,16 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: v22.12.0 - - name: Create .npmrc + node-version: v24.12.0 + - name: Enable Corepack + run: corepack enable + - name: Create .yarnrc.yml run: | - echo "@OrdinarySMP:registry=https://npm.pkg.github.com" > .npmrc - echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc + echo "nodeLinker: node-modules" > .yarnrc.yml + echo "npmScopes:" >> .yarnrc.yml + echo " OrdinarySMP:" >> .yarnrc.yml + echo " npmRegistryServer: "https://npm.pkg.github.com"" >> .yarnrc.yml + echo " npmAuthToken: ${{ secrets.GITHUB_TOKEN }}" >> .yarnrc.yml - name: Install dependencies run: yarn install --frozen-lockfile - name: Run build diff --git a/.gitignore b/.gitignore index 3f5a3bb..84a0396 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,5 @@ logs .env.* !.env.example .npmrc +.yarnrc.yml +.yarn diff --git a/app/components/card/application.vue b/app/components/card/application.vue index 9f21fbc..ae12623 100644 --- a/app/components/card/application.vue +++ b/app/components/card/application.vue @@ -17,7 +17,7 @@ const { data } = await useApi>(