Remove metadata info

pull/144/head
Henrique Dias 2017-07-01 09:10:59 +01:00
parent 1871981fea
commit f015cc39e8
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
3 changed files with 9 additions and 51 deletions

View File

@ -1,10 +1,10 @@
<template>
<form id="editor">
<h2 v-if="req.data.editor.type == 'complete'">Metadata</h2>
<h2 v-if="hasMetadata">Metadata</h2>
<h2 v-if="req.data.editor.type == 'complete'">Body</h2>
<h2 v-if="hasMetadata">Body</h2>
<div v-if="req.data.editor.type !== 'frontmatter-only'" class="content">
<div class="content">
<div id="ace"></div>
<textarea id="source" name="content">{{ req.data.content }}</textarea>
</div>
@ -16,7 +16,12 @@ import { mapState } from 'vuex'
export default {
name: 'editor',
computed: mapState(['req']),
computed: {
...mapState(['req']),
hasMetadata: function () {
return (this.req.data.metadata !== undefined && this.req.data.metadata !== null)
}
},
data: function () {
return {
codemirror: null,

View File

@ -1,19 +0,0 @@
<template>
<fieldset :id="name" :data-type="type">
<h3 v-if="title !== ''">{{ name }}</h3>
<div class="action add">
<i class="material-icons" title="Add">add</i>
</div>
<div class="action delete" :data-delete="name">
<i class="material-icons" title="Close">close</i>
</div>
<!-- template blocks w/ content -->
</fieldset>
</template>
<script>
export default {
name: 'array-object',
props: ['name', 'type', 'title', 'content']
}
</script>

View File

@ -1,28 +0,0 @@
<template>
<textarea v-if="htmlType === 'textarea'"
class="scroll"
:name="name"
:id="name"
:data-parent-type="parentType">
{{ content.other }}
</textarea>
<input v-else-if="htmlType ==='datatime'"
:name="name"
:id="name"
:value="content.other"
type="datetime-local"
:data-parent-type="parentType"></input>
<input v-else
:name="name"
:id="name"
:value="content.other"
:type="htmlType"
:data-parent-type="parentType"></input>
</template>
<script>
export default {
name: 'value',
props: ['htmlType', 'name', 'parentType', 'content']
}
</script>