Commit Graph

40 Commits

Author SHA1 Message Date
Kevin Grüneberg
3601bb52f5 chore: use type imports / avoid unnecessary API type export (#28088) 2024-07-19 18:35:23 +08:00
Charis
3c196e3bf5 enhance(refs): add params and return examples for database and auth (#26676)
enhance(refs): add params and return types

Add params and return types for database and auth functions in
supabase-js library.
2024-05-22 19:55:00 -04:00
Charis
ec86bbc4fe feat: new auth ia (#22812)
Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>
2024-05-07 20:15:06 +00:00
Charis
2f4f0adbd1 rework tabs query state to work better across both routers (#23253)
Refactor tabs so that:

- Behavior add-ons, such as query params, are HOCs in ui-patterns, to keep the basic Tabs minimal
- No dependency on next/router (this is to smooth out a separate App Router migration PR)
- No dependency on useSearchParams either (this is to preserve static generation of as much HTML content as 
  possible, for SEO purposes -- see comment about client-rendering bailout when using useSearchParams)
- Syncing behavior better localized in a hook

Minor enhancement to save tab preferences to local storage so they are remembered between sessions
2024-05-02 14:50:07 -04:00
Kang Ming
9e4b7e4991 docs: anonymous sign-ins (#21801)
* docs: add guide for anonymous sign-ins

* docs: add signInAnonymously to reference docs

* docs: update tsdocs to include signInAnonymously

* docs: update RLS policies page

* fix: make reference generator more resilient

* docs: update nodes to use auth-js naming

* docs: update tsdocs

* docs: update signInAnonymously method

* docs: add abuse prevention & cleanup to anonymous users guide

* docs: update rate limit table

* docs: update automatic cleanup section

* docs: update access control & abuse prevention

* Update apps/docs/content/guides/auth/auth-anonymous.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/auth/auth-anonymous.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/auth/auth-anonymous.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/auth/auth-anonymous.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/auth/auth-anonymous.mdx

Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>

* Update apps/docs/content/guides/auth/auth-anonymous.mdx

Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>

* docs: update access control

* Update apps/docs/content/guides/auth/auth-anonymous.mdx

Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>

* docs: update anonymous users guide

* docs: update anonymous user guide

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>
Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
2024-03-27 18:01:07 +07:00
Tyler
e6eaddbb54 docs: Removes overrideParams from the docs code (#21797)
Removes overrideParams from the docs code
2024-03-06 14:42:10 +09:00
Tyler
64863f407f docs: Add params option to reference docs so that non-js client libs can add parameters (#21708)
* Adds params option for reference docs

* move params below description

* Apply suggestions from code review

* Update apps/docs/spec/supabase_dart_v2.yml
2024-03-05 15:06:07 +09:00
Kevin Grüneberg
f7e60bf324 chore: upgrade prettier/eslint + autofix (#20785) 2024-01-30 10:54:02 +08:00
Clarence
40441af6f1 chore(docs): Fix key prop error in RefFunctionSection component (#20418)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-01-15 19:51:40 +00:00
Clarence
432de2fc69 chore: clean up on empty className attributes (#20203)
clean up on empty className attrib

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-01-08 05:49:28 +00:00
Francesco Sansalvadore
b91532f6c7 Migrate to styling tokens (#18314)
* migrate some www components to tokens

* consolidate InteractiveShimmerCard to Panel component

* update tokens in blog

* update tokens in careers page

* update tokens in customers section

* update tokens in open-source section

* update tokens in Realtime page

* update tokens in Storage and Vector

* update tokens in SplitCodeBlockCarousel

* update tokens in PGCharts

* remove unused css files

* update tokens in Card

* update tokens in Pricing page

* clean up priving page imports

* remove hardcoded theme vars

* migrate first half of defaultTheme.ts to tokens

* migrate second half of defaultTheme.ts to tokens

* improve inputs

* add foreground to text-light and text-lighter

* add foreground to text-light and text-lighter

* migrate docs components with styling tokens

* migrate docs components with styling tokens

* fix broken Repos component

* fix broken classes in blog

* update tokens on Button and other components

* update tokens on IconPanel

* update studio main layout base styling tokens

* update tokens across studio, docs and www

* update tokens across studio, docs and www

* update ui/Panel to styling tokens

* update ExampleProject and TableEditorMenu tokens

* www vector page tokens

* update studio UI tokens

* update other studio UI tokens

* update more studio UI tokens

* change tokens here, change tokens there

* finish updating colors with tokens variables

* add gui sandbox for theme experimentation

* use common package for www, docs and studio and fix Command K tokens

* provide light mode default tokens options

* fix conflict leftover

* update loading line

* fix className typo

* fix prettier

* update themeSandbox preset default values

* fix text-background0

* prettier

* update warningBanner with warning color

* switch all border-border with border-default

* improve border-secondary and foreground-muted in light mode

* force ring color on toggle

* fix button bg color and border-muted light token

* fix input bg color

* fix dark button hover

* fix homepage product card

* fix code-hike table header colors

* button dark border

* remove tabIndex leftover from homepage main ctas

---------

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-11-07 03:40:53 +00:00
Greg Richardson
98c4103463 Docs: Switch tabs using query param (#17626)
* feat: switch tabs using url hash

* feat: switch tabs using query param
2023-09-22 11:29:25 -06:00
Jonathan Summers-Muir
ab46d23d58 chore: update brand-900 to brand 2023-07-30 16:58:54 +08:00
Nick Rayburn
3991383b16 Change regex to be more general 2023-05-31 20:14:29 -05:00
Nick Rayburn
5baa37239b Change global example code replacement to start and ends with replacement 2023-05-30 19:43:12 -05:00
Terry Sutton
890b97d2e6 Pass components to ReactMarkdown 2023-05-25 16:58:17 -02:30
Greg Richardson
96bb86c868 fix(prettier): kotlin docs 2023-05-10 16:53:47 -06:00
Jan Tennert
c12277b864 Initial commit 2023-05-07 19:55:08 +02:00
Greg Richardson
64d83c8f2e refactor: move CodeBlock component to ui package 2023-03-24 15:11:12 -06:00
Joseph Schultz
b6e2140ea7 Fit new docs structure expected on current state of master 2023-01-16 21:06:35 -06:00
Joseph Schultz
7113c3e6d5 Update code blocks to support c# and update some of the Postgrest DB examples 2023-01-16 11:22:24 -06:00
hallidayo
10523f3866 Merge branch 'master' into docs-tabs 2023-01-12 13:19:59 +00:00
Ollie Halliday
4fad729f97 ran prettier 2023-01-11 15:24:52 +00:00
Ollie Halliday
de37a51ad2 change styling and flow of tabs 2023-01-11 15:24:35 +00:00
Terry Sutton
8d4717814b You get a type, and you get a type, and you get a type 2023-01-09 12:35:59 -03:30
Ollie Halliday
5afcea409d changed from includes to startsWith 2023-01-02 12:20:52 +00:00
Ollie Halliday
748e609e0a added in codeBlockLang variable for code examples 2022-12-23 16:44:54 +00:00
Jonathan Summers-Muir
35f3fb2987 Merge pull request #11177 from supabase/chore/docs-console-warnings
Chore/docs console warnings
2022-12-23 12:15:56 +08:00
Jonathan Summers-Muir
32b8c45e87 simplify text display 2022-12-23 11:57:12 +08:00
Terry Sutton
aacfc1dee6 Fix ReactMarkdown expects a string error 2022-12-21 21:12:04 -03:30
Terry Sutton
82d7eaed40 More cleanup and key passing 2022-12-21 17:08:06 -03:30
Ollie Halliday
8812985ec4 added in example description 2022-12-14 14:13:24 +00:00
Jonathan Summers-Muir
9f4187806b fixing mobile menu 2022-12-12 20:08:44 +08:00
Jonathan Summers-Muir
0fbea80675 fix up code snippets 2022-12-12 18:47:30 +08:00
Jonathan Summers-Muir
d1eee17daa clean up code 2022-12-11 03:31:05 +08:00
Jonathan Summers-Muir
cdea618c37 ref sidebars now a bit more clever and will only show what is in the lang AND version selected 2022-12-10 20:25:55 +08:00
Terry Sutton
e4a3dfe4f7 Add middleware back, again 2022-12-09 13:09:22 -03:30
Jonathan Summers-Muir
e794722baa removed codehike from ref docs 2022-12-09 20:02:25 +08:00
Jonathan Summers-Muir
2cba3a9754 fix dart ref 2022-12-08 21:16:02 +08:00
Jonathan Summers-Muir
c475dcad06 make things into components 2022-12-08 20:47:32 +08:00