-
+
-
+
-
-
+
+
-
-
- {{entity.imageMeta.width}} × {{entity.imageMeta.height}}
+
+
+ {{config.model.imageMeta.width}} × {{config.model.imageMeta.height}}
-
- {{entity.imageMeta.dpi}}
+
+ {{config.model.imageMeta.dpi}}
-
- {{entity.imageMeta.colorSpace}}
+
+ {{config.model.imageMeta.colorSpace}}
-
- {{entity.imageMeta.frames}}
+
+ {{config.model.imageMeta.frames}}
@@ -30,7 +30,7 @@
export default {
props: {
value: Object,
- entity: Object
+ config: Object,
}
}
diff --git a/zero.Backoffice.UI/app/modules/media/schemas/editor.ts b/zero.Backoffice.UI/app/modules/media/schemas/editor.ts
index f60b1f44..1e6af14d 100644
--- a/zero.Backoffice.UI/app/modules/media/schemas/editor.ts
+++ b/zero.Backoffice.UI/app/modules/media/schemas/editor.ts
@@ -1,15 +1,14 @@
-export default {};
-//import Editor from '../../../editor/editor';
-//import { getFilesize, formatDate } from '../../../utils';
-//import MetadataEditor from '../pages/detail/metadata.vue';
+import { ZeroEditor } from '../../../editor/editor';
+import MetadataEditor from '../pages/detail/metadata.vue';
-//const editor = new Editor('media:edit', '@media.fields.');
+const editor = new ZeroEditor(); //('media:edit', '@media.fields.');
+editor.resourcePrefix = '@media.fields.';
//editor.blueprintAlias = 'media';
-//editor.field('name', { label: '@ui.name' }).text().required();
-//editor.field('imageMeta.alternativeText').when(x => x.imageMeta).text();
-//editor.field('caption').textarea();
-//editor.field('createdDate', { hideLabel: true }).custom(MetadataEditor);
+editor.field('name', { label: '@ui.name' }).text();
+editor.field('imageMeta.alternativeText', { optional: true, hidden: x => x.imageMeta }).text();
+editor.field('caption').textarea();
+editor.field('createdDate', { hideLabel: true }).component(MetadataEditor);
-//export default editor;
\ No newline at end of file
+export default editor;
\ No newline at end of file
diff --git a/zero.Backoffice.UI/app/schemas/list/list.ts b/zero.Backoffice.UI/app/schemas/list/list.ts
index 4081ef5a..f91f02d0 100644
--- a/zero.Backoffice.UI/app/schemas/list/list.ts
+++ b/zero.Backoffice.UI/app/schemas/list/list.ts
@@ -1,9 +1,9 @@
import ListColumn from './list-column';
import ListAction from './list-action';
-import { ListSchema } from 'zero/schemas';
+import { ZeroSchema } from 'zero/schemas';
-class List implements ListSchema
+class List implements ZeroSchema
{
alias: string;
diff --git a/zero.Backoffice.UI/app/schemas/schemas.d.ts b/zero.Backoffice.UI/app/schemas/schemas.d.ts
index 559d1f1e..2428209b 100644
--- a/zero.Backoffice.UI/app/schemas/schemas.d.ts
+++ b/zero.Backoffice.UI/app/schemas/schemas.d.ts
@@ -5,15 +5,4 @@ declare module 'zero/schemas'
{
alias: string;
}
-
- export interface EditorSchema extends ZeroSchema
- {
-
- }
-
-
- export interface ListSchema extends ZeroSchema
- {
-
- }
}
\ No newline at end of file
diff --git a/zero.Backoffice.UI/app/ui/app-navigation.vue b/zero.Backoffice.UI/app/ui/app-navigation.vue
index 776b6909..daefe99c 100644
--- a/zero.Backoffice.UI/app/ui/app-navigation.vue
+++ b/zero.Backoffice.UI/app/ui/app-navigation.vue
@@ -97,7 +97,6 @@
mounted()
{
- console.info(this.appStore);
this.currentApplication = this.appStore.applications[0];
this.appId = this.currentApplication.id;
},