mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 04:15:04 +03:00
* fix: studio circular imports * Fix the import cycle on Wrappers tabs components. * Remove duplicate declarations of the feature previews array. * fix feature previews circular import * Minor nit * update all project contexts to use useSelectedProject --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
42 lines
1.5 KiB
TypeScript
42 lines
1.5 KiB
TypeScript
import { BASE_PATH } from 'lib/constants'
|
|
import { PROVIDER_PHONE, PROVIDERS_SCHEMAS } from '../AuthProvidersFormValidation'
|
|
|
|
export const PANEL_PADDING = 'px-5 py-5'
|
|
|
|
// [Joshen] Temporary fix as bulk delete will fire n requests since Auth + API do not have a bulk delete endpoint yet
|
|
export const MAX_BULK_DELETE = 20
|
|
|
|
export const PROVIDER_FILTER_OPTIONS = PROVIDERS_SCHEMAS.map((provider) => ({
|
|
name: provider.title,
|
|
value: 'key' in provider ? provider.key : provider.title.toLowerCase(),
|
|
icon: `${BASE_PATH}/img/icons/${provider.misc.iconKey}.svg`,
|
|
iconClass: provider.title === 'GitHub' ? 'dark:invert' : '',
|
|
})).concat(
|
|
PROVIDER_PHONE.properties.SMS_PROVIDER.enum.map((x) => ({
|
|
name: x.label,
|
|
value: x.value,
|
|
icon: `${BASE_PATH}/img/icons/${x.icon}`,
|
|
iconClass: '',
|
|
}))
|
|
)
|
|
|
|
export type UsersTableColumn = {
|
|
id: string
|
|
name: string
|
|
minWidth?: number
|
|
width?: number
|
|
resizable?: boolean
|
|
}
|
|
export type ColumnConfiguration = { id: string; width?: number }
|
|
export const USERS_TABLE_COLUMNS: UsersTableColumn[] = [
|
|
{ id: 'img', name: '', minWidth: 95, width: 95, resizable: false },
|
|
{ id: 'id', name: 'UID', width: 280 },
|
|
{ id: 'name', name: 'Display name', minWidth: 0, width: 150 },
|
|
{ id: 'email', name: 'Email', width: 300 },
|
|
{ id: 'phone', name: 'Phone' },
|
|
{ id: 'providers', name: 'Providers', minWidth: 150 },
|
|
{ id: 'provider_type', name: 'Provider type', minWidth: 150 },
|
|
{ id: 'created_at', name: 'Created at', width: 260 },
|
|
{ id: 'last_sign_in_at', name: 'Last sign in at', width: 260 },
|
|
]
|