From: Vincent Vanwaelscappel Date: Mon, 12 Oct 2020 15:58:28 +0000 (+0200) Subject: wip #3924 @4 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=33f0110b8f6350a7cf3d1174df317d1ded971775;p=fluidbook-toolbox.git wip #3924 @4 --- diff --git a/app/Models/Quiz.php b/app/Models/Quiz.php index 627d16976..c83cab6d3 100644 --- a/app/Models/Quiz.php +++ b/app/Models/Quiz.php @@ -81,7 +81,7 @@ class Quiz extends CubistMagicAbstractModel 'type' => User::class, 'column' => true, 'can' => 'toolbox:quiz:edit_ownership', - 'attribute'=>'companyWithName', + 'attribute' => 'companyWithName', 'tab' => 'Project']); $this->addField(['name' => 'title', @@ -132,19 +132,20 @@ class Quiz extends CubistMagicAbstractModel 'hint' => 'Over this score (out of 100), the quiz is passed. Set 0 to disable', 'tab' => 'Settings']); - $this->addField(['name'=>'instantReview', - 'label'=>'Enable instant review', - 'hint'=>'Let the user see if he had a correct or wrong answer, just after his answer', - 'type'=>'Checkbox', - 'tab'=>'Settings']); + $this->addField(['name' => 'instantReview', + 'label' => 'Enable instant review', + 'hint' => 'Let the user see if he had a correct or wrong answer with a icon, just after his answer', + 'default' => true, + 'type' => 'Checkbox', + 'tab' => 'Settings']); $this->addField(['name' => 'review', 'label' => 'Enable answer review', 'hint' => 'Let the user review his answers and the correct ones at the end of the quiz', 'type' => 'Checkbox', + 'default' => true, 'tab' => 'Settings']); - foreach (self::$_actions as $action => $label) { $this->addField(['name' => $action, 'label' => $label, @@ -209,6 +210,7 @@ class Quiz extends CubistMagicAbstractModel $xml->addAttribute('id', $this->getAttribute('id')); $xml->addChild('title', $this->getAttribute('title')); $xml->addChild('threshold', $this->getAttribute('threshold') ?: '0'); + $xml->addChild('instantReview', $this->getAttribute('instantReview') ? '1' : '0'); $xml->addChild('review', $this->getAttribute('review') ? '1' : '0'); $xt = $xml->addChild('translations'); /** @var QuizTranslation $translation */ @@ -232,17 +234,25 @@ class Quiz extends CubistMagicAbstractModel $questions = $this->getAttribute('questions'); $xqs = $xml->addChild('questions'); foreach ($questions as $question) { + if (!isset($question['type'])) { + $question['type'] = 'multiple'; + } $xq = $xqs->addChild('question'); if ($question['multiple']) { $xq->addAttribute('multiple', '1'); } + $xq->addAttribute('type', $question['type']); $xq->addChild('label', $question['question']); - $xas = $xq->addChild('answers'); - foreach ($question['answers'] as $answer) { - $xa = $xas->addChild('answer', $answer['answer']); - if ($answer['correct']) { - $xa->addAttribute('correct', '1'); + if ($question['type'] === 'multiple') { + $xas = $xq->addChild('answers'); + foreach ($question['answers'] as $answer) { + $xa = $xas->addChild('answer', $answer['answer']); + if ($answer['correct']) { + $xa->addAttribute('correct', '1'); + } } + } else { + $xq->addAttribute('placeholder', $question['placeholder']); } $xq->addChild('correction', $question['explaination']); } diff --git a/app/Models/QuizTranslation.php b/app/Models/QuizTranslation.php index bc9be5fed..557812ca5 100644 --- a/app/Models/QuizTranslation.php +++ b/app/Models/QuizTranslation.php @@ -11,7 +11,9 @@ class QuizTranslation extends CubistMagicAbstractModel 'singular' => 'quiz translation', 'plural' => 'quiz translations']; - protected static $_texts= ['validateAnswer' => 'Validate answers', + protected static $_texts = [ + 'validateAnswer' => 'Validate answers', + 'validateAnswerSingular' => 'Validate answer', 'reviewAnswer' => 'Review answers', 'question' => 'Question %d:', 'totalQuestions' => 'Total questions:', @@ -40,7 +42,8 @@ class QuizTranslation extends CubistMagicAbstractModel } } - public static function getTexts(){ + public static function getTexts() + { return self::$_texts; } } diff --git a/app/SubForms/Question.php b/app/SubForms/Question.php index 815ee738d..bec644db7 100644 --- a/app/SubForms/Question.php +++ b/app/SubForms/Question.php @@ -18,11 +18,19 @@ class Question extends SubForm $this->addField(['name' => 'type', 'type' => 'SelectFromArray', 'label' => 'Type', + 'default' => 'multiple', 'options' => ['multiple' => 'Multiple choice question', 'text' => 'Text', 'textarea' => 'Long text', 'email' => 'E-mail']]); + $this->addField(['name' => 'placeholder', + 'type' => 'Text', + 'label' => 'Placeholder', + 'hint' => 'Text displayed in the field when empty', + 'when' => ['type' => ['text', 'textarea', 'email']] + ]); + $this->addField(['name' => 'explaination', 'type' => 'Textarea', 'label' => 'Explanation / Answer details', diff --git a/composer.lock b/composer.lock index e7d77cadc..7ed5a3f3d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "86e2f85278fd940100a4fbdd03bea7f2", + "content-hash": "b61ac3e9f828d211f747b8170cb9726d", "packages": [ { "name": "backpack/backupmanager", @@ -935,13 +935,13 @@ "source": { "type": "git", "url": "git://git.cubedesigners.com/cubedesigners_userdatabase.git", - "reference": "d30c9e38796c6b325b4e38502d6d51fafe50eaf7" + "reference": "063bc4c321b29af6a35d34b3ecbd4e56add32776" }, "dist": { "type": "tar", - "url": "https://composer.cubedesigners.com/dist/cubedesigners/userdatabase/cubedesigners-userdatabase-dev-master-1b0978.tar", - "reference": "d30c9e38796c6b325b4e38502d6d51fafe50eaf7", - "shasum": "91a65cb9ad91e0649f13b283fda610398f91d1c9" + "url": "https://composer.cubedesigners.com/dist/cubedesigners/userdatabase/cubedesigners-userdatabase-dev-master-ada4e5.tar", + "reference": "063bc4c321b29af6a35d34b3ecbd4e56add32776", + "shasum": "e4ac6d4a47fbd6d531e63e1df59c75cc1503cc14" }, "require": { "cubist/cms-back": "dev-master" @@ -962,7 +962,7 @@ } ], "description": "Cubedesigners common users database", - "time": "2020-06-22T12:14:39+00:00" + "time": "2020-09-17T07:31:32+00:00" }, { "name": "cubist/cms-back", @@ -970,13 +970,13 @@ "source": { "type": "git", "url": "git://git.cubedesigners.com/cubist_cms-back.git", - "reference": "d02f038c5513ad09ada15457357b2c551da5db7e" + "reference": "a93ca4e7089022c95cd738143fffb9cba3efe76f" }, "dist": { "type": "tar", - "url": "https://composer.cubedesigners.com/dist/cubist/cms-back/cubist-cms-back-dev-master-779b2d.tar", - "reference": "d02f038c5513ad09ada15457357b2c551da5db7e", - "shasum": "4d5241ae215ec1d0d6e59305e4e39bda6b108c98" + "url": "https://composer.cubedesigners.com/dist/cubist/cms-back/cubist-cms-back-dev-master-3bc9cf.tar", + "reference": "a93ca4e7089022c95cd738143fffb9cba3efe76f", + "shasum": "2ee03d406892aaae9ac63910af4c7960e48e4265" }, "require": { "backpack/backupmanager": "^2.0", @@ -1051,7 +1051,7 @@ } ], "description": "Cubist Backpack extension", - "time": "2020-09-16T14:25:03+00:00" + "time": "2020-10-08T17:54:21+00:00" }, { "name": "cubist/cms-front", @@ -1599,30 +1599,30 @@ }, { "name": "doctrine/dbal", - "version": "2.10.4", + "version": "2.11.1", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "47433196b6390d14409a33885ee42b6208160643" + "reference": "6e6903cd5e3a5be60a79439e3ee8fe126f78fe86" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/47433196b6390d14409a33885ee42b6208160643", - "reference": "47433196b6390d14409a33885ee42b6208160643", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/6e6903cd5e3a5be60a79439e3ee8fe126f78fe86", + "reference": "6e6903cd5e3a5be60a79439e3ee8fe126f78fe86", "shasum": "" }, "require": { "doctrine/cache": "^1.0", "doctrine/event-manager": "^1.0", "ext-pdo": "*", - "php": "^7.2" + "php": "^7.3" }, "require-dev": { "doctrine/coding-standard": "^8.1", "jetbrains/phpstorm-stubs": "^2019.1", "nikic/php-parser": "^4.4", "phpstan/phpstan": "^0.12.40", - "phpunit/phpunit": "^8.5.5", + "phpunit/phpunit": "^9.3", "psalm/plugin-phpunit": "^0.10.0", "symfony/console": "^2.0.5|^3.0|^4.0|^5.0", "vimeo/psalm": "^3.14.2" @@ -1636,8 +1636,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.10.x-dev", - "dev-develop": "3.0.x-dev" + "dev-master": "4.0.x-dev" } }, "autoload": { @@ -1690,7 +1689,7 @@ "sqlserver", "sqlsrv" ], - "time": "2020-09-12T21:20:41+00:00" + "time": "2020-09-27T04:09:41+00:00" }, { "name": "doctrine/event-manager", @@ -1963,16 +1962,16 @@ }, { "name": "egulias/email-validator", - "version": "2.1.20", + "version": "2.1.22", "source": { "type": "git", "url": "https://github.com/egulias/EmailValidator.git", - "reference": "f46887bc48db66c7f38f668eb7d6ae54583617ff" + "reference": "68e418ec08fbfc6f58f6fd2eea70ca8efc8cc7d5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/f46887bc48db66c7f38f668eb7d6ae54583617ff", - "reference": "f46887bc48db66c7f38f668eb7d6ae54583617ff", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/68e418ec08fbfc6f58f6fd2eea70ca8efc8cc7d5", + "reference": "68e418ec08fbfc6f58f6fd2eea70ca8efc8cc7d5", "shasum": "" }, "require": { @@ -2017,20 +2016,20 @@ "validation", "validator" ], - "time": "2020-09-06T13:44:32+00:00" + "time": "2020-09-26T15:48:38+00:00" }, { "name": "elasticsearch/elasticsearch", - "version": "v7.9.0", + "version": "v7.9.1", "source": { "type": "git", "url": "https://github.com/elastic/elasticsearch-php.git", - "reference": "1380925ccd276ab897c76596cf3705cb9714a78c" + "reference": "38e821f37491bd91fe06b18b88613128950a11bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/elastic/elasticsearch-php/zipball/1380925ccd276ab897c76596cf3705cb9714a78c", - "reference": "1380925ccd276ab897c76596cf3705cb9714a78c", + "url": "https://api.github.com/repos/elastic/elasticsearch-php/zipball/38e821f37491bd91fe06b18b88613128950a11bb", + "reference": "38e821f37491bd91fe06b18b88613128950a11bb", "shasum": "" }, "require": { @@ -2042,6 +2041,7 @@ "require-dev": { "cpliakas/git-wrapper": "~2.0", "doctrine/inflector": "^1.3", + "ext-yaml": "*", "mockery/mockery": "^1.2", "phpstan/phpstan": "^0.12", "phpunit/phpunit": "^7.5", @@ -2080,7 +2080,7 @@ "elasticsearch", "search" ], - "time": "2020-08-18T13:44:18+00:00" + "time": "2020-10-06T13:03:50+00:00" }, { "name": "ezimuel/guzzlestreams", @@ -2422,33 +2422,32 @@ }, { "name": "guzzlehttp/guzzle", - "version": "7.0.1", + "version": "7.2.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "2d9d3c186a6637a43193e66b097c50e4451eaab2" + "reference": "0aa74dfb41ae110835923ef10a9d803a22d50e79" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/2d9d3c186a6637a43193e66b097c50e4451eaab2", - "reference": "2d9d3c186a6637a43193e66b097c50e4451eaab2", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/0aa74dfb41ae110835923ef10a9d803a22d50e79", + "reference": "0aa74dfb41ae110835923ef10a9d803a22d50e79", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.0", - "guzzlehttp/psr7": "^1.6.1", - "php": "^7.2.5", + "guzzlehttp/promises": "^1.4", + "guzzlehttp/psr7": "^1.7", + "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0" }, "provide": { "psr/http-client-implementation": "1.0" }, "require-dev": { - "ergebnis/composer-normalize": "^2.0", "ext-curl": "*", - "php-http/client-integration-tests": "dev-phpunit8", - "phpunit/phpunit": "^8.5.5", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.5 || ^9.3.5", "psr/log": "^1.1" }, "suggest": { @@ -2459,7 +2458,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "7.0-dev" + "dev-master": "7.1-dev" } }, "autoload": { @@ -2499,27 +2498,27 @@ "rest", "web service" ], - "time": "2020-06-27T10:33:25+00:00" + "time": "2020-10-10T11:47:56+00:00" }, { "name": "guzzlehttp/promises", - "version": "v1.3.1", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" + "reference": "60d379c243457e073cff02bc323a2a86cb355631" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", + "url": "https://api.github.com/repos/guzzle/promises/zipball/60d379c243457e073cff02bc323a2a86cb355631", + "reference": "60d379c243457e073cff02bc323a2a86cb355631", "shasum": "" }, "require": { - "php": ">=5.5.0" + "php": ">=5.5" }, "require-dev": { - "phpunit/phpunit": "^4.0" + "symfony/phpunit-bridge": "^4.4 || ^5.1" }, "type": "library", "extra": { @@ -2550,20 +2549,20 @@ "keywords": [ "promise" ], - "time": "2016-12-20T10:07:11+00:00" + "time": "2020-09-30T07:37:28+00:00" }, { "name": "guzzlehttp/psr7", - "version": "1.6.1", + "version": "1.7.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "239400de7a173fe9901b9ac7c06497751f00727a" + "reference": "53330f47520498c0ae1f61f7e2c90f55690c06a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a", - "reference": "239400de7a173fe9901b9ac7c06497751f00727a", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/53330f47520498c0ae1f61f7e2c90f55690c06a3", + "reference": "53330f47520498c0ae1f61f7e2c90f55690c06a3", "shasum": "" }, "require": { @@ -2576,15 +2575,15 @@ }, "require-dev": { "ext-zlib": "*", - "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" + "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10" }, "suggest": { - "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6-dev" + "dev-master": "1.7-dev" } }, "autoload": { @@ -2621,7 +2620,7 @@ "uri", "url" ], - "time": "2019-07-01T23:21:34+00:00" + "time": "2020-09-30T07:37:11+00:00" }, { "name": "intervention/image", @@ -2695,16 +2694,16 @@ }, { "name": "laravel/framework", - "version": "v7.28.2", + "version": "v7.28.4", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "0956b0688d96565044074b77f521a653d9fce5fb" + "reference": "de187e9200948bab6975167e480950abcd5efdac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/0956b0688d96565044074b77f521a653d9fce5fb", - "reference": "0956b0688d96565044074b77f521a653d9fce5fb", + "url": "https://api.github.com/repos/laravel/framework/zipball/de187e9200948bab6975167e480950abcd5efdac", + "reference": "de187e9200948bab6975167e480950abcd5efdac", "shasum": "" }, "require": { @@ -2849,7 +2848,7 @@ "framework", "laravel" ], - "time": "2020-09-15T14:48:02+00:00" + "time": "2020-10-06T14:22:09+00:00" }, { "name": "lavary/laravel-menu", @@ -3192,16 +3191,16 @@ }, { "name": "league/mime-type-detection", - "version": "1.4.0", + "version": "1.5.0", "source": { "type": "git", "url": "https://github.com/thephpleague/mime-type-detection.git", - "reference": "fda190b62b962d96a069fcc414d781db66d65b69" + "reference": "ea2fbfc988bade315acd5967e6d02274086d0f28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/fda190b62b962d96a069fcc414d781db66d65b69", - "reference": "fda190b62b962d96a069fcc414d781db66d65b69", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ea2fbfc988bade315acd5967e6d02274086d0f28", + "reference": "ea2fbfc988bade315acd5967e6d02274086d0f28", "shasum": "" }, "require": { @@ -3229,7 +3228,7 @@ } ], "description": "Mime-type detection for Flysystem", - "time": "2020-08-09T10:34:01+00:00" + "time": "2020-09-21T18:10:53+00:00" }, { "name": "maennchen/zipstream-php", @@ -3482,16 +3481,16 @@ }, { "name": "nesbot/carbon", - "version": "2.40.0", + "version": "2.41.2", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "6c7646154181013ecd55e80c201b9fd873c6ee5d" + "reference": "35959c93ada06469107a05df6b15b65074a960cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/6c7646154181013ecd55e80c201b9fd873c6ee5d", - "reference": "6c7646154181013ecd55e80c201b9fd873c6ee5d", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/35959c93ada06469107a05df6b15b65074a960cf", + "reference": "35959c93ada06469107a05df6b15b65074a960cf", "shasum": "" }, "require": { @@ -3557,7 +3556,7 @@ "datetime", "time" ], - "time": "2020-09-11T19:00:58+00:00" + "time": "2020-10-10T23:35:06+00:00" }, { "name": "nothingworks/blade-svg", @@ -3663,29 +3662,29 @@ }, { "name": "opis/closure", - "version": "3.5.7", + "version": "3.6.0", "source": { "type": "git", "url": "https://github.com/opis/closure.git", - "reference": "4531e53afe2fc660403e76fb7644e95998bff7bf" + "reference": "c547f8262a5fa9ff507bd06cc394067b83a75085" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opis/closure/zipball/4531e53afe2fc660403e76fb7644e95998bff7bf", - "reference": "4531e53afe2fc660403e76fb7644e95998bff7bf", + "url": "https://api.github.com/repos/opis/closure/zipball/c547f8262a5fa9ff507bd06cc394067b83a75085", + "reference": "c547f8262a5fa9ff507bd06cc394067b83a75085", "shasum": "" }, "require": { - "php": "^5.4 || ^7.0" + "php": "^5.4 || ^7.0 || ^8.0" }, "require-dev": { "jeremeamia/superclosure": "^2.0", - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.5.x-dev" + "dev-master": "3.6.x-dev" } }, "autoload": { @@ -3720,7 +3719,7 @@ "serialization", "serialize" ], - "time": "2020-09-06T17:02:15+00:00" + "time": "2020-10-11T21:42:15+00:00" }, { "name": "paragonie/random_compat", @@ -4678,16 +4677,16 @@ }, { "name": "spatie/laravel-backup", - "version": "6.11.2", + "version": "6.11.4", "source": { "type": "git", "url": "https://github.com/spatie/laravel-backup.git", - "reference": "aef15441393bb317341bfd69869c0e4cefc109be" + "reference": "3aea94ae9a326871b702ccc358e91683d7782666" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-backup/zipball/aef15441393bb317341bfd69869c0e4cefc109be", - "reference": "aef15441393bb317341bfd69869c0e4cefc109be", + "url": "https://api.github.com/repos/spatie/laravel-backup/zipball/3aea94ae9a326871b702ccc358e91683d7782666", + "reference": "3aea94ae9a326871b702ccc358e91683d7782666", "shasum": "" }, "require": { @@ -4750,7 +4749,7 @@ "laravel-backup", "spatie" ], - "time": "2020-09-08T17:37:56+00:00" + "time": "2020-09-30T06:58:20+00:00" }, { "name": "spatie/laravel-googletagmanager", @@ -4872,16 +4871,16 @@ }, { "name": "spatie/laravel-medialibrary", - "version": "8.7.1", + "version": "8.10.1", "source": { "type": "git", "url": "https://github.com/spatie/laravel-medialibrary.git", - "reference": "316bdc11fbca573415b99eaed9830bdeb383ad44" + "reference": "72b408972ba0b994eb52f39d38169621699e549b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/316bdc11fbca573415b99eaed9830bdeb383ad44", - "reference": "316bdc11fbca573415b99eaed9830bdeb383ad44", + "url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/72b408972ba0b994eb52f39d38169621699e549b", + "reference": "72b408972ba0b994eb52f39d38169621699e549b", "shasum": "" }, "require": { @@ -4907,7 +4906,7 @@ "doctrine/dbal": "^2.5.2", "ext-pdo_sqlite": "*", "ext-zip": "*", - "guzzlehttp/guzzle": "^6.3", + "guzzlehttp/guzzle": "^6.3|^7.0", "league/flysystem-aws-s3-v3": "^1.0.23", "mockery/mockery": "^1.3", "orchestra/testbench": "^4.0|^5.0|^6.0", @@ -4958,20 +4957,20 @@ "media", "spatie" ], - "time": "2020-09-08T17:55:03+00:00" + "time": "2020-10-05T21:54:57+00:00" }, { "name": "spatie/laravel-permission", - "version": "3.16.0", + "version": "3.17.0", "source": { "type": "git", "url": "https://github.com/spatie/laravel-permission.git", - "reference": "c5082ee84e0d128896b4a6864a8502d8c5f1df08" + "reference": "35d40a45e49f5713f477823b571e05ef6a3a0394" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/c5082ee84e0d128896b4a6864a8502d8c5f1df08", - "reference": "c5082ee84e0d128896b4a6864a8502d8c5f1df08", + "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/35d40a45e49f5713f477823b571e05ef6a3a0394", + "reference": "35d40a45e49f5713f477823b571e05ef6a3a0394", "shasum": "" }, "require": { @@ -5026,20 +5025,20 @@ "security", "spatie" ], - "time": "2020-08-18T17:14:06+00:00" + "time": "2020-09-16T16:47:18+00:00" }, { "name": "spatie/laravel-translatable", - "version": "4.4.1", + "version": "4.5.0", "source": { "type": "git", "url": "https://github.com/spatie/laravel-translatable.git", - "reference": "cc2ce05f2dc9c7eca1ca79613d7dd3026c31e418" + "reference": "3af4a717bfcc836201461209c4344b8b98811701" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-translatable/zipball/cc2ce05f2dc9c7eca1ca79613d7dd3026c31e418", - "reference": "cc2ce05f2dc9c7eca1ca79613d7dd3026c31e418", + "url": "https://api.github.com/repos/spatie/laravel-translatable/zipball/3af4a717bfcc836201461209c4344b8b98811701", + "reference": "3af4a717bfcc836201461209c4344b8b98811701", "shasum": "" }, "require": { @@ -5048,6 +5047,7 @@ "php": "^7.2" }, "require-dev": { + "friendsofphp/php-cs-fixer": "^2.16", "mockery/mockery": "^1.3", "orchestra/testbench": "~3.8.0|^4.0|^5.0|^6.0" }, @@ -5098,7 +5098,7 @@ "spatie", "translate" ], - "time": "2020-09-06T19:02:11+00:00" + "time": "2020-10-03T11:00:18+00:00" }, { "name": "spatie/pdf-to-image", @@ -5320,16 +5320,16 @@ }, { "name": "symfony/console", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "186f395b256065ba9b890c0a4e48a91d598fa2cf" + "reference": "ae789a8a2ad189ce7e8216942cdb9b77319f5eb8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/186f395b256065ba9b890c0a4e48a91d598fa2cf", - "reference": "186f395b256065ba9b890c0a4e48a91d598fa2cf", + "url": "https://api.github.com/repos/symfony/console/zipball/ae789a8a2ad189ce7e8216942cdb9b77319f5eb8", + "reference": "ae789a8a2ad189ce7e8216942cdb9b77319f5eb8", "shasum": "" }, "require": { @@ -5395,11 +5395,11 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2020-09-02T07:07:40+00:00" + "time": "2020-10-07T15:23:00+00:00" }, { "name": "symfony/css-selector", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", @@ -5452,16 +5452,16 @@ }, { "name": "symfony/debug", - "version": "v4.4.13", + "version": "v4.4.15", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "aeb73aca16a8f1fe958230fe44e6cf4c84cbb85e" + "reference": "726b85e69342e767d60e3853b98559a68ff74183" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/aeb73aca16a8f1fe958230fe44e6cf4c84cbb85e", - "reference": "aeb73aca16a8f1fe958230fe44e6cf4c84cbb85e", + "url": "https://api.github.com/repos/symfony/debug/zipball/726b85e69342e767d60e3853b98559a68ff74183", + "reference": "726b85e69342e767d60e3853b98559a68ff74183", "shasum": "" }, "require": { @@ -5505,7 +5505,7 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2020-08-10T07:47:39+00:00" + "time": "2020-09-09T05:20:36+00:00" }, { "name": "symfony/deprecation-contracts", @@ -5559,16 +5559,16 @@ }, { "name": "symfony/error-handler", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "525636d4b84e06c6ca72d96b6856b5b169416e6a" + "reference": "5e4d8ef8d71822922d1eebd130219ae3491a5ca9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/525636d4b84e06c6ca72d96b6856b5b169416e6a", - "reference": "525636d4b84e06c6ca72d96b6856b5b169416e6a", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/5e4d8ef8d71822922d1eebd130219ae3491a5ca9", + "reference": "5e4d8ef8d71822922d1eebd130219ae3491a5ca9", "shasum": "" }, "require": { @@ -5612,20 +5612,20 @@ ], "description": "Symfony ErrorHandler Component", "homepage": "https://symfony.com", - "time": "2020-08-17T10:01:29+00:00" + "time": "2020-10-02T08:49:02+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "94871fc0a69c3c5da57764187724cdce0755899c" + "reference": "d5de97d6af175a9e8131c546db054ca32842dd0f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/94871fc0a69c3c5da57764187724cdce0755899c", - "reference": "94871fc0a69c3c5da57764187724cdce0755899c", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d5de97d6af175a9e8131c546db054ca32842dd0f", + "reference": "d5de97d6af175a9e8131c546db054ca32842dd0f", "shasum": "" }, "require": { @@ -5645,6 +5645,7 @@ "psr/log": "~1.0", "symfony/config": "^4.4|^5.0", "symfony/dependency-injection": "^4.4|^5.0", + "symfony/error-handler": "^4.4|^5.0", "symfony/expression-language": "^4.4|^5.0", "symfony/http-foundation": "^4.4|^5.0", "symfony/service-contracts": "^1.1|^2", @@ -5684,7 +5685,7 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2020-08-13T14:19:42+00:00" + "time": "2020-09-18T14:27:32+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -5750,16 +5751,16 @@ }, { "name": "symfony/finder", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "2b765f0cf6612b3636e738c0689b29aa63088d5d" + "reference": "2c3ba7ad6884e6c4451ce2340e2dc23f6fa3e0d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/2b765f0cf6612b3636e738c0689b29aa63088d5d", - "reference": "2b765f0cf6612b3636e738c0689b29aa63088d5d", + "url": "https://api.github.com/repos/symfony/finder/zipball/2c3ba7ad6884e6c4451ce2340e2dc23f6fa3e0d8", + "reference": "2c3ba7ad6884e6c4451ce2340e2dc23f6fa3e0d8", "shasum": "" }, "require": { @@ -5795,20 +5796,81 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2020-08-17T10:01:29+00:00" + "time": "2020-09-02T16:23:27+00:00" + }, + { + "name": "symfony/http-client-contracts", + "version": "v2.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-client-contracts.git", + "reference": "3a5d0fe7908daaa23e3dbf4cee3ba4bfbb19fdd3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/3a5d0fe7908daaa23e3dbf4cee3ba4bfbb19fdd3", + "reference": "3a5d0fe7908daaa23e3dbf4cee3ba4bfbb19fdd3", + "shasum": "" + }, + "require": { + "php": ">=7.2.5" + }, + "suggest": { + "symfony/http-client-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\HttpClient\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to HTTP clients", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2020-09-07T11:33:47+00:00" }, { "name": "symfony/http-foundation", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "41a4647f12870e9d41d9a7d72ff0614a27208558" + "reference": "353b42e7b4fd1c898aab09a059466c9cea74039b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/41a4647f12870e9d41d9a7d72ff0614a27208558", - "reference": "41a4647f12870e9d41d9a7d72ff0614a27208558", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/353b42e7b4fd1c898aab09a059466c9cea74039b", + "reference": "353b42e7b4fd1c898aab09a059466c9cea74039b", "shasum": "" }, "require": { @@ -5856,20 +5918,20 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2020-08-17T07:48:54+00:00" + "time": "2020-09-27T14:14:57+00:00" }, { "name": "symfony/http-kernel", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "3e32676e6cb5d2081c91a56783471ff8a7f7110b" + "reference": "1764b87d2f10d5c9ce6e4850fe27934116d89708" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/3e32676e6cb5d2081c91a56783471ff8a7f7110b", - "reference": "3e32676e6cb5d2081c91a56783471ff8a7f7110b", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/1764b87d2f10d5c9ce6e4850fe27934116d89708", + "reference": "1764b87d2f10d5c9ce6e4850fe27934116d89708", "shasum": "" }, "require": { @@ -5878,6 +5940,7 @@ "symfony/deprecation-contracts": "^2.1", "symfony/error-handler": "^4.4|^5.0", "symfony/event-dispatcher": "^5.0", + "symfony/http-client-contracts": "^1.1|^2", "symfony/http-foundation": "^4.4|^5.0", "symfony/polyfill-ctype": "^1.8", "symfony/polyfill-php73": "^1.9", @@ -5955,20 +6018,20 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2020-09-02T08:15:18+00:00" + "time": "2020-10-04T07:57:28+00:00" }, { "name": "symfony/mime", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "89a2c9b4cb7b5aa516cf55f5194c384f444c81dc" + "reference": "4404d6545125863561721514ad9388db2661eec5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/89a2c9b4cb7b5aa516cf55f5194c384f444c81dc", - "reference": "89a2c9b4cb7b5aa516cf55f5194c384f444c81dc", + "url": "https://api.github.com/repos/symfony/mime/zipball/4404d6545125863561721514ad9388db2661eec5", + "reference": "4404d6545125863561721514ad9388db2661eec5", "shasum": "" }, "require": { @@ -6018,7 +6081,7 @@ "mime", "mime-type" ], - "time": "2020-08-17T10:01:29+00:00" + "time": "2020-09-02T16:23:27+00:00" }, { "name": "symfony/polyfill-ctype", @@ -6662,16 +6725,16 @@ }, { "name": "symfony/process", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "1864216226af21eb76d9477f691e7cbf198e0402" + "reference": "d3a2e64866169586502f0cd9cab69135ad12cee9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/1864216226af21eb76d9477f691e7cbf198e0402", - "reference": "1864216226af21eb76d9477f691e7cbf198e0402", + "url": "https://api.github.com/repos/symfony/process/zipball/d3a2e64866169586502f0cd9cab69135ad12cee9", + "reference": "d3a2e64866169586502f0cd9cab69135ad12cee9", "shasum": "" }, "require": { @@ -6708,20 +6771,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2020-07-23T08:36:24+00:00" + "time": "2020-09-02T16:23:27+00:00" }, { "name": "symfony/routing", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "47b0218344cb6af25c93ca8ee1137fafbee5005d" + "reference": "720348c2ae011f8c56964c0fc3e992840cb60ccf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/47b0218344cb6af25c93ca8ee1137fafbee5005d", - "reference": "47b0218344cb6af25c93ca8ee1137fafbee5005d", + "url": "https://api.github.com/repos/symfony/routing/zipball/720348c2ae011f8c56964c0fc3e992840cb60ccf", + "reference": "720348c2ae011f8c56964c0fc3e992840cb60ccf", "shasum": "" }, "require": { @@ -6786,7 +6849,7 @@ "uri", "url" ], - "time": "2020-08-10T08:03:57+00:00" + "time": "2020-10-02T13:05:43+00:00" }, { "name": "symfony/service-contracts", @@ -6852,16 +6915,16 @@ }, { "name": "symfony/string", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "0de4cc1e18bb596226c06a82e2e7e9bc6001a63a" + "reference": "4a9afe9d07bac506f75bcee8ed3ce76da5a9343e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/0de4cc1e18bb596226c06a82e2e7e9bc6001a63a", - "reference": "0de4cc1e18bb596226c06a82e2e7e9bc6001a63a", + "url": "https://api.github.com/repos/symfony/string/zipball/4a9afe9d07bac506f75bcee8ed3ce76da5a9343e", + "reference": "4a9afe9d07bac506f75bcee8ed3ce76da5a9343e", "shasum": "" }, "require": { @@ -6919,20 +6982,20 @@ "utf-8", "utf8" ], - "time": "2020-08-17T07:48:54+00:00" + "time": "2020-09-15T12:23:47+00:00" }, { "name": "symfony/translation", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "917b02cdc5f33e0309b8e9d33ee1480b20687413" + "reference": "e3cdd5119b1b5bf0698c351b8ee20fb5a4ea248b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/917b02cdc5f33e0309b8e9d33ee1480b20687413", - "reference": "917b02cdc5f33e0309b8e9d33ee1480b20687413", + "url": "https://api.github.com/repos/symfony/translation/zipball/e3cdd5119b1b5bf0698c351b8ee20fb5a4ea248b", + "reference": "e3cdd5119b1b5bf0698c351b8ee20fb5a4ea248b", "shasum": "" }, "require": { @@ -6997,20 +7060,20 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2020-08-17T10:01:29+00:00" + "time": "2020-09-27T03:44:28+00:00" }, { "name": "symfony/translation-contracts", - "version": "v2.2.0", + "version": "v2.3.0", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "77ce1c3627c9f39643acd9af086631f842c50c4d" + "reference": "e2eaa60b558f26a4b0354e1bbb25636efaaad105" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/77ce1c3627c9f39643acd9af086631f842c50c4d", - "reference": "77ce1c3627c9f39643acd9af086631f842c50c4d", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/e2eaa60b558f26a4b0354e1bbb25636efaaad105", + "reference": "e2eaa60b558f26a4b0354e1bbb25636efaaad105", "shasum": "" }, "require": { @@ -7022,7 +7085,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.2-dev" + "dev-master": "2.3-dev" }, "thanks": { "name": "symfony/contracts", @@ -7058,20 +7121,20 @@ "interoperability", "standards" ], - "time": "2020-09-07T11:33:47+00:00" + "time": "2020-09-28T13:05:58+00:00" }, { "name": "symfony/var-dumper", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "b43a3905262bcf97b2510f0621f859ca4f5287be" + "reference": "c976c115a0d788808f7e71834c8eb0844f678d02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/b43a3905262bcf97b2510f0621f859ca4f5287be", - "reference": "b43a3905262bcf97b2510f0621f859ca4f5287be", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/c976c115a0d788808f7e71834c8eb0844f678d02", + "reference": "c976c115a0d788808f7e71834c8eb0844f678d02", "shasum": "" }, "require": { @@ -7134,7 +7197,7 @@ "debug", "dump" ], - "time": "2020-08-17T07:42:30+00:00" + "time": "2020-09-18T14:27:32+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -7698,16 +7761,16 @@ }, { "name": "composer/semver", - "version": "1.7.0", + "version": "1.7.1", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "114f819054a2ea7db03287f5efb757e2af6e4079" + "reference": "38276325bd896f90dfcfe30029aa5db40df387a7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/114f819054a2ea7db03287f5efb757e2af6e4079", - "reference": "114f819054a2ea7db03287f5efb757e2af6e4079", + "url": "https://api.github.com/repos/composer/semver/zipball/38276325bd896f90dfcfe30029aa5db40df387a7", + "reference": "38276325bd896f90dfcfe30029aa5db40df387a7", "shasum": "" }, "require": { @@ -7755,7 +7818,7 @@ "validation", "versioning" ], - "time": "2020-09-09T09:34:06+00:00" + "time": "2020-09-27T13:13:07+00:00" }, { "name": "composer/spdx-licenses", @@ -7952,16 +8015,16 @@ }, { "name": "facade/flare-client-php", - "version": "1.3.5", + "version": "1.3.6", "source": { "type": "git", "url": "https://github.com/facade/flare-client-php.git", - "reference": "25907a113bfc212a38d458ae365bfb902b4e7fb8" + "reference": "451fadf38e9f635e7f8e1f5b3cf5c9eb82f11799" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/facade/flare-client-php/zipball/25907a113bfc212a38d458ae365bfb902b4e7fb8", - "reference": "25907a113bfc212a38d458ae365bfb902b4e7fb8", + "url": "https://api.github.com/repos/facade/flare-client-php/zipball/451fadf38e9f635e7f8e1f5b3cf5c9eb82f11799", + "reference": "451fadf38e9f635e7f8e1f5b3cf5c9eb82f11799", "shasum": "" }, "require": { @@ -7974,7 +8037,6 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.14", - "larapack/dd": "^1.1", "phpunit/phpunit": "^7.5.16", "spatie/phpunit-snapshot-assertions": "^2.0" }, @@ -8004,20 +8066,20 @@ "flare", "reporting" ], - "time": "2020-08-26T18:06:23+00:00" + "time": "2020-09-18T06:35:11+00:00" }, { "name": "facade/ignition", - "version": "2.3.7", + "version": "2.3.8", "source": { "type": "git", "url": "https://github.com/facade/ignition.git", - "reference": "b364db8860a63c1fb58b72b9718863c21df08762" + "reference": "e8fed9c382cd1d02b5606688576a35619afdf82c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/facade/ignition/zipball/b364db8860a63c1fb58b72b9718863c21df08762", - "reference": "b364db8860a63c1fb58b72b9718863c21df08762", + "url": "https://api.github.com/repos/facade/ignition/zipball/e8fed9c382cd1d02b5606688576a35619afdf82c", + "reference": "e8fed9c382cd1d02b5606688576a35619afdf82c", "shasum": "" }, "require": { @@ -8076,7 +8138,7 @@ "laravel", "page" ], - "time": "2020-09-06T19:26:27+00:00" + "time": "2020-10-01T23:01:14+00:00" }, { "name": "facade/ignition-contracts", @@ -8533,16 +8595,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.9.1", + "version": "v4.10.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "88e519766fc58bd46b8265561fb79b54e2e00b28" + "reference": "658f1be311a230e0907f5dfe0213742aff0596de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/88e519766fc58bd46b8265561fb79b54e2e00b28", - "reference": "88e519766fc58bd46b8265561fb79b54e2e00b28", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/658f1be311a230e0907f5dfe0213742aff0596de", + "reference": "658f1be311a230e0907f5dfe0213742aff0596de", "shasum": "" }, "require": { @@ -8581,7 +8643,7 @@ "parser", "php" ], - "time": "2020-08-30T16:15:20+00:00" + "time": "2020-09-26T10:30:38+00:00" }, { "name": "nunomaduro/collision", @@ -8806,16 +8868,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.2.1", + "version": "5.2.2", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "d870572532cd70bc3fab58f2e23ad423c8404c44" + "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d870572532cd70bc3fab58f2e23ad423c8404c44", - "reference": "d870572532cd70bc3fab58f2e23ad423c8404c44", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556", + "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556", "shasum": "" }, "require": { @@ -8854,20 +8916,20 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2020-08-15T11:14:08+00:00" + "time": "2020-09-03T19:13:55+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.3.0", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "e878a14a65245fbe78f8080eba03b47c3b705651" + "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e878a14a65245fbe78f8080eba03b47c3b705651", - "reference": "e878a14a65245fbe78f8080eba03b47c3b705651", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", + "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", "shasum": "" }, "require": { @@ -8899,32 +8961,32 @@ } ], "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "time": "2020-06-27T10:12:23+00:00" + "time": "2020-09-17T18:55:26+00:00" }, { "name": "phpspec/prophecy", - "version": "1.11.1", + "version": "1.12.1", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "b20034be5efcdab4fb60ca3a29cba2949aead160" + "reference": "8ce87516be71aae9b956f81906aaf0338e0d8a2d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/b20034be5efcdab4fb60ca3a29cba2949aead160", - "reference": "b20034be5efcdab4fb60ca3a29cba2949aead160", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/8ce87516be71aae9b956f81906aaf0338e0d8a2d", + "reference": "8ce87516be71aae9b956f81906aaf0338e0d8a2d", "shasum": "" }, "require": { "doctrine/instantiator": "^1.2", - "php": "^7.2", - "phpdocumentor/reflection-docblock": "^5.0", + "php": "^7.2 || ~8.0, <8.1", + "phpdocumentor/reflection-docblock": "^5.2", "sebastian/comparator": "^3.0 || ^4.0", "sebastian/recursion-context": "^3.0 || ^4.0" }, "require-dev": { "phpspec/phpspec": "^6.0", - "phpunit/phpunit": "^8.0" + "phpunit/phpunit": "^8.0 || ^9.0 <9.3" }, "type": "library", "extra": { @@ -8962,7 +9024,7 @@ "spy", "stub" ], - "time": "2020-07-08T12:44:21+00:00" + "time": "2020-09-29T09:10:42+00:00" }, { "name": "phpunit/php-code-coverage", @@ -9214,6 +9276,7 @@ "keywords": [ "tokenizer" ], + "abandoned": true, "time": "2019-09-17T06:23:10+00:00" }, { @@ -10150,16 +10213,16 @@ }, { "name": "symfony/filesystem", - "version": "v5.1.5", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "f7b9ed6142a34252d219801d9767dedbd711da1a" + "reference": "1a8697545a8d87b9f2f6b1d32414199cc5e20aae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/f7b9ed6142a34252d219801d9767dedbd711da1a", - "reference": "f7b9ed6142a34252d219801d9767dedbd711da1a", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/1a8697545a8d87b9f2f6b1d32414199cc5e20aae", + "reference": "1a8697545a8d87b9f2f6b1d32414199cc5e20aae", "shasum": "" }, "require": { @@ -10196,7 +10259,7 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2020-08-21T17:19:47+00:00" + "time": "2020-09-27T14:02:37+00:00" }, { "name": "theseer/tokenizer", diff --git a/resources/quiz/js/main.js b/resources/quiz/js/main.js index 7199d73a1..044488820 100644 --- a/resources/quiz/js/main.js +++ b/resources/quiz/js/main.js @@ -107,13 +107,16 @@ var qn = 1; // Create questions $(data).find('questions question').each(function () { + var type = $(this).attr('type'); var multiple = $(this).attr('multiple') == '1'; var multipleclass = multiple ? ' multiple' : ''; - var question = '
'; + var question = '
'; question += '

