mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
* chore: move column priv * update docs * Minor fixes for column privileges. Add an explanation alert. * Add a right icon to productMenuItem component. * Rename the database replication into publications. * Change the order for the database menu. * Fix various links to db publications. * Remove duplicate entry. --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
58 lines
1.6 KiB
TypeScript
58 lines
1.6 KiB
TypeScript
import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
|
|
import { IS_PLATFORM } from 'lib/constants'
|
|
|
|
export const generateAuthMenu = (ref: string): ProductMenuGroup[] => {
|
|
return [
|
|
{
|
|
title: 'Manage',
|
|
items: [{ name: 'Users', key: 'users', url: `/project/${ref}/auth/users`, items: [] }],
|
|
},
|
|
{
|
|
title: 'Configuration',
|
|
items: [
|
|
{
|
|
name: 'Policies',
|
|
key: 'policies',
|
|
url: `/project/${ref}/auth/policies`,
|
|
items: [],
|
|
},
|
|
...(IS_PLATFORM
|
|
? [
|
|
{
|
|
name: 'Providers',
|
|
key: 'providers',
|
|
url: `/project/${ref}/auth/providers`,
|
|
items: [],
|
|
},
|
|
{
|
|
name: 'Rate Limits',
|
|
key: 'rate-limits',
|
|
url: `/project/${ref}/auth/rate-limits`,
|
|
items: [],
|
|
},
|
|
{
|
|
name: 'Email Templates',
|
|
key: 'templates',
|
|
url: `/project/${ref}/auth/templates`,
|
|
items: [],
|
|
},
|
|
{
|
|
name: 'URL Configuration',
|
|
key: 'url-configuration',
|
|
url: `/project/${ref}/auth/url-configuration`,
|
|
items: [],
|
|
},
|
|
{
|
|
name: 'Hooks',
|
|
key: 'hooks',
|
|
url: `/project/${ref}/auth/hooks`,
|
|
items: [],
|
|
label: 'BETA',
|
|
},
|
|
]
|
|
: []),
|
|
],
|
|
},
|
|
]
|
|
}
|