1
0
mirror of https://github.com/typemill/typemill.git synced 2025-04-24 05:52:48 +02:00

Fixed table component again and default item object

This commit is contained in:
trendschau 2020-05-09 08:10:10 +02:00
parent 8350aad9e9
commit 14c36c0d88
3 changed files with 20 additions and 4 deletions

View File

@ -275,10 +275,26 @@ class Folder
{
# return a standard item-object
$item = new \stdClass;
$item->status = 'published';
$item->originalName = 'home';
$item->elementType = 'folder';
$item->fileType = 'md';
$item->order = false;
$item->name = 'home';
$item->slug = '';
$item->path = '';
$item->urlRel = '/';
$item->pathWithoutType = DIRECTORY_SEPARATOR . 'index';
$item->key = false;
$item->keyPath = false;
$item->keyPathArray = false;
$item->chapter = false;
$item->urlRel = '/';
$item->urlRelWoF = '/';
$item->urlAbs = $baseUrl;
$item->name = 'home';
$item->active = false;
$item->activeParent = false;
$item->hide = false;
return $item;
}

View File

@ -92,7 +92,7 @@ class Settings
'contentFolder' => 'content',
'cache' => true,
'cachePath' => $rootPath . 'cache',
'version' => '1.3.6.1',
'version' => '1.3.6.2',
'setup' => true,
'welcome' => true,
'images' => ['live' => ['width' => 820], 'thumbs' => ['width' => 250, 'height' => 150]],

View File

@ -949,14 +949,14 @@ const tableComponent = Vue.component('table-component', {
'<div class="actionline" @click="addbelowrow(value)">{{ \'add row below\'|translate }}</div>' +
'<div class="actionline" @click="deleterow(value)">{{ \'delete row\'|translate }}</div>' +
'</div>' +
'{{ value|translate }}</th>' +
'{{ value }}</th>' +
'<td v-if="rowindex > 1" v-for="(value,colindex) in row" :contenteditable="colindex !== 0 ? true : false" @click="switchrowbar(value)" @blur="updatedata($event,colindex,rowindex)" :class="colindex !== 0 ? editable : noteditable">' +
'<div v-if="colindex === 0 && rowbar === value" class="rowaction">' +
'<div class="actionline" @click="addaboverow(value)">{{ \'add row above\'|translate }}</div>' +
'<div class="actionline" @click="addbelowrow(value)">{{ \'add row below\'|translate }}</div>' +
'<div class="actionline" @click="deleterow(value)">{{ \'delete row\'|translate }}</div>' +
'</div>' +
'{{ value|translate }}</td>' +
'{{ value }}</td>' +
'</tr>' +
'</tbody>' +
'</table>' +