1
0
mirror of https://github.com/typemill/typemill.git synced 2025-01-17 05:18:19 +01:00

Version 1.4.5: Fixed meta-tab for raw mode

This commit is contained in:
trendschau 2021-03-21 10:28:23 +01:00
parent 2042b5d27e
commit 9bfd9009dc
6 changed files with 32 additions and 12 deletions

View File

@ -31,7 +31,7 @@
{% endif %}
<section id="blox" :class="showBlox">
<section id="blox" :class="showEditor">
<div class="blox-body">

View File

@ -23,6 +23,7 @@
:errors="formErrors[currentTab]"
:schema="formDefinitions[currentTab]"
:formdata="formData[currentTab]"
:item="item"
v-on:saveform="saveForm">
</component>
@ -30,7 +31,8 @@
{% endif %}
<div id="editor" class="editor">
<div id="editor" class="editor" :class="showEditor">
<form action="#" v-cloak>
<section>
@ -54,6 +56,24 @@
</form>
</div>
{% if item.elementType == "folder" %}
<section id="posts" v-if="posts" :class="showPosts">
<div class="posts formWrapper">
<input v-model="posttitle" type="text" maxlength="60" name="title" placeholder="add a short title">
<button type="button" @click.prevent="createPost()" class="post-button">create new post</button>
</div>
<div>
<single-post
v-for="post in posts"
v-bind:key="post.keyPath"
v-bind:post="post"
></single-post>
</div>
</section>
{% endif %}
{% include 'editor/publish-controller.twig' %}
{{ csrf_field() | raw }}

View File

@ -1853,7 +1853,7 @@ let editor = new Vue({
draftDisabled: true,
bloxOverlay: false,
sortdisabled: false,
showBlox: 'show',
showEditor: 'show',
formats: activeFormats
},
mounted: function(){

View File

@ -9,7 +9,8 @@ let editor = new Vue({
form: {
title: document.getElementById("title").value,
content: document.getElementById("content").value,
}
},
showEditor: 'show',
},
mounted: function(){
autosize(document.querySelector('textarea'));

View File

@ -11,7 +11,6 @@ Vue.filter('translate', function (value) {
}
})
Vue.component('tab-meta', {
props: ['saved', 'errors', 'formdata', 'schema', 'userroles'],
template: '<section><form>' +
@ -61,12 +60,12 @@ let meta = new Vue({
currentTabComponent: function () {
if(this.currentTab == 'Content')
{
editor.showBlox = 'show';
editor.showEditor = 'show';
posts.showPosts = 'show';
}
else
{
editor.showBlox = 'hidden';
editor.showEditor = 'hidden';
posts.showPosts = 'hidden';
}
return 'tab-' + this.currentTab.toLowerCase()

View File

@ -16,6 +16,7 @@
<link rel="apple-touch-icon" sizes="144x144" href="{{ base_url }}/system/author/img/favicon-144.png" />
<link rel="apple-touch-icon" sizes="180x180" href="{{ base_url }}/system/author/img/favicon-180.png" />
<link rel="stylesheet" href="{{ base_url }}/system/author/css/tachyons.min.css" />
<link rel="stylesheet" href="{{ base_url }}/system/author/css/style.css?20210202" />
{{ assets.renderCSS() }}
@ -47,10 +48,8 @@
</script>
<script src="{{ base_url }}/system/author/js/vue.min.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/autosize.min.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/sortable.min.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/vuedraggable.umd.min.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/author.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/vue-publishcontroller.js?20210202"></script>
<script>
let language = {{ settings.language|json_encode() }};
let labels = {{ translations|json_encode() }};
@ -59,10 +58,11 @@
{{ assets.renderEditorJS() }}
<script src="{{ base_url }}/system/author/js/vue-publishcontroller.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/vue-editor.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/vue-meta.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/vue-posts.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/vue-navi.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/vue-shared.js?20210202"></script>
<script src="{{ base_url }}/system/author/js/vue-meta.js?20210202"></script>
{{ assets.renderJS() }}