author
int64 658
755k
| date
stringlengths 19
19
| timezone
int64 -46,800
43.2k
| hash
stringlengths 40
40
| message
stringlengths 5
490
| mods
list | language
stringclasses 20
values | license
stringclasses 3
values | repo
stringlengths 5
68
| original_message
stringlengths 12
491
|
---|---|---|---|---|---|---|---|---|---|
95,144 |
26.05.2020 09:03:28
| -7,200 |
fd2bd1b102d69c0167ccf626e3c250a125a0d8cf
|
Rename method to getAllServiceNames, because it makes more sense
|
[
{
"change_type": "MODIFY",
"old_path": "src/Extension/ServicesTrait.php",
"new_path": "src/Extension/ServicesTrait.php",
"diff": "@@ -77,7 +77,7 @@ trait ServicesTrait\nreturn null;\n}\n- public function listServices(): Collection\n+ public function getAllServiceNames(): Collection\n{\n$container = $this->getContainer();\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Rename method to getAllServiceNames, because it makes more sense
|
95,144 |
27.05.2020 17:43:31
| -7,200 |
854052515fc625d6b7eb74801ff0abd806acdaf8
|
Working on file listing screen
|
[
{
"change_type": "ADD",
"old_path": null,
"new_path": "assets/scss/modules/base/_tables.scss",
"diff": "+table.table-compact {\n+ th, td {\n+ padding: 0.3rem;\n+ }\n+}\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "assets/scss/modules/base/base.scss",
"new_path": "assets/scss/modules/base/base.scss",
"diff": "@import '_status';\n@import '_notification';\n@import '_buttons';\n+@import '_tables';\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/finder/_files_cards.html.twig",
"new_path": "templates/finder/_files_cards.html.twig",
"diff": "<div class=\"card\">\n{%- if thumbnail -%}\n<a class=\"lightbox\" href=\"{{ filename|thumbnail(width = 1000, height = 1000, location = location.key) }}\">\n- <img class=\"card-img-top\" src=\"{{ thumbnail }}\">\n+ <img class=\"card-img-top\" src=\"{{ thumbnail }}\" loading=\"lazy\">\n</a>\n{% else %}\n- <img class=\"card-img-top\" src=\"{{ asset('assets/images/placeholder.png', 'public') }}\">\n+ <img class=\"card-img-top\" src=\"{{ asset('assets/images/placeholder.png', 'public') }}\" loading=\"lazy\">\n{%- endif -%}\n<div class=\"card-body p-2\">\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/finder/_files_list.html.twig",
"new_path": "templates/finder/_files_list.html.twig",
"diff": "-<table class=\"table table-striped\" style=\"background-color: #FFF;\">\n+<table class=\"table table-striped table-compact\" style=\"background-color: #FFF;\">\n<thead class=\"thead-light\">\n<tr>\n<th></th>\n<td>\n<b>\n<a href=\"{{ link }}\">\n- {{ file.getRelativePathname }}\n+ {{ file.getRelativePathname|shy }}\n</a>\n</b>\n{% if title %}<br><small style=\"color: #888;\">{{ title }}</small>{% endif %}\n</td>\n- <td class=\"listing-thumb\" style=\"padding: 0.2em;\">\n+ <td class=\"listing-thumb\">\n{%- if thumbnail -%}\n<a class=\"lightbox\"\nhref=\"{{ filename|thumbnail(width = 1000, height = 1000, location = location.key, fit = 'crop') }}\">\n- <img src=\"{{ thumbnail }}\" width=\"100\" height=\"72\">\n+ <img src=\"{{ thumbnail }}\" loading=\"lazy\" width=\"100\" height=\"72\">\n</a>\n{%- else -%}\n \n{%- endif -%}\n</td>\n<td>\n- {{ file.getSize()|format_bytes(1) }}\n- {% if dimensions %}<br><small style=\"color: #888;\">{{ dimensions }}</small>{% endif %}\n+ <small style=\"color: #888; white-space:nowrap;\">{{ file.getSize()|format_bytes(1) }}\n+ {% if dimensions %}<br>{{ dimensions }}{% endif %}\n+ </small>\n</td>\n<td>\n<small style=\"color: #888;\">{{ file.getCTime()|date('Y-m-d H:i:s') }}</small>\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/finder/finder.html.twig",
"new_path": "templates/finder/finder.html.twig",
"diff": "{% include '@bolt/finder/_quickselect.html.twig' %}\n+ {% include '@bolt/finder/_folders.html.twig' %}\n+\n{% set imageformats = ['gif', 'jpg', 'jpeg', 'png', 'svg'] %}\n{% if view == 'list' %}\n</div>\n</div>\n- {% include '@bolt/finder/_folders.html.twig' %}\n-\n{% include '@bolt/finder/_uploader.html.twig' %}\n{% endblock aside %}\n"
},
{
"change_type": "MODIFY",
"old_path": "translations/messages.en.xlf",
"new_path": "translations/messages.en.xlf",
"diff": "<unit id=\".fL0AbE\" name=\"files_list.remark\">\n<segment>\n<source>files_list.remark</source>\n- <target>No files are present in this folder. Select a folder to navigate to, on the right-hand side.</target>\n+ <target>No files are present in this folder. Select a folder to navigate to.</target>\n</segment>\n</unit>\n<unit id=\"v6cfPyt\" name=\"quickselect.title_select\">\n"
},
{
"change_type": "MODIFY",
"old_path": "translations/messages.nl.xlf",
"new_path": "translations/messages.nl.xlf",
"diff": "<unit id=\".fL0AbE\" name=\"files_list.remark\">\n<segment>\n<source>files_list.remark</source>\n- <target>__files_list.remark</target>\n+ <target>Er staan geen bestanden in deze map. Kies een map om naar toe te navigeren.</target>\n</segment>\n</unit>\n<unit id=\"I2ykiIZ\" name=\"caption.folders\">\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Working on file listing screen
|
95,144 |
27.05.2020 21:21:04
| -7,200 |
accc8bb50909962b701b80ebbd0a1f1e05c9fa48
|
Update _tables.scss
|
[
{
"change_type": "MODIFY",
"old_path": "assets/scss/modules/base/_tables.scss",
"new_path": "assets/scss/modules/base/_tables.scss",
"diff": "table.table-compact {\n-\n- th:first-of-type, td:first-of-type {\n+ th:first-of-type,\n+ td:first-of-type {\npadding-left: 0.8rem;\n}\n- th:last-of-type, td:last-of-type {\n+ th:last-of-type,\n+ td:last-of-type {\npadding-right: 0.8rem;\n}\n- th, td {\n+ th,\n+ td {\npadding: 0.3rem;\n}\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Update _tables.scss
|
95,144 |
28.05.2020 11:15:09
| -7,200 |
f97175af053b9d4f94af7eb96b5356c112ccab02
|
Adding proper ids to tables
|
[
{
"change_type": "MODIFY",
"old_path": "templates/finder/_files_cards.html.twig",
"new_path": "templates/finder/_files_cards.html.twig",
"diff": "-<div class=\"row\">\n+<div class=\"row\" id=\"files-cards\">\n{% for file in finder %}\n{% set extension = file.extension() %}\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/finder/_files_list.html.twig",
"new_path": "templates/finder/_files_list.html.twig",
"diff": "-<table class=\"table table-striped table-compact\" style=\"background-color: #FFF;\">\n+<table class=\"table table-striped table-compact\" id=\"files-list\" style=\"background-color: #FFF;\">\n<thead class=\"thead-light\">\n<tr>\n<th></th>\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/finder/_folders.html.twig",
"new_path": "templates/finder/_folders.html.twig",
"diff": "-<table class=\"table table-striped table-compact\" style=\"background-color: #FFF;\">\n+<table class=\"table table-striped table-compact\" id=\"files-folders\" style=\"background-color: #FFF;\">\n<thead class=\"thead-light\">\n<tr>\n<th><i class=\"fas fa-folder\"></i> {{ 'caption.folders'|trans }}</th>\n"
},
{
"change_type": "MODIFY",
"old_path": "tests/e2e/filemanager.feature",
"new_path": "tests/e2e/filemanager.feature",
"diff": "@@ -15,7 +15,7 @@ Feature: Filemanager\nGiven I am logged in as \"admin\"\nAnd I am on \"/bolt/filemanager/files\"\n- Then I should see \"_b-penguin.jpeg\" in the 3rd \".admin__body--main tr\" element\n+ Then I should see \"_b-penguin.jpeg\" in the 3rd \"#files-list tr\" element\nWhen I click the 2nd \".edit-actions__dropdown-toggler\"\nAnd I follow \"Delete _b-penguin.jpeg\"\n@@ -32,7 +32,7 @@ Feature: Filemanager\nGiven I am logged in as \"admin\"\nAnd I am on \"/bolt/filemanager/files\"\n- Then I should see \"_a-sunrise.jpeg\" in the 2nd \".admin__body--main tr\" element\n+ Then I should see \"_a-sunrise.jpeg\" in the 2nd \"#files-list tr\" element\nWhen I click the 1st \".edit-actions__dropdown-toggler\"\nAnd I follow \"Delete _a-sunrise.jpeg\"\n@@ -42,14 +42,14 @@ Feature: Filemanager\nWhen I press \"Cancel\"\nThen I should not see \"File deleted successfully\"\n- And I should see \"_a-sunrise.jpeg\" in the 2nd \".admin__body--main tr\" element\n+ And I should see \"_a-sunrise.jpeg\" in the 2nd \"#files-list tr\" element\n@javascript\nScenario: As an Admin I want to duplicate a file\nGiven I am logged in as \"admin\"\nAnd I am on \"/bolt/filemanager/files\"\n- Then I should see \"_a-sunrise.jpeg\" in the 2nd \".admin__body--main tr\" element\n+ Then I should see \"_a-sunrise.jpeg\" in the 2nd \"#files-list tr\" element\nAnd I should not see \"I should see _a-sunrise (1).jpeg\"\nWhen I click the 1st \".edit-actions__dropdown-toggler\"\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Adding proper ids to tables
|
95,144 |
28.05.2020 11:42:35
| -7,200 |
70e79a9492a35f094e4ba527f8fa218ef9fb2649
|
Lazy loading for overview pages too
|
[
{
"change_type": "MODIFY",
"old_path": "assets/js/app/listing/Components/Table/Row/index.vue",
"new_path": "assets/js/app/listing/Components/Table/Row/index.vue",
"diff": "<div\nv-if=\"size === 'normal' && record.extras.image\"\nclass=\"listing__row--item is-thumbnail\"\n- :style=\"`background-image: url('${record.extras.image.thumbnail}')`\"\n- ></div>\n+ >\n+ <img\n+ :src=\"record.extras.image.thumbnail\"\n+ style=\"width: 108px;\"\n+ loading=\"lazy\"\n+ />\n+ </div>\n<!-- end column -->\n<!-- column meta -->\n"
},
{
"change_type": "MODIFY",
"old_path": "assets/scss/modules/listing/row/row.scss",
"new_path": "assets/scss/modules/listing/row/row.scss",
"diff": "@@ -71,8 +71,9 @@ $checkbox-row-width: 32px;\ntop: 0.25rem;\ndisplay: block;\nflex: 0 0 20%;\n- max-width: 100px;\n- max-height: 70px;\n+ max-width: 108px;\n+ max-height: 86px;\n+ overflow: hidden;\nborder-radius: $border-radius 0 0 $border-radius;\nbackground-color: var(--shade-400);\nbackground-repeat: no-repeat;\n@@ -83,7 +84,6 @@ $checkbox-row-width: 32px;\n@include media-breakpoint-up(md) {\norder: 2;\ntop: 0;\n- max-height: none;\n}\n& ~ .is-excerpt {\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Lazy loading for overview pages too
|
95,144 |
28.05.2020 16:04:03
| -7,200 |
292cff528847a205478ee72a30122e235ffd7a6e
|
Add `composer/package-versions-deprecated`
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"bolt/common\": \"^2.1.0\",\n\"cocur/slugify\": \"^4.0\",\n\"composer/composer\": \"^1.10\",\n+ \"composer/package-versions-deprecated\": \"^1.8\",\n\"doctrine/doctrine-bundle\": \"^2.0\",\n\"doctrine/doctrine-cache-bundle\": \"^1.4\",\n\"doctrine/doctrine-fixtures-bundle\": \"^3.3\",\n"
},
{
"change_type": "MODIFY",
"old_path": "config/bundles.php",
"new_path": "config/bundles.php",
"diff": "@@ -25,4 +25,5 @@ return [\nTranslation\\Bundle\\TranslationBundle::class => ['all' => true],\nTranslation\\PlatformAdapter\\Loco\\Bridge\\Symfony\\TranslationAdapterLocoBundle::class => ['dev' => true, 'local' => true],\nWhiteOctober\\PagerfantaBundle\\WhiteOctoberPagerfantaBundle::class => ['all' => true],\n+ Symplify\\ConsoleColorDiff\\ConsoleColorDiffBundle::class => ['dev' => true, 'test' => true],\n];\n"
},
{
"change_type": "MODIFY",
"old_path": "symfony.lock",
"new_path": "symfony.lock",
"diff": "\"doctrine/reflection\": {\n\"version\": \"v1.1.0\"\n},\n+ \"doctrine/sql-formatter\": {\n+ \"version\": \"1.0.1\"\n+ },\n\"drupol/composer-packages\": {\n\"version\": \"1.1.2\"\n},\n\"pagerfanta/pagerfanta\": {\n\"version\": \"v2.1.3\"\n},\n+ \"paragonie/random_compat\": {\n+ \"version\": \"v9.99.99\"\n+ },\n\"peterkahl/country-code-to-emoji-flag\": {\n\"version\": \"v1.2\"\n},\n\"scienta/doctrine-json-functions\": {\n\"version\": \"4.1.2\"\n},\n+ \"se/selenium-server-standalone\": {\n+ \"version\": \"3.141.59\"\n+ },\n\"sebastian/code-unit-reverse-lookup\": {\n\"version\": \"1.0.1\"\n},\n\"symfony/polyfill-mbstring\": {\n\"version\": \"v1.14.0\"\n},\n+ \"symfony/polyfill-php70\": {\n+ \"version\": \"v1.17.0\"\n+ },\n\"symfony/polyfill-php72\": {\n\"version\": \"v1.14.0\"\n},\n\"symplify/coding-standard\": {\n\"version\": \"v7.2.2\"\n},\n+ \"symplify/console-color-diff\": {\n+ \"version\": \"v7.3.18\"\n+ },\n\"symplify/easy-coding-standard\": {\n\"version\": \"v7.2.2\"\n},\n\"symplify/parameter-name-guard\": {\n\"version\": \"v7.3.18\"\n},\n+ \"symplify/phpstan-extensions\": {\n+ \"version\": \"v7.3.18\"\n+ },\n\"symplify/set-config-resolver\": {\n\"version\": \"v7.2.2\"\n},\n\"ua-parser/uap-php\": {\n\"version\": \"v3.9.7\"\n},\n+ \"vaimo/binary-chromedriver\": {\n+ \"version\": \"5.0.3\"\n+ },\n+ \"vaimo/webdriver-binary-downloader\": {\n+ \"version\": \"2.2.4\"\n+ },\n\"webimpress/safe-writer\": {\n\"version\": \"2.0.0\"\n},\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Add `composer/package-versions-deprecated`
|
95,144 |
28.05.2020 14:24:30
| -7,200 |
798459ab8b9a4d7c8568454d1a3a24b6bcbf19c2
|
Adding spinners and disabling buttons to indicate the user might have to wait a few seconds
|
[
{
"change_type": "MODIFY",
"old_path": "assets/js/app/editor/Components/File.vue",
"new_path": "assets/js/app/editor/Components/File.vue",
"diff": "class=\"btn dropdown-item\"\ntype=\"button\"\n:readonly=\"readonly\"\n+ data-patience=\"virtue\"\n@click=\"selectServerFile\"\n>\n<i class=\"fas fa-fw fa-th\"></i>\n>\n<i class=\"fas fa-fw fa-info-circle\"></i>\n{{ labels.button_edit_attributes }}\n+ <small class=\"dim\"\n+ ><i class=\"fas fa-external-link-square-alt\"></i\n+ ></small>\n</a>\n</div>\n</div>\n@@ -223,9 +227,11 @@ export default {\n},\n});\nwindow.$('.bootbox-input').attr('name', 'bootbox-input');\n+ window.reEnablePatientButtons();\n})\n.catch(err => {\nconsole.warn(err);\n+ window.reEnablePatientButtons();\n});\n},\nonDragEnter(e) {\n"
},
{
"change_type": "MODIFY",
"old_path": "assets/js/app/editor/Components/Image.vue",
"new_path": "assets/js/app/editor/Components/Image.vue",
"diff": "class=\"btn dropdown-item\"\ntype=\"button\"\n:disabled=\"readonly\"\n+ data-patience=\"virtue\"\n@click=\"selectServerFile\"\n>\n<i class=\"fas fa-fw fa-th\"></i>\n>\n<i class=\"fas fa-fw fa-info-circle\"></i>\n{{ labels.button_edit_attributes }}\n+ <small class=\"dim\"\n+ ><i class=\"fas fa-external-link-square-alt\"></i\n+ ></small>\n</a>\n</div>\n</div>\n@@ -263,9 +267,11 @@ export default {\n},\n});\nwindow.$('.bootbox-input').attr('name', 'bootbox-input');\n+ window.reEnablePatientButtons();\n})\n.catch(err => {\nconsole.warn(err);\n+ window.reEnablePatientButtons();\n});\n},\nonDragEnter(e) {\n"
},
{
"change_type": "MODIFY",
"old_path": "assets/js/app/index.js",
"new_path": "assets/js/app/index.js",
"diff": "@@ -5,4 +5,5 @@ import './listing';\nimport './editor';\nimport './login';\nimport './confirmation.js';\n+import './patience-is-a-virtue.js';\nimport './common.js';\n"
},
{
"change_type": "MODIFY",
"old_path": "assets/js/app/listing/Components/Table/Row/_Actions.vue",
"new_path": "assets/js/app/listing/Components/Table/Row/_Actions.vue",
"diff": "<a\nclass=\"btn btn-secondary btn-block btn-sm text-nowrap\"\n:href=\"record.extras.editLink\"\n+ data-patience=\"virtue\"\n>\n<i class=\"far fa-edit mr-1\"></i> {{ labels.button_edit }}\n</a>\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "assets/js/app/patience-is-a-virtue.js",
"diff": "+import $ from 'jquery';\n+\n+$('*[data-patience]').on('click', function() {\n+ const thisIcon = $(this).find('i');\n+\n+ // Bootstrap padding / margin like `mx-2` or `pt-3`\n+ const addedPadding = thisIcon.attr('class').match(/[mp][tblrxy]-[0-5]/i);\n+ const newClass = 'fas fa-w fa-cog fa-spin ' + (addedPadding ? addedPadding : '');\n+\n+ $(this).attr('data-original-class', thisIcon.attr('class'));\n+ $(this).attr('disabled', true);\n+ thisIcon.attr('class', newClass);\n+});\n+\n+window.reEnablePatientButtons = function() {\n+ $('*[data-patience]').each(function() {\n+ const thisIcon = $(this).find('i');\n+\n+ $(this).attr('disabled', false);\n+ thisIcon.attr('class', $(this).attr('data-original-class'));\n+ });\n+};\n"
},
{
"change_type": "MODIFY",
"old_path": "assets/js/app/sidebar/Components/Menu/_SubMenu.vue",
"new_path": "assets/js/app/sidebar/Components/Menu/_SubMenu.vue",
"diff": "<template>\n<ul class=\"link--menu\">\n<li v-if=\"item.link_new !== null\" class=\"link--actions\">\n- <a :href=\"item.link_new\">\n+ <a :href=\"item.link_new\" data-patience=\"virtue\">\n<i class=\"fas fa-fw fa-magic mr-2\"></i\n><span>New {{ item.singular_name }}</span>\n</a>\n- <a :href=\"item.link_listing\">\n+ <a :href=\"item.link_listing\" data-patience=\"virtue\">\n<i class=\"fas fa-fw\" :class=\"item.icon\"></i>\n<span>View {{ item.name }}</span>\n</a>\n:key=\"index\"\n>\n<!-- eslint-enable -->\n- <a :href=\"subitem.editLink\">\n+ <a :href=\"subitem.editLink\" data-patience=\"virtue\">\n<i class=\"fas fa-fw mr-2\" :class=\"subitem.icon\"></i>\n<!-- eslint-disable-next-line vue/no-v-html -->\n<span v-if=\"subitem.name\" v-html=\"subitem.name\"></span>\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/content/_buttons.html.twig",
"new_path": "templates/content/_buttons.html.twig",
"diff": "<div class=\"record-actions\">\n- {{ macro.button('action.save', 'fa-save', 'success', {'type': 'submit', 'form': 'editcontent'}) }}\n+ {{ macro.button('action.save', 'fa-save', 'success', {'type': 'submit', 'form': 'editcontent', 'data-patience': 'virtue'}) }}\n{% if record.id %}\n<div class=\"btn-group\">\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/content/listing.html.twig",
"new_path": "templates/content/listing.html.twig",
"diff": "</div>\n<div class=\"card-body\">\n<p>\n- <a class=\"btn btn-primary\" href=\"{{ path('bolt_content_new', { contentType: contentType.slug }) }}\">\n+ <a class=\"btn btn-primary\" href=\"{{ path('bolt_content_new', { contentType: contentType.slug }) }}\" data-patience=\"virtue\">\n{{ macro.icon('magic') }} {{ __('action.create_new') }} {{ contentType.singular_name }}\n</a>\n</p>\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Adding spinners and disabling buttons to indicate the user might have to wait a few seconds
|
95,144 |
28.05.2020 17:29:07
| -7,200 |
96ea3a1cd18a623272309bc1628d302cda3d9d4f
|
Allow for parsed dates like "Today" or "in 3 weeks"
|
[
{
"change_type": "MODIFY",
"old_path": "src/Storage/SelectQuery.php",
"new_path": "src/Storage/SelectQuery.php",
"diff": "@@ -57,6 +57,14 @@ class SelectQuery implements QueryInterface\n'status',\n];\n+ /** @var array */\n+ protected $coreDateFields = [\n+ 'createdAt',\n+ 'modifiedAt',\n+ 'publishedAt',\n+ 'depublishedAt',\n+ ];\n+\n/** @var array */\nprotected $taxonomyFields = [];\n@@ -188,35 +196,6 @@ class SelectQuery implements QueryInterface\nreturn $params;\n}\n- /**\n- * Gets all the parameters for a specific field name.\n- *\n- * @param string $fieldName\n- *\n- * @return array array of key=>value parameters\n- */\n- public function getWhereParametersFor($fieldName): array\n- {\n- return array_intersect_key(\n- $this->getWhereParameters(),\n- array_flip(preg_grep('/^' . $fieldName . '_\\d+$/', array_keys($this->getWhereParameters())))\n- );\n- }\n-\n- /**\n- * Sets all the parameters for a specific field name.\n- *\n- * @param string $key\n- */\n- public function setWhereParameter($key, $value): void\n- {\n- foreach ($this->filters as $filter) {\n- if ($filter->hasParameter($key)) {\n- $filter->setParameter($key, $value);\n- }\n- }\n- }\n-\npublic function addFilter(Filter $filter): void\n{\n$this->filters[] = $filter;\n@@ -241,10 +220,18 @@ class SelectQuery implements QueryInterface\npublic function build(): QueryBuilder\n{\n$query = $this->qb;\n+\n+ $dateFields = $this->getDateFields();\n+\nif ($this->getWhereExpression()) {\n$query->andWhere($this->getWhereExpression());\n}\n+\nforeach ($this->getWhereParameters() as $key => $param) {\n+ $fieldName = current(explode('_', $key));\n+ if (in_array($fieldName, $dateFields)) {\n+ $param = date('c', strtotime($param));\n+ }\n$query->setParameter($key, $param, ParameterTypeInferer::inferType($param));\n}\n@@ -411,6 +398,17 @@ class SelectQuery implements QueryInterface\nreturn $this->taxonomyFields;\n}\n+ private function getDateFields(): array\n+ {\n+ // Get all fields from the current contentType\n+ $ctFields = $this->getConfig()->get('contenttypes/' . $this->getContentType())->get('fields');\n+\n+ // And get the keys of those that are `type: date` (including 'datetime')\n+ $dateFields = $ctFields->where('type', 'date')->keys()->all();\n+\n+ return array_merge($dateFields, $this->coreDateFields);\n+ }\n+\npublic function getIndex(): int\n{\nreturn $this->index;\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Allow for parsed dates like "Today" or "in 3 weeks"
|
95,144 |
31.05.2020 13:19:33
| -7,200 |
1190c62fe2ec47d1e8cfc65df93494beb294c896
|
Unescape Vue input fields
|
[
{
"change_type": "MODIFY",
"old_path": "assets/js/app/editor/Components/Text.vue",
"new_path": "assets/js/app/editor/Components/Text.vue",
"diff": "<div>\n<input\n:id=\"id\"\n- v-model=\"val\"\n+ v-model=\"rawVal\"\nclass=\"form-control\"\n:class=\"getType\"\n:name=\"name\"\n"
},
{
"change_type": "MODIFY",
"old_path": "assets/js/app/editor/Components/Textarea.vue",
"new_path": "assets/js/app/editor/Components/Textarea.vue",
"diff": "<template>\n<div>\n<textarea\n- v-model=\"val\"\n+ v-model=\"rawVal\"\nclass=\"form-control field--textarea\"\n:name=\"name\"\nrows=\"10\"\n"
},
{
"change_type": "MODIFY",
"old_path": "assets/js/app/editor/mixins/value.js",
"new_path": "assets/js/app/editor/mixins/value.js",
"diff": "export default {\nmounted() {\nthis.val = this.value;\n+\n+ // Make sure the \"rawVal\" is 'unescaped'\n+ let node = document.createElement('textarea');\n+ node.innerHTML = this.value;\n+ this.rawVal = node.value;\n},\ndata: () => {\nreturn {\nval: null,\n+ rawVal: null,\n};\n},\n};\n"
},
{
"change_type": "DELETE",
"old_path": "assets/js/helpers/mixins/fieldValue.js",
"new_path": null,
"diff": "-export default {\n- mounted() {\n- this.val = this.value;\n- },\n- data: () => {\n- return {\n- val: null,\n- };\n- },\n-};\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Unescape Vue input fields
|
95,144 |
31.05.2020 13:40:46
| -7,200 |
6479b4c69c05e0a2da02da9257023363c08e53c9
|
Don't show Fields that were removed from the ContentType definition
|
[
{
"change_type": "MODIFY",
"old_path": "src/Entity/Content.php",
"new_path": "src/Entity/Content.php",
"diff": "@@ -664,14 +664,23 @@ class Content\nreturn $dateTimeUTC->setTimezone($dateTime->getTimezone());\n}\n- private function standaloneFieldsFilter()\n+ /**\n+ * Get the current regular fields, with the fields that are not present in\n+ * the definition anymore filtered out\n+ */\n+ private function standaloneFieldsFilter(): Collection\n{\n- return $this->fields->filter(function (Field $field) {\n- return ! $field->hasParent();\n+ $keys = $this->getDefinition()->get('fields')->keys()->all();\n+\n+ return $this->fields->filter(function (Field $field) use ($keys) {\n+ return ! $field->hasParent() && in_array($field->getName(), $keys, true);\n});\n}\n- private function standaloneFieldFilter(string $fieldName)\n+ /**\n+ * Get a regular field, not being part of a Collection\n+ */\n+ private function standaloneFieldFilter(string $fieldName): Collection\n{\nreturn $this->fields->filter(function (Field $field) use ($fieldName) {\nreturn $field->getName() === $fieldName && ! $field->hasParent();\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Don't show Fields that were removed from the ContentType definition
|
95,144 |
31.05.2020 13:59:57
| -7,200 |
da977a83eb490934f91a67095cfc3ea0553d2c9b
|
Ninja-edit comment about PHPstan issue
|
[
{
"change_type": "MODIFY",
"old_path": "phpstan.neon",
"new_path": "phpstan.neon",
"diff": "@@ -6,7 +6,7 @@ parameters:\nignoreErrors:\n# false positive: `Unreachable statement - code above always terminates.`\n- # @todo Check if this is still needed after https://github.com/phpstan/phpstan/issues/2651 is fixed\n+ # Note: https://github.com/phpstan/phpstan/issues/2651 is marked as fixed, but the issue remains.\n-\nmessage: '#Unreachable statement - code above always terminates#'\npath: %currentWorkingDirectory%/src/*\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Ninja-edit comment about PHPstan issue
|
95,144 |
01.06.2020 10:53:48
| -7,200 |
c4df6a66ed123b2fc11f472f672fa38321ca2381
|
Allow comparison for scalar fields
|
[
{
"change_type": "MODIFY",
"old_path": "config/bolt/contenttypes.yaml",
"new_path": "config/bolt/contenttypes.yaml",
"diff": "@@ -220,7 +220,7 @@ showcases:\nintegerfield:\ntype: number\nmode: integer\n- step: 0.25\n+ step: 1\nfloatfield:\ntype: number\nmode: float\n@@ -415,8 +415,7 @@ tests:\n# Possible field types:\n#\n# text - varchar(256) - input type text.\n-# integer - integer - Input field for integer numbers.\n-# float - double - Input field for floating numbers, stored as 'Double'.\n+# number - double - Input field for numbers, with `mode: integer` or `mode: float`\n# imagelist - text (65kb) - Input type for imagelists. Add multiple images. Useful for image sliders, galleries, etcetera.\n# image - varchar(256) - image select/upload widget, stored as filename.\n# file - varchar(256) - file select/upload widget, stored as filename.\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Content.php",
"new_path": "src/Entity/Content.php",
"diff": "@@ -10,6 +10,7 @@ use ApiPlatform\\Core\\Annotation\\ApiSubresource;\nuse ApiPlatform\\Core\\Bridge\\Doctrine\\Orm\\Filter\\SearchFilter;\nuse Bolt\\Configuration\\Content\\ContentType;\nuse Bolt\\Entity\\Field\\Excerptable;\n+use Bolt\\Entity\\Field\\ScalarCastable;\nuse Bolt\\Enum\\Statuses;\nuse Bolt\\Repository\\FieldRepository;\nuse Doctrine\\Common\\Collections\\ArrayCollection;\n@@ -640,7 +641,7 @@ class Content\nthrow new \\RuntimeException(sprintf('Invalid field name or method call on %s: %s', $this->__toString(), $name));\n}\n- if ($field instanceof Excerptable) {\n+ if ($field instanceof Excerptable || $field instanceof ScalarCastable) {\nreturn $field->getTwigValue();\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/CheckboxField.php",
"new_path": "src/Entity/Field/CheckboxField.php",
"diff": "@@ -11,7 +11,13 @@ use Doctrine\\ORM\\Mapping as ORM;\n/**\n* @ORM\\Entity\n*/\n-class CheckboxField extends Field implements FieldInterface\n+class CheckboxField extends Field implements FieldInterface, ScalarCastable\n{\npublic const TYPE = 'checkbox';\n+\n+ public function getTwigValue()\n+ {\n+ return (bool) current($this->getValue());\n+ }\n+\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/DateField.php",
"new_path": "src/Entity/Field/DateField.php",
"diff": "@@ -11,7 +11,7 @@ use Doctrine\\ORM\\Mapping as ORM;\n/**\n* @ORM\\Entity\n*/\n-class DateField extends Field implements FieldInterface\n+class DateField extends Field implements FieldInterface, ScalarCastable\n{\npublic const TYPE = 'date';\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/EmailField.php",
"new_path": "src/Entity/Field/EmailField.php",
"diff": "@@ -11,7 +11,7 @@ use Doctrine\\ORM\\Mapping as ORM;\n/**\n* @ORM\\Entity\n*/\n-class EmailField extends Field implements FieldInterface\n+class EmailField extends Field implements FieldInterface, ScalarCastable\n{\npublic const TYPE = 'email';\n}\n"
},
{
"change_type": "DELETE",
"old_path": "src/Entity/Field/FloatField.php",
"new_path": null,
"diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-namespace Bolt\\Entity\\Field;\n-\n-use Bolt\\Entity\\Field;\n-use Bolt\\Entity\\FieldInterface;\n-use Doctrine\\ORM\\Mapping as ORM;\n-\n-/**\n- * @ORM\\Entity\n- */\n-class FloatField extends Field implements FieldInterface\n-{\n- public const TYPE = 'float';\n-}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/HiddenField.php",
"new_path": "src/Entity/Field/HiddenField.php",
"diff": "@@ -12,7 +12,7 @@ use Doctrine\\ORM\\Mapping as ORM;\n/**\n* @ORM\\Entity\n*/\n-class HiddenField extends Field implements FieldInterface\n+class HiddenField extends Field implements FieldInterface, ScalarCastable\n{\npublic const TYPE = 'hidden';\n"
},
{
"change_type": "DELETE",
"old_path": "src/Entity/Field/IntegerField.php",
"new_path": null,
"diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-namespace Bolt\\Entity\\Field;\n-\n-use Bolt\\Entity\\Field;\n-use Bolt\\Entity\\FieldInterface;\n-use Doctrine\\ORM\\Mapping as ORM;\n-\n-/**\n- * @ORM\\Entity\n- */\n-class IntegerField extends Field implements FieldInterface\n-{\n- public const TYPE = 'integer';\n-}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/NumberField.php",
"new_path": "src/Entity/Field/NumberField.php",
"diff": "@@ -11,7 +11,7 @@ use Doctrine\\ORM\\Mapping as ORM;\n/**\n* @ORM\\Entity\n*/\n-class NumberField extends Field implements FieldInterface\n+class NumberField extends Field implements FieldInterface, ScalarCastable\n{\npublic const TYPE = 'number';\n}\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "src/Entity/Field/ScalarCastable.php",
"diff": "+<?php\n+\n+declare(strict_types=1);\n+\n+namespace Bolt\\Entity\\Field;\n+\n+/**\n+ * Field that can be cast to a plain scalar value (string, int, boolean, float) in excerpt must implement this interface\n+ */\n+interface ScalarCastable\n+{\n+}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/SlugField.php",
"new_path": "src/Entity/Field/SlugField.php",
"diff": "@@ -13,7 +13,7 @@ use Tightenco\\Collect\\Support\\Collection;\n/**\n* @ORM\\Entity\n*/\n-class SlugField extends Field implements FieldInterface\n+class SlugField extends Field implements FieldInterface, ScalarCastable\n{\npublic const TYPE = 'slug';\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/helpers/_field_blocks.twig",
"new_path": "templates/helpers/_field_blocks.twig",
"diff": "{# Checkbox fields #}\n{% if type == \"checkbox\" %}\n- <p><strong>{{ field|label }}</strong>: {{ field ? \"checked\" : \"not checked\" }}</p>\n+ <p><strong>{{ field|label }}</strong>: {% if field.twigValue %} checked {% else %} not checked {% endif %}</p>\n{% endif %}\n{# Embed fields #}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Allow comparison for scalar fields
|
95,144 |
06.06.2020 15:47:48
| -7,200 |
03ddfa270de0d0766309c5f5a20af9e5e8ce3cda
|
Fix for windows not handling `%k` in timestamp strings properly
|
[
{
"change_type": "MODIFY",
"old_path": "templates/_macro/_macro.html.twig",
"new_path": "templates/_macro/_macro.html.twig",
"diff": "{% endfor %}\n{{ fieldsHtml|json_encode }}\n{% endapply %}{% endmacro %}\n+\n+\n+{% macro relative_datetime(datetime) %}{% apply spaceless %}\n+ <abbr class=\"datetime-relative\" title=\"{{ datetime|localedatetime('%A %B %e, %Y - %k:%M%p') }}\">\n+ {{- datetime|date('c') -}}\n+ </abbr>\n+{% endapply %}{% endmacro %}\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/_partials/fields/date.html.twig",
"new_path": "templates/_partials/fields/date.html.twig",
"diff": "{% extends '@bolt/_partials/fields/_base.html.twig' %}\n+{% import '@bolt/_macro/_macro.html.twig' as macro %}\n{% block field %}\n{# check disabled #}\n></editor-date>\n{% else %}\n<br>\n- {{ value|localedatetime('%B %e, %Y - %k:%M<small>%p</small>') }}\n- <small>(<abbr class=\"datetime-relative\" title=\"{{ value|localedatetime('%A %B %e, %Y - %k:%M%p') }}\">\n- {{- value|date('c') -}}\n- </abbr>)</small>\n+ {{ value|localedatetime('%B %e, %Y - %H:%M<small>%p</small>') }}\n+ <small>({{ macro.relative_datetime(value) }})</small>\n{% endif %}\n{% endblock %}\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/content/_buttons.html.twig",
"new_path": "templates/content/_buttons.html.twig",
"diff": "<span class=\"status mx-1 is-{{ record.status}}\"></span>{{ __('status.' ~ record.status) }}<br>\n{% if record.status == 'published' %}\n<small>\n- ({{ 'field.modifiedAt'|trans }}:\n- <abbr class=\"datetime-relative\" title=\"{{ record.modifiedAt|localedatetime('%A %B %e, %Y - %k:%M%p') }}\">\n- {{- record.modifiedAt|date('c') -}}\n- </abbr>)\n+ ({{ 'field.modifiedAt'|trans }}: {{ macro.relative_datetime(record.modifiedAt) }} )\n</small>\n{% endif %}\n</p>\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/users/listing.html.twig",
"new_path": "templates/users/listing.html.twig",
"diff": "<td><code>{{ iteratedUser.roles|join('</code>, <code>')|raw }}</code></td>\n{% if iteratedUser.lastseenAt %}\n<td>\n- <abbr class=\"datetime-relative\" title=\"{{ iteratedUser.lastseenAt|localedatetime('%A %B %e, %Y - %k:%M%p') }}\">\n- {{- iteratedUser.lastseenAt|date(\"c\") -}}\n- </abbr>\n+ {{ macro.relative_datetime(iteratedUser.lastseenAt) }}\n</td>\n{% else %}\n<td>-</td>\n<td class=\"text-nowrap\">{{ iteratedUser.id }}</td>\n<td class=\"text-nowrap\">{{ iteratedUser.username }}</td>\n<td>\n- <abbr class=\"datetime-relative\" title=\"{{ iteratedUser.lastseenAt|localedatetime('%A %B %e, %Y - %k:%M%p') }}\">\n- {{- iteratedUser.lastseenAt|date(\"c\") -}}\n- </abbr>\n+ {{ macro.relative_datetime(iteratedUser.lastseenAt) }}\n</td>\n<td>\n- <abbr class=\"datetime-relative\" title=\"{{ authtoken.validity|localedatetime('%A %B %e, %Y - %k:%M%p') }}\">\n- {{- authtoken.validity|date(\"c\") -}}\n- </abbr>\n+ {{ macro.relative_datetime(authtoken.validity) }}\n</td>\n<td class=\"text-nowrap\"><code>{{ iteratedUser.lastIp|default('-') }}</code></td>\n<td>{{ authtoken.useragent|default('-') }}</td>\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Fix for windows not handling `%k` in timestamp strings properly
|
95,144 |
06.06.2020 16:01:26
| -7,200 |
467228ba348e5784f741c1bb13a414c751e78ee0
|
Prepare release 4.0.0-rc.23
|
[
{
"change_type": "MODIFY",
"old_path": "package-lock.json",
"new_path": "package-lock.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.21\",\n+ \"version\": \"4.0.0-rc.23\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n}\n},\n\"caniuse-lite\": {\n- \"version\": \"1.0.30001066\",\n- \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001066.tgz\",\n- \"integrity\": \"sha512-Gfj/WAastBtfxLws0RCh2sDbTK/8rJuSeZMecrSkNGYxPcv7EzblmDGfWQCFEQcSqYE2BRgQiJh8HOD07N5hIw==\"\n+ \"version\": \"1.0.30001078\",\n+ \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001078.tgz\",\n+ \"integrity\": \"sha512-sF12qXe9VMm32IEf/+NDvmTpwJaaU7N1igpiH2FdI4DyABJSsOqG3ZAcFvszLkoLoo1y6VJLMYivukUAxaMASw==\"\n},\n\"capture-exit\": {\n\"version\": \"2.0.0\",\n\"integrity\": \"sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==\"\n},\n\"dropzone\": {\n- \"version\": \"5.7.0\",\n- \"resolved\": \"https://registry.npmjs.org/dropzone/-/dropzone-5.7.0.tgz\",\n- \"integrity\": \"sha512-kOltiZXH5cO/72I22JjE+w6BoT6uaVLfWdFMsi1PMKFkU6BZWpqRwjnsRm0o6ANGTBuZar5Piu7m/CbKqRPiYg==\"\n+ \"version\": \"5.7.1\",\n+ \"resolved\": \"https://registry.npmjs.org/dropzone/-/dropzone-5.7.1.tgz\",\n+ \"integrity\": \"sha512-eqcJafupMKRlVUihZtsLkzLn02WTPUMHeImP5ZtWm3ERObC/dv15te0qqn/X2rEKaSqRC0pNTHUBPgrPWcP52w==\"\n},\n\"duplexer\": {\n\"version\": \"0.1.1\",\n"
},
{
"change_type": "MODIFY",
"old_path": "package.json",
"new_path": "package.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.21\",\n+ \"version\": \"4.0.0-rc.23\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n\"bootbox\": \"^5.4.0\",\n\"bootstrap\": \"^4.5.0\",\n\"browserslist\": \"^4.12.0\",\n- \"caniuse-lite\": \"^1.0.30001066\",\n+ \"caniuse-lite\": \"^1.0.30001078\",\n\"codemirror\": \"^5.54.0\",\n- \"dropzone\": \"^5.7\",\n+ \"dropzone\": \"^5.7.1\",\n\"flagpack\": \"^1.0.5\",\n\"jquery\": \"^3.5.1\",\n\"locutus\": \"^2.0.11\",\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Prepare release 4.0.0-rc.23
|
95,144 |
07.06.2020 16:27:26
| -7,200 |
c29d420a9c0a421aa9c0aba4b098c9d432272999
|
Better check for `isSpecialPage` if `homepage: ` is ste to a contenttype (listing)
|
[
{
"change_type": "MODIFY",
"old_path": "src/Twig/ContentExtension.php",
"new_path": "src/Twig/ContentExtension.php",
"diff": "@@ -716,9 +716,11 @@ class ContentExtension extends AbstractExtension\ncontinue;\n}\n+ $idOrSlug = $item[1] ?? null;\n+\n// Success if we either have no id/slug for a Singleton, or if the id/slug matches\n- if ((empty($item[1]) && $content->getDefinition()->get('singleton')) ||\n- ($item[1] === $content->getSlug() || $item[1] === (string) $content->getId())) {\n+ if ((empty($idOrSlug) && $content->getDefinition()->get('singleton')) ||\n+ ($idOrSlug === $content->getSlug() || $idOrSlug === (string) $content->getId())) {\nreturn true;\n}\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Better check for `isSpecialPage` if `homepage: ` is ste to a contenttype (listing)
|
95,144 |
10.06.2020 15:54:20
| -7,200 |
182eaa5bf3dc9317a59594c85a0ffead60af78cd
|
Fix setting of `is_writable` when submitted Yaml syntax is incorrect
|
[
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/FileEditController.php",
"new_path": "src/Controller/Backend/FileEditController.php",
"diff": "@@ -84,6 +84,9 @@ class FileEditController extends TwigAwareController implements BackendZoneInter\n$contents = $request->request->get('editfile');\n$extension = Path::getExtension($file);\n+ $basepath = $this->config->getPath($locationName);\n+ $filename = Path::canonicalize($basepath . '/' . $file);\n+\n$url = $urlGenerator->generate('bolt_file_edit', [\n'location' => $locationName,\n'file' => $file,\n@@ -94,14 +97,12 @@ class FileEditController extends TwigAwareController implements BackendZoneInter\n'location' => $locationName,\n'file' => $file,\n'contents' => $contents,\n+ 'writable' => is_writable($filename),\n];\nreturn $this->renderTemplate('@bolt/finder/editfile.html.twig', $context);\n}\n- $basepath = $this->config->getPath($locationName);\n- $filename = Path::canonicalize($basepath . '/' . $file);\n-\ntry {\nFileWriter::writeFile($filename, $contents);\n$this->addFlash('success', 'editfile.updated_successfully');\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Fix setting of `is_writable` when submitted Yaml syntax is incorrect
|
95,144 |
10.06.2020 21:10:46
| -7,200 |
80a975e9247c97e5a6903ee9b8478838bcd27319
|
Prepare release 4.0.0-rc.24
|
[
{
"change_type": "MODIFY",
"old_path": "package-lock.json",
"new_path": "package-lock.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.23\",\n+ \"version\": \"4.0.0-rc.24\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n}\n},\n\"caniuse-lite\": {\n- \"version\": \"1.0.30001078\",\n- \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001078.tgz\",\n- \"integrity\": \"sha512-sF12qXe9VMm32IEf/+NDvmTpwJaaU7N1igpiH2FdI4DyABJSsOqG3ZAcFvszLkoLoo1y6VJLMYivukUAxaMASw==\"\n+ \"version\": \"1.0.30001081\",\n+ \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001081.tgz\",\n+ \"integrity\": \"sha512-iZdh3lu09jsUtLE6Bp8NAbJskco4Y3UDtkR3GTCJGsbMowBU5IWDFF79sV2ws7lSqTzWyKazxam2thasHymENQ==\"\n},\n\"capture-exit\": {\n\"version\": \"2.0.0\",\n"
},
{
"change_type": "MODIFY",
"old_path": "package.json",
"new_path": "package.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.23\",\n+ \"version\": \"4.0.0-rc.24\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n\"bootbox\": \"^5.4.0\",\n\"bootstrap\": \"^4.5.0\",\n\"browserslist\": \"^4.12.0\",\n- \"caniuse-lite\": \"^1.0.30001078\",\n+ \"caniuse-lite\": \"^1.0.30001081\",\n\"codemirror\": \"^5.54.0\",\n\"dropzone\": \"^5.7.1\",\n\"flagpack\": \"^1.0.5\",\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Prepare release 4.0.0-rc.24
|
95,144 |
10.06.2020 21:42:46
| -7,200 |
25fa20a6f8fbd8b623393aa7f00a2f9559ba0961
|
Add `babdev/pagerfanta-bundle`, `squirrelphp/twig-php-syntax`
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"ext-mbstring\": \"*\",\n\"ext-pdo\": \"*\",\n\"api-platform/core\": \"^2.5\",\n+ \"babdev/pagerfanta-bundle\": \"^2.4\",\n\"bolt/common\": \"^2.1.0\",\n\"cocur/slugify\": \"^4.0\",\n\"composer/composer\": \"^1.10\",\n\"sensio/framework-extra-bundle\": \"^5.5\",\n\"sensiolabs/security-checker\": \"^6.0\",\n\"siriusphp/upload\": \"^3.0.1\",\n+ \"squirrelphp/twig-php-syntax\": \"^1.5\",\n\"symfony/asset\": \"^4.4\",\n\"symfony/console\": \"^4.4\",\n\"symfony/debug-bundle\": \"^4.4\",\n\"ua-parser/uap-php\": \"^3.9\",\n\"webimpress/safe-writer\": \"^2.0\",\n\"webmozart/path-util\": \"^2.3\",\n- \"webonyx/graphql-php\": \"^0.13\",\n- \"white-october/pagerfanta-bundle\": \"^1.3\"\n+ \"webonyx/graphql-php\": \"^0.13\"\n},\n\"conflict\": {\n\"symfony/symfony\": \"*\"\n"
},
{
"change_type": "MODIFY",
"old_path": "config/bundles.php",
"new_path": "config/bundles.php",
"diff": "@@ -24,6 +24,6 @@ return [\nSymplify\\ParameterNameGuard\\ParameterNameGuardBundle::class => ['dev' => true, 'test' => true],\nTranslation\\Bundle\\TranslationBundle::class => ['all' => true],\nTranslation\\PlatformAdapter\\Loco\\Bridge\\Symfony\\TranslationAdapterLocoBundle::class => ['dev' => true, 'local' => true],\n- WhiteOctober\\PagerfantaBundle\\WhiteOctoberPagerfantaBundle::class => ['all' => true],\nSymplify\\ConsoleColorDiff\\ConsoleColorDiffBundle::class => ['dev' => true, 'test' => true],\n+ BabDev\\PagerfantaBundle\\BabDevPagerfantaBundle::class => ['all' => true],\n];\n"
},
{
"change_type": "MODIFY",
"old_path": "symfony.lock",
"new_path": "symfony.lock",
"diff": "\"src/Entity/.gitignore\"\n]\n},\n+ \"babdev/pagerfanta-bundle\": {\n+ \"version\": \"v2.4.2\"\n+ },\n\"behat/behat\": {\n\"version\": \"v3.6.1\"\n},\n\"version\": \"1.0.0\"\n},\n\"pagerfanta/pagerfanta\": {\n- \"version\": \"v2.1.3\"\n+ \"version\": \"v2.3.0\"\n},\n\"paragonie/random_compat\": {\n\"version\": \"v9.99.99\"\n\"slevomat/coding-standard\": {\n\"version\": \"6.1.5\"\n},\n+ \"squirrelphp/twig-php-syntax\": {\n+ \"version\": \"v1.5\"\n+ },\n\"squizlabs/php_codesniffer\": {\n\"version\": \"3.0\",\n\"recipe\": {\n\"symfony/dependency-injection\": {\n\"version\": \"v4.4.4\"\n},\n+ \"symfony/deprecation-contracts\": {\n+ \"version\": \"v2.1.2\"\n+ },\n\"symfony/doctrine-bridge\": {\n\"version\": \"v4.4.4\"\n},\n\"webonyx/graphql-php\": {\n\"version\": \"v0.13.8\"\n},\n- \"white-october/pagerfanta-bundle\": {\n- \"version\": \"v1.3.2\"\n- },\n\"willdurand/negotiation\": {\n\"version\": \"v2.3.1\"\n},\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Add `babdev/pagerfanta-bundle`, `squirrelphp/twig-php-syntax`
|
95,144 |
11.06.2020 21:37:13
| -7,200 |
c133712cd469b9f73f72aed4475fc5c5e8bd3e5f
|
Update `getContentTypeName()`, add `getContentTypeSingularName()`
|
[
{
"change_type": "MODIFY",
"old_path": "config/bolt/config.yaml",
"new_path": "config/bolt/config.yaml",
"diff": "@@ -114,7 +114,6 @@ search_results_records: 10\n# for each content type.\nrecords_per_page: 8\n-\n# Default settings for thumbnails.\n#\n# quality: Quality should be between 0 (horrible, small file) and 100 (best, huge file).\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Content.php",
"new_path": "src/Entity/Content.php",
"diff": "@@ -155,7 +155,7 @@ class Content\npublic function __toString(): string\n{\n- $contentName = $this->getDefinition() ? $this->getContentTypeName() : 'Content';\n+ $contentName = $this->getDefinition() ? $this->getContentTypeSingularName() : 'Content';\nif ($this->getId()) {\nreturn sprintf('%s #%d', $contentName, $this->getId());\n}\n@@ -283,6 +283,15 @@ class Content\nthrow new \\RuntimeException('Content not fully initialized');\n}\n+ return $this->getDefinition()->get('name') ?: $this->getContentTypeSlug();\n+ }\n+\n+ public function getContentTypeSingularName(): string\n+ {\n+ if ($this->getDefinition() === null) {\n+ throw new \\RuntimeException('Content not fully initialized');\n+ }\n+\nreturn $this->getDefinition()->get('singular_name') ?: $this->getContentTypeSlug();\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Event/Listener/ContentFillListener.php",
"new_path": "src/Event/Listener/ContentFillListener.php",
"diff": "@@ -13,7 +13,6 @@ use Bolt\\Enum\\Statuses;\nuse Bolt\\Repository\\UserRepository;\nuse Bolt\\Twig\\ContentExtension;\nuse Doctrine\\ORM\\Event\\LifecycleEventArgs;\n-use RuntimeException;\nclass ContentFillListener\n{\n@@ -58,7 +57,7 @@ class ContentFillListener\nif ($entity instanceof Content) {\nif ($entity->getAuthor() === null) {\n- $entity->setAuthor($this->guesstimateAuthor($entity->getContentTypeName()));\n+ $entity->setAuthor($this->guesstimateAuthor());\n}\nif ($entity->getPublishedAt() === null && $entity->getStatus() === Statuses::PUBLISHED) {\n@@ -82,14 +81,8 @@ class ContentFillListener\n$entity->setContentExtension($this->contentExtension);\n}\n- private function guesstimateAuthor($contenttype): User\n+ private function guesstimateAuthor(): User\n{\n- $user = $this->users->getFirstAdminUser();\n-\n- if ($user === null) {\n- throw new RuntimeException('Error persisting record of type ' . $contenttype . ' without author. Could not guesstimate author.');\n- }\n-\n- return $user;\n+ return $this->users->getFirstAdminUser();\n}\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Update `getContentTypeName()`, add `getContentTypeSingularName()`
|
95,144 |
13.06.2020 12:57:06
| -7,200 |
e8d5a429e65bd94d66425d981d0c061bc3735b49
|
Fixing some deprecations
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"composer/composer\": \"^1.10\",\n\"composer/package-versions-deprecated\": \"^1.8\",\n\"doctrine/doctrine-bundle\": \"^2.0\",\n- \"doctrine/doctrine-cache-bundle\": \"^1.4\",\n\"doctrine/doctrine-fixtures-bundle\": \"^3.3\",\n\"doctrine/orm\": \"^2.7\",\n\"drupol/composer-packages\": \"^1.1\",\n"
},
{
"change_type": "MODIFY",
"old_path": "config/bundles.php",
"new_path": "config/bundles.php",
"diff": "@@ -4,7 +4,6 @@ return [\nApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle::class => ['all' => true],\nDAMA\\DoctrineTestBundle\\DAMADoctrineTestBundle::class => ['test' => true],\nDoctrine\\Bundle\\DoctrineBundle\\DoctrineBundle::class => ['all' => true],\n- Doctrine\\Bundle\\DoctrineCacheBundle\\DoctrineCacheBundle::class => ['all' => true],\nDoctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true, 'local' => true],\nDoctrine\\Bundle\\MigrationsBundle\\DoctrineMigrationsBundle::class => ['all' => true],\nHttp\\HttplugBundle\\HttplugBundle::class => ['dev' => true, 'local' => true],\n"
},
{
"change_type": "MODIFY",
"old_path": "config/routes/bolt.yaml",
"new_path": "config/routes/bolt.yaml",
"diff": "@@ -10,13 +10,13 @@ control_panel:\n# Async: Upload, Embed\ncontrol_panel_async:\n- resource: '../src/Controller/Backend/Async'\n+ resource: '../../src/Controller/Backend/Async/'\nprefix: '%bolt.backend_url%/async'\ntype: annotation\n# ImageController, Currently only used for thumbnails\ncontrollers:\n- resource: '../src/Controller/ImageController.php'\n+ resource: '../../src/Controller/ImageController.php'\ntype: annotation\n# Routes added by Extensions get added here, by Bolt\\Extension\\RoutesLoader\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Kernel.php",
"new_path": "src/Kernel.php",
"diff": "@@ -92,8 +92,6 @@ class Kernel extends BaseKernel\n$yaml = Yaml::parseFile($fileName);\nunset($yaml['__nodes']);\n- $container->set('bolt.config.general', $yaml);\n-\nforeach ($this->flattenKeys($yaml) as $key => $value) {\n$container->setParameter('bolt.' . $key, $value);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "symfony.lock",
"new_path": "symfony.lock",
"diff": "\"src/Repository/.gitignore\"\n]\n},\n- \"doctrine/doctrine-cache-bundle\": {\n- \"version\": \"1.4.0\"\n- },\n\"doctrine/doctrine-fixtures-bundle\": {\n\"version\": \"3.0\",\n\"recipe\": {\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Fixing some deprecations
|
95,144 |
14.06.2020 12:15:36
| -7,200 |
97f632f3eb9e9e8ff95790c7155d33856fbac90b
|
Use new Symfony Error Controller, instead of Twig's old one.
|
[
{
"change_type": "MODIFY",
"old_path": "config/packages/framework.yaml",
"new_path": "config/packages/framework.yaml",
"diff": "@@ -29,3 +29,6 @@ framework:\nvalidation:\nemail_validation_mode: 'html5'\nenable_annotations: true\n+\n+ # Override Symfony's error controller, so we can show custom 404's and 503's\n+ error_controller: Bolt\\Controller\\ErrorController::showAction\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "config/packages/twig.yaml",
"new_path": "config/packages/twig.yaml",
"diff": "@@ -12,5 +12,6 @@ twig:\nglobals:\n'config': '@Bolt\\Configuration\\Config'\n- # Override Symfony's error pages (so we can show custom 404's)\n- exception_controller: Bolt\\Controller\\ExceptionController::showAction\n+ # Silence Twig / Symfony's exception controller here, so we can set it up properly in\n+ # `framework.yaml` (so we can show custom 404's)\n+ exception_controller: ~\n"
},
{
"change_type": "MODIFY",
"old_path": "config/services.yaml",
"new_path": "config/services.yaml",
"diff": "@@ -41,12 +41,6 @@ services:\nresource: '../src/Controller'\ntags: ['controller.service_arguments']\n- # Override Symfony's error pages (so we can show custom 404's)\n- Bolt\\Controller\\ExceptionController:\n- public: true\n- arguments:\n- $debug: '%kernel.debug%'\n-\nBolt\\Doctrine\\TablePrefix:\ntags:\n- { name: doctrine.event_listener, event: loadClassMetadata, lazy: true }\n@@ -110,3 +104,10 @@ services:\nTwig\\Extension\\StringLoaderExtension: ~\n+ Symfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface: '@error_handler.error_renderer.html'\n+\n+ # @deprecated since Bolt 4.0.0, use Bolt\\Controller\\ErrorController instead\n+ Bolt\\Controller\\ExceptionController:\n+ public: true\n+ arguments:\n+ $debug: '%kernel.debug%'\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "src/Controller/ErrorController.php",
"diff": "+<?php\n+\n+declare(strict_types=1);\n+\n+namespace Bolt\\Controller;\n+\n+use Bolt\\Configuration\\Config;\n+use Bolt\\Controller\\Frontend\\DetailController;\n+use Bolt\\Controller\\Frontend\\TemplateController;\n+use Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController;\n+use Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n+use Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController as SymfonyExceptionController;\n+\n+use Symfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface;\n+use Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\n+use Symfony\\Component\\HttpFoundation\\Request;\n+use Symfony\\Component\\HttpFoundation\\Response;\n+use Symfony\\Component\\HttpKernel\\Controller\\ErrorController as SymfonyErrorController;\n+use Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n+use Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n+use Symfony\\Component\\HttpKernel\\Log\\DebugLoggerInterface;\n+use Twig\\Environment;\n+use Twig\\Error\\LoaderError;\n+\n+class ErrorController extends SymfonyErrorController\n+{\n+ /** @var Config */\n+ private $config;\n+\n+ /** @var DetailController */\n+ private $detailController;\n+\n+ /** @var TemplateController */\n+ private $templateController;\n+\n+ public function __construct(HttpKernelInterface $httpKernel, Config $config, DetailController $detailController, TemplateController $templateController, ErrorRendererInterface $errorRenderer)\n+ {\n+ $this->config = $config;\n+ $this->detailController = $detailController;\n+ $this->templateController = $templateController;\n+\n+ parent::__construct($httpKernel, $templateController, $errorRenderer);\n+ }\n+\n+ /**\n+ * Show an exception. Mainly used for custom 404 pages, otherwise falls back\n+ * to Symfony's error handling\n+ */\n+ public function showAction(Environment $twig, Request $request, \\Throwable $exception, ?DebugLoggerInterface $logger = null): Response\n+ {\n+ if (method_exists($exception, 'getStatusCode')) {\n+ $code = $exception->getStatusCode();\n+ } else {\n+ $code = Response::HTTP_INTERNAL_SERVER_ERROR;\n+ }\n+\n+ if ($code === Response::HTTP_NOT_FOUND) {\n+ $twig->addGlobal('exception', $exception);\n+\n+ // If Maintenance is on, show that, instead of the 404.\n+ if ($this->isMaintenanceEnabled()) {\n+ return $this->showMaintenance();\n+ }\n+\n+ return $this->showNotFound();\n+ }\n+\n+ if ($code === Response::HTTP_SERVICE_UNAVAILABLE) {\n+ $twig->addGlobal('exception', $exception);\n+\n+ return $this->showMaintenance();\n+ }\n+\n+ // If not a 404, we'll let Symfony handle it as usual.\n+ return parent::__invoke($exception);\n+ }\n+\n+ private function showNotFound(): Response\n+ {\n+ foreach ($this->config->get('general/notfound') as $item) {\n+ $output = $this->attemptToRender($item);\n+\n+ if ($output instanceof Response) {\n+ return $output;\n+ }\n+ }\n+\n+ return new Response('404: Not found (and there was no proper page configured to display)');\n+ }\n+\n+ private function isMaintenanceEnabled()\n+ {\n+ return $this->config->get('general/maintenance_mode', false);\n+ }\n+\n+ private function showMaintenance(): Response\n+ {\n+ foreach ($this->config->get('general/maintenance') as $item) {\n+ $output = $this->attemptToRender($item);\n+\n+ if ($output instanceof Response) {\n+ return $output;\n+ }\n+ }\n+\n+ return new Response('503: Maintenance mode (and there was no proper page configured to display)');\n+ }\n+\n+ private function attemptToRender(string $item): ?Response\n+ {\n+ // First, see if it's a contenttype/slug pair:\n+ [$contentType, $slug] = explode('/', $item . '/');\n+\n+ if (! empty($contentType) && ! empty($slug)) {\n+ // We wrap it in a try/catch, because we wouldn't want to\n+ // trigger a 404 within a 404 now, would we?\n+ try {\n+ return $this->detailController->record($slug, $contentType, false);\n+ } catch (NotFoundHttpException $e) {\n+ // Just continue to the next one.\n+ }\n+ }\n+\n+ // Then, let's see if it's a template we can render.\n+ try {\n+ return $this->templateController->template($item);\n+ } catch (LoaderError $e) {\n+ // Just continue to the next one.\n+ }\n+\n+ return null;\n+ }\n+}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/ExceptionController.php",
"new_path": "src/Controller/ExceptionController.php",
"diff": "@@ -16,6 +16,9 @@ use Symfony\\Component\\HttpKernel\\Log\\DebugLoggerInterface;\nuse Twig\\Environment;\nuse Twig\\Error\\LoaderError;\n+/**\n+ * @deprecated since Bolt 4.0, use Bolt\\Controller\\ErrorController instead\n+ */\nclass ExceptionController extends SymfonyExceptionController\n{\n/** @var Config */\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Use new Symfony Error Controller, instead of Twig's old one.
|
95,144 |
15.06.2020 09:16:27
| -7,200 |
be49ba8ca6dc7027af0d1e98f598faca65aba065
|
Fixing some more deprecations
|
[
{
"change_type": "DELETE",
"old_path": "config/routes/dev/twig.yaml",
"new_path": null,
"diff": "-_errors:\n- resource: '@TwigBundle/Resources/config/routing/errors.xml'\n- prefix: /_error\n"
},
{
"change_type": "MODIFY",
"old_path": "config/services.yaml",
"new_path": "config/services.yaml",
"diff": "@@ -105,9 +105,3 @@ services:\nTwig\\Extension\\StringLoaderExtension: ~\nSymfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface: '@error_handler.error_renderer.html'\n-\n- # @deprecated since Bolt 4.0.0, use Bolt\\Controller\\ErrorController instead\n- Bolt\\Controller\\ExceptionController:\n- public: true\n- arguments:\n- $debug: '%kernel.debug%'\n"
},
{
"change_type": "MODIFY",
"old_path": "public/index.php",
"new_path": "public/index.php",
"diff": "declare(strict_types=1);\nuse Bolt\\Kernel;\n-use Symfony\\Component\\Debug\\Debug;\n+use Symfony\\Component\\ErrorHandler\\Debug;\nuse Symfony\\Component\\Dotenv\\Dotenv;\nuse Symfony\\Component\\HttpFoundation\\Request;\n"
},
{
"change_type": "DELETE",
"old_path": "src/Controller/ExceptionController.php",
"new_path": null,
"diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-namespace Bolt\\Controller;\n-\n-use Bolt\\Configuration\\Config;\n-use Bolt\\Controller\\Frontend\\DetailController;\n-use Bolt\\Controller\\Frontend\\TemplateController;\n-use Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController as SymfonyExceptionController;\n-use Symfony\\Component\\Debug\\Exception\\FlattenException;\n-use Symfony\\Component\\HttpFoundation\\Request;\n-use Symfony\\Component\\HttpFoundation\\Response;\n-use Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n-use Symfony\\Component\\HttpKernel\\Log\\DebugLoggerInterface;\n-use Twig\\Environment;\n-use Twig\\Error\\LoaderError;\n-\n-/**\n- * @deprecated since Bolt 4.0, use Bolt\\Controller\\ErrorController instead\n- */\n-class ExceptionController extends SymfonyExceptionController\n-{\n- /** @var Config */\n- private $config;\n-\n- /** @var DetailController */\n- private $detailController;\n-\n- /** @var TemplateController */\n- private $templateController;\n-\n- public function __construct(Environment $twig, bool $debug, Config $config, DetailController $detailController, TemplateController $templateController)\n- {\n- $this->config = $config;\n- $this->detailController = $detailController;\n- $this->templateController = $templateController;\n-\n- parent::__construct($twig, $debug);\n- }\n-\n- /**\n- * Show an exception. Mainly used for custom 404 pages, otherwise falls back\n- * to Symfony's error handling\n- */\n- public function showAction(Request $request, FlattenException $exception, ?DebugLoggerInterface $logger = null): Response\n- {\n- $code = $exception->getStatusCode();\n-\n- if ($code === Response::HTTP_NOT_FOUND) {\n- $this->twig->addGlobal('exception', $exception);\n-\n- return $this->showNotFound();\n- }\n-\n- if ($code === Response::HTTP_SERVICE_UNAVAILABLE) {\n- $this->twig->addGlobal('exception', $exception);\n-\n- return $this->showMaintenance();\n- }\n-\n- // If not a 404, we'll let Symfony handle it as usual.\n- return parent::showAction($request, $exception, $logger);\n- }\n-\n- private function showNotFound(): Response\n- {\n- foreach ($this->config->get('general/notfound') as $item) {\n- $output = $this->attemptToRender($item);\n-\n- if ($output instanceof Response) {\n- return $output;\n- }\n- }\n-\n- return new Response('404: Not found (and there was no proper page configured to display)');\n- }\n-\n- private function showMaintenance(): Response\n- {\n- foreach ($this->config->get('general/maintenance') as $item) {\n- $output = $this->attemptToRender($item);\n-\n- if ($output instanceof Response) {\n- return $output;\n- }\n- }\n-\n- return new Response('503: Maintenance mode (and there was no proper page configured to display)');\n- }\n-\n- private function attemptToRender(string $item): ?Response\n- {\n- // First, see if it's a contenttype/slug pair:\n- [$contentType, $slug] = explode('/', $item . '/');\n-\n- if (! empty($contentType) && ! empty($slug)) {\n- // We wrap it in a try/catch, because we wouldn't want to\n- // trigger a 404 within a 404 now, would we?\n- try {\n- return $this->detailController->record($slug, $contentType, false);\n- } catch (NotFoundHttpException $e) {\n- // Just continue to the next one.\n- }\n- }\n-\n- // Then, let's see if it's a template we can render.\n- try {\n- return $this->templateController->template($item);\n- } catch (LoaderError $e) {\n- // Just continue to the next one.\n- }\n-\n- return null;\n- }\n-}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Fixing some more deprecations
|
95,144 |
15.06.2020 10:33:26
| -7,200 |
0399477540235a0cbc340a2405c0caf649847f78
|
Stop PhpStan from complaining
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"peterkahl/country-code-to-emoji-flag\": \"^1.2\",\n\"php-translation/symfony-bundle\": \"^0.12\",\n\"phpdocumentor/reflection-docblock\": \"^4.3\",\n+ \"psr/event-dispatcher\": \"^1.0\",\n\"psr/simple-cache\": \"^1.0\",\n\"scienta/doctrine-json-functions\": \"^4.1\",\n\"sensio/framework-extra-bundle\": \"^5.5\",\n"
},
{
"change_type": "MODIFY",
"old_path": "symfony.lock",
"new_path": "symfony.lock",
"diff": "\"psr/container\": {\n\"version\": \"1.0.0\"\n},\n+ \"psr/event-dispatcher\": {\n+ \"version\": \"1.0.0\"\n+ },\n\"psr/http-client\": {\n\"version\": \"1.0.0\"\n},\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Stop PhpStan from complaining
|
95,144 |
15.06.2020 12:14:45
| -7,200 |
a97b52da7b5db80e94d2e0a27e39a743a9d0841b
|
Fix capitalisation in groups
|
[
{
"change_type": "MODIFY",
"old_path": "templates/content/_tabs.html.twig",
"new_path": "templates/content/_tabs.html.twig",
"diff": "+{% apply spaceless %}\n<nav>\n<ul class=\"nav editor__tabbar\" role=\"tablist\">\n{% for group in groups %}\n<a class=\"nav-link {% if loop.first %} active{% endif %} \" id=\"{{ group|slug }} -tab\" data-toggle=\"pill\"\nhref=\"#{{ group|slug }} \" role=\"tab\" aria-controls=\"{{ group|slug }} \"\naria-selected=\"{% if loop.first %} true{% else %} false{% endif %} \">\n- <span>{{group|capitalize}}</span>\n+ <span>{{ group }} </span>\n</a>\n</li>\n{% endfor %}\n</ul>\n</nav>\n+{% endapply %}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Fix capitalisation in groups
|
95,144 |
15.06.2020 12:38:18
| -7,200 |
5f063d10e28707a630913b62458c74f8fd936bdd
|
Two more deprecations fixed!
|
[
{
"change_type": "DELETE",
"old_path": "src/Event/Subscriber/CheckRequirementsSubscriber.php",
"new_path": null,
"diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-namespace Bolt\\Event\\Subscriber;\n-\n-use Doctrine\\DBAL\\Exception\\DriverException;\n-use Doctrine\\ORM\\EntityManagerInterface;\n-use Symfony\\Component\\Console\\ConsoleEvents;\n-use Symfony\\Component\\Console\\Event\\ConsoleErrorEvent;\n-use Symfony\\Component\\Console\\Style\\SymfonyStyle;\n-use Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\n-use Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\n-use Symfony\\Component\\HttpKernel\\KernelEvents;\n-\n-/**\n- * This application uses by default an SQLite database to store its information.\n- * That's why the 'sqlite3' extension must be enabled in PHP. This event\n- * subscriber listens to console events and in case of an exception caused by\n- * a disabled 'sqlite3' extension, it displays a meaningful error message.\n- *\n- * @author Javier Eguiluz <javier.eguiluz@gmail.com>\n- */\n-class CheckRequirementsSubscriber implements EventSubscriberInterface\n-{\n- private $entityManager;\n-\n- public function __construct(EntityManagerInterface $entityManager)\n- {\n- $this->entityManager = $entityManager;\n- }\n-\n- // Event Subscribers must define this method to declare the events they\n- // listen to. You can listen to several events, execute more than one method\n- // for each event and set the priority of each event too.\n- // See https://symfony.com/doc/current/event_dispatcher.html#creating-an-event-subscriber\n- public static function getSubscribedEvents(): array\n- {\n- return [\n- // Errors are one of the events defined by the Console. See the\n- // rest here: https://symfony.com/doc/current/components/console/events.html\n- ConsoleEvents::ERROR => 'handleConsoleError',\n- // See: http://api.symfony.com/master/Symfony/Component/HttpKernel/KernelEvents.html\n- KernelEvents::EXCEPTION => 'handleKernelException',\n- ];\n- }\n-\n- /**\n- * This method checks if there has been an error in a command related to\n- * the database and then, it checks if the 'sqlite3' PHP extension is enabled\n- * or not to display a better error message.\n- */\n- public function handleConsoleError(ConsoleErrorEvent $event): void\n- {\n- $commandNames = ['doctrine:fixtures:load', 'doctrine:database:create', 'doctrine:schema:create', 'doctrine:database:drop'];\n-\n- if ($event->getCommand() && \\in_array($event->getCommand()->getName(), $commandNames, true)) {\n- if ($this->isSQLitePlatform() && ! \\extension_loaded('sqlite3')) {\n- $io = new SymfonyStyle($event->getInput(), $event->getOutput());\n- $io->error('This command requires to have the \"sqlite3\" PHP extension enabled because, by default, the Symfony Demo application uses SQLite to store its information.');\n- }\n- }\n- }\n-\n- /**\n- * This method checks if the triggered exception is related to the database\n- * and then, it checks if the required 'sqlite3' PHP extension is enabled.\n- */\n- public function handleKernelException(ExceptionEvent $event): void\n- {\n- $exception = $event->getException();\n- // Since any exception thrown during a Twig template rendering is wrapped\n- // in a Twig_Error_Runtime, we must get the original exception.\n- $previousException = $exception->getPrevious();\n-\n- // Driver exception may happen in controller or in twig template rendering\n- $isDriverException = ($exception instanceof DriverException || $previousException instanceof DriverException);\n-\n- // Check if SQLite is enabled\n- if ($isDriverException && $this->isSQLitePlatform() && ! \\extension_loaded('sqlite3')) {\n- $event->setException(new \\Exception('PHP extension \"sqlite3\" must be enabled because, by default, the Symfony Demo application uses SQLite to store its information.'));\n- }\n- }\n-\n- /**\n- * Checks if the application is using SQLite as its database.\n- */\n- private function isSQLitePlatform(): bool\n- {\n- $databasePlatform = $this->entityManager->getConnection()->getDatabasePlatform();\n-\n- return $databasePlatform ? $databasePlatform->getName() === 'sqlite' : false;\n- }\n-}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Twig/ContentExtension.php",
"new_path": "src/Twig/ContentExtension.php",
"diff": "@@ -167,7 +167,7 @@ class ContentExtension extends AbstractExtension\n}\n}\n- return '';\n+ return '(untitled)';\n}\npublic function getTitle(Content $content, string $locale = '', int $length = 120): string\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Two more deprecations fixed!
|
95,144 |
15.06.2020 16:00:10
| -7,200 |
fa4a4108585813cdc6860126bec3a22ff48db8f9
|
Update to add `title_case`
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"ext-pdo\": \"*\",\n\"api-platform/core\": \"^2.5\",\n\"babdev/pagerfanta-bundle\": \"^2.4\",\n- \"bolt/common\": \"^2.1.0\",\n+ \"bolt/common\": \"^2.1.6\",\n\"cocur/slugify\": \"^4.0\",\n\"composer/composer\": \"^1.10\",\n\"composer/package-versions-deprecated\": \"^1.8\",\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Twig/TextExtension.php",
"new_path": "src/Twig/TextExtension.php",
"diff": "@@ -25,6 +25,7 @@ class TextExtension extends AbstractExtension\nreturn [\nnew TwigFilter('safestring', [$this, 'safeString'], $safe),\nnew TwigFilter('plaintext', [$this, 'plainText'], $safe),\n+ new TwigFilter('title_case', [$this, 'titleCase'], $safe),\nnew TwigFilter('slug', [$this, 'slug']),\nnew TwigFilter('ucwords', [$this, 'ucwords']),\nnew TwigFilter('preg_replace', [$this, 'pregReplace']),\n@@ -45,6 +46,11 @@ class TextExtension extends AbstractExtension\nreturn strip_tags($str);\n}\n+ public function titleCase(string $str): string\n+ {\n+ return Str::titleCase($str);\n+ }\n+\npublic function slug(string $str): string\n{\nreturn Str::slug((string) $str);\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/content/_tabs.html.twig",
"new_path": "templates/content/_tabs.html.twig",
"diff": "<a class=\"nav-link {% if loop.first %} active{% endif %} \" id=\"{{ group|slug }} -tab\" data-toggle=\"pill\"\nhref=\"#{{ group|slug }} \" role=\"tab\" aria-controls=\"{{ group|slug }} \"\naria-selected=\"{% if loop.first %} true{% else %} false{% endif %} \">\n- <span>{{ group }} </span>\n+ <span>{{ group|title_case }} </span>\n</a>\n</li>\n{% endfor %}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Update to add `title_case`
|
95,144 |
16.06.2020 12:42:41
| -7,200 |
add93f4849f7942a4dc1c05eace0c95ce3e321a7
|
Make Collection Fields iterable
|
[
{
"change_type": "MODIFY",
"old_path": "config/services.yaml",
"new_path": "config/services.yaml",
"diff": "@@ -105,3 +105,5 @@ services:\nTwig\\Extension\\StringLoaderExtension: ~\nSymfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface: '@error_handler.error_renderer.html'\n+\n+ Squirrel\\TwigPhpSyntax\\PhpSyntaxExtension: ~\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/CollectionField.php",
"new_path": "src/Entity/Field/CollectionField.php",
"diff": "@@ -17,10 +17,11 @@ use Doctrine\\ORM\\Mapping as ORM;\n/**\n* @ORM\\Entity\n*/\n-class CollectionField extends Field implements FieldInterface, FieldParentInterface, ListFieldInterface\n+class CollectionField extends Field implements FieldInterface, FieldParentInterface, ListFieldInterface, \\Iterator\n{\nuse FieldParentTrait;\nuse ListFieldTrait;\n+ use CollectionFieldIteratorTrait;\npublic const TYPE = 'collection';\n@@ -99,4 +100,5 @@ class CollectionField extends Field implements FieldInterface, FieldParentInterf\nreturn $result;\n}\n+\n}\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "src/Entity/Field/CollectionFieldIteratorTrait.php",
"diff": "+<?php\n+\n+\n+namespace Bolt\\Entity\\Field;\n+\n+\n+use Bolt\\Entity\\Field;\n+\n+trait CollectionFieldIteratorTrait\n+{\n+ private $iteratorCursor = 0;\n+\n+ public function current(): Field\n+ {\n+ /** @var Field $field */\n+ $field = $this->fields[$this->iteratorCursor];\n+ return $field;\n+ }\n+\n+ public function next(): void\n+ {\n+ ++$this->iteratorCursor;\n+ }\n+\n+ public function key(): int\n+ {\n+ return $this->iteratorCursor;\n+ }\n+\n+\n+ public function valid(): bool\n+ {\n+ return isset($this->fields[$this->iteratorCursor]);\n+ }\n+\n+\n+ public function rewind(): void\n+ {\n+ $this->iteratorCursor = 0;\n+ }\n+}\n\\ No newline at end of file\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Make Collection Fields iterable
|
95,144 |
16.06.2020 12:46:13
| -7,200 |
27ac5b40afc84d12374fd88516faea1fd6193c96
|
Make Collection Field properly Iterable
|
[
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/CollectionField.php",
"new_path": "src/Entity/Field/CollectionField.php",
"diff": "@@ -100,5 +100,4 @@ class CollectionField extends Field implements FieldInterface, FieldParentInterf\nreturn $result;\n}\n-\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/CollectionFieldIteratorTrait.php",
"new_path": "src/Entity/Field/CollectionFieldIteratorTrait.php",
"diff": "<?php\n+declare(strict_types=1);\nnamespace Bolt\\Entity\\Field;\n-\nuse Bolt\\Entity\\Field;\ntrait CollectionFieldIteratorTrait\n@@ -13,8 +13,7 @@ trait CollectionFieldIteratorTrait\npublic function current(): Field\n{\n/** @var Field $field */\n- $field = $this->fields[$this->iteratorCursor];\n- return $field;\n+ return $this->fields[$this->iteratorCursor];\n}\npublic function next(): void\n@@ -27,13 +26,11 @@ trait CollectionFieldIteratorTrait\nreturn $this->iteratorCursor;\n}\n-\npublic function valid(): bool\n{\nreturn isset($this->fields[$this->iteratorCursor]);\n}\n-\npublic function rewind(): void\n{\n$this->iteratorCursor = 0;\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Make Collection Field properly Iterable
|
95,144 |
16.06.2020 13:33:09
| -7,200 |
b178e92c9746624e723d37bcbf157495ccd26e90
|
Cleaning up Iterator and Trait
|
[
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/CollectionField.php",
"new_path": "src/Entity/Field/CollectionField.php",
"diff": "@@ -21,7 +21,6 @@ class CollectionField extends Field implements FieldInterface, FieldParentInterf\n{\nuse FieldParentTrait;\nuse ListFieldTrait;\n- use CollectionFieldIteratorTrait;\npublic const TYPE = 'collection';\n"
},
{
"change_type": "DELETE",
"old_path": "src/Entity/Field/CollectionFieldIteratorTrait.php",
"new_path": null,
"diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-namespace Bolt\\Entity\\Field;\n-\n-use Bolt\\Entity\\Field;\n-\n-trait CollectionFieldIteratorTrait\n-{\n- private $iteratorCursor = 0;\n-\n- public function current(): Field\n- {\n- /** @var Field $field */\n- return $this->fields[$this->iteratorCursor];\n- }\n-\n- public function next(): void\n- {\n- ++$this->iteratorCursor;\n- }\n-\n- public function key(): int\n- {\n- return $this->iteratorCursor;\n- }\n-\n- public function valid(): bool\n- {\n- return isset($this->fields[$this->iteratorCursor]);\n- }\n-\n- public function rewind(): void\n- {\n- $this->iteratorCursor = 0;\n- }\n-}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/FilelistField.php",
"new_path": "src/Entity/Field/FilelistField.php",
"diff": "@@ -14,7 +14,7 @@ use Doctrine\\ORM\\Mapping as ORM;\n/**\n* @ORM\\Entity\n*/\n-class FilelistField extends Field implements FieldInterface, ListFieldInterface\n+class FilelistField extends Field implements FieldInterface, ListFieldInterface, \\Iterator\n{\nuse ListFieldTrait;\n@@ -35,16 +35,16 @@ class FilelistField extends Field implements FieldInterface, ListFieldInterface\n*/\npublic function getValue(): array\n{\n- $result = [];\n+ $this->fields = [];\nforeach ($this->getRawValue() as $key => $file) {\n$fileField = new FileField();\n$fileField->setName((string) $key);\n$fileField->setValue($file);\n- array_push($result, $fileField);\n+ $this->fields[] = $fileField;\n}\n- return $result;\n+ return $this->fields;\n}\npublic function getApiValue()\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/ImagelistField.php",
"new_path": "src/Entity/Field/ImagelistField.php",
"diff": "@@ -14,7 +14,7 @@ use Doctrine\\ORM\\Mapping as ORM;\n/**\n* @ORM\\Entity\n*/\n-class ImagelistField extends Field implements FieldInterface, ListFieldInterface\n+class ImagelistField extends Field implements FieldInterface, ListFieldInterface, \\Iterator\n{\nuse ListFieldTrait;\n@@ -35,16 +35,16 @@ class ImagelistField extends Field implements FieldInterface, ListFieldInterface\n*/\npublic function getValue(): array\n{\n- $result = [];\n+ $this->fields = [];\nforeach ($this->getRawValue() as $key => $image) {\n$imageField = new ImageField();\n$imageField->setName((string) $key);\n$imageField->setValue($image);\n- $result[] = $imageField;\n+ $this->fields[] = $imageField;\n}\n- return $result;\n+ return $this->fields;\n}\npublic function getApiValue()\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field/SetField.php",
"new_path": "src/Entity/Field/SetField.php",
"diff": "@@ -18,7 +18,7 @@ use Tightenco\\Collect\\Support\\Collection;\n/**\n* @ORM\\Entity\n*/\n-class SetField extends Field implements FieldInterface, FieldParentInterface, ListFieldInterface\n+class SetField extends Field implements FieldInterface, FieldParentInterface, ListFieldInterface, \\Iterator\n{\nuse FieldParentTrait;\nuse ListFieldTrait;\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/ListFieldTrait.php",
"new_path": "src/Entity/ListFieldTrait.php",
"diff": "@@ -6,6 +6,11 @@ namespace Bolt\\Entity;\ntrait ListFieldTrait\n{\n+ private $iteratorCursor = 0;\n+\n+ /** @var array Field */\n+ private $fields = [];\n+\n/**\n* Makes ListFieldInterface fields |length filter\n* return the number of elements in the field\n@@ -14,4 +19,29 @@ trait ListFieldTrait\n{\nreturn count($this->getValue());\n}\n+\n+ public function current(): Field\n+ {\n+ return $this->fields[$this->iteratorCursor];\n+ }\n+\n+ public function next(): void\n+ {\n+ ++$this->iteratorCursor;\n+ }\n+\n+ public function key(): int\n+ {\n+ return $this->iteratorCursor;\n+ }\n+\n+ public function valid(): bool\n+ {\n+ return isset($this->fields[$this->iteratorCursor]);\n+ }\n+\n+ public function rewind(): void\n+ {\n+ $this->iteratorCursor = 0;\n+ }\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Cleaning up Iterator and Trait
|
95,144 |
16.06.2020 15:19:34
| -7,200 |
be73b2296a50669617ad882b811c4ba245a1beb8
|
Don't break on missing Collection Fields
|
[
{
"change_type": "MODIFY",
"old_path": "src/Event/Listener/FieldFillListener.php",
"new_path": "src/Event/Listener/FieldFillListener.php",
"diff": "@@ -73,7 +73,7 @@ class FieldFillListener\nprivate function intersectFieldsAndDefinition(array $fields, FieldType $definition): array\n{\nreturn collect($fields)->filter(function (Field $field) use ($definition) {\n- return $definition->get('fields')->has($field->getName());\n+ return $definition->get('fields') && $definition->get('fields')->has($field->getName());\n})->toArray();\n}\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Don't break on missing Collection Fields
|
95,144 |
16.06.2020 16:59:55
| -7,200 |
337acc06c7bea1c6cc07077885762a6573dc54e2
|
Better check for maximum filesize
|
[
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/Async/UploadController.php",
"new_path": "src/Controller/Backend/Async/UploadController.php",
"diff": "@@ -76,6 +76,7 @@ class UploadController implements AsyncZoneInterface\n$acceptedFileTypes = array_merge($this->config->getMediaTypes()->toArray(), $this->config->getFileTypes()->toArray());\n$maxSize = $this->config->getMaxUpload();\n+\n$uploadHandler->addRule(\n'extension',\n[\n@@ -84,18 +85,28 @@ class UploadController implements AsyncZoneInterface\n'The file for field \\'{label}\\' was <u>not</u> uploaded. It should be a valid file type. Allowed are <code>' . implode('</code>, <code>', $acceptedFileTypes) . '.',\n'Upload file'\n);\n+\n$uploadHandler->addRule(\n'size',\n- ['max' => $maxSize],\n+ ['size' => $maxSize],\n'The file for field \\'{label}\\' was <u>not</u> uploaded. The upload can have a maximum filesize of <b>' . $this->textExtension->formatBytes($maxSize) . '</b>.',\n'Upload file'\n);\n+\n$uploadHandler->setSanitizerCallback(function ($name) {\nreturn $this->sanitiseFilename($name);\n});\n+ try {\n/** @var File $result */\n$result = $uploadHandler->process($request->files->all());\n+ } catch (\\Throwable $e) {\n+ return new JsonResponse([\n+ 'error' => [\n+ 'message' => $e->getMessage() . ' Ensure the upload does <em><u>not</u></em> exceed the maximum filesize of <b>' . $this->textExtension->formatBytes($maxSize) . '</b>, and that the destination folder (on the webserver) is writable.',\n+ ],\n+ ], Response::HTTP_BAD_REQUEST);\n+ }\nif ($result->isValid()) {\ntry {\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Better check for maximum filesize
|
95,144 |
17.06.2020 07:59:04
| -7,200 |
b81d1ddd35580f7fbcdd0de9ab4f419578a615f1
|
Fix: Don't show spinners on invalid form submissions
|
[
{
"change_type": "MODIFY",
"old_path": "assets/js/app/patience-is-a-virtue.js",
"new_path": "assets/js/app/patience-is-a-virtue.js",
"diff": "import $ from 'jquery';\n-$('*[data-patience]').on('click', function() {\n+$('a[data-patience], button[data-patience]').on('click', function() {\nconst thisElement = $(this);\nconst thisIcon = thisElement.find('i');\n+ // If we're handling a form, and the form's not valid, we can stop here\n+ if (\n+ $(this).attr('form') &&\n+ !$('#' + $(this).attr('form'))[0].checkValidity()\n+ ) {\n+ return false;\n+ }\n+\n// Bootstrap padding / margin like `mx-2` or `pt-3`\nconst addedPadding = thisIcon.attr('class').match(/[mp][tblrxy]-[0-5]/i);\nconst newClass =\n@@ -18,7 +26,7 @@ $('*[data-patience]').on('click', function() {\n});\nwindow.reEnablePatientButtons = function() {\n- $('*[data-patience]').each(function() {\n+ $('*[data-original-class]').each(function() {\nconst thisIcon = $(this).find('i');\n$(this).attr('disabled', false);\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Fix: Don't show spinners on invalid form submissions
|
95,144 |
17.06.2020 10:09:48
| -7,200 |
c32b6999c58af52e1c9de4e8fad8931d7356ad9d
|
Add Global search to backend
|
[
{
"change_type": "MODIFY",
"old_path": "assets/js/app/toolbar/Components/Toolbar.vue",
"new_path": "assets/js/app/toolbar/Components/Toolbar.vue",
"diff": "</li>\n<li>\n<a href=\"https://docs.bolt.cm/\" target=\"_blank\">\n- <i class=\"fas fa-globe-americas fa-fw\"></i>\n+ <i class=\"fas fa-book fa-fw\"></i>\n{{ labels['about.bolt_documentation'] }}\n</a>\n</li>\n</div>\n</div>\n+ <form :action=\"backendPrefix\" class=\"toolbar-item toolbar-item__filter input-group\">\n+ <input type=\"text\" class=\"form-control\" :placeholder=\"labels['listing.placeholder_search']\" name=\"filter\" :value=\"filterValue\">\n+ <div class=\"input-group-append\">\n+ <button class=\"btn btn-tertiary\" type=\"submit\">\n+ <i class=\"fas fa-search\"></i>{{ labels['listing.button_search'] }}\n+ </button>\n+ </div>\n+ </form>\n+\n<div class=\"toolbar-item toolbar-item__site\">\n<a href=\"/\" target=\"_blank\">\n<i class=\"fas fa-sign-out-alt\"></i>{{ labels['action.view_site'] }}\n</div>\n<div class=\"toolbar-item btn-group toolbar-item__new\">\n+\n<button\nclass=\"btn new-item__dropdown-toggler dropdown-toggle\"\ntype=\"button\"\n@@ -107,6 +117,7 @@ export default {\nmenu: Array,\nlabels: Object,\nbackendPrefix: RegExp,\n+ filterValue: String,\n},\ncomputed: {\ncontrast() {\n"
},
{
"change_type": "MODIFY",
"old_path": "assets/scss/modules/admin/_toolbar.scss",
"new_path": "assets/scss/modules/admin/_toolbar.scss",
"diff": "padding-right: 1rem;\n}\n+ &__filter {\n+ margin-left: auto;\n+ max-width: 400px;\n+ }\n+\n&__site {\ndisplay: none;\n- margin-left: auto;\n+\n@include media-breakpoint-up(sm) {\ndisplay: block;\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/DashboardController.php",
"new_path": "src/Controller/Backend/DashboardController.php",
"diff": "@@ -7,6 +7,9 @@ namespace Bolt\\Controller\\Backend;\nuse Bolt\\Controller\\TwigAwareController;\nuse Bolt\\Entity\\Content;\nuse Bolt\\Repository\\ContentRepository;\n+use Bolt\\Storage\\Query;\n+use Bolt\\Utils\\Html;\n+use Bolt\\Utils\\Sanitiser;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Security;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n@@ -20,17 +23,25 @@ class DashboardController extends TwigAwareController implements BackendZoneInte\n/**\n* @Route(\"/\", name=\"bolt_dashboard\", methods={\"GET\"})\n*/\n- public function index(ContentRepository $content, Request $request): Response\n+ public function index(Query $query, Request $request): Response\n{\n$amount = (int) $this->config->get('general/records_per_page', 10);\n$page = (int) $request->get('page', 1);\n- $contentTypes = $this->config->get('contenttypes')->where('show_on_dashboard', true);\n+ $contentTypes = $this->config->get('contenttypes')->where('show_on_dashboard', true)->keys()->implode(',');\n+ $filter = $this->getFromRequest('filter');\n- /** @var Content $records */\n- $records = $content->findLatest($contentTypes, $page, $amount);\n+ $pager = $this->createPager($request, $query, $contentTypes, $amount, '-modifiedAt');\n+ $nbPages = $pager->getNbPages();\n+\n+ if ($page > $nbPages) {\n+ return $this->redirectToRoute('bolt_dashboard');\n+ }\n+\n+ $records = $pager->setCurrentPage($page);\nreturn $this->renderTemplate('@bolt/pages/dashboard.html.twig', [\n'records' => $records,\n+ 'filter_value' => $filter,\n]);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/ListingController.php",
"new_path": "src/Controller/Backend/ListingController.php",
"diff": "@@ -25,27 +25,8 @@ class ListingController extends TwigAwareController implements BackendZoneInterf\n$contentTypeObject = ContentType::factory($contentType, $this->config->get('contenttypes'));\n$page = (int) $request->query->get('page', '1');\n- $params = [\n- 'status' => '!unknown',\n- ];\n+ $pager = $this->createPager($request, $query, $contentType, $contentTypeObject->get('records_per_page'), $contentTypeObject->get('order'));\n- if ($request->get('sortBy')) {\n- $params['order'] = $request->get('sortBy');\n- } else {\n- $params['order'] = $contentTypeObject->get('order');\n- }\n-\n- if ($request->get('filter')) {\n- $params['anyField'] = '%' . $request->get('filter') . '%';\n- }\n-\n- if ($request->get('taxonomy')) {\n- $taxonomy = explode('=', $request->get('taxonomy'));\n- $params[$taxonomy[0]] = $taxonomy[1];\n- }\n-\n- $pager = $query->getContentForTwig($contentType, $params)\n- ->setMaxPerPage($contentTypeObject->get('records_per_page'));\n$nbPages = $pager->getNbPages();\nif ($page > $nbPages) {\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/Frontend/DetailController.php",
"new_path": "src/Controller/Frontend/DetailController.php",
"diff": "@@ -24,14 +24,10 @@ class DetailController extends TwigAwareController implements FrontendZoneInterf\n/** @var ContentRepository */\nprivate $contentRepository;\n- /** @var Request */\n- private $request;\n-\npublic function __construct(TemplateChooser $templateChooser, ContentRepository $contentRepository, RequestStack $requestStack)\n{\n$this->templateChooser = $templateChooser;\n$this->contentRepository = $contentRepository;\n- $this->request = $requestStack->getCurrentRequest();\n}\n/**\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/Frontend/SearchController.php",
"new_path": "src/Controller/Frontend/SearchController.php",
"diff": "@@ -19,13 +19,9 @@ class SearchController extends TwigAwareController implements FrontendZoneInterf\n/** @var TemplateChooser */\nprivate $templateChooser;\n- /** @var Sanitiser */\n- private $sanitiser;\n-\n- public function __construct(TemplateChooser $templateChooser, Sanitiser $sanitiser)\n+ public function __construct(TemplateChooser $templateChooser)\n{\n$this->templateChooser = $templateChooser;\n- $this->sanitiser = $sanitiser;\n}\n/**\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/TwigAwareController.php",
"new_path": "src/Controller/TwigAwareController.php",
"diff": "@@ -7,11 +7,15 @@ namespace Bolt\\Controller;\nuse Bolt\\Canonical;\nuse Bolt\\Configuration\\Config;\nuse Bolt\\Entity\\Field\\TemplateselectField;\n+use Bolt\\Storage\\Query;\n+use Bolt\\Utils\\Sanitiser;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController;\nuse Symfony\\Bundle\\TwigBundle\\Loader\\NativeFilesystemLoader;\nuse Symfony\\Component\\Asset\\Packages;\nuse Symfony\\Component\\Asset\\PathPackage;\nuse Symfony\\Component\\Asset\\VersionStrategy\\EmptyVersionStrategy;\n+use Symfony\\Component\\HttpFoundation\\Request;\n+use Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Tightenco\\Collect\\Support\\Collection;\nuse Twig\\Environment;\n@@ -31,15 +35,23 @@ class TwigAwareController extends AbstractController\n/** @var Canonical */\nprotected $canonical;\n+ /** @var Sanitiser */\n+ protected $sanitiser;\n+\n+ /** @var Request */\n+ protected $request;\n+\n/**\n* @required\n*/\n- public function setAutowire(Config $config, Environment $twig, Packages $packages, Canonical $canonical): void\n+ public function setAutowire(Config $config, Environment $twig, Packages $packages, Canonical $canonical, Sanitiser $sanitiser, RequestStack $requestStack): void\n{\n$this->config = $config;\n$this->twig = $twig;\n$this->packages = $packages;\n$this->canonical = $canonical;\n+ $this->sanitiser = $sanitiser;\n+ $this->request = $requestStack->getCurrentRequest();\n}\n/**\n@@ -123,4 +135,34 @@ class TwigAwareController extends AbstractController\n$filesPackage = new PathPackage('/files/', new EmptyVersionStrategy());\n$this->packages->addPackage('files', $filesPackage);\n}\n+\n+ protected function createPager(Request $request, Query $query, string $contentType, int $pageSize, string $order)\n+ {\n+ $params = [\n+ 'status' => '!unknown',\n+ ];\n+\n+ if ($request->get('sortBy')) {\n+ $params['order'] = $this->getFromRequest('sortBy');\n+ } else {\n+ $params['order'] = $order;\n+ }\n+\n+ if ($request->get('filter')) {\n+ $params['anyField'] = '%' . $this->getFromRequest('filter') . '%';\n+ }\n+\n+ if ($request->get('taxonomy')) {\n+ $taxonomy = explode('=', $this->getFromRequest('taxonomy'));\n+ $params[$taxonomy[0]] = $taxonomy[1];\n+ }\n+\n+ return $query->getContentForTwig($contentType, $params)\n+ ->setMaxPerPage($pageSize);\n+ }\n+\n+ protected function getFromRequest(string $parameter): string\n+ {\n+ return trim($this->sanitiser->clean($this->request->get($parameter, '')));\n+ }\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/_base/layout.html.twig",
"new_path": "templates/_base/layout.html.twig",
"diff": "'general.greeting': 'general.greeting'|trans({'%name%': user_display_name}),\n'action.logout': 'action.logout'|trans,\n'action.edit_profile': 'action.edit_profile'|trans,\n- 'about.visit_bolt': 'about.visit_bolt'|trans\n+ 'about.visit_bolt': 'about.visit_bolt'|trans,\n+ 'listing.button_search': 'general.phrase.search'|trans,\n+ 'listing.placeholder_search': 'listing.placeholder_search'|trans,\n}|json_encode %}\n<admin-toolbar\n:menu=\"{{ admin_menu_json }}\"\n:labels=\"{{ labels }}\"\n:backend-prefix=\"{{ path('bolt_dashboard') }}\"\n+ filter-value=\"{{ filter_value|default('') }}\"\n></admin-toolbar>\n</nav>\n<!-- End Admin Toolbar -->\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/content/listing.html.twig",
"new_path": "templates/content/listing.html.twig",
"diff": "</p>\n</div>\n- {{ macro.button('listing.button_filter', 'filter', 'tertiary mb-0', {'type': 'submit'}) }}\n+ {{ macro.button('general.phrase.search', 'filter', 'tertiary mb-0', {'type': 'submit'}) }}\n{% if sortBy is not empty or filterValue is not empty %}\n{{ macro.buttonlink('listing.button_clear', path('bolt_content_overview', {'contentType': contentType.slug}), 'times', 'tertiary mb-0') }}\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/pages/dashboard.html.twig",
"new_path": "templates/pages/dashboard.html.twig",
"diff": "{% endblock shoulder %}\n{% block title %}\n+ {% if filter_value|default() %}\n+ {{ macro.icon('search') }}\n+ {{ 'title.filtered_by'|trans({'%filter%': filter_value})|raw }}\n+ {% else %}\n{{ macro.icon('tachometer-alt') }}\n{{ config.get('general/sitename') }}\n+ {% endif %}\n{% endblock title %}\n{# This 'topsection' gets output _before_ the main form, allowing `dump()`, without breaking Vue #}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Add Global search to backend
|
95,144 |
17.06.2020 10:14:12
| -7,200 |
5441f7243e2abac25a3e1088f4413fe99104ff2f
|
Cleanup, CS fixes
|
[
{
"change_type": "MODIFY",
"old_path": "assets/js/app/toolbar/Components/Toolbar.vue",
"new_path": "assets/js/app/toolbar/Components/Toolbar.vue",
"diff": "</div>\n</div>\n- <form :action=\"backendPrefix\" class=\"toolbar-item toolbar-item__filter input-group\">\n- <input type=\"text\" class=\"form-control\" :placeholder=\"labels['listing.placeholder_search']\" name=\"filter\" :value=\"filterValue\">\n+ <form\n+ :action=\"backendPrefix\"\n+ class=\"toolbar-item toolbar-item__filter input-group\"\n+ >\n+ <input\n+ type=\"text\"\n+ class=\"form-control\"\n+ :placeholder=\"labels['listing.placeholder_search']\"\n+ name=\"filter\"\n+ :value=\"filterValue\"\n+ />\n<div class=\"input-group-append\">\n<button class=\"btn btn-tertiary\" type=\"submit\">\n<i class=\"fas fa-search\"></i>{{ labels['listing.button_search'] }}\n</div>\n<div class=\"toolbar-item btn-group toolbar-item__new\">\n-\n<button\nclass=\"btn new-item__dropdown-toggler dropdown-toggle\"\ntype=\"button\"\n"
},
{
"change_type": "MODIFY",
"old_path": "assets/scss/modules/admin/_toolbar.scss",
"new_path": "assets/scss/modules/admin/_toolbar.scss",
"diff": "&__site {\ndisplay: none;\n-\n@include media-breakpoint-up(sm) {\ndisplay: block;\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/DashboardController.php",
"new_path": "src/Controller/Backend/DashboardController.php",
"diff": "@@ -5,11 +5,7 @@ declare(strict_types=1);\nnamespace Bolt\\Controller\\Backend;\nuse Bolt\\Controller\\TwigAwareController;\n-use Bolt\\Entity\\Content;\n-use Bolt\\Repository\\ContentRepository;\nuse Bolt\\Storage\\Query;\n-use Bolt\\Utils\\Html;\n-use Bolt\\Utils\\Sanitiser;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Security;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n@@ -23,14 +19,14 @@ class DashboardController extends TwigAwareController implements BackendZoneInte\n/**\n* @Route(\"/\", name=\"bolt_dashboard\", methods={\"GET\"})\n*/\n- public function index(Query $query, Request $request): Response\n+ public function index(Query $query): Response\n{\n$amount = (int) $this->config->get('general/records_per_page', 10);\n- $page = (int) $request->get('page', 1);\n+ $page = (int) $this->request->get('page', 1);\n$contentTypes = $this->config->get('contenttypes')->where('show_on_dashboard', true)->keys()->implode(',');\n$filter = $this->getFromRequest('filter');\n- $pager = $this->createPager($request, $query, $contentTypes, $amount, '-modifiedAt');\n+ $pager = $this->createPager($query, $contentTypes, $amount, '-modifiedAt');\n$nbPages = $pager->getNbPages();\nif ($page > $nbPages) {\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/ListingController.php",
"new_path": "src/Controller/Backend/ListingController.php",
"diff": "@@ -20,12 +20,12 @@ class ListingController extends TwigAwareController implements BackendZoneInterf\n/**\n* @Route(\"/content/{contentType}\", name=\"bolt_content_overview\")\n*/\n- public function overview(Request $request, Query $query, string $contentType = ''): Response\n+ public function overview(Query $query, string $contentType = ''): Response\n{\n$contentTypeObject = ContentType::factory($contentType, $this->config->get('contenttypes'));\n- $page = (int) $request->query->get('page', '1');\n+ $page = (int) $this->request->query->get('page', '1');\n- $pager = $this->createPager($request, $query, $contentType, $contentTypeObject->get('records_per_page'), $contentTypeObject->get('order'));\n+ $pager = $this->createPager($query, $contentType, $contentTypeObject->get('records_per_page'), $contentTypeObject->get('order'));\n$nbPages = $pager->getNbPages();\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/Frontend/DetailController.php",
"new_path": "src/Controller/Frontend/DetailController.php",
"diff": "@@ -10,7 +10,6 @@ use Bolt\\Entity\\Content;\nuse Bolt\\Enum\\Statuses;\nuse Bolt\\Repository\\ContentRepository;\nuse Bolt\\TemplateChooser;\n-use Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/Frontend/SearchController.php",
"new_path": "src/Controller/Frontend/SearchController.php",
"diff": "@@ -7,7 +7,6 @@ namespace Bolt\\Controller\\Frontend;\nuse Bolt\\Controller\\TwigAwareController;\nuse Bolt\\Repository\\ContentRepository;\nuse Bolt\\TemplateChooser;\n-use Bolt\\Utils\\Sanitiser;\nuse Pagerfanta\\Adapter\\ArrayAdapter;\nuse Pagerfanta\\Pagerfanta;\nuse Symfony\\Component\\HttpFoundation\\Request;\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/TwigAwareController.php",
"new_path": "src/Controller/TwigAwareController.php",
"diff": "@@ -136,7 +136,7 @@ class TwigAwareController extends AbstractController\n$this->packages->addPackage('files', $filesPackage);\n}\n- protected function createPager(Request $request, Query $query, string $contentType, int $pageSize, string $order)\n+ protected function createPager(Query $query, string $contentType, int $pageSize, string $order)\n{\n$params = [\n'status' => '!unknown',\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Cleanup, CS fixes
|
95,144 |
18.06.2020 13:50:20
| -7,200 |
4031de70fc9ffd0e33313f58c4bd5312ef049b1f
|
Adding tests for Global Search
|
[
{
"change_type": "MODIFY",
"old_path": "assets/js/app/toolbar/Components/Toolbar.vue",
"new_path": "assets/js/app/toolbar/Components/Toolbar.vue",
"diff": "class=\"form-control\"\n:placeholder=\"labels['listing.placeholder_search']\"\nname=\"filter\"\n+ id=\"global-search\"\n:value=\"filterValue\"\n/>\n<div class=\"input-group-append\">\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/content/listing.html.twig",
"new_path": "templates/content/listing.html.twig",
"diff": "#}\n<p>\n<strong>{{ 'listing.title_filterby'|trans }}</strong>:\n- <input class=\"form-control\" type=\"text\" name=\"filter\" value=\"{{ filterValue }}\"\n+ <input class=\"form-control\" type=\"text\" name=\"filter\" id=\"content-filter\" value=\"{{ filterValue }}\"\nplaceholder=\"{{ 'listing.placeholder_filter'|trans }}\"/>\n</p>\n</div>\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "tests/e2e/dashboard_globalsearch.feature",
"diff": "+Feature: Global Search on Dashboard\n+\n+ @javascript\n+ @foo\n+ Scenario: As an Admin I want to filter content\n+ Given I am logged in as \"admin\"\n+ And I am on \"/bolt\"\n+\n+ Then I should see \"Bolt Dashboard\"\n+\n+ When I fill \"#global-search\" element with \"a\"\n+ And I press \"Search\"\n+\n+ Then I should be on \"/bolt/?filter=a\"\n+ Then I should see 8 \".listing--container\" elements\n+ And I should see \"All content, filtered by 'a'\"\n+\n+ Then I wait 1 seconds\n+\n+ When I fill \"#global-search\" element with \"Entries\"\n+ And I press \"Search\"\n+ Then I should be on \"/bolt/?filter=Entries\"\n+ Then I should see 1 \".listing--container\" elements\n+ And I should see \"Entries\" in the \".listing--container\" element\n+\n+ Then I wait 1 seconds\n+\n+ When I fill \"#global-search\" element with \"\"\n+ And I press \"Search\"\n+ Then I should be on \"/bolt/\"\n+ And I should see 8 \".listing--container\" elements\n"
},
{
"change_type": "MODIFY",
"old_path": "tests/e2e/record_listing.feature",
"new_path": "tests/e2e/record_listing.feature",
"diff": "@@ -31,20 +31,23 @@ Feature: Record listing\nThen I should see \"Contentlisting\"\n- When I fill \"filter\" element with \"a\"\n+ When I fill \"#content-filter\" element with \"a\"\nAnd I press \"Filter\"\nThen I should be on \"/bolt/content/entries?sortBy=&filter=a\"\nThen I should see 10 \".listing--container\" elements\n- When I fill \"filter\" element with \"Entries\"\n- And I press \"Filter\"\n+ Then I wait 1 seconds\n+ When I fill \"#content-filter\" element with \"Entries\"\n+ And I press \"Filter\"\nThen I should be on \"/bolt/content/entries?sortBy=&filter=Entries\"\nThen I should see 1 \".listing--container\" elements\nAnd I should see \"Entries\" in the \".listing--container\" element\n- When I fill \"filter\" element with \"\"\n+ Then I wait 1 seconds\n+\n+ When I fill \"#content-filter\" element with \"\"\nAnd I press \"Filter\"\nThen I should be on \"/bolt/content/entries?sortBy=&filter=\"\nAnd I should see 10 \".listing--container\" elements\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Adding tests for Global Search
|
95,144 |
18.06.2020 13:55:46
| -7,200 |
6514e93b3be6cb5293c33fdb37dfa900c73fe289
|
Prepare release 4.0.0-RC.25
|
[
{
"change_type": "MODIFY",
"old_path": "package-lock.json",
"new_path": "package-lock.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.24\",\n+ \"version\": \"4.0.0-rc.25\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n}\n},\n\"caniuse-lite\": {\n- \"version\": \"1.0.30001081\",\n- \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001081.tgz\",\n- \"integrity\": \"sha512-iZdh3lu09jsUtLE6Bp8NAbJskco4Y3UDtkR3GTCJGsbMowBU5IWDFF79sV2ws7lSqTzWyKazxam2thasHymENQ==\"\n+ \"version\": \"1.0.30001084\",\n+ \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001084.tgz\",\n+ \"integrity\": \"sha512-ftdc5oGmhEbLUuMZ/Qp3mOpzfZLCxPYKcvGv6v2dJJ+8EdqcvZRbAGOiLmkM/PV1QGta/uwBs8/nCl6sokDW6w==\"\n},\n\"capture-exit\": {\n\"version\": \"2.0.0\",\n}\n},\n\"eslint-plugin-prettier\": {\n- \"version\": \"3.1.3\",\n- \"resolved\": \"https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.3.tgz\",\n- \"integrity\": \"sha512-+HG5jmu/dN3ZV3T6eCD7a4BlAySdN7mLIbJYo0z1cFQuI+r2DiTJEFeF68ots93PsnrMxbzIZ2S/ieX+mkrBeQ==\",\n+ \"version\": \"3.1.4\",\n+ \"resolved\": \"https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.4.tgz\",\n+ \"integrity\": \"sha512-jZDa8z76klRqo+TdGDTFJSavwbnWK2ZpqGKNZ+VvweMW516pDUMmQ2koXvxEE4JhzNvTv+radye/bWGBmA6jmg==\",\n\"dev\": true,\n\"requires\": {\n\"prettier-linter-helpers\": \"^1.0.0\"\n}\n},\n\"stylelint-scss\": {\n- \"version\": \"3.17.2\",\n- \"resolved\": \"https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-3.17.2.tgz\",\n- \"integrity\": \"sha512-e0dmxqsofy/HZj4urcGSJw4S6yHDJxiQdT20/1ciCsd5lomisa7YM4+Qtt1EG4hsqEG1dbEeF855tec1UyqcSA==\",\n+ \"version\": \"3.18.0\",\n+ \"resolved\": \"https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-3.18.0.tgz\",\n+ \"integrity\": \"sha512-LD7+hv/6/ApNGt7+nR/50ft7cezKP2HM5rI8avIdGaUWre3xlHfV4jKO/DRZhscfuN+Ewy9FMhcTq0CcS0C/SA==\",\n\"requires\": {\n\"lodash\": \"^4.17.15\",\n\"postcss-media-query-parser\": \"^0.2.3\",\n}\n},\n\"terser\": {\n- \"version\": \"4.7.0\",\n- \"resolved\": \"https://registry.npmjs.org/terser/-/terser-4.7.0.tgz\",\n- \"integrity\": \"sha512-Lfb0RiZcjRDXCC3OSHJpEkxJ9Qeqs6mp2v4jf2MHfy8vGERmVDuvjXdd/EnP5Deme5F2yBRBymKmKHCBg2echw==\",\n+ \"version\": \"4.8.0\",\n+ \"resolved\": \"https://registry.npmjs.org/terser/-/terser-4.8.0.tgz\",\n+ \"integrity\": \"sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==\",\n\"requires\": {\n\"commander\": \"^2.20.0\",\n\"source-map\": \"~0.6.1\",\n\"integrity\": \"sha512-s7jmZPlm9FeueJg1RwJtnE9KNPtME/7C8uRWSfp9/yEN4M8XcS/d+bddoyVwVnvFyRh9msFo0HWeW0vTL8Qv+w==\"\n},\n\"vue-router\": {\n- \"version\": \"3.3.2\",\n- \"resolved\": \"https://registry.npmjs.org/vue-router/-/vue-router-3.3.2.tgz\",\n- \"integrity\": \"sha512-5sEbcfb7MW8mY8lbUVbF4kgcipGXsagkM/X+pb6n0MhjP+RorWIUTPAPSqgPaiPOxVCXgAItBl8Vwz8vq78faA==\",\n+ \"version\": \"3.3.4\",\n+ \"resolved\": \"https://registry.npmjs.org/vue-router/-/vue-router-3.3.4.tgz\",\n+ \"integrity\": \"sha512-SdKRBeoXUjaZ9R/8AyxsdTqkOfMcI5tWxPZOUX5Ie1BTL5rPSZ0O++pbiZCeYeythiZIdLEfkDiQPKIaWk5hDg==\",\n\"dev\": true\n},\n\"vue-simplemde\": {\n"
},
{
"change_type": "MODIFY",
"old_path": "package.json",
"new_path": "package.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.24\",\n+ \"version\": \"4.0.0-rc.25\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n\"bootbox\": \"^5.4.0\",\n\"bootstrap\": \"^4.5.0\",\n\"browserslist\": \"^4.12.0\",\n- \"caniuse-lite\": \"^1.0.30001081\",\n+ \"caniuse-lite\": \"^1.0.30001084\",\n\"codemirror\": \"^5.54.0\",\n\"dropzone\": \"^5.7.1\",\n\"flagpack\": \"^1.0.5\",\n\"selectize\": \"^0.12.6\",\n\"simplemde\": \"^1.11.2\",\n\"stylelint-config-recommended-scss\": \"^4.2.0\",\n- \"stylelint-scss\": \"^3.17.2\",\n- \"terser\": \"^4.7\",\n+ \"stylelint-scss\": \"^3.18.0\",\n+ \"terser\": \"^4.8.0\",\n\"tinycolor2\": \"^1.4.1\",\n\"vue\": \"^2.6.11\",\n\"vue-flatpickr-component\": \"^8.1.5\",\n\"babel-jest\": \"^25.5.1\",\n\"eslint\": \"^6.8.0\",\n\"eslint-config-prettier\": \"^6.11.0\",\n- \"eslint-plugin-prettier\": \"^3.1.3\",\n+ \"eslint-plugin-prettier\": \"^3.1.4\",\n\"eslint-plugin-standard\": \"^4.0.1\",\n\"eslint-plugin-vue\": \"^6.2.2\",\n\"jest\": \"^25.5.4\",\n\"stylelint-config-standard\": \"^19.0.0\",\n\"vue-jest\": \"^3.0.5\",\n\"vue-loader\": \"^15.9.2\",\n- \"vue-router\": \"^3.3.2\",\n+ \"vue-router\": \"^3.3.4\",\n\"vue-template-compiler\": \"^2.6.11\",\n\"webpackbar\": \"^4.0.0\",\n\"workbox-webpack-plugin\": \"^4.3.1\"\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Prepare release 4.0.0-RC.25
|
95,144 |
19.06.2020 14:26:21
| -7,200 |
dedfa43071b8b3b31c7578c79e46b9d88b545f96
|
Sort Bundles.php alphabetically
|
[
{
"change_type": "MODIFY",
"old_path": "config/bundles.php",
"new_path": "config/bundles.php",
"diff": "return [\nApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle::class => ['all' => true],\n+ BabDev\\PagerfantaBundle\\BabDevPagerfantaBundle::class => ['all' => true],\nDAMA\\DoctrineTestBundle\\DAMADoctrineTestBundle::class => ['test' => true],\nDoctrine\\Bundle\\DoctrineBundle\\DoctrineBundle::class => ['all' => true],\nDoctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true, 'local' => true],\n@@ -20,9 +21,8 @@ return [\nSymfony\\Bundle\\WebProfilerBundle\\WebProfilerBundle::class => ['dev' => true, 'local' => true],\nSymfony\\Bundle\\WebServerBundle\\WebServerBundle::class => ['dev' => true, 'test' => true, 'local' => true],\nSymfony\\WebpackEncoreBundle\\WebpackEncoreBundle::class => ['all' => true],\n+ Symplify\\ConsoleColorDiff\\ConsoleColorDiffBundle::class => ['dev' => true, 'test' => true],\nSymplify\\ParameterNameGuard\\ParameterNameGuardBundle::class => ['dev' => true, 'test' => true],\nTranslation\\Bundle\\TranslationBundle::class => ['all' => true],\nTranslation\\PlatformAdapter\\Loco\\Bridge\\Symfony\\TranslationAdapterLocoBundle::class => ['dev' => true, 'local' => true],\n- Symplify\\ConsoleColorDiff\\ConsoleColorDiffBundle::class => ['dev' => true, 'test' => true],\n- BabDev\\PagerfantaBundle\\BabDevPagerfantaBundle::class => ['all' => true],\n];\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Sort Bundles.php alphabetically
|
95,144 |
21.06.2020 11:57:08
| -7,200 |
8e20049e1765fde0fab2202b43603a47415672ae
|
Don't "warm up" cache on `composer update`, to save time.
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"php bin/console bolt:info\"\n],\n\"auto-scripts\": {\n- \"cache:clear\": \"symfony-cmd\",\n+ \"cache:clear --no-warmup\": \"symfony-cmd\",\n\"assets:install --symlink --relative %PUBLIC_DIR%\": \"symfony-cmd\"\n},\n\"periodical-tasks\": [\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Don't "warm up" cache on `composer update`, to save time.
|
95,144 |
21.06.2020 12:41:26
| -7,200 |
71503206f64c176964e132459ac6440b3b35ae3a
|
Ensure $boltConfig is set for Controllers in extensions
|
[
{
"change_type": "MODIFY",
"old_path": "src/Extension/ExtensionController.php",
"new_path": "src/Extension/ExtensionController.php",
"diff": "@@ -4,10 +4,16 @@ declare(strict_types=1);\nnamespace Bolt\\Extension;\n+use Bolt\\Configuration\\Config;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController;\nclass ExtensionController extends AbstractController\n{\n+ public function __construct(Config $config)\n+ {\n+ $this->boltConfig = $config;\n+ }\n+\nuse ServicesTrait;\nuse ConfigTrait;\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Extension/ServicesTrait.php",
"new_path": "src/Extension/ServicesTrait.php",
"diff": "@@ -29,6 +29,9 @@ trait ServicesTrait\n/** @var Query */\nprotected $query;\n+ /** @var Config */\n+ protected $boltConfig;\n+\n/**\n* Injects commonly used objects into the extension, for use by the\n* extension. Called from the listener.\n@@ -103,7 +106,11 @@ trait ServicesTrait\npublic function getBoltConfig(): Config\n{\n- return $this->getService(\\Bolt\\Configuration\\Config::class);\n+ if (! $this->boltConfig instanceof Config) {\n+ $this->boltConfig = $this->getService(\\Bolt\\Configuration\\Config::class);\n+ }\n+\n+ return $this->boltConfig;\n}\npublic function getTwig(): Environment\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Ensure $boltConfig is set for Controllers in extensions
|
95,144 |
21.06.2020 13:17:30
| -7,200 |
6f6bca6196923bfa8103ccdedf4d12e175661398
|
Ensure inputs are strings
|
[
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/ProfileController.php",
"new_path": "src/Controller/Backend/ProfileController.php",
"diff": "@@ -66,11 +66,11 @@ class ProfileController extends TwigAwareController implements BackendZoneInterf\n$displayName = $user->getDisplayName();\n$locale = Json::findScalar($this->getFromRequest('locale'));\n- $user->setDisplayName($this->getFromRequest('displayName'));\n- $user->setEmail($this->getFromRequest('email'));\n+ $user->setDisplayName((string) $this->getFromRequest('displayName'));\n+ $user->setEmail((string) $this->getFromRequest('email'));\n$user->setLocale($locale);\n- $user->setbackendTheme($this->getFromRequest('backendTheme'));\n- $newPassword = $this->getFromRequest('password');\n+ $user->setbackendTheme((string) $this->getFromRequest('backendTheme'));\n+ $newPassword = (string) $this->getFromRequest('password');\n// Set the plain password to check for validation\nif (! empty($newPassword)) {\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Ensure inputs are strings
|
95,134 |
23.06.2020 10:24:43
| -3,600 |
50708befb2298c4d7ad043147ca58687ce9b0193
|
fixes issue searching selectfields with multiple entries.
|
[
{
"change_type": "MODIFY",
"old_path": "src/Storage/SelectQuery.php",
"new_path": "src/Storage/SelectQuery.php",
"diff": "@@ -118,7 +118,8 @@ class SelectQuery implements QueryInterface\n*/\npublic function setParameters(array $params): void\n{\n- $this->params = array_filter($params);\n+ // array_map('strtolower', $params) to change all params to lowercase.\n+ $this->params = array_filter(array_map('strtolower', $params));\n$this->processFilters();\n}\n@@ -340,8 +341,8 @@ class SelectQuery implements QueryInterface\n$keyParam = 'field_' . $index;\n$originalLeftExpression = 'content.' . $key;\n-\n- $newLeftExpression = JsonHelper::wrapJsonFunction($translationsAlias . '.value', null, $em->getConnection());\n+// LOWER() added to query to enable case insensitive search of JSON values. Used in conjunction with converting $params of setParameter() to lowercase.\n+ $newLeftExpression = JsonHelper::wrapJsonFunction('LOWER('.$translationsAlias . '.value)', null, $em->getConnection());\n$where = $filter->getExpression();\n$where = str_replace($originalLeftExpression, $newLeftExpression, $where);\n@@ -353,7 +354,10 @@ class SelectQuery implements QueryInterface\n->from(\\Bolt\\Entity\\Content::class, $contentAlias)\n->innerJoin($contentAlias . '.fields', $fieldsAlias)\n->innerJoin($fieldsAlias . '.translations', $translationsAlias)\n- ->andWhere($where);\n+ ->andWhere($where)\n+ // add JSON_CONTAIN to allow searching of fields with Muiltiple JSON values (eg. Selectfield with mutiple entries)\n+ ->orWhere(\"JSON_CONTAINS(LOWER(\".$translationsAlias . \".value), :\".$key.\"_1_JSON, '$') = 1\");\n+\n// Unless the field to which the 'where' applies is `anyColumn`, we\n// Make certain it's narrowed down to that fieldname\n@@ -368,6 +372,8 @@ class SelectQuery implements QueryInterface\nforeach ($filter->getParameters() as $key => $value) {\n$value = JsonHelper::wrapJsonFunction(null, $value, $em->getConnection());\n$this->qb->setParameter($key, $value);\n+ //remove % if present and encode to JSON\n+ $this->qb->setParameter($key.'_JSON', Json_encode(str_replace('%', '', $value)));\n}\n}\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
fixes issue #1268 searching selectfields with multiple entries.
|
95,144 |
23.06.2020 13:16:23
| -7,200 |
432c9b5427fa3ee6fd23aec43a0ce809079541b0
|
Put Bundles in alphabetical order
|
[
{
"change_type": "MODIFY",
"old_path": "config/bundles.php",
"new_path": "config/bundles.php",
"diff": "@@ -7,6 +7,7 @@ return [\nDoctrine\\Bundle\\DoctrineBundle\\DoctrineBundle::class => ['all' => true],\nDoctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true, 'local' => true],\nDoctrine\\Bundle\\MigrationsBundle\\DoctrineMigrationsBundle::class => ['all' => true],\n+ FriendsOfBehat\\SymfonyExtension\\Bundle\\FriendsOfBehatSymfonyExtensionBundle::class => ['test' => true],\nHttp\\HttplugBundle\\HttplugBundle::class => ['dev' => true, 'local' => true],\nKnp\\Bundle\\MenuBundle\\KnpMenuBundle::class => ['all' => true],\nKnp\\DoctrineBehaviors\\DoctrineBehaviorsBundle::class => ['all' => true],\n@@ -22,8 +23,7 @@ return [\nSymfony\\Bundle\\WebServerBundle\\WebServerBundle::class => ['dev' => true, 'test' => true, 'local' => true],\nSymfony\\WebpackEncoreBundle\\WebpackEncoreBundle::class => ['all' => true],\nSymplify\\ConsoleColorDiff\\ConsoleColorDiffBundle::class => ['dev' => true, 'test' => true],\n+ Symplify\\ConsoleColorDiff\\ConsoleColorDiffBundle::class => ['dev' => true, 'test' => true],\nTranslation\\Bundle\\TranslationBundle::class => ['all' => true],\nTranslation\\PlatformAdapter\\Loco\\Bridge\\Symfony\\TranslationAdapterLocoBundle::class => ['dev' => true, 'local' => true],\n- Symplify\\ConsoleColorDiff\\ConsoleColorDiffBundle::class => ['dev' => true, 'test' => true],\n- FriendsOfBehat\\SymfonyExtension\\Bundle\\FriendsOfBehatSymfonyExtensionBundle::class => ['test' => true],\n];\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Put Bundles in alphabetical order
|
95,144 |
23.06.2020 15:29:13
| -7,200 |
67fdc9e9a7e2e1970006363f0ac73a6360ebe9d6
|
Ensure `$this->fields` is initialised (For Fields that haven't been accessed before)
|
[
{
"change_type": "MODIFY",
"old_path": "src/Entity/ListFieldTrait.php",
"new_path": "src/Entity/ListFieldTrait.php",
"diff": "@@ -42,6 +42,9 @@ trait ListFieldTrait\npublic function rewind(): void\n{\n+ // Ensure $this->fields is initialised\n+ $this->fields = $this->getValue();\n+\n$this->iteratorCursor = 0;\n}\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Ensure `$this->fields` is initialised (For Fields that haven't been accessed before)
|
95,144 |
23.06.2020 17:11:18
| -7,200 |
bbf1c62ded108da3a9acd22e2a30cc1b78cdd731
|
Rollback to previous iteration
|
[
{
"change_type": "MODIFY",
"old_path": "src/Storage/SelectQuery.php",
"new_path": "src/Storage/SelectQuery.php",
"diff": "@@ -338,12 +338,10 @@ class SelectQuery implements QueryInterface\n$contentAlias = 'content_' . $index;\n$fieldsAlias = 'fields_' . $index;\n$translationsAlias = 'translations_' . $index;\n- //added to incude taxonomies to be searched as part of contenttype filter\n- $taxonomyAlias = 'taxonomy_' . $index;\n$keyParam = 'field_' . $index;\n$originalLeftExpression = 'content.' . $key;\n-\n+ // LOWER() added to query to enable case insensitive search of JSON values. Used in conjunction with converting $params of setParameter() to lowercase.\n$newLeftExpression = JsonHelper::wrapJsonFunction('LOWER(' . $translationsAlias . '.value)', null, $em->getConnection());\n$where = $filter->getExpression();\n@@ -358,12 +356,7 @@ class SelectQuery implements QueryInterface\n->innerJoin($fieldsAlias . '.translations', $translationsAlias)\n->andWhere($where)\n// add JSON_CONTAIN to allow searching of fields with Muiltiple JSON values (eg. Selectfield with mutiple entries)\n- ->orWhere('JSON_CONTAINS(LOWER(' . $translationsAlias . '.value), :' . $key . \"_1_JSON, '$') = 1\")\n-\n- //added to incude taxonomies to be searched as part of contenttype filter\n-\n- ->innerJoin($contentAlias . '.taxonomies', $taxonomyAlias)\n- ->orWhere($this->qb->expr()->like($taxonomyAlias . '.slug', ':' . $key . '_1'));\n+ ->orWhere('JSON_CONTAINS(LOWER(' . $translationsAlias . '.value), :' . $key . \"_1_JSON, '$') = 1\");\n// Unless the field to which the 'where' applies is `anyColumn`, we\n// Make certain it's narrowed down to that fieldname\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Rollback to previous iteration
|
95,144 |
24.06.2020 07:17:04
| -7,200 |
202bd79edb8aea27133b05f05b286ec7148cae37
|
After adding `symfony/proxy-manager-bridge`, table prefix went missing
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"doctrine/doctrine-migrations-bundle\": \"^2.1\",\n\"friends-of-behat/mink\": \"^1.8\",\n\"friends-of-behat/mink-browserkit-driver\": \"^1.4\",\n- \"friends-of-behat/symfony-extension\": \"^2.1\",\n\"lakion/mink-debug-extension\": \"^1.2\",\n\"php-http/httplug-pack\": \"^1.2\",\n\"php-translation/loco-adapter\": \"^0.11\",\n\"se/selenium-server-standalone\": \"^3.141\",\n\"symfony/browser-kit\": \"^4.4\",\n\"symfony/css-selector\": \"^4.4\",\n+ \"symfony/proxy-manager-bridge\": \"^4.4\",\n\"symplify/easy-coding-standard\": \"^8.0\",\n\"vaimo/binary-chromedriver\": \"^5.0\"\n},\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Doctrine/TablePrefix.php",
"new_path": "src/Doctrine/TablePrefix.php",
"diff": "@@ -19,7 +19,7 @@ class TablePrefix\npublic function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs): void\n{\n- if ($tablePrefix = $this->getTablePrefix($eventArgs->getEntityManager())) {\n+ if ($tablePrefix = $this->getTablePrefix()) {\n$classMetadata = $eventArgs->getClassMetadata();\nif (! $classMetadata->isInheritanceTypeSingleTable()\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Doctrine/TablePrefixTrait.php",
"new_path": "src/Doctrine/TablePrefixTrait.php",
"diff": "@@ -46,10 +46,14 @@ trait TablePrefixTrait\nreturn $this;\n}\n- protected function getTablePrefix(ObjectManager $manager)\n+ /**\n+ * Since we introduced `symfony/proxy-manager-bridge`, the keys in the tableprefix\n+ * no longer match what the manager tells us it should be. For example, the\n+ * given key was `0000000005ee10ad0000000043b453e3`, but in our reference\n+ * table we had `0000000005ee10e90000000043b453e3`. We just return the first one, now\n+ */\n+ protected function getTablePrefix(): string\n{\n- $key = spl_object_hash($manager);\n-\n- return $this->tablePrefixes[$key] ?? '';\n+ return current($this->tablePrefixes) ?? '';\n}\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
After adding `symfony/proxy-manager-bridge`, table prefix went missing
|
95,144 |
24.06.2020 13:49:51
| -7,200 |
74119306cea32d3ef819e2c42b2039cd4050daf4
|
Test updates for SF 5
|
[
{
"change_type": "MODIFY",
"old_path": "config/bolt/config.yaml",
"new_path": "config/bolt/config.yaml",
"diff": "@@ -137,12 +137,12 @@ thumbnails:\n# user that PHP (and/or your webserver) is running as, and the user who owns the\n# actual folders/files.\n#\n-# - If they are the same user, use `0755` for folders and `0644` for files.\n-# - If they're in the same group, use use `0775` for folders and `0664` for files.\n-# - If you don't know, or you can't make it work otherwise, then use `0777` for folders and `0666` for files.\n+# - If they are the same user, use `0o755` for folders and `0o644` for files.\n+# - If they're in the same group, use use `0o775` for folders and `0o664` for files.\n+# - If you don't know, or you can't make it work otherwise, then use `0o777` for folders and `0o666` for files.\nfilepermissions:\n- folders: 0775\n- files: 0664\n+ folders: 0o775\n+ files: 0o664\n# Define the HTML tags and attributes that are allowed in cleaned HTML. This\n# is used for sanitizing HTML, to make sure there are no undesirable elements\n"
},
{
"change_type": "MODIFY",
"old_path": "phpunit.bootstrap.php",
"new_path": "phpunit.bootstrap.php",
"diff": "@@ -14,5 +14,6 @@ $application->setCatchExceptions(false);\n$application->run(new \\Symfony\\Component\\Console\\Input\\StringInput('doctrine:database:drop --force --quiet'));\n$application->run(new \\Symfony\\Component\\Console\\Input\\StringInput('doctrine:database:create --quiet'));\n$application->run(new \\Symfony\\Component\\Console\\Input\\StringInput('doctrine:schema:create --quiet'));\n+$application->run(new \\Symfony\\Component\\Console\\Input\\StringInput('doctrine:fixtures:load --no-interaction --group=without-images'));\n$kernel->shutdown();\n"
},
{
"change_type": "MODIFY",
"old_path": "phpunit.xml.dist",
"new_path": "phpunit.xml.dist",
"diff": "</testsuite>\n</testsuites>\n- <listeners>\n- <!-- it begins a database transaction before every testcase and rolls it back after\n- the test finished, so tests can manipulate the database without affecting other tests -->\n- <listener class=\"\\DAMA\\DoctrineTestBundle\\PHPUnit\\PHPUnitListener\" />\n- </listeners>\n+ <extensions>\n+ <extension class=\"DAMA\\DoctrineTestBundle\\PHPUnit\\PHPUnitExtension\" />\n+ </extensions>\n+\n</phpunit>\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Canonical.php",
"new_path": "src/Canonical.php",
"diff": "@@ -42,7 +42,7 @@ class Canonical\n{\n$this->config = $config;\n$this->urlGenerator = $urlGenerator;\n- $this->request = $requestStack->getCurrentRequest();\n+ $this->request = $requestStack->getCurrentRequest() ?? Request::createFromGlobals();\n$this->defaultLocale = $defaultLocale;\n$this->init();\n@@ -51,7 +51,7 @@ class Canonical\npublic function init(): void\n{\n// Ensure in request cycle (even for override).\n- if ($this->request === null) {\n+ if ($this->request === null || $this->request->getHost() === '') {\nreturn;\n}\n@@ -182,7 +182,7 @@ class Canonical\n$params,\n$canonical ? UrlGeneratorInterface::ABSOLUTE_URL : UrlGeneratorInterface::ABSOLUTE_PATH\n);\n- } catch (InvalidParameterException | MissingMandatoryParametersException | RouteNotFoundException $e) {\n+ } catch (InvalidParameterException | MissingMandatoryParametersException | RouteNotFoundException | \\TypeError $e) {\n// Just use the current URL /shrug\nreturn$this->request->getUri();\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Twig/ContentExtension.php",
"new_path": "src/Twig/ContentExtension.php",
"diff": "@@ -92,7 +92,7 @@ class ContentExtension extends AbstractExtension\n$this->contentRepository = $contentRepository;\n$this->csrfTokenManager = $csrfTokenManager;\n$this->security = $security;\n- $this->request = $requestStack->getCurrentRequest();\n+ $this->request = $requestStack->getCurrentRequest() ?? Request::createFromGlobals();\n$this->config = $config;\n$this->query = $query;\n$this->taxonomyRepository = $taxonomyRepository;\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Utils/ContentHelper.php",
"new_path": "src/Utils/ContentHelper.php",
"diff": "@@ -8,6 +8,7 @@ use Bolt\\Canonical;\nuse Bolt\\Configuration\\Config;\nuse Bolt\\Entity\\Content;\nuse Bolt\\Entity\\Field\\Excerptable;\n+use Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nclass ContentHelper\n@@ -15,7 +16,7 @@ class ContentHelper\n/** @var Canonical */\nprivate $canonical;\n- /** @var \\Symfony\\Component\\HttpFoundation\\Request|null */\n+ /** @var Request */\nprivate $request;\n/** @var Config */\n@@ -24,7 +25,7 @@ class ContentHelper\npublic function __construct(Canonical $canonical, RequestStack $requestStack, Config $config)\n{\n$this->canonical = $canonical;\n- $this->request = $requestStack->getCurrentRequest();\n+ $this->request = $requestStack->getCurrentRequest() ?? Request::createFromGlobals();\n$this->config = $config;\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "tests/php/Repository/TaxonomyRepositoryTest.php",
"new_path": "tests/php/Repository/TaxonomyRepositoryTest.php",
"diff": "@@ -8,18 +8,10 @@ use Bolt\\Entity\\Taxonomy;\nuse Bolt\\Tests\\DbAwareTestCase;\n/**\n- * @todo Add represenative tests here, when methods are implemented in TaxonomyRepository\n+ * @todo Add representative tests here, when methods are implemented in TaxonomyRepository\n*/\nclass TaxonomyRepositoryTest extends DbAwareTestCase\n{\n- protected function setUp(): void\n- {\n- parent::setUp();\n-\n- // fixtures loading takes a lot of time, it would be better to load database dump for tests\n- self::runCommand('doctrine:fixtures:load --no-interaction --group=without-images');\n- }\n-\npublic function testSearchByType(): void\n{\n$taxonomies = $this->getEm()\n"
},
{
"change_type": "MODIFY",
"old_path": "tests/php/Repository/UserRepositoryTest.php",
"new_path": "tests/php/Repository/UserRepositoryTest.php",
"diff": "@@ -9,14 +9,6 @@ use Bolt\\Tests\\DbAwareTestCase;\nclass UserRepositoryTest extends DbAwareTestCase\n{\n- protected function setUp(): void\n- {\n- parent::setUp();\n-\n- // fixtures loading takes a lot of time, it would be better to load database dump for tests\n- self::runCommand('doctrine:fixtures:load --no-interaction --group=without-images');\n- }\n-\npublic function testFindOneByUsername(): void\n{\n$admin = $this->getEm()->getRepository(User::class)->findOneByUsername('admin');\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Test updates for SF 5
|
95,144 |
24.06.2020 16:43:26
| -7,200 |
36ae0f4b151c53a3b64139a03c62b5642f7e5fbc
|
Allow "Homepage" to be in viewless ContentType
|
[
{
"change_type": "MODIFY",
"old_path": "config/bolt/contenttypes.yaml",
"new_path": "config/bolt/contenttypes.yaml",
"diff": "@@ -38,7 +38,7 @@ homepage:\ntype: slug\nuses: title\ngroup: meta\n- viewless: false\n+ viewless: true\ntaxonomy: [ categories, tags, foobars ]\nlocales: ['en', 'nl', 'ja', 'nb']\nsingleton: true\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Configuration/Config.php",
"new_path": "src/Configuration/Config.php",
"diff": "@@ -142,7 +142,7 @@ class Config\n* For example:\n* $var = $config->get('general/wysiwyg/ck/contentsCss');\n*\n- * @param string|array|bool|int $default\n+ * @param string|array|bool|int|Collection $default\n*/\npublic function get(string $path, $default = null)\n{\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/Frontend/HomepageController.php",
"new_path": "src/Controller/Frontend/HomepageController.php",
"diff": "@@ -32,7 +32,7 @@ class HomepageController extends TwigAwareController implements FrontendZoneInte\n* name=\"homepage_locale\",\n* requirements={\"_locale\": \"%app_locales%\"})\n*/\n- public function homepage(ContentRepository $contentRepository, bool $requirePublished = true): Response\n+ public function homepage(ContentRepository $contentRepository): Response\n{\n$homepage = $this->config->get('theme/homepage') ?: $this->config->get('general/homepage');\n$params = explode('/', $homepage);\n@@ -62,6 +62,6 @@ class HomepageController extends TwigAwareController implements FrontendZoneInte\n$templates = $this->templateChooser->forHomepage();\n- return $this->detailController->renderSingle($record, $requirePublished, $templates);\n+ return $this->detailController->renderSingle($record, false, $templates);\n}\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Allow "Homepage" to be in viewless ContentType
|
95,144 |
24.06.2020 17:33:40
| -7,200 |
711bc3c52c92aa4c52131b052b5edddcac164f1d
|
Update src/Command/SetupCommand.php
|
[
{
"change_type": "MODIFY",
"old_path": "src/Command/SetupCommand.php",
"new_path": "src/Command/SetupCommand.php",
"diff": "@@ -64,7 +64,7 @@ class SetupCommand extends Command\n$command = $this->getApplication()->find('bolt:add-user');\n$commandInput = new ArrayInput(['--admin' => true]);\n$exitCode = $command->run($commandInput, $output);\n- $this->processExitCode($exitCode, 'An error occurred when creating the new bolt user.');\n+ $this->processExitCode($exitCode, 'An error occurred when creating the new Bolt user.');\n// Unless either `--no-fixtures` or `--fixtures` was set, we prompt the user for it.\nif (! $input->getOption('no-fixtures')) {\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Update src/Command/SetupCommand.php
|
95,144 |
28.06.2020 11:52:14
| -7,200 |
a6d73bbecc8a6ff29b6c8932df5d704139d238ca
|
Singletons return single Content result with `{% setcontent %}`
|
[
{
"change_type": "MODIFY",
"old_path": "src/Storage/Handler/LatestQueryHandler.php",
"new_path": "src/Storage/Handler/LatestQueryHandler.php",
"diff": "@@ -5,6 +5,7 @@ declare(strict_types=1);\nnamespace Bolt\\Storage\\Handler;\nuse Bolt\\Storage\\ContentQueryParser;\n+use Bolt\\Storage\\SelectQuery;\nuse Pagerfanta\\Pagerfanta;\n/**\n@@ -18,6 +19,11 @@ class LatestQueryHandler\n{\n$contentQuery->setDirective('order', '-id');\n+ // If we're using `/latest`, always return a paginator, even for Singletons\n+ /** @var SelectQuery */\n+ $selectQuery = $contentQuery->getService('select');\n+ $selectQuery->setSingleFetchMode(false);\n+\nreturn $contentQuery->getHandler('select')($contentQuery);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Storage/Handler/SelectQueryHandler.php",
"new_path": "src/Storage/Handler/SelectQueryHandler.php",
"diff": "@@ -27,7 +27,6 @@ class SelectQueryHandler\n/** @var SelectQuery $selectQuery */\n$selectQuery = $contentQuery->getService('select');\n- $selectQuery->setSingleFetchMode(false);\n$selectQuery->setQueryBuilder($qb);\n$selectQuery->setContentTypeFilter($contentQuery->getContentTypes());\n@@ -46,7 +45,7 @@ class SelectQueryHandler\n$contentQuery->runDirectives($selectQuery);\n- if ($selectQuery->getSingleFetchMode()) {\n+ if ($selectQuery->shouldReturnSingle()) {\nreturn $qb\n->setMaxResults(1)\n->getQuery()\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Storage/SelectQuery.php",
"new_path": "src/Storage/SelectQuery.php",
"diff": "@@ -5,6 +5,7 @@ declare(strict_types=1);\nnamespace Bolt\\Storage;\nuse Bolt\\Configuration\\Config;\n+use Bolt\\Configuration\\Content\\ContentType;\nuse Bolt\\Doctrine\\JsonHelper;\nuse Doctrine\\ORM\\Query\\Expr\\Base;\nuse Doctrine\\ORM\\Query\\ParameterTypeInferer;\n@@ -42,7 +43,7 @@ class SelectQuery implements QueryInterface\nprotected $replacements = [];\n/** @var bool */\n- protected $singleFetchMode = false;\n+ protected $singleFetchMode = null;\n/** @var int */\nprotected $index = 1;\n@@ -113,6 +114,29 @@ class SelectQuery implements QueryInterface\nreturn $this->contentType;\n}\n+ public function isSingleton(): bool\n+ {\n+ /** @var ContentType|null $definition */\n+ $definition = $this->config->get('contenttypes/' . $this->contentType);\n+\n+ // We only allow this, if getSingleFetchMode wasn't explicitly set\n+ if ($this->getSingleFetchMode() === false) {\n+ return false;\n+ }\n+\n+ return $definition ? $definition->get('singleton') : false;\n+ }\n+\n+ public function shouldReturnSingle(): bool\n+ {\n+ // We only allow this, if getSingleFetchMode wasn't explicitly set\n+ if ($this->getSingleFetchMode() === false) {\n+ return false;\n+ }\n+\n+ return $this->getSingleFetchMode() || $this->isSingleton();\n+ }\n+\n/**\n* Sets the parameters that will filter / alter the query.\n*/\n@@ -261,7 +285,7 @@ class SelectQuery implements QueryInterface\n/**\n* Returns whether the query is in single fetch mode.\n*/\n- public function getSingleFetchMode(): bool\n+ public function getSingleFetchMode(): ?bool\n{\nreturn $this->singleFetchMode;\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Singletons return single Content result with `{% setcontent %}`
|
95,144 |
28.06.2020 14:43:12
| -7,200 |
9fbc85cc669ffa95ae1f5ad6f251c66f2eb2fb70
|
Make sure it still works in backend.
|
[
{
"change_type": "MODIFY",
"old_path": "src/Controller/TwigAwareController.php",
"new_path": "src/Controller/TwigAwareController.php",
"diff": "@@ -139,6 +139,7 @@ class TwigAwareController extends AbstractController\n{\n$params = [\n'status' => '!unknown',\n+ 'returnsingle' => false,\n];\nif ($this->request->get('sortBy')) {\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Storage/Directive/ReturnSingleDirective.php",
"new_path": "src/Storage/Directive/ReturnSingleDirective.php",
"diff": "@@ -13,6 +13,6 @@ class ReturnSingleDirective\n{\npublic function __invoke(SelectQuery $query): void\n{\n- $query->setSingleFetchMode(true);\n+ $query->setSingleFetchMode((bool) $query->getParameter('returnsingle'));\n}\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Make sure it still works in backend.
|
95,144 |
29.06.2020 19:48:06
| -7,200 |
cfa2b181f20302c32c389d54c52eeed3295d1be5
|
Re-set `setSingleFetchMode` to ensure returning a pager, if needed
|
[
{
"change_type": "MODIFY",
"old_path": "src/DataFixtures/ContentFixtures.php",
"new_path": "src/DataFixtures/ContentFixtures.php",
"diff": "@@ -128,7 +128,7 @@ class ContentFixtures extends BaseFixture implements DependentFixtureInterface,\n}\n$refKey = sprintf('content_%s_%s', $contentType['slug'], $content->getSlug());\n- $this->addReference($refKey, $content);\n+ $this->setReference($refKey, $content);\n$manager->persist($content);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Storage/Handler/SelectQueryHandler.php",
"new_path": "src/Storage/Handler/SelectQueryHandler.php",
"diff": "@@ -28,6 +28,10 @@ class SelectQueryHandler\n/** @var SelectQuery $selectQuery */\n$selectQuery = $contentQuery->getService('select');\n+ // Note: This might seem superfluous, but if we \"re-use\" $contentQuery,\n+ // this needs resetting.\n+ $selectQuery->setSingleFetchMode(null);\n+\n$selectQuery->setQueryBuilder($qb);\n$selectQuery->setContentTypeFilter($contentQuery->getContentTypes());\n$selectQuery->setParameters($contentQuery->getParameters());\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Storage/SelectQuery.php",
"new_path": "src/Storage/SelectQuery.php",
"diff": "@@ -298,7 +298,7 @@ class SelectQuery implements QueryInterface\n/**\n* Turns single fetch mode on or off.\n*/\n- public function setSingleFetchMode(bool $value): void\n+ public function setSingleFetchMode(?bool $value): void\n{\n$this->singleFetchMode = $value;\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Re-set `setSingleFetchMode` to ensure returning a pager, if needed
|
95,144 |
29.06.2020 20:16:58
| -7,200 |
ac057a2cf55fc6177e5b916e201fc7ddd9483c8c
|
Prepare release 4.0.0-rc.27
|
[
{
"change_type": "MODIFY",
"old_path": "package.json",
"new_path": "package.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.25\",\n+ \"version\": \"4.0.0-rc.27\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Prepare release 4.0.0-rc.27
|
95,144 |
29.06.2020 21:24:18
| -7,200 |
b58b1d12def9d3dc873697e786136d277d2bcfdb
|
Allow both Symfony 4.4 and 5.1 for now
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"sensiolabs/security-checker\": \"^6.0\",\n\"siriusphp/upload\": \"^3.0.1\",\n\"squirrelphp/twig-php-syntax\": \"^1.5\",\n- \"symfony/asset\": \"^5.1\",\n- \"symfony/console\": \"^5.1\",\n- \"symfony/debug-bundle\": \"^5.1\",\n- \"symfony/dependency-injection\": \"^5.1\",\n- \"symfony/dotenv\": \"^5.1\",\n- \"symfony/expression-language\": \"^5.1\",\n+ \"symfony/asset\": \"^4.4 | ^5.1\",\n+ \"symfony/console\": \"^4.4 | ^5.1\",\n+ \"symfony/debug-bundle\": \"^4.4 | ^5.1\",\n+ \"symfony/dependency-injection\": \"^4.4 | ^5.1\",\n+ \"symfony/dotenv\": \"^4.4 | ^5.1\",\n+ \"symfony/expression-language\": \"^4.4 | ^5.1\",\n\"symfony/flex\": \"^1.6\",\n- \"symfony/form\": \"^5.1\",\n- \"symfony/framework-bundle\": \"^5.1\",\n- \"symfony/http-client\": \"^5.1\",\n- \"symfony/mailer\": \"^5.1\",\n+ \"symfony/form\": \"^4.4 | ^5.1\",\n+ \"symfony/framework-bundle\": \"^4.4 | ^5.1\",\n+ \"symfony/http-client\": \"^4.4 | ^5.1\",\n+ \"symfony/mailer\": \"^4.4 | ^5.1\",\n\"symfony/maker-bundle\": \"^1.14\",\n- \"symfony/monolog-bridge\": \"^5.1\",\n+ \"symfony/monolog-bridge\": \"^4.4 | ^5.1\",\n\"symfony/monolog-bundle\": \"^3.5\",\n\"symfony/polyfill-php72\": \"^1.13\",\n- \"symfony/security-bundle\": \"^5.1\",\n- \"symfony/serializer\": \"^5.1\",\n- \"symfony/stopwatch\": \"^5.1\",\n- \"symfony/translation\": \"^5.1\",\n- \"symfony/twig-bundle\": \"^5.1\",\n- \"symfony/validator\": \"^5.1\",\n- \"symfony/var-dumper\": \"^5.1\",\n- \"symfony/web-profiler-bundle\": \"^5.1\",\n+ \"symfony/security-bundle\": \"^4.4 | ^5.1\",\n+ \"symfony/serializer\": \"^4.4 | ^5.1\",\n+ \"symfony/stopwatch\": \"^4.4 | ^5.1\",\n+ \"symfony/translation\": \"^4.4 | ^5.1\",\n+ \"symfony/twig-bundle\": \"^4.4 | ^5.1\",\n+ \"symfony/validator\": \"^4.4 | ^5.1\",\n+ \"symfony/var-dumper\": \"^4.4 | ^5.1\",\n+ \"symfony/web-profiler-bundle\": \"^4.4 | ^5.1\",\n\"symfony/web-server-bundle\": \"^4.4\",\n\"symfony/webpack-encore-bundle\": \"^1.7\",\n- \"symfony/yaml\": \"^5.1\",\n+ \"symfony/yaml\": \"^4.4 | ^5.1\",\n\"tightenco/collect\": \"^7.4\",\n\"twig/twig\": \"^3.0\",\n\"ua-parser/uap-php\": \"^3.9\",\n\"phpunit/phpunit\": \"^7.5\",\n\"roave/security-advisories\": \"dev-master@dev\",\n\"se/selenium-server-standalone\": \"^3.141\",\n- \"symfony/browser-kit\": \"^5.1\",\n- \"symfony/css-selector\": \"^5.1\",\n+ \"symfony/browser-kit\": \"^4.4 | ^5.1\",\n+ \"symfony/css-selector\": \"^4.4 | ^5.1\",\n\"symplify/easy-coding-standard\": \"^8.0\",\n\"vaimo/binary-chromedriver\": \"^5.0\"\n},\n\"extra\": {\n\"symfony\": {\n\"allow-contrib\": true,\n- \"require\": \"^5.1\"\n+ \"require\": \"^4.4 | ^5.1\"\n}\n},\n\"autoload\": {\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Allow both Symfony 4.4 and 5.1 for now
|
95,134 |
30.06.2020 11:02:23
| -3,600 |
25d7a29d006fb7b25912139ec4cc780bc008093b
|
change to parameter alias
|
[
{
"change_type": "MODIFY",
"old_path": "src/Storage/SelectQuery.php",
"new_path": "src/Storage/SelectQuery.php",
"diff": "@@ -356,7 +356,7 @@ class SelectQuery implements QueryInterface\n->innerJoin($fieldsAlias . '.translations', $translationsAlias)\n->andWhere($where)\n// add orWhere to allow searching of fields with Muiltiple JSON values (eg. Selectfield with mutiple entries).\n- ->orWhere( $this->qb->expr()->like('LOWER('.$translationsAlias . '.value)', ':'.$key.'_1_JSON'));\n+ ->orWhere( $this->qb->expr()->like('LOWER('.$translationsAlias . '.value)', ':'.key($filter->getParameters()).'_JSON'));\n// Unless the field to which the 'where' applies is `anyColumn`, we\n@@ -373,7 +373,7 @@ class SelectQuery implements QueryInterface\n$innerQuery->join($contentAlias.'.taxonomies', 'taxonomies_' . $key);\n$this->qb->setParameter($key.'_1', $value);\n- $filterExpression = sprintf('LOWER(taxonomies_%s.slug) LIKE :%s', $key, $key.'_1');\n+ $filterExpression = sprintf('LOWER(taxonomies_%s.slug) LIKE :%s', $key, key($filter->getParameters()));\n$innerQuery->orWhere($filterExpression);\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
change to parameter alias
|
95,134 |
30.06.2020 15:36:12
| -3,600 |
71fa76cfe7c4e82141f2ebb3815dfbac6e7fc340
|
revert alias in taxonomy expression
|
[
{
"change_type": "MODIFY",
"old_path": "src/Storage/SelectQuery.php",
"new_path": "src/Storage/SelectQuery.php",
"diff": "@@ -373,7 +373,7 @@ class SelectQuery implements QueryInterface\n$innerQuery->join($contentAlias.'.taxonomies', 'taxonomies_' . $key);\n$this->qb->setParameter($key.'_1', $value);\n- $filterExpression = sprintf('LOWER(taxonomies_%s.slug) LIKE :%s', $key, key($filter->getParameters()));\n+ $filterExpression = sprintf('LOWER(taxonomies_%s.slug) LIKE :%s', $key, $key.'_1');\n$innerQuery->orWhere($filterExpression);\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
revert alias in taxonomy expression
|
95,144 |
01.07.2020 16:41:27
| -7,200 |
663224080eb8d4387c0574b9be98fad2b9a3a743
|
Display Symfony version in "About" and `bolt:info` screens
|
[
{
"change_type": "MODIFY",
"old_path": "src/Command/InfoCommand.php",
"new_path": "src/Command/InfoCommand.php",
"diff": "@@ -63,6 +63,7 @@ HELP\nsprintf('Install type: <info>%s</info>', Version::installType()),\nsprintf('Database: <info>%s %s</info>%s%s <info>(%s)</info>', $platform['driver_name'], $platform['server_version'], $connection, $tableExists, $withJson),\nsprintf('PHP version: <info>%s</info>', PHP_VERSION),\n+ sprintf('Symfony version: <info>%s</info>', Version::getSymfonyVersion()),\nsprintf('Operating System: <info>%s</info> - <comment>%s</comment>', php_uname('s'), php_uname('r')),\n]);\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/GeneralController.php",
"new_path": "src/Controller/Backend/GeneralController.php",
"diff": "@@ -35,6 +35,7 @@ class GeneralController extends TwigAwareController implements BackendZoneInterf\n'installType' => Version::installType(),\n'platform' => $this->doctrineVersion->getPlatform(),\n'php' => PHP_VERSION,\n+ 'symfony' => Version::getSymfonyVersion(),\n'os_name' => php_uname('s'),\n'os_version' => php_uname('r'),\n];\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Version.php",
"new_path": "src/Version.php",
"diff": "@@ -4,6 +4,8 @@ declare(strict_types=1);\nnamespace Bolt;\n+use ComposerPackages\\Packages;\n+\n/**\n* Bolt's current version.\n*\n@@ -124,10 +126,8 @@ final class Version\nreturn $type;\n}\n- /**\n- * Must not be instantiated.\n- */\n- private function __construct()\n+ public static function getSymfonyVersion(): string\n{\n+ return Packages::symfonyFrameworkBundle()->getPrettyVersion();\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/pages/about.html.twig",
"new_path": "templates/pages/about.html.twig",
"diff": "<li>Install type: <code>{{ installType }}</code></li>\n<li>Database: <code>{{ platform.driver_name }} {{ platform.server_version }} <small> - {{ platform.connection_status }}</small> </code></li>\n<li>PHP version: <code>{{ php }}</code></li>\n+ <li>Symfony version: <code>{{ symfony }}</code></li>\n<li>Operating System: <code>{{ os_name }} - <small>{{ os_version }}</small></code></li>\n</ul>\n<hr>\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Display Symfony version in "About" and `bolt:info` screens
|
95,144 |
05.07.2020 11:48:43
| -7,200 |
a5a72540495f952a1ebea41f4a5780496a31f4de
|
Allow "focus" parameter for excerpts of plain strings
|
[
{
"change_type": "MODIFY",
"old_path": "src/Twig/ContentExtension.php",
"new_path": "src/Twig/ContentExtension.php",
"diff": "@@ -237,7 +237,7 @@ class ContentExtension extends AbstractExtension\npublic function getExcerpt($content, int $length = 280, bool $includeTitle = false, $focus = null): string\n{\nif (is_string($content) || $content instanceof Markup) {\n- return Excerpt::getExcerpt((string) $content, $length);\n+ return Excerpt::getExcerpt((string) $content, $length, $focus);\n}\nif (ContentHelper::isSuitable($content, 'excerpt_format')) {\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Allow "focus" parameter for excerpts of plain strings
|
95,144 |
06.07.2020 15:08:30
| -7,200 |
e019ae4a51fdb26a6b75ad6636370a1e8464beee
|
Make the user-friendly notifications a bit more robust
|
[
{
"change_type": "MODIFY",
"old_path": "src/Storage/Directive/OrderDirective.php",
"new_path": "src/Storage/Directive/OrderDirective.php",
"diff": "@@ -81,7 +81,7 @@ class OrderDirective\n} else {\nif (! $this->isActualField($query, $order)) {\n$this->notifications->warning('Incorrect OrderBy clause for field that does not exist',\n- \"A query with ordering on a Field (`${order}`) that\\'s not defined, will yield unexpected results. Update your `{% setcontent %}`-statement\");\n+ \"A query with ordering on a Field (`${order}`) that's not defined, will yield unexpected results. Update your `{% setcontent %}`-statement\");\n}\n$fieldsAlias = 'fields_order_' . $query->getIndex();\n$fieldAlias = 'order_' . $query->getIndex();\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/_partials/notification.html.twig",
"new_path": "templates/_partials/notification.html.twig",
"diff": "<ul>\n{% for frame in backtrace|slice(2) %}\n<li>\n- <code>{%- if frame.type is not empty -%}\n+ <code>{%- if frame.type|default() is not empty -%}\n<abbr title=\"{{ frame.class }}\">\n{{- frame.class|split('\\\\')|last()|excerpt(24) -}}</abbr>{{- frame.type -}}\n{%- endif -%}\n- <strong>{{- frame.function -}}()</strong></code> - line {{ frame.line }}\n+ <strong>{{- frame.function -}}()</strong></code>{% if frame.line|default() %} - line {{ frame.line }}{% endif %}\n</li>\n{% endfor %}\n</ul>\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Make the user-friendly notifications a bit more robust
|
95,134 |
08.07.2020 19:32:37
| -3,600 |
de6c66027eebff5506af5a6f9d3be52b22bdd613
|
Update SelectQuery.php
Remove unnecessary foreach{} loop on taxonomies which caused memory exhaustion.
|
[
{
"change_type": "MODIFY",
"old_path": "src/Storage/SelectQuery.php",
"new_path": "src/Storage/SelectQuery.php",
"diff": "@@ -394,16 +394,14 @@ class SelectQuery implements QueryInterface\n$innerQuery->andWhere($fieldsAlias . '.name = :' . $keyParam);\n$this->qb->setParameter($keyParam, $key);\n} else {\n- //added to include taxonomies to be searched as part of contenttype filter at the backend if anyField param is set.\n+ //added to include taxonomies to be searched as part of contenttype filter at the backend and frontend if anyField param is set.\nforeach ($filter->getParameters() as $value) {\n- foreach ($this->getTaxonomyFields() as $key) {\n- $innerQuery->innerJoin($contentAlias . '.taxonomies', 'taxonomies_' . $key);\n+ $innerQuery->innerJoin($contentAlias . '.taxonomies', 'taxonomies_' . $index);\n$this->qb->setParameter($key . '_1', $value);\n- $filterExpression = sprintf('LOWER(taxonomies_%s.slug) LIKE :%s', $key, $key . '_1');\n+ $filterExpression = sprintf('LOWER(taxonomies_%s.slug) LIKE :%s', $index, $key . '_1');\n$innerQuery->orWhere($filterExpression);\n}\n}\n- }\n$this->qb\n->andWhere($this->qb->expr()->in('content.id', $innerQuery->getDQL()));\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Update SelectQuery.php
Remove unnecessary foreach{} loop on taxonomies which caused memory exhaustion.
|
95,144 |
10.07.2020 13:14:09
| -7,200 |
95b4bf267504ebea7b58c57cd915e2177ba293a5
|
Allow optional space in QueryParameterParser between operand and keyword
|
[
{
"change_type": "MODIFY",
"old_path": "src/Storage/QueryParameterParser.php",
"new_path": "src/Storage/QueryParameterParser.php",
"diff": "@@ -46,19 +46,19 @@ class QueryParameterParser\n$word = \"[\\p{L}\\p{N}_]+\";\n// @codingStandardsIgnoreStart\n- $this->addValueMatcher(\"<(${word})\", [\n+ $this->addValueMatcher(\"<\\s?(${word})\", [\n'value' => '$1',\n'operator' => 'lt',\n]);\n- $this->addValueMatcher(\"<=(${word})\", [\n+ $this->addValueMatcher(\"<=\\s?(${word})\", [\n'value' => '$1',\n'operator' => 'lte',\n]);\n- $this->addValueMatcher(\">=(${word})\", [\n+ $this->addValueMatcher(\">=\\s?(${word})\", [\n'value' => '$1',\n'operator' => 'gte',\n]);\n- $this->addValueMatcher(\">(${word})\", [\n+ $this->addValueMatcher(\">\\s?(${word})\", [\n'value' => '$1',\n'operator' => 'gt',\n]);\n@@ -66,11 +66,11 @@ class QueryParameterParser\n'value' => '',\n'operator' => 'isNotNull',\n]);\n- $this->addValueMatcher(\"!(${word})\", [\n+ $this->addValueMatcher(\"!\\s?(${word})\", [\n'value' => '$1',\n'operator' => 'neq',\n]);\n- $this->addValueMatcher('!\\[([\\p{L}\\p{N} ,]+)\\]', [\n+ $this->addValueMatcher('!\\s?\\[([\\p{L}\\p{N} ,]+)\\]', [\n'value' => function ($val) {\nreturn explode(',', $val);\n},\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Allow optional space in QueryParameterParser between operand and keyword
|
95,144 |
11.07.2020 12:27:43
| -7,200 |
8c5f2bbb1543fb31fb091629f7d6f0a899707f94
|
Prepare release 4.0.0-rc.29
|
[
{
"change_type": "MODIFY",
"old_path": "package-lock.json",
"new_path": "package-lock.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.28\",\n+ \"version\": \"4.0.0-rc.29\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n\"integrity\": \"sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==\"\n},\n\"ajv-keywords\": {\n- \"version\": \"3.5.0\",\n- \"resolved\": \"https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.0.tgz\",\n- \"integrity\": \"sha512-eyoaac3btgU8eJlvh01En8OCKzRqlLe2G5jDsCr3RiE2uLGMEEB1aaGwVVpwR8M95956tGH6R+9edC++OvzaVw==\"\n+ \"version\": \"3.5.1\",\n+ \"resolved\": \"https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.1.tgz\",\n+ \"integrity\": \"sha512-KWcq3xN8fDjSB+IMoh2VaXVhRI0BBGxoYp3rx7Pkb6z0cFjYR9Q9l4yZqqals0/zsioCmocC5H6UvsGD4MoIBA==\"\n},\n\"alphanum-sort\": {\n\"version\": \"1.0.2\",\n\"integrity\": \"sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==\"\n},\n\"autoprefixer\": {\n- \"version\": \"9.8.4\",\n- \"resolved\": \"https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.4.tgz\",\n- \"integrity\": \"sha512-84aYfXlpUe45lvmS+HoAWKCkirI/sw4JK0/bTeeqgHYco3dcsOn0NqdejISjptsYwNji/21dnkDri9PsYKk89A==\",\n+ \"version\": \"9.8.5\",\n+ \"resolved\": \"https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.5.tgz\",\n+ \"integrity\": \"sha512-C2p5KkumJlsTHoNv9w31NrBRgXhf6eCMteJuHZi2xhkgC+5Vm40MEtCKPhc0qdgAOhox0YPy1SQHTAky05UoKg==\",\n\"requires\": {\n\"browserslist\": \"^4.12.0\",\n- \"caniuse-lite\": \"^1.0.30001087\",\n+ \"caniuse-lite\": \"^1.0.30001097\",\n\"colorette\": \"^1.2.0\",\n\"normalize-range\": \"^0.1.2\",\n\"num2fraction\": \"^1.2.2\",\n}\n},\n\"caniuse-lite\": {\n- \"version\": \"1.0.30001094\",\n- \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001094.tgz\",\n- \"integrity\": \"sha512-ufHZNtMaDEuRBpTbqD93tIQnngmJ+oBknjvr0IbFympSdtFpAUFmNv4mVKbb53qltxFx0nK3iy32S9AqkLzUNA==\"\n+ \"version\": \"1.0.30001097\",\n+ \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001097.tgz\",\n+ \"integrity\": \"sha512-TeuSleKt/vWXaPkLVFqGDnbweYfq4IaZ6rUugFf3rWY6dlII8StUZ8Ddin0PkADfgYZ4wRqCdO2ORl4Rn5eZIA==\"\n},\n\"capture-exit\": {\n\"version\": \"2.0.0\",\n}\n},\n\"colorette\": {\n- \"version\": \"1.2.0\",\n- \"resolved\": \"https://registry.npmjs.org/colorette/-/colorette-1.2.0.tgz\",\n- \"integrity\": \"sha512-soRSroY+OF/8OdA3PTQXwaDJeMc7TfknKKrxeSCencL2a4+Tx5zhxmmv7hdpCjhKBjehzp8+bwe/T68K0hpIjw==\"\n+ \"version\": \"1.2.1\",\n+ \"resolved\": \"https://registry.npmjs.org/colorette/-/colorette-1.2.1.tgz\",\n+ \"integrity\": \"sha512-puCDz0CzydiSYOrnXpz/PKd69zRrribezjtE9yd4zvytoRc8+RY/KJPvtPFKZS3E3wP6neGyMe0vOTlHO5L3Pw==\"\n},\n\"combined-stream\": {\n\"version\": \"1.0.8\",\n}\n},\n\"vuedraggable\": {\n- \"version\": \"2.23.2\",\n- \"resolved\": \"https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.23.2.tgz\",\n- \"integrity\": \"sha512-PgHCjUpxEAEZJq36ys49HfQmXglattf/7ofOzUrW2/rRdG7tu6fK84ir14t1jYv4kdXewTEa2ieKEAhhEMdwkQ==\",\n+ \"version\": \"2.24.0\",\n+ \"resolved\": \"https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.0.tgz\",\n+ \"integrity\": \"sha512-IlslPpc+iZ2zPNSJbydFZIDrE+don5u+Nc/bjT2YaF+Azidc+wxxJKfKT0NwE68AKk0syb0YbZneAcnynqREZQ==\",\n\"requires\": {\n\"sortablejs\": \"^1.10.1\"\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "package.json",
"new_path": "package.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.28\",\n+ \"version\": \"4.0.0-rc.29\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n\"bootbox\": \"^5.4.0\",\n\"bootstrap\": \"^4.5.0\",\n\"browserslist\": \"^4.13.0\",\n- \"caniuse-lite\": \"^1.0.30001094\",\n+ \"caniuse-lite\": \"^1.0.30001097\",\n\"codemirror\": \"^5.55.0\",\n\"dropzone\": \"^5.7.1\",\n\"flagpack\": \"^1.0.5\",\n\"vue-multiselect\": \"^2.1.6\",\n\"vue-simplemde\": \"^1.0\",\n\"vue-trumbowyg\": \"^3.6.0\",\n- \"vuedraggable\": \"^2.23.2\",\n+ \"vuedraggable\": \"^2.24.0\",\n\"vuex\": \"^3.5.1\",\n\"zxcvbn\": \"^4.4.2\"\n},\n\"@fortawesome/fontawesome-free\": \"^5.13.1\",\n\"@symfony/webpack-encore\": \"^0.30.2\",\n\"@vue/test-utils\": \"^1.0.3\",\n- \"ajv-keywords\": \"^3.5.0\",\n- \"autoprefixer\": \"^9.8.4\",\n+ \"ajv-keywords\": \"^3.5.1\",\n+ \"autoprefixer\": \"^9.8.5\",\n\"babel-core\": \"^7.0.0-bridge.0\",\n\"babel-eslint\": \"^10.1.0\",\n\"babel-jest\": \"^25.5.1\",\n"
},
{
"change_type": "MODIFY",
"old_path": "symfony.lock",
"new_path": "symfony.lock",
"diff": "\"babdev/pagerfanta-bundle\": {\n\"version\": \"v2.4.2\"\n},\n+ \"beberlei/doctrineextensions\": {\n+ \"version\": \"v1.2.7\"\n+ },\n\"behat/behat\": {\n\"version\": \"v3.6.1\"\n},\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Prepare release 4.0.0-rc.29
|
95,144 |
16.07.2020 17:50:03
| -7,200 |
e9e6db85802404bbdb27cd0a833b425e2bdc31a6
|
[WIP] Add support for "403 Forbidden" pages
|
[
{
"change_type": "MODIFY",
"old_path": "assets/scss/modules/base/_status.scss",
"new_path": "assets/scss/modules/base/_status.scss",
"diff": ".badge-homepage,\n.badge-404,\n+.badge-403,\n.badge-maintenance {\nfont-weight: normal;\nvertical-align: middle;\nbackground: $secondary;\n}\n-.badge-404 {\n+.badge-404,\n+.badge-403 {\nbackground: $warning;\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "config/bolt/config.yaml",
"new_path": "config/bolt/config.yaml",
"diff": "@@ -68,6 +68,10 @@ homepage_template: index.twig\n# identifiers for records, which will be tried until a match is found.\nnotfound: [ blocks/404-not-found, 'helpers/page_404.html.twig' ]\n+# The default content for the 403 page. Can be an (array of) template names or\n+# identifiers for records, which will be tried until a match is found.\n+forbidden: [ blocks/403-forbidden, 'helpers/page_403.html.twig' ]\n+\n# The default template and amount of records to use for listing-pages on the\n# site.\n#\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/ErrorController.php",
"new_path": "src/Controller/ErrorController.php",
"diff": "@@ -59,6 +59,17 @@ class ErrorController extends SymfonyErrorController\nreturn $this->showNotFound();\n}\n+ if ($code === Response::HTTP_FORBIDDEN) {\n+ $twig->addGlobal('exception', $exception);\n+\n+ // If Maintenance is on, show that, instead of the 404.\n+ if ($this->isMaintenanceEnabled()) {\n+ return $this->showMaintenance();\n+ }\n+\n+ return $this->showForbidden();\n+ }\n+\nif ($code === Response::HTTP_SERVICE_UNAVAILABLE) {\n$twig->addGlobal('exception', $exception);\n@@ -82,6 +93,19 @@ class ErrorController extends SymfonyErrorController\nreturn new Response('404: Not found (and there was no proper page configured to display)');\n}\n+ private function showForbidden(): Response\n+ {\n+ foreach ($this->config->get('general/forbidden') as $item) {\n+ $output = $this->attemptToRender($item);\n+\n+ if ($output instanceof Response) {\n+ return $output;\n+ }\n+ }\n+\n+ return new Response('403: Forbidden (and there was no proper page configured to display)');\n+ }\n+\nprivate function isMaintenanceEnabled()\n{\nreturn $this->config->get('general/maintenance_mode', false);\n"
},
{
"change_type": "MODIFY",
"old_path": "src/DataFixtures/ContentFixtures.php",
"new_path": "src/DataFixtures/ContentFixtures.php",
"diff": "@@ -338,6 +338,11 @@ class ContentFixtures extends BaseFixture implements DependentFixtureInterface,\n'slug' => '404-not-found',\n'status' => Statuses::HELD,\n];\n+ $records['blocks'][] = [\n+ 'title' => '403 Forbidden',\n+ 'slug' => '403-forbidden',\n+ 'status' => Statuses::HELD,\n+ ];\n$records['blocks'][] = [\n'title' => '503 Service Unavailable (Maintenance Mode)',\n'slug' => '503-maintenance mode',\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Twig/ContentExtension.php",
"new_path": "src/Twig/ContentExtension.php",
"diff": "@@ -681,6 +681,10 @@ class ContentExtension extends AbstractExtension\nreturn '404';\n}\n+ if ($this->is403($record)) {\n+ return '403';\n+ }\n+\nif ($this->isMaintenance($record)) {\nreturn 'maintenance';\n}\n@@ -698,6 +702,11 @@ class ContentExtension extends AbstractExtension\nreturn $this->contentHelper->is404($content);\n}\n+ public function is403(Content $content): bool\n+ {\n+ return $this->contentHelper->is403($content);\n+ }\n+\npublic function isMaintenance(Content $content): bool\n{\nreturn $this->contentHelper->isMaintenance($content);\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Utils/ContentHelper.php",
"new_path": "src/Utils/ContentHelper.php",
"diff": "@@ -96,6 +96,11 @@ class ContentHelper\nreturn $this->isSpecialpage($content, 'notfound');\n}\n+ public function is403(Content $content): bool\n+ {\n+ return $this->isSpecialpage($content, 'forbidden');\n+ }\n+\npublic function isMaintenance(Content $content): bool\n{\nreturn $this->isSpecialpage($content, 'maintenance');\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
[WIP] Add support for "403 Forbidden" pages
|
95,144 |
17.07.2020 08:19:56
| -7,200 |
160a708e6cb4e7c6750f5dfb8e7c1dbc40777f98
|
Update phpstan.neon, to 'recognize' Twig functions in global scope
|
[
{
"change_type": "MODIFY",
"old_path": "phpstan.neon",
"new_path": "phpstan.neon",
"diff": "@@ -4,6 +4,10 @@ parameters:\nsymfony:\ncontainer_xml_path: '%rootDir%/../../../var/cache/dev/Bolt_KernelDevDebugContainer.xml'\n+ scanDirectories:\n+ # In order to 'recognize' Twig functions in global scope\n+ - %currentWorkingDirectory%/vendor/twig/twig/src/Extension\n+\nignoreErrors:\n# false positive: `Unreachable statement - code above always terminates.`\n# Note: https://github.com/phpstan/phpstan/issues/2651 is marked as fixed, but the issue remains.\n@@ -16,11 +20,6 @@ parameters:\nmessage: '#Call to an undefined method Knp\\\\DoctrineBehaviors\\\\Contract\\\\Entity\\\\TranslationInterface#'\npath: %currentWorkingDirectory%/src/*\n- # Function twig_date_format_filter not found. Internal Twig function, so skip this error.\n- -\n- message: '#Function twig_date_format_filter not found.#'\n- path: %currentWorkingDirectory%/src/Twig/FieldExtension.php\n-\n# Parameters in Storage\\Directive\\OrderDirective::orderByNumericField() aren't seen as ints\n-\nmessage: '#of method Doctrine\\\\ORM\\\\Query\\\\Expr::substring\\(\\) expects int#'\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Update phpstan.neon, to 'recognize' Twig functions in global scope
|
95,144 |
19.07.2020 13:29:20
| -7,200 |
a2ba1c162ab836aecb4d835f063918faad6be1ad
|
Saving an edited file should keep input as-is
|
[
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/FileEditController.php",
"new_path": "src/Controller/Backend/FileEditController.php",
"diff": "@@ -80,7 +80,7 @@ class FileEditController extends TwigAwareController implements BackendZoneInter\n$file = $this->getFromRequest('file');\n$locationName = $this->getFromRequest('location');\n- $contents = $this->getFromRequest('editfile');\n+ $contents = $this->getFromRequestRaw('editfile');\n$extension = Path::getExtension($file);\n$basepath = $this->config->getPath($locationName);\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/TwigAwareController.php",
"new_path": "src/Controller/TwigAwareController.php",
"diff": "@@ -206,6 +206,11 @@ class TwigAwareController extends AbstractController\n->setMaxPerPage($pageSize);\n}\n+ public function getFromRequestRaw(string $parameter): string\n+ {\n+ return $this->request->get($parameter, '');\n+ }\n+\npublic function getFromRequest(string $parameter, ?string $default = null): ?string\n{\n$parameter = trim($this->sanitiser->clean($this->request->get($parameter, '')));\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Saving an edited file should keep input as-is
|
95,144 |
19.07.2020 14:01:44
| -7,200 |
9b7d1f8a7f3cc07296ac9c6067914aca3966b2c2
|
Prepare release 4.0.0-rc.30
|
[
{
"change_type": "MODIFY",
"old_path": "package-lock.json",
"new_path": "package-lock.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.29\",\n+ \"version\": \"4.0.0-rc.30\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n}\n},\n\"@babel/core\": {\n- \"version\": \"7.10.4\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/core/-/core-7.10.4.tgz\",\n- \"integrity\": \"sha512-3A0tS0HWpy4XujGc7QtOIHTeNwUgWaZc/WuS5YQrfhU67jnVmsD6OGPc1AKHH0LJHQICGncy3+YUjIhVlfDdcA==\",\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/core/-/core-7.10.5.tgz\",\n+ \"integrity\": \"sha512-O34LQooYVDXPl7QWCdW9p4NR+QlzOr7xShPPJz8GsuCU3/8ua/wqTr7gmnxXv+WBESiGU/G5s16i6tUvHkNb+w==\",\n\"dev\": true,\n\"requires\": {\n\"@babel/code-frame\": \"^7.10.4\",\n- \"@babel/generator\": \"^7.10.4\",\n- \"@babel/helper-module-transforms\": \"^7.10.4\",\n+ \"@babel/generator\": \"^7.10.5\",\n+ \"@babel/helper-module-transforms\": \"^7.10.5\",\n\"@babel/helpers\": \"^7.10.4\",\n- \"@babel/parser\": \"^7.10.4\",\n+ \"@babel/parser\": \"^7.10.5\",\n\"@babel/template\": \"^7.10.4\",\n- \"@babel/traverse\": \"^7.10.4\",\n- \"@babel/types\": \"^7.10.4\",\n+ \"@babel/traverse\": \"^7.10.5\",\n+ \"@babel/types\": \"^7.10.5\",\n\"convert-source-map\": \"^1.7.0\",\n\"debug\": \"^4.1.0\",\n\"gensync\": \"^1.0.0-beta.1\",\n\"json5\": \"^2.1.2\",\n- \"lodash\": \"^4.17.13\",\n+ \"lodash\": \"^4.17.19\",\n\"resolve\": \"^1.3.2\",\n\"semver\": \"^5.4.1\",\n\"source-map\": \"^0.5.0\"\n}\n},\n\"@babel/generator\": {\n- \"version\": \"7.10.4\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/generator/-/generator-7.10.4.tgz\",\n- \"integrity\": \"sha512-toLIHUIAgcQygFZRAQcsLQV3CBuX6yOIru1kJk/qqqvcRmZrYe6WavZTSG+bB8MxhnL9YPf+pKQfuiP161q7ng==\",\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/generator/-/generator-7.10.5.tgz\",\n+ \"integrity\": \"sha512-3vXxr3FEW7E7lJZiWQ3bM4+v/Vyr9C+hpolQ8BGFr9Y8Ri2tFLWTixmwKBafDujO1WVah4fhZBeU1bieKdghig==\",\n\"dev\": true,\n\"requires\": {\n- \"@babel/types\": \"^7.10.4\",\n+ \"@babel/types\": \"^7.10.5\",\n\"jsesc\": \"^2.5.1\",\n- \"lodash\": \"^4.17.13\",\n\"source-map\": \"^0.5.0\"\n}\n},\n\"@babel/types\": \"^7.10.4\"\n}\n},\n+ \"@babel/helper-module-transforms\": {\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.10.5.tgz\",\n+ \"integrity\": \"sha512-4P+CWMJ6/j1W915ITJaUkadLObmCRRSC234uctJfn/vHrsLNxsR8dwlcXv9ZhJWzl77awf+mWXSZEKt5t0OnlA==\",\n+ \"dev\": true,\n+ \"requires\": {\n+ \"@babel/helper-module-imports\": \"^7.10.4\",\n+ \"@babel/helper-replace-supers\": \"^7.10.4\",\n+ \"@babel/helper-simple-access\": \"^7.10.4\",\n+ \"@babel/helper-split-export-declaration\": \"^7.10.4\",\n+ \"@babel/template\": \"^7.10.4\",\n+ \"@babel/types\": \"^7.10.5\",\n+ \"lodash\": \"^4.17.19\"\n+ }\n+ },\n\"@babel/helper-split-export-declaration\": {\n\"version\": \"7.10.4\",\n\"resolved\": \"https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.4.tgz\",\n}\n},\n\"@babel/parser\": {\n- \"version\": \"7.10.4\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/parser/-/parser-7.10.4.tgz\",\n- \"integrity\": \"sha512-8jHII4hf+YVDsskTF6WuMB3X4Eh+PsUkC2ljq22so5rHvH+T8BzyL94VOdyFLNR8tBSVXOTbNHOKpR4TfRxVtA==\",\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/parser/-/parser-7.10.5.tgz\",\n+ \"integrity\": \"sha512-wfryxy4bE1UivvQKSQDU4/X6dr+i8bctjUjj8Zyt3DQy7NtPizJXT8M52nqpNKL+nq2PW8lxk4ZqLj0fD4B4hQ==\",\n\"dev\": true\n},\n\"@babel/template\": {\n}\n},\n\"@babel/traverse\": {\n- \"version\": \"7.10.4\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.4.tgz\",\n- \"integrity\": \"sha512-aSy7p5THgSYm4YyxNGz6jZpXf+Ok40QF3aA2LyIONkDHpAcJzDUqlCKXv6peqYUs2gmic849C/t2HKw2a2K20Q==\",\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.5.tgz\",\n+ \"integrity\": \"sha512-yc/fyv2gUjPqzTz0WHeRJH2pv7jA9kA7mBX2tXl/x5iOE81uaVPuGPtaYk7wmkx4b67mQ7NqI8rmT2pF47KYKQ==\",\n\"dev\": true,\n\"requires\": {\n\"@babel/code-frame\": \"^7.10.4\",\n- \"@babel/generator\": \"^7.10.4\",\n+ \"@babel/generator\": \"^7.10.5\",\n\"@babel/helper-function-name\": \"^7.10.4\",\n\"@babel/helper-split-export-declaration\": \"^7.10.4\",\n- \"@babel/parser\": \"^7.10.4\",\n- \"@babel/types\": \"^7.10.4\",\n+ \"@babel/parser\": \"^7.10.5\",\n+ \"@babel/types\": \"^7.10.5\",\n\"debug\": \"^4.1.0\",\n\"globals\": \"^11.1.0\",\n- \"lodash\": \"^4.17.13\"\n+ \"lodash\": \"^4.17.19\"\n}\n},\n\"@babel/types\": {\n- \"version\": \"7.10.4\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/types/-/types-7.10.4.tgz\",\n- \"integrity\": \"sha512-UTCFOxC3FsFHb7lkRMVvgLzaRVamXuAs2Tz4wajva4WxtVY82eZeaUBtC2Zt95FU9TiznuC0Zk35tsim8jeVpg==\",\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/types/-/types-7.10.5.tgz\",\n+ \"integrity\": \"sha512-ixV66KWfCI6GKoA/2H9v6bQdbfXEwwpOdQ8cRvb4F+eyvhlaHxWFMQB4+3d9QFJXZsiiiqVrewNV0DFEQpyT4Q==\",\n\"dev\": true,\n\"requires\": {\n\"@babel/helper-validator-identifier\": \"^7.10.4\",\n- \"lodash\": \"^4.17.13\",\n+ \"lodash\": \"^4.17.19\",\n\"to-fast-properties\": \"^2.0.0\"\n}\n},\n\"minimist\": \"^1.2.5\"\n}\n},\n+ \"lodash\": {\n+ \"version\": \"4.17.19\",\n+ \"resolved\": \"https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz\",\n+ \"integrity\": \"sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==\",\n+ \"dev\": true\n+ },\n\"semver\": {\n\"version\": \"5.7.1\",\n\"resolved\": \"https://registry.npmjs.org/semver/-/semver-5.7.1.tgz\",\n}\n},\n\"@babel/generator\": {\n- \"version\": \"7.10.4\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/generator/-/generator-7.10.4.tgz\",\n- \"integrity\": \"sha512-toLIHUIAgcQygFZRAQcsLQV3CBuX6yOIru1kJk/qqqvcRmZrYe6WavZTSG+bB8MxhnL9YPf+pKQfuiP161q7ng==\",\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/generator/-/generator-7.10.5.tgz\",\n+ \"integrity\": \"sha512-3vXxr3FEW7E7lJZiWQ3bM4+v/Vyr9C+hpolQ8BGFr9Y8Ri2tFLWTixmwKBafDujO1WVah4fhZBeU1bieKdghig==\",\n\"dev\": true,\n\"requires\": {\n- \"@babel/types\": \"^7.10.4\",\n+ \"@babel/types\": \"^7.10.5\",\n\"jsesc\": \"^2.5.1\",\n- \"lodash\": \"^4.17.13\",\n\"source-map\": \"^0.5.0\"\n}\n},\n}\n},\n\"@babel/parser\": {\n- \"version\": \"7.10.4\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/parser/-/parser-7.10.4.tgz\",\n- \"integrity\": \"sha512-8jHII4hf+YVDsskTF6WuMB3X4Eh+PsUkC2ljq22so5rHvH+T8BzyL94VOdyFLNR8tBSVXOTbNHOKpR4TfRxVtA==\",\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/parser/-/parser-7.10.5.tgz\",\n+ \"integrity\": \"sha512-wfryxy4bE1UivvQKSQDU4/X6dr+i8bctjUjj8Zyt3DQy7NtPizJXT8M52nqpNKL+nq2PW8lxk4ZqLj0fD4B4hQ==\",\n\"dev\": true\n},\n\"@babel/template\": {\n}\n},\n\"@babel/traverse\": {\n- \"version\": \"7.10.4\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.4.tgz\",\n- \"integrity\": \"sha512-aSy7p5THgSYm4YyxNGz6jZpXf+Ok40QF3aA2LyIONkDHpAcJzDUqlCKXv6peqYUs2gmic849C/t2HKw2a2K20Q==\",\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.5.tgz\",\n+ \"integrity\": \"sha512-yc/fyv2gUjPqzTz0WHeRJH2pv7jA9kA7mBX2tXl/x5iOE81uaVPuGPtaYk7wmkx4b67mQ7NqI8rmT2pF47KYKQ==\",\n\"dev\": true,\n\"requires\": {\n\"@babel/code-frame\": \"^7.10.4\",\n- \"@babel/generator\": \"^7.10.4\",\n+ \"@babel/generator\": \"^7.10.5\",\n\"@babel/helper-function-name\": \"^7.10.4\",\n\"@babel/helper-split-export-declaration\": \"^7.10.4\",\n- \"@babel/parser\": \"^7.10.4\",\n- \"@babel/types\": \"^7.10.4\",\n+ \"@babel/parser\": \"^7.10.5\",\n+ \"@babel/types\": \"^7.10.5\",\n\"debug\": \"^4.1.0\",\n\"globals\": \"^11.1.0\",\n- \"lodash\": \"^4.17.13\"\n+ \"lodash\": \"^4.17.19\"\n}\n},\n\"@babel/types\": {\n- \"version\": \"7.10.4\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/types/-/types-7.10.4.tgz\",\n- \"integrity\": \"sha512-UTCFOxC3FsFHb7lkRMVvgLzaRVamXuAs2Tz4wajva4WxtVY82eZeaUBtC2Zt95FU9TiznuC0Zk35tsim8jeVpg==\",\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/types/-/types-7.10.5.tgz\",\n+ \"integrity\": \"sha512-ixV66KWfCI6GKoA/2H9v6bQdbfXEwwpOdQ8cRvb4F+eyvhlaHxWFMQB4+3d9QFJXZsiiiqVrewNV0DFEQpyT4Q==\",\n\"dev\": true,\n\"requires\": {\n\"@babel/helper-validator-identifier\": \"^7.10.4\",\n- \"lodash\": \"^4.17.13\",\n+ \"lodash\": \"^4.17.19\",\n\"to-fast-properties\": \"^2.0.0\"\n}\n},\n+ \"lodash\": {\n+ \"version\": \"4.17.19\",\n+ \"resolved\": \"https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz\",\n+ \"integrity\": \"sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==\",\n+ \"dev\": true\n+ },\n\"source-map\": {\n\"version\": \"0.5.7\",\n\"resolved\": \"https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz\",\n}\n},\n\"@babel/plugin-transform-runtime\": {\n- \"version\": \"7.10.4\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.10.4.tgz\",\n- \"integrity\": \"sha512-8ULlGv8p+Vuxu+kz2Y1dk6MYS2b/Dki+NO6/0ZlfSj5tMalfDL7jI/o/2a+rrWLqSXvnadEqc2WguB4gdQIxZw==\",\n+ \"version\": \"7.10.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.10.5.tgz\",\n+ \"integrity\": \"sha512-tV4V/FjElJ9lQtyjr5xD2IFFbgY46r7EeVu5a8CpEKT5laheHKSlFeHjpkPppW3PqzGLAuv5k2qZX5LgVZIX5w==\",\n\"dev\": true,\n\"requires\": {\n\"@babel/helper-module-imports\": \"^7.10.4\",\n\"dev\": true\n},\n\"@fortawesome/fontawesome-free\": {\n- \"version\": \"5.13.1\",\n- \"resolved\": \"https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.13.1.tgz\",\n- \"integrity\": \"sha512-D819f34FLHeBN/4xvw0HR0u7U2G7RqjPSggXqf7LktsxWQ48VAfGwvMrhcVuaZV2fF069c/619RdgCCms0DHhw==\",\n+ \"version\": \"5.14.0\",\n+ \"resolved\": \"https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.14.0.tgz\",\n+ \"integrity\": \"sha512-OfdMsF+ZQgdKHP9jUbmDcRrP0eX90XXrsXIdyjLbkmSBzmMXPABB8eobUJtivaupucYaByz6WNe1PI1JuYm3qA==\",\n\"dev\": true\n},\n\"@hapi/address\": {\n}\n},\n\"caniuse-lite\": {\n- \"version\": \"1.0.30001097\",\n- \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001097.tgz\",\n- \"integrity\": \"sha512-TeuSleKt/vWXaPkLVFqGDnbweYfq4IaZ6rUugFf3rWY6dlII8StUZ8Ddin0PkADfgYZ4wRqCdO2ORl4Rn5eZIA==\"\n+ \"version\": \"1.0.30001103\",\n+ \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001103.tgz\",\n+ \"integrity\": \"sha512-EJkTPrZrgy712tjZ7GQDye5A67SQOyNS6X9b6GS/e5QFu5Renv5qfkx3GHq1S+vObxKzbWWYuPO/7nt4kYW/gA==\"\n},\n\"capture-exit\": {\n\"version\": \"2.0.0\",\n\"dev\": true\n},\n\"vue-simplemde\": {\n- \"version\": \"1.0.6\",\n- \"resolved\": \"https://registry.npmjs.org/vue-simplemde/-/vue-simplemde-1.0.6.tgz\",\n- \"integrity\": \"sha512-ahm0nmEZM9bY5ofk/te8CKWHWbjd1l2lOXUIomRtExVrpn4/ZvynBpLCll9L+IlV49vWl0iMFc90/bXUecwEsw==\",\n+ \"version\": \"1.1.1\",\n+ \"resolved\": \"https://registry.npmjs.org/vue-simplemde/-/vue-simplemde-1.1.1.tgz\",\n+ \"integrity\": \"sha512-mLYlUpYlacXeYWd25BTEFIUZ0NhlrdNjWZdF9GfD3VASeSOPUF21ePnb0zoda11Jx52Nj5HndPwKyu6QY2iahw==\",\n\"requires\": {\n\"marked\": \"*\",\n\"simplemde\": \"*\"\n"
},
{
"change_type": "MODIFY",
"old_path": "package.json",
"new_path": "package.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.29\",\n+ \"version\": \"4.0.0-rc.30\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n\"bootbox\": \"^5.4.0\",\n\"bootstrap\": \"^4.5.0\",\n\"browserslist\": \"^4.13.0\",\n- \"caniuse-lite\": \"^1.0.30001097\",\n+ \"caniuse-lite\": \"^1.0.30001103\",\n\"codemirror\": \"^5.55.0\",\n\"dropzone\": \"^5.7.1\",\n\"flagpack\": \"^1.0.5\",\n\"vue\": \"^2.6.11\",\n\"vue-flatpickr-component\": \"^8.1.5\",\n\"vue-multiselect\": \"^2.1.6\",\n- \"vue-simplemde\": \"^1.0\",\n+ \"vue-simplemde\": \"^1.1.1\",\n\"vue-trumbowyg\": \"^3.6.0\",\n\"vuedraggable\": \"^2.24.0\",\n\"vuex\": \"^3.5.1\",\n\"zxcvbn\": \"^4.4.2\"\n},\n\"devDependencies\": {\n- \"@babel/core\": \"^7.10.4\",\n+ \"@babel/core\": \"^7.10.5\",\n\"@babel/plugin-transform-regenerator\": \"^7.10.4\",\n- \"@babel/plugin-transform-runtime\": \"^7.10.4\",\n+ \"@babel/plugin-transform-runtime\": \"^7.10.5\",\n\"@babel/polyfill\": \"^7.10.4\",\n\"@babel/preset-env\": \"^7.10.4\",\n- \"@fortawesome/fontawesome-free\": \"^5.13.1\",\n+ \"@fortawesome/fontawesome-free\": \"^5.14.0\",\n\"@symfony/webpack-encore\": \"^0.30.2\",\n\"@vue/test-utils\": \"^1.0.3\",\n\"ajv-keywords\": \"^3.5.1\",\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Prepare release 4.0.0-rc.30
|
95,144 |
20.07.2020 10:20:58
| -7,200 |
e74cbcd249a625283122744e29dc8dffea8436ab
|
We were a bit overzealous in removing the compilerpass. We _do_ need `packages/bolt.yaml`.
|
[
{
"change_type": "ADD",
"old_path": null,
"new_path": "src/Extension/ExtensionCompilerPass.php",
"diff": "+<?php\n+\n+declare(strict_types=1);\n+\n+namespace Bolt\\Extension;\n+\n+use Bolt\\Common\\Str;\n+use Composer\\Package\\PackageInterface;\n+use ComposerPackages\\Types;\n+use Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\n+use Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n+use Symfony\\Component\\Yaml\\Yaml;\n+use Webmozart\\PathUtil\\Path;\n+\n+class ExtensionCompilerPass implements CompilerPassInterface\n+{\n+ /** string */\n+ private $projectDir;\n+\n+ public function process(ContainerBuilder $container): void\n+ {\n+ if ($container->has(ExtensionRegistry::class) === false) {\n+ return;\n+ }\n+\n+ $registry = $container->findDefinition(ExtensionRegistry::class);\n+ $packages = array_keys($container->findTaggedServiceIds(ExtensionInterface::CONTAINER_TAG));\n+ $this->projectDir = $container->getParameter('kernel.project_dir');\n+\n+ /* @see ExtensionRegistry::addCompilerPass() */\n+ $registry->addMethodCall('addCompilerPass', [$packages]);\n+\n+ // Rebuild our own `services_bolt.yml` file.\n+ $this->buildServices($packages);\n+ }\n+\n+ public function buildServices(array $packages): void\n+ {\n+ $services = [\n+ 'services' => [\n+ '_defaults' => [\n+ 'autowire' => true,\n+ 'autoconfigure' => true,\n+ ],\n+ ],\n+ ];\n+\n+ $packages = $this->addComposerPackages($packages);\n+\n+ foreach ($packages as $package) {\n+ [$name, $service] = $this->createService($package);\n+ if ($name) {\n+ $services['services'][$name] = $service;\n+ }\n+ }\n+\n+ $yaml = \"# This file is auto-generated by Bolt. Do not modify.\\n\\n\";\n+ $yaml .= Yaml::dump($services, 3);\n+\n+ $filename = $this->projectDir . '/config/services_bolt.yaml';\n+ file_put_contents($filename, $yaml);\n+ }\n+\n+ private function createService(string $package): array\n+ {\n+ if (! class_exists($package)) {\n+ return [null, null];\n+ }\n+\n+ $reflection = new \\ReflectionClass($package);\n+\n+ $namespace = Str::removeLast($reflection->getName(), Str::splitLast($reflection->getName(), '\\\\'));\n+ $path = Path::makeRelative(dirname($reflection->getFileName()), $this->projectDir . '/foo');\n+\n+ return [$namespace, [\n+ 'resource' => $path . '/*',\n+ 'exclude' => $path . '/{Entity,Exception,Exclude}',\n+ ]];\n+ }\n+\n+ private function addComposerPackages(array $packages): array\n+ {\n+ $composerPackages = Types::get('bolt-extension');\n+\n+ /** @var PackageInterface $package */\n+ foreach ($composerPackages as $package) {\n+ $extra = $package->getExtra();\n+\n+ if (array_key_exists('entrypoint', $extra)) {\n+ $packages[] = $extra['entrypoint'];\n+ }\n+ }\n+\n+ return array_unique($packages);\n+ }\n+}\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Kernel.php",
"new_path": "src/Kernel.php",
"diff": "@@ -6,6 +6,7 @@ namespace Bolt;\nuse Bolt\\Configuration\\Parser\\ContentTypesParser;\nuse Bolt\\Configuration\\Parser\\TaxonomyParser;\n+use Bolt\\Extension\\ExtensionCompilerPass;\nuse Bolt\\Extension\\ExtensionInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;\nuse Symfony\\Component\\Config\\FileLocator;\n@@ -43,6 +44,9 @@ class Kernel extends BaseKernel\n$container\n->registerForAutoconfiguration(ExtensionInterface::class)\n->addTag(ExtensionInterface::CONTAINER_TAG);\n+\n+ // Process our CompilerPass, build `config/packages/bolt.yaml`\n+ $container->addCompilerPass(new ExtensionCompilerPass());\n}\nprotected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
We were a bit overzealous in removing the compilerpass. We _do_ need `packages/bolt.yaml`.
|
95,144 |
20.07.2020 12:01:16
| -7,200 |
80a81178f3f66f6ca4055c062bfee3b6694788ad
|
Minor changes, revert how services_bolt.yaml is handled.
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"behat/mink-selenium2-driver\": \"^1.4\",\n\"behatch/contexts\": \"^3.2\",\n\"bobdenotter/configuration-notices\": \"^1.0\",\n- \"bobdenotter/weatherwidget\": \"^1.0\",\n+ \"bobdenotter/weatherwidget\": \"^1.1\",\n\"bolt/newswidget\": \"^1.1\",\n\"coduo/php-matcher\": \"^4.0\",\n\"dama/doctrine-test-bundle\": \"^6.2.0\",\n"
},
{
"change_type": "DELETE",
"old_path": "config/packages/bolt.yaml",
"new_path": null,
"diff": "-# This file is auto-generated by Bolt. Do not modify.\n-\n-services:\n- _defaults:\n- autowire: true\n- autoconfigure: true\n- AcmeCorp\\ReferenceExtension\\:\n- resource: '../../vendor/acmecorp/reference-extension/src/*'\n- exclude: '../../vendor/acmecorp/reference-extension/src/{Entity,Exception}'\n- BobdenOtter\\ConfigurationNotices\\:\n- resource: '../../vendor/bobdenotter/configuration-notices/src/*'\n- exclude: '../../vendor/bobdenotter/configuration-notices/src/{Entity,Exception}'\n- BobdenOtter\\WeatherWidget\\:\n- resource: '../../vendor/bobdenotter/weatherwidget/src/*'\n- exclude: '../../vendor/bobdenotter/weatherwidget/src/{Entity,Exception}'\n- Bolt\\NewsWidget\\:\n- resource: '../../vendor/bolt/newswidget/src/*'\n- exclude: '../../vendor/bolt/newswidget/src/{Entity,Exception}'\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "config/packages/extension_reference-extension.yaml",
"diff": "+# An example of a services.yaml file in an extension\n\\ No newline at end of file\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "config/routes/extension_reference-extension.yaml",
"diff": "+# An example of a routes.yaml file in an extension\n\\ No newline at end of file\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "config/services_bolt.yaml",
"diff": "+# This file is auto-generated by Bolt. Do not modify.\n+\n+services:\n+ _defaults:\n+ autowire: true\n+ autoconfigure: true\n+ AcmeCorp\\ReferenceExtension\\:\n+ resource: '../vendor/acmecorp/reference-extension/src/*'\n+ exclude: '../vendor/acmecorp/reference-extension/src/{Entity,Exception}'\n+ BobdenOtter\\ConfigurationNotices\\:\n+ resource: '../vendor/bobdenotter/configuration-notices/src/*'\n+ exclude: '../vendor/bobdenotter/configuration-notices/src/{Entity,Exception}'\n+ BobdenOtter\\WeatherWidget\\:\n+ resource: '../vendor/bobdenotter/weatherwidget/src/*'\n+ exclude: '../vendor/bobdenotter/weatherwidget/src/{Entity,Exception}'\n+ Bolt\\NewsWidget\\:\n+ resource: '../vendor/bolt/newswidget/src/*'\n+ exclude: '../vendor/bolt/newswidget/src/{Entity,Exception}'\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Command/ExtensionsConfigureCommand.php",
"new_path": "src/Command/ExtensionsConfigureCommand.php",
"diff": "@@ -56,12 +56,13 @@ class ExtensionsConfigureCommand extends Command\n// @todo: Combine this with Bolt\\Extension\\ConfigTrait.php\nforeach ($packages as $package) {\n$path = $this->getPackagePath($package);\n+ $origin = $this->getRelativePath($path) . '/config/config.yaml';\n- $configPath = $this->getRelativePath($path) . '/config/config.yaml';\n- if (file_exists($configPath)) {\n[$namespace, $name] = explode('\\\\', mb_strtolower($this->getNamespace($package)));\n$destination = $this->getExtensionConfigPath($namespace, $name);\n- file_put_contents($destination, file_get_contents($configPath));\n+\n+ if (file_exists($origin) && ! file_exists($destination)) {\n+ file_put_contents($destination, file_get_contents($origin));\n}\n}\n}\n@@ -74,18 +75,18 @@ class ExtensionsConfigureCommand extends Command\nforeach ($packages as $package) {\n$path = $this->getPackagePath($package);\n- $extensionRoutesPath = $this->getRelativePath($path) . '/config/routes.yaml';\n- if (file_exists($extensionRoutesPath)) {\n+ $sourceRoutes = $this->getRelativePath($path) . '/config/routes.yaml';\n+ if (file_exists($sourceRoutes)) {\n$destination = $this->getExtensionRoutesPath($path);\n$oldExtensionsRoutes = array_diff($oldExtensionsRoutes, [$destination]);\n- file_put_contents($destination, file_get_contents($extensionRoutesPath));\n+ file_put_contents($destination, file_get_contents($sourceRoutes));\n}\n- $extensionServicesPath = $this->getRelativePath($path) . '/../config.services.yaml';\n- if (file_exists($extensionServicesPath)) {\n+ $sourceServices = $this->getRelativePath($path) . '/config/services.yaml';\n+ if (file_exists($sourceServices)) {\n$destination = $this->getExtensionServicesPath($path);\n$oldExtensionsServices = array_diff($oldExtensionsServices, [$destination]);\n- file_put_contents($destination, file_get_contents($extensionRoutesPath));\n+ file_put_contents($destination, file_get_contents($sourceServices));\n}\n}\n@@ -116,7 +117,7 @@ class ExtensionsConfigureCommand extends Command\n*/\nprivate function getExtensionServicesPath(string $path = '*'): string\n{\n- return $this->projectDir . '/config/packages/services_extension_' . Str::splitLast($path, '/') . '.yaml';\n+ return $this->projectDir . '/config/packages/extension_' . Str::splitLast($path, '/') . '.yaml';\n}\nprivate function getExtensionConfigPath(string $namespace, string $name): string\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Extension/ExtensionCompilerPass.php",
"new_path": "src/Extension/ExtensionCompilerPass.php",
"diff": "@@ -57,7 +57,7 @@ class ExtensionCompilerPass implements CompilerPassInterface\n$yaml = \"# This file is auto-generated by Bolt. Do not modify.\\n\\n\";\n$yaml .= Yaml::dump($services, 3);\n- $filename = $this->projectDir . '/config/packages/bolt.yaml';\n+ $filename = $this->projectDir . '/config/services_bolt.yaml';\nfile_put_contents($filename, $yaml);\n}\n@@ -91,6 +91,8 @@ class ExtensionCompilerPass implements CompilerPassInterface\n}\n}\n+ sort($packages);\n+\nreturn array_unique($packages);\n}\n@@ -98,7 +100,7 @@ class ExtensionCompilerPass implements CompilerPassInterface\n{\n$reflection = new \\ReflectionClass($package);\n- // We add the `/foo/bar` to make the path start with `../../`\n- return Path::makeRelative(dirname($reflection->getFileName()), $this->projectDir . '/foo/bar');\n+ // We add the `/foo` to make the path start with `../`\n+ return Path::makeRelative(dirname($reflection->getFileName()), $this->projectDir . '/foo');\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Kernel.php",
"new_path": "src/Kernel.php",
"diff": "@@ -45,7 +45,7 @@ class Kernel extends BaseKernel\n->registerForAutoconfiguration(ExtensionInterface::class)\n->addTag(ExtensionInterface::CONTAINER_TAG);\n- // Process our CompilerPass, build `config/packages/bolt.yaml`\n+ // Process our CompilerPass, build `config/services_bolt.yaml`\n$container->addCompilerPass(new ExtensionCompilerPass());\n}\n@@ -58,6 +58,14 @@ class Kernel extends BaseKernel\n$loader->load($confDir . '/{packages}/*' . self::CONFIG_EXTS, 'glob');\n$loader->load($confDir . '/{packages}/' . $this->environment . '/*' . self::CONFIG_EXTS, 'glob');\n+\n+ try {\n+ $loader->load($confDir . '/{services}_bolt' . self::CONFIG_EXTS, 'glob');\n+ } catch (\\Throwable $e) {\n+ // Ignore errors. The file will be updated on next `cache:clear` or whenever\n+ // the container gets refreshed\n+ }\n+\n$loader->load($confDir . '/{services}' . self::CONFIG_EXTS, 'glob');\n$loader->load($confDir . '/{services}_' . $this->environment . self::CONFIG_EXTS, 'glob');\n"
},
{
"change_type": "MODIFY",
"old_path": "symfony.lock",
"new_path": "symfony.lock",
"diff": "\"version\": \"1.0.2\"\n},\n\"bobdenotter/weatherwidget\": {\n- \"version\": \"1.1.0\"\n+ \"version\": \"1.1.1\"\n},\n\"bolt/common\": {\n\"version\": \"2.1.5\"\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Minor changes, revert how services_bolt.yaml is handled.
|
95,144 |
21.07.2020 09:57:11
| -7,200 |
7ac77e4678042c91dc11cd6b502fc6da3f206325
|
Fix Errorcontroller adding Exception when it shouldn't.
|
[
{
"change_type": "MODIFY",
"old_path": "src/Controller/ErrorController.php",
"new_path": "src/Controller/ErrorController.php",
"diff": "@@ -48,7 +48,11 @@ class ErrorController extends SymfonyErrorController\n$code = Response::HTTP_INTERNAL_SERVER_ERROR;\n}\n+ try {\n$twig->addGlobal('exception', $exception);\n+ } catch (\\LogicException $e) {\n+ // Fine! We'll just _not_ add the exception to the global scope!\n+ }\nif ($code === Response::HTTP_SERVICE_UNAVAILABLE || $this->isMaintenanceEnabled($code)) {\n$twig->addGlobal('exception', $exception);\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Fix Errorcontroller adding Exception when it shouldn't.
|
95,144 |
22.07.2020 15:55:38
| -7,200 |
66338cdb0930e9b9acfd5ca609d3a3484192757a
|
Prepare release 4.0.0-rc.32
|
[
{
"change_type": "MODIFY",
"old_path": "assets/scss/modules/admin/_toolbar.scss",
"new_path": "assets/scss/modules/admin/_toolbar.scss",
"diff": "&__filter {\nmargin-left: auto;\nmax-width: 400px;\n+ margin-right: 1rem;\n}\n&__site {\n"
},
{
"change_type": "MODIFY",
"old_path": "package-lock.json",
"new_path": "package-lock.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.30\",\n+ \"version\": \"4.0.0-rc.32\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n}\n},\n\"caniuse-lite\": {\n- \"version\": \"1.0.30001103\",\n- \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001103.tgz\",\n- \"integrity\": \"sha512-EJkTPrZrgy712tjZ7GQDye5A67SQOyNS6X9b6GS/e5QFu5Renv5qfkx3GHq1S+vObxKzbWWYuPO/7nt4kYW/gA==\"\n+ \"version\": \"1.0.30001105\",\n+ \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001105.tgz\",\n+ \"integrity\": \"sha512-JupOe6+dGMr7E20siZHIZQwYqrllxotAhiaej96y6x00b/48rPt42o+SzOSCPbrpsDWvRja40Hwrj0g0q6LZJg==\"\n},\n\"capture-exit\": {\n\"version\": \"2.0.0\",\n\"dev\": true\n},\n\"codemirror\": {\n- \"version\": \"5.55.0\",\n- \"resolved\": \"https://registry.npmjs.org/codemirror/-/codemirror-5.55.0.tgz\",\n- \"integrity\": \"sha512-TumikSANlwiGkdF/Blnu/rqovZ0Y3Jh8yy9TqrPbSM0xxSucq3RgnpVDQ+mD9q6JERJEIT2FMuF/fBGfkhIR/g==\"\n+ \"version\": \"5.56.0\",\n+ \"resolved\": \"https://registry.npmjs.org/codemirror/-/codemirror-5.56.0.tgz\",\n+ \"integrity\": \"sha512-MfKVmYgifXjQpLSgpETuih7A7WTTIsxvKfSLGseTY5+qt0E1UD1wblZGM6WLenORo8sgmf+3X+WTe2WF7mufyw==\"\n},\n\"codemirror-spell-checker\": {\n\"version\": \"1.1.2\",\n}\n},\n\"regenerator-runtime\": {\n- \"version\": \"0.13.5\",\n- \"resolved\": \"https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz\",\n- \"integrity\": \"sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==\"\n+ \"version\": \"0.13.6\",\n+ \"resolved\": \"https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.6.tgz\",\n+ \"integrity\": \"sha512-GmwlGiazQEbOwQWDdbbaP10i15pGtScYWLbMZuu+RKRz0cZ+g8IUONazBnaZqe7j1670IV1HgE4/8iy7CQPf4Q==\"\n},\n\"regenerator-transform\": {\n\"version\": \"0.14.5\",\n\"dev\": true\n},\n\"vue-simplemde\": {\n- \"version\": \"1.1.1\",\n- \"resolved\": \"https://registry.npmjs.org/vue-simplemde/-/vue-simplemde-1.1.1.tgz\",\n- \"integrity\": \"sha512-mLYlUpYlacXeYWd25BTEFIUZ0NhlrdNjWZdF9GfD3VASeSOPUF21ePnb0zoda11Jx52Nj5HndPwKyu6QY2iahw==\",\n+ \"version\": \"1.1.2\",\n+ \"resolved\": \"https://registry.npmjs.org/vue-simplemde/-/vue-simplemde-1.1.2.tgz\",\n+ \"integrity\": \"sha512-PuiReBtdMUzBnmkcoybMEHgTQ2DxRqWTSJR+UItMVH3WUDjlCKTgENuq6krE//UU7C62lWrUOOfOmD5xIK4TSA==\",\n\"requires\": {\n\"marked\": \"*\",\n\"simplemde\": \"*\"\n"
},
{
"change_type": "MODIFY",
"old_path": "package.json",
"new_path": "package.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.30\",\n+ \"version\": \"4.0.0-rc.32\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n\"bootbox\": \"^5.4.0\",\n\"bootstrap\": \"^4.5.0\",\n\"browserslist\": \"^4.13.0\",\n- \"caniuse-lite\": \"^1.0.30001103\",\n- \"codemirror\": \"^5.55.0\",\n+ \"caniuse-lite\": \"^1.0.30001105\",\n+ \"codemirror\": \"^5.56.0\",\n\"dropzone\": \"^5.7.1\",\n\"flagpack\": \"^1.0.5\",\n\"hotkeys-js\": \"^3.8.1\",\n\"vue\": \"^2.6.11\",\n\"vue-flatpickr-component\": \"^8.1.5\",\n\"vue-multiselect\": \"^2.1.6\",\n- \"vue-simplemde\": \"^1.1.1\",\n+ \"vue-simplemde\": \"^1.1.2\",\n\"vue-trumbowyg\": \"^3.6.0\",\n\"vuedraggable\": \"^2.24.0\",\n\"vuex\": \"^3.5.1\",\n\"postcss-loader\": \"^3.0.0\",\n\"postcss-preset-env\": \"^6.7.0\",\n\"prettier\": \"^1.19.1\",\n- \"regenerator-runtime\": \"^0.13.5\",\n+ \"regenerator-runtime\": \"^0.13.6\",\n\"sass-loader\": \"^8.0\",\n\"source-sans-pro\": \"^3.6.0\",\n\"stylelint\": \"^13.6.1\",\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Prepare release 4.0.0-rc.32
|
95,144 |
22.07.2020 18:59:43
| -7,200 |
75acaedbfd90280195d33edbf0123e3302396b9e
|
Pass on Query parameters to subrequest from Homepage
|
[
{
"change_type": "MODIFY",
"old_path": "src/Controller/Frontend/HomepageController.php",
"new_path": "src/Controller/Frontend/HomepageController.php",
"diff": "@@ -22,8 +22,8 @@ class HomepageController extends TwigAwareController implements FrontendZoneInte\npublic function homepage(ContentRepository $contentRepository): Response\n{\n$homepage = $this->config->get('theme/homepage') ?: $this->config->get('general/homepage');\n- $params = explode('/', $homepage);\n- $contentType = $this->config->get('contenttypes/' . $params[0]);\n+ $homepageTokens = explode('/', $homepage);\n+ $contentType = $this->config->get('contenttypes/' . $homepageTokens[0]);\nif (! $contentType) {\n$message = sprintf('Homepage is set to `%s`, but that ContentType is not defined', $homepage);\n@@ -32,19 +32,19 @@ class HomepageController extends TwigAwareController implements FrontendZoneInte\n}\n// Perhaps we need a listing instead. If so, forward the Request there\n- if (! $contentType->get('singleton') && ! isset($params[1])) {\n- return $this->forward('Bolt\\Controller\\Frontend\\ListingController::listing', [\n- 'contentTypeSlug' => $homepage,\n- ]);\n+ if (! $contentType->get('singleton') && ! isset($homepageTokens[1])) {\n+ $params = array_merge($this->request->query->all(), ['contentTypeSlug' => $homepage]);\n+\n+ return $this->forward('Bolt\\Controller\\Frontend\\ListingController::listing', $params);\n}\n// @todo Get $homepage content, using \"setcontent\"\n$record = $contentRepository->findOneBy([\n'contentType' => $contentType->get('slug'),\n- 'id' => $params[1] ?? 1,\n+ 'id' => $homepageTokens[1] ?? 1,\n]);\nif (! $record) {\n- $record = $contentRepository->findOneBy(['contentType' => $params[0]]);\n+ $record = $contentRepository->findOneBy(['contentType' => $homepageTokens[0]]);\n}\n$templates = $this->templateChooser->forHomepage();\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Pass on Query parameters to subrequest from Homepage
|
95,144 |
22.07.2020 19:01:46
| -7,200 |
263136951211907fccfd858e4143f491fc6a4511
|
Update htaccess, according to SF 5 defaults
|
[
{
"change_type": "MODIFY",
"old_path": "public/.htaccess",
"new_path": "public/.htaccess",
"diff": "@@ -9,7 +9,7 @@ DirectoryIndex index.php\n# feature in your server configuration. Uncomment the following line if you\n# install assets as symlinks or if you experience problems related to symlinks\n# when compiling LESS/Sass/CoffeScript assets.\n-# Options FollowSymlinks\n+# Options +FollowSymlinks\n# Disabling MultiViews prevents unwanted negotiation, e.g. \"/index\" should not resolve\n# to the front controller \"/index.php\" but be rewritten to \"/index.php/index\".\n@@ -27,12 +27,12 @@ DirectoryIndex index.php\n# work in environments without path prefix as well, providing a safe, one-size\n# fits all solution. But as you do not need it in this case, you can comment\n# the following 2 lines to eliminate the overhead.\n- RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\\2$\n- RewriteRule ^(.*) - [E=BASE:%1]\n+ RewriteCond %{REQUEST_URI}::$0 ^(/.+)/(.*)::\\2$\n+ RewriteRule .* - [E=BASE:%1]\n# Sets the HTTP_AUTHORIZATION header removed by Apache\n- RewriteCond %{HTTP:Authorization} .\n- RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\n+ RewriteCond %{HTTP:Authorization} .+\n+ RewriteRule ^ - [E=HTTP_AUTHORIZATION:%0]\n# Redirect to URI without front controller to prevent duplicate content\n# (with and without `/index.php`). Only do this redirect on the initial\n@@ -45,16 +45,13 @@ DirectoryIndex index.php\n# - disable this feature by commenting the following 2 lines or\n# - use Apache >= 2.3.9 and replace all L flags by END flags and remove the\n# following RewriteCond (best solution)\n- RewriteCond %{ENV:REDIRECT_STATUS} ^$\n+ RewriteCond %{ENV:REDIRECT_STATUS} =\"\"\nRewriteRule ^index\\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]\n# If the requested filename exists, simply serve it.\n# We only want to let Apache serve files and not directories.\n- RewriteCond %{REQUEST_FILENAME} -f\n- RewriteRule ^ - [L]\n-\n# Rewrite all other queries to the front controller.\n- RewriteCond %{REQUEST_URI} !=/favicon.ico\n+ RewriteCond %{REQUEST_FILENAME} !-f\nRewriteRule ^ %{ENV:BASE}/index.php [L]\n</IfModule>\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Update htaccess, according to SF 5 defaults
|
95,144 |
23.07.2020 12:30:27
| -7,200 |
ff9f9e26476e0b2ee0152025def84b31f83fbc98
|
Allow for custom `500 Internal Server Error` pages.
|
[
{
"change_type": "MODIFY",
"old_path": "config/bolt/config.yaml",
"new_path": "config/bolt/config.yaml",
"diff": "-# Note: Database setup is best done in ENV variables. See the file `.env`\n-# in the project root.\n+# Note: Database setup is done in ENV variables. See `.env` in the project root.\n# The name of the website\nsitename: Bolt Core Git Clone\npayoff: The amazing payoff goes here\n-secret: '%env(APP_SECRET)%'\n-\n# The theme to use.\n#\n# Dont edit the provided templates directly, because they _will_ get updated\n# in next releases. If you wish to modify a default theme, copy its folder, and\n# change the name here accordingly.\ntheme: skeleton\n-#theme: bolt-tufte-theme\n# Set the timezone to be used on the website. For a list of valid timezone\n# settings, see: http://php.net/manual/en/timezones.php\n@@ -23,13 +19,6 @@ theme: skeleton\n# format settings, see: https://www.php.net/manual/en/function.date.php\ndate_format: 'F j, Y H:i'\n-# Set maintenance mode on or off.\n-#\n-# The default for the Maintenance mode (503) page. Can be an (array of) template\n-# names or identifiers for records, which will be tried until a match is found.\n-maintenance_mode: false\n-maintenance: [ blocks/503-maintenance-mode, 'helpers/page_503.html.twig' ]\n-\n# The hour of the day for the internal cron task scheduler to run daily, weekly,\n# monthly and yearly jobs.\n#\n@@ -64,14 +53,29 @@ omit_backgrounds: true\nhomepage: homepage\nhomepage_template: index.twig\n-# The default content for the 404 page. Can be an (array of) template names or\n-# identifiers for records, which will be tried until a match is found.\n+# The default content for the \"Not Found\" (404) page. Can be an (array of) template\n+# names or identifiers for records, which will be tried until a match is found.\nnotfound: [ blocks/404-not-found, 'helpers/page_404.html.twig' ]\n-# The default content for the 403 page. Can be an (array of) template names or\n-# identifiers for records, which will be tried until a match is found.\n+# Toggle maintenance mode on or off. Note: If you're logged in, you'll still see\n+# the website as usual. Use an incognito window to see the \"maintenance\" page.\n+maintenance_mode: false\n+\n+# The default for the \"Maintenance mode\" (503) page. Can be an (array of) template\n+# names or identifiers for records, which will be tried until a match is found.\n+maintenance: [ blocks/503-maintenance-mode, 'helpers/page_503.html.twig' ]\n+\n+# The default content for the \"Forbidden\" (403) page. Can be an (array of) template\n+# names or identifiers for records, which will be tried until a match is found.\nforbidden: [ blocks/403-forbidden, 'helpers/page_403.html.twig' ]\n+# The default content for the \"Internal Server Error\" (500) page. Can be an\n+# (array of) template names or identifiers for records.\n+# Note: Only used in `APP_ENV=prod` mode. You're advised to keep this as simple\n+# as possible, because if an error occurs in this template, it can not be\n+# handled, and you'll have a bad time debugging it!\n+internal_server_error: [ 'helpers/page_500.html.twig' ]\n+\n# The default template and amount of records to use for listing-pages on the\n# site.\n#\n@@ -104,11 +108,6 @@ listing_sort: datepublish DESC\n# example in `type: select`.\nmaximum_listing_select: 1000\n-# Because of limitations on how the underlying database queries work, there are\n-# only two options for sorting on taxonomies. ASC for roughly \"oldest first\"\n-# and DESC for roughly newest first.\n-taxonomy_sort: DESC\n-\n# Template for showing the search results. If not defined, uses the settings for\n# listing_template and listing_records.\n#\n@@ -225,3 +224,5 @@ wysiwyg:\n# Enforcing the use of SSL. If set, all pages will enforce an SSL connection,\n# and redirect to HTTPS if you attempt to visit plain HTTP pages.\n# enforce_ssl: true\n+\n+secret: '%env(APP_SECRET)%'\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Controller/ErrorController.php",
"new_path": "src/Controller/ErrorController.php",
"diff": "@@ -7,6 +7,8 @@ namespace Bolt\\Controller;\nuse Bolt\\Configuration\\Config;\nuse Bolt\\Controller\\Frontend\\DetailControllerInterface;\nuse Bolt\\Controller\\Frontend\\TemplateController;\n+use Symfony\\Component\\DependencyInjection\\Container;\n+use Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ErrorController as SymfonyErrorController;\n@@ -26,7 +28,10 @@ class ErrorController extends SymfonyErrorController\n/** @var DetailControllerInterface */\nprivate $detailController;\n- public function __construct(HttpKernelInterface $httpKernel, Config $config, DetailControllerInterface $detailController, TemplateController $templateController, ErrorRendererInterface $errorRenderer)\n+ /** @var Container */\n+ private $container;\n+\n+ public function __construct(HttpKernelInterface $httpKernel, Config $config, DetailControllerInterface $detailController, TemplateController $templateController, ErrorRendererInterface $errorRenderer, ContainerInterface $container)\n{\n$this->config = $config;\n$this->templateController = $templateController;\n@@ -34,6 +39,7 @@ class ErrorController extends SymfonyErrorController\nparent::__construct($httpKernel, $templateController, $errorRenderer);\n$this->detailController = $detailController;\n+ $this->container = $container;\n}\n/**\n@@ -68,6 +74,12 @@ class ErrorController extends SymfonyErrorController\nreturn $this->showForbidden();\n}\n+ $prod = ($this->container->getParameter('kernel.environment') == \"prod\");\n+\n+ if ($code === Response::HTTP_INTERNAL_SERVER_ERROR && $prod && $this->config->get('general/internal_server_error')) {\n+ return $this->showInternalServerError();\n+ }\n+\n// If not a 404, we'll let Symfony handle it as usual.\nreturn parent::__invoke($exception);\n}\n@@ -98,6 +110,19 @@ class ErrorController extends SymfonyErrorController\nreturn new Response('403: Forbidden (and there was no proper page configured to display)');\n}\n+ private function showInternalServerError(): Response\n+ {\n+ foreach ($this->config->get('general/internal_server_error') as $item) {\n+ $output = $this->attemptToRender($item);\n+\n+ if ($output instanceof Response) {\n+ return $output;\n+ }\n+ }\n+\n+ return new Response('500: Internal Server Error (and there was no proper page configured to display)');\n+ }\n+\nprivate function showMaintenance(): Response\n{\nforeach ($this->config->get('general/maintenance') as $item) {\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "templates/helpers/page_403.html.twig",
"diff": "+<!DOCTYPE html>\n+<html lang=\"en\">\n+<head>\n+ <meta charset=\"utf-8\">\n+ <title>{{ exception.statusCode }} :: {{ exception.message }}</title>\n+ <link rel=\"stylesheet\" href=\"https://unpkg.com/purecss@1.0.1/build/pure-min.css\" integrity=\"sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47\" crossorigin=\"anonymous\">\n+</head>\n+\n+<body id=\"home\">\n+\n+ <div style=\"padding: 2rem 4rem;\">\n+\n+ <h1>{{ exception.statusCode }} :: {{ exception.message }} </h1>\n+\n+ <p>In <code>{{ exception.file|split('/')|slice(-2)|join('/') }}</code></p>\n+\n+ {# will only be shown if debug is on. #}\n+ {{ dump(exception) }}\n+\n+ </div>\n+</body>\n+</html>\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "templates/helpers/page_500.html.twig",
"diff": "+<!DOCTYPE html>\n+<html lang=\"en\">\n+<head>\n+ <meta charset=\"utf-8\">\n+ <title>500 :: Internal Server Error</title>\n+ <link rel=\"stylesheet\" href=\"https://unpkg.com/purecss@1.0.1/build/pure-min.css\" integrity=\"sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47\" crossorigin=\"anonymous\">\n+</head>\n+\n+<body id=\"home\">\n+\n+ <div style=\"padding: 2rem 4rem;\">\n+\n+ <h1>500 :: Internal Server Error</h1>\n+\n+ <h2>The server returned a <code>500</code> status code.</h2>\n+\n+ <p>\n+ Something is broken. Please let us know what you were doing when this error occurred.\n+ We will fix it as soon as possible. Sorry for any inconvenience caused.\n+ </p>\n+\n+ </div>\n+</body>\n+</html>\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Allow for custom `500 Internal Server Error` pages.
|
95,144 |
23.07.2020 14:41:24
| -7,200 |
cee4df87883bf89441a776cce104b986f39adacf
|
Make Sanitiser obey allowed tags and attributes from `config.yaml`
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"drupol/composer-packages\": \"^1.1\",\n\"embed/embed\": \"^3.4\",\n\"erusev/parsedown\": \"^1.7\",\n- \"ezyang/htmlpurifier\": \"^4.12\",\n\"fzaninotto/faker\": \"^1.9\",\n\"knplabs/doctrine-behaviors\": \"^2.0.3\",\n\"knplabs/knp-menu-bundle\": \"^3.0\",\n\"ua-parser/uap-php\": \"^3.9\",\n\"webimpress/safe-writer\": \"^2.0\",\n\"webmozart/path-util\": \"^2.3\",\n- \"webonyx/graphql-php\": \"^0.13\"\n+ \"webonyx/graphql-php\": \"^0.13\",\n+ \"xemlock/htmlpurifier-html5\": \"^0.1.11\"\n},\n\"conflict\": {\n\"symfony/symfony\": \"*\"\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/ContentExtrasTrait.php",
"new_path": "src/Entity/ContentExtrasTrait.php",
"diff": "@@ -45,4 +45,9 @@ trait ContentExtrasTrait\n'feature' => $this->contentExtension->getSpecialFeature($content),\n]);\n}\n+\n+ public function sanitise(string $string): string\n+ {\n+ return $this->contentExtension->sanitise($string);\n+ }\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field.php",
"new_path": "src/Entity/Field.php",
"diff": "@@ -8,7 +8,6 @@ use ApiPlatform\\Core\\Annotation\\ApiFilter;\nuse ApiPlatform\\Core\\Annotation\\ApiResource;\nuse ApiPlatform\\Core\\Bridge\\Doctrine\\Orm\\Filter\\SearchFilter;\nuse Bolt\\Configuration\\Content\\FieldType;\n-use Bolt\\Utils\\Sanitiser;\nuse Doctrine\\ORM\\Mapping as ORM;\nuse Knp\\DoctrineBehaviors\\Contract\\Entity\\TranslatableInterface;\nuse Knp\\DoctrineBehaviors\\Model\\Translatable\\TranslatableTrait;\n@@ -229,8 +228,7 @@ class Field implements FieldInterface, TranslatableInterface\n$value = $this->getParsedValue();\nif (is_string($value) && $this->getDefinition()->get('sanitise')) {\n- $sanitiser = new Sanitiser();\n- $value = $sanitiser->clean($value);\n+ $value = $this->getContent()->sanitise($value);\n}\nif (is_string($value) && $this->getDefinition()->get('allow_twig')) {\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Twig/ContentExtension.php",
"new_path": "src/Twig/ContentExtension.php",
"diff": "@@ -22,6 +22,7 @@ use Bolt\\Storage\\Query;\nuse Bolt\\Utils\\ContentHelper;\nuse Bolt\\Utils\\Excerpt;\nuse Bolt\\Utils\\Html;\n+use Bolt\\Utils\\Sanitiser;\nuse Pagerfanta\\Pagerfanta;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\HttpFoundation\\Request;\n@@ -79,6 +80,9 @@ class ContentExtension extends AbstractExtension\n/** @var Notifications */\nprivate $notifications;\n+ /** @var Sanitiser */\n+ private $sanitiser;\n+\npublic function __construct(\nUrlGeneratorInterface $urlGenerator,\nContentRepository $contentRepository,\n@@ -91,7 +95,8 @@ class ContentExtension extends AbstractExtension\nTranslatorInterface $translator,\nCanonical $canonical,\nContentHelper $contentHelper,\n- Notifications $notifications\n+ Notifications $notifications,\n+ Sanitiser $sanitiser\n) {\n$this->urlGenerator = $urlGenerator;\n$this->contentRepository = $contentRepository;\n@@ -105,6 +110,7 @@ class ContentExtension extends AbstractExtension\n$this->canonical = $canonical;\n$this->contentHelper = $contentHelper;\n$this->notifications = $notifications;\n+ $this->sanitiser = $sanitiser;\n}\n/**\n@@ -132,6 +138,7 @@ class ContentExtension extends AbstractExtension\nnew TwigFilter('allow_twig', [$this, 'allowTwig'], $env),\nnew TwigFilter('status_options', [$this, 'statusOptions']),\nnew TwigFilter('feature', [$this, 'getSpecialFeature']),\n+ new TwigFilter('sanitise', [$this, 'sanitise']),\n];\n}\n@@ -722,4 +729,9 @@ class ContentExtension extends AbstractExtension\nreturn false;\n}\n+\n+ public function sanitise(string $html)\n+ {\n+ return $this->sanitiser->clean($html);\n+ }\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Utils/Sanitiser.php",
"new_path": "src/Utils/Sanitiser.php",
"diff": "@@ -4,16 +4,34 @@ declare(strict_types=1);\nnamespace Bolt\\Utils;\n+use Bolt\\Configuration\\Config;\n+\nclass Sanitiser\n{\nprivate $purifier;\n- public function __construct()\n+ public function __construct(?Config $config = null)\n{\n- $purifierConfig = \\HTMLPurifier_Config::create([\n- // Disable caching\n+ $purifierConfig = \\HTMLPurifier_HTML5Config::create([\n'Cache.DefinitionImpl' => null,\n+ 'HTML.SafeIframe' => true,\n]);\n+\n+ if ($config) {\n+ $allowedTags = implode(',', $config->get('general/htmlcleaner/allowed_tags')->all());\n+ $allowedAttributes = implode(',', $config->get('general/htmlcleaner/allowed_attributes')->all());\n+ $purifierConfig->set('HTML.AllowedElements', $allowedTags);\n+ $purifierConfig->set('HTML.AllowedAttributes', $allowedAttributes);\n+ }\n+\n+ $definition = $purifierConfig->maybeGetRawHTMLDefinition();\n+ $definition->addElement('super', 'Inline', 'Flow', 'Common', []);\n+ $definition->addElement('sub', 'Inline', 'Flow', 'Common', []);\n+ $definition->addAttribute('a', 'value', 'Text');\n+ $definition->addAttribute('a', 'frameborder', 'Text');\n+ $definition->addAttribute('a', 'allowfullscreen', 'Text');\n+ $definition->addAttribute('a', 'scrolling', 'Text');\n+\n$this->purifier = new \\HTMLPurifier($purifierConfig);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "symfony.lock",
"new_path": "symfony.lock",
"diff": "\"willdurand/negotiation\": {\n\"version\": \"v2.3.1\"\n},\n+ \"xemlock/htmlpurifier-html5\": {\n+ \"version\": \"v0.1.11\"\n+ },\n\"zendframework/zend-code\": {\n\"version\": \"3.4.1\"\n},\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Make Sanitiser obey allowed tags and attributes from `config.yaml`
|
95,144 |
24.07.2020 11:44:12
| -7,200 |
eefe5da4243b545fa492a14aab304371edd39d0e
|
Allow for extensions to add new FieldTypes
|
[
{
"change_type": "MODIFY",
"old_path": "src/Configuration/Content/FieldType.php",
"new_path": "src/Configuration/Content/FieldType.php",
"diff": "@@ -62,6 +62,11 @@ class FieldType extends Collection\n$definition = $contentType;\nforeach ($parents as $parent) {\n+ // @todo Fields that are added by an extension have \"services\" as parent,\n+ // which they shouldn't have. Skip them, but we need to fix this properly.\n+ if (! $definition->get('fields')) {\n+ continue;\n+ }\n$definition = $definition->get('fields')->get($parent, collect([]));\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/content/_fields.html.twig",
"new_path": "templates/content/_fields.html.twig",
"diff": "{% endif %}\n{% if not field.definition.hidden %}\n+ {# Three-step include: first try a 'built-in' fieldtype, then a field added by\n+ an Extension, and fall back to 'generic' field type #}\n{% include [\n'@bolt/_partials/fields/' ~ fielddefinition.type ~ '.html.twig',\n+ '@' ~ fielddefinition.type ~ '/' ~ fielddefinition.type ~ '.html.twig',\n'@bolt/_partials/fields/generic.html.twig'\n] with { 'field' : field } %}\n{% endif %}\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/helpers/_field_blocks.twig",
"new_path": "templates/helpers/_field_blocks.twig",
"diff": "{# Block for other field types, like Geo, Select, Checkbox and others. #}\n{% block extended_fields %}\n- {# Geolocation field #}\n- {% if type == \"geolocation\" and field.latitude|default is not empty %}\n- <img src=\"http://maps.googleapis.com/maps/api/staticmap?center={{ field.latitude }},{{ field.longitude }}&zoom=14&size=617x300&sensor=false&markers={{ field.latitude }},{{ field.longitude }}\">\n- {% endif %}\n-\n{# Special case for 'select' fields: if it's a multiple select, the field is an array. #}\n{% if type == \"select\" and field is not empty %}\n<p><strong>{{ field|label }}: </strong></p>\n{{ field.value.responsive_inline|raw }}\n{% endif %}\n- {# No special case defined for this type of field. We just output them, if it's\n- a simple scalar, and 'dump' them otherwise. #}\n- {% if type in ['datetime', 'date', 'integer', 'float'] and field is not empty %}\n+ {# No special cases defined for other fieldtypes. We just output them if\n+ they're a simple scalar, and 'dump' them otherwise. #}\n+ {% if type not in ['select', 'checkbox', 'embed'] and field is not empty %}\n<p><strong>{{ field|label }}: </strong>\n{% if field is iterable %}\n{{ dump(field) }}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Allow for extensions to add new FieldTypes
|
95,144 |
29.07.2020 08:04:24
| -7,200 |
c56c88a587f3441abc800d9a51df59ac62ffec67
|
Allow extensions to have an `install` method, which is called on installation (to install assets, for example)
|
[
{
"change_type": "MODIFY",
"old_path": "src/Command/ExtensionsConfigureCommand.php",
"new_path": "src/Command/ExtensionsConfigureCommand.php",
"diff": "@@ -48,17 +48,19 @@ class ExtensionsConfigureCommand extends Command\n$this->copyExtensionConfig($extensions);\n}\n+ $this->runExtensionInstall($extensions);\n+\nreturn 0;\n}\n- public function copyExtensionConfig(array $packages): void\n+ private function copyExtensionConfig(array $packages): void\n{\n// @todo: Combine this with Bolt\\Extension\\ConfigTrait.php\nforeach ($packages as $package) {\n$path = $this->getPackagePath($package);\n$origin = $this->getRelativePath($path) . '/config/config.yaml';\n- [$namespace, $name] = explode('\\\\', mb_strtolower($this->getNamespace($package)));\n+ [$namespace, $name] = explode('\\\\', mb_strtolower($this->getNamespace($package). '\\\\'));\n$destination = $this->getExtensionConfigPath($namespace, $name);\nif (file_exists($origin) && ! file_exists($destination)) {\n@@ -67,7 +69,7 @@ class ExtensionsConfigureCommand extends Command\n}\n}\n- public function copyExtensionRoutesAndServices(array $packages): void\n+ private function copyExtensionRoutesAndServices(array $packages): void\n{\n$oldExtensionsRoutes = glob($this->getExtensionRoutesPath());\n$oldExtensionsServices = glob($this->getExtensionServicesPath());\n@@ -97,6 +99,15 @@ class ExtensionsConfigureCommand extends Command\narray_map('unlink', $oldExtensionsServices);\n}\n+ private function runExtensionInstall(array $packages): void\n+ {\n+ foreach ($packages as $package) {\n+ if (method_exists($package, 'install')) {\n+ $package->install();\n+ }\n+ }\n+ }\n+\nprivate function getRelativePath(string $path): string\n{\nreturn Path::makeRelative($path, $this->projectDir);\n@@ -122,7 +133,11 @@ class ExtensionsConfigureCommand extends Command\nprivate function getExtensionConfigPath(string $namespace, string $name): string\n{\n- return $this->projectDir . '/config/extensions/' . $namespace . '-' . $name . '.yaml';\n+ return sprintf(\"%s/config/extensions/%s%s%s.yaml\",\n+ $this->projectDir,\n+ $namespace,\n+ (! empty($name) ? '-' : '' ),\n+ $name);\n}\nprivate function getPackagePath($package): string\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Allow extensions to have an `install` method, which is called on installation (to install assets, for example)
|
95,144 |
29.07.2020 08:06:34
| -7,200 |
1b1da0cc78e230ffc89676cf63ab3be39cb774e3
|
Make `bolt_async_embed` route consistent with others.
|
[
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/Async/EmbedController.php",
"new_path": "src/Controller/Backend/Async/EmbedController.php",
"diff": "@@ -33,7 +33,7 @@ class EmbedController implements AsyncZoneInterface\n}\n/**\n- * @Route(\"/embed\", name=\"bolt_embed\", methods={\"POST\"})\n+ * @Route(\"/embed\", name=\"bolt_async_embed\", methods={\"POST\"})\n*/\npublic function fetchEmbed(): JsonResponse\n{\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/_partials/fields/embed.html.twig",
"new_path": "templates/_partials/fields/embed.html.twig",
"diff": "{% block field %}\n<editor-embed\n- :embedapi='{{ path('bolt_embed')|json_encode }}'\n+ :embedapi='{{ path('bolt_async_embed')|json_encode }}'\n:name='{{ name|json_encode }}'\n:url='{{ field.get('url')|json_encode }}'\n:width='{{ field.get('width')|json_encode }}'\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Make `bolt_async_embed` route consistent with others.
|
95,144 |
31.07.2020 16:31:24
| -7,200 |
ab560199b1c8d009dea5956c11fa972a2fad2eb5
|
Make `getFieldClassname` public so extensions can check if a Field exists
|
[
{
"change_type": "MODIFY",
"old_path": "src/Repository/FieldRepository.php",
"new_path": "src/Repository/FieldRepository.php",
"diff": "@@ -105,7 +105,7 @@ class FieldRepository extends ServiceEntityRepository\n->getResult();\n}\n- private static function getFieldClassname(string $type): ?string\n+ public static function getFieldClassname(string $type): ?string\n{\n// The classname we want\n$classname = ucwords($type) . 'Field';\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Make `getFieldClassname` public so extensions can check if a Field exists
|
95,144 |
01.08.2020 11:47:48
| -7,200 |
514dcacf10c3662856f3a366dbeb29bcfc450811
|
Don't output common Fields twice (in "block output helper")
|
[
{
"change_type": "MODIFY",
"old_path": "src/Repository/FieldRepository.php",
"new_path": "src/Repository/FieldRepository.php",
"diff": "@@ -66,9 +66,9 @@ class FieldRepository extends ServiceEntityRepository\npublic static function factory(Collection $definition, string $name = '', string $label = ''): Field\n{\n$type = $definition['type'];\n-\n$classname = self::getFieldClassname($type);\n- if (class_exists($classname)) {\n+\n+ if ($classname && class_exists($classname)) {\n$field = new $classname();\n} else {\n$field = new Field();\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/helpers/_field_blocks.twig",
"new_path": "templates/helpers/_field_blocks.twig",
"diff": "{# No special cases defined for other fieldtypes. We just output them if\nthey're a simple scalar, and 'dump' them otherwise. #}\n- {% if type not in ['select', 'checkbox', 'embed'] and field is not empty %}\n+ {% if type not in allfields and field is not empty %}\n<p><strong>{{ field|label }}: </strong>\n{% if field is iterable %}\n{{ dump(field) }}\n{% else %}\n- {{ field }}\n+ {{ field.twigValue() }}\n{% endif %}\n</p>\n{% endif %}\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/helpers/_fields.twig",
"new_path": "templates/helpers/_fields.twig",
"diff": "over _all_ the fields, and skipping those in the 'omittedkeys' array. #}\n{% set omittedkeys = ['id', 'slug', 'datecreated', 'datechanged', 'datepublish',\n'datedepublish', 'username', 'status', 'ownerid', 'templatefields'] %}\n+ {% set commonfields = ['html', 'markdown', 'textarea', 'text', 'image', 'file', 'video'] %}\n+ {% set extendedfields = ['select', 'checkbox', 'embed', 'date', 'number'] %}\n+ {% set compoundfields = ['collection', 'filelist', 'imagelist', 'set'] %}\n+ {% set allfields = commonfields|merge(extendedfields)|merge(compoundfields) %}\n{# Skip over the fields that are used in the slug, unless explicitly told not to,\nusing the `skip_uses` parameter. #}\n{% endif %}\n{# Finally, recursively for the collections, sets, filelists and imagelists #}\n- {% if type in ['collection', 'filelist', 'imagelist', 'set'] and (type not in exclude|default([])) %}\n+ {% if type in compoundfields and (type not in exclude|default([])) %}\n{% for field in field.value %}\n{{ block('output_field') }}\n{% endfor %}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Don't output common Fields twice (in "block output helper")
|
95,144 |
01.08.2020 15:58:32
| -7,200 |
dd39a53f1b0697e09375a69ad492c5ce23f0b9ce
|
Update _menu.html.twig
|
[
{
"change_type": "MODIFY",
"old_path": "templates/helpers/_menu.html.twig",
"new_path": "templates/helpers/_menu.html.twig",
"diff": "<a href='{{ item.link }}' {% if item.title is defined %}title='{{ item.title|escape }}'{% endif %}\nclass='{{ class }} {% if item.current %}current {% endif %}{% if item.class is defined %}{{item.class}}{% endif %} index-{{ loop.index }}{% if loop.first %} first{% endif %}{% if loop.last %} last{% endif %}'>\n- {% if item.label is defined %}{{ item.label }}{% else %} - {% endif %}\n+ {{ item.label|default(item.title) }}\n</a>\n{% if item.submenu %}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Update _menu.html.twig
|
95,168 |
04.08.2020 09:38:51
| -7,200 |
fd02763c6eb95044e4dd06526f1e148833e1fac5
|
Move concatenated 'website' string to translation file
|
[
{
"change_type": "MODIFY",
"old_path": "templates/_base/layout.html.twig",
"new_path": "templates/_base/layout.html.twig",
"diff": "{# Setting the labels and their localisations that are used in the sidebar-menu. #}\n{% set labels = {\n'about.bolt_documentation': 'about.bolt_documentation'|trans,\n- 'action.view_site': 'action.view'|trans ~ ' website',\n+ 'action.view_site': 'action.view'|trans,\n'action.create_new': 'action.create_new'|trans,\n'general.greeting': 'general.greeting'|trans({'%name%': user_display_name}),\n'action.logout': 'action.logout'|trans,\n"
},
{
"change_type": "MODIFY",
"old_path": "translations/messages.en.xlf",
"new_path": "translations/messages.en.xlf",
"diff": "<unit id=\"TtmWqX3\" name=\"action.view\">\n<segment>\n<source>action.view</source>\n- <target>View</target>\n+ <target>View website</target>\n</segment>\n</unit>\n<unit id=\"I2ykiIZ\" name=\"caption.folders\">\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Move concatenated 'website' string to translation file
|
95,168 |
04.08.2020 10:09:44
| -7,200 |
2f8019ae36d9b0cdd270fec51742227506af419d
|
Run make csfix
|
[
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field.php",
"new_path": "src/Entity/Field.php",
"diff": "@@ -93,6 +93,7 @@ class Field implements FieldInterface, TranslatableInterface\n// If value is field, return getTwigValue so that {{ value }}\n// is parsed as html, rather than __toString() which is escaped\n$value = $value[$key];\n+\nreturn $value instanceof self ? $value->getTwigValue() : $value;\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Run make csfix
|
95,144 |
05.08.2020 11:09:28
| -7,200 |
78c8ae7b57d64f4c6c541cebca922268cb80e436
|
Fix missing files from `.gitignore`
|
[
{
"change_type": "MODIFY",
"old_path": ".gitignore",
"new_path": ".gitignore",
"diff": "@@ -3,7 +3,11 @@ composer.phar\n### Built Assets and uploads ###\n/public/assets/\n/public/files/*\n+!/public/files/.gitkeep\n+!/public/files/index.html\n/public/thumbs/*\n+!/public/thumbs/.gitkeep\n+!/public/thumbs/index.html\n### NPM and frontend assets building cruft\nassets/vendor/\n"
},
{
"change_type": "ADD",
"old_path": "public/files/.gitkeep",
"new_path": "public/files/.gitkeep",
"diff": ""
},
{
"change_type": "ADD",
"old_path": "public/thumbs/.gitkeep",
"new_path": "public/thumbs/.gitkeep",
"diff": ""
}
] |
PHP
|
MIT License
|
bolt/core
|
Fix missing files from `.gitignore`
|
95,144 |
09.08.2020 13:27:51
| -7,200 |
53aea714c0b6e8a6e92628b602bbe22b653327e0
|
Prepare release 4.0.0-rc.34
|
[
{
"change_type": "MODIFY",
"old_path": "package-lock.json",
"new_path": "package-lock.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.32\",\n+ \"version\": \"4.0.0-rc.34\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n}\n},\n\"@babel/core\": {\n- \"version\": \"7.11.0\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/core/-/core-7.11.0.tgz\",\n- \"integrity\": \"sha512-mkLq8nwaXmDtFmRkQ8ED/eA2CnVw4zr7dCztKalZXBvdK5EeNUAesrrwUqjQEzFgomJssayzB0aqlOsP1vGLqg==\",\n+ \"version\": \"7.11.1\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/core/-/core-7.11.1.tgz\",\n+ \"integrity\": \"sha512-XqF7F6FWQdKGGWAzGELL+aCO1p+lRY5Tj5/tbT3St1G8NaH70jhhDIKknIZaDans0OQBG5wRAldROLHSt44BgQ==\",\n\"dev\": true,\n\"requires\": {\n\"@babel/code-frame\": \"^7.10.4\",\n\"@babel/generator\": \"^7.11.0\",\n\"@babel/helper-module-transforms\": \"^7.11.0\",\n\"@babel/helpers\": \"^7.10.4\",\n- \"@babel/parser\": \"^7.11.0\",\n+ \"@babel/parser\": \"^7.11.1\",\n\"@babel/template\": \"^7.10.4\",\n\"@babel/traverse\": \"^7.11.0\",\n\"@babel/types\": \"^7.11.0\",\n}\n},\n\"@babel/parser\": {\n- \"version\": \"7.11.0\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/parser/-/parser-7.11.0.tgz\",\n- \"integrity\": \"sha512-qvRvi4oI8xii8NllyEc4MDJjuZiNaRzyb7Y7lup1NqJV8TZHF4O27CcP+72WPn/k1zkgJ6WJfnIbk4jTsVAZHw==\",\n+ \"version\": \"7.11.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/parser/-/parser-7.11.3.tgz\",\n+ \"integrity\": \"sha512-REo8xv7+sDxkKvoxEywIdsNFiZLybwdI7hcT5uEPyQrSMB4YQ973BfC9OOrD/81MaIjh6UxdulIQXkjmiH3PcA==\",\n\"dev\": true\n},\n\"@babel/template\": {\n}\n},\n\"@babel/parser\": {\n- \"version\": \"7.11.0\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/parser/-/parser-7.11.0.tgz\",\n- \"integrity\": \"sha512-qvRvi4oI8xii8NllyEc4MDJjuZiNaRzyb7Y7lup1NqJV8TZHF4O27CcP+72WPn/k1zkgJ6WJfnIbk4jTsVAZHw==\",\n+ \"version\": \"7.11.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@babel/parser/-/parser-7.11.3.tgz\",\n+ \"integrity\": \"sha512-REo8xv7+sDxkKvoxEywIdsNFiZLybwdI7hcT5uEPyQrSMB4YQ973BfC9OOrD/81MaIjh6UxdulIQXkjmiH3PcA==\",\n\"dev\": true\n},\n\"@babel/template\": {\n}\n},\n\"bootstrap\": {\n- \"version\": \"4.5.0\",\n- \"resolved\": \"https://registry.npmjs.org/bootstrap/-/bootstrap-4.5.0.tgz\",\n- \"integrity\": \"sha512-Z93QoXvodoVslA+PWNdk23Hze4RBYIkpb5h8I2HY2Tu2h7A0LpAgLcyrhrSUyo2/Oxm2l1fRZPs1e5hnxnliXA==\"\n+ \"version\": \"4.5.2\",\n+ \"resolved\": \"https://registry.npmjs.org/bootstrap/-/bootstrap-4.5.2.tgz\",\n+ \"integrity\": \"sha512-vlGn0bcySYl/iV+BGA544JkkZP5LB3jsmkeKLFQakCOwCM3AOk7VkldBz4jrzSe+Z0Ezn99NVXa1o45cQY4R6A==\"\n},\n\"brace-expansion\": {\n\"version\": \"1.1.11\",\n}\n},\n\"browserslist\": {\n- \"version\": \"4.13.0\",\n- \"resolved\": \"https://registry.npmjs.org/browserslist/-/browserslist-4.13.0.tgz\",\n- \"integrity\": \"sha512-MINatJ5ZNrLnQ6blGvePd/QOz9Xtu+Ne+x29iQSCHfkU5BugKVJwZKn/iiL8UbpIpa3JhviKjz+XxMo0m2caFQ==\",\n+ \"version\": \"4.14.0\",\n+ \"resolved\": \"https://registry.npmjs.org/browserslist/-/browserslist-4.14.0.tgz\",\n+ \"integrity\": \"sha512-pUsXKAF2lVwhmtpeA3LJrZ76jXuusrNyhduuQs7CDFf9foT4Y38aQOserd2lMe5DSSrjf3fx34oHwryuvxAUgQ==\",\n\"requires\": {\n- \"caniuse-lite\": \"^1.0.30001093\",\n- \"electron-to-chromium\": \"^1.3.488\",\n- \"escalade\": \"^3.0.1\",\n- \"node-releases\": \"^1.1.58\"\n+ \"caniuse-lite\": \"^1.0.30001111\",\n+ \"electron-to-chromium\": \"^1.3.523\",\n+ \"escalade\": \"^3.0.2\",\n+ \"node-releases\": \"^1.1.60\"\n}\n},\n\"bser\": {\n}\n},\n\"caniuse-lite\": {\n- \"version\": \"1.0.30001109\",\n- \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001109.tgz\",\n- \"integrity\": \"sha512-4JIXRodHzdS3HdK8nSgIqXYLExOvG+D2/EenSvcub2Kp3QEADjo2v2oUn5g0n0D+UNwG9BtwKOyGcSq2qvQXvQ==\"\n+ \"version\": \"1.0.30001112\",\n+ \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001112.tgz\",\n+ \"integrity\": \"sha512-J05RTQlqsatidif/38aN3PGULCLrg8OYQOlJUKbeYVzC2mGZkZLIztwRlB3MtrfLmawUmjFlNJvy/uhwniIe1Q==\"\n},\n\"capture-exit\": {\n\"version\": \"2.0.0\",\n\"integrity\": \"sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==\"\n},\n\"electron-to-chromium\": {\n- \"version\": \"1.3.488\",\n- \"resolved\": \"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.488.tgz\",\n- \"integrity\": \"sha512-NReBdOugu1yl8ly+0VDtiQ6Yw/1sLjnvflWq0gvY1nfUXU2PbA+1XAVuEb7ModnwL/MfUPjby7e4pAFnSHiy6Q==\"\n+ \"version\": \"1.3.526\",\n+ \"resolved\": \"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.526.tgz\",\n+ \"integrity\": \"sha512-HiroW5ZbGwgT8kCnoEO8qnGjoTPzJxduvV/Vv/wH63eo2N6Zj3xT5fmmaSPAPUM05iN9/5fIEkIg3owTtV6QZg==\"\n},\n\"elliptic\": {\n\"version\": \"6.5.3\",\n}\n},\n\"escalade\": {\n- \"version\": \"3.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/escalade/-/escalade-3.0.1.tgz\",\n- \"integrity\": \"sha512-DR6NO3h9niOT+MZs7bjxlj2a1k+POu5RN8CLTPX2+i78bRi9eLe7+0zXgUHMnGXWybYcL61E9hGhPKqedy8tQA==\"\n+ \"version\": \"3.0.2\",\n+ \"resolved\": \"https://registry.npmjs.org/escalade/-/escalade-3.0.2.tgz\",\n+ \"integrity\": \"sha512-gPYAU37hYCUhW5euPeR+Y74F7BL+IBsV93j5cvGriSaD1aG6MGsqsV1yamRdrWrb2j3aiZvb0X+UBOWpx3JWtQ==\"\n},\n\"escape-html\": {\n\"version\": \"1.0.3\",\n}\n},\n\"node-releases\": {\n- \"version\": \"1.1.58\",\n- \"resolved\": \"https://registry.npmjs.org/node-releases/-/node-releases-1.1.58.tgz\",\n- \"integrity\": \"sha512-NxBudgVKiRh/2aPWMgPR7bPTX0VPmGx5QBwCtdHitnqFE5/O8DeBXuIMH1nwNnw/aMo6AjOrpsHzfY3UbUJ7yg==\"\n+ \"version\": \"1.1.60\",\n+ \"resolved\": \"https://registry.npmjs.org/node-releases/-/node-releases-1.1.60.tgz\",\n+ \"integrity\": \"sha512-gsO4vjEdQaTusZAEebUWp2a5d7dF5DYoIpDG7WySnk7BuZDW+GPpHXoXXuYawRBr/9t5q54tirPz79kFIWg4dA==\"\n},\n\"node-sass\": {\n\"version\": \"4.14.1\",\n\"integrity\": \"sha512-s7jmZPlm9FeueJg1RwJtnE9KNPtME/7C8uRWSfp9/yEN4M8XcS/d+bddoyVwVnvFyRh9msFo0HWeW0vTL8Qv+w==\"\n},\n\"vue-router\": {\n- \"version\": \"3.3.4\",\n- \"resolved\": \"https://registry.npmjs.org/vue-router/-/vue-router-3.3.4.tgz\",\n- \"integrity\": \"sha512-SdKRBeoXUjaZ9R/8AyxsdTqkOfMcI5tWxPZOUX5Ie1BTL5rPSZ0O++pbiZCeYeythiZIdLEfkDiQPKIaWk5hDg==\",\n+ \"version\": \"3.4.2\",\n+ \"resolved\": \"https://registry.npmjs.org/vue-router/-/vue-router-3.4.2.tgz\",\n+ \"integrity\": \"sha512-n3Ok70hW0EpcJF4lcWIwSHAQbFTnIOLl/fhO8+oTs4jHNtBNsovcVvPZeTOyKEd8C3xF1Crft2ASuOiVT5K1mw==\",\n\"dev\": true\n},\n\"vue-simplemde\": {\n"
},
{
"change_type": "MODIFY",
"old_path": "package.json",
"new_path": "package.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.33\",\n+ \"version\": \"4.0.0-rc.34\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n\"axios\": \"^0.19.2\",\n\"baguettebox.js\": \"^1.11.1\",\n\"bootbox\": \"^5.4.0\",\n- \"bootstrap\": \"^4.5.0\",\n- \"browserslist\": \"^4.13.0\",\n- \"caniuse-lite\": \"^1.0.30001109\",\n+ \"bootstrap\": \"^4.5.2\",\n+ \"browserslist\": \"^4.14.0\",\n+ \"caniuse-lite\": \"^1.0.30001112\",\n\"codemirror\": \"^5.56.0\",\n\"dropzone\": \"^5.7.2\",\n\"flagpack\": \"^1.0.5\",\n\"zxcvbn\": \"^4.4.2\"\n},\n\"devDependencies\": {\n- \"@babel/core\": \"^7.11.0\",\n+ \"@babel/core\": \"^7.11.1\",\n\"@babel/plugin-transform-regenerator\": \"^7.10.4\",\n\"@babel/plugin-transform-runtime\": \"^7.11.0\",\n\"@babel/polyfill\": \"^7.10.4\",\n\"stylelint-config-standard\": \"^19.0.0\",\n\"vue-jest\": \"^3.0.6\",\n\"vue-loader\": \"^15.9.3\",\n- \"vue-router\": \"^3.3.4\",\n+ \"vue-router\": \"^3.4.2\",\n\"vue-template-compiler\": \"^2.6.11\",\n\"webpackbar\": \"^4.0.0\",\n\"workbox-webpack-plugin\": \"^4.3.1\"\n"
},
{
"change_type": "MODIFY",
"old_path": "symfony.lock",
"new_path": "symfony.lock",
"diff": "\"phpspec/prophecy\": {\n\"version\": \"v1.10.2\"\n},\n- \"phpstan/phpdoc-parser\": {\n- \"version\": \"0.4.3\"\n- },\n\"phpstan/phpstan\": {\n\"version\": \"0.12.11\"\n},\n\"siriusphp/validation\": {\n\"version\": \"2.3.0\"\n},\n- \"slevomat/coding-standard\": {\n- \"version\": \"6.1.5\"\n- },\n\"squirrelphp/twig-php-syntax\": {\n\"version\": \"v1.5\"\n},\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Prepare release 4.0.0-rc.34
|
95,144 |
10.08.2020 14:48:03
| -7,200 |
6ac16fef77b85b80163dae2acec7b020e211312d
|
Allow Fields added in extensions to show up in Sets and Collections
|
[
{
"change_type": "MODIFY",
"old_path": "templates/_partials/fields/set.html.twig",
"new_path": "templates/_partials/fields/set.html.twig",
"diff": "{% block field %}\n{% for setChild in field.valueForEditor %}\n+ {% set includeLookup = [\n+ '@bolt/_partials/fields/' ~ setChild.type ~ '.html.twig',\n+ '@' ~ setChild.type ~ '/' ~ setChild.type ~ '.html.twig',\n+ '@bolt/_partials/fields/generic.html.twig'\n+ ] %}\n{% if in_collection is defined %}\n{% set setChildName = name ~ '[' ~ setChild.name ~ ']' %}\n{% set setChildId = id ~ '-' ~ setChild.name|default('unnamed') %}\n- {% include '@bolt/_partials/fields/' ~ setChild.type ~ '.html.twig' with\n- {'id': setChildId, 'field' : setChild, 'name' : setChildName, 'include_id': true} only %}\n+ {% include includeLookup with {'id': setChildId, 'field' : setChild, 'name' : setChildName, 'include_id': true} only %}\n{% else %}\n{% set setChildName = 'sets[' ~ field.name ~ ']' ~ '[' ~ setChild.name ~ ']' %}\n{% set setChildId = 'field-' ~ field.name|default(name)|default('unnamed') ~ '-' ~ setChild.name|default('unnamed') %}\n- {% include '@bolt/_partials/fields/' ~ setChild.type ~ '.html.twig' with\n- {'field' : setChild, 'name' : setChildName, 'id': setChildId} only %}\n+ {% include includeLookup with {'field' : setChild, 'name' : setChildName, 'id': setChildId} only %}\n{% endif %}\n{% endfor %}\n{% endblock %}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Allow Fields added in extensions to show up in Sets and Collections
|
95,144 |
10.08.2020 15:50:11
| -7,200 |
3d68560f0a7cad04397e303328bf5dc5fae5fe80
|
Update _base.html.twig
|
[
{
"change_type": "MODIFY",
"old_path": "templates/_partials/fields/_base.html.twig",
"new_path": "templates/_partials/fields/_base.html.twig",
"diff": ">\n{{ prefix|raw }}\n+\n+{% if variant == 'inline' %}<div class=\"row\"><div class=\"col-3\">{% endif %}\n+\n{% block label %}\n{% include '@bolt/_partials/fields/_label.html.twig' %}\n{% include '@bolt/_partials/fields/_collection_buttons.html.twig' %}\n{% endblock %}\n+\n+{% if variant == 'inline' %}</div><div class=\"col-9\">{% endif %}\n+\n{% block field %}\n{% endblock %}\n{% if include_id is defined %}\n{% include '@bolt/_partials/fields/_hidden_id_field.html.twig' %}\n{% endif %}\n+\n+{% if variant == 'inline' %}</div></div>{% endif %}\n+\n{{ postfix|raw }}\n{{ separator|raw }}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Update _base.html.twig
|
95,168 |
11.08.2020 22:46:14
| -7,200 |
f2a05d02081af0e494d8a6924f1f5cc5b4a588c4
|
Add Spanish translations for /bolt/edit-file
|
[
{
"change_type": "MODIFY",
"old_path": "translations/messages.es.xlf",
"new_path": "translations/messages.es.xlf",
"diff": "<target>Navegador / Sistema Operativo</target>\n</segment>\n</unit>\n+ <unit id=\"FSroufa\" name=\"caption.path\">\n+ <segment>\n+ <source>caption.path</source>\n+ <target>Ruta</target>\n+ </segment>\n+ </unit>\n+ <unit id=\"P1FHg3Q\" name=\"caption.edit_file\">\n+ <segment>\n+ <source>caption.edit_file</source>\n+ <target>Editar archivo</target>\n+ </segment>\n+ </unit>\n</file>\n</xliff>\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Add Spanish translations for /bolt/edit-file
|
95,144 |
12.08.2020 15:05:48
| -7,200 |
a19e2ca2be06fbf599b56f535ba922346f425512
|
Don't let Vue parse Twig tags when editing content
|
[
{
"change_type": "MODIFY",
"old_path": "src/Controller/Backend/ContentEditController.php",
"new_path": "src/Controller/Backend/ContentEditController.php",
"diff": "@@ -144,6 +144,7 @@ class ContentEditController extends TwigAwareController implements BackendZoneIn\n$event = new ContentEvent($content);\n$this->dispatcher->dispatch($event, ContentEvent::PRE_SAVE);\n+ /** Note: Doctrine also calls preUpdate() -> Event/Listener/FieldFillListener.php */\n$this->em->persist($content);\n$this->em->flush();\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Event/Listener/FieldFillListener.php",
"new_path": "src/Event/Listener/FieldFillListener.php",
"diff": "@@ -58,9 +58,11 @@ class FieldFillListener\nforeach ($value as $key => $v) {\nif ($v instanceof Markup) {\n+ $v = $this->trimZeroWidthWhitespace((string) $v);\n// todo: Figure out how to preserve original encoding\n- $v = new Markup($this->sanitiser->clean((string) $v), 'UTF-8');\n+ $v = new Markup($this->sanitiser->clean($v), 'UTF-8');\n} elseif (is_string($v)) {\n+ $v = $this->trimZeroWidthWhitespace($v);\n$v = $this->sanitiser->clean($v);\n}\n@@ -70,6 +72,14 @@ class FieldFillListener\nreturn $result;\n}\n+ /**\n+ * Remove the 'zero width space' from `{{` and `}}`, added in the editor.\n+ */\n+ public function trimZeroWidthWhitespace(string $string): string\n+ {\n+ return preg_replace('/([{}])[\\x{200B}-\\x{200D}\\x{FEFF}]([{}])/u', '$1$2', $string);\n+ }\n+\npublic function postLoad(LifecycleEventArgs $args): void\n{\n$entity = $args->getEntity();\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/_partials/fields/_base.html.twig",
"new_path": "templates/_partials/fields/_base.html.twig",
"diff": "{% if value is iterable and field|type != \"select\" and field|type != \"collection\" %}\n{% set value = value|first %}\n{% endif %}\n+\n+ {# We're adding zero width spaces in `{{` and `}}`, to ensure Vue doesn't get its grubby paws on it. #}\n+ {% if value is string %}\n+ {% set value = value|replace({'{{': '{​{', '}}': '}​}'}) %}\n+ {% endif %}\n{% endif %}\n{# Set the class #}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Don't let Vue parse Twig tags when editing content
|
95,144 |
12.08.2020 15:07:48
| -7,200 |
061efd9c975328d2200db383646d4ecf9b485541
|
Output Fields correctly, when using the Fields Block
|
[
{
"change_type": "MODIFY",
"old_path": "src/Twig/FieldExtension.php",
"new_path": "src/Twig/FieldExtension.php",
"diff": "@@ -78,7 +78,7 @@ class FieldExtension extends AbstractExtension\npublic function getType(Field $field): string\n{\n- return $field->getDefinition()->get('type');\n+ return $field->getType() ?? $field->getDefinition()->get('type');\n}\n/**\n"
},
{
"change_type": "MODIFY",
"old_path": "templates/helpers/_fields.twig",
"new_path": "templates/helpers/_fields.twig",
"diff": "{% set omittedkeys = ['id', 'slug', 'datecreated', 'datechanged', 'datepublish',\n'datedepublish', 'username', 'status', 'ownerid', 'templatefields'] %}\n{% set commonfields = ['html', 'markdown', 'textarea', 'text', 'image', 'file', 'video'] %}\n- {% set extendedfields = ['select', 'checkbox', 'embed', 'date', 'number'] %}\n+ {% set extendedfields = ['select', 'checkbox', 'embed', 'date', 'number', 'hidden', 'data'] %}\n{% set compoundfields = ['collection', 'filelist', 'imagelist', 'set'] %}\n{% set allfields = commonfields|merge(extendedfields)|merge(compoundfields) %}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Output Fields correctly, when using the Fields Block
|
95,144 |
12.08.2020 19:50:30
| -7,200 |
5e6bce3fa8aa007134688c974a415948e14161ad
|
Cleanup for "Should Field be rendered as Twig?"
|
[
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field.php",
"new_path": "src/Entity/Field.php",
"diff": "@@ -235,8 +235,8 @@ class Field implements FieldInterface, TranslatableInterface\n$value = $this->getContent()->sanitise($value);\n}\n- if (is_string($value) && $this->getDefinition()->get('allow_twig')) {\n- $twig = $this->getTwig();\n+ if ($this->shouldBeRenderedAsTwig($value)) {\n+ $twig = $this->getContent()->getTwig();\nif ($twig) {\n$template = $twig->createTemplate($value);\n@@ -256,11 +256,9 @@ class Field implements FieldInterface, TranslatableInterface\nreturn $value;\n}\n- public function getTwig()\n+ private function shouldBeRenderedAsTwig($value):bool\n{\n- if ($this->getContent()->getTwig()) {\n- return $this->getContent()->getTwig();\n- }\n+ return is_string($value) && $this->getDefinition()->get('allow_twig') && preg_match('/{[{%#]/', $value);\n}\npublic function set(string $key, $value): self\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Cleanup for "Should Field be rendered as Twig?"
|
95,144 |
14.08.2020 12:41:49
| -7,200 |
fa8e27c041a69ed6e66c8438b7eea63c99cfd3b7
|
No longer lock ECS, make it work as intended again
|
[
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"se/selenium-server-standalone\": \"^3.141\",\n\"symfony/browser-kit\": \"^4.4 | ^5.1\",\n\"symfony/css-selector\": \"^4.4 | ^5.1\",\n- \"symplify/easy-coding-standard\": \"8.2.1\",\n+ \"symplify/easy-coding-standard\": \"^8.2.3\",\n\"vaimo/binary-chromedriver\": \"^5.0\"\n},\n\"config\": {\n"
},
{
"change_type": "MODIFY",
"old_path": "ecs.php",
"new_path": "ecs.php",
"diff": "@@ -16,7 +16,9 @@ use PhpCsFixer\\Fixer\\ClassNotation\\FinalInternalClassFixer;\nuse PhpCsFixer\\Fixer\\ClassNotation\\NoBlankLinesAfterClassOpeningFixer;\nuse PhpCsFixer\\Fixer\\ClassNotation\\OrderedClassElementsFixer;\nuse PhpCsFixer\\Fixer\\ClassNotation\\VisibilityRequiredFixer;\n+use PhpCsFixer\\Fixer\\ConstantNotation\\NativeConstantInvocationFixer;\nuse PhpCsFixer\\Fixer\\ControlStructure\\YodaStyleFixer;\n+use PhpCsFixer\\Fixer\\FunctionNotation\\NativeFunctionInvocationFixer;\nuse PhpCsFixer\\Fixer\\FunctionNotation\\PhpdocToReturnTypeFixer;\nuse PhpCsFixer\\Fixer\\FunctionNotation\\ReturnTypeDeclarationFixer;\nuse PhpCsFixer\\Fixer\\Import\\FullyQualifiedStrictTypesFixer;\n@@ -60,6 +62,8 @@ return static function (ContainerConfigurator $containerConfigurator): void {\nPhpdocAnnotationWithoutDotFixer::class => null,\nPhpdocSummaryFixer::class => null,\nPhpdocAlignFixer::class => null,\n+ NativeConstantInvocationFixer::class => null,\n+ NativeFunctionInvocationFixer::class => null,\n]);\n$services = $containerConfigurator->services();\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Entity/Field.php",
"new_path": "src/Entity/Field.php",
"diff": "@@ -150,8 +150,7 @@ class Field implements FieldInterface, TranslatableInterface\nif ($this->isNew() && $default !== null) {\nif (! $default instanceof LaravelCollection) {\n- throw new \\RuntimeException('Default value of field ' . $this->getName() . ' is ' . gettype($default)\n- . ' but it should be an array.');\n+ throw new \\RuntimeException('Default value of field ' . $this->getName() . ' is ' . gettype($default) . ' but it should be an array.');\n}\nreturn $this->getDefaultValue()->get($key);\n"
},
{
"change_type": "MODIFY",
"old_path": "symfony.lock",
"new_path": "symfony.lock",
"diff": "\"symplify/package-builder\": {\n\"version\": \"v7.2.2\"\n},\n- \"symplify/parameter-name-guard\": {\n- \"version\": \"v7.3.18\"\n- },\n\"symplify/phpstan-extensions\": {\n\"version\": \"v7.3.18\"\n},\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
No longer lock ECS, make it work as intended again
|
95,114 |
14.08.2020 13:26:52
| -7,200 |
ffb35f15294c0b9bc44b66c2f761dab0117c743a
|
replaced hardcoded '/' by DIRECTORY_SEPARATOR php constant to support path splitting on Windows machines
|
[
{
"change_type": "MODIFY",
"old_path": "src/Command/ExtensionsConfigureCommand.php",
"new_path": "src/Command/ExtensionsConfigureCommand.php",
"diff": "@@ -118,7 +118,7 @@ class ExtensionsConfigureCommand extends Command\n*/\nprivate function getExtensionRoutesPath(string $path = '*'): string\n{\n- return $this->projectDir . '/config/routes/extension_' . Str::splitLast($path, '/') . '.yaml';\n+ return $this->projectDir . '/config/routes/extension_' . Str::splitLast($path, DIRECTORY_SEPARATOR) . '.yaml';\n}\n/**\n@@ -127,7 +127,7 @@ class ExtensionsConfigureCommand extends Command\n*/\nprivate function getExtensionServicesPath(string $path = '*'): string\n{\n- return $this->projectDir . '/config/packages/extension_' . Str::splitLast($path, '/') . '.yaml';\n+ return $this->projectDir . '/config/packages/extension_' . Str::splitLast($path, DIRECTORY_SEPARATOR) . '.yaml';\n}\nprivate function getExtensionConfigPath(string $namespace, string $name): string\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
replaced hardcoded '/' by DIRECTORY_SEPARATOR php constant to support path splitting on Windows machines
|
95,144 |
14.08.2020 14:34:12
| -7,200 |
8d863bb68df1eced679b41e5150c4b0fdf9a9800
|
Ninja-edit an extra fieldtype in the extendedfields
|
[
{
"change_type": "MODIFY",
"old_path": "templates/helpers/_fields.twig",
"new_path": "templates/helpers/_fields.twig",
"diff": "{% set omittedkeys = ['id', 'slug', 'datecreated', 'datechanged', 'datepublish',\n'datedepublish', 'username', 'status', 'ownerid', 'templatefields'] %}\n{% set commonfields = ['html', 'markdown', 'textarea', 'text', 'image', 'file', 'video'] %}\n- {% set extendedfields = ['select', 'checkbox', 'embed', 'date', 'number', 'hidden', 'data'] %}\n+ {% set extendedfields = ['select', 'checkbox', 'embed', 'date', 'number', 'hidden', 'data', 'templateselect'] %}\n{% set compoundfields = ['collection', 'filelist', 'imagelist', 'set'] %}\n{% set allfields = commonfields|merge(extendedfields)|merge(compoundfields) %}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Ninja-edit an extra fieldtype in the extendedfields
|
95,144 |
14.08.2020 15:16:17
| -7,200 |
4b0649da4e05d4b5a34b7d64c1a26b5399826439
|
Prepare release 4.0.0-rc.35
|
[
{
"change_type": "MODIFY",
"old_path": "package-lock.json",
"new_path": "package-lock.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.34\",\n+ \"version\": \"4.0.0-rc.35\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n\"@types/anymatch\": {\n\"version\": \"1.3.1\",\n\"resolved\": \"https://registry.npmjs.org/@types/anymatch/-/anymatch-1.3.1.tgz\",\n- \"integrity\": \"sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA==\",\n- \"dev\": true\n+ \"integrity\": \"sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA==\"\n},\n\"@types/babel__core\": {\n\"version\": \"7.1.7\",\n\"@babel/types\": \"^7.3.0\"\n}\n},\n+ \"@types/body-parser\": {\n+ \"version\": \"1.19.0\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.0.tgz\",\n+ \"integrity\": \"sha512-W98JrE0j2K78swW4ukqMleo8R7h/pFETjM2DQ90MF6XK2i4LO4W3gQ71Lt4w3bfm2EvVSyWHplECvB5sK22yFQ==\",\n+ \"requires\": {\n+ \"@types/connect\": \"*\",\n+ \"@types/node\": \"*\"\n+ }\n+ },\n\"@types/color-name\": {\n\"version\": \"1.1.1\",\n\"resolved\": \"https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz\",\n\"integrity\": \"sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==\"\n},\n+ \"@types/connect\": {\n+ \"version\": \"3.4.33\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/connect/-/connect-3.4.33.tgz\",\n+ \"integrity\": \"sha512-2+FrkXY4zllzTNfJth7jOqEHC+enpLeGslEhpnTAkg21GkRrWV4SsAtqchtT4YS9/nODBU2/ZfsBY2X4J/dX7A==\",\n+ \"requires\": {\n+ \"@types/node\": \"*\"\n+ }\n+ },\n+ \"@types/connect-history-api-fallback\": {\n+ \"version\": \"1.3.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.3.tgz\",\n+ \"integrity\": \"sha512-7SxFCd+FLlxCfwVwbyPxbR4khL9aNikJhrorw8nUIOqeuooc9gifBuDQOJw5kzN7i6i3vLn9G8Wde/4QDihpYw==\",\n+ \"requires\": {\n+ \"@types/express-serve-static-core\": \"*\",\n+ \"@types/node\": \"*\"\n+ }\n+ },\n\"@types/events\": {\n\"version\": \"3.0.0\",\n\"resolved\": \"https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz\",\n\"integrity\": \"sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==\"\n},\n+ \"@types/express\": {\n+ \"version\": \"4.17.7\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/express/-/express-4.17.7.tgz\",\n+ \"integrity\": \"sha512-dCOT5lcmV/uC2J9k0rPafATeeyz+99xTt54ReX11/LObZgfzJqZNcW27zGhYyX+9iSEGXGt5qLPwRSvBZcLvtQ==\",\n+ \"requires\": {\n+ \"@types/body-parser\": \"*\",\n+ \"@types/express-serve-static-core\": \"*\",\n+ \"@types/qs\": \"*\",\n+ \"@types/serve-static\": \"*\"\n+ }\n+ },\n+ \"@types/express-serve-static-core\": {\n+ \"version\": \"4.17.9\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.9.tgz\",\n+ \"integrity\": \"sha512-DG0BYg6yO+ePW+XoDENYz8zhNGC3jDDEpComMYn7WJc4mY1Us8Rw9ax2YhJXxpyk2SF47PQAoQ0YyVT1a0bEkA==\",\n+ \"requires\": {\n+ \"@types/node\": \"*\",\n+ \"@types/qs\": \"*\",\n+ \"@types/range-parser\": \"*\"\n+ }\n+ },\n\"@types/glob\": {\n\"version\": \"7.1.1\",\n\"resolved\": \"https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz\",\n\"@types/node\": \"*\"\n}\n},\n+ \"@types/http-proxy\": {\n+ \"version\": \"1.17.4\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.4.tgz\",\n+ \"integrity\": \"sha512-IrSHl2u6AWXduUaDLqYpt45tLVCtYv7o4Z0s1KghBCDgIIS9oW5K1H8mZG/A2CfeLdEa7rTd1ACOiHBc1EMT2Q==\",\n+ \"requires\": {\n+ \"@types/node\": \"*\"\n+ }\n+ },\n+ \"@types/http-proxy-middleware\": {\n+ \"version\": \"0.19.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/http-proxy-middleware/-/http-proxy-middleware-0.19.3.tgz\",\n+ \"integrity\": \"sha512-lnBTx6HCOUeIJMLbI/LaL5EmdKLhczJY5oeXZpX/cXE4rRqb3RmV7VcMpiEfYkmTjipv3h7IAyIINe4plEv7cA==\",\n+ \"requires\": {\n+ \"@types/connect\": \"*\",\n+ \"@types/http-proxy\": \"*\",\n+ \"@types/node\": \"*\"\n+ }\n+ },\n\"@types/istanbul-lib-coverage\": {\n\"version\": \"2.0.1\",\n\"resolved\": \"https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz\",\n\"resolved\": \"https://registry.npmjs.org/@types/lodash/-/lodash-4.14.149.tgz\",\n\"integrity\": \"sha512-ijGqzZt/b7BfzcK9vTrS6MFljQRPn5BFWOx8oE0GYxribu6uV+aA9zZuXI1zc/etK9E8nrgdoF2+LgUw7+9tJQ==\"\n},\n+ \"@types/mime\": {\n+ \"version\": \"2.0.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/mime/-/mime-2.0.3.tgz\",\n+ \"integrity\": \"sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q==\"\n+ },\n+ \"@types/mini-css-extract-plugin\": {\n+ \"version\": \"0.9.1\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.1.tgz\",\n+ \"integrity\": \"sha512-+mN04Oszdz9tGjUP/c1ReVwJXxSniLd7lF++sv+8dkABxVNthg6uccei+4ssKxRHGoMmPxdn7uBdJWONSJGTGQ==\",\n+ \"optional\": true,\n+ \"requires\": {\n+ \"@types/webpack\": \"*\"\n+ }\n+ },\n\"@types/minimatch\": {\n\"version\": \"3.0.3\",\n\"resolved\": \"https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz\",\n\"@types/minimist\": {\n\"version\": \"1.2.0\",\n\"resolved\": \"https://registry.npmjs.org/@types/minimist/-/minimist-1.2.0.tgz\",\n- \"integrity\": \"sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY=\",\n- \"dev\": true\n+ \"integrity\": \"sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY=\"\n},\n\"@types/node\": {\n\"version\": \"13.1.0\",\n\"resolved\": \"https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz\",\n\"integrity\": \"sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==\"\n},\n+ \"@types/qs\": {\n+ \"version\": \"6.9.4\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/qs/-/qs-6.9.4.tgz\",\n+ \"integrity\": \"sha512-+wYo+L6ZF6BMoEjtf8zB2esQsqdV6WsjRK/GP9WOgLPrq87PbNWgIxS76dS5uvl/QXtHGakZmwTznIfcPXcKlQ==\"\n+ },\n+ \"@types/range-parser\": {\n+ \"version\": \"1.2.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.3.tgz\",\n+ \"integrity\": \"sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==\"\n+ },\n+ \"@types/serve-static\": {\n+ \"version\": \"1.13.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.5.tgz\",\n+ \"integrity\": \"sha512-6M64P58N+OXjU432WoLLBQxbA0LRGBCRm7aAGQJ+SMC1IMl0dgRVi9EFfoDcS2a7Xogygk/eGN94CfwU9UF7UQ==\",\n+ \"requires\": {\n+ \"@types/express-serve-static-core\": \"*\",\n+ \"@types/mime\": \"*\"\n+ }\n+ },\n\"@types/source-list-map\": {\n\"version\": \"0.1.2\",\n\"resolved\": \"https://registry.npmjs.org/@types/source-list-map/-/source-list-map-0.1.2.tgz\",\n- \"integrity\": \"sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA==\",\n- \"dev\": true\n+ \"integrity\": \"sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA==\"\n},\n\"@types/stack-utils\": {\n\"version\": \"1.0.1\",\n\"@types/tapable\": {\n\"version\": \"1.0.5\",\n\"resolved\": \"https://registry.npmjs.org/@types/tapable/-/tapable-1.0.5.tgz\",\n- \"integrity\": \"sha512-/gG2M/Imw7cQFp8PGvz/SwocNrmKFjFsm5Pb8HdbHkZ1K8pmuPzOX4VeVoiEecFCVf4CsN1r3/BRvx+6sNqwtQ==\",\n- \"dev\": true\n+ \"integrity\": \"sha512-/gG2M/Imw7cQFp8PGvz/SwocNrmKFjFsm5Pb8HdbHkZ1K8pmuPzOX4VeVoiEecFCVf4CsN1r3/BRvx+6sNqwtQ==\"\n},\n\"@types/uglify-js\": {\n\"version\": \"3.9.2\",\n\"resolved\": \"https://registry.npmjs.org/@types/uglify-js/-/uglify-js-3.9.2.tgz\",\n\"integrity\": \"sha512-d6dIfpPbF+8B7WiCi2ELY7m0w1joD8cRW4ms88Emdb2w062NeEpbNCeWwVCgzLRpVG+5e74VFSg4rgJ2xXjEiQ==\",\n- \"dev\": true,\n\"requires\": {\n\"source-map\": \"^0.6.1\"\n}\n\"version\": \"4.41.13\",\n\"resolved\": \"https://registry.npmjs.org/@types/webpack/-/webpack-4.41.13.tgz\",\n\"integrity\": \"sha512-RYmIHOWSxnTTa765N6jJBVE45pd2SYNblEYshVDduLw6RhocazNmRzE5/ytvBD8IkDMH6DI+bcrqxh8NILimBA==\",\n- \"dev\": true,\n\"requires\": {\n\"@types/anymatch\": \"*\",\n\"@types/node\": \"*\",\n\"source-map\": \"^0.6.0\"\n}\n},\n+ \"@types/webpack-dev-server\": {\n+ \"version\": \"3.11.0\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/webpack-dev-server/-/webpack-dev-server-3.11.0.tgz\",\n+ \"integrity\": \"sha512-3+86AgSzl18n5P1iUP9/lz3G3GMztCp+wxdDvVuNhx1sr1jE79GpYfKHL8k+Vht3N74K2n98CuAEw4YPJCYtDA==\",\n+ \"requires\": {\n+ \"@types/connect-history-api-fallback\": \"*\",\n+ \"@types/express\": \"*\",\n+ \"@types/http-proxy-middleware\": \"*\",\n+ \"@types/serve-static\": \"*\",\n+ \"@types/webpack\": \"*\"\n+ }\n+ },\n\"@types/webpack-sources\": {\n\"version\": \"0.1.7\",\n\"resolved\": \"https://registry.npmjs.org/@types/webpack-sources/-/webpack-sources-0.1.7.tgz\",\n\"integrity\": \"sha512-XyaHrJILjK1VHVC4aVlKsdNN5KBTwufMb43cQs+flGxtPAf/1Qwl8+Q0tp5BwEGaI8D6XT1L+9bSWXckgkjTLw==\",\n- \"dev\": true,\n\"requires\": {\n\"@types/node\": \"*\",\n\"@types/source-list-map\": \"*\",\n\"dev\": true\n},\n\"@vue/cli-overlay\": {\n- \"version\": \"4.4.6\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-4.4.6.tgz\",\n- \"integrity\": \"sha512-fzjg2gWQt+jw5fyLsD9HZNxGNQgZjLDI2s9bLWJwRucdfmncSi9neqA0TZyszGrgcJA4Qu4V5KgV0qwVSBYCaw==\"\n+ \"version\": \"4.5.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-4.5.3.tgz\",\n+ \"integrity\": \"sha512-CHIiZEZlcb2HlZNIU6ZgNfTysNZWokQGzStfrCrQMXUXG0ffBRoi8K/kXNox2HxSfrT1Swi4NqREdPXefZJgNQ==\"\n},\n\"@vue/cli-plugin-router\": {\n- \"version\": \"4.4.6\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-4.4.6.tgz\",\n- \"integrity\": \"sha512-TkLdn0ZYo3zgn78Rk8doPlR+4UkGjGW2R1eGEaZEkue/mw2VhUWtTk9cKLZaYrw0eY8Ro/j+OV6mD+scyrairg==\",\n+ \"version\": \"4.5.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-4.5.3.tgz\",\n+ \"integrity\": \"sha512-e0EqfwY4AGar1SX3rqD58QMoMYIxRD0AUauNiwSmuGjyA0Fr4Lfl1gBEPDCMZ5jIsO/4QNBateQGUy1S/GlxAw==\",\n\"requires\": {\n- \"@vue/cli-shared-utils\": \"^4.4.6\"\n+ \"@vue/cli-shared-utils\": \"^4.5.3\"\n}\n},\n\"@vue/cli-plugin-vuex\": {\n- \"version\": \"4.4.6\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-4.4.6.tgz\",\n- \"integrity\": \"sha512-Ho0YzUivn8BLPqFoFypntR8CMTEXYYHVr0GdnZW99XL+DbGw75f+tJfnrV9UFHDTfvZt7uewKiXDMlrzQ0l3Ug==\"\n+ \"version\": \"4.5.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-4.5.3.tgz\",\n+ \"integrity\": \"sha512-23AAuaVbng6OUc5l7VHEGqCNiL1g1BsZL99X1rvKRttjDpdIYHtQAFsXjcTFitGpHRWoA9dgeujj/MkBPa1TcA==\"\n},\n\"@vue/cli-service\": {\n- \"version\": \"4.4.6\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/cli-service/-/cli-service-4.4.6.tgz\",\n- \"integrity\": \"sha512-k5OFGh2NnvRymCyq9DfBiNJvECUuun3pl5KMm3557IZyA5E5csv+RHoSW3dX8HHe0zXq18g52VswP1llvR9POw==\",\n+ \"version\": \"4.5.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/cli-service/-/cli-service-4.5.3.tgz\",\n+ \"integrity\": \"sha512-AufXUW+n8Wh9pqJu1v9Uh+6Sx6HdDrRopHMhUB/FrXhLFFPXRDo+s9zFC5QuJSt+roR0oBwmAp/x6KvBFQosIQ==\",\n\"requires\": {\n\"@intervolga/optimize-cssnano-plugin\": \"^1.0.5\",\n\"@soda/friendly-errors-webpack-plugin\": \"^1.7.1\",\n\"@soda/get-current-script\": \"^1.0.0\",\n- \"@vue/cli-overlay\": \"^4.4.6\",\n- \"@vue/cli-plugin-router\": \"^4.4.6\",\n- \"@vue/cli-plugin-vuex\": \"^4.4.6\",\n- \"@vue/cli-shared-utils\": \"^4.4.6\",\n+ \"@types/minimist\": \"^1.2.0\",\n+ \"@types/webpack\": \"^4.0.0\",\n+ \"@types/webpack-dev-server\": \"^3.11.0\",\n+ \"@vue/cli-overlay\": \"^4.5.3\",\n+ \"@vue/cli-plugin-router\": \"^4.5.3\",\n+ \"@vue/cli-plugin-vuex\": \"^4.5.3\",\n+ \"@vue/cli-shared-utils\": \"^4.5.3\",\n\"@vue/component-compiler-utils\": \"^3.1.2\",\n\"@vue/preload-webpack-plugin\": \"^1.1.0\",\n\"@vue/web-component-wrapper\": \"^1.2.0\",\n- \"acorn\": \"^7.2.0\",\n+ \"acorn\": \"^7.4.0\",\n\"acorn-walk\": \"^7.1.1\",\n\"address\": \"^1.1.2\",\n- \"autoprefixer\": \"^9.8.0\",\n+ \"autoprefixer\": \"^9.8.6\",\n\"browserslist\": \"^4.12.0\",\n\"cache-loader\": \"^4.1.0\",\n\"case-sensitive-paths-webpack-plugin\": \"^2.3.0\",\n\"thread-loader\": \"^2.1.3\",\n\"url-loader\": \"^2.2.0\",\n\"vue-loader\": \"^15.9.2\",\n+ \"vue-loader-v16\": \"npm:vue-loader@^16.0.0-beta.3\",\n\"vue-style-loader\": \"^4.1.2\",\n\"webpack\": \"^4.0.0\",\n\"webpack-bundle-analyzer\": \"^3.8.0\",\n\"webpack-merge\": \"^4.2.2\"\n},\n\"dependencies\": {\n- \"@vue/component-compiler-utils\": {\n- \"version\": \"3.1.2\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/component-compiler-utils/-/component-compiler-utils-3.1.2.tgz\",\n- \"integrity\": \"sha512-QLq9z8m79mCinpaEeSURhnNCN6djxpHw0lpP/bodMlt5kALfONpryMthvnrQOlTcIKoF+VoPi+lPHUYeDFPXug==\",\n- \"requires\": {\n- \"consolidate\": \"^0.15.1\",\n- \"hash-sum\": \"^1.0.2\",\n- \"lru-cache\": \"^4.1.2\",\n- \"merge-source-map\": \"^1.1.0\",\n- \"postcss\": \"^7.0.14\",\n- \"postcss-selector-parser\": \"^6.0.2\",\n- \"prettier\": \"^1.18.2\",\n- \"source-map\": \"~0.6.1\",\n- \"vue-template-es2015-compiler\": \"^1.9.0\"\n- },\n- \"dependencies\": {\n- \"hash-sum\": {\n- \"version\": \"1.0.2\",\n- \"resolved\": \"https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz\",\n- \"integrity\": \"sha1-M7QHd3VMZDJXPBIMw4CLvRDUfwQ=\"\n- }\n- }\n- },\n\"acorn\": {\n- \"version\": \"7.3.1\",\n- \"resolved\": \"https://registry.npmjs.org/acorn/-/acorn-7.3.1.tgz\",\n- \"integrity\": \"sha512-tLc0wSnatxAQHVHUapaHdz72pi9KUyHjq5KyHjGg9Y8Ifdc79pTh2XvI6I1/chZbnM7QtNKzh66ooDogPZSleA==\"\n+ \"version\": \"7.4.0\",\n+ \"resolved\": \"https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz\",\n+ \"integrity\": \"sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==\"\n},\n\"acorn-walk\": {\n\"version\": \"7.2.0\",\n\"resolved\": \"https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz\",\n\"integrity\": \"sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==\"\n},\n+ \"ansi-styles\": {\n+ \"version\": \"4.2.1\",\n+ \"resolved\": \"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz\",\n+ \"integrity\": \"sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==\",\n+ \"optional\": true,\n+ \"requires\": {\n+ \"@types/color-name\": \"^1.1.1\",\n+ \"color-convert\": \"^2.0.1\"\n+ }\n+ },\n\"cacache\": {\n\"version\": \"13.0.1\",\n\"resolved\": \"https://registry.npmjs.org/cacache/-/cacache-13.0.1.tgz\",\n\"rimraf\": \"^2.7.1\",\n\"ssri\": \"^7.0.0\",\n\"unique-filename\": \"^1.1.1\"\n- },\n- \"dependencies\": {\n- \"lru-cache\": {\n- \"version\": \"5.1.1\",\n- \"resolved\": \"https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz\",\n- \"integrity\": \"sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==\",\n- \"requires\": {\n- \"yallist\": \"^3.0.2\"\n}\n},\n- \"yallist\": {\n- \"version\": \"3.1.1\",\n- \"resolved\": \"https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz\",\n- \"integrity\": \"sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==\"\n- }\n+ \"chalk\": {\n+ \"version\": \"3.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz\",\n+ \"integrity\": \"sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==\",\n+ \"optional\": true,\n+ \"requires\": {\n+ \"ansi-styles\": \"^4.1.0\",\n+ \"supports-color\": \"^7.1.0\"\n}\n},\n\"cliui\": {\n\"wrap-ansi\": \"^6.2.0\"\n}\n},\n- \"cssesc\": {\n- \"version\": \"3.0.0\",\n- \"resolved\": \"https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz\",\n- \"integrity\": \"sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==\"\n+ \"color-convert\": {\n+ \"version\": \"2.0.1\",\n+ \"resolved\": \"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz\",\n+ \"integrity\": \"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==\",\n+ \"optional\": true,\n+ \"requires\": {\n+ \"color-name\": \"~1.1.4\"\n+ }\n+ },\n+ \"color-name\": {\n+ \"version\": \"1.1.4\",\n+ \"resolved\": \"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz\",\n+ \"integrity\": \"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==\",\n+ \"optional\": true\n},\n\"fast-deep-equal\": {\n\"version\": \"3.1.3\",\n\"resolved\": \"https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz\",\n\"integrity\": \"sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==\"\n},\n+ \"has-flag\": {\n+ \"version\": \"4.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz\",\n+ \"integrity\": \"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==\",\n+ \"optional\": true\n+ },\n\"hash-sum\": {\n\"version\": \"2.0.0\",\n\"resolved\": \"https://registry.npmjs.org/hash-sum/-/hash-sum-2.0.0.tgz\",\n\"resolved\": \"https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz\",\n\"integrity\": \"sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==\"\n},\n- \"lru-cache\": {\n- \"version\": \"4.1.5\",\n- \"resolved\": \"https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz\",\n- \"integrity\": \"sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==\",\n- \"requires\": {\n- \"pseudomap\": \"^1.0.2\",\n- \"yallist\": \"^2.1.2\"\n- }\n- },\n\"p-limit\": {\n\"version\": \"2.3.0\",\n\"resolved\": \"https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz\",\n\"aggregate-error\": \"^3.0.0\"\n}\n},\n- \"postcss-selector-parser\": {\n- \"version\": \"6.0.2\",\n- \"resolved\": \"https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.2.tgz\",\n- \"integrity\": \"sha512-36P2QR59jDTOAiIkqEprfJDsoNrvwFei3eCqKd1Y0tUsBimsq39BLp7RD+JWny3WgB1zGhJX8XVePwm9k4wdBg==\",\n- \"requires\": {\n- \"cssesc\": \"^3.0.0\",\n- \"indexes-of\": \"^1.0.1\",\n- \"uniq\": \"^1.0.1\"\n- }\n- },\n\"schema-utils\": {\n\"version\": \"2.7.0\",\n\"resolved\": \"https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz\",\n}\n},\n\"serialize-javascript\": {\n- \"version\": \"3.1.0\",\n- \"resolved\": \"https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-3.1.0.tgz\",\n- \"integrity\": \"sha512-JIJT1DGiWmIKhzRsG91aS6Ze4sFUrYbltlkg2onR5OrnNM02Kl/hnY/T4FN2omvyeBbQmMJv+K4cPOpGzOTFBg==\",\n+ \"version\": \"4.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz\",\n+ \"integrity\": \"sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==\",\n\"requires\": {\n\"randombytes\": \"^2.1.0\"\n}\n\"ansi-regex\": \"^5.0.0\"\n}\n},\n+ \"supports-color\": {\n+ \"version\": \"7.1.0\",\n+ \"resolved\": \"https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz\",\n+ \"integrity\": \"sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==\",\n+ \"optional\": true,\n+ \"requires\": {\n+ \"has-flag\": \"^4.0.0\"\n+ }\n+ },\n\"terser-webpack-plugin\": {\n- \"version\": \"2.3.7\",\n- \"resolved\": \"https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.7.tgz\",\n- \"integrity\": \"sha512-xzYyaHUNhzgaAdBsXxk2Yvo/x1NJdslUaussK3fdpBbvttm1iIwU+c26dj9UxJcwk2c5UWt5F55MUTIA8BE7Dg==\",\n+ \"version\": \"2.3.8\",\n+ \"resolved\": \"https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz\",\n+ \"integrity\": \"sha512-/fKw3R+hWyHfYx7Bv6oPqmk4HGQcrWLtV3X6ggvPuwPNHSnzvVV51z6OaaCOus4YLjutYGOz3pEpbhe6Up2s1w==\",\n\"requires\": {\n\"cacache\": \"^13.0.1\",\n\"find-cache-dir\": \"^3.3.1\",\n\"jest-worker\": \"^25.4.0\",\n\"p-limit\": \"^2.3.0\",\n\"schema-utils\": \"^2.6.6\",\n- \"serialize-javascript\": \"^3.1.0\",\n+ \"serialize-javascript\": \"^4.0.0\",\n\"source-map\": \"^0.6.1\",\n\"terser\": \"^4.6.12\",\n\"webpack-sources\": \"^1.4.3\"\n}\n},\n- \"yallist\": {\n- \"version\": \"2.1.2\",\n- \"resolved\": \"https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz\",\n- \"integrity\": \"sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=\"\n+ \"vue-loader-v16\": {\n+ \"version\": \"npm:vue-loader@16.0.0-beta.5\",\n+ \"resolved\": \"https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.5.tgz\",\n+ \"integrity\": \"sha512-ciWfzNefqWlmzKznCWY9hl+fPP4KlQ0A9MtHbJ/8DpyY+dAM8gDrjufIdxwTgC4szE4EZC3A6ip/BbrqM84GqA==\",\n+ \"optional\": true,\n+ \"requires\": {\n+ \"@types/mini-css-extract-plugin\": \"^0.9.1\",\n+ \"chalk\": \"^3.0.0\",\n+ \"hash-sum\": \"^2.0.0\",\n+ \"loader-utils\": \"^1.2.3\",\n+ \"merge-source-map\": \"^1.1.0\",\n+ \"source-map\": \"^0.6.1\"\n+ }\n}\n}\n},\n\"@vue/cli-shared-utils\": {\n- \"version\": \"4.4.6\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-4.4.6.tgz\",\n- \"integrity\": \"sha512-ba+FZZCjiTSu2otnLjY4qXqASe7ZIQ/QBljk5oRPgqrR0p1NUkDPUcZhqa041aOaSW1yAfSfhOD7Q84nMnWhzQ==\",\n+ \"version\": \"4.5.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-4.5.3.tgz\",\n+ \"integrity\": \"sha512-AjXSll67gpYWyjGOyHrwofLuxa7vL8KM6aUQCII+cHlFQey6oLS5bAWq9qcIM0P2ZyD+6i0fooNCihIuNrX4yg==\",\n\"requires\": {\n\"@hapi/joi\": \"^15.0.1\",\n\"chalk\": \"^2.4.2\",\n}\n},\n\"@vue/preload-webpack-plugin\": {\n- \"version\": \"1.1.1\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/preload-webpack-plugin/-/preload-webpack-plugin-1.1.1.tgz\",\n- \"integrity\": \"sha512-8VCoJeeH8tCkzhkpfOkt+abALQkS11OIHhte5MBzYaKMTqK0A3ZAKEUVAffsOklhEv7t0yrQt696Opnu9oAx+w==\"\n+ \"version\": \"1.1.2\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/preload-webpack-plugin/-/preload-webpack-plugin-1.1.2.tgz\",\n+ \"integrity\": \"sha512-LIZMuJk38pk9U9Ur4YzHjlIyMuxPlACdBIHH9/nGYVTsaGKOSnSuELiE8vS9wa+dJpIYspYUOqk+L1Q4pgHQHQ==\"\n},\n\"@vue/test-utils\": {\n\"version\": \"1.0.3\",\n}\n},\n\"caniuse-lite\": {\n- \"version\": \"1.0.30001112\",\n- \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001112.tgz\",\n- \"integrity\": \"sha512-J05RTQlqsatidif/38aN3PGULCLrg8OYQOlJUKbeYVzC2mGZkZLIztwRlB3MtrfLmawUmjFlNJvy/uhwniIe1Q==\"\n+ \"version\": \"1.0.30001114\",\n+ \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001114.tgz\",\n+ \"integrity\": \"sha512-ml/zTsfNBM+T1+mjglWRPgVsu2L76GAaADKX5f4t0pbhttEp0WMawJsHDYlFkVZkoA+89uvBRrVrEE4oqenzXQ==\"\n},\n\"capture-exit\": {\n\"version\": \"2.0.0\",\n}\n},\n\"cli-spinners\": {\n- \"version\": \"2.3.0\",\n- \"resolved\": \"https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.3.0.tgz\",\n- \"integrity\": \"sha512-Xs2Hf2nzrvJMFKimOR7YR0QwZ8fc0u98kdtwN1eNAZzNQgH3vK2pXzff6GJtKh7S5hoJ87ECiAiZFS2fb5Ii2w==\"\n+ \"version\": \"2.4.0\",\n+ \"resolved\": \"https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.4.0.tgz\",\n+ \"integrity\": \"sha512-sJAofoarcm76ZGpuooaO0eDy8saEy+YoZBLjC4h8srt4jeBnkYeOgqxgsJQTpyt2LjI5PTfLJHSL+41Yu4fEJA==\"\n},\n\"cli-width\": {\n\"version\": \"2.2.0\",\n}\n},\n\"get-stream\": {\n- \"version\": \"5.1.0\",\n- \"resolved\": \"https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz\",\n- \"integrity\": \"sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==\",\n+ \"version\": \"5.2.0\",\n+ \"resolved\": \"https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz\",\n+ \"integrity\": \"sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==\",\n\"requires\": {\n\"pump\": \"^3.0.0\"\n}\n}\n},\n\"onetime\": {\n- \"version\": \"5.1.0\",\n- \"resolved\": \"https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz\",\n- \"integrity\": \"sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==\",\n+ \"version\": \"5.1.2\",\n+ \"resolved\": \"https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz\",\n+ \"integrity\": \"sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==\",\n\"requires\": {\n\"mimic-fn\": \"^2.1.0\"\n}\n\"integrity\": \"sha512-m217bJHtf0J1IiKn4Tv6mnu1h5QvQNBnKZ39gma7hzGQhIZMxYq1vYEHs4AVd4ThFwmALys+52NAOD4zdLTG4w==\"\n},\n\"duplexer\": {\n- \"version\": \"0.1.1\",\n- \"resolved\": \"https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz\",\n- \"integrity\": \"sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=\"\n+ \"version\": \"0.1.2\",\n+ \"resolved\": \"https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz\",\n+ \"integrity\": \"sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==\"\n},\n\"duplexify\": {\n\"version\": \"3.7.1\",\n\"integrity\": \"sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==\"\n},\n\"electron-to-chromium\": {\n- \"version\": \"1.3.526\",\n- \"resolved\": \"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.526.tgz\",\n- \"integrity\": \"sha512-HiroW5ZbGwgT8kCnoEO8qnGjoTPzJxduvV/Vv/wH63eo2N6Zj3xT5fmmaSPAPUM05iN9/5fIEkIg3owTtV6QZg==\"\n+ \"version\": \"1.3.533\",\n+ \"resolved\": \"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.533.tgz\",\n+ \"integrity\": \"sha512-YqAL+NXOzjBnpY+dcOKDlZybJDCOzgsq4koW3fvyty/ldTmsb4QazZpOWmVvZ2m0t5jbBf7L0lIGU3BUipwG+A==\"\n},\n\"elliptic\": {\n\"version\": \"6.5.3\",\n\"integrity\": \"sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==\"\n},\n\"highlight.js\": {\n- \"version\": \"9.18.1\",\n- \"resolved\": \"https://registry.npmjs.org/highlight.js/-/highlight.js-9.18.1.tgz\",\n- \"integrity\": \"sha512-OrVKYz70LHsnCgmbXctv/bfuvntIKDz177h0Co37DQ5jamGZLVmoCVMtjMtNZY3X9DrCcKfklHPNeA0uPZhSJg==\"\n+ \"version\": \"9.18.3\",\n+ \"resolved\": \"https://registry.npmjs.org/highlight.js/-/highlight.js-9.18.3.tgz\",\n+ \"integrity\": \"sha512-zBZAmhSupHIl5sITeMqIJnYCDfAEc3Gdkqj65wC1lpI468MMQeeQkhcIAvk+RylAkxrCcI9xy9piHiXeQ1BdzQ==\"\n},\n\"hmac-drbg\": {\n\"version\": \"1.0.1\",\n},\n\"is-obj\": {\n\"version\": \"1.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz\",\n\"integrity\": \"sha1-PkcprB9f3gJc19g6iW2rn09n2w8=\"\n},\n\"is-path-cwd\": {\n},\n\"load-json-file\": {\n\"version\": \"1.1.0\",\n- \"resolved\": \"https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz\",\n\"integrity\": \"sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=\",\n\"dev\": true,\n\"requires\": {\n}\n},\n\"minipass-pipeline\": {\n- \"version\": \"1.2.3\",\n- \"resolved\": \"https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.3.tgz\",\n- \"integrity\": \"sha512-cFOknTvng5vqnwOpDsZTWhNll6Jf8o2x+/diplafmxpuIymAjzoOolZG0VvQf3V2HgqzJNhnuKHYp2BqDgz8IQ==\",\n+ \"version\": \"1.2.4\",\n+ \"resolved\": \"https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz\",\n+ \"integrity\": \"sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==\",\n\"requires\": {\n\"minipass\": \"^3.0.0\"\n}\n},\n\"semver\": {\n\"version\": \"5.3.0\",\n- \"resolved\": \"https://registry.npmjs.org/semver/-/semver-5.3.0.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/semver/-/semver-5.3.0.tgz\",\n\"integrity\": \"sha1-myzl094C0XxgEq0yaqa00M9U+U8=\",\n\"dev\": true\n}\n\"integrity\": \"sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==\"\n},\n\"portfinder\": {\n- \"version\": \"1.0.26\",\n- \"resolved\": \"https://registry.npmjs.org/portfinder/-/portfinder-1.0.26.tgz\",\n- \"integrity\": \"sha512-Xi7mKxJHHMI3rIUrnm/jjUgwhbYMkp/XKEcZX3aG4BrumLpq3nmoQMX+ClYnDZnZ/New7IatC1no5RX0zo1vXQ==\",\n+ \"version\": \"1.0.28\",\n+ \"resolved\": \"https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz\",\n+ \"integrity\": \"sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==\",\n\"requires\": {\n\"async\": \"^2.6.2\",\n\"debug\": \"^3.1.1\",\n- \"mkdirp\": \"^0.5.1\"\n+ \"mkdirp\": \"^0.5.5\"\n},\n\"dependencies\": {\n\"debug\": {\n}\n},\n\"postcss-modules-local-by-default\": {\n- \"version\": \"3.0.2\",\n- \"resolved\": \"https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-3.0.2.tgz\",\n- \"integrity\": \"sha512-jM/V8eqM4oJ/22j0gx4jrp63GSvDH6v86OqyTHHUvk4/k1vceipZsaymiZ5PvocqZOl5SFHiFJqjs3la0wnfIQ==\",\n+ \"version\": \"3.0.3\",\n+ \"resolved\": \"https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-3.0.3.tgz\",\n+ \"integrity\": \"sha512-e3xDq+LotiGesympRlKNgaJ0PCzoUIdpH0dj47iWAui/kyTgh3CiAr1qP54uodmJhl6p9rN6BoNcdEDVJx9RDw==\",\n\"requires\": {\n\"icss-utils\": \"^4.1.1\",\n- \"postcss\": \"^7.0.16\",\n+ \"postcss\": \"^7.0.32\",\n\"postcss-selector-parser\": \"^6.0.2\",\n- \"postcss-value-parser\": \"^4.0.0\"\n+ \"postcss-value-parser\": \"^4.1.0\"\n},\n\"dependencies\": {\n\"cssesc\": {\n\"resolved\": \"https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz\",\n\"integrity\": \"sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==\"\n},\n+ \"postcss\": {\n+ \"version\": \"7.0.32\",\n+ \"resolved\": \"https://registry.npmjs.org/postcss/-/postcss-7.0.32.tgz\",\n+ \"integrity\": \"sha512-03eXong5NLnNCD05xscnGKGDZ98CyzoqPSMjOe6SuoQY7Z2hIj0Ld1g/O/UQRuOle2aRtiIRDg9tDcTGAkLfKw==\",\n+ \"requires\": {\n+ \"chalk\": \"^2.4.2\",\n+ \"source-map\": \"^0.6.1\",\n+ \"supports-color\": \"^6.1.0\"\n+ }\n+ },\n\"postcss-selector-parser\": {\n\"version\": \"6.0.2\",\n\"resolved\": \"https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.2.tgz\",\n},\n\"safe-regex\": {\n\"version\": \"1.1.0\",\n- \"resolved\": \"https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz\",\n\"integrity\": \"sha1-QKNmnzsHfR6UPURinhV91IAjvy4=\",\n\"requires\": {\n\"ret\": \"~0.1.10\"\n},\n\"strip-ansi\": {\n\"version\": \"3.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n\"integrity\": \"sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=\",\n\"requires\": {\n\"ansi-regex\": \"^2.0.0\"\n},\n\"strip-eof\": {\n\"version\": \"1.0.0\",\n- \"resolved\": \"https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz\",\n\"integrity\": \"sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=\"\n},\n\"strip-final-newline\": {\n},\n\"dependencies\": {\n\"acorn\": {\n- \"version\": \"7.3.1\",\n- \"resolved\": \"https://registry.npmjs.org/acorn/-/acorn-7.3.1.tgz\",\n- \"integrity\": \"sha512-tLc0wSnatxAQHVHUapaHdz72pi9KUyHjq5KyHjGg9Y8Ifdc79pTh2XvI6I1/chZbnM7QtNKzh66ooDogPZSleA==\"\n+ \"version\": \"7.4.0\",\n+ \"resolved\": \"https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz\",\n+ \"integrity\": \"sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==\"\n},\n\"acorn-walk\": {\n\"version\": \"7.2.0\",\n}\n},\n\"webpack-chain\": {\n- \"version\": \"6.5.0\",\n- \"resolved\": \"https://registry.npmjs.org/webpack-chain/-/webpack-chain-6.5.0.tgz\",\n- \"integrity\": \"sha512-K4EHiEg4WlP4w1rKXKpYWvX9cfGBERHCGP06ETSNV62XUIfOUg1DDRQpxyBsFYxZLKc4YUAI3iiCIvWoliheGA==\",\n+ \"version\": \"6.5.1\",\n+ \"resolved\": \"https://registry.npmjs.org/webpack-chain/-/webpack-chain-6.5.1.tgz\",\n+ \"integrity\": \"sha512-7doO/SRtLu8q5WM0s7vPKPWX580qhi0/yBHkOxNkv50f6qB76Zy9o2wRTrrPULqYTvQlVHuvbA8v+G5ayuUDsA==\",\n\"requires\": {\n\"deepmerge\": \"^1.5.2\",\n\"javascript-stringify\": \"^2.0.1\"\n"
},
{
"change_type": "MODIFY",
"old_path": "package.json",
"new_path": "package.json",
"diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.0-rc.34\",\n+ \"version\": \"4.0.0-rc.35\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n\"url\": \"git://github.com/bolt/core.git\"\n},\n\"dependencies\": {\n- \"@vue/cli-service\": \"^4.4.6\",\n+ \"@vue/cli-service\": \"^4.5.3\",\n\"axios\": \"^0.19.2\",\n\"baguettebox.js\": \"^1.11.1\",\n\"bootbox\": \"^5.4.0\",\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Prepare release 4.0.0-rc.35
|
95,144 |
14.08.2020 15:51:54
| -7,200 |
b64834545ecde1a46470fefd291dcf7edd88b0b5
|
Ninja-editing config
|
[
{
"change_type": "MODIFY",
"old_path": "config/bolt/config.yaml",
"new_path": "config/bolt/config.yaml",
"diff": "-# Note: Database setup is done in ENV variables. See `.env` in the project root.\n+# Note: Database setup is best done in ENV variables. See the file `.env`\n+# in the project root.\n# The name of the website\nsitename: Bolt Core Git Clone\npayoff: The amazing payoff goes here\n+secret: '%env(APP_SECRET)%'\n+\n# The theme to use.\n#\n# Dont edit the provided templates directly, because they _will_ get updated\n@@ -162,6 +165,7 @@ htmlcleaner:\nallowed_tags: [ div, span, p, br, hr, s, u, strong, em, i, b, li, ul, ol, mark, blockquote, pre, code, tt, h1, h2, h3, h4, h5, h6, dd, dl, dt, table, tbody, thead, tfoot, th, td, tr, a, img, address, abbr, iframe, caption, sub, super, figure, figcaption ]\nallowed_attributes: [ id, class, style, name, value, href, src, alt, title, width, height, frameborder, allowfullscreen, scrolling, target, colspan, rowspan ]\nallowed_frame_targets: [ _blank, _self, _parent, _top ]\n+\n# Define the file types (extensions to be exact) that are acceptable for upload\n# in either file fields or through the files screen.\naccept_file_types: [ twig, html, js, css, scss, gif, jpg, jpeg, png, ico, zip, tgz, txt, md, doc, docx, pdf, epub, xls, xlsx, ppt, pptx, mp3, ogg, wav, m4a, mp4, m4v, ogv, wmv, avi, webm, svg]\n@@ -176,23 +180,6 @@ accept_media_types: [ gif, jpg, jpeg, png, svg, pdf, mp3, tiff ]\n#`post_max_size` and `upload_max_filesize` in `php.ini`.\naccept_upload_size: 8M\n-# If you want to brand the Bolt backend for a client, you can change some key\n-# variables here, that determine the name of the backend, and adds a primary\n-# support/contact link to the footer. Add a scheme, like `mailto:` or\n-# `https://` to the email or URL.\n-#\n-# Additionally you can change the mount point for the backend, either for\n-# convenience or to obscure it from prying eyes.\n-#\n-# The Bolt backend is accessible as `/bolt/` by default. If you change it here,\n-# it will only be accessible through the value set in path.\n-# Keep the path simple: lowercase only, no extra slashes or other special\n-# characters.\n-# branding:\n-# name: SuperCMS\n-# path: /admin\n-# provided_by: [ supercool@example.org, \"Supercool Webdesign Co.\" ]\n-\n# There are several options for giving editors more options to insert images,\n# video, etc in the WYSIWYG areas. But, as you give them more options, that\n# means they also have more ways of breaking the preciously designed layout.\n@@ -224,5 +211,3 @@ wysiwyg:\n# Enforcing the use of SSL. If set, all pages will enforce an SSL connection,\n# and redirect to HTTPS if you attempt to visit plain HTTP pages.\n# enforce_ssl: true\n-\n-secret: '%env(APP_SECRET)%'\n"
},
{
"change_type": "MODIFY",
"old_path": "config/bolt/menu.yaml",
"new_path": "config/bolt/menu.yaml",
"diff": "@@ -7,22 +7,20 @@ main:\nlink: homepage\nclass: homepage\n- label: About\n- link: blocks/about\n+ link: page/2\nsubmenu:\n- label: Sub 1\n- link: entry/29\n+ link: entry/39\n- label: Sub 2\nclass: menu-item-class\n- link: entry/30\n- - label: Sub 3\n- link: entry/31\n- - label: Sub 4\n- class: sub-class\n- link: page/32\n+ link: entry/40\n+ - link: entry/41 # These two have no `label`, so they will show up as the title\n+ - class: sub-class\n+ link: page/42\n- label: All pages\nlink: pages/\n- label: The Bolt site\n- link: https://bolt.cm\n+ link: https://boltcms.io\nclass: bolt-site\ntitle: Visit the excellent Bolt website!\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Ninja-editing config
|
95,168 |
14.08.2020 16:38:04
| -7,200 |
353687470122e61b7f4f05e2da3ff0d1e9fbe003
|
Add in CMS the lang attribute for the html tag
|
[
{
"change_type": "MODIFY",
"old_path": "templates/_base/layout.html.twig",
"new_path": "templates/_base/layout.html.twig",
"diff": "{# Check if aside has value and set hasAside variable #}\n{% set hasAside = block('aside')|trim is not empty ? true : false %}\n<!DOCTYPE html>\n-<html {% if block('html_id') %}id=\"{% block html_id %}{% endblock %}\"{% endif %}>\n+<html lang={{ app.user.locale }} {% if block('html_id') %}id=\"{% block html_id %}{% endblock %}\"{% endif %}>\n<head>\n<meta charset=\"utf-8\">\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Add in CMS the lang attribute for the html tag
|
95,168 |
14.08.2020 17:24:51
| -7,200 |
80d26040b85600b105dcc85d826b4cdc754af7e5
|
Set Locale for bootbox modals
|
[
{
"change_type": "MODIFY",
"old_path": "assets/js/app/confirmation.js",
"new_path": "assets/js/app/confirmation.js",
"diff": "@@ -6,6 +6,9 @@ $('*[data-confirmation]').on('click', function() {\nconst thisHref = $(this).attr('href');\nconst confirmation = $(this).data('confirmation');\n+ let locale = $('html').attr('lang');\n+ bootbox.setLocale(locale);\n+\nif (!thisElem.data('confirmed')) {\nbootbox.confirm(confirmation, function(result) {\nif (result && thisHref) {\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Set Locale for bootbox modals
|
95,168 |
14.08.2020 17:32:06
| -7,200 |
7e36a6a75b6c84972e0f0f3106229c247d2e07d7
|
Move bootbox config out of click event function
|
[
{
"change_type": "MODIFY",
"old_path": "assets/js/app/confirmation.js",
"new_path": "assets/js/app/confirmation.js",
"diff": "import bootbox from 'bootbox';\nimport $ from 'jquery';\n+let bootboxDefaults = {\n+ locale: 'en'\n+}\n+\n+bootbox.setDefaults(bootboxDefaults);\n+\n+let locale = $('html').attr('lang');\n+\n+if(locale){\n+ bootbox.setLocale(locale);\n+}\n+\n$('*[data-confirmation]').on('click', function() {\nconst thisElem = $(this);\nconst thisHref = $(this).attr('href');\nconst confirmation = $(this).data('confirmation');\n- let locale = $('html').attr('lang');\n- bootbox.setLocale(locale);\n-\nif (!thisElem.data('confirmed')) {\nbootbox.confirm(confirmation, function(result) {\nif (result && thisHref) {\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Move bootbox config out of click event function
|
95,144 |
15.08.2020 16:09:34
| -7,200 |
666905547057cc69a86a15d10d7eb1fe42c12a3f
|
Update templates/_base/layout.html.twig
|
[
{
"change_type": "MODIFY",
"old_path": "templates/_base/layout.html.twig",
"new_path": "templates/_base/layout.html.twig",
"diff": "{# Check if aside has value and set hasAside variable #}\n{% set hasAside = block('aside')|trim is not empty ? true : false %}\n<!DOCTYPE html>\n-<html lang={{ app.user.locale }} {% if block('html_id') %}id=\"{% block html_id %}{% endblock %}\"{% endif %}>\n+<html lang=\"{{ app.user.locale }}\" {% if block('html_id') %}id=\"{% block html_id %}{% endblock %}\"{% endif %}>\n<head>\n<meta charset=\"utf-8\">\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Update templates/_base/layout.html.twig
|
95,144 |
19.08.2020 11:24:55
| -7,200 |
29b552706da7c774c000df93ddb8233d88d50d56
|
Add `url_decode` Twig Filter
|
[
{
"change_type": "MODIFY",
"old_path": "ecs.php",
"new_path": "ecs.php",
"diff": "@@ -46,7 +46,7 @@ use Symplify\\CodingStandard\\Fixer\\Strict\\BlankLineAfterStrictTypesFixer;\nreturn static function (ContainerConfigurator $containerConfigurator): void {\n$parameters = $containerConfigurator->parameters();\n- $parameters->set('sets', ['clean-code', 'common', 'php70', 'php71', 'psr12', 'symfony', 'symfony-risky']);\n+ $parameters->set('sets', ['clean-code', 'common', 'php-70', 'php-71', 'psr-12', 'symfony', 'symfony-risky']);\n$parameters->set('paths', [\n__DIR__ . '/src',\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Twig/TextExtension.php",
"new_path": "src/Twig/TextExtension.php",
"diff": "@@ -30,6 +30,7 @@ class TextExtension extends AbstractExtension\nnew TwigFilter('ucwords', [$this, 'ucwords']),\nnew TwigFilter('preg_replace', [$this, 'pregReplace']),\nnew TwigFilter('format_bytes', [$this, 'formatBytes']),\n+ new TwigFilter('url_decode', [$this, 'urlDecode']),\n];\n}\n@@ -84,4 +85,23 @@ class TextExtension extends AbstractExtension\nreturn round($bytes, $precision) . ' ' . $units[$pow];\n}\n+\n+ public function urlDecode(string $string)\n+ {\n+ if (! mb_strpos($string, '=')) {\n+ return urldecode($string);\n+ }\n+\n+ $params = [];\n+\n+ foreach (explode('&', $string) as $chunk) {\n+ $param = explode('=', $chunk);\n+\n+ if ($param) {\n+ $params[urldecode($param[0])] = urldecode($param[1]);\n+ }\n+ }\n+\n+ return $params;\n+ }\n}\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Add `url_decode` Twig Filter
|
95,144 |
19.08.2020 10:05:15
| -7,200 |
212394834bbb140bd79fc1a7f6d1acaede4a8ed8
|
Set filter in "Templateselect" to a regex by default
|
[
{
"change_type": "MODIFY",
"old_path": "config/bolt/contenttypes.yaml",
"new_path": "config/bolt/contenttypes.yaml",
"diff": "@@ -96,7 +96,7 @@ pages:\nlabel: \"This is a checkbox\"\ntemplate:\ntype: templateselect\n- filter: '*.twig'\n+ filter: '/^[^_].*\\.twig$/'\ntaxonomy: [ groups ]\nlisting_records: 6\norder: id\n"
},
{
"change_type": "MODIFY",
"old_path": "src/Twig/ContentExtension.php",
"new_path": "src/Twig/ContentExtension.php",
"diff": "@@ -445,7 +445,7 @@ class ContentExtension extends AbstractExtension\n$finder\n->files()\n->in($this->config->getPath('theme'))\n- ->name($definition->get('filter', '*.twig'))\n+ ->name($definition->get('filter', '/^[^_].*\\.twig$/'))\n->path($definition->get('path'));\n$options = [];\n"
}
] |
PHP
|
MIT License
|
bolt/core
|
Set filter in "Templateselect" to a regex by default
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.