Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
27 lines
1017 B
TypeScript
27 lines
1017 B
TypeScript
import type { AbstractPopupNotificationManager, AbstractWebNotificationManager } from '@modrinth/ui'
|
|
|
|
import { setupCreationModal } from './setup/creation-modal'
|
|
import { setupFileDropProvider } from './setup/file-drop'
|
|
import { setupFilePickerProvider } from './setup/file-picker'
|
|
import { setupImageViewerEditorProvider } from './setup/image-viewer-editor'
|
|
import { setupInstanceImportProvider } from './setup/instance-import'
|
|
import { setupTagsProvider } from './setup/tags'
|
|
|
|
export function setupProviders(
|
|
notificationManager: AbstractWebNotificationManager,
|
|
popupNotificationManager: AbstractPopupNotificationManager,
|
|
stateInitialization: Promise<void>,
|
|
) {
|
|
setupTagsProvider(notificationManager, stateInitialization)
|
|
const fileDrop = setupFileDropProvider()
|
|
const filePicker = setupFilePickerProvider()
|
|
setupImageViewerEditorProvider()
|
|
setupInstanceImportProvider(notificationManager)
|
|
|
|
return {
|
|
fileDrop,
|
|
...filePicker,
|
|
...setupCreationModal(notificationManager, popupNotificationManager),
|
|
}
|
|
}
|