1- <!-- eslint-disable vue/return-in-computed-property -->
21<script setup lang="ts">
32import type { NavItem , ParsedContent } from ' @nuxt/content'
43
@@ -64,32 +63,6 @@ const sourceUrl = computed(() =>
6463 : undefined ,
6564)
6665
67- // NOTE: remove when hands-on finished (will be held on 2024-10-19)
68- const THREAD_ID_MAP: Readonly <Record <string , number >> = {
69- ' 0.index.md' : 85 ,
70- ' 1.vue/1.index.md' : 68 ,
71- ' 1.vue/2.reactivity/index.md' : 71 ,
72- ' 1.vue/3.reactivity-2/index.md' : 72 ,
73- ' 1.vue/4.composition-api/index.md' : 73 ,
74- ' 1.vue/5.components/index.md' : 74 ,
75- ' 1.vue/6.summary/index.md' : 75 ,
76- ' 2.concepts/1.index.md' : 76 ,
77- ' 2.concepts/2.app-vue/index.md' : 77 ,
78- ' 2.concepts/3.routing/index.md' : 78 ,
79- ' 2.concepts/4.auto-imports/index.md' : 79 ,
80- ' 2.concepts/5.middleware/index.md' : 80 ,
81- ' 2.concepts/6.layout/index.md' : 81 ,
82- ' 2.concepts/7.rendering-modes/index.md' : 82 ,
83- ' 2.concepts/8.state-manegement/index.md' : 83 ,
84- ' 2.concepts/9.data-fetching/index.md' : 84 ,
85- }
86-
87- const threadUrl = computed <string | null >(() =>
88- page .value ?._file && THREAD_ID_MAP [page .value ._file ]
89- ? ` https://github.com/vuejs-jp/learn.nuxt.com/discussions/${THREAD_ID_MAP [page .value ._file ]} `
90- : null ,
91- )
92-
9366const docsEl = ref <HTMLElement | null >(null )
9467const router = useRouter ()
9568router .beforeEach (() => {
@@ -145,7 +118,7 @@ router.beforeEach(() => {
145118 />
146119 </div >
147120 </div >
148- <div flex = " ~ items-center gap-4 " border =" t base dashed" mt-8 p3 >
121+ <div border =" t base dashed" mt-8 p3 >
149122 <NuxtLink
150123 v-if =" sourceUrl"
151124 :to =" sourceUrl" target =" _blank"
@@ -156,28 +129,6 @@ router.beforeEach(() => {
156129 <div i-ph-note-pencil-duotone />
157130 Edit this page
158131 </NuxtLink >
159- <NuxtLink
160- v-if =" threadUrl"
161- :to =" threadUrl"
162- target =" _blank"
163- flex =" ~ items-center gap-2"
164- text-inherit op75
165- hover =" text-primary op100"
166- >
167- <div i-ph-arrow-square-out-fill />
168- Ask your question
169- </NuxtLink >
170- <!-- NOTE: remove when hands-on finished (will be held on 2024-10-19) -->
171- <NuxtLink
172- to =" https://forms.gle/3WcTUaNsUEqPK4R19"
173- target =" _blank"
174- flex =" ~ items-center gap-2"
175- text-inherit op75
176- hover =" text-primary op100"
177- >
178- <div i-ph-arrow-square-out-fill />
179- take a questionnaire
180- </NuxtLink >
181132 </div >
182133 </article >
183134 <!-- Navigration Dropdown -->
0 commit comments