Remove metadata info

Former-commit-id: 3a0ea5c2836522c911d248ba1d8440305b467632 [formerly c729073fab859e4ec2f592013700c0231fb7bc52] [formerly ea986f6a17ca868a3dccb6af23d2bdccacc69202 [formerly f015cc39e8]]
Former-commit-id: dbca97bae3069e9caff29761ea0d7ed3bc5dcaf0 [formerly 70c33432549383f2be7c683003a6e5e73fca23eb]
Former-commit-id: 40c99507bdd982c40bc0c7095b7dbbd8b76b453d
This commit is contained in:
Henrique Dias 2017-07-01 09:10:59 +01:00
parent 33d8082601
commit f5ad28723c
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>