' + sprintf(getTranslation('question'), qn) + '

' + $(this).find('label').text() + '
'; question += '
'; question += '
'; if (multiple) { + question += '' + getTranslation('validateAnswers') + ''; + } else if (type !== 'multiple') { question += '' + getTranslation('validateAnswer') + ''; } question += '
'; @@ -133,22 +136,32 @@ var q = $(question); // Append answers - var an = 0; - var correctCount = 0; - $(this).find('answer').each(function () { - var a = $('
' + $(this).text() + '
'); - // Set correct tag - var correct = $(this).attr('correct') == '1' ? 1 : 0; - correctCount += correct; - $(a).find('.answer').attr('data-correct', correct); - $(q).find('.answers').append($(a)); - an++; - }); + var holder = $('
'); + if (type === 'multiple') { + var an = 0; + var correctCount = 0; + + $(this).find('answer').each(function () { + var a = $('
' + $(this).text() + '
'); + // Set correct tag + var correct = $(this).attr('correct') == '1' ? 1 : 0; + correctCount += correct; + $(a).find('.answer').attr('data-correct', correct); + $(holder).append($(a)); + an++; + }); - if (correctCount > 1 || $(this).attr('multiple') !== undefined) { - q.addClass('multiple'); + if (correctCount > 1 || $(this).attr('multiple') !== undefined) { + q.addClass('multiple'); + } + } else if (type === 'text' || type === "email") { + $(holder).append('') + } else if (type === 'textarea') { + $(holder).append('') } + $(q).find('.answers').append($(holder)); + $("main").append(q); qn++; @@ -244,6 +257,7 @@ function nextScreen() { var prev = $("section:visible"); var next = $(prev).next('section'); + var $this = this; // If no screen remaining if ($(next).length == 0) { @@ -266,11 +280,16 @@ TweenMax.fromTo($(prev), 0.5, {left: 0, opacity: 1}, { left: -w - 50, opacity: 0, onComplete: function () { $(prev).hide(); + endTransition(); } }); resizeContainer(); } + function endTransition() { + $("section:visible .focusme").focus(); + } + function completed() { updateScore(); diff --git a/resources/quiz/style/010-common.less b/resources/quiz/style/010-common.less index 7e28a0e30..e41f0ac14 100644 --- a/resources/quiz/style/010-common.less +++ b/resources/quiz/style/010-common.less @@ -1,32 +1,35 @@ // main: ../style/style.less :root { - --main-color: #e7007a; + --main-color: #e7007a; } #holder { - max-width: 100%; - overflow: hidden; + max-width: 100%; + overflow: hidden; +} + +body, input, textarea, table { + font-family: @font-base; } body { - overflow-y: scroll; - overflow-x: hidden; - font-size: 18px; - font-family: @font-base; - color: @color-text; - background-color: @color-back; - line-height: 1.4em; - cursor: default; + overflow-y: scroll; + overflow-x: hidden; + font-size: 18px; + color: @color-text; + background-color: @color-back; + line-height: 1.4em; + cursor: default; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } .fa { - font-family: FontAwesome; -} \ No newline at end of file + font-family: FontAwesome; +} diff --git a/resources/quiz/style/030-quiz.less b/resources/quiz/style/030-quiz.less index 8d30813f3..807199382 100644 --- a/resources/quiz/style/030-quiz.less +++ b/resources/quiz/style/030-quiz.less @@ -60,6 +60,22 @@ section { .answers { margin-top: 30px; + input[type="text"],input[type="email"],textarea{ + border:0px; + .border-radius(5px); + padding: 15px; + width: 100%; + height: 100%; + font-size: 16px; + line-height: 1.2em; + background-color: @color-answer-back; + color: @color-answer-text; + } + + textarea{ + height: 100px; + } + .answer-holder { width: 50%; height: 91px; diff --git a/resources/quiz/style/style.css b/resources/quiz/style/style.css index 5097b15ee..198b3478a 100644 --- a/resources/quiz/style/style.css +++ b/resources/quiz/style/style.css @@ -156,11 +156,16 @@ table { max-width: 100%; overflow: hidden; } +body, +input, +textarea, +table { + font-family: 'RobotoCondensed'; +} body { overflow-y: scroll; overflow-x: hidden; font-size: 18px; - font-family: 'RobotoCondensed'; color: #575756; background-color: #fefefe; line-height: 1.4em; @@ -329,6 +334,23 @@ section { .question .answers { margin-top: 30px; } +.question .answers input[type="text"], +.question .answers input[type="email"], +.question .answers textarea { + border: 0px; + border-radius: 5px; + background-clip: padding-box; + padding: 15px; + width: 100%; + height: 100%; + font-size: 16px; + line-height: 1.2em; + background-color: #575756; + color: #fff; +} +.question .answers textarea { + height: 100px; +} .question .answers .answer-holder { width: 50%; height: 91px; @@ -506,3 +528,4 @@ section { font-size: 20px; } } +/*# sourceMappingURL=style.css.map */ \ No newline at end of file