feat: Added Super & HTML import options in Import modal. Google Keep notes will now also be imported as Super notes, with attachments if importing from HTML (#2433)
This commit is contained in:
@@ -7,6 +7,7 @@ export const Web_TYPES = {
|
||||
AutolockService: Symbol.for('AutolockService'),
|
||||
ChangelogService: Symbol.for('ChangelogService'),
|
||||
DesktopManager: Symbol.for('DesktopManager'),
|
||||
SuperConverter: Symbol.for('SuperConverter'),
|
||||
Importer: Symbol.for('Importer'),
|
||||
ItemGroupController: Symbol.for('ItemGroupController'),
|
||||
KeyboardService: Symbol.for('KeyboardService'),
|
||||
|
||||
@@ -48,13 +48,24 @@ import { PanesForLayout } from '../UseCase/PanesForLayout'
|
||||
import { LoadPurchaseFlowUrl } from '../UseCase/LoadPurchaseFlowUrl'
|
||||
import { GetPurchaseFlowUrl } from '../UseCase/GetPurchaseFlowUrl'
|
||||
import { OpenSubscriptionDashboard } from '../UseCase/OpenSubscriptionDashboard'
|
||||
import { HeadlessSuperConverter } from '@/Components/SuperEditor/Tools/HeadlessSuperConverter'
|
||||
|
||||
export class WebDependencies extends DependencyContainer {
|
||||
constructor(private application: WebApplicationInterface) {
|
||||
super()
|
||||
|
||||
this.bind(Web_TYPES.SuperConverter, () => {
|
||||
return new HeadlessSuperConverter()
|
||||
})
|
||||
|
||||
this.bind(Web_TYPES.Importer, () => {
|
||||
return new Importer(application.features, application.mutator, application.items, application.generateUuid)
|
||||
return new Importer(
|
||||
application.features,
|
||||
application.mutator,
|
||||
application.items,
|
||||
this.get<HeadlessSuperConverter>(Web_TYPES.SuperConverter),
|
||||
application.generateUuid,
|
||||
)
|
||||
})
|
||||
|
||||
this.bind(Web_TYPES.IsNativeIOS, () => {
|
||||
|
||||
Reference in New Issue
Block a user