Skip to content

Commit 9dce460

Browse files
Indicate which pages are stubs in the index (#41)
1 parent 995601b commit 9dce460

File tree

1 file changed

+40
-17
lines changed

1 file changed

+40
-17
lines changed

docs/faq/index.md

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,42 @@
1+
<script setup>
2+
import { h, resolveComponent } from 'vue'
3+
const Badge = resolveComponent('Badge')
4+
const Stub = () => h(
5+
Badge,
6+
{
7+
text: 'stub',
8+
title: 'Stub: The answer to this question is currently incomplete',
9+
type: 'warning'
10+
}
11+
)
12+
</script>
13+
114
# FAQ
215

316
This FAQ aims to answer some of the most common programming questions that we get on the [Vue Land Discord server](https://chat.vuejs.org/).
417

518
It is not a substitute for the official Vue documentation, available at <https://vuejs.org/>. Those docs include an FAQ for Vue itself at <https://vuejs.org/about/faq.html>.
619

720
::: warning Work in progress
8-
Only about half the questions have complete answers. Those questions are listed in the sidebar on the left. The other questions are just stubs.
21+
Only about half the questions have complete answers. Those questions are listed in the sidebar on the left. The other answers are just stubs.
922
:::
1023

1124
---
1225

1326
<!-- Learning -->
1427

1528
- [How should I learn Vue?](learning-vue)
16-
- [Can you show me a large, open-source Vue project that I can study?](large-example-applications)
29+
- [Can you show me a large, open-source Vue project that I can study?](large-example-applications){.stub} <Stub />
1730

1831
---
1932

2033
<!-- New project decisions -->
2134

2235
- [Which Vue component library should I use?](component-library)
2336
- [What folder structure should I use for my Vue project?](folder-structure)
24-
- [Can I use Nuxt features without using Nuxt?](nuxt-features)
37+
- [Can I use Nuxt features without using Nuxt?](nuxt-features){.stub} <Stub />
2538
- [Do Vue 2 components work with Vue 3?](vue-2-components-in-vue-3)
26-
- [I need users to stay logged in if they refresh the page. Should I use cookies or local storage?](cookies-local-storage)
39+
- [I need users to stay logged in if they refresh the page. Should I use cookies or local storage?](cookies-local-storage){.stub} <Stub />
2740

2841
---
2942

@@ -46,16 +59,16 @@ Only about half the questions have complete answers. Those questions are listed
4659

4760
<!-- Vue code patterns -->
4861

49-
- [How should my components communicate?](component-communication)
50-
- [How do I call a method in a child component?](invoking-child-methods)
51-
- [Why are my template refs not working?](template-refs)
52-
- [How can I share state with a composable?](sharing-state)
62+
- [How should my components communicate?](component-communication){.stub} <Stub />
63+
- [How do I call a method in a child component?](invoking-child-methods){.stub} <Stub />
64+
- [Why are my template refs not working?](template-refs){.stub} <Stub />
65+
- [How can I share state with a composable?](sharing-state){.stub} <Stub />
5366
- [How can I pass all slots through to a child component?](forwarding-slots)
54-
- [How can I make Vue 'wait' for the data before rendering?](delaying-rendering)
55-
- [Why isn't `v-html` rendering my components?](components-in-v-html)
67+
- [How can I make Vue 'wait' for the data before rendering?](delaying-rendering){.stub} <Stub />
68+
- [Why isn't `v-html` rendering my components?](components-in-v-html){.stub} <Stub />
5669
- [Can I create a local variable in my template?](template-local-variables)
57-
- [Can I use JavaScript classes for my reactive data?](reactivity-and-classes)
58-
- [Why does selecting one item select them all?](independent-selections)
70+
- [Can I use JavaScript classes for my reactive data?](reactivity-and-classes){.stub} <Stub />
71+
- [Why does selecting one item select them all?](independent-selections){.stub} <Stub />
5972
- [How do I create unique element ids with Vue?](unique-element-ids)
6073
- [Why can't I use the current route in `App.vue`?](accessing-the-route)
6174

@@ -69,20 +82,30 @@ Only about half the questions have complete answers. Those questions are listed
6982

7083
<!-- Debugging -->
7184

72-
- [Why does my logging show an empty/missing value after I've loaded the data?](logging-after-loading)
73-
- [Why can I see my data in console logging, but if I try to access it in my code I get `undefined` or an error?](logging-is-live)
85+
- [Why does my logging show an empty/missing value after I've loaded the data?](logging-after-loading){.stub} <Stub />
86+
- [Why can I see my data in console logging, but if I try to access it in my code I get `undefined` or an error?](logging-is-live){.stub} <Stub />
7487
- [Why is my `FormData` empty?](empty-formdata)
7588

7689
---
7790

7891
<!-- Common Vue misunderstandings -->
7992

80-
- [When to use `reactive()` and `ref()`?](reactive-ref)
81-
- [Why are the new value and old value the same in my watcher?](deep-watcher-values)
93+
- [When to use `reactive()` and `ref()`?](reactive-ref){.stub} <Stub />
94+
- [Why are the new value and old value the same in my watcher?](deep-watcher-values){.stub} <Stub />
8295

8396
---
8497

8598
<!-- Common tooling problems -->
8699

87-
- [Why do my dynamic images not work?](dynamic-images)
100+
- [Why do my dynamic images not work?](dynamic-images){.stub} <Stub />
88101
- [Why are my dynamic Tailwind classes not working?](missing-tailwind-classes)
102+
103+
<style scoped>
104+
.stub {
105+
opacity: 0.6;
106+
}
107+
108+
.stub:hover {
109+
opacity: 1;
110+
}
111+
</style>

0 commit comments

Comments
 (0)