Files
mixtape/zero.Backoffice.UI/app/editor/plugin.ts
T

23 lines
750 B
TypeScript
Raw Normal View History

2021-12-21 13:58:48 +01:00
import { ZeroPlugin, ZeroPluginOptions } from '../core';
2021-12-22 15:41:11 +01:00
import { ZeroEditor } from './editor';
2021-12-21 13:58:48 +01:00
import createFields from './fields/createFields';
2021-12-22 15:41:11 +01:00
const editor = new ZeroEditor('integration.analytics.fathom');
editor.field('siteId').text({ maxLength: 30 });
editor.field('customDomain', { optional: true }).text({ maxLength: 150 });
const editor2 = new ZeroEditor('integration.analytics.google');
editor2.field('trackingId').text({ maxLength: 30 });
editor2.field('siteVerificationId').text({ maxLength: 150 });
2021-12-21 13:58:48 +01:00
export default {
name: "zero.editor",
install(app: ZeroPluginOptions)
{
createFields(app);
2021-12-22 15:41:11 +01:00
app.schema('integration.analytics.fathom', editor);
app.schema('integration.analytics.google', editor2);
2021-12-21 13:58:48 +01:00
}
} as ZeroPlugin;