diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 0038680..b98ded1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -6,14 +6,7 @@ body: - type: textarea attributes: label: Describe the bug - description: A clear and concise description of the bug. - validations: - required: true - - - type: textarea - attributes: - label: Expected behavior - description: Describe what should have happened when you encountered the bug. + description: A clear and concise description of the bug. Describe what should have happened when you encountered the bug. validations: required: true diff --git a/.github/ISSUE_TEMPLATE/new_feature.yml b/.github/ISSUE_TEMPLATE/new_feature.yml index 70a1b2e..a8d6f6a 100644 --- a/.github/ISSUE_TEMPLATE/new_feature.yml +++ b/.github/ISSUE_TEMPLATE/new_feature.yml @@ -14,5 +14,3 @@ body: attributes: label: Rationale description: Why should this be added? - validations: - required: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 407fcb2..7d21cb8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,30 @@ jobs: !.github/workflows/ci.yml **.md + # typecheck: + # needs: files + # timeout-minutes: 10 + # runs-on: ubuntu-latest + # name: Typecheck + + # steps: + # - name: Checkout + # uses: actions/checkout@v4 + + # - name: Set Node.js version to 22 + # uses: actions/setup-node@v4 + # with: + # node-version: 22 + + # - name: Install dependencies + # run: npm install + + # - name: Build + # run: npm run build + + # - name: Typecheck + # run: npm run typecheck + lint: needs: files timeout-minutes: 10 diff --git a/app.vue b/app.vue index efe0681..808f3c0 100644 --- a/app.vue +++ b/app.vue @@ -63,17 +63,15 @@ onMounted(() => { document.body.style.display = "block"; const isTemporaryUser = (!localStorage.getItem("uid") || !localStorage.getItem("token")) && Object.keys(route.query).length !== 0; - console.log(`isTemp: ${!isTemporaryUser}`); userStore.init(!isTemporaryUser); if (!isTemporaryUser) return; const stop = watch( () => route.query, - (queries) => { + async (queries) => { if (Object.keys(queries).length !== 0) return; - console.log(`queries: ${Object.keys(queries).length !== 0}`); stop(); - void userStore.getUser(true); + await userStore.getUser(true); } ); }); diff --git a/components/Blueprints/Card.vue b/components/Blueprints/Card.vue index 8664e8e..dd7eea3 100644 --- a/components/Blueprints/Card.vue +++ b/components/Blueprints/Card.vue @@ -50,6 +50,7 @@ class="peer fo-input grow border-neutral-300 bg-white text-left text-black opacity-0 hover:border-neutral-400 focus:opacity-100 dark:border-neutral-700 dark:hover:border-neutral-600" placeholder="Tech Points" @blur="updateTp" + @keypress="handleEnter" />

@@ -200,7 +201,14 @@ const isGolden = computed(() => props.ship.techPoints >= ("modules" in props.shi function updateTp() { if (!tpInput.value) return; - techPoints.value = Number(tpInput.value.value); + techPoints.value = Number(tpInput.value.value.replace(".", "")); +} + +function handleEnter(event: KeyboardEvent) { + if (event.key !== "Enter") return; + + tpInput.value?.blur(); + updateTp(); } function unlock() { diff --git a/components/Blueprints/Category.vue b/components/Blueprints/Category.vue index 87b4d02..80e7e19 100644 --- a/components/Blueprints/Category.vue +++ b/components/Blueprints/Category.vue @@ -1,17 +1,55 @@