Commit 342b0c5
authored
feat: Add tables search box (#8672)
<!-- 🎉 Thank you for making CloudQuery awesome by submitting a PR 🎉 -->
#### Summary
Fixes #8154.
The PR uses `getStaticProps` and `getStaticPaths` (the latter with an
empty paths result) to load all tables on demand.
Once the table link is accessed it is generated and cached forever.
Based on
https://github.com/shuding/nextra/blob/2f7f5516a66782ac3d6a02d427a34075504f4151/examples/swr-site/pages/remote/%5Bslug%5D.mdx?plain=1#L2.
Interesting bits are:
- `tables.ts` to create the search data
- `Search.tsx` search component
- `Makefile` changes to put the files in the right place and normalize
the links to match the Website sturcture
- `[table].mdx` files to generate the content on demand1 parent 9a680c6 commit 342b0c5
File tree
1,579 files changed
+6167
-4013
lines changed- .github/workflows
- plugins/source
- alicloud
- docs/tables
- awspricing
- docs/tables
- aws
- docs/tables
- azuredevops
- docs/tables
- azure
- docs/tables
- cloudflare
- docs/tables
- datadog
- docs/tables
- digitalocean
- docs/tables
- fastly
- docs/tables
- gandi
- docs/tables
- gcp
- docs/tables
- github
- docs/tables
- gitlab
- docs/tables
- hackernews
- docs/tables
- heroku
- docs/tables
- homebrew
- docs/tables
- hubspot
- docs/tables
- k8s
- docs/tables
- launchdarkly
- docs/tables
- mixpanel
- docs/tables
- okta
- docs/tables
- oracle
- docs/tables
- pagerduty
- docs/tables
- plausible
- docs/tables
- salesforce
- docs/tables
- shopify
- docs/tables
- slack
- docs/tables
- snyk
- docs/tables
- stripe
- docs/tables
- tailscale
- docs/tables
- terraform
- docs/tables
- vercel
- docs/tables
- scripts/table_diff
- changes
- website
- components
- pages
- docs/plugins/sources
- alicloud
- tables
- awspricing
- tables
- aws
- tables
- azuredevops
- tables
- azure
- tables
- cloudflare
- tables
- datadog
- tables
- digitalocean
- tables
- fastly
- tables
- gandi
- tables
- gcp
- tables
- github
- tables
- gitlab
- tables
- hackernews
- tables
- heroku
- tables
- homebrew
- tables
- hubspot
- tables
- k8s
- tables
- launchdarkly
- tables
- mixpanel
- tables
- okta
- tables
- oracle
- tables
- pagerduty
- tables
- plausible
- tables
- salesforce
- tables
- shopify
- tables
- slack
- tables
- snyk
- tables
- stripe
- tables
- tailscale
- tables
- terraform
- tables
- vercel
- tables
- tables
- alicloud
- awspricing
- aws
- azuredevops
- azure
- cloudflare
- datadog
- digitalocean
- fastly
- gandi
- gcp
- github
- gitlab
- hackernews
- heroku
- homebrew
- hubspot
- k8s
- launchdarkly
- mixpanel
- okta
- oracle
- pagerduty
- plausible
- salesforce
- shopify
- slack
- snyk
- stripe
- tailscale
- terraform
- vercel
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,579 files changed
+6167
-4013
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
0 commit comments