1
- <!-- eslint-disable vue/return-in-computed-property -->
2
1
<script setup lang="ts">
3
2
import type { NavItem , ParsedContent } from ' @nuxt/content'
4
3
@@ -64,32 +63,6 @@ const sourceUrl = computed(() =>
64
63
: undefined ,
65
64
)
66
65
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
-
93
66
const docsEl = ref <HTMLElement | null >(null )
94
67
const router = useRouter ()
95
68
router .beforeEach (() => {
@@ -145,7 +118,7 @@ router.beforeEach(() => {
145
118
/>
146
119
</div >
147
120
</div >
148
- <div flex="~ items-center gap-4" border="t base dashed" mt-8 p3>
121
+ <div border =" t base dashed" mt-8 p3 >
149
122
<NuxtLink
150
123
v-if =" sourceUrl"
151
124
:to =" sourceUrl" target =" _blank"
@@ -156,28 +129,6 @@ router.beforeEach(() => {
156
129
<div i-ph-note-pencil-duotone />
157
130
Edit this page
158
131
</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>
181
132
</div >
182
133
</article >
183
134
<!-- Navigration Dropdown -->
0 commit comments