-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshowcaseData.js
490 lines (488 loc) · 18 KB
/
showcaseData.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
import React from "react";
const showcaseData = {
react: [
{
label: "Voice Search",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/web/examples/SearchBoxWithVoiceSearch?fontsize=14&hidenavigation=1&theme=dark&view=preview",
description: (
<div>
Set <code>showVoiceSearch</code> prop to true to enable voice search.
This adds a microphone icon to the search box, allowing users to
search using their voice instead of typing. This can be especially
useful for users on mobile devices or for those with accessibility
needs. Read more about this prop and see the whole SearchBox component
reference over{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/#showvoicesearch"
target="_blank"
>
here
</a>
.
</div>
),
},
{
label: "With Autosuggestion",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/web/examples/SearchBoxWithAutosuggestions?fontsize=14&hidenavigation=1&theme=dark&view=preview",
description: (
<div>
When{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/#autosuggest"
target="_blank"
>
<code>autosuggest</code>
</a>{" "}
prop is set to <code>true</code>, the SearchBox will query the index
for suggestions based on the user's input
</div>
),
},
{
label: "With Popular and Recent Suggestions",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/web/examples/SearchBoxWithPopularRecentSuggestions?fontsize=14&hidenavigation=1&theme=dark&view=preview",
description: (
<div>
<b>
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/#enablepopularsuggestions"
target="_blank"
>
Popular Suggestions:
</a>
</b>
<p>
You can also enable popular suggestions, which show frequently
searched terms. To do this, set the{" "}
<code>enablePopularSuggestions</code> prop to true. You can
customize the behavior of popular suggestions using the{" "}
<code>popularSuggestionsConfig</code> prop.
</p>
<b>
{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/#enablerecentsuggestions"
target="_blank"
>
Recent Suggestions:
</a>{" "}
</b>
<p>
You can also enable recent suggestions, which show the user's most
recent searches. To do this, set the{" "}
<code>enableRecentSuggestions</code> prop to true. You can customize
the behavior of recent suggestions using the{" "}
<code>recentSuggestionsConfig</code> prop.
</p>
</div>
),
},
{
label: "With InstantSearch",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/web/examples/SearchBoxWithInstantSearch?fontsize=14&hidenavigation=1&theme=dark&view=preview",
description: (
<div>
<p>
This can be enabled by setting the <code>autosuggest</code> prop to{" "}
<code>false</code>.
</p>
<p>
With instant search, users can quickly see which search terms are
yielding the most relevant results, and adjust their query as
needed.
</p>
</div>
),
},
{
label: "Suggestion as Pills",
description: (
<div>
Suggestions displayed as pills instead of a list. Use the{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/#render"
target="_blank"
>
<code>render</code>
</a>{" "}
prop to change the display of suggestions.
</div>
),
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/web/examples/SearchBoxWithPillSuggestions?fontsize=14&hidenavigation=1&theme=dark&view=preview",
},
{
label: "Focus Shortcut",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/web/examples/SearchBoxWithKeyboardShortcuts?fontsize=14&hidenavigation=1&theme=dark&view=preview",
description: (
<div>
<p>
The <code>focusShortcuts</code> prop allows you to define a list of
keyboard shortcuts that will focus the search box when pressed.
</p>
<p>
For example, if you want to focus the search box when the user
presses the <code>/</code> key, you can set{" "}
<code>focusShortcuts</code> to <code>['/']</code>. You can also
define more complex keyboard shortcuts, such as <code>SHIFT+A</code>
, by separating the key names with a <code>+</code>.
</p>
</div>
),
},
{
label: "Featured Suggestions",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/web/examples/SearchBoxWithFeaturedSuggestions?fontsize=14&hidenavigation=1&theme=dark&view=preview",
description: (
<div>
When,{" "}
<a href="https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/#enablefeaturedsuggestions">
<code>enable-featured-suggestions</code>
</a>{" "}
is set, shows a list of pre-defined suggestions. You need to pass{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/#searchboxid"
target="_blank"
>
<code>searchbox-id</code>
</a>{" "}
which contains the pre-defined suggestions to be shown.
</div>
),
},
{
label: "Q&A Simple",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/web/examples/AIAnswer?fontsize=14&hidenavigation=1&theme=dark&view=preview",
description: (
<div>
<p>
A simple AI QnA app using{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/react/search/aianswer/"
target="_blank"
>
AIAnswer
</a>{" "}
component
</p>
<p>
This app uses a IMDB movies dataset and answers your questions
regarding your favorite movie.
</p>
<p>
You can configure the component using <code>AIConfig</code>.
</p>
</div>
),
},
{
label: "Q&A with AIAnswer and follow-up",
description: (
<div>
<p>
A simple AI QnA app using{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/react/search/aianswer/"
target="_blank"
>
AIAnswer
</a>{" "}
component where you can also ask follow up questions.
</p>
<p>
This app uses a Rick and morty dataset and answers your questions
regarding your favorite characters.
</p>
<p>
You can configure the component using <code>AIConfig</code>.
</p>
</div>
),
iframeLink:
"https://codesandbox.io/embed/github/awesome-reactivesearch/qna-rick-and-morty/tree/main/?fontsize=14&hidenavigation=1&theme=dark&view=preview",
},
{
label: "SearchBox shows AIAnswer",
description: (
<div>
<p>
Find your answers for the questions asked using{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/react/search/aianswer/"
target="_blank"
>
SearchBox
</a>{" "}
component.
</p>
<p>
You can pass <code>enableAI</code> to <code>true</code>. You can use{" "}
<code>AIConfig</code> for customizing the documents and query
passed.
</p>
</div>
),
iframeLink:
"https://codesandbox.io/embed/github/awesome-reactivesearch/ask-reactivesearch/tree/main/?fontsize=14&hidenavigation=1&theme=dark&view=preview",
},
],
vue: [
{
label: "Voice Search",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/vue/examples/search-showcase/voice-search?embed=1&file=src%2FApp.vue&hideExplorer=1&view=preview",
description: (
<div>
Set <code>show-voice-search</code> prop to true to enable voice
search. This adds a microphone icon to the search box, allowing users
to search using their voice instead of typing. This can be especially
useful for users on mobile devices or for those with accessibility
needs. Read more about this prop and see the whole{" "}
<code>search-box</code> component reference over{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/#showvoicesearch"
target="_blank"
>
here
</a>
.
</div>
),
},
{
label: "With Autosuggestion",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/vue/examples/search-showcase/auto-suggestions?embed=1&file=src%2FApp.vue&hideExplorer=1&view=preview",
description: (
<div>
When{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/#autosuggest"
target="_blank"
>
<code>autosuggest</code>
</a>{" "}
prop is set to <code>true</code>, the <code>search-box</code> will
query the index for suggestions based on the user's input
</div>
),
},
{
label: "With Popular and Recent Suggestions",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/vue/examples/search-showcase/simple-search?embed=1&file=src%2FApp.vue&hideExplorer=1&view=preview",
description: (
<div>
<b>
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/#enablepopularsuggestions"
target="_blank"
>
Popular Suggestions:
</a>
</b>
<p>
You can also enable popular suggestions, which show frequently
searched terms. To do this, set the{" "}
<code>enable-popular-suggestions</code> prop to true. You can
customize the behavior of popular suggestions using the{" "}
<code>popular-suggestions-config</code> prop.
</p>
<b>
{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/#enablerecentsuggestions"
target="_blank"
>
Recent Suggestions:
</a>{" "}
</b>
<p>
You can also enable recent suggestions, which show the user's most
recent searches. To do this, set the{" "}
<code>enable-recent-suggestions</code> prop to true. You can
customize the behavior of recent suggestions using the{" "}
<code>recent-suggestions-config</code> prop.
</p>
</div>
),
},
{
label: "With InstantSearch",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/vue/examples/search-showcase/instant-search?embed=1&file=src%2FApp.vue&hideExplorer=1&view=preview",
description: (
<div>
<p>
This can be enabled by setting the{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/#autosuggest"
target="_blank"
>
<code>autosuggest</code>
</a>{" "}
prop to <code>false</code>.
</p>
<p>
With instant search, users can quickly see which search terms are
yielding the most relevant results, and adjust their query as
needed.
</p>
</div>
),
},
{
label: "Suggestion as Pills",
description: (
<div>
Suggestions displayed as pills instead of a list. Use the{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/#render"
target="_blank"
>
<code>#render</code>
</a>{" "}
slot to change the display of suggestions.
</div>
),
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/vue/examples/search-showcase/pill-suggestions?embed=1&file=src%2FApp.vue&hideExplorer=1&view=preview",
},
{
label: "Focus Shortcut",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/vue/examples/search-showcase/focus-shortcuts?embed=1&file=src%2FApp.vue&hideExplorer=1&view=preview",
description: (
<div>
<p>
The{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/#focusshortcuts"
target="_blank"
>
<code>focus-shortcuts</code>
</a>{" "}
prop allows you to define a list of keyboard shortcuts that will
focus the search box when pressed.
</p>
<p>
For example, if you want to focus the search box when the user
presses the <code>/</code> key, you can set{" "}
<code>focus-shortcuts</code> to <code>['/']</code>. You can also
define more complex keyboard shortcuts, such as <code>SHIFT+A</code>
, by separating the key names with a <code>+</code>.
</p>
</div>
),
},
{
label: "Featured Suggestions",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/feat/just-for-csb-000/packages/vue/examples/search-showcase/featured-suggestions?embed=1&file=src%2FApp.vue&hideExplorer=1&view=preview",
description: (
<div>
When,{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/#enablefeaturedsuggestions"
target="_blank"
>
<code>enable-featured-suggestions</code>
</a>{" "}
is set, shows a list of pre-defined suggestions. You need to pass{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/#searchboxid"
target="_blank"
>
<code>searchbox-id</code>
</a>{" "}
which contains the pre-defined suggestions to be shown.
</div>
),
},
{
label: "Q&A Simple",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/vue/examples/search-showcase/ai-answer-simple?embed=1&file=src%2FApp.vue&hideExplorer=1&view=preview",
description: (
<div>
<p>
A simple AI QnA app using{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/aianswer/"
target="_blank"
>
ai-answer
</a>{" "}
component
</p>
<p>
This app uses a IMDB movies dataset and answers your questions
regarding your favorite movie.
</p>
<p>
You can configure the component using <code>AIConfig</code>.
</p>
</div>
),
},
{
label: "Q&A with AIAnswer and follow-up",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/vue/examples/search-showcase/movie-search-ai-demo?embed=1&file=src%2FApp.vue&hideExplorer=1&view=preview",
description: (
<div>
<p>
A simple AI QnA app using{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/aianswer/"
target="_blank"
>
ai-answer
</a>{" "}
component where you can also ask follow up questions.
</p>
<p>
This app uses a Rick and morty dataset and answers your questions
regarding your favorite characters.
</p>
<p>
You can configure the component using <code>AIConfig</code>.
</p>
</div>
),
},
{
label: "SearchBox shows AIAnswer",
iframeLink:
"https://codesandbox.io/embed/github/appbaseio/reactivesearch/tree/next/packages/vue/examples/search-showcase/searchbox-inline-ai-response?embed=1&file=src%2FApp.vue&hideExplorer=1&view=preview",
description: (
<div>
<p>
Find your answers for the questions asked using{" "}
<a
href="https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/#enableai"
target="_blank"
>
search-box
</a>{" "}
component.
</p>
<p>
You can pass <code>enable-ai</code> to <code>true</code>. You can
use <code>AIConfig</code> for customizing the documents and query
passed.
</p>
</div>
),
},
],
};
export default showcaseData;