@edgedev/create-edge-app 1.0.36 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components/dashboard.vue
CHANGED
|
@@ -90,7 +90,7 @@ const deleteAction = () => {
|
|
|
90
90
|
</script>
|
|
91
91
|
|
|
92
92
|
<template>
|
|
93
|
-
<v-card v-if="state.afterMount">
|
|
93
|
+
<v-card v-if="state.afterMount" class="mx-auto" max-width="1200">
|
|
94
94
|
<v-toolbar flat>
|
|
95
95
|
<v-toolbar-title>{{ capitalizeFirstLetter(props.collection) }}</v-toolbar-title>
|
|
96
96
|
<v-text-field
|
package/components/editor.vue
CHANGED
|
@@ -148,7 +148,7 @@ watch(() => edgeFirebase.data[`${edgeGlobal.edgeState.organizationDocPath}/${pro
|
|
|
148
148
|
</script>
|
|
149
149
|
|
|
150
150
|
<template>
|
|
151
|
-
<v-card v-if="state.afterMount">
|
|
151
|
+
<v-card v-if="state.afterMount" class="mx-auto" max-width="1200">
|
|
152
152
|
<v-form
|
|
153
153
|
v-model="state.form"
|
|
154
154
|
validate-on="submit"
|
|
@@ -173,21 +173,18 @@ watch(() => edgeFirebase.data[`${edgeGlobal.edgeState.organizationDocPath}/${pro
|
|
|
173
173
|
<v-row>
|
|
174
174
|
<v-col v-for="(field, name, index) in props.newDocSchema" :key="index" :cols="field.cols">
|
|
175
175
|
<g-input
|
|
176
|
-
v-if="field.type !== 'collection'"
|
|
176
|
+
v-if="field.bindings['field-type'] !== 'collection'"
|
|
177
177
|
v-model="state.workingDoc[name]"
|
|
178
178
|
:disable-tracking="props.docId === 'new'"
|
|
179
|
-
:field-type="field.type"
|
|
180
|
-
:rules="[edgeGlobal.edgeRules.required]"
|
|
181
|
-
:label="field.label"
|
|
182
179
|
:parent-tracker-id="`${props.collection}-${props.docId}`"
|
|
183
|
-
|
|
180
|
+
v-bind="field.bindings"
|
|
184
181
|
/>
|
|
185
182
|
<g-input
|
|
186
183
|
v-else
|
|
187
184
|
v-model="state.workingDoc[name]"
|
|
188
185
|
:disable-tracking="props.docId === 'new'"
|
|
189
186
|
field-type="select"
|
|
190
|
-
:label="field.label"
|
|
187
|
+
:label="field.bindings.label"
|
|
191
188
|
:items="subCollection(name)"
|
|
192
189
|
:parent-tracker-id="`${props.collection}-${props.docId}`"
|
|
193
190
|
/>
|
package/package.json
CHANGED
|
@@ -5,12 +5,12 @@ const edgeGlobal = inject('edgeGlobal')
|
|
|
5
5
|
const state = reactive({
|
|
6
6
|
newDocs: {
|
|
7
7
|
things: {
|
|
8
|
-
name: { type: 'text',
|
|
9
|
-
description: {
|
|
10
|
-
subthings: {
|
|
8
|
+
name: { bindings: { 'field-type': 'text', 'label': 'Name', 'rules': [edgeGlobal.edgeRules.required], 'helper': 'Name' }, cols: '12', value: '' },
|
|
9
|
+
description: { bindings: { 'field-type': 'text', 'rules': [], 'helper': 'Description' }, cols: '12', value: '' },
|
|
10
|
+
subthings: { bindings: { 'field-type': 'collection', 'rules': [], 'helper': 'Subthings' }, cols: '12', value: '' },
|
|
11
11
|
},
|
|
12
12
|
subthings: {
|
|
13
|
-
name: {
|
|
13
|
+
name: { bindings: { 'field-type': 'text', 'rules': [edgeGlobal.edgeRules.required], 'helper': 'Name' }, cols: '12', value: '' },
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
})
|