You've already forked AstralRinth
forked from didirus/AstralRinth
4224ef45b3
* feat: add shared UI package auth DI * use refs instead of reactive * pnpm prepr * move app auth provider setup to src/providers/setup
19 lines
703 B
TypeScript
19 lines
703 B
TypeScript
import { provideNotificationManager } from '@modrinth/ui'
|
|
|
|
import { FrontendNotificationManager } from './frontend-notifications'
|
|
import { setupAuthProvider } from './setup/auth'
|
|
import { setupFilePickerProvider } from './setup/file-picker'
|
|
import { setupModrinthClientProvider } from './setup/modrinth-client'
|
|
import { setupPageContextProvider } from './setup/page-context'
|
|
import { setupTagsProvider } from './setup/tags'
|
|
|
|
export function setupProviders(auth: Awaited<ReturnType<typeof useAuth>>) {
|
|
provideNotificationManager(new FrontendNotificationManager())
|
|
|
|
setupAuthProvider(auth)
|
|
setupModrinthClientProvider(auth)
|
|
setupTagsProvider()
|
|
setupFilePickerProvider()
|
|
setupPageContextProvider()
|
|
}
|