46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import type { ModuleIntegrations } from "@KTXC/types/moduleTypes";
|
|
import type { ServiceInterface } from "@KTXM/MailManager/types/service";
|
|
import { JmapServiceObject } from './models/JmapServiceObject'
|
|
|
|
const integrations: ModuleIntegrations = {
|
|
mail_provider_panels_auxiliary: [
|
|
{
|
|
id: 'jmap',
|
|
label: 'JMAP Settings',
|
|
component: () => import('@/components/JmapAuxiliaryPanel.vue'),
|
|
priority: 10,
|
|
}
|
|
],
|
|
mail_provider_panels_protocol: [
|
|
{
|
|
id: 'jmap',
|
|
label: 'JMAP Protocol',
|
|
component: () => import('@/components/JmapProtocolPanel.vue'),
|
|
priority: 10,
|
|
}
|
|
],
|
|
mail_provider_panels_auth: [
|
|
{
|
|
id: 'jmap',
|
|
label: 'JMAP Authentication',
|
|
component: () => import('@/components/JmapAuthPanel.vue'),
|
|
}
|
|
],
|
|
mail_provider_factory_service: [
|
|
{
|
|
id: 'jmap',
|
|
factory: (data: ServiceInterface) => new JmapServiceObject().fromJson(data)
|
|
}
|
|
],
|
|
mail_provider_details: [
|
|
{
|
|
id: 'jmap',
|
|
label: 'JMAP Protocol',
|
|
description: 'Modern JSON-based mail API protocol',
|
|
icon: 'mdi-api',
|
|
}
|
|
]
|
|
};
|
|
|
|
export default integrations;
|