diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1eb159c..df59daf 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,8 +2,8 @@ name: Build and Lint on: [pull_request] jobs: - test: - name: Build and Lint + build: + name: Build runs-on: ubuntu-latest steps: - name: Checkout repository @@ -24,5 +24,24 @@ jobs: - name: Build run: pnpm build + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v2.4.0 + + - name: Install Node v20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - name: Install dependencies + run: pnpm install + - name: Lint - run: pnpm lint:ci + run: pnpm lint:ci \ No newline at end of file diff --git a/app.vue b/app.vue index 74e48b0..a90bf36 100644 --- a/app.vue +++ b/app.vue @@ -16,11 +16,13 @@ function logout() { cookie.value = null; user.value = null; } -try { - user.value = await GqlGetMe(); -} catch { - /* empty */ -} +user.value = await GqlGetMe().catch(() => {}); +const route = useRoute(); +const navs: { name: string; path: string }[] = [ + { name: "home", path: "/" }, + { name: "minecraft", path: "/minecraft" }, + { name: "about", path: "https://greasymac.fandom.com/wiki/GreasyMac_Wiki" }, +];