-
Notifications
You must be signed in to change notification settings - Fork 5
/
vue-sidebars.js
97 lines (92 loc) · 2.16 KB
/
vue-sidebars.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
const started = [
"overview",
"installation",
"quick-start",
"devtools",
"typescript",
"graphql",
].map((item) => "getstarted/" + item);
const guide = [
"important-defaults",
"queries",
"query-keys",
"query-functions",
"network-mode",
"parallel-queries",
"dependent-queries",
"background-fetching-indicators",
"window-focus-refetching",
"disabling-queries",
"query-retries",
"paginated-queries",
"infinite-queries",
"placeholder-query-data",
"initial-query-data",
"prefetching",
"mutations",
"query-invalidation",
"invalidation-from-mutations",
"updates-from-mutation-responses",
"optimistic-updates",
"query-cancellation",
"scroll-restoration",
"filters",
"ssr",
"caching",
"default-query-function",
"suspense",
"custom-client",
"custom-logger",
"testing",
"does-this-replace-client-state",
].map((item) => "guides&concepts/" + item);
const communities = ["lukemorales-query-key-factory"].map(
(item) => "community/" + item
);
const plugins = [
"broadcastQueryClient",
"createAsyncStoragePersister",
"createSyncStoragePersister",
"persistQueryClient",
].map((item) => "plugins/" + item);
const reference = ["useQuery", "useQueries"].map((item) => "reference/" + item);
module.exports = {
zhCN: {
准备开始: started,
"指南&概念": guide,
范例: [
{
type: "link",
label: "官方示例",
href: "https://react-query.tanstack.com/examples/simple",
},
{
type: "link",
label: "国内内容(Bilibili)",
href: "https://search.bilibili.com/all?keyword=react-query",
},
],
"社区教程/博客": [
{
type: "link",
label: "TkDodo's Blog",
href: "https://react-query.tanstack.com/community/tkdodos-blog",
},
{
type: "link",
label: "入门教程(掘金)",
href: "https://juejin.cn/post/6937833844837974053",
},
...communities,
],
插件: plugins,
API参考: [
{
type: "link",
label: "等待翻译...",
href: "https://react-query.tanstack.com/reference/useQuery",
},
"doc_template",
],
},
};