Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Oct 13, 2023
1 parent bb319b2 commit 688f88a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn build
- run: yarn lint
8 changes: 0 additions & 8 deletions src/terms/Term.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup lang="ts">
import { computed, ref } from "vue";
import { vOnClickOutside } from "@vueuse/components";
import useRootStore from "@/stores/root.store";
import type { Term } from "@/types/work";
import type { TermOption } from "./termOptions.composable";
Expand All @@ -26,13 +25,6 @@ const optionItems = computed(
.filter((op) => op.isApplicable !== false) || [],
);
function toggleMenu(event: Event) {
if (optionItems.value.length) {
event.preventDefault();
isMenuVisible.value = !isMenuVisible.value;
}
}
function dragStart() {
isMenuVisible.value = false;
store.dragged = { type: "term", data: props.data };
Expand Down
18 changes: 9 additions & 9 deletions src/views/Term.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ watchEffect(async () => {
<div class="flex-1">
<Labeled label="Bredare">
<ul class="my-1 flex flex-col gap-2">
<li v-for="term in parents" :key="term.name">
<router-link :to="`/subjects/${term.name}`">
<Term :data="term" />
<li v-for="broaderTerm in parents" :key="broaderTerm.name">
<router-link :to="`/subjects/${broaderTerm.name}`">
<Term :data="broaderTerm" />
</router-link>
</li>
</ul>
Expand All @@ -133,9 +133,9 @@ watchEffect(async () => {
<div class="flex-1">
<Labeled label="Underordnade">
<ul class="my-1 flex flex-col gap-2">
<li v-for="term in children" :key="term.name">
<router-link :to="`/subjects/${term.name}`">
<Term :data="term" />
<li v-for="narrowerTerm in children" :key="narrowerTerm.name">
<router-link :to="`/subjects/${narrowerTerm.name}`">
<Term :data="narrowerTerm" />
</router-link>
</li>
</ul>
Expand All @@ -145,9 +145,9 @@ watchEffect(async () => {
<div class="w-full">
<Labeled label="Relaterade">
<ul class="my-1 flex flex-wrap gap-2">
<li v-for="term in related" :key="term.name">
<router-link :to="`/subjects/${term.name}`">
<Term :data="term" />
<li v-for="relatedTerm in related" :key="relatedTerm.name">
<router-link :to="`/subjects/${relatedTerm.name}`">
<Term :data="relatedTerm" />
</router-link>
</li>
</ul>
Expand Down

0 comments on commit 688f88a

Please sign in to comment.