Files
mixtape/zero.Backoffice.UI/app/modules/media/plugin.ts
T

17 lines
707 B
TypeScript
Raw Normal View History

2021-12-16 00:19:51 +01:00
import { ZeroPlugin, ZeroPluginOptions } from '../../core';
import { defineAsyncComponent } from 'vue';
export default {
name: "zero.countries",
install(app: ZeroPluginOptions)
{
//app.vue.component('ui-countrypicker', defineAsyncComponent(() => import('./ui-countrypicker.vue')));
2021-12-16 13:55:09 +01:00
app.route({ name: 'media', path: '/media/:parentId?', component: () => import('./pages/overview/overview.vue'), props: true });
app.route({ name: 'media-edit', path: '/media/edit/:id?', component: () => import('./pages/detail/detail.vue'), props: true });
2021-12-16 00:19:51 +01:00
//app.schema('countries', () => import('./schemas/list'));
2021-12-19 01:16:02 +01:00
app.schema('media:edit', () => import('./schemas/editor'));
2021-12-16 00:19:51 +01:00
}
} as ZeroPlugin;