2020-10-16 11:23:54 +02:00
|
|
|
|
2020-11-01 23:23:36 +01:00
|
|
|
import Plugin from './plugin.ts';
|
2020-10-19 14:48:21 +02:00
|
|
|
import editors from '../renderers/editors/all.js';
|
|
|
|
|
import lists from '../renderers/lists/all.js';
|
2020-10-16 14:02:10 +02:00
|
|
|
import routes from './routes.js';
|
2020-10-16 11:23:54 +02:00
|
|
|
|
|
|
|
|
const plugin = new Plugin('zero');
|
|
|
|
|
|
|
|
|
|
// add renderers
|
2020-10-18 23:47:59 +02:00
|
|
|
plugin.addEditors(editors);
|
2020-10-16 11:23:54 +02:00
|
|
|
|
2020-10-19 14:48:21 +02:00
|
|
|
// add renderers
|
|
|
|
|
plugin.addLists(lists);
|
|
|
|
|
|
2020-10-16 11:23:54 +02:00
|
|
|
// add routes
|
|
|
|
|
plugin.addRoutes(routes);
|
|
|
|
|
|
2021-01-29 17:01:32 +01:00
|
|
|
plugin.install = (vue, zero) =>
|
|
|
|
|
{
|
2021-02-09 16:00:43 +01:00
|
|
|
zero.config.linkPicker.areas.push({
|
|
|
|
|
alias: 'zero.pages',
|
|
|
|
|
name: '@zero.config.linkareas.pages',
|
2021-03-24 20:54:52 +01:00
|
|
|
component: () => import('../components/pickers/linkPicker/areas/pages.vue')
|
2021-02-09 16:00:43 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
zero.config.linkPicker.areas.push({
|
|
|
|
|
alias: 'zero.media',
|
|
|
|
|
name: '@zero.config.linkareas.media',
|
2021-03-24 20:54:52 +01:00
|
|
|
component: () => import('../components/pickers/linkPicker/areas/media.vue')
|
2021-02-09 16:00:43 +01:00
|
|
|
});
|
2021-01-29 17:01:32 +01:00
|
|
|
};
|
|
|
|
|
|
2020-10-16 11:23:54 +02:00
|
|
|
export default plugin;
|