generated from Nodarx/template
feat: implement provider
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
import type { ModuleIntegrations } from '@KTXC/types/moduleTypes'
|
||||
import type { ServiceInterface } from '@KTXM/MailManager/types/service'
|
||||
import { ServiceObject } from '@KTXM/MailManager/models/service'
|
||||
|
||||
const integrations: ModuleIntegrations = {
|
||||
mail_account_config_panels: [
|
||||
{
|
||||
id: 'imap',
|
||||
label: 'IMAP',
|
||||
icon: 'mdi-email',
|
||||
caption: 'Internet Message Access Protocol',
|
||||
component: () => import('@/components/ImapConfigPanel.vue'),
|
||||
priority: 20,
|
||||
}
|
||||
],
|
||||
mail_account_auth_panels: [
|
||||
{
|
||||
id: 'imap',
|
||||
component: () => import('@/components/ImapAuthPanel.vue'),
|
||||
}
|
||||
],
|
||||
mail_service_factory: [
|
||||
{
|
||||
id: 'imap',
|
||||
factory: (data: ServiceInterface) => new ServiceObject().fromJson(data)
|
||||
}
|
||||
],
|
||||
mail_provider_metadata: [
|
||||
{
|
||||
id: 'imap',
|
||||
label: 'IMAP',
|
||||
description: 'Classic mailbox access over IMAP',
|
||||
icon: 'mdi-email',
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default integrations
|
||||
Reference in New Issue
Block a user