The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Making the documentation a lot clearer. As Antoine says - perfection is attained, not when there is nothing more to add, but when there is nothing left to take away
Paul Copplestone182959b34615
diff --git a/web/docs/common/DummyData.mdx b/web/docs/common/DummyData.mdxnew file mode 100644index 00000000000..05e404d988b--- /dev/null+++ b/web/docs/common/DummyData.mdx@@ -0,0 +1,29 @@++<div class="DummyData">+<div class="">+<strong>Countries</strong>++| id | name | iso2 | continent |+| --- | ------------- | :--: | ------------- |+| 76 | Brazil | BR | South America |+| 156 | China | CN | Asia |+| 250 | France | FR | Europe |+| 554 | New Zealand | NZ | Oceania |+| 566 | Nigeria | NG | Africa |+| 840 | United States | US | North America |++</div>+<div class="">+<strong>Cities</strong>++| name | country_id |+| -------------- | :--------: |+| Rio de Janeiro | 76 |+| Beijing | 156 |+| Paris | 250 |+| Auckland | 554 |+| Lagos | 556 |+| San Francisco | 840 |++</div>+</div>diff --git a/web/docs/library/delete.mdx b/web/docs/library/delete.mdxindex 43114431dfd..bf063cd5368 100644--- a/web/docs/library/delete.mdx+++ b/web/docs/library/delete.mdx@@ -1,6 +1,6 @@---id: delete-title: 'Delete Rows'+title: 'Deleting Rows'---import Tabs from '@theme/Tabs';diff --git a/web/docs/library/get.mdx b/web/docs/library/get.mdxindex c52950069e5..551f3edf31d 100644--- a/web/docs/library/get.mdx+++ b/web/docs/library/get.mdx@@ -1,62 +1,195 @@---id: get-title: 'Read Rows'+title: 'Reading your data'----import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';+import Tabs from '@theme/Tabs'+import TabItem from '@theme/TabItem'+import DummyData from '../common/DummyData.mdx'We will be using these tables as reference for our examples:++<DummyData />++### Getting your data++This example shows how to get all the countries in our database.++<!-- prettier-ignore -->+```js {7-8}+import { createClient } from '@supabase/supabase-js'++const supabase = createClient('https://world.supabase.io', '1a2b-3c4d-5e6f-7g8h')++const getCities = async () => {+ try {+ let cities = await supabase+ .get('cities')+ return cities+ } catch (error) {+ console.log('Error: ', error)+ }+}+```++Calling `getCities()` will return the following response:+```json-{- "users": [- { "Id": 1, "fullName": "Richard Hendrix", "companyId": "Pied Piper" },- { "Id": 2, "fullName": "Gavin Belson", "companyId": "Hooli" }- ],- "companies": [- { "Id": 1, "name": "Pied Piper", "employeeCount": 10 },- { "Id": 2, "name": "Hooli", "employeeCount": 1000 },- { "Id": 3, "name": "Yao Net", "employeeCount": 100 },- { "Id": 4, "name": "See Food App", "employeeCount": null }- ],+[+ { "name": "Rio de Janeiro", "country_id": 76 },+ { "name": "Beijing", "country_id": 156 },+ { "name": "Paris", "country_id": 250 },+ { "name": "Auckland", "country_id": 554 },+ { "name": "Lagos", "country_id": 556 },+ { "name": "San Francisco", "country_id": 840 }+]+```++### Getting specific columns++Get all cities but only return the name.++<!-- prettier-ignore -->+```js {9}+import { createClient } from '@supabase/supabase-js'++const supabase = createClient('https://world.supabase.io', '1a2b-3c4d-5e6f-7g8h')++const getCities = async () => {+ try {+ let cities = await supabase+ .get('cities')+ .select('name')+ return cities+ } catch (error) {+ console.log('Error: ', error)+ }}```-<Tabs- defaultValue="nodeJs"- values={[- { label: 'Node.js', value: 'nodeJs', },- { label: 'Python', value: 'py', },- ]-}>-<TabItem value="nodeJs">+Calling `getCities()` will return the following response:-```js-supabase.get(tableName, options?)+```json+[+ { "name": "Rio de Janeiro" },+ { "name": "Beijing" },+ { "name": "Paris" },+ { "name": "Auckland" },+ { "name": "Lagos" },+ { "name": "San Francisco" }+]+```++### Query foreign tables++Get all users and return all information about them and the companies they belong to.++<!-- prettier-ignore -->+```js {9-15}+import { createClient } from '@supabase/supabase-js'+const supabase = createClient('https://world.supabase.io', '1a2b-3c4d-5e6f-7g8h')++const getCountries = async () => {+ try {+ let countries = await supabase+ .get('countries')+ .select(`+ name,+ cities {+ name+ }+ `)+ return countries+ } catch (error) {+ console.log('Error: ', error)+ }+}```-Given the `options?` set (if any), this **asynchronously** gets all rows from the specified `tableName` in your database.-</TabItem>-<TabItem value="py">-```py-# TODO+<details>+ <summary><b>Show response</b></summary>+ <div>++Calling `getCountries()` will return the following response:++```json+[+ {+ "name": "Brazil",+ "cities": [+ { "name": "Rio de Janeiro" }+ ]+ },+ {+ "name": "China",+ "cities": [+ { "name": "Beijing" }+ ]+ },+ {+ "name": "France",+ "cities": [+ { "name": "Paris" }+ ]+ },+ {+ "name": "New Zealand",+ "cities": [+ { "name": "Auckland" }+ ]+ },+ {+ "name": "Nigeria",+ "cities": [+ { "name": "Lagos" }+ ]+ },+ {+ "name": "United States",+ "cities": [+ { "name": "San Francisco" }+ ]+ }+]```-</TabItem>-</Tabs>++ </div>+</details>+++---++---++---++--++```js+supabase.get(tableName, options?)++```++Given the `options?` set (if any), this **asynchronously** gets all rows from the specified `tableName` in your database.## Method arguments+### tableName+`required` stringName of table in the database that will be read from.### options+`optional` objectAll available options and examples it their usage can be found [here](../library/options).## Additional filtering+### Select+```jsselect(columnQuery)```@@ -64,22 +197,27 @@ select(columnQuery)Returns an array of rows with only columns specified in `columnQuery`.#### Method arguments+##### columnQuery+`required` array+```js// From the 'users' table-`+;`Id,fullName,companyId````+String containing column names that are found in the table. The pattern/ syntax would be as shown above.If a foreign key constraint exists between this table and another, information fromthe other table can be requested as well. The pattern/ syntax is shown below:+```js// From the 'users' table-`+;`fullName,companies {name,@@ -87,99 +225,18 @@ the other table can be requested as well. The pattern/ syntax is shown below:}````-Instead of stating the column name with the foreign key constraint, the name of the other table is mentioned instead++Instead of stating the column name with the foreign key constraint, the name of the other table is mentioned insteadalong with the desired column names from that table.##### Example-Click [here](../library/get#using-select) to view some examples.+Click [here](../library/get#using-select) to view some examples.### Common Filters-Other common filters can be found [here](../library/filters).--## Example--### Generic-Get all companies and return all columns available-```js {3}-const getCompanies = async () => {- try {- let companies = await supabase.get("companies")- return companies- } catch (error) {- console.log("Error: ", error)- }-}-```-The following will be returned with status code `200 OK`:-```json-[- { "Id": 1, "name": "Pied Piper", "employeeCount": 10 },- { "Id": 2, "name": "Hooli", "employeeCount": 1000 },- { "Id": 3, "name": "Yao Net", "employeeCount": 100 },- { "Id": 4, "name": "See Food App", "employeeCount": null }-]-```-### Using Select-Get all users but only return the column fullName.-```js {3}-const getUsers = async () => {- try {- let users = await supabase.get("users").select("fullName")- return users- } catch (error) {- console.log("Error: ", error)- }-}-```-The following will be returned with the status code `200 OK`:-```json-[- { "fullName": "Richard Hendrix" },- { "fullName": "Gavin Belson" }-]-```---### Using Select with Foreign Key Constraints-Get all users and return all information about them and the companies they belong to.-```js {3-10}-const getUsers = async () => {- try {- let users = await supabase.get("users")- .select(`- fullName,- companies {- name,- employeeCount- }- `)- return users- } catch (error) {- console.log("Error: ", error)- }-}-```-The following will be returned with the status code `200 OK`:-```json-[- {- "fullName": "Richard Hendrix",- "companies": {- "name": "Pied Piper",- "employeeCount": 10- }- },- {- "fullName": "Gavin Belson",- "companies": {- "name": "Hooli",- "employeeCount": 1000- }- }-]-```+Other common filters can be found [here](../library/filters).## Responses-Aside from the status code `200 OK`, other common responses can be found [here](../library/responses).\ No newline at end of file++Aside from the status code `200 OK`, other common responses can be found [here](../library/responses).diff --git a/web/docs/library/getting-started.mdx b/web/docs/library/getting-started.mdxindex 601ca391ac1..3a8d2b5c1ff 100755--- a/web/docs/library/getting-started.mdx+++ b/web/docs/library/getting-started.mdx@@ -3,73 +3,44 @@ id: getting-startedtitle: Getting Started----import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';--## Including Supabase-<Tabs- defaultValue="nodeJs"- values={[- { label: 'Node.js', value: 'nodeJs', },- { label: 'Python', value: 'py', },- ]-}>-<TabItem value="nodeJs">-```js-import { createClient } from "@supabase/supabase-js";-```-</TabItem>--<TabItem value="py">+## Installing-```py-from supabase import createClient+```bash+npm install --save @supabase/supabase-js+# OR+yarn install @supabase/supabase-js```-</TabItem>-</Tabs>## Initializing-<Tabs- defaultValue="nodeJs"- values={[- { label: 'Node.js', value: 'nodeJs', },- { label: 'Python', value: 'py', },- ]-}>-<TabItem value="nodeJs">-```js+import { createClient } from '@supabase/supabase-js'++// Create a single supbase client for interacting with your databaseconst supabase = createClient("https://xyzcompany.supabase.io", "1a2b-3c4d-5e6f-7g8h");```-</TabItem>-<TabItem value="py">-```py-supabase = createClient("https://xyzcompany.supabase.io", "1a2b-3c4d-5e6f-7g8h")-```-</TabItem>-</Tabs>-### createClient(supabaseURL, supabaseKey, options?)-This is used to initialize an instance of a `createClient` object. From here, you would be able-invoke all the other features and functions provided by Supabase.+## Reference++### `createClient()`-### Method arguments-#### supabaseURL-`required` string+```js+createClient('supabaseURL', 'supabaseKey', OPTIONS)+```++###### supabaseURL `:string`Your unique Supabase URL.-#### supabaseKey-`required` string+###### supabaseKey `:string`Your unique Supabase Key.-#### options-`optional` object-- @tbc+###### OPTIONS `:object?`+@todo+| Parameter | Data Type | Description || ----------- | --------- | ----------- |diff --git a/web/docs/library/patch.mdx b/web/docs/library/patch.mdxindex d27efd1fbc5..e29da71eb6b 100644--- a/web/docs/library/patch.mdx+++ b/web/docs/library/patch.mdx@@ -1,6 +1,6 @@---id: patch-title: 'Update Rows'+title: 'Updating your data'---import Tabs from '@theme/Tabs';diff --git a/web/docs/library/post.mdx b/web/docs/library/post.mdxindex 8c6265c17a7..be5ac80f777 100644--- a/web/docs/library/post.mdx+++ b/web/docs/library/post.mdx@@ -1,6 +1,6 @@---id: post-title: 'Create Rows'+title: 'Creating data'---import Tabs from '@theme/Tabs';diff --git a/web/docs/library/subscribe.mdx b/web/docs/library/subscribe.mdxindex 1959d4b26f4..8ecca6bbe5d 100644--- a/web/docs/library/subscribe.mdx+++ b/web/docs/library/subscribe.mdx@@ -1,203 +1,198 @@---id: subscribe-title: "Subscribe to Realtime"+title: 'Listen for realtime changes'----import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';+import DummyData from '../common/DummyData.mdx'-Our library makes it simple to listen to changes in your database in realtime.+Our library makes it simple to listen to changes in your database in realtime.-We will be using these tables as reference for our examples:-```json-{- "companies": [- { "Id": 1, "name": "Pied Piper", "employeeCount": 10 },- { "Id": 2, "name": "Hooli", "employeeCount": 1000 },- { "Id": 3, "name": "Yao Net", "employeeCount": 100 },- { "Id": 4, "name": "See Food App", "employeeCount": null }- ],-}-```+We will be using these tables as reference for our examples.-<Tabs- defaultValue="nodeJs"- values={[- { label: 'Node.js', value: 'nodeJs', },- { label: 'Python', value: 'py', },- ]-}>-<TabItem value="nodeJs">+<DummyData />-```js-supabase.subscribe(channel)+### Listen to all database changes-```-Supabase subscribes to a specified `channel` to listen to.-</TabItem>+<!-- prettier-ignore -->+```js {8}+import { createClient } from '@supabase/supabase-js'-<TabItem value="py">+// Create a single supabase client for interacting with your database+const supabase = createClient('https://world.supabase.io', '1a2b-3c4d-5e6f-7g8h')-```py-# TODO+// Listen to changes+const listener = supabase+ .subscribe('*')+ .on('*', payload => {+ console.log('Change received!', payload)+ })+ .join()```-</TabItem>-</Tabs>-## Method arguments-### channel-`required` string-Channel for Supabase to listen to. The channel can either subscribe to the pre-determined schema (`public` by default)-or a specific table within that schema. Indicating `"*"` will subscribe the channel to the pre-determined schema.+### Listening to a specific table-## Hooks+<!-- prettier-ignore -->+```js {8}+import { createClient } from '@supabase/supabase-js'-```js-on(event, callback)-```-Call a specified `callback` function once a specified `event` occurs.+// Create a single supabase client for interacting with your database+const supabase = createClient('https://world.supabase.io', '1a2b-3c4d-5e6f-7g8h')-### Method arguments-#### event-`required` string-The event to hook will listen for. This could either be:-- CREATE-- UPDATE-- DELETE+// Listen to changes+const listener = supabase+ .subscribe('countries')+ .on('*', payload => {+ console.log('Change received!', payload)+ })+ .join()+```-Alternatively, indicating `"*"` will let the hook listen for everything.+### Listening only to INSERTS-#### callback-`required` function-A function that will be called when an event that the hook is subscribed to occurs.+<!-- prettier-ignore -->+```js {9}+import { createClient } from '@supabase/supabase-js'-## Examples+// Create a single supabase client for interacting with your database+const supabase = createClient('https://world.supabase.io', '1a2b-3c4d-5e6f-7g8h')-### Listening to the entire schema-```js-supabase.subscribe("*")+// Listen to changes+const listener = supabase+ .subscribe('countries')+ .on('INSERT', payload => {+ console.log('Change received!', payload)+ })+ .join()```-### Listening to a specific table-```js-supabase.subscribe("companies")-```+### Listening only to UPDATES++<!-- prettier-ignore -->+```js {9}+import { createClient } from '@supabase/supabase-js'-### Adding hooks-```js-supabase.subscribe("companies").on("INSERT", company => {- console.log("New company: ", company)-})+// Create a single supabase client for interacting with your database+const supabase = createClient('https://world.supabase.io', '1a2b-3c4d-5e6f-7g8h')++// Listen to changes+const listener = supabase+ .subscribe('countries')+ .on('UPDATE', payload => {+ console.log('Change received!', payload)+ })+ .join()```-Whenever a new company is inserted into the `companies` table, the client will be notified.-```js-const postCompany = async () => {- try{- let company = await supabase- .post(- "companies",- [- { name: "Raviga Capital Management", employeeCount: 500 }- ]- )- return company- } catch (error) {- console.log('Error', error)- }-}++### Listening only to DELETES++<!-- prettier-ignore -->+```js {9}+import { createClient } from '@supabase/supabase-js'++// Create a single supabase client for interacting with your database+const supabase = createClient('https://world.supabase.io', '1a2b-3c4d-5e6f-7g8h')++// Listen to changes+const listener = supabase+ .subscribe('countries')+ .on('DELETE', payload => {+ console.log('Change received!', payload)+ })+ .join()```-In the example above, once the new company has been inserted into the table, the client-will be provided with this:+++++## Reference++### `subscribe()`++<!-- prettier-ignore -->+```js {2}+supabase+ .subscribe('tableName')```-$ New company: Raviga Capital Management++###### tableName `REQUIRED`+The database table that you want to subscribe to. Using the wildcard `"*"` will listen all tables in your database.+++----++### `join()`++<!-- prettier-ignore -->+```js {3}+supabase+ .subscribe('tableName')+ .join()```+-----## Responses--### CREATE-```js-const postCompany = async () => {- try {- let company = await supabase- .post(- "companies",- [- { name: "Galloo Games", employeeCount: 25 }- ],- )- return company- } catch (error) {- console.log('Error: ', error)- }-}+### `on()`++<!-- prettier-ignore -->+```js {4}+supabase+ .subscribe('tableName')+ .join()+ .on('eventName', callbackFunction)```++###### eventName `REQUIRED`+Can be either a table in your database, or you can use the special wildcard `*` to listen to all changes.++###### callbackFunction `REQUIRED`+A callback that will handle the payload that is sent whenever your database changes. See all Change Events below to understand all the possible payloads.+++----++## Change Events++@TODO what happens on bulk insert/update/delete?++### New record created+Upon inserting or creating a new row, the following will be returned by our listener:```json{"new": [- { "name": "Galloo Games", "employeeCount": 25 }+ { "name": "Middle Earth", "country_id": "554" }]}```-### UPDATE-```js-const updateCompany = async () => {- try {- let company = await supabase- .patch(- "companies",- [- { employeeCount: 75 }- ]- )- .eq("name", "See Food App")- return company- } catch (error) {- console.log('Error: ', error)- }-}-```+### Existing record updated+Upon updating a row, the following will be returned by our listener:```json{"old": [- { "name": "See Food App", "employeeCount": null }+ { "name": "Middle Earth", "country_id": "554" }],"new": [- { "name": "See Food App", "employeeCount": 75 }+ { "name": "Wellington", "country_id": "554" }]}```-### DELETE-```js-const deleteCompany = async () => {- try {- let company = await supabase- .delete("companies",)- .eq("name", "Hooli")- return company- } catch (error) {- console.log('Error: ', error)- }-}-```+### Existing record deleted+Upon deleting a row, the following will be returned by our listener:```json{"old": [- { "name": "Hooli", "employeeCount": 1000 }+ { "name": "Mordor", "country_id": "554" }]}```--diff --git a/web/package-lock.json b/web/package-lock.jsonindex 737ac58e10a..5ed6b30ca11 100644--- a/web/package-lock.json+++ b/web/package-lock.json@@ -4482,8 +4482,7 @@},"ansi-regex": {"version": "2.1.1",- "bundled": true,- "optional": true+ "bundled": true},"aproba": {"version": "1.2.0",@@ -4501,13 +4500,11 @@},"balanced-match": {"version": "1.0.0",- "bundled": true,- "optional": true+ "bundled": true},"brace-expansion": {"version": "1.1.11","bundled": true,- "optional": true,"requires": {"balanced-match": "^1.0.0","concat-map": "0.0.1"@@ -4520,18 +4517,15 @@},"code-point-at": {"version": "1.1.0",- "bundled": true,- "optional": true+ "bundled": true},"concat-map": {"version": "0.0.1",- "bundled": true,- "optional": true+ "bundled": true},"console-control-strings": {"version": "1.1.0",- "bundled": true,- "optional": true+ "bundled": true},"core-util-is": {"version": "1.0.2",@@ -4634,8 +4628,7 @@},"inherits": {"version": "2.0.4",- "bundled": true,- "optional": true+ "bundled": true},"ini": {"version": "1.3.5",@@ -4645,7 +4638,6 @@"is-fullwidth-code-point": {"version": "1.0.0","bundled": true,- "optional": true,"requires": {"number-is-nan": "^1.0.0"}@@ -4658,20 +4650,17 @@"minimatch": {"version": "3.0.4","bundled": true,- "optional": true,"requires": {"brace-expansion": "^1.1.7"}},"minimist": {"version": "0.0.8",- "bundled": true,- "optional": true+ "bundled": true},"minipass": {"version": "2.9.0","bundled": true,- "optional": true,"requires": {"safe-buffer": "^5.1.2","yallist": "^3.0.0"@@ -4688,7 +4677,6 @@"mkdirp": {"version": "0.5.1","bundled": true,- "optional": true,"requires": {"minimist": "0.0.8"}@@ -4769,8 +4757,7 @@},"number-is-nan": {"version": "1.0.1",- "bundled": true,- "optional": true+ "bundled": true},"object-assign": {"version": "4.1.1",@@ -4780,7 +4767,6 @@"once": {"version": "1.4.0","bundled": true,- "optional": true,"requires": {"wrappy": "1"}@@ -4856,8 +4842,7 @@},"safe-buffer": {"version": "5.1.2",- "bundled": true,- "optional": true+ "bundled": true},"safer-buffer": {"version": "2.1.2",@@ -4887,7 +4872,6 @@"string-width": {"version": "1.0.2","bundled": true,- "optional": true,"requires": {"code-point-at": "^1.0.0","is-fullwidth-code-point": "^1.0.0",@@ -4905,7 +4889,6 @@"strip-ansi": {"version": "3.0.1","bundled": true,- "optional": true,"requires": {"ansi-regex": "^2.0.0"}@@ -4944,13 +4927,11 @@},"wrappy": {"version": "1.0.2",- "bundled": true,- "optional": true+ "bundled": true},"yallist": {"version": "3.1.1",- "bundled": true,- "optional": true+ "bundled": true}}},@@ -11775,8 +11756,7 @@},"ansi-regex": {"version": "2.1.1",- "bundled": true,- "optional": true+ "bundled": true},"aproba": {"version": "1.2.0",@@ -11794,13 +11774,11 @@},"balanced-match": {"version": "1.0.0",- "bundled": true,- "optional": true+ "bundled": true},"brace-expansion": {"version": "1.1.11","bundled": true,- "optional": true,"requires": {"balanced-match": "^1.0.0","concat-map": "0.0.1"@@ -11813,18 +11791,15 @@},"code-point-at": {"version": "1.1.0",- "bundled": true,- "optional": true+ "bundled": true},"concat-map": {"version": "0.0.1",- "bundled": true,- "optional": true+ "bundled": true},"console-control-strings": {"version": "1.1.0",- "bundled": true,- "optional": true+ "bundled": true},"core-util-is": {"version": "1.0.2",@@ -11927,8 +11902,7 @@},"inherits": {"version": "2.0.4",- "bundled": true,- "optional": true+ "bundled": true},"ini": {"version": "1.3.5",@@ -11938,7 +11912,6 @@"is-fullwidth-code-point": {"version": "1.0.0","bundled": true,- "optional": true,"requires": {"number-is-nan": "^1.0.0"}@@ -11951,20 +11924,17 @@"minimatch": {"version": "3.0.4","bundled": true,- "optional": true,"requires": {"brace-expansion": "^1.1.7"}},"minimist": {"version": "0.0.8",- "bundled": true,- "optional": true+ "bundled": true},"minipass": {"version": "2.9.0","bundled": true,- "optional": true,"requires": {"safe-buffer": "^5.1.2","yallist": "^3.0.0"@@ -11981,7 +11951,6 @@"mkdirp": {"version": "0.5.1","bundled": true,- "optional": true,"requires": {"minimist": "0.0.8"}@@ -12062,8 +12031,7 @@},"number-is-nan": {"version": "1.0.1",- "bundled": true,- "optional": true+ "bundled": true},"object-assign": {"version": "4.1.1",@@ -12073,7 +12041,6 @@"once": {"version": "1.4.0","bundled": true,- "optional": true,"requires": {"wrappy": "1"}@@ -12149,8 +12116,7 @@},"safe-buffer": {"version": "5.1.2",- "bundled": true,- "optional": true+ "bundled": true},"safer-buffer": {"version": "2.1.2",@@ -12180,7 +12146,6 @@"string-width": {"version": "1.0.2","bundled": true,- "optional": true,"requires": {"code-point-at": "^1.0.0","is-fullwidth-code-point": "^1.0.0",@@ -12198,7 +12163,6 @@"strip-ansi": {"version": "3.0.1","bundled": true,- "optional": true,"requires": {"ansi-regex": "^2.0.0"}@@ -12237,13 +12201,11 @@},"wrappy": {"version": "1.0.2",- "bundled": true,- "optional": true+ "bundled": true},"yallist": {"version": "3.1.1",- "bundled": true,- "optional": true+ "bundled": true}}},@@ -12793,8 +12755,7 @@},"ansi-regex": {"version": "2.1.1",- "bundled": true,- "optional": true+ "bundled": true},"aproba": {"version": "1.2.0",@@ -12812,13 +12773,11 @@},"balanced-match": {"version": "1.0.0",- "bundled": true,- "optional": true+ "bundled": true},"brace-expansion": {"version": "1.1.11","bundled": true,- "optional": true,"requires": {"balanced-match": "^1.0.0","concat-map": "0.0.1"@@ -12831,18 +12790,15 @@},"code-point-at": {"version": "1.1.0",- "bundled": true,- "optional": true+ "bundled": true},"concat-map": {"version": "0.0.1",- "bundled": true,- "optional": true+ "bundled": true},"console-control-strings": {"version": "1.1.0",- "bundled": true,- "optional": true+ "bundled": true},"core-util-is": {"version": "1.0.2",@@ -12945,8 +12901,7 @@},"inherits": {"version": "2.0.4",- "bundled": true,- "optional": true+ "bundled": true},"ini": {"version": "1.3.5",@@ -12956,7 +12911,6 @@"is-fullwidth-code-point": {"version": "1.0.0","bundled": true,- "optional": true,"requires": {"number-is-nan": "^1.0.0"}@@ -12969,20 +12923,17 @@"minimatch": {"version": "3.0.4","bundled": true,- "optional": true,"requires": {"brace-expansion": "^1.1.7"}},"minimist": {"version": "0.0.8",- "bundled": true,- "optional": true+ "bundled": true},"minipass": {"version": "2.9.0","bundled": true,- "optional": true,"requires": {"safe-buffer": "^5.1.2","yallist": "^3.0.0"@@ -12999,7 +12950,6 @@"mkdirp": {"version": "0.5.1","bundled": true,- "optional": true,"requires": {"minimist": "0.0.8"}@@ -13080,8 +13030,7 @@},"number-is-nan": {"version": "1.0.1",- "bundled": true,- "optional": true+ "bundled": true},"object-assign": {"version": "4.1.1",@@ -13091,7 +13040,6 @@"once": {"version": "1.4.0","bundled": true,- "optional": true,"requires": {"wrappy": "1"}@@ -13167,8 +13115,7 @@},"safe-buffer": {"version": "5.1.2",- "bundled": true,- "optional": true+ "bundled": true},"safer-buffer": {"version": "2.1.2",@@ -13198,7 +13145,6 @@"string-width": {"version": "1.0.2","bundled": true,- "optional": true,"requires": {"code-point-at": "^1.0.0","is-fullwidth-code-point": "^1.0.0",@@ -13216,7 +13162,6 @@"strip-ansi": {"version": "3.0.1","bundled": true,- "optional": true,"requires": {"ansi-regex": "^2.0.0"}@@ -13255,13 +13200,11 @@},"wrappy": {"version": "1.0.2",- "bundled": true,- "optional": true+ "bundled": true},"yallist": {"version": "3.1.1",- "bundled": true,- "optional": true+ "bundled": true}}},diff --git a/web/src/components/Collapsable.js b/web/src/components/Collapsable.jsnew file mode 100644index 00000000000..bb60df97f75--- /dev/null+++ b/web/src/components/Collapsable.js@@ -0,0 +1,5 @@+import React from 'react'++export default function Collapsable({ children }) {+ return <div>{children}</div>+}diff --git a/web/src/css/custom.css b/web/src/css/custom.cssindex d78381fd4d6..4bd077983f1 100755--- a/web/src/css/custom.css+++ b/web/src/css/custom.css@@ -18,7 +18,7 @@'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Helvetica', 'Arial',sans-serif;--custom-font-code: 'Source Code Pro', Menlo, monospace;- --custom-font-size-base: 14px;+ --custom-font-size-base: 1rem;--custom-border-radius: 3px;--custom-border-radius-md: 6px;--custom-primary-darkest: #10633e;@@ -452,3 +452,17 @@ div[class^='sidebar_'] .menu__link.menu__link--active:not(.menu__link--sublist)padding: var(--ifm-spacing-vertical) var(--ifm-spacing-horizontal);}}++++.DummyData {+ display: flex;+ overflow-x: auto;+}+.DummyData div{+ padding-right: 10px;+}++summary:hover {+ cursor: pointer;+}\ No newline at end of file