diff --git a/cache/lastCache.txt b/cache/lastCache.txt index b0d9d57..5a63a82 100644 --- a/cache/lastCache.txt +++ b/cache/lastCache.txt @@ -1 +1 @@ -1543829895 \ No newline at end of file +1543940450 \ No newline at end of file diff --git a/composer.lock b/composer.lock index 4a981c4..3478c49 100644 --- a/composer.lock +++ b/composer.lock @@ -649,16 +649,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v3.4.18", + "version": "v3.4.19", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "db9e829c8f34c3d35cf37fcd4cdb4293bc4a2f14" + "reference": "d365fc4416ec4980825873962ea5d1b1bca46f1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/db9e829c8f34c3d35cf37fcd4cdb4293bc4a2f14", - "reference": "db9e829c8f34c3d35cf37fcd4cdb4293bc4a2f14", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d365fc4416ec4980825873962ea5d1b1bca46f1a", + "reference": "d365fc4416ec4980825873962ea5d1b1bca46f1a", "shasum": "" }, "require": { @@ -708,7 +708,7 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2018-10-30T16:50:50+00:00" + "time": "2018-11-26T10:17:44+00:00" }, { "name": "symfony/polyfill-ctype", @@ -770,16 +770,16 @@ }, { "name": "symfony/yaml", - "version": "v2.8.47", + "version": "v2.8.48", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "0e16589861f192dbffb19b06683ce3ef58f7f99d" + "reference": "02c1859112aa779d9ab394ae4f3381911d84052b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/0e16589861f192dbffb19b06683ce3ef58f7f99d", - "reference": "0e16589861f192dbffb19b06683ce3ef58f7f99d", + "url": "https://api.github.com/repos/symfony/yaml/zipball/02c1859112aa779d9ab394ae4f3381911d84052b", + "reference": "02c1859112aa779d9ab394ae4f3381911d84052b", "shasum": "" }, "require": { @@ -816,7 +816,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2018-10-02T16:27:16+00:00" + "time": "2018-11-11T11:18:13+00:00" }, { "name": "twig/twig", @@ -890,12 +890,12 @@ "source": { "type": "git", "url": "https://github.com/vlucas/valitron.git", - "reference": "661365f3173433fd0deee625f1835377ce0947e5" + "reference": "dc3314a0ebeafb51b3f88be6ba90060ac175058d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/valitron/zipball/661365f3173433fd0deee625f1835377ce0947e5", - "reference": "661365f3173433fd0deee625f1835377ce0947e5", + "url": "https://api.github.com/repos/vlucas/valitron/zipball/dc3314a0ebeafb51b3f88be6ba90060ac175058d", + "reference": "dc3314a0ebeafb51b3f88be6ba90060ac175058d", "shasum": "" }, "require": { @@ -931,7 +931,7 @@ "validation", "validator" ], - "time": "2018-10-14T12:01:40+00:00" + "time": "2018-11-19T21:37:23+00:00" } ], "packages-dev": [], diff --git a/media/markdown.png b/media/markdown.png deleted file mode 100644 index 31e1d08..0000000 Binary files a/media/markdown.png and /dev/null differ diff --git a/media/original/5bf950ebf2abc-original.png b/media/original/5bf950ebf2abc-original.png deleted file mode 100644 index 31e1d08..0000000 Binary files a/media/original/5bf950ebf2abc-original.png and /dev/null differ diff --git a/system/Models/ProcessImage.php b/system/Models/ProcessImage.php index 5b25018..89431d6 100644 --- a/system/Models/ProcessImage.php +++ b/system/Models/ProcessImage.php @@ -67,7 +67,10 @@ class ProcessImage $tmpFolder = $basePath . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR; $originalFolder = $basePath . DIRECTORY_SEPARATOR . 'original' . DIRECTORY_SEPARATOR; $liveFolder = $basePath . DIRECTORY_SEPARATOR . 'live' . DIRECTORY_SEPARATOR; - + + if(!file_exists($originalFolder)){ mkdir($originalFolder, 0774, true); } + if(!file_exists($liveFolder)){ mkdir($liveFolder, 0774, true); } + $name = uniqid(); $files = scandir($tmpFolder); @@ -232,7 +235,7 @@ class ProcessImage } public function saveOriginal($folder, $image, $name, $type) - { + { if(!file_exists($folder)) { mkdir($folder, 0774, true); @@ -277,6 +280,13 @@ class ProcessImage public function clearTempFolder() { $folder = getcwd() . DIRECTORY_SEPARATOR . 'media' . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR; + + if(!file_exists($folder)) + { + mkdir($folder, 0774, true); + return true; + } + $files = scandir($folder); $result = true; diff --git a/system/Settings.php b/system/Settings.php index a21867f..7c30f01 100644 --- a/system/Settings.php +++ b/system/Settings.php @@ -8,13 +8,15 @@ class Settings { $settings = self::getDefaultSettings(); $userSettings = self::getUserSettings(); + + $imgSettings = isset($settings['images']) ? $settings['images'] : []; if($userSettings) { - $imgSettings = $settings['images']; $settings = array_merge($settings, $userSettings); $settings['setup'] = false; } + $settings['images'] = isset($userSettings['images']) ? array_merge($imgSettings, $userSettings['images']) : $imgSettings; $settings['themePath'] = $settings['rootPath'] . $settings['themeFolder'] . DIRECTORY_SEPARATOR . $settings['theme']; @@ -48,7 +50,7 @@ class Settings 'version' => '1.2.8', 'setup' => true, 'welcome' => true, - 'images' => ['live' => ['width' => 720], 'mlibrary' => ['width' => 50, 'height' => 50]], + 'images' => ['live' => ['width' => 820], 'mlibrary' => ['width' => 50, 'height' => 50]], ]; } diff --git a/system/author/css/style.css b/system/author/css/style.css index 18a9733..e60a469 100644 --- a/system/author/css/style.css +++ b/system/author/css/style.css @@ -1447,16 +1447,22 @@ label .help, .label .help{ display: block; } .hidden{ - display: none; + visibility: hidden; } .hidden .blox:hover{ background: #fff; } .component{ - position: relative; + position: absolute; width: 100%; z-index:9; } +.format-bar .hidden{ + display: none; +} +.format-bar .component{ + position: relative; +} .fade-editor-enter-active{ transition: opacity .5s; } @@ -1475,7 +1481,7 @@ label .help, .label .help{ .format-bar .blox-editor{ display: inline; } -.format-item{ +button.format-item{ margin-right: 2px; padding: 5px; background: #70c1b3; @@ -1487,7 +1493,7 @@ label .help, .label .help{ height: 40px; text-align: center; } -.format-item:hover{ +button.format-item:hover{ background: #66b0a3; cursor: pointer; } diff --git a/system/author/js/vue-blox.js b/system/author/js/vue-blox.js index 2bee293..98b6ea8 100644 --- a/system/author/js/vue-blox.js +++ b/system/author/js/vue-blox.js @@ -2,7 +2,7 @@ const eventBus = new Vue(); const contentComponent = Vue.component('content-block', { props: ['body'], - template: '