From d72093ee21d0909c1c93ada68073d65e6fc265a3 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 22 Apr 2017 18:45:11 +0300 Subject: [PATCH] -Gallery ready --- backend/web/js/galleryWidget.js | 2 +- composer.json | 3 ++- composer.lock | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 62 insertions(+), 4 deletions(-) diff --git a/backend/web/js/galleryWidget.js b/backend/web/js/galleryWidget.js index 75edb78..7dca732 100644 --- a/backend/web/js/galleryWidget.js +++ b/backend/web/js/galleryWidget.js @@ -32,7 +32,7 @@ $( .on( 'click', '#add-image', function(e) { var hash = Math.floor(Math.random() * 89999) + 10000; - var content = '
' + '' + '

' + '
'; + var content = '
' + '' + '

' + '
'; $('.gw-container') .append(content); // if (document.querySelectorAll(".gw-container > .gw-item").length % 3 === 0) { diff --git a/composer.json b/composer.json index ee2688b..3f569e1 100755 --- a/composer.json +++ b/composer.json @@ -30,7 +30,8 @@ "bower-asset/amcharts-stock": "@dev", "speixoto/yii2-amcharts": "^0.1.1", "2amigos/yii2-tinymce-widget": "~1.1", - "kartik-v/yii2-widget-select2": "@dev" + "kartik-v/yii2-widget-select2": "@dev", + "phpoffice/phpexcel": "^1.8" }, "require-dev": { "yiisoft/yii2-debug": "~2.0.0", diff --git a/composer.lock b/composer.lock index 9358271..0a755d1 100755 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "5b092c236d38f0a67965dd93a4417ac8", - "content-hash": "25d3d8f8c01378ef1793a93fc78d65e7", + "hash": "faab32dd593e809e5ef4b627bfa057a9", + "content-hash": "910eed691b9ef35e3c8362d0df0af174", "packages": [ { "name": "2amigos/yii2-tinymce-widget", @@ -1607,6 +1607,63 @@ "time": "2016-11-29 18:17:37" }, { + "name": "phpoffice/phpexcel", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/PHPOffice/PHPExcel.git", + "reference": "372c7cbb695a6f6f1e62649381aeaa37e7e70b32" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPOffice/PHPExcel/zipball/372c7cbb695a6f6f1e62649381aeaa37e7e70b32", + "reference": "372c7cbb695a6f6f1e62649381aeaa37e7e70b32", + "shasum": "" + }, + "require": { + "ext-xml": "*", + "ext-xmlwriter": "*", + "php": ">=5.2.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "PHPExcel": "Classes/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL" + ], + "authors": [ + { + "name": "Maarten Balliauw", + "homepage": "http://blog.maartenballiauw.be" + }, + { + "name": "Mark Baker" + }, + { + "name": "Franck Lefevre", + "homepage": "http://blog.rootslabs.net" + }, + { + "name": "Erik Tilt" + } + ], + "description": "PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", + "homepage": "http://phpexcel.codeplex.com", + "keywords": [ + "OpenXML", + "excel", + "php", + "spreadsheet", + "xls", + "xlsx" + ], + "time": "2015-05-01 07:00:55" + }, + { "name": "phpseclib/phpseclib", "version": "2.0.4", "source": { -- libgit2 0.21.4