mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 14:19:11 +03:00
* Init custom content hook * Implement useCustomContent hook similarly to useIsFeatureEnabled, and implement extension of organization documents * Attempt to type things nicely * Add support for custom content example projects * Add support for custom content logs explorer default query * nit * Add support for custom content connect UI frameworks * Reset custom-content.json * Smol nit * set custom-content to null --------- Co-authored-by: Jordi Enric <jordi.err@gmail.com>
77 lines
2.2 KiB
JSON
77 lines
2.2 KiB
JSON
{
|
|
"$schema": "./custom-content.schema.json",
|
|
|
|
"organization:legal_documents": [
|
|
{
|
|
"id": "doc1",
|
|
"name": "Document 1",
|
|
"description": "This is a description of Document 1",
|
|
"action": {
|
|
"text": "Download document",
|
|
"url": "https://supabase.com"
|
|
}
|
|
},
|
|
{
|
|
"id": "doc2",
|
|
"name": "Document 2",
|
|
"description": "This is a description of Document 2",
|
|
"action": {
|
|
"text": "Download document",
|
|
"url": "https://supabase.com"
|
|
}
|
|
}
|
|
],
|
|
|
|
"project_homepage:example_projects": [
|
|
{
|
|
"title": "Framework 1",
|
|
"description": "This is a description of Framework 1",
|
|
"iconUrl": "https://supabase.com/dashboard/img/supabase-logo.svg",
|
|
"url": "https://supabase.com"
|
|
},
|
|
{
|
|
"title": "Framework 2",
|
|
"description": "This is a description of Framework 2",
|
|
"iconUrl": "https://supabase.com/dashboard/img/supabase-logo.svg",
|
|
"url": "https://supabase.com"
|
|
}
|
|
],
|
|
|
|
"logs:default_query": "This is a sample query",
|
|
|
|
"connect:frameworks": {
|
|
"key": "frameworks",
|
|
"label": "Frameworks",
|
|
"obj": [
|
|
{
|
|
"key": "framework-1",
|
|
"label": "Framework 1",
|
|
"icon": "https://supabase.com/dashboard/img/supabase-logo.svg",
|
|
"guideLink": "https://supabase.com/docs",
|
|
"children": [],
|
|
"files": [
|
|
{
|
|
"name": "sample_env",
|
|
"content": "NEXT_PUBLIC_SUPABASE_URL={{apiUrl}}\nNEXT_PUBLIC_SUPABASE_ANON_KEY={{anonKey}}"
|
|
},
|
|
{
|
|
"name": "sample.ts",
|
|
"content": "import { createClient } from \"@supabase/supabase-js\";\n\nconst supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;\nconst supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;\n\nexport const supabase = createClient(supabaseUrl, supabaseKey);"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"key": "framework-2",
|
|
"label": "Framework 2",
|
|
"icon": "https://supabase.com/dashboard/img/supabase-logo.svg",
|
|
"guideLink": "https://supabase.com/docs",
|
|
"children": [],
|
|
"files": [
|
|
{ "name": "file3.tsx", "content": "Content of File 3" },
|
|
{ "name": "file4.tsx", "content": "Content of File 4" }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|