mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
Remove metadata info
This commit is contained in:
parent
1871981fea
commit
f015cc39e8
@ -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,
|
||||
|
@ -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>
|
@ -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>
|
Loading…
Reference in New Issue
Block a user