feat(messages): add animations (#31)
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import type { Static } from '@sinclair/typebox'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
|
||||
import { date, id } from './utils'
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import type { Static } from '@sinclair/typebox'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
|
||||
import { channelSchema } from './Channel'
|
||||
import { memberSchema } from './Member'
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import type { Static } from '@sinclair/typebox'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
|
||||
import { date, id } from './utils'
|
||||
import { UserPublicWithoutSettings } from './User'
|
||||
import type { UserPublicWithoutSettings } from './User'
|
||||
|
||||
export const memberSchema = {
|
||||
id,
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import type { Static } from '@sinclair/typebox'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
|
||||
import { date, id } from './utils'
|
||||
import { MemberWithPublicUser } from './Member'
|
||||
import type { MemberWithPublicUser } from './Member'
|
||||
|
||||
export const types = [Type.Literal('text'), Type.Literal('file')]
|
||||
|
||||
|
@ -5,12 +5,12 @@ import { date, id } from './utils'
|
||||
export const providers = ['Google', 'GitHub', 'Discord'] as const
|
||||
export const strategies = [...providers, 'Local'] as const
|
||||
|
||||
export const strategiesTypebox = strategies.map((strategy) =>
|
||||
Type.Literal(strategy)
|
||||
)
|
||||
export const providersTypebox = providers.map((provider) =>
|
||||
Type.Literal(provider)
|
||||
)
|
||||
export const strategiesTypebox = strategies.map((strategy) => {
|
||||
return Type.Literal(strategy)
|
||||
})
|
||||
export const providersTypebox = providers.map((provider) => {
|
||||
return Type.Literal(provider)
|
||||
})
|
||||
|
||||
export type ProviderOAuth = typeof providers[number]
|
||||
export type AuthenticationStrategy = typeof strategies[number]
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { Static, Type } from '@sinclair/typebox'
|
||||
import type { Static } from '@sinclair/typebox'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
|
||||
import { strategiesTypebox } from './OAuth'
|
||||
import { userSettingsSchema } from './UserSettings'
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import type { Static } from '@sinclair/typebox'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
|
||||
import { date, id } from './utils'
|
||||
|
||||
|
Reference in New Issue
Block a user