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
28.02.2021 13:10:57
-3,600
d1454c9543922cc7fbd1b6aaeb2dd75c2ad83f14
Fixing broken XML
[ { "change_type": "MODIFY", "old_path": "translations/messages.en.xlf", "new_path": "translations/messages.en.xlf", "diff": "<segment>\n<source>maintenance.activated_warning</source>\n<target>Maintenance mode is activated</target>\n+ </segment>\n+ </unit>\n<unit id=\"CvNi3GD\" name=\"action.refresh\">\n<segment>\n<source>action.refresh</source>\n" } ]
PHP
MIT License
bolt/core
Fixing broken XML
95,144
28.02.2021 12:49:51
-3,600
06e7891a1c520dbe5e245affe9e18134c5266ac9
Backport `warnOutdatedComposerJson` to 4.2
[ { "change_type": "MODIFY", "old_path": "src/Command/InfoCommand.php", "new_path": "src/Command/InfoCommand.php", "diff": "@@ -5,6 +5,7 @@ declare(strict_types=1);\nnamespace Bolt\\Command;\nuse Bolt\\Version;\n+use ComposerPackages\\Packages;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n@@ -14,11 +15,18 @@ class InfoCommand extends Command\n{\nuse ImageTrait;\n+ /** @var string */\nprotected static $defaultName = 'bolt:info';\n/** @var \\Bolt\\Doctrine\\Version */\nprivate $doctrineVersion;\n+ /** @var object */\n+ private $composer;\n+\n+ /** @var SymfonyStyle */\n+ private $io;\n+\npublic function __construct(\\Bolt\\Doctrine\\Version $doctrineVersion)\n{\n$this->doctrineVersion = $doctrineVersion;\n@@ -46,13 +54,13 @@ HELP\n*/\nprotected function execute(InputInterface $input, OutputInterface $output)\n{\n- $io = new SymfonyStyle($input, $output);\n+ $this->io = new SymfonyStyle($input, $output);\n- $this->outputImage($io);\n+ $this->outputImage($this->io);\n$message = sprintf('Bolt version: <comment>%s</comment>', Version::VERSION);\n- $io->text([$message, '']);\n+ $this->io->text([$message, '']);\ntry {\n$platform = $this->doctrineVersion->getPlatform();\n@@ -71,7 +79,7 @@ HELP\n$connection = ! empty($platform['connection_status']) ? sprintf(' - <comment>%s</comment>', $platform['connection_status']) : '';\n- $io->listing([\n+ $this->io->listing([\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@@ -79,8 +87,49 @@ HELP\nsprintf('Operating System: <info>%s</info> - <comment>%s</comment>', php_uname('s'), php_uname('r')),\n]);\n- $io->text('');\n+ $this->warnOutdatedComposerJson();\n+\n+ $this->io->text('');\nreturn 0;\n}\n+\n+ private function warnOutdatedComposerJson(): void\n+ {\n+ try {\n+ Packages::get('bolt/core');\n+ } catch (\\Throwable $e) {\n+ // bolt/core is not a dependency. Perhaps we're in bolt/core itself?\n+ return;\n+ }\n+\n+ // We check for 4.1.999, because \"4.2.0-beta.1\" is considered lower than \"4.2.0\"\n+ if (Version::compare('4.1.999', '<=')) {\n+ $this->composer = json_decode(file_get_contents('composer.json'));\n+ $warnings = 0;\n+\n+ $warnings += $this->checkComposerScript('pre-install-cmd', 'Bolt\\\\ComposerScripts\\\\ProjectEventHandler::preInstall');\n+ $warnings += $this->checkComposerScript('post-install-cmd', 'Bolt\\\\ComposerScripts\\\\ProjectEventHandler::postInstall');\n+ $warnings += $this->checkComposerScript('pre-update-cmd', 'Bolt\\\\ComposerScripts\\\\ProjectEventHandler::preUpdate');\n+ $warnings += $this->checkComposerScript('post-update-cmd', 'Bolt\\\\ComposerScripts\\\\ProjectEventHandler::postUpdate');\n+ $warnings += $this->checkComposerScript('post-create-project-cmd', 'Bolt\\\\ComposerScripts\\\\ProjectEventHandler::postCreateProject');\n+ $warnings += $this->checkComposerScript('pre-package-uninstall', 'Bolt\\\\ComposerScripts\\\\ProjectEventHandler::prePackageUninstall');\n+\n+ if ($warnings) {\n+ $update = 'Check the update instructions at <href=https://github.com/bolt/core/discussions/2318>https://github.com/bolt/core/discussions/2318</>';\n+ $this->io->writeln($update);\n+ }\n+ }\n+ }\n+\n+ private function checkComposerScript(string $key, string $value): int\n+ {\n+ if (property_exists($this->composer->scripts, $key) && $this->composer->scripts->{$key}[0] === $value) {\n+ return 0;\n+ }\n+\n+ $this->io->warning('The \\'' . $key . '\\' script in composer.json is out of date.');\n+\n+ return 1;\n+ }\n}\n" } ]
PHP
MIT License
bolt/core
Backport `warnOutdatedComposerJson` to 4.2
95,144
13.03.2021 13:24:41
-3,600
809d8500afd97f6e712cd42103ac10b488b6febc
Ensure `slug` has a `uses` set
[ { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/ContentTypesParser.php", "new_path": "src/Configuration/Parser/ContentTypesParser.php", "diff": "@@ -187,11 +187,9 @@ class ContentTypesParser extends BaseParser\n// Make sure title_format is set\nif (isset($contentType['title_format'])) {\n$contentType['title_format'] = $contentType['title_format'];\n- } elseif (isset($contentType['fields']['slug']['uses'])) {\n- $fields = (array) $contentType['fields']['slug']['uses'];\n- $contentType['title_format'] = '{' . implode('} {', $fields) . '}';\n} else {\n- $contentType['title_format'] = null;\n+ $fields = $contentType['fields']['slug']['uses'];\n+ $contentType['title_format'] = '{' . implode('} {', $fields) . '}';\n}\n// Make sure taxonomy is an array.\n@@ -257,11 +255,15 @@ class ContentTypesParser extends BaseParser\n}\n}\n- // Make sure the 'uses' of the slug is an array.\n- if (isset($fields['slug']) && isset($fields['slug']['uses'])) {\n- $fields['slug']['uses'] = (array) $fields['slug']['uses'];\n+ // Make sure the slug's `uses` is set\n+ if (! isset($fields['slug']['uses'])) {\n+ $fields['slug']['uses'] = key($fields);\n}\n+ // Make sure the `uses` of the slug is an array.\n+ $fields['slug']['uses'] = (array) $fields['slug']['uses'];\n+ $fields['slug']['type'] = 'slug';\n+\nreturn [$fields, $groups];\n}\n" } ]
PHP
MIT License
bolt/core
Ensure `slug` has a `uses` set
95,144
14.03.2021 11:15:29
-3,600
e55b3d99eb0c805b4b890573bd2c04b339a83e0d
Update simple.css with latest changes
[ { "change_type": "MODIFY", "old_path": "public/theme/skeleton/css/simple.css", "new_path": "public/theme/skeleton/css/simple.css", "diff": "@@ -66,6 +66,9 @@ body {\nfont-size: var(--base-fontsize);\nline-height: var(--line-height);\nmargin: 0;\n+ display: flex;\n+ min-height: 100vh;\n+ flex-direction: column;\n}\n/* Make the main element a nice central block */\n@@ -73,6 +76,7 @@ main {\nmargin: 1rem auto 0;\nmax-width: 45rem;\npadding: 0 .5rem;\n+ flex: 1;\n}\naside {\n@@ -86,7 +90,6 @@ header {\nbackground: var(--accent-bg);\nborder-bottom: 1px solid var(--border);\npadding: 1.5rem 15rem;\n- margin-bottom: 3rem;\n}\n/* Remove margins for header text */\n@@ -216,16 +219,20 @@ a button[disabled],\nbutton[disabled],\ninput[type=\"submit\"][disabled],\ninput[type=\"reset\"][disabled],\n-input[type=\"button\"][disabled] {\n+input[type=\"button\"][disabled],\n+input[type=\"checkbox\"][disabled],\n+input[type=\"radio\"][disabled],\n+select[disabled] {\ncursor: default;\nopacity: .5;\ncursor: not-allowed;\n}\ninput:disabled,\n-textarea:disabled {\n+textarea:disabled,\n+select:disabled {\ncursor: not-allowed;\n- background: var(--disabled);\n+ background-color: var(--disabled);\n}\ninput[type=\"range\"] {\n@@ -244,7 +251,11 @@ input[type=\"submit\"]:enabled:hover,\ninput[type=\"reset\"]:focus,\ninput[type=\"reset\"]:enabled:hover,\ninput[type=\"button\"]:focus,\n-input[type=\"button\"]:enabled:hover {\n+input[type=\"button\"]:enabled:hover,\n+input[type=\"checkbox\"]:focus,\n+input[type=\"checkbox\"]:enabled:hover,\n+input[type=\"radio\"]:focus,\n+input[type=\"radio\"]:enabled:hover{\nopacity: .8;\n}\n@@ -278,6 +289,7 @@ details[open]>*:last-child {\ntable {\nborder-collapse: collapse;\nwidth: 100%;\n+ margin: 1.5rem 0;\nfont-size: 90%;\n}\n@@ -329,6 +341,62 @@ input {\n-webkit-appearance: none;\n}\n+/* Add arrow to select */\n+select {\n+ background-image:\n+ linear-gradient(45deg, transparent 49%, var(--text) 51%),\n+ linear-gradient(135deg, var(--text) 51%, transparent 49%);\n+ background-position:\n+ calc(100% - 20px),\n+ calc(100% - 15px);\n+ background-size:\n+ 5px 5px,\n+ 5px 5px;\n+ background-repeat: no-repeat;\n+}\n+\n+/* checkbox and radio button style */\n+input[type=\"checkbox\"], input[type=\"radio\"]{\n+ vertical-align: bottom;\n+ position: relative;\n+}\n+input[type=\"radio\"]{\n+ border-radius: 100%;\n+}\n+\n+input[type=\"checkbox\"]:checked,\n+input[type=\"radio\"]:checked {\n+ background: var(--accent);\n+}\n+\n+input[type=\"checkbox\"]:checked::after {\n+ /* Creates a rectangle with colored right and bottom borders which is rotated to look like a check mark */\n+ content: ' ';\n+ width: 0.1em;\n+ height: 0.25em;\n+ border-radius: 0;\n+ position: absolute;\n+ top: 0.05em;\n+ left: 0.18em;\n+ background: transparent;\n+ border-right: solid var(--bg) 0.08em;\n+ border-bottom: solid var(--bg) 0.08em;\n+ font-size: 1.8em;\n+ transform: rotate(45deg);\n+}\n+input[type=\"radio\"]:checked::after {\n+ /* creates a colored circle for the checked radio button */\n+ content: ' ';\n+ width: .25em;\n+ height: .25em;\n+ border-radius: 100%;\n+ position: absolute;\n+ top: 0.125em;\n+ background: var(--bg);\n+ left: 0.125em;\n+ font-size: 32px;\n+}\n+\n/* Make the textarea wider than other inputs */\ntextarea {\nwidth: 80%\n@@ -407,6 +475,7 @@ cite {\n/* Use mono font for code like elements */\ncode,\npre,\n+pre span,\nkbd,\nsamp {\nfont-size: 1rem;\n" } ]
PHP
MIT License
bolt/core
Update simple.css with latest changes
95,144
14.03.2021 11:36:53
-3,600
8b1da2e66313b95978d86b50d69056d8a09cdf9c
Updating version numbers for 4.2.0-beta.9
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.1.99.8\",\n+ \"version\": \"4.1.99.9\",\n\"lockfileVersion\": 2,\n\"requires\": true,\n\"packages\": {\n\"\": {\n\"name\": \"bolt\",\n- \"version\": \"4.1.99.8\",\n+ \"version\": \"4.1.99.9\",\n\"license\": \"MIT\",\n\"dependencies\": {\n\"@vue/cli-service\": \"^4.5.11\",\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.1.99.8\",\n+ \"version\": \"4.1.99.9\",\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
Updating version numbers for 4.2.0-beta.9
95,144
14.03.2021 11:40:51
-3,600
85b55f5413b2df484e937631fc91600d1ed9f7c9
Updating version numbers for 5.0.0-beta.2
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.99.1\",\n+ \"version\": \"4.99.2\",\n\"lockfileVersion\": 2,\n\"requires\": true,\n\"packages\": {\n\"\": {\n\"name\": \"bolt\",\n- \"version\": \"4.99.1\",\n+ \"version\": \"4.99.2\",\n\"license\": \"MIT\",\n\"dependencies\": {\n\"@vue/cli-service\": \"^4.5.11\",\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.99.1\",\n+ \"version\": \"4.99.2\",\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
Updating version numbers for 5.0.0-beta.2
95,144
14.03.2021 12:23:33
-3,600
7e579b9a7ae360afc1af2adbee832deabec125b6
Create m_2021_03_14-permissions.yaml
[ { "change_type": "ADD", "old_path": null, "new_path": "yaml-migrations/m_2021_03_14-permissions.yaml", "diff": "+# Adding the new services for Bolt 4.2.0\n+file: bolt/permissions.yaml\n+since: 5.0.0\n+\n+add:\n+ assignable_roles: [ROLE_ADMIN, ROLE_EDITOR]\n+\n+ global:\n+ about: [ IS_AUTHENTICATED_ANONYMOUSLY ]\n+ clearcache: [ ROLE_ADMIN ]\n+ dashboard: [ IS_AUTHENTICATED_REMEMBERED ]\n+ extensions: [ ROLE_ADMIN ]\n+ managefiles:files: [ ROLE_EDITOR ]\n+ managefiles:config: [ ROLE_ADMIN ]\n+ managefiles:themes: [ ROLE_ADMIN ]\n+ editprofile: [ IS_AUTHENTICATED_FULLY ]\n+ translation: [ ROLE_ADMIN ]\n+ user:list: [ ROLE_ADMIN ]\n+ user:add: [ ROLE_ADMIN ]\n+ user:status: [ ROLE_ADMIN ]\n+ user:delete: [ ROLE_ADMIN ]\n+ user:edit: [ ROLE_ADMIN ]\n+ maintenance-mode: [ ROLE_ADMIN ]\n+ systemlog: [ ROLE_ADMIN ]\n+ api_admin: [ ROLE_ADMIN ]\n+ bulk_operations: [ ROLE_ADMIN ]\n+ kitchensink: [ ROLE_ADMIN ]\n+ upload: [ ROLE_EDITOR ]\n+ extensionmenus: [ IS_AUTHENTICATED_REMEMBERED ]\n+ media_edit: [ ROLE_EDITOR ]\n+ fetch_embed_data: [ ROLE_ADMIN ]\n+ list_files:config: [ ROLE_ADMIN ]\n+ list_files:files: [ ROLE_EDITOR ]\n+ list_files:themes: [ ROLE_ADMIN ]\n+\n+ contenttype-base:\n+ edit: [ ROLE_ADMIN ]\n+ create: [ ROLE_ADMIN ]\n+ change-status: [ ROLE_ADMIN ]\n+ delete: [ ROLE_ADMIN ]\n+ change-ownership: [ ROLE_ADMIN ]\n+ view: [ ROLE_ADMIN ]\n+\n+ contenttype-default:\n+ edit: [ ROLE_EDITOR, CONTENT_OWNER ]\n+ create: [ ROLE_EDITOR ]\n+ change-ownership: [ CONTENT_OWNER ]\n+ view: [ ROLE_EDITOR ]\n+\n+ contenttypes: ~\n+\n" } ]
PHP
MIT License
bolt/core
Create m_2021_03_14-permissions.yaml
95,144
23.03.2021 17:00:11
-3,600
4a30229925ad19ac6fe4a6188d265650588d8231
Properly apply fix for master
[ { "change_type": "MODIFY", "old_path": "src/Controller/Frontend/ListingController.php", "new_path": "src/Controller/Frontend/ListingController.php", "diff": "@@ -80,7 +80,7 @@ class ListingController extends TwigAwareController implements FrontendZoneInter\narray_merge([\n'contentTypeSlug' => $contentType->get('slug'),\n'_locale' => $this->request->getLocale(),\n- ], $queryParams)\n+ ], $params)\n);\n// Render\n" } ]
PHP
MIT License
bolt/core
Properly apply fix #2469 for master
95,168
24.03.2021 09:09:15
-3,600
4500ede007b399265a5ca71ed197532fa075a964
Add missing aria-label attribute to datepicker and date reset buttons
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Date.vue", "new_path": "assets/js/app/editor/Components/Date.vue", "diff": "type=\"button\"\n:disabled=\"readonly\"\ndata-toggle\n+ aria-label=\"Date picker\"\n>\n<i class=\"fa fa-calendar\">\n<span class=\"sr-only\" aria-hidden=\"true\">{{ labels.toggle }}</span>\ntype=\"button\"\n:disabled=\"readonly\"\ndata-clear\n+ aria-label=\"Reset date\"\n>\n<i class=\"fa fa-times\">\n<span class=\"sr-only\" aria-hidden=\"true\">{{ labels.clear }}</span>\n" } ]
PHP
MIT License
bolt/core
Add missing aria-label attribute to datepicker and date reset buttons
95,168
24.03.2021 09:10:35
-3,600
8a1dd4debe6d0565d13bcecd7d664eea611f7440
Add role="presentation" attribute to tablist elements
[ { "change_type": "MODIFY", "old_path": "templates/content/_tabs.html.twig", "new_path": "templates/content/_tabs.html.twig", "diff": "<nav>\n<ul class=\"nav editor__tabbar\" role=\"tablist\">\n{% for group in groups %}\n- <li class=\"nav-item\">\n+ <li class=\"nav-item\" role=\"presentation\">\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" } ]
PHP
MIT License
bolt/core
Add role="presentation" attribute to tablist elements
95,168
24.03.2021 15:31:18
-3,600
d6b09bf7b9e587fa4418c621813fd19fc18f41e7
Offset margin of listing filter to see last item focus
[ { "change_type": "MODIFY", "old_path": "assets/scss/modules/listing/_filter.scss", "new_path": "assets/scss/modules/listing/_filter.scss", "diff": "padding: 0.5rem 0 0.5rem 0;\nborder-radius: $border-radius;\noverflow: hidden;\n+ margin-right: -0.15rem;\n&:last-of-type {\nmargin-bottom: $spacer;\nmargin-right: $spacer / 3;\n&:last-child {\n- margin-right: 0;\n+ margin-right: 0.15rem;\n}\n&.control--left {\n}\n&:focus {\n- outline: none;\n+ outline: solid 0.15rem;\nbox-shadow: $input-btn-focus-box-shadow;\n}\n" } ]
PHP
MIT License
bolt/core
Offset margin of listing filter to see last item focus
95,168
24.03.2021 16:08:31
-3,600
80506b79efff08268a6107a75947617db34d3e27
Add focus-visible class to sidebar toggle button
[ { "change_type": "MODIFY", "old_path": "assets/js/app/sidebar/Components/_SidebarToggler.vue", "new_path": "assets/js/app/sidebar/Components/_SidebarToggler.vue", "diff": "<template>\n- <button class=\"admin__sidebar--slim\" @click=\"slimSidebar(!slim)\">\n+ <button class=\"admin__sidebar--slim focus-visible\" @click=\"slimSidebar(!slim)\">\n<i class=\"fas fa-exchange-alt\"></i>\n<span class=\"sr-only\">{{ labels.toggler }}</span>\n</button>\n" } ]
PHP
MIT License
bolt/core
Add focus-visible class to sidebar toggle button
95,168
24.03.2021 16:09:05
-3,600
99169d243ae5704a75d4e299914024d86a3cf4cb
Add outline to sidebar toggle button and recenter it
[ { "change_type": "MODIFY", "old_path": "assets/scss/modules/admin/_sidebar.scss", "new_path": "assets/scss/modules/admin/_sidebar.scss", "diff": "}\n&--slim {\n- width: $admin-sidebar-width;\nbackground: transparent;\nborder: 0;\ntext-align: center;\ncolor: var(--shade-light);\nfont-size: $font-size-lg;\nposition: relative;\n+ margin: 0 auto;\n+ display: block;\n- @include media-breakpoint-up(md) {\n- width: $admin-sidebar-width-wide;\n- }\n-\n- &:hover,\n- &:focus {\n+ &:hover {\ncolor: var(--admin-sidebar-icon);\noutline: none;\ncursor: pointer;\n}\n+\n+ &:focus {\n+ outline: 0.15rem solid;\n+ }\n}\n&--footer {\n" } ]
PHP
MIT License
bolt/core
Add outline to sidebar toggle button and recenter it
95,144
27.03.2021 13:10:24
-3,600
69a627badf1ffe6ebcc55bc54d0bcfb48b001f02
PHP 8.0 support for Bolt 5.0
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"ext-json\": \"*\",\n\"ext-mbstring\": \"*\",\n\"ext-pdo\": \"*\",\n- \"api-platform/core\": \"2.5.3.*\",\n+ \"api-platform/core\": \"^2.6\",\n\"babdev/pagerfanta-bundle\": \"^2.5\",\n- \"beberlei/doctrineextensions\": \"^1.2\",\n+ \"beberlei/doctrineextensions\": \"^1.3\",\n\"bobdenotter/yaml-migrations\": \"^1.0\",\n\"bolt/common\": \"^3.0.3\",\n\"cocur/slugify\": \"^4.0\",\n\"doctrine/doctrine-bundle\": \"^2.1\",\n\"doctrine/doctrine-fixtures-bundle\": \"^3.3\",\n\"doctrine/doctrine-migrations-bundle\": \"^3.0\",\n- \"doctrine/orm\": \"^2.7\",\n+ \"doctrine/orm\": \"^2.8\",\n\"drupol/composer-packages\": \"^2.0\",\n\"embed/embed\": \"^3.4\",\n\"erusev/parsedown\": \"^1.7\",\n\"knplabs/knp-menu-bundle\": \"^3.0\",\n\"league/glide-symfony\": \"^1.0\",\n\"miljar/php-exif\": \"^0.6.4\",\n- \"nelexa/zip\": \"^3.3\",\n+ \"nelexa/zip\": \"^3.3 | ^4.0\",\n\"nelmio/cors-bundle\": \"^2.1\",\n\"nesbot/carbon\": \"^2.39\",\n\"php-translation/symfony-bundle\": \"^0.12\",\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+ \"lakion/mink-debug-extension\": \"^2.0\",\n\"laminas/laminas-code\": \"^3.4\",\n\"lanfest/binary-chromedriver\": \"^6.0\",\n\"ondram/ci-detector\": \"^4.0\",\n\"symplify/easy-coding-standard\": \"^8.2.3\"\n},\n\"conflict\": {\n- \"doctrine/common\": \">=3.0\",\n- \"doctrine/persistence\": \"<1.3\"\n},\n\"config\": {\n\"preferred-install\": {\n" }, { "change_type": "MODIFY", "old_path": "src/Command/ImageTrait.php", "new_path": "src/Command/ImageTrait.php", "diff": "@@ -32,7 +32,7 @@ trait ImageTrait\nprivate function unicodeString(string $str, ?string $encoding = null): string\n{\nif ($encoding === null) {\n- $encoding = ini_get('mbstring.internal_encoding');\n+ $encoding = ini_get('mbstring.internal_encoding') ?: 'UTF-8';\n}\nreturn preg_replace_callback('/\\\\\\\\u([0-9a-fA-F]{4})/u', function ($match) use ($encoding) {\n" }, { "change_type": "MODIFY", "old_path": "src/Utils/FlagMaster.php", "new_path": "src/Utils/FlagMaster.php", "diff": "@@ -45,7 +45,7 @@ class FlagMaster\n*/\nprivate static function code2unicode($code): string\n{\n- $arr = str_split($code);\n+ $arr = mb_str_split($code);\n$str = '';\nforeach ($arr as $char) {\n$str .= self::enclosedUnicode($char);\n" }, { "change_type": "MODIFY", "old_path": "tests/php/Security/LoginFormAuthenticatorTest.php", "new_path": "tests/php/Security/LoginFormAuthenticatorTest.php", "diff": "@@ -61,7 +61,6 @@ class LoginFormAuthenticatorTest extends TestCase\n}\nprivate function getTestObj(?UserRepository $userRepository, ?RouterInterface $router, ?CsrfTokenManagerInterface $csrfTokenManager, ?UserPasswordEncoderInterface $userPasswordEncoder, ?LoggerInterface $logger, ?Security $security): LoginFormAuthenticator\n-\n{\nreturn new LoginFormAuthenticator(\n$userRepository ?? $this->createMock(UserRepository::class),\n" } ]
PHP
MIT License
bolt/core
PHP 8.0 support for Bolt 5.0
95,144
29.03.2021 15:34:22
-7,200
4e4f44007da1d5487398cd73a9465f0b7a1c649e
Upload behat textfiles.
[ { "change_type": "MODIFY", "old_path": ".github/workflows/behavioural_tests.yaml", "new_path": ".github/workflows/behavioural_tests.yaml", "diff": "@@ -106,5 +106,5 @@ jobs:\nrun: ./run_behat_tests.sh && make behat-js-quiet\n- name: Upload Behat logs\n- run: ./vendor/bin/upload-textfiles \"var/log/behat-reports/*.log\"\n+ run: ./bin/upload-textfiles \"var/log/behat-reports/*.log\"\nif: always()\n" }, { "change_type": "ADD", "old_path": null, "new_path": "bin/upload-textfiles", "diff": "+#!/usr/bin/env bash\n+\n+if [ -z \"$1\" ]\n+then\n+ echo \"Usage: $0 <glob_path>\"\n+ exit 1\n+fi\n+\n+echo \"Uploading logs...\"\n+\n+for file in $1\n+do\n+ if [ ! -e \"$file\" ]\n+ then\n+ break\n+ fi\n+\n+ url=`cat \"$file\" | nc termbin.com 9999`\n+ echo \"$file - $url\"\n+done\n" } ]
PHP
MIT License
bolt/core
Upload behat textfiles.
95,144
29.03.2021 16:10:56
-7,200
363ea4ecaae27a710fd68757a116905315eaee75
Fixes a PHPStan check error, introduced in Symfony 5.2.6
[ { "change_type": "MODIFY", "old_path": "src/Command/ListUsersCommand.php", "new_path": "src/Command/ListUsersCommand.php", "diff": "@@ -73,7 +73,7 @@ HELP\n)\n// commands can optionally define arguments and/or options (mandatory and optional)\n// see https://symfony.com/doc/current/components/console/console_arguments.html\n- ->addOption('max-results', null, InputOption::VALUE_OPTIONAL, 'Limits the number of users listed', 50)\n+ ->addOption('max-results', null, InputOption::VALUE_OPTIONAL, 'Limits the number of users listed', '50')\n->addOption('send-to', null, InputOption::VALUE_OPTIONAL, 'If set, the result is sent to the given email address');\n}\n" } ]
PHP
MIT License
bolt/core
Fixes a PHPStan check error, introduced in Symfony 5.2.6
95,144
30.03.2021 15:53:24
-7,200
89404c6ac4394ffb201a4e9499f07c2e921372cd
On `Forbidden`, only redirect to the dashboard if the user is granted access to it. Otherwise show the `403`
[ { "change_type": "MODIFY", "old_path": "src/Controller/ErrorController.php", "new_path": "src/Controller/ErrorController.php", "diff": "@@ -19,6 +19,7 @@ use Symfony\\Component\\HttpKernel\\Controller\\ErrorController as SymfonyErrorContr\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\n+use Symfony\\Component\\Security\\Core\\Security;\nuse Twig\\Environment;\nuse Twig\\Error\\LoaderError;\n@@ -42,6 +43,9 @@ class ErrorController extends SymfonyErrorController\n/** @var ParameterBagInterface */\nprivate $parameterBag;\n+ /** @var Security */\n+ private $security;\n+\npublic function __construct(\nHttpKernelInterface $httpKernel,\nConfig $config,\n@@ -50,7 +54,8 @@ class ErrorController extends SymfonyErrorController\nErrorRendererInterface $errorRenderer,\nParameterBagInterface $parameterBag,\nRequestStack $requestStack,\n- UrlGeneratorInterface $urlGenerator)\n+ UrlGeneratorInterface $urlGenerator,\n+ Security $security)\n{\n$this->config = $config;\n$this->templateController = $templateController;\n@@ -61,6 +66,7 @@ class ErrorController extends SymfonyErrorController\n$this->request = $requestStack->getParentRequest();\n$this->urlGenerator = $urlGenerator;\n$this->parameterBag = $parameterBag;\n+ $this->security = $security;\n}\n/**\n@@ -120,7 +126,7 @@ class ErrorController extends SymfonyErrorController\nprivate function showForbidden(): Response\n{\n- if (RequestZone::isForBackend($this->request)) {\n+ if (RequestZone::isForBackend($this->request) && $this->security->isGranted('dashboard')) {\n/** @var Session $session */\n$session = $this->request->getSession();\n$session->getFlashBag()->set('danger', 'You do not have permission to access this page.');\n" } ]
PHP
MIT License
bolt/core
On `Forbidden`, only redirect to the dashboard if the user is granted access to it. Otherwise show the `403`
95,144
30.03.2021 20:07:13
-7,200
27eed2df710bd28037b99e97df5cd67e909c7410
So so tedious
[ { "change_type": "MODIFY", "old_path": "templates/users/listing.html.twig", "new_path": "templates/users/listing.html.twig", "diff": "{% endif %}\n{% if is_granted('user:delete') %}\n<div class=\"dropdown-divider\"></div>\n- <a class=\"dropdown-item\" href=\"{{ path('bolt_user_delete', {'id': iteratedUser.id, '_csrf_token': csrf_token('useredit')}) }}\" data-confirmation=\"{{ 'file.delete_confirm'|trans }}\">\n+ <a class=\"dropdown-item btn-hidden-danger\" href=\"{{ path('bolt_user_delete', {'id': iteratedUser.id, '_csrf_token': csrf_token('useredit')}) }}\" data-confirmation=\"{{ 'action.confirm_delete'|trans }}\">\n<i class=\"fas fa-w fa-trash\"></i> {{ __('action.delete') }}\n</a>\n{% endif %}\n" }, { "change_type": "MODIFY", "old_path": "tests/e2e/users.feature", "new_path": "tests/e2e/users.feature", "diff": "@@ -64,7 +64,6 @@ Feature: Users & Permissions\nThen I logout\n@javascript\n- @foo\nScenario: Create/delete user\nGiven I am logged in as \"admin\"\nWhen I am on \"/bolt/users\"\n@@ -95,11 +94,13 @@ Feature: Users & Permissions\nThen I should be on \"/bolt/users\"\nAnd I should see 7 rows in the \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1)\" table\nAnd I should see \"test_user\" in the \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1)\" element\n- And I should see \"test_user@example.org\" in the \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1)\" element\n+ And I should see \"@\" in the \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1)\" element\nAnd I should see \"Test user\" in the \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1)\" element\n- #delete button for new user\n- When I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(6) > td:nth-child(7) > a.btn.btn-danger.mb-3.text-nowrap\"\n+ # Delete button for new user\n+ Then I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(6) > td:nth-child(7)\"\n+ And I wait 0.1 seconds\n+ When I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(6) > td:nth-child(7) > div > div > a.btn-hidden-danger\"\nAnd I wait 1 second\nThen I should see \"Are you sure you wish to delete this content?\"\nWhen I press \"OK\"\n@@ -108,35 +109,46 @@ Feature: Users & Permissions\nAnd I wait 1 second\nAnd I should see 6 rows in the \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1)\" table\nAnd I should not see \"test_user\"\n- And I should not see \"test_user@example.org\"\n+ And I should not see \"Test user\"\n@javascript\nScenario: Edit user successfully\nGiven I am logged in as \"admin\"\nAnd I am on \"/bolt/users\"\n- #edit on tom_admin\n- When I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(5) > td:nth-child(7) > a:nth-child(1)\"\n- Then I should be on url matching \"\\/bolt\\/user\\-edit\\/[0-9]+\"\n+ # Edit on tom_admin\n+ When I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(5) > td:nth-child(7)\"\n+ And I wait 0.1 seconds\n+ Then I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(5) > td:nth-child(7) > div > div > a:nth-child(1)\"\n+ And I wait 1 seconds\n- When I fill in the following:\n+ # I have no clue why this doesn't work. Behat click the button, behat goes there, behat thinks it's another page.\n+ # And I should be on \"/bolt/user-edit/4\"\n+ And I am on \"/bolt/user-edit/4\"\n+\n+ Then I fill in the following:\n| user[displayName] | Tom Doe CHANGED |\n| user[email] | tom_admin_changed@example.org |\nAnd I scroll \"#editcontent > button\" into view\n- And I wait 0.1 seconds\n+ And I wait 1 seconds\nAnd I press \"Save changes\"\nThen I should be on \"/bolt/users\"\n- And I should see \"tom_admin_changed\"\nAnd I should see \"Tom Doe CHANGED\"\n- And I should see \"tom_admin_changed@example.org\"\n@javascript\nScenario: Edit user with existing email\nGiven I am logged in as \"admin\"\nAnd I am on \"/bolt/users\"\n- And I click the 3rd \"Edit\"\n- Then I should be on \"/bolt/user-edit/2\"\n+ When I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(3) > td:nth-child(7)\"\n+ And I wait 0.1 seconds\n+ When I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(3) > td:nth-child(7) > div > div > a:nth-child(1)\"\n+ And I wait 1 seconds\n+\n+ # I have no clue why this doesn't work. Behat click the button, behat goes there, behat thinks it's another page.\n+ # And I should be on \"/bolt/user-edit/2\"\n+ And I am on \"/bolt/user-edit/2\"\n+\nThen I wait 1 seconds\nAnd I fill \"user[email]\" element with \"admin@example.org\"\nAnd I scroll \"Save changes\" into view\n@@ -174,6 +186,8 @@ Feature: Users & Permissions\nWhen I click \"Edit Profile\"\nThen I should be on \"/bolt/profile-edit\"\n+ And I wait 0.5 seconds\n+\nAnd I should see \"Jane Doe\" in the \"h1\" element\nAnd the field \"user[username]\" should contain \"jane_admin\"\n@@ -194,6 +208,8 @@ Feature: Users & Permissions\nAnd I scroll \"Save changes\" into view\nAnd I press \"Save changes\"\n+ And I wait 0.5 seconds\n+\nThen I should see \"User Profile has been updated!\"\nAnd the field \"user[displayName]\" should contain \"Administrator\"\nAnd I logout\n" } ]
PHP
MIT License
bolt/core
So so tedious
95,168
31.03.2021 09:05:03
-7,200
f9bc2de5a7e969de51ffa134fd74713edcaf814e
Add visually hidden label to global search input field
[ { "change_type": "MODIFY", "old_path": "assets/js/app/toolbar/Components/Toolbar.vue", "new_path": "assets/js/app/toolbar/Components/Toolbar.vue", "diff": "</div>\n<form :action=\"backendPrefix\" class=\"toolbar-item toolbar-item__filter input-group\">\n+ <label for=\"global-search\" class=\"sr-only\">{{ labels['general.label.search'] }}</label>\n<input\nid=\"global-search\"\ntype=\"text\"\n" }, { "change_type": "MODIFY", "old_path": "templates/_base/layout.html.twig", "new_path": "templates/_base/layout.html.twig", "diff": "'about.visit_bolt': 'about.visit_bolt'|trans,\n'listing.button_search': 'general.phrase.search'|trans,\n'listing.placeholder_search': 'listing.placeholder_search'|trans,\n+ 'general.label.search': 'general.label.search'|trans,\n}|json_encode %}\n<admin-toolbar\n" } ]
PHP
MIT License
bolt/core
Add visually hidden label to global search input field
95,144
31.03.2021 11:17:33
-7,200
83214abf48fb2b13b5bce0650e55bcc981e29eaa
So, so, so tedious
[ { "change_type": "MODIFY", "old_path": "tests/e2e/users.feature", "new_path": "tests/e2e/users.feature", "diff": "@@ -5,7 +5,7 @@ Feature: Users & Permissions\nWhen I follow \"Configuration\"\n#Users & Permissions\nAnd I wait 1 seconds\n- When I click \"Users & Permissions\"\n+ When I click \"body > div.admin > div.admin__body > div.admin__body--container.admin__body--container--has-sidebar > main > .menupage a:nth-child(1)\"\nAnd I wait 0.1 seconds\nThen I should be on \"/bolt/users\"\n#users table\n" } ]
PHP
MIT License
bolt/core
So, so, so tedious
95,144
01.04.2021 09:09:34
-7,200
2c5152bc03c7eccd7dfa763cb874b72d2e019adf
Tweaking users and permissions
[ { "change_type": "MODIFY", "old_path": "config/bolt/permissions.yaml", "new_path": "config/bolt/permissions.yaml", "diff": "# List of roles that are presented in the list of options when editing a user.\n# Roles that are not in this list are left 'as is' when editing users.\n-# Note: ROLE_USER is assigned to Bolt Entity Users if no roles have been set\n-# it should not be included in this list as it should not be added/removed.\n-assignable_roles: [ROLE_ADMIN, ROLE_EDITOR]\n+# Note: ROLE_USER is assigned to Bolt Entity Users if no roles have been set.\n+assignable_roles: [ROLE_DEVELOPER, ROLE_ADMIN, ROLE_CHIEF_EDITOR, ROLE_EDITOR, ROLE_USER]\n# These permissions are the 'global' permissions; these are not tied\n# to any content types, but rather apply to global, non-content activity in\n@@ -19,8 +18,8 @@ assignable_roles: [ROLE_ADMIN, ROLE_EDITOR]\n# Also note that the 'editcontent' and 'overview' routes are special-cased\n# inside the code, so they don't appear here.\nglobal:\n- about: [ IS_AUTHENTICATED_ANONYMOUSLY ] # view the 'About Bolt' page\n- clearcache: [ ROLE_ADMIN ]\n+ about: [ ROLE_EDITOR ] # view the 'About Bolt' page\n+ clearcache: [ ROLE_CHIEF_EDITOR ]\ndashboard: [ IS_AUTHENTICATED_REMEMBERED ]\nextensions: [ ROLE_ADMIN ]\n# these control /bolt/file-edit and /bolt/filemanager -> combined create/read/update/delete permission\n@@ -35,15 +34,15 @@ global:\nuser:status: [ ROLE_ADMIN ] # user enable/disable - only used for changing status outside of add/edit context\nuser:delete: [ ROLE_ADMIN ] # user delete\nuser:edit: [ ROLE_ADMIN ] # user edit all fields, includes user:status permissions\n- maintenance-mode: [ ROLE_ADMIN ] # view the frontend when in maintenance mode\n+ maintenance-mode: [ ROLE_EDITOR ] # view the frontend when in maintenance mode\nsystemlog: [ ROLE_ADMIN ]\napi_admin: [ ROLE_ADMIN ] # WARNING: this only shows/hides api in the bolt admin, it doesn't protect the /api route(s)\n- bulk_operations: [ ROLE_ADMIN ]\n+ bulk_operations: [ ROLE_CHIEF_EDITOR ]\nkitchensink: [ ROLE_ADMIN ]\nupload: [ ROLE_EDITOR ] # TODO PERMISSIONS upload media/files ? Or should this be handled by managefiles:files\nextensionmenus: [ IS_AUTHENTICATED_REMEMBERED ] # allows you to see menu items added by extensions\nmedia_edit: [ ROLE_EDITOR ] # edit metadata for images etc.\n- fetch_embed_data: [ ROLE_ADMIN ] # get embed (meta)data for urls via the back-end (needed to embed youtube etc.)\n+ fetch_embed_data: [ ROLE_EDITOR ] # get embed (meta)data for urls via the back-end (needed to embed youtube etc.)\nlist_files:config: [ ROLE_ADMIN ] # should probably not be used?\nlist_files:files: [ ROLE_EDITOR ] # get list of files (images?) available for use as site-content\nlist_files:themes: [ ROLE_ADMIN ] # should probably not be used?\n@@ -99,12 +98,12 @@ global:\n# these permissions will be set for all contenttypes, config below can add additional roles to these, but they can not be overridden\ncontenttype-base:\n- edit: [ ROLE_ADMIN ]\n- create: [ ROLE_ADMIN ]\n- change-status: [ ROLE_ADMIN ] # Note: You can have 'change-status' permission without 'edit' but you cannot use that at the moment as there is no screen that only handles status changes\n- delete: [ ROLE_ADMIN ]\n- change-ownership: [ ROLE_ADMIN ]\n- view: [ ROLE_ADMIN ] # = show in menu, show listings, open 'edit' view without actually being able to edit, any of the other permissions always imply 'view'\n+ edit: [ ROLE_CHIEF_EDITOR ]\n+ create: [ ROLE_CHIEF_EDITOR ]\n+ change-status: [ ROLE_CHIEF_EDITOR ] # Note: You can have 'change-status' permission without 'edit' but you cannot use that at the moment as there is no screen that only handles status changes\n+ delete: [ ROLE_CHIEF_EDITOR ]\n+ change-ownership: [ ROLE_CHIEF_EDITOR ]\n+ view: [ ROLE_CHIEF_EDITOR ] # = show in menu, show listings, open 'edit' view without actually being able to edit, any of the other permissions always imply 'view'\n# these permissions are used as a default for contenttypes, they are added to the base permissions\n# you can override these settings per contenttype by adding it to the `contenttypes:` array\n" }, { "change_type": "MODIFY", "old_path": "config/packages/security.yaml", "new_path": "config/packages/security.yaml", "diff": "security:\nrole_hierarchy:\n- ROLE_DEVELOPER: [ROLE_ADMIN]\n+ ROLE_DEVELOPER: [ROLE_ADMIN, ROLE_CAN_SWITCH_USER]\nROLE_ADMIN: [ROLE_CHIEF_EDITOR]\nROLE_CHIEF_EDITOR: [ROLE_EDITOR]\nROLE_EDITOR: [ROLE_USER]\n" }, { "change_type": "MODIFY", "old_path": "src/Command/AddUserCommand.php", "new_path": "src/Command/AddUserCommand.php", "diff": "@@ -90,7 +90,8 @@ class AddUserCommand extends Command\n->addArgument('password', InputArgument::OPTIONAL, 'The plain password of the new user')\n->addArgument('email', InputArgument::OPTIONAL, 'The email of the new user')\n->addArgument('display-name', InputArgument::OPTIONAL, 'The display name of the new user')\n- ->addOption('admin', null, InputOption::VALUE_NONE, 'If set, the user is created as an administrator')\n+ ->addOption('admin', null, InputOption::VALUE_NONE, 'If set, the user is created as an administrator (shortcut for `--roles=ROLE_ADMIN`)')\n+ ->addOption('developer', null, InputOption::VALUE_NONE, 'If set, the user is created as a developer (shortcut for `--roles=ROLE_DEVELOPER`)')\n->addOption('roles', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'If set, provide a list of roles that the new user will be assigned');\n}\n@@ -204,8 +205,9 @@ class AddUserCommand extends Command\n$assignableRoles = $this->config->get('permissions/assignable_roles')->toArray();\n$isAdmin = $input->getOption('admin') ? ['ROLE_ADMIN'] : [];\n+ $isDeveloper = $input->getOption('developer') ? ['ROLE_DEVELOPER'] : [];\n$roles = $input->getOption('roles') ?? [];\n- $roles = array_merge($roles, $isAdmin);\n+ $roles = array_merge($roles, $isAdmin, $isDeveloper);\n$nonAssignableRoles = array_diff($roles, $assignableRoles);\n" }, { "change_type": "MODIFY", "old_path": "src/Command/SetupCommand.php", "new_path": "src/Command/SetupCommand.php", "diff": "@@ -63,7 +63,7 @@ class SetupCommand extends Command\n$this->processExitCode($exitCode, 'An error occurred while resetting APP_SECRET in the .env file.');\n$command = $this->getApplication()->find('bolt:add-user');\n- $commandInput = new ArrayInput(['--admin' => true]);\n+ $commandInput = new ArrayInput(['--developer' => true]);\n$exitCode = $command->run($commandInput, $output);\n$this->processExitCode($exitCode, 'An error occurred when creating the new Bolt user.');\n" }, { "change_type": "MODIFY", "old_path": "src/DataFixtures/UserFixtures.php", "new_path": "src/DataFixtures/UserFixtures.php", "diff": "@@ -95,21 +95,21 @@ class UserFixtures extends BaseFixture implements FixtureGroupInterface\n'username' => 'admin',\n'password' => $this->append ? Str::generatePassword(10) : 'admin%1',\n'email' => 'admin@example.org',\n- 'roles' => ['ROLE_ADMIN'],\n+ 'roles' => ['ROLE_DEVELOPER'],\n],\n[\n- 'displayname' => 'Gekke Henkie',\n- 'username' => 'henkie',\n- 'password' => $this->append ? Str::generatePassword(10) : 'henkie%1',\n+ 'displayname' => 'Crazy Steve',\n+ 'username' => 'steve',\n+ 'password' => $this->append ? Str::generatePassword(10) : 'steve%1',\n'email' => 'henkie@example.org',\n'roles' => ['ROLE_EDITOR', 'ROLE_EXTRA_1', 'ROLE_EXTRA_2', 'ROLE_USER_FRONTEND_GROUP1'],\n],\n[\n'displayname' => 'Jane Doe',\n- 'username' => 'jane_admin',\n+ 'username' => 'jane_chief',\n'password' => $this->append ? Str::generatePassword(10) : 'jane%1',\n'email' => 'jane_admin@example.org',\n- 'roles' => ['ROLE_ADMIN'],\n+ 'roles' => ['ROLE_CHIEF_EDITOR'],\n],\n[\n'displayname' => 'Tom Doe',\n@@ -120,17 +120,17 @@ class UserFixtures extends BaseFixture implements FixtureGroupInterface\n],\n[\n'displayname' => 'John Doe',\n- 'username' => 'john_user',\n+ 'username' => 'john_editor',\n'password' => $this->append ? Str::generatePassword(10) : 'john%1',\n'email' => 'john_user@example.org',\n- 'roles' => ['ROLE_USER'],\n+ 'roles' => ['ROLE_EDITOR'],\n],\n[\n- 'displayname' => 'Developer',\n- 'username' => 'developer',\n- 'password' => $this->append ? Str::generatePassword(10) : 'developer%1',\n- 'email' => 'developer@example.org',\n- 'roles' => ['ROLE_DEVELOPER'],\n+ 'displayname' => 'Eddie Enduser',\n+ 'username' => 'eddie',\n+ 'password' => $this->append ? Str::generatePassword(10) : 'eddie%1',\n+ 'email' => 'eddie@example.org',\n+ 'roles' => ['ROLE_USER'],\n],\n];\n}\n" }, { "change_type": "MODIFY", "old_path": "src/Security/SwitchUserVoter.php", "new_path": "src/Security/SwitchUserVoter.php", "diff": "@@ -42,7 +42,7 @@ class SwitchUserVoter extends Voter\nreturn false;\n}\n- if ($this->security->isGranted('ROLE_DEVELOPER')) {\n+ if ($this->security->isGranted('ROLE_CAN_SWITCH_USER')) {\nreturn true;\n}\n" }, { "change_type": "MODIFY", "old_path": "templates/users/listing.html.twig", "new_path": "templates/users/listing.html.twig", "diff": "{% endif %}\n{% if is_granted('CAN_SWITCH_USER') %}\n<a class=\"dropdown-item\" href=\"{{ path('bolt_dashboard', {'_switch_user': iteratedUser.username}) }}\">\n- <i class=\"fas fa-w fa-shield\"></i> {{ __('action.impersonate') }}\n+ <i class=\"fas fa-w fa-user-shield\"></i> {{ __('action.impersonate') }}\n</a>\n{% endif %}\n{% if is_granted('user:delete') %}\n" } ]
PHP
MIT License
bolt/core
Tweaking users and permissions
95,144
01.04.2021 11:18:01
-7,200
a9af3562a82068479f262fcb32aad6e30d3aeb44
"This time the tests should be trivial to fix"
[ { "change_type": "MODIFY", "old_path": "tests/e2e/users.feature", "new_path": "tests/e2e/users.feature", "diff": "@@ -33,15 +33,15 @@ Feature: Users & Permissions\nAnd I am logged in as \"admin\"\nWhen I am on \"/bolt/users\"\n# \"Disable\" button for given user\n- And I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(4) > td:nth-child(7)\"\n+ And I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(3) > td:nth-child(7)\"\nAnd I wait 0.1 seconds\n- And I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(4) > td:nth-child(7) > div > div > a:nth-child(2)\"\n+ And I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(3) > td:nth-child(7) > div > div > a:nth-child(2)\"\nAnd I wait 1 seconds\n# And now it should show the 'Enable'\n- Then I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(4) > td:nth-child(7)\"\n+ Then I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(3) > td:nth-child(7)\"\nAnd I wait 0.1 seconds\n- Then I should see \"Enable\" in the \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(4) > td:nth-child(7) > div > div > a:nth-child(2)\" element\n+ Then I should see \"Enable\" in the \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(3) > td:nth-child(7) > div > div > a:nth-child(2)\" element\nThen I logout\nWhen I am logged in as \"jane_chief\" with password \"jane%1\"\n@@ -50,11 +50,11 @@ Feature: Users & Permissions\nWhen I am logged in as \"admin\"\nAnd I am on \"/bolt/users\"\n- And I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(4) > td:nth-child(7)\"\n+ And I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(3) > td:nth-child(7)\"\nAnd I wait 0.1 seconds\n- Then I should see \"Enable\" in the \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(4) > td:nth-child(7) > div > div > a:nth-child(2)\" element\n- And I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(4) > td:nth-child(7) > div > div > a:nth-child(2)\"\n+ Then I should see \"Enable\" in the \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(3) > td:nth-child(7) > div > div > a:nth-child(2)\" element\n+ And I click \"body > div.admin > div.admin__body > div.admin__body--container > main > table:nth-child(1) > tbody > tr:nth-child(3) > td:nth-child(7) > div > div > a:nth-child(2)\"\nAnd I wait 0.1 seconds\nThen I logout\n" } ]
PHP
MIT License
bolt/core
"This time the tests should be trivial to fix"
95,144
02.04.2021 12:28:56
-7,200
6dacc31427ee7f12c5a26a5972b92e52ef114eb2
Use `CompletePackageInterface` in BaseExtension
[ { "change_type": "MODIFY", "old_path": "src/Extension/BaseExtension.php", "new_path": "src/Extension/BaseExtension.php", "diff": "@@ -7,7 +7,7 @@ namespace Bolt\\Extension;\nuse Bolt\\Widget\\WidgetInterface;\nuse Bolt\\Widgets;\nuse Cocur\\Slugify\\Slugify;\n-use Composer\\Package\\CompletePackage;\n+use Composer\\Package\\CompletePackageInterface;\nuse Composer\\Package\\PackageInterface;\nuse ComposerPackages\\Packages;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\n@@ -153,7 +153,7 @@ abstract class BaseExtension implements ExtensionInterface\n* Get the ComposerPackage, that contains information about the package,\n* version, etc.\n*/\n- public function getComposerPackage(): ?CompletePackage\n+ public function getComposerPackage(): ?CompletePackageInterface\n{\n$className = $this->getClass();\n" }, { "change_type": "MODIFY", "old_path": "src/Extension/ExtensionInterface.php", "new_path": "src/Extension/ExtensionInterface.php", "diff": "@@ -4,7 +4,7 @@ declare(strict_types=1);\nnamespace Bolt\\Extension;\n-use Composer\\Package\\CompletePackage;\n+use Composer\\Package\\CompletePackageInterface;\ninterface ExtensionInterface\n{\n@@ -18,5 +18,5 @@ interface ExtensionInterface\npublic function initialize(): void;\n- public function getComposerPackage(): ?CompletePackage;\n+ public function getComposerPackage(): ?CompletePackageInterface;\n}\n" } ]
PHP
MIT License
bolt/core
Use `CompletePackageInterface` in BaseExtension
95,144
04.04.2021 14:33:23
-7,200
4a59666b1e6aa28d8dca19fbb44751a058108b91
Fix typehinting `PathExpression` -> `Node` for property
[ { "change_type": "MODIFY", "old_path": "src/Doctrine/Query/Cast.php", "new_path": "src/Doctrine/Query/Cast.php", "diff": "@@ -5,16 +5,19 @@ declare(strict_types=1);\nnamespace Bolt\\Doctrine\\Query;\nuse Doctrine\\ORM\\Query\\AST\\Functions\\FunctionNode;\n+use Doctrine\\ORM\\Query\\AST\\Node;\nuse Doctrine\\ORM\\Query\\Lexer;\nuse Doctrine\\ORM\\Query\\Parser;\nuse Doctrine\\ORM\\Query\\SqlWalker;\nclass Cast extends FunctionNode\n{\n- /** @var \\Doctrine\\ORM\\Query\\AST\\PathExpression */\n+ /** @var Node|string */\nprotected $first;\n+\n/** @var string */\nprotected $second;\n+\n/** @var string */\nprotected $backend_driver;\n" } ]
PHP
MIT License
bolt/core
Fix typehinting `PathExpression` -> `Node` for property
95,144
25.03.2021 17:44:36
-3,600
26001639c69f09271184466cd72db195825122d9
Working on updating dependencies
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "\"version\": \"4.99.2\",\n\"license\": \"MIT\",\n\"dependencies\": {\n- \"@vue/cli-service\": \"^4.5.11\",\n+ \"@vue/cli-service\": \"^4.5.12\",\n\"axios\": \"^0.21.1\",\n\"baguettebox.js\": \"^1.11.1\",\n\"bootbox\": \"^5.5.2\",\n\"bootstrap\": \"^4.6.0\",\n- \"browserslist\": \"^4.16.1\",\n- \"caniuse-lite\": \"^1.0.30001179\",\n+ \"browserslist\": \"^4.16.3\",\n+ \"caniuse-lite\": \"^1.0.30001204\",\n\"codemirror\": \"^5.59.2\",\n\"dropzone\": \"^5.7.2\",\n\"flagpack\": \"^1.0.5\",\n- \"hotkeys-js\": \"^3.8.2\",\n+ \"hotkeys-js\": \"^3.8.3\",\n\"jquery\": \"^3.5.1\",\n\"locutus\": \"^2.0.14\",\n\"luxon\": \"^1.25.0\",\n\"@babel/plugin-transform-runtime\": \"^7.12.15\",\n\"@babel/polyfill\": \"^7.12.1\",\n\"@babel/preset-env\": \"^7.12.13\",\n- \"@fortawesome/fontawesome-free\": \"^5.15.2\",\n- \"@symfony/webpack-encore\": \"^1.1.1\",\n+ \"@fortawesome/fontawesome-free\": \"^5.15.3\",\n+ \"@symfony/webpack-encore\": \"^1.1.2\",\n\"@vue/test-utils\": \"^1.1.3\",\n\"ajv-keywords\": \"^3.5.2\",\n\"autoprefixer\": \"^9.8.6\",\n\"postcss-preset-env\": \"^6.7.0\",\n\"prettier\": \"^1.19.1\",\n\"regenerator-runtime\": \"^0.13.7\",\n- \"sass-loader\": \"^11.0.0\",\n+ \"sass-loader\": \"^11.0.1\",\n\"source-sans-pro\": \"^3.6.0\",\n\"stylelint\": \"^13.9.0\",\n\"stylelint-config-standard\": \"^19.0.0\",\n\"vue-loader\": \"^15.9.6\",\n\"vue-router\": \"^3.5.1\",\n\"vue-template-compiler\": \"^2.6.12\",\n- \"webpackbar\": \"^5.0.0-0\",\n+ \"webpackbar\": \"^5.0.0-3\",\n\"workbox-webpack-plugin\": \"^6.0.0\"\n}\n},\n\"integrity\": \"sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==\"\n},\n\"node_modules/@types/minimatch\": {\n- \"version\": \"3.0.3\",\n- \"resolved\": \"https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz\",\n- \"integrity\": \"sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==\"\n+ \"version\": \"3.0.4\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.4.tgz\",\n+ \"integrity\": \"sha512-1z8k4wzFnNjVK/tlxvrWuK5WMt6mydWWP7+zvH5eFep4oj+UkrfiJTRtjCeBXNpwaA/FYqqtb4/QS4ianFpIRA==\"\n},\n\"node_modules/@types/minimist\": {\n\"version\": \"1.2.1\",\n\"node\": \">= 4.0\"\n}\n},\n+ \"node_modules/@vue/cli-service/node_modules/html-entities\": {\n+ \"version\": \"1.4.0\",\n+ \"resolved\": \"https://registry.npmjs.org/html-entities/-/html-entities-1.4.0.tgz\",\n+ \"integrity\": \"sha512-8nxjcBcd8wovbeKx7h3wTji4e6+rhaVuPNpMqwWgnHh+N9ToqsCs6XztWRBPQ+UtzsoMAdKZtUENoVzU/EMtZA==\"\n+ },\n\"node_modules/@vue/cli-service/node_modules/html-webpack-plugin\": {\n\"version\": \"3.2.0\",\n\"resolved\": \"https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-3.2.0.tgz\",\n}\n},\n\"node_modules/ansi-escapes\": {\n- \"version\": \"4.3.1\",\n- \"resolved\": \"https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz\",\n- \"integrity\": \"sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==\",\n+ \"version\": \"4.3.2\",\n+ \"resolved\": \"https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz\",\n+ \"integrity\": \"sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==\",\n\"dev\": true,\n\"dependencies\": {\n- \"type-fest\": \"^0.11.0\"\n+ \"type-fest\": \"^0.21.3\"\n},\n\"engines\": {\n\"node\": \">=8\"\n}\n},\n\"node_modules/css-loader\": {\n- \"version\": \"5.1.3\",\n- \"resolved\": \"https://registry.npmjs.org/css-loader/-/css-loader-5.1.3.tgz\",\n- \"integrity\": \"sha512-CoPZvyh8sLiGARK3gqczpfdedbM74klGWurF2CsNZ2lhNaXdLIUks+3Mfax3WBeRuHoglU+m7KG/+7gY6G4aag==\",\n+ \"version\": \"5.2.0\",\n+ \"resolved\": \"https://registry.npmjs.org/css-loader/-/css-loader-5.2.0.tgz\",\n+ \"integrity\": \"sha512-MfRo2MjEeLXMlUkeUwN71Vx5oc6EJnx5UQ4Yi9iUtYQvrPtwLUucYptz0hc6n++kdNcyF5olYBS4vPjJDAcLkw==\",\n\"dependencies\": {\n\"camelcase\": \"^6.2.0\",\n\"cssesc\": \"^3.0.0\",\n}\n},\n\"node_modules/electron-to-chromium\": {\n- \"version\": \"1.3.695\",\n- \"resolved\": \"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.695.tgz\",\n- \"integrity\": \"sha512-lz66RliUqLHU1Ojxx1A4QUxKydjiQ79Y4dZyPobs2Dmxj5aVL2TM3KoQ2Gs7HS703Bfny+ukI3KOxwAB0xceHQ==\"\n+ \"version\": \"1.3.699\",\n+ \"resolved\": \"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.699.tgz\",\n+ \"integrity\": \"sha512-fjt43CPXdPYwD9ybmKbNeLwZBmCVdLY2J5fGZub7/eMPuiqQznOGNXv/wurnpXIlE7ScHnvG9Zi+H4/i6uMKmw==\"\n},\n\"node_modules/elliptic\": {\n\"version\": \"6.5.4\",\n}\n},\n\"node_modules/exec-sh\": {\n- \"version\": \"0.3.5\",\n- \"resolved\": \"https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.5.tgz\",\n- \"integrity\": \"sha512-0hzpaUazv4mEccxdn3TXC+HWNeVXNKMCJRK6E7Xyg+LwGAYI3yFag6jTkd4injV+kChYDQS1ftqDhnDVWNhU8A==\",\n+ \"version\": \"0.3.6\",\n+ \"resolved\": \"https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz\",\n+ \"integrity\": \"sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==\",\n\"dev\": true\n},\n\"node_modules/execa\": {\n}\n},\n\"node_modules/html-entities\": {\n- \"version\": \"1.4.0\",\n- \"resolved\": \"https://registry.npmjs.org/html-entities/-/html-entities-1.4.0.tgz\",\n- \"integrity\": \"sha512-8nxjcBcd8wovbeKx7h3wTji4e6+rhaVuPNpMqwWgnHh+N9ToqsCs6XztWRBPQ+UtzsoMAdKZtUENoVzU/EMtZA==\"\n+ \"version\": \"2.1.1\",\n+ \"resolved\": \"https://registry.npmjs.org/html-entities/-/html-entities-2.1.1.tgz\",\n+ \"integrity\": \"sha512-HjNLgm9Ba8zKd6NDMkXa0mMPn3eDUxOUnEIm/qy2Rm6rnqRHgI9DpMYIv1Fndu8haUmfMQHNYNrlNKmdU8GMnQ==\",\n+ \"dev\": true\n},\n\"node_modules/html-escaper\": {\n\"version\": \"2.0.2\",\n\"dev\": true\n},\n\"node_modules/regjsparser\": {\n- \"version\": \"0.6.8\",\n- \"resolved\": \"https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.8.tgz\",\n- \"integrity\": \"sha512-3weFrFQREJhJ2PW+iCGaG6TenyzNSZgsBKZ/oEf6Trme31COSeIWhHw9O6FPkuXktfx+b6Hf/5e6dKPHaROq2g==\",\n+ \"version\": \"0.6.9\",\n+ \"resolved\": \"https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.9.tgz\",\n+ \"integrity\": \"sha512-ZqbNRz1SNjLAiYuwY0zoXW8Ne675IX5q+YHioAGbCw4X96Mjl2+dcX9B2ciaeyYjViDAfvIjFpQjJgLttTEERQ==\",\n\"dev\": true,\n\"dependencies\": {\n\"jsesc\": \"~0.5.0\"\n}\n},\n\"node_modules/rollup\": {\n- \"version\": \"2.42.3\",\n- \"resolved\": \"https://registry.npmjs.org/rollup/-/rollup-2.42.3.tgz\",\n- \"integrity\": \"sha512-JjaT9WaUS5vmjy6xUrnPOskjkQg2cN4WSACNCwbOvBz8VDmbiKVdmTFUoMPRqTud0tsex8Xy9/boLbDW9HKD1w==\",\n+ \"version\": \"2.42.4\",\n+ \"resolved\": \"https://registry.npmjs.org/rollup/-/rollup-2.42.4.tgz\",\n+ \"integrity\": \"sha512-Zqv3EvNfcllBHyyEUM754npqsZw82VIjK34cDQMwrQ1d6aqxzeYu5yFb7smGkPU4C1Bj7HupIMeT6WU7uIdnMw==\",\n\"dev\": true,\n\"bin\": {\n\"rollup\": \"dist/bin/rollup\"\n}\n},\n\"node_modules/sockjs-client\": {\n- \"version\": \"1.5.0\",\n- \"resolved\": \"https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.5.0.tgz\",\n- \"integrity\": \"sha512-8Dt3BDi4FYNrCFGTL/HtwVzkARrENdwOUf1ZoW/9p3M8lZdFT35jVdrHza+qgxuG9H3/shR4cuX/X9umUrjP8Q==\",\n+ \"version\": \"1.5.1\",\n+ \"resolved\": \"https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.5.1.tgz\",\n+ \"integrity\": \"sha512-VnVAb663fosipI/m6pqRXakEOw7nvd7TUgdr3PlR/8V2I95QIdwT8L4nMxhyU8SmDBHYXU1TOElaKOmKLfYzeQ==\",\n\"dependencies\": {\n\"debug\": \"^3.2.6\",\n\"eventsource\": \"^1.0.7\",\n\"faye-websocket\": \"^0.11.3\",\n\"inherits\": \"^2.0.4\",\n\"json3\": \"^3.3.3\",\n- \"url-parse\": \"^1.4.7\"\n+ \"url-parse\": \"^1.5.1\"\n}\n},\n\"node_modules/sockjs-client/node_modules/debug\": {\n}\n},\n\"node_modules/stylelint/node_modules/hosted-git-info\": {\n- \"version\": \"4.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.1.tgz\",\n- \"integrity\": \"sha512-eT7NrxAsppPRQEBSwKSosReE+v8OzABwEScQYk5d4uxaEPlzxTIku7LINXtBGalthkLhJnq5lBI89PfK43zAKg==\",\n+ \"version\": \"4.0.2\",\n+ \"resolved\": \"https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz\",\n+ \"integrity\": \"sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==\",\n\"dependencies\": {\n\"lru-cache\": \"^6.0.0\"\n},\n}\n},\n\"node_modules/type-fest\": {\n- \"version\": \"0.11.0\",\n- \"resolved\": \"https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz\",\n- \"integrity\": \"sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==\",\n+ \"version\": \"0.21.3\",\n+ \"resolved\": \"https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz\",\n+ \"integrity\": \"sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==\",\n\"dev\": true,\n\"engines\": {\n- \"node\": \">=8\"\n+ \"node\": \">=10\"\n},\n\"funding\": {\n\"url\": \"https://github.com/sponsors/sindresorhus\"\n\"dev\": true\n},\n\"node_modules/webpack\": {\n- \"version\": \"5.27.2\",\n- \"resolved\": \"https://registry.npmjs.org/webpack/-/webpack-5.27.2.tgz\",\n- \"integrity\": \"sha512-brNF3N/EdvMzkaZ/Xzb8sqPn5Si3iw6meqCnmNFtcnkorZsFZCBFMa2ElpIMjx6sKWYsnUpBO2dnX+7xgj+mjg==\",\n+ \"version\": \"5.28.0\",\n+ \"resolved\": \"https://registry.npmjs.org/webpack/-/webpack-5.28.0.tgz\",\n+ \"integrity\": \"sha512-1xllYVmA4dIvRjHzwELgW4KjIU1fW4PEuEnjsylz7k7H5HgPOctIq7W1jrt3sKH9yG5d72//XWzsHhfoWvsQVg==\",\n\"dependencies\": {\n\"@types/eslint-scope\": \"^3.7.0\",\n\"@types/estree\": \"^0.0.46\",\n}\n},\n\"node_modules/webpack-dev-server\": {\n- \"version\": \"4.0.0-beta.0\",\n- \"resolved\": \"https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.0.0-beta.0.tgz\",\n- \"integrity\": \"sha512-mVD4Hn3bsMdcq6qE0y8xvH6KAu9NwS6F0NNgFe+n6gbsTQ7YgffUDydvy2iieyyKjAcBJDT5PZexv9tKv8kTNQ==\",\n+ \"version\": \"4.0.0-beta.1\",\n+ \"resolved\": \"https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.0.0-beta.1.tgz\",\n+ \"integrity\": \"sha512-rPSAfz1VKQDQ2kmRbOamc0mX+T7kfqi9acvHic1YYctHWfKKvtovwLm9sA48GdLiYb8Ynop79zdT3CUoFiT7YQ==\",\n\"dev\": true,\n\"dependencies\": {\n- \"ansi-html\": \"0.0.7\",\n+ \"ansi-html\": \"^0.0.7\",\n\"bonjour\": \"^3.5.0\",\n- \"chokidar\": \"^3.4.3\",\n+ \"chokidar\": \"^3.5.1\",\n\"compression\": \"^1.7.4\",\n\"connect-history-api-fallback\": \"^1.6.0\",\n\"del\": \"^6.0.0\",\n\"express\": \"^4.17.1\",\n\"find-cache-dir\": \"^3.3.1\",\n- \"graceful-fs\": \"^4.2.4\",\n- \"html-entities\": \"^1.3.1\",\n+ \"graceful-fs\": \"^4.2.6\",\n+ \"html-entities\": \"^2.1.1\",\n\"http-proxy-middleware\": \"^1.0.6\",\n\"internal-ip\": \"^6.2.0\",\n- \"ip\": \"^1.1.5\",\n+ \"ipaddr.js\": \"^1.9.1\",\n\"is-absolute-url\": \"^3.0.3\",\n\"killable\": \"^1.0.1\",\n- \"open\": \"^7.3.0\",\n- \"p-retry\": \"^4.2.0\",\n+ \"open\": \"^7.4.2\",\n+ \"p-retry\": \"^4.4.0\",\n\"portfinder\": \"^1.0.28\",\n\"schema-utils\": \"^3.0.0\",\n\"selfsigned\": \"^1.10.8\",\n\"serve-index\": \"^1.9.1\",\n- \"sockjs\": \"0.3.21\",\n- \"sockjs-client\": \"1.5.0\",\n+ \"sockjs\": \"^0.3.21\",\n+ \"sockjs-client\": \"^1.5.0\",\n\"spdy\": \"^4.0.2\",\n\"strip-ansi\": \"^6.0.0\",\n\"url\": \"^0.11.0\",\n\"util\": \"^0.12.3\",\n- \"webpack-dev-middleware\": \"^4.0.2\",\n- \"ws\": \"^7.4.0\"\n+ \"webpack-dev-middleware\": \"^4.1.0\",\n+ \"ws\": \"^7.4.4\"\n},\n\"bin\": {\n\"webpack-dev-server\": \"bin/webpack-dev-server.js\"\n\"integrity\": \"sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==\"\n},\n\"@types/minimatch\": {\n- \"version\": \"3.0.3\",\n- \"resolved\": \"https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz\",\n- \"integrity\": \"sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==\"\n+ \"version\": \"3.0.4\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.4.tgz\",\n+ \"integrity\": \"sha512-1z8k4wzFnNjVK/tlxvrWuK5WMt6mydWWP7+zvH5eFep4oj+UkrfiJTRtjCeBXNpwaA/FYqqtb4/QS4ianFpIRA==\"\n},\n\"@types/minimist\": {\n\"version\": \"1.2.1\",\n\"nan\": \"^2.12.1\"\n}\n},\n+ \"html-entities\": {\n+ \"version\": \"1.4.0\",\n+ \"resolved\": \"https://registry.npmjs.org/html-entities/-/html-entities-1.4.0.tgz\",\n+ \"integrity\": \"sha512-8nxjcBcd8wovbeKx7h3wTji4e6+rhaVuPNpMqwWgnHh+N9ToqsCs6XztWRBPQ+UtzsoMAdKZtUENoVzU/EMtZA==\"\n+ },\n\"html-webpack-plugin\": {\n\"version\": \"3.2.0\",\n\"resolved\": \"https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-3.2.0.tgz\",\n\"dev\": true\n},\n\"ansi-escapes\": {\n- \"version\": \"4.3.1\",\n- \"resolved\": \"https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz\",\n- \"integrity\": \"sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==\",\n+ \"version\": \"4.3.2\",\n+ \"resolved\": \"https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz\",\n+ \"integrity\": \"sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==\",\n\"dev\": true,\n\"requires\": {\n- \"type-fest\": \"^0.11.0\"\n+ \"type-fest\": \"^0.21.3\"\n}\n},\n\"ansi-html\": {\n}\n},\n\"css-loader\": {\n- \"version\": \"5.1.3\",\n- \"resolved\": \"https://registry.npmjs.org/css-loader/-/css-loader-5.1.3.tgz\",\n- \"integrity\": \"sha512-CoPZvyh8sLiGARK3gqczpfdedbM74klGWurF2CsNZ2lhNaXdLIUks+3Mfax3WBeRuHoglU+m7KG/+7gY6G4aag==\",\n+ \"version\": \"5.2.0\",\n+ \"resolved\": \"https://registry.npmjs.org/css-loader/-/css-loader-5.2.0.tgz\",\n+ \"integrity\": \"sha512-MfRo2MjEeLXMlUkeUwN71Vx5oc6EJnx5UQ4Yi9iUtYQvrPtwLUucYptz0hc6n++kdNcyF5olYBS4vPjJDAcLkw==\",\n\"requires\": {\n\"camelcase\": \"^6.2.0\",\n\"cssesc\": \"^3.0.0\",\n\"integrity\": \"sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==\"\n},\n\"electron-to-chromium\": {\n- \"version\": \"1.3.695\",\n- \"resolved\": \"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.695.tgz\",\n- \"integrity\": \"sha512-lz66RliUqLHU1Ojxx1A4QUxKydjiQ79Y4dZyPobs2Dmxj5aVL2TM3KoQ2Gs7HS703Bfny+ukI3KOxwAB0xceHQ==\"\n+ \"version\": \"1.3.699\",\n+ \"resolved\": \"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.699.tgz\",\n+ \"integrity\": \"sha512-fjt43CPXdPYwD9ybmKbNeLwZBmCVdLY2J5fGZub7/eMPuiqQznOGNXv/wurnpXIlE7ScHnvG9Zi+H4/i6uMKmw==\"\n},\n\"elliptic\": {\n\"version\": \"6.5.4\",\n}\n},\n\"exec-sh\": {\n- \"version\": \"0.3.5\",\n- \"resolved\": \"https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.5.tgz\",\n- \"integrity\": \"sha512-0hzpaUazv4mEccxdn3TXC+HWNeVXNKMCJRK6E7Xyg+LwGAYI3yFag6jTkd4injV+kChYDQS1ftqDhnDVWNhU8A==\",\n+ \"version\": \"0.3.6\",\n+ \"resolved\": \"https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz\",\n+ \"integrity\": \"sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==\",\n\"dev\": true\n},\n\"execa\": {\n}\n},\n\"html-entities\": {\n- \"version\": \"1.4.0\",\n- \"resolved\": \"https://registry.npmjs.org/html-entities/-/html-entities-1.4.0.tgz\",\n- \"integrity\": \"sha512-8nxjcBcd8wovbeKx7h3wTji4e6+rhaVuPNpMqwWgnHh+N9ToqsCs6XztWRBPQ+UtzsoMAdKZtUENoVzU/EMtZA==\"\n+ \"version\": \"2.1.1\",\n+ \"resolved\": \"https://registry.npmjs.org/html-entities/-/html-entities-2.1.1.tgz\",\n+ \"integrity\": \"sha512-HjNLgm9Ba8zKd6NDMkXa0mMPn3eDUxOUnEIm/qy2Rm6rnqRHgI9DpMYIv1Fndu8haUmfMQHNYNrlNKmdU8GMnQ==\",\n+ \"dev\": true\n},\n\"html-escaper\": {\n\"version\": \"2.0.2\",\n\"dev\": true\n},\n\"regjsparser\": {\n- \"version\": \"0.6.8\",\n- \"resolved\": \"https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.8.tgz\",\n- \"integrity\": \"sha512-3weFrFQREJhJ2PW+iCGaG6TenyzNSZgsBKZ/oEf6Trme31COSeIWhHw9O6FPkuXktfx+b6Hf/5e6dKPHaROq2g==\",\n+ \"version\": \"0.6.9\",\n+ \"resolved\": \"https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.9.tgz\",\n+ \"integrity\": \"sha512-ZqbNRz1SNjLAiYuwY0zoXW8Ne675IX5q+YHioAGbCw4X96Mjl2+dcX9B2ciaeyYjViDAfvIjFpQjJgLttTEERQ==\",\n\"dev\": true,\n\"requires\": {\n\"jsesc\": \"~0.5.0\"\n}\n},\n\"rollup\": {\n- \"version\": \"2.42.3\",\n- \"resolved\": \"https://registry.npmjs.org/rollup/-/rollup-2.42.3.tgz\",\n- \"integrity\": \"sha512-JjaT9WaUS5vmjy6xUrnPOskjkQg2cN4WSACNCwbOvBz8VDmbiKVdmTFUoMPRqTud0tsex8Xy9/boLbDW9HKD1w==\",\n+ \"version\": \"2.42.4\",\n+ \"resolved\": \"https://registry.npmjs.org/rollup/-/rollup-2.42.4.tgz\",\n+ \"integrity\": \"sha512-Zqv3EvNfcllBHyyEUM754npqsZw82VIjK34cDQMwrQ1d6aqxzeYu5yFb7smGkPU4C1Bj7HupIMeT6WU7uIdnMw==\",\n\"dev\": true,\n\"requires\": {\n\"fsevents\": \"~2.3.1\"\n}\n},\n\"sockjs-client\": {\n- \"version\": \"1.5.0\",\n- \"resolved\": \"https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.5.0.tgz\",\n- \"integrity\": \"sha512-8Dt3BDi4FYNrCFGTL/HtwVzkARrENdwOUf1ZoW/9p3M8lZdFT35jVdrHza+qgxuG9H3/shR4cuX/X9umUrjP8Q==\",\n+ \"version\": \"1.5.1\",\n+ \"resolved\": \"https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.5.1.tgz\",\n+ \"integrity\": \"sha512-VnVAb663fosipI/m6pqRXakEOw7nvd7TUgdr3PlR/8V2I95QIdwT8L4nMxhyU8SmDBHYXU1TOElaKOmKLfYzeQ==\",\n\"requires\": {\n\"debug\": \"^3.2.6\",\n\"eventsource\": \"^1.0.7\",\n\"faye-websocket\": \"^0.11.3\",\n\"inherits\": \"^2.0.4\",\n\"json3\": \"^3.3.3\",\n- \"url-parse\": \"^1.4.7\"\n+ \"url-parse\": \"^1.5.1\"\n},\n\"dependencies\": {\n\"debug\": {\n}\n},\n\"hosted-git-info\": {\n- \"version\": \"4.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.1.tgz\",\n- \"integrity\": \"sha512-eT7NrxAsppPRQEBSwKSosReE+v8OzABwEScQYk5d4uxaEPlzxTIku7LINXtBGalthkLhJnq5lBI89PfK43zAKg==\",\n+ \"version\": \"4.0.2\",\n+ \"resolved\": \"https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz\",\n+ \"integrity\": \"sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==\",\n\"requires\": {\n\"lru-cache\": \"^6.0.0\"\n}\n\"dev\": true\n},\n\"type-fest\": {\n- \"version\": \"0.11.0\",\n- \"resolved\": \"https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz\",\n- \"integrity\": \"sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==\",\n+ \"version\": \"0.21.3\",\n+ \"resolved\": \"https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz\",\n+ \"integrity\": \"sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==\",\n\"dev\": true\n},\n\"type-is\": {\n\"dev\": true\n},\n\"webpack\": {\n- \"version\": \"5.27.2\",\n- \"resolved\": \"https://registry.npmjs.org/webpack/-/webpack-5.27.2.tgz\",\n- \"integrity\": \"sha512-brNF3N/EdvMzkaZ/Xzb8sqPn5Si3iw6meqCnmNFtcnkorZsFZCBFMa2ElpIMjx6sKWYsnUpBO2dnX+7xgj+mjg==\",\n+ \"version\": \"5.28.0\",\n+ \"resolved\": \"https://registry.npmjs.org/webpack/-/webpack-5.28.0.tgz\",\n+ \"integrity\": \"sha512-1xllYVmA4dIvRjHzwELgW4KjIU1fW4PEuEnjsylz7k7H5HgPOctIq7W1jrt3sKH9yG5d72//XWzsHhfoWvsQVg==\",\n\"requires\": {\n\"@types/eslint-scope\": \"^3.7.0\",\n\"@types/estree\": \"^0.0.46\",\n}\n},\n\"webpack-dev-server\": {\n- \"version\": \"4.0.0-beta.0\",\n- \"resolved\": \"https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.0.0-beta.0.tgz\",\n- \"integrity\": \"sha512-mVD4Hn3bsMdcq6qE0y8xvH6KAu9NwS6F0NNgFe+n6gbsTQ7YgffUDydvy2iieyyKjAcBJDT5PZexv9tKv8kTNQ==\",\n+ \"version\": \"4.0.0-beta.1\",\n+ \"resolved\": \"https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.0.0-beta.1.tgz\",\n+ \"integrity\": \"sha512-rPSAfz1VKQDQ2kmRbOamc0mX+T7kfqi9acvHic1YYctHWfKKvtovwLm9sA48GdLiYb8Ynop79zdT3CUoFiT7YQ==\",\n\"dev\": true,\n\"requires\": {\n- \"ansi-html\": \"0.0.7\",\n+ \"ansi-html\": \"^0.0.7\",\n\"bonjour\": \"^3.5.0\",\n- \"chokidar\": \"^3.4.3\",\n+ \"chokidar\": \"^3.5.1\",\n\"compression\": \"^1.7.4\",\n\"connect-history-api-fallback\": \"^1.6.0\",\n\"del\": \"^6.0.0\",\n\"express\": \"^4.17.1\",\n\"find-cache-dir\": \"^3.3.1\",\n- \"graceful-fs\": \"^4.2.4\",\n- \"html-entities\": \"^1.3.1\",\n+ \"graceful-fs\": \"^4.2.6\",\n+ \"html-entities\": \"^2.1.1\",\n\"http-proxy-middleware\": \"^1.0.6\",\n\"internal-ip\": \"^6.2.0\",\n- \"ip\": \"^1.1.5\",\n+ \"ipaddr.js\": \"^1.9.1\",\n\"is-absolute-url\": \"^3.0.3\",\n\"killable\": \"^1.0.1\",\n- \"open\": \"^7.3.0\",\n- \"p-retry\": \"^4.2.0\",\n+ \"open\": \"^7.4.2\",\n+ \"p-retry\": \"^4.4.0\",\n\"portfinder\": \"^1.0.28\",\n\"schema-utils\": \"^3.0.0\",\n\"selfsigned\": \"^1.10.8\",\n\"serve-index\": \"^1.9.1\",\n- \"sockjs\": \"0.3.21\",\n- \"sockjs-client\": \"1.5.0\",\n+ \"sockjs\": \"^0.3.21\",\n+ \"sockjs-client\": \"^1.5.0\",\n\"spdy\": \"^4.0.2\",\n\"strip-ansi\": \"^6.0.0\",\n\"url\": \"^0.11.0\",\n\"util\": \"^0.12.3\",\n- \"webpack-dev-middleware\": \"^4.0.2\",\n- \"ws\": \"^7.4.0\"\n+ \"webpack-dev-middleware\": \"^4.1.0\",\n+ \"ws\": \"^7.4.4\"\n},\n\"dependencies\": {\n\"@nodelib/fs.stat\": {\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"url\": \"git://github.com/bolt/core.git\"\n},\n\"dependencies\": {\n- \"@vue/cli-service\": \"^4.5.11\",\n+ \"@vue/cli-service\": \"^4.5.12\",\n\"axios\": \"^0.21.1\",\n\"baguettebox.js\": \"^1.11.1\",\n\"bootbox\": \"^5.5.2\",\n\"bootstrap\": \"^4.6.0\",\n- \"browserslist\": \"^4.16.1\",\n- \"caniuse-lite\": \"^1.0.30001179\",\n+ \"browserslist\": \"^4.16.3\",\n+ \"caniuse-lite\": \"^1.0.30001204\",\n\"codemirror\": \"^5.59.2\",\n\"dropzone\": \"^5.7.2\",\n\"flagpack\": \"^1.0.5\",\n- \"hotkeys-js\": \"^3.8.2\",\n+ \"hotkeys-js\": \"^3.8.3\",\n\"jquery\": \"^3.5.1\",\n\"locutus\": \"^2.0.14\",\n\"luxon\": \"^1.25.0\",\n\"@babel/plugin-transform-runtime\": \"^7.12.15\",\n\"@babel/polyfill\": \"^7.12.1\",\n\"@babel/preset-env\": \"^7.12.13\",\n- \"@fortawesome/fontawesome-free\": \"^5.15.2\",\n- \"@symfony/webpack-encore\": \"^1.1.1\",\n+ \"@fortawesome/fontawesome-free\": \"^5.15.3\",\n+ \"@symfony/webpack-encore\": \"^1.1.2\",\n\"@vue/test-utils\": \"^1.1.3\",\n\"ajv-keywords\": \"^3.5.2\",\n\"autoprefixer\": \"^9.8.6\",\n\"postcss-preset-env\": \"^6.7.0\",\n\"prettier\": \"^1.19.1\",\n\"regenerator-runtime\": \"^0.13.7\",\n- \"sass-loader\": \"^11.0.0\",\n+ \"sass-loader\": \"^11.0.1\",\n\"source-sans-pro\": \"^3.6.0\",\n\"stylelint\": \"^13.9.0\",\n\"stylelint-config-standard\": \"^19.0.0\",\n\"vue-loader\": \"^15.9.6\",\n\"vue-router\": \"^3.5.1\",\n\"vue-template-compiler\": \"^2.6.12\",\n- \"webpackbar\": \"^5.0.0-0\",\n+ \"webpackbar\": \"^5.0.0-3\",\n\"workbox-webpack-plugin\": \"^6.0.0\"\n},\n\"scripts\": {\n" } ]
PHP
MIT License
bolt/core
Working on updating dependencies
95,144
04.04.2021 13:58:58
-7,200
26d0055090a94764c93b275cdc05705de962d9a9
updating postcss-loader
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "\"jest-serializer-vue\": \"^2.0.2\",\n\"node-sass\": \"^4.14.1\",\n\"pa11y-ci\": \"^2.4.0\",\n- \"postcss-loader\": \"^5.0.0\",\n+ \"postcss-loader\": \"^5.2.0\",\n\"postcss-preset-env\": \"^6.7.0\",\n\"prettier\": \"^1.19.1\",\n\"regenerator-runtime\": \"^0.13.7\",\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"jest-serializer-vue\": \"^2.0.2\",\n\"node-sass\": \"^4.14.1\",\n\"pa11y-ci\": \"^2.4.0\",\n- \"postcss-loader\": \"^5.0.0\",\n+ \"postcss-loader\": \"^5.2.0\",\n\"postcss-preset-env\": \"^6.7.0\",\n\"prettier\": \"^1.19.1\",\n\"regenerator-runtime\": \"^0.13.7\",\n" } ]
PHP
MIT License
bolt/core
updating postcss-loader
95,144
05.04.2021 11:14:02
-7,200
eeea39fe603c27ab8a5b534628e53403e20d26d3
Update m_2021_03_14-permissions.yaml
[ { "change_type": "MODIFY", "old_path": "yaml-migrations/m_2021_03_14-permissions.yaml", "new_path": "yaml-migrations/m_2021_03_14-permissions.yaml", "diff": "@@ -3,15 +3,15 @@ file: bolt/permissions.yaml\nsince: 5.0.0\nadd:\n- assignable_roles: [ROLE_ADMIN, ROLE_EDITOR]\n+ assignable_roles: [ROLE_DEVELOPER, ROLE_ADMIN, ROLE_CHIEF_EDITOR, ROLE_EDITOR, ROLE_USER]\nglobal:\n- about: [ IS_AUTHENTICATED_ANONYMOUSLY ]\n- clearcache: [ ROLE_ADMIN ]\n+ about: [ ROLE_EDITOR ]\n+ clearcache: [ ROLE_CHIEF_EDITOR ]\ndashboard: [ IS_AUTHENTICATED_REMEMBERED ]\nextensions: [ ROLE_ADMIN ]\n- managefiles:files: [ ROLE_EDITOR ]\nmanagefiles:config: [ ROLE_ADMIN ]\n+ managefiles:files: [ ROLE_EDITOR ]\nmanagefiles:themes: [ ROLE_ADMIN ]\neditprofile: [ IS_AUTHENTICATED_FULLY ]\ntranslation: [ ROLE_ADMIN ]\n@@ -20,26 +20,26 @@ add:\nuser:status: [ ROLE_ADMIN ]\nuser:delete: [ ROLE_ADMIN ]\nuser:edit: [ ROLE_ADMIN ]\n- maintenance-mode: [ ROLE_ADMIN ]\n+ maintenance-mode: [ ROLE_EDITOR ]\nsystemlog: [ ROLE_ADMIN ]\napi_admin: [ ROLE_ADMIN ]\n- bulk_operations: [ ROLE_ADMIN ]\n+ bulk_operations: [ ROLE_CHIEF_EDITOR ]\nkitchensink: [ ROLE_ADMIN ]\nupload: [ ROLE_EDITOR ]\nextensionmenus: [ IS_AUTHENTICATED_REMEMBERED ]\nmedia_edit: [ ROLE_EDITOR ]\n- fetch_embed_data: [ ROLE_ADMIN ]\n+ fetch_embed_data: [ ROLE_EDITOR ]\nlist_files:config: [ ROLE_ADMIN ]\nlist_files:files: [ ROLE_EDITOR ]\nlist_files:themes: [ ROLE_ADMIN ]\ncontenttype-base:\n- edit: [ ROLE_ADMIN ]\n- create: [ ROLE_ADMIN ]\n- change-status: [ ROLE_ADMIN ]\n- delete: [ ROLE_ADMIN ]\n- change-ownership: [ ROLE_ADMIN ]\n- view: [ ROLE_ADMIN ]\n+ edit: [ ROLE_CHIEF_EDITOR ]\n+ create: [ ROLE_CHIEF_EDITOR ]\n+ change-status: [ ROLE_CHIEF_EDITOR ]\n+ delete: [ ROLE_CHIEF_EDITOR ]\n+ change-ownership: [ ROLE_CHIEF_EDITOR ]\n+ view: [ ROLE_CHIEF_EDITOR ]\ncontenttype-default:\nedit: [ ROLE_EDITOR, CONTENT_OWNER ]\n" } ]
PHP
MIT License
bolt/core
Update m_2021_03_14-permissions.yaml
95,144
07.04.2021 19:31:41
-7,200
9ea63bda82d59d5edff84fe87da38b499b66776d
Assert User's email is not blank
[ { "change_type": "MODIFY", "old_path": "src/Entity/User.php", "new_path": "src/Entity/User.php", "diff": "@@ -44,7 +44,7 @@ class User implements UserInterface, \\Serializable\n* @var string\n*\n* @ORM\\Column(type=\"string\", unique=true, length=191)\n- * @Assert\\NotBlank()\n+ * @Assert\\NotBlank(normalizer=\"trim\")\n* @Assert\\Length(min=2, max=50)\n* @Assert\\Regex(pattern=\"/^[a-z0-9_]+$/\", message=\"user.username_invalid_characters\")\n* @Groups(\"get_user\")\n@@ -55,6 +55,7 @@ class User implements UserInterface, \\Serializable\n* @var string\n*\n* @ORM\\Column(type=\"string\", unique=true, length=191)\n+ * @Assert\\NotBlank(normalizer=\"trim\")\n* @Assert\\Email(message=\"user.not_valid_email\")\n* @Groups(\"get_user\")\n*/\n" } ]
PHP
MIT License
bolt/core
Assert User's email is not blank
95,144
07.04.2021 19:45:00
-7,200
1b14d8dec937a27b31faa886786304b00cef8c55
Allow parsing of `localdate`s like `now` or `today + 1 week, 21:00`
[ { "change_type": "MODIFY", "old_path": "src/Twig/LocaleExtension.php", "new_path": "src/Twig/LocaleExtension.php", "diff": "@@ -169,7 +169,7 @@ class LocaleExtension extends AbstractExtension\n} elseif (empty($dateTime)) {\n$dateTime = Carbon::now();\n} else {\n- $dateTime = Carbon::createFromTimeString($dateTime);\n+ $dateTime = Carbon::parse($dateTime);\n}\nif ($format === null) {\n" } ]
PHP
MIT License
bolt/core
Allow parsing of `localdate`s like `now` or `today + 1 week, 21:00`
95,144
08.04.2021 17:14:40
-7,200
0e9ed82fbec7fc83e1d2ec0b6a1c6549c31c6f60
Suppress unneeded notices in ECS
[ { "change_type": "MODIFY", "old_path": "ecs.php", "new_path": "ecs.php", "diff": "@@ -46,6 +46,11 @@ use Symplify\\CodingStandard\\Fixer\\ArrayNotation\\StandaloneLineInMultilineArrayFi\nuse Symplify\\CodingStandard\\Fixer\\Commenting\\RemoveSuperfluousDocBlockWhitespaceFixer;\nuse Symplify\\CodingStandard\\Fixer\\Strict\\BlankLineAfterStrictTypesFixer;\n+// Suppress `Notice:`s in ECS 8.x This is probably fixed in the 9.x versions,\n+// but we can't update to that version, because it's PHP > 7.3 only.\n+// See: https://github.com/bolt/core/issues/2519\n+error_reporting( error_reporting() & ~E_NOTICE );\n+\nreturn static function (ContainerConfigurator $containerConfigurator): void {\n$parameters = $containerConfigurator->parameters();\n" } ]
PHP
MIT License
bolt/core
Suppress unneeded notices in ECS
95,144
09.04.2021 13:31:46
-7,200
ceb3db41d180b888d983785faa21a7cea08f6a86
Don't run migrations in composer scripts, if the Database is not initialised yet.
[ { "change_type": "MODIFY", "old_path": "bin/composer-script/CreateProjectScript.php", "new_path": "bin/composer-script/CreateProjectScript.php", "diff": "<?php\n+declare(strict_types=1);\n+\nnamespace Bolt\\ComposerScripts;\nuse Composer\\Script\\Event;\n" }, { "change_type": "MODIFY", "old_path": "bin/composer-script/PostInstallScript.php", "new_path": "bin/composer-script/PostInstallScript.php", "diff": "<?php\n+declare(strict_types=1);\n+\nnamespace Bolt\\ComposerScripts;\nclass PostInstallScript extends Script\n{\n- public static function execute()\n+ public static function execute(): void\n{\nparent::init('Running composer \"post-install-cmd\" scripts');\n@@ -12,7 +14,10 @@ class PostInstallScript extends Script\nself::run('php bin/console cache:clear --no-warmup --ansi');\nself::run('php bin/console assets:install --ansi');\n- $migrationError = self::run('php bin/console doctrine:migrations:up-to-date --ansi');\n+ // Only run, if the tables are initialised already, _and_ Doctrine thinks we need to\n+ $migrationError = ! self::run('php bin/console bolt:info --tablesInitialised') &&\n+ self::run('php bin/console doctrine:migrations:up-to-date --ansi');\n+\nif ($migrationError) {\nself::$console->warning('Please run `php bin/console doctrine:migrations:migrate` to execute the database migrations.');\n}\n" }, { "change_type": "MODIFY", "old_path": "bin/composer-script/PostUpdateScript.php", "new_path": "bin/composer-script/PostUpdateScript.php", "diff": "<?php\n+declare(strict_types=1);\n+\nnamespace Bolt\\ComposerScripts;\nclass PostUpdateScript extends Script\n@@ -13,7 +15,10 @@ class PostUpdateScript extends Script\nself::run('php bin/console cache:clear --no-warmup --ansi');\nself::run('php bin/console assets:install --symlink --relative public --ansi');\n- $migrationError = self::run('php bin/console doctrine:migrations:up-to-date --ansi');\n+ // Only run, if the tables are initialised already, _and_ Doctrine thinks we need to\n+ $migrationError = ! self::run('php bin/console bolt:info --tablesInitialised') &&\n+ self::run('php bin/console doctrine:migrations:up-to-date --ansi');\n+\nif ($migrationError) {\nself::$console->warning('Please run `php bin/console doctrine:migrations:migrate` to execute the database migrations.');\n}\n" }, { "change_type": "MODIFY", "old_path": "bin/composer-script/PrePackageUninstallScript.php", "new_path": "bin/composer-script/PrePackageUninstallScript.php", "diff": "<?php\n+declare(strict_types=1);\n+\nnamespace Bolt\\ComposerScripts;\nclass PrePackageUninstallScript extends Script\n" }, { "change_type": "MODIFY", "old_path": "bin/composer-script/ProjectEventHandler.php", "new_path": "bin/composer-script/ProjectEventHandler.php", "diff": "@@ -20,7 +20,9 @@ class ProjectEventHandler\nCreateProjectScript::execute($event);\n}\n- /** @placeholder */\n+ /**\n+ * @placeholder\n+ */\npublic static function preInstall(Event $event): void\n{\n}\n@@ -30,7 +32,9 @@ class ProjectEventHandler\nPostInstallScript::execute();\n}\n- /** @placeholder */\n+ /**\n+ * @placeholder\n+ */\npublic static function preUpdate(Event $event): void\n{\n}\n@@ -44,5 +48,4 @@ class ProjectEventHandler\n{\nPrePackageUninstallScript::execute();\n}\n-\n}\n" }, { "change_type": "MODIFY", "old_path": "bin/composer-script/Script.php", "new_path": "bin/composer-script/Script.php", "diff": "<?php\n+declare(strict_types=1);\n+\nnamespace Bolt\\ComposerScripts;\nuse Composer\\Script\\Event;\n@@ -11,7 +13,7 @@ class Script\n/** @var SymfonyStyle */\nprotected static $console;\n- protected static function init(string $message = '')\n+ protected static function init(string $message = ''): void\n{\n$consoleFactory = new SymfonyStyleFactory();\nself::$console = $consoleFactory->create();\n" } ]
PHP
MIT License
bolt/core
Don't run migrations in composer scripts, if the Database is not initialised yet.
95,144
09.04.2021 13:35:13
-7,200
e6f89040ffd8415e53b19bbdafcf58e6c1190f61
Add `--tablesInitialised` flag
[ { "change_type": "MODIFY", "old_path": "src/Command/InfoCommand.php", "new_path": "src/Command/InfoCommand.php", "diff": "@@ -8,6 +8,7 @@ use Bolt\\Version;\nuse ComposerPackages\\Packages;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n+use Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n@@ -45,7 +46,8 @@ class InfoCommand extends Command\n<<<'HELP'\nThe <info>%command.name%</info> command shows some information about this installation of Bolt.\nHELP\n- );\n+ )\n+ ->addOption('tablesInitialised', null, InputOption::VALUE_NONE, 'If set, outputs whether the Database tables are initialised or not');\n}\n/**\n@@ -54,6 +56,11 @@ HELP\n*/\nprotected function execute(InputInterface $input, OutputInterface $output)\n{\n+ // If we just need to see if tables exist, exit quickly.\n+ if ($input->getOption('tablesInitialised')) {\n+ return (int) ! $this->doctrineVersion->tableContentExists();\n+ }\n+\n$this->io = new SymfonyStyle($input, $output);\n$this->outputImage($this->io);\n" } ]
PHP
MIT License
bolt/core
Add `--tablesInitialised` flag
95,144
09.04.2021 14:25:12
-7,200
3c117ef394dec3f67b232165be15e810fd167f9c
Initialise Doctrine Migration table, make command less noisy
[ { "change_type": "MODIFY", "old_path": "src/Command/SetupCommand.php", "new_path": "src/Command/SetupCommand.php", "diff": "@@ -9,6 +9,7 @@ use Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n+use Symfony\\Component\\Console\\Output\\NullOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n@@ -40,7 +41,6 @@ class SetupCommand extends Command\nprotected function execute(InputInterface $input, OutputInterface $output): int\n{\n- $exitCode = 0;\n$io = new SymfonyStyle($input, $output);\n// Because SQLite breaks on `--if-not-exists`, we need to check for that here.\n@@ -55,11 +55,24 @@ class SetupCommand extends Command\n$this->processExitCode($exitCode, 'An error occurred when creating the database.');\n$command = $this->getApplication()->find('doctrine:schema:create');\n- $exitCode = $command->run(new ArrayInput([]), $output);\n+ $exitCode = $command->run(new ArrayInput([]), new NullOutput());\n$this->processExitCode($exitCode, 'An error occurred when creating the database schema.');\n+ $command = $this->getApplication()->find('doctrine:migrations:sync-metadata-storage');\n+ $exitCode = $command->run(new ArrayInput([]), new NullOutput());\n+ $this->processExitCode($exitCode, 'An error occurred when initialising the Doctrine Migrations metatada storage.');\n+\n+ $command = $this->getApplication()->find('doctrine:migrations:version');\n+ $commandInput = new ArrayInput([\n+ '--add' => true,\n+ '--all' => true,\n+ ]);\n+ $commandInput->setInteractive(false);\n+ $exitCode = $command->run($commandInput, new NullOutput());\n+ $this->processExitCode($exitCode, 'An error occurred when initialising the Doctrine Migrations metatada storage.');\n+\n$command = $this->getApplication()->find('bolt:reset-secret');\n- $exitCode = $command->run(new ArrayInput([]), $output);\n+ $exitCode = $command->run(new ArrayInput([]), new NullOutput());\n$this->processExitCode($exitCode, 'An error occurred while resetting APP_SECRET in the .env file.');\n$command = $this->getApplication()->find('bolt:add-user');\n" } ]
PHP
MIT License
bolt/core
Initialise Doctrine Migration table, make command less noisy
95,144
09.04.2021 15:34:29
-7,200
f31c5e0daf64d76cd71c504808c7966f0baa04ec
Show 404 instead of error when missing secret
[ { "change_type": "MODIFY", "old_path": "src/Controller/Frontend/DetailController.php", "new_path": "src/Controller/Frontend/DetailController.php", "diff": "@@ -56,7 +56,8 @@ class DetailController extends TwigAwareController implements FrontendZoneInterf\n$this->contentHelper->setCanonicalPath($record);\n- if ($this->validateSecret($this->request->get('secret', ''), (string) $record->getId())) {\n+ // Check if we're attempting to preview an unpublished Record\n+ if ($record && $this->validateSecret($this->request->get('secret', ''), (string) $record->getId())) {\n$requirePublished = false;\n}\n" } ]
PHP
MIT License
bolt/core
Show 404 instead of error when missing secret
95,144
12.04.2021 14:49:45
-7,200
ec8065d8d84f16199f2610c2f882e14052dce4a1
Ensure installation of Bolt Assets on `composer update`
[ { "change_type": "MODIFY", "old_path": "bin/composer-script/PostInstallScript.php", "new_path": "bin/composer-script/PostInstallScript.php", "diff": "@@ -10,9 +10,10 @@ class PostInstallScript extends Script\n{\nparent::init('Running composer \"post-install-cmd\" scripts');\n- self::run('php bin/console bolt:copy-assets --ansi');\nself::run('php bin/console cache:clear --no-warmup --ansi');\n- self::run('php bin/console assets:install --ansi');\n+ self::run('php bin/console assets:install --symlink --relative public --ansi');\n+ self::run('php bin/console bolt:copy-assets --ansi');\n+ self::run('php bin/console extensions:configure --with-config --ansi');\n// Only run, if the tables are initialised already, _and_ Doctrine thinks we need to\n$migrationError = ! self::run('php bin/console bolt:info --tablesInitialised') &&\n@@ -21,7 +22,5 @@ class PostInstallScript extends Script\nif ($migrationError) {\nself::$console->warning('Please run `php bin/console doctrine:migrations:migrate` to execute the database migrations.');\n}\n-\n- self::run('php bin/console extensions:configure --ansi');\n}\n}\n" }, { "change_type": "MODIFY", "old_path": "bin/composer-script/PostUpdateScript.php", "new_path": "bin/composer-script/PostUpdateScript.php", "diff": "@@ -11,9 +11,10 @@ class PostUpdateScript extends Script\nparent::init('Running composer \"post-update-cmd\" scripts');\nself::run('php vendor/bobdenotter/yaml-migrations/bin/yaml-migrate process -c vendor/bolt/core/yaml-migrations/config.yaml -v');\n- self::run('php bin/console extensions:configure --with-config --ansi');\nself::run('php bin/console cache:clear --no-warmup --ansi');\nself::run('php bin/console assets:install --symlink --relative public --ansi');\n+ self::run('php bin/console bolt:copy-assets --ansi');\n+ self::run('php bin/console extensions:configure --with-config --ansi');\n// Only run, if the tables are initialised already, _and_ Doctrine thinks we need to\n$migrationError = ! self::run('php bin/console bolt:info --tablesInitialised') &&\n" } ]
PHP
MIT License
bolt/core
Ensure installation of Bolt Assets on `composer update`
95,118
14.04.2021 12:21:22
-7,200
fa809692329c15d40f699d39ea47267815593201
Corrected the filepath for getsvg() function
[ { "change_type": "MODIFY", "old_path": "src/Twig/ImageExtension.php", "new_path": "src/Twig/ImageExtension.php", "diff": "@@ -31,18 +31,24 @@ class ImageExtension extends AbstractExtension\n/** @var Packages */\nprivate $assets;\n+ /** @var string */\n+ private $publicFolder;\n+\npublic function __construct(\nMediaRepository $mediaRepository,\nNotifications $notifications,\nThumbnailHelper $thumbnailHelper,\nContentExtension $contentExtension,\n- Packages $assets)\n+ Packages $assets,\n+ string $publicFolder,\n+ string $projectDir)\n{\n$this->mediaRepository = $mediaRepository;\n$this->notifications = $notifications;\n$this->thumbnailHelper = $thumbnailHelper;\n$this->contentExtension = $contentExtension;\n$this->assets = $assets;\n+ $this->publicFolder = $projectDir . DIRECTORY_SEPARATOR . $publicFolder;\n}\n/**\n@@ -143,7 +149,7 @@ class ImageExtension extends AbstractExtension\n*/\npublic function getSvg($image): ?string\n{\n- $image = $this->assets->getUrl($this->getFilename($image, true), 'files');\n+ $image = $this->publicFolder . $this->assets->getUrl($this->getFilename($image, true), 'files');\n$extension = pathinfo($image, PATHINFO_EXTENSION);\nif ($extension !== 'svg') {\n" } ]
PHP
MIT License
bolt/core
Corrected the filepath for getsvg() function
95,168
14.04.2021 13:45:02
-7,200
933a84d42b7458380e84b75e9ca9bbd234520797
Remove hardcoded color style and use --body-dimmed color
[ { "change_type": "MODIFY", "old_path": "templates/finder/_files_list.html.twig", "new_path": "templates/finder/_files_list.html.twig", "diff": "{{ file.getRelativePathname|shy }}\n</a>\n</b>\n- {% if title %}<br><small style=\"color: #888;\">{{ title }}</small>{% endif %}\n+ {% if title %}<br><small>{{ title }}</small>{% endif %}\n</td>\n<td class=\"listing-thumb\">\n{%- if thumbnail -%}\n{%- endif -%}\n</td>\n<td>\n- <small style=\"color: #888; white-space:nowrap;\">{{ file.getSize()|format_bytes(1) }}\n+ <small style=\"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+ <small>{{ file.getCTime()|date('Y-m-d H:i:s') }}</small>\n</td>\n<td>\n{% include '@bolt/finder/_files_actions.html.twig' %}\n" } ]
PHP
MIT License
bolt/core
Remove hardcoded color style and use --body-dimmed color
95,148
01.04.2021 16:19:59
-7,200
9fe5755b39c85e9f39f5ef7784e817d7708534d0
not remove reverse relation when save
[ { "change_type": "MODIFY", "old_path": "src/Controller/Backend/ContentEditController.php", "new_path": "src/Controller/Backend/ContentEditController.php", "diff": "@@ -484,7 +484,7 @@ class ContentEditController extends TwigAwareController implements BackendZoneIn\nprivate function updateRelation(Content $content, $newRelations): void\n{\n$newRelations = (new Collection(Json::findArray($newRelations)))->filter();\n- $currentRelations = $this->relationRepository->findRelations($content, null, true, null, false);\n+ $currentRelations = $this->relationRepository->findRelations($content, null, false, null, false);\n// Remove old ones\nforeach ($currentRelations as $currentRelation) {\n" } ]
PHP
MIT License
bolt/core
not remove reverse relation when save
95,144
20.04.2021 17:04:37
-7,200
e7cdfa5885abfeec115d20d43cdd986de935ab10
Fix datepicker to only attempt to use existing locales, ensuring Time Picking still works
[ { "change_type": "MODIFY", "old_path": "templates/_partials/fields/date.html.twig", "new_path": "templates/_partials/fields/date.html.twig", "diff": "{% endif %}\n{% if not valueonly %}\n+ {# Ensure we use only locales bundled with Flatflicker, otherwise default to 'en' #}\n+ {% set locale = app.user.locale|split('_')|first %}\n+ {% if not locale in 'ar|at|az|be|bg|bn|bs|cs|cy|da|de|eo|es|et|fa|fi|fo|fr|ga|gr|he|hi|hr|hu|id|is|it|ja|ka|km|ko|kz|lt|lv|mk|mn|ms|my|nl|no|pa|pl|pt|ro|ru|si|sk|sl|sq|sr|sv|th|tr|uk|uz|vn|zh'|split('|') %}\n+ {% set locale = 'en' %}\n+ {% endif %}\n<editor-date\n:value='{{ value|json_encode }}'\nname='{{ name }}'\n:readonly='{{ readonly|json_encode }}'\nform='{{ form }}'\nmode='{{ mode }}'\n- locale='{{app.user.locale}}'\n+ locale='{{locale}}'\nlabels='{{ { 'toggle': 'editor_date.toggle'|trans }|json_encode }}'\n:required='{{ required|json_encode }}'\n:errormessage='{{ errormessage|json_encode }}'\n" } ]
PHP
MIT License
bolt/core
Fix datepicker to only attempt to use existing locales, ensuring Time Picking still works
95,144
20.04.2021 17:40:18
-7,200
393daf7cd3d9b4f823e47e64ca1e3419b1597fdc
Escape password, to not break the page's HTML
[ { "change_type": "MODIFY", "old_path": "templates/users/_form.html.twig", "new_path": "templates/users/_form.html.twig", "diff": "{% set suggested_pw_postfix %}{% apply spaceless %}\n<div>\n- {{ 'password.suggested'|trans({'%password%': suggested_pw })|raw }}\n+ {{ 'password.suggested'|trans({'%password%': suggested_pw|e })|raw }}\n<i style=\"cursor: pointer;\" class=\"fas fa-clipboard-check ml-2\" data-copy-to-clipboard=\"{{ suggested_pw }}\"></i>\n</div>\n{% endapply %}{% endset %}\n" } ]
PHP
MIT License
bolt/core
Escape password, to not break the page's HTML
95,144
21.04.2021 12:18:20
-7,200
f9c127a15666bca07220b33137a552e65f8ef456
Fix edgecase where Excerpt could start with `. `.
[ { "change_type": "MODIFY", "old_path": "src/Twig/ContentExtension.php", "new_path": "src/Twig/ContentExtension.php", "diff": "@@ -294,7 +294,7 @@ class ContentExtension extends AbstractExtension\n}\n}\n- $specialChars = ['.', ',', '!', '?'];\n+ $specialChars = ['.', ',', '!', '?', '>'];\n$excerpt = array_reduce($excerptParts, function (string $excerpt, string $part) use ($specialChars): string {\nif (in_array(mb_substr($part, -1), $specialChars, true) === false) {\n// add period at end of string if it doesn't have sentence end\n" } ]
PHP
MIT License
bolt/core
Fix edgecase where Excerpt could start with `. `.
95,167
22.04.2021 12:45:29
-7,200
93725b249e08b9ba091cba27b3657334a8494c8e
2177: Add sr only text to select all checkbox
[ { "change_type": "MODIFY", "old_path": "assets/js/app/listing/Components/Filter.vue", "new_path": "assets/js/app/listing/Components/Filter.vue", "diff": "<li v-if=\"type !== 'dashboard'\">\n<div v-if=\"!sorting\" class=\"custom-control custom-checkbox\">\n<input id=\"selectAll\" :value=\"selectAll\" class=\"custom-control-input\" type=\"checkbox\" />\n- <label class=\"custom-control-label\" for=\"selectAll\" @click=\"enableSelectAll(!selectAll)\"></label>\n+ <label class=\"custom-control-label\" for=\"selectAll\" @click=\"enableSelectAll(!selectAll)\"><span class=\"sr-only\">{{ labels.select_all }}</span></label>\n</div>\n</li>\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/_content_listing.html.twig", "new_path": "templates/_partials/_content_listing.html.twig", "diff": "<listing-filter :labels=\"{{ {\n'button_compact': 'listing_filter.button_compact'|trans,\n'button_expanded': 'listing_filter.button_expanded'|trans,\n+ 'select_all': 'listing_table.actions.select_all'|trans,\n}|json_encode }}\"></listing-filter>\n<!-- end listing filter -->\n" }, { "change_type": "MODIFY", "old_path": "translations/messages.en.xlf", "new_path": "translations/messages.en.xlf", "diff": "<target>Edit Permissions</target>\n</segment>\n</unit>\n+ <unit id=\"OEqzPDO\" name=\"listing_table.actions.select_all\">\n+ <segment>\n+ <source>listing_table.actions.select_all</source>\n+ <target>Select all</target>\n+ </segment>\n+ </unit>\n</file>\n</xliff>\n" } ]
PHP
MIT License
bolt/core
2177: Add sr only text to select all checkbox
95,144
29.04.2021 14:03:47
-7,200
8642eb6f26215a46162a72c893b36e80db27fbc9
Use `text-overflow: ellipsis;` instead
[ { "change_type": "MODIFY", "old_path": "assets/scss/modules/listing/row/row.scss", "new_path": "assets/scss/modules/listing/row/row.scss", "diff": "@@ -171,7 +171,7 @@ $checkbox-row-width: 32px;\n&.is-meta {\nflex: 1 0 68%;\n- display: flex;\n+ display: block;\nflex-wrap: wrap;\npadding-top: 0;\nmargin-bottom: 0;\n@@ -185,10 +185,11 @@ $checkbox-row-width: 32px;\n}\n@include media-breakpoint-up(md) {\n- flex: 0 0 140px;\n- max-width: 140px;\n+ flex: 0 0 155px;\n+ max-width: 155px;\norder: 3;\n- padding: $spacer*0.5;\n+ padding: $spacer*0.5 0 $spacer*0.3 $spacer*0.5;\n+ margin-right: -2rem;\n}\n}\n@@ -228,12 +229,12 @@ $checkbox-row-width: 32px;\n}\nli {\n- //display: flex;\npadding-right: 1rem;\n- //align-items: center;\nmargin-bottom: $spacer / 4;\ncolor: var(--shade);\ntext-transform: capitalize;\n+ text-overflow: ellipsis;\n+ overflow: hidden;\n> :first-child,\n.status,\n" } ]
PHP
MIT License
bolt/core
Use `text-overflow: ellipsis;` instead
95,144
30.04.2021 13:12:52
-7,200
f2968756c7a21c5fd2c72e0fd0843df87cc8c1d2
Require opt-in for FLoC header
[ { "change_type": "MODIFY", "old_path": "config/bolt/config.yaml", "new_path": "config/bolt/config.yaml", "diff": "@@ -25,10 +25,15 @@ date_format: 'F j, Y H:i'\n# You can set a preference to omit background images on the login screen.\nomit_backgrounds: true\n-# If you're a party-pooper who wants to hide the `generator` meta tag and\n-# `x-powered-by` header, set these to true\n+# If you're a party-pooper and dislike the `generator` meta tag, set to `true`\nomit_meta_generator_tag: false\n-omit_powered_by_header: false\n+\n+headers:\n+ # Allow of Google's FLoC by setting this to `true` (defaults to `false` for opt-out)\n+ # https://github.com/symfony/symfony/pull/40989\n+ allow-floc: false\n+ # Add Bolt's \"Powered By\" (defaults to `true`)\n+ powered_by: true\n# If your site is reachable under different urls (say, both blog.example.org/\n# as well as example.org/), its a good idea to set one of these as the\n" }, { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/GeneralParser.php", "new_path": "src/Configuration/Parser/GeneralParser.php", "diff": "@@ -87,7 +87,8 @@ class GeneralParser extends BaseParser\n'upload_location' => '{contenttype}/{year}/{month}/',\n'maintenance_mode' => false,\n'headers' => [\n- 'x_frame_options' => true,\n+ 'block_floc' => true,\n+ 'powered_by' => true,\n],\n'htmlcleaner' => [\n'allowed_tags' => explode(',', '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,dh,table,tbody,thead,tfoot,th,td,tr,a,img,address,abbr,iframe'),\n@@ -103,7 +104,6 @@ class GeneralParser extends BaseParser\n'remove_default_locale_on_canonical' => true,\n],\n'omit_backgrounds' => false,\n- 'omit_powered_by_header' => false,\n'omit_meta_generator_tag' => false,\n'user_avatar' => [\n'upload_path' => 'avatars',\n" }, { "change_type": "MODIFY", "old_path": "src/Event/Subscriber/WidgetSubscriber.php", "new_path": "src/Event/Subscriber/WidgetSubscriber.php", "diff": "@@ -7,6 +7,7 @@ namespace Bolt\\Event\\Subscriber;\nuse Bolt\\Canonical;\nuse Bolt\\Configuration\\Config;\nuse Bolt\\Widget\\BoltHeaderWidget;\n+use Bolt\\Widget\\FlocOptOutHeader;\nuse Bolt\\Widget\\CanonicalLinkWidget;\nuse Bolt\\Widget\\Injector\\RequestZone;\nuse Bolt\\Widget\\Injector\\Target;\n@@ -44,7 +45,11 @@ class WidgetSubscriber implements EventSubscriberInterface\n{\n$this->widgets->registerWidget(new CanonicalLinkWidget($this->canonical));\n- if (! $this->config->get('general/omit_powered_by_header')) {\n+ if (! $this->config->get('general/headers/allow_floc')) {\n+ $this->widgets->registerWidget(new FlocOptOutHeader());\n+ }\n+\n+ if ($this->config->get('general/headers/powered_by')) {\n$this->widgets->registerWidget(new BoltHeaderWidget());\n}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/Widget/FlocOptOutHeader.php", "diff": "+<?php\n+\n+declare(strict_types=1);\n+\n+namespace Bolt\\Widget;\n+\n+use Bolt\\Extension\\ExtensionInterface;\n+use Bolt\\Widget\\Injector\\RequestZone;\n+use Bolt\\Widget\\Injector\\Target;\n+\n+class FlocOptOutHeader extends BaseWidget implements WidgetInterface, ResponseAwareInterface\n+{\n+ use ResponseTrait;\n+\n+ /** @var ExtensionInterface */\n+ protected $extension;\n+\n+ public function __invoke(array $params = []): ?string\n+ {\n+ $this->getResponse()->headers->set('permissions-policy', 'interest-cohort=()', false);\n+\n+ return null;\n+ }\n+\n+ public function getName(): string\n+ {\n+ return 'FLoC Opt-Out Header';\n+ }\n+\n+ public function getTargets(): array\n+ {\n+ return [Target::NOWHERE];\n+ }\n+\n+ public function getPriority(): int\n+ {\n+ return 0;\n+ }\n+\n+ public function getZone(): string\n+ {\n+ return RequestZone::FRONTEND;\n+ }\n+\n+ public function injectExtension(ExtensionInterface $extension): void\n+ {\n+ $this->extension = $extension;\n+ }\n+}\n" } ]
PHP
MIT License
bolt/core
Require opt-in for FLoC header
95,145
01.05.2021 20:08:03
-7,200
b238ce7c0fb331f02d6df83819c3bde79a348c93
Made the canonical link widget use a overridable template
[ { "change_type": "MODIFY", "old_path": "config/bolt/config.yaml", "new_path": "config/bolt/config.yaml", "diff": "@@ -37,6 +37,9 @@ omit_powered_by_header: false\n# If you include `https://`, it will be included in the canonical urls.\n#canonical: example.org\n+# If you want to override the canonical template, from the theme:\n+#canonical_template: 'partials/_canonical.html.twig'\n+\n# Bolt can insert a <link rel=\"shortcut icon\"> for all pages on the site.\n# Note: The location given is relative to the currently selected theme. If\n" }, { "change_type": "MODIFY", "old_path": "src/Event/Subscriber/WidgetSubscriber.php", "new_path": "src/Event/Subscriber/WidgetSubscriber.php", "diff": "@@ -16,6 +16,7 @@ use Bolt\\Widgets;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n+use Twig\\Environment;\nclass WidgetSubscriber implements EventSubscriberInterface\n{\n@@ -30,11 +31,15 @@ class WidgetSubscriber implements EventSubscriberInterface\n/** @var Config */\nprivate $config;\n- public function __construct(Widgets $widgets, Canonical $canonical, Config $config)\n+ /** @var Environment */\n+ private $twig;\n+\n+ public function __construct(Widgets $widgets, Canonical $canonical, Config $config, Environment $twig)\n{\n$this->widgets = $widgets;\n$this->canonical = $canonical;\n$this->config = $config;\n+ $this->twig = $twig;\n}\n/**\n@@ -42,7 +47,13 @@ class WidgetSubscriber implements EventSubscriberInterface\n*/\npublic function onKernelRequest(RequestEvent $event): void\n{\n- $this->widgets->registerWidget(new CanonicalLinkWidget($this->canonical));\n+ $canonicalLinkWidget = new CanonicalLinkWidget(\n+ $this->canonical,\n+ $this->config,\n+ $this->twig\n+ );\n+\n+ $this->widgets->registerWidget($canonicalLinkWidget);\nif (! $this->config->get('general/omit_powered_by_header')) {\n$this->widgets->registerWidget(new BoltHeaderWidget());\n" }, { "change_type": "MODIFY", "old_path": "src/Widget/CanonicalLinkWidget.php", "new_path": "src/Widget/CanonicalLinkWidget.php", "diff": "@@ -5,8 +5,10 @@ declare(strict_types=1);\nnamespace Bolt\\Widget;\nuse Bolt\\Canonical;\n+use Bolt\\Configuration\\Config;\nuse Bolt\\Widget\\Injector\\RequestZone;\nuse Bolt\\Widget\\Injector\\Target;\n+use Twig\\Environment;\nclass CanonicalLinkWidget extends BaseWidget\n{\n@@ -18,13 +20,30 @@ class CanonicalLinkWidget extends BaseWidget\n/** @var Canonical */\nprivate $canonical;\n- public function __construct(Canonical $canonical)\n+ /** @var Config */\n+ private $config;\n+\n+ /** @var string */\n+ private $defaultTemplate = '@bolt/widget/canonical.html.twig';\n+\n+ public function __construct(Canonical $canonical, Config $config, Environment $twig)\n{\n$this->canonical = $canonical;\n+ $this->config = $config;\n+\n+ $this->setTwig($twig);\n}\nprotected function run(array $params = []): ?string\n{\n- return sprintf('<link rel=\"canonical\" href=\"%s\">', $this->canonical->get());\n+ $template = $this->config->get('general/canonical_template', $this->defaultTemplate);\n+ $output = $this->getTwig()->render(\n+ $template,\n+ [\n+ 'canonical' => $this->canonical->get(),\n+ ]\n+ );\n+\n+ return $output;\n}\n}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "templates/widget/canonical.html.twig", "diff": "+<link rel=\"canonical\" href=\"{{ canonical }}\">\n\\ No newline at end of file\n" } ]
PHP
MIT License
bolt/core
Made the canonical link widget use a overridable template
95,145
01.05.2021 20:18:19
-7,200
b69a5cd6aeb0377353e12e7f3862f56f541b5df7
Added the option to get a relative path passed to the canonical template
[ { "change_type": "MODIFY", "old_path": "config/bolt/config.yaml", "new_path": "config/bolt/config.yaml", "diff": "@@ -40,6 +40,9 @@ omit_powered_by_header: false\n# If you want to override the canonical template, from the theme:\n#canonical_template: 'partials/_canonical.html.twig'\n+# By setting this to true, you will get a relative canonical path passed to the template.\n+#relative_canonical_url: true\n+\n# Bolt can insert a <link rel=\"shortcut icon\"> for all pages on the site.\n# Note: The location given is relative to the currently selected theme. If\n" }, { "change_type": "MODIFY", "old_path": "src/Canonical.php", "new_path": "src/Canonical.php", "diff": "@@ -80,7 +80,7 @@ class Canonical\n$_SERVER['CANONICAL_SCHEME'] = $configUrl['scheme'];\n}\n- public function get(?string $route = null, array $params = []): ?string\n+ public function get(?string $route = null, array $params = [], bool $absolute = true): ?string\n{\n// Ensure request has been matched\nif (! $this->request->attributes->get('_route')) {\n@@ -91,6 +91,10 @@ class Canonical\n$this->setPath($route, $params);\n}\n+ if (!$absolute) {\n+ return $this->getPath();\n+ }\n+\nreturn sprintf(\n'%s://%s%s%s',\n$this->getScheme(),\n" }, { "change_type": "MODIFY", "old_path": "src/Widget/CanonicalLinkWidget.php", "new_path": "src/Widget/CanonicalLinkWidget.php", "diff": "@@ -37,10 +37,11 @@ class CanonicalLinkWidget extends BaseWidget\nprotected function run(array $params = []): ?string\n{\n$template = $this->config->get('general/canonical_template', $this->defaultTemplate);\n+ $absolute = !$this->config->get('general/relative_canonical_url', false);\n$output = $this->getTwig()->render(\n$template,\n[\n- 'canonical' => $this->canonical->get(),\n+ 'canonical' => $this->canonical->get(null, [], $absolute),\n]\n);\n" } ]
PHP
MIT License
bolt/core
Added the option to get a relative path passed to the canonical template
95,145
02.05.2021 13:23:02
-7,200
ad257657a98973ada97dc37f5e41781af832e810
Added the missing additional targets widgets to the backend
[ { "change_type": "MODIFY", "old_path": "templates/content/edit.html.twig", "new_path": "templates/content/edit.html.twig", "diff": "{% endif %}\n<form method=\"post\" id=\"editcontent\">\n+ {{ widgets('editcontent_below_header') }}\n<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('editrecord') }}\">\n<input type=\"hidden\" name=\"_edit_locale\" value=\"{{ currentlocale }}\">\n</div>\n</div>\n+ {{ widgets('editcontent_bottom') }}\n<hr>\n{% include '@bolt/content/_buttons.html.twig' with {'hide_on_mobile': true} %}\n{% endblock %}\n{% block aside %}\n-\n<div id=\"metadata\">\n<form class=\"ui form\">\n+ {{ widgets('editcontent_aside_top') }}\n<div class=\"card mb-3\">\n<div class=\"card-header\">\n</div>\n{% include '@bolt/content/_localeswitcher.html.twig' %}\n+ {{ widgets('editcontent_aside_middle') }}\n<div class=\"card\">\n<div class=\"card-header\">\n</div>\n</div>\n+ {{ widgets('editcontent_aside_bottom') }}\n</form>\n</div>\n-\n{% endblock aside %}\n" }, { "change_type": "MODIFY", "old_path": "templates/content/listing.html.twig", "new_path": "templates/content/listing.html.twig", "diff": "{% block main %}\n<div>\n+ {{ widgets('overview_below_header') }}\n{% include '@bolt/_partials/_content_listing.html.twig' with {'records': records, 'type': contentType.slug } %}\n+ {{ widgets('overview_bottom') }}\n</div>\n{% endblock %}\n" }, { "change_type": "MODIFY", "old_path": "templates/finder/finder.html.twig", "new_path": "templates/finder/finder.html.twig", "diff": "{% endblock %}\n{% block main %}\n+ {{ widgets('files_below_header') }}\n<div id=\"filemanager\">\n{% include '@bolt/finder/_quickselect.html.twig' %}\n{{ pager(finder, template = '@bolt/helpers/_pager_bootstrap.html.twig', class=\"justify-content-center\") }}\n</div>\n+ {{ widgets('files_bottom') }}\n{% endblock %}\n{% block aside %}\n" }, { "change_type": "MODIFY", "old_path": "templates/pages/dashboard.html.twig", "new_path": "templates/pages/dashboard.html.twig", "diff": "{# The 'main' section is the main contents of the page. Usually this is Vue-ified. #}\n{% block main %}\n+ {{ widgets('dashboard_below_header') }}\n<div id=\"listing\">\n{% include '@bolt/_partials/_content_listing.html.twig' with {'records': records, 'type': 'dashboard' } %}\n</div>\n+ {{ widgets('dashboard_bottom') }}\n{% endblock %}\n{# The 'aside' section is the right sidebar of the page. If omitted, 'main' will take up the full width. #}\n{% block aside %}\n{{ widgets('dashboard_aside_top') }}\n+ {{ widgets('dashboard_aside_middle') }}\n+ {{ widgets('dashboard_aside_bottom') }}\n{% endblock %}\n" }, { "change_type": "MODIFY", "old_path": "templates/security/login.html.twig", "new_path": "templates/security/login.html.twig", "diff": "{% endif %}\n{{ form_start(loginForm, {'attr': {'id': 'login-form'}}) }}\n+ {{ widgets('login_top') }}\n{{ form_row(loginForm.username) }}\n{{ form_row(loginForm.password) }}\n+ {{ widgets('login_middle') }}\n{{ form_row(loginForm.remember_me) }}\n<button class=\"btn btn-primary\" type=\"submit\">\n<i class=\"fas fa-sign-in-alt\" aria-hidden=\"true\"></i>\n<i class=\"fas fa-question-circle\"></i>\n{{ 'login.forgotpassword'|trans }}\n</a>\n+ {{ widgets('login_bottom') }}\n{{ form_end(loginForm) }}\n</div>\n" } ]
PHP
MIT License
bolt/core
Added the missing additional targets widgets to the backend (#2558)
95,145
02.05.2021 14:22:54
-7,200
556f562960328dfce33a5911d8b6d1b351b84f3f
Ran csfix to resolve the code style errors on the canonical template
[ { "change_type": "MODIFY", "old_path": "src/Widget/CanonicalLinkWidget.php", "new_path": "src/Widget/CanonicalLinkWidget.php", "diff": "@@ -38,13 +38,12 @@ class CanonicalLinkWidget extends BaseWidget\n{\n$template = $this->config->get('general/canonical_template', $this->defaultTemplate);\n$absolute = ! $this->config->get('general/relative_canonical_url', false);\n- $output = $this->getTwig()->render(\n+\n+ return $this->getTwig()->render(\n$template,\n[\n'canonical' => $this->canonical->get(null, [], $absolute),\n]\n);\n-\n- return $output;\n}\n}\n" } ]
PHP
MIT License
bolt/core
Ran csfix to resolve the code style errors on the canonical template
95,144
03.05.2021 13:54:15
-7,200
d784316714108258c93850c6be690f8dcf249565
Update src/Configuration/Parser/GeneralParser.php
[ { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/GeneralParser.php", "new_path": "src/Configuration/Parser/GeneralParser.php", "diff": "@@ -87,7 +87,7 @@ class GeneralParser extends BaseParser\n'upload_location' => '{contenttype}/{year}/{month}/',\n'maintenance_mode' => false,\n'headers' => [\n- 'block_floc' => true,\n+ 'allow_floc' => false,\n'powered_by' => true,\n],\n'htmlcleaner' => [\n" } ]
PHP
MIT License
bolt/core
Update src/Configuration/Parser/GeneralParser.php
95,147
10.05.2021 12:35:48
-7,200
1b7eb6e4754af9b38a3c3b5357d256356db15199
Fix ecs breakage with `friendsofphp/php-cs-fixer`
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "},\n\"conflict\": {\n\"doctrine/common\": \">=3.0\",\n- \"doctrine/persistence\": \"<1.3\"\n+ \"doctrine/persistence\": \"<1.3\",\n+ \"friendsofphp/php-cs-fixer\": \">=2.19.0\"\n},\n\"config\": {\n\"preferred-install\": {\n" } ]
PHP
MIT License
bolt/core
Fix ecs breakage with `friendsofphp/php-cs-fixer`
95,144
11.05.2021 14:51:11
-7,200
714f60ccba4b2c9feff4b6d4ab924ec2e78b3c2b
Several fixes for handling Relations
[ { "change_type": "MODIFY", "old_path": "config/bolt/contenttypes.yaml", "new_path": "config/bolt/contenttypes.yaml", "diff": "@@ -97,6 +97,12 @@ pages:\ntemplate:\ntype: templateselect\nfilter: '/^[^_].*\\.twig$/'\n+ relations:\n+ entries:\n+ multiple: false\n+ order: title\n+ label: Select an Entry\n+ required: false\ntaxonomy: [ groups ]\nlisting_records: 6\norder: id\n@@ -139,7 +145,7 @@ entries:\ntype: embed\nrelations:\npages:\n- multiple: false\n+ multiple: true\norder: heading\nlabel: Select a page\ntaxonomy: [ categories, tags, groups ]\n" }, { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/ContentTypesParser.php", "new_path": "src/Configuration/Parser/ContentTypesParser.php", "diff": "@@ -199,9 +199,13 @@ class ContentTypesParser extends BaseParser\n$contentType['taxonomy'] = [];\n}\n- // when adding relations, make sure they're added by their slug. Not their 'name' or 'singular name'.\nif (! empty($contentType['relations']) && is_array($contentType['relations'])) {\nforeach (array_keys($contentType['relations']) as $relkey) {\n+\n+ // Default `required` to `false` for Relations\n+ $contentType['relations'][$relkey]['required'] = $contentType['relations'][$relkey]['required'] ?? false;\n+\n+ // Make sure Relations are added by their slug. Not their 'name' or 'singular name'.\nif ($relkey !== Str::slug($relkey)) {\n$contentType['relations'][Str::slug($relkey)] = $contentType['relations'][$relkey];\nunset($contentType['relations'][$relkey]);\n" }, { "change_type": "MODIFY", "old_path": "src/Controller/Backend/ContentEditController.php", "new_path": "src/Controller/Backend/ContentEditController.php", "diff": "@@ -484,7 +484,7 @@ class ContentEditController extends TwigAwareController implements BackendZoneIn\nprivate function updateRelation(Content $content, $newRelations): void\n{\n$newRelations = (new Collection(Json::findArray($newRelations)))->filter();\n- $currentRelations = $this->relationRepository->findRelations($content, null, false, null, false);\n+ $currentRelations = $this->relationRepository->findRelations($content, null, true, null, false);\n// Remove old ones\nforeach ($currentRelations as $currentRelation) {\n" }, { "change_type": "MODIFY", "old_path": "src/Factory/RelationFactory.php", "new_path": "src/Factory/RelationFactory.php", "diff": "@@ -47,8 +47,8 @@ class RelationFactory\nprivate function getFromMemory(Content $from, Content $to): ?Relation\n{\nreturn $this->relations->filter(function (Relation $relation) use ($from, $to) {\n- return $relation->getFromContent() === $from || $relation->getFromContent() === $to\n- || $relation->getToContent() === $to || $relation->getToContent() === $from;\n+ return ($relation->getFromContent() === $from && $relation->getToContent() === $to)\n+ || ($relation->getToContent() === $to && $relation->getToContent() === $from);\n})->last(null, null);\n}\n}\n" } ]
PHP
MIT License
bolt/core
Several fixes for handling Relations
95,144
11.05.2021 17:05:42
-7,200
0acca3e3ad1204d99627fe15a244fc923e4b1b02
Fix relationships showing in backend, allow bidirectional deleting
[ { "change_type": "MODIFY", "old_path": "src/Controller/Backend/ContentEditController.php", "new_path": "src/Controller/Backend/ContentEditController.php", "diff": "@@ -584,7 +584,7 @@ class ContentEditController extends TwigAwareController implements BackendZoneIn\nprivate function updateRelation(Content $content, $newRelations): array\n{\n$newRelations = (new Collection(Json::findArray($newRelations)))->filter();\n- $currentRelations = $this->relationRepository->findRelations($content, null, true, null, false);\n+ $currentRelations = $this->relationRepository->findRelations($content, null, null, false);\n$relationsResult = [];\n// Remove old ones\n" }, { "change_type": "MODIFY", "old_path": "src/Repository/RelationRepository.php", "new_path": "src/Repository/RelationRepository.php", "diff": "@@ -24,46 +24,32 @@ class RelationRepository extends ServiceEntityRepository\nparent::__construct($registry, Relation::class);\n}\n- public function findRelations(Content $from, ?string $name, bool $biDirectional = false, ?int $limit = null, bool $publishedOnly = true): array\n+ public function findRelations(Content $from, ?string $name, ?int $limit = null, bool $publishedOnly = true): array\n{\n// Only get existing Relations from content that was persisted before\nif ($from->getId() === null) {\nreturn [];\n}\n- $result = $this->buildRelationQuery($from, $name, false, $publishedOnly)\n+ $result = $this->buildRelationQuery($from, $name, $publishedOnly)\n->setMaxResults($limit)\n->getQuery()\n->getResult();\n- if (empty($result) === true && $biDirectional === true) {\n- $result = $this->buildRelationQuery($from, $name, true, $publishedOnly)\n- ->setMaxResults($limit)\n- ->getQuery()\n- ->getResult();\n- }\n-\nreturn $result;\n}\n- public function findFirstRelation(Content $from, ?string $name, bool $biDirectional = false, bool $publishedOnly = true): ?Relation\n+ public function findFirstRelation(Content $from, ?string $name, bool $publishedOnly = true): ?Relation\n{\n- $result = $this->buildRelationQuery($from, $name, false, $publishedOnly)\n+ $result = $this->buildRelationQuery($from, $name, $publishedOnly)\n->setMaxResults(1)\n->getQuery()\n->getOneOrNullResult();\n- if ($result === null && $biDirectional === true) {\n- $result = $this->buildRelationQuery($from, $name, true, $publishedOnly)\n- ->setMaxResults(1)\n- ->getQuery()\n- ->getOneOrNullResult();\n- }\n-\nreturn $result;\n}\n- private function buildRelationQuery(Content $from, ?string $name, bool $reversed = false, bool $publishedOnly = true): QueryBuilder\n+ private function buildRelationQuery(Content $from, ?string $name, bool $publishedOnly = true): QueryBuilder\n{\n$qb = $this->createQueryBuilder('r')\n->select('r, cfrom, cto')\n@@ -71,21 +57,16 @@ class RelationRepository extends ServiceEntityRepository\n->join('r.toContent', 'cto')\n->orderBy('r.position', 'DESC');\n- if ($reversed === false) {\n- $qb->andWhere('r.fromContent = :from');\n- $cto = 'cto';\n- } else {\n- $qb->andWhere('r.toContent = :from');\n- $cto = 'cfrom';\n- }\n+ $qb->andWhere('r.fromContent = :from OR r.toContent = :from');\nif ($publishedOnly === true) {\n- $qb->andWhere($cto . '.status = :status')\n+ $qb->andWhere('cto.status = :status')\n+ ->andWhere('cfrom.status = :status')\n->setParameter('status', Statuses::PUBLISHED, \\PDO::PARAM_STR);\n}\nif ($name !== null) {\n- $qb->andWhere($cto . '.contentType = :name')\n+ $qb->andWhere('cto.contentType = :name OR cfrom.contentType = :name')\n->setParameter('name', $name, \\PDO::PARAM_STR);\n}\n" }, { "change_type": "MODIFY", "old_path": "src/Twig/RelatedExtension.php", "new_path": "src/Twig/RelatedExtension.php", "diff": "@@ -80,7 +80,7 @@ class RelatedExtension extends AbstractExtension\nreturn [];\n}\n- $relations = $this->relationRepository->findRelations($content, null, $bidirectional, $limit, $publishedOnly);\n+ $relations = $this->relationRepository->findRelations($content, null, $limit, $publishedOnly);\nreturn (new Collection($relations))\n->reduce(function (array $result, Relation $relation) use ($content): array {\n@@ -105,7 +105,7 @@ class RelatedExtension extends AbstractExtension\nreturn [];\n}\n- $relations = $this->relationRepository->findRelations($content, $name, $bidirectional, $limit, $publishedOnly);\n+ $relations = $this->relationRepository->findRelations($content, $name, $limit, $publishedOnly);\nreturn (new Collection($relations))\n->map(function (Relation $relation) use ($content) {\n@@ -115,13 +115,13 @@ class RelatedExtension extends AbstractExtension\n->toArray();\n}\n- public function getFirstRelatedContent($content, ?string $name = null, bool $bidirectional = true, bool $publishedOnly = true): ?Content\n+ public function getFirstRelatedContent($content, ?string $name = null, bool $publishedOnly = true): ?Content\n{\nif (! $this->checkforContent($content, 'related_first')) {\nreturn null;\n}\n- $relation = $this->relationRepository->findFirstRelation($content, $name, $bidirectional, $publishedOnly);\n+ $relation = $this->relationRepository->findFirstRelation($content, $name, $publishedOnly);\nif ($relation === null) {\nreturn null;\n@@ -202,29 +202,6 @@ class RelatedExtension extends AbstractExtension\nreturn new Collection($values);\n}\n- /**\n- * Gets relations from this content via the content variable, and not via a doctrine query\n- */\n- public function getRelatedValuesFromContent(Content $source, string $contentType): Collection\n- {\n- if (! $this->checkforContent($source, 'related_values')) {\n- return new Collection([]);\n- }\n-\n- if ($source->getId() === null) {\n- return new Collection([]);\n- }\n-\n- return new Collection($source->getRelationsFromThisContent()\n- ->filter(function (Relation $relation) use ($contentType) {\n- return $relation->getToContent()->getContentType() === $contentType;\n- })->map(function (Relation $relation) {\n- $toContent = $relation->getToContent();\n-\n- return $toContent->getId();\n- })->getValues());\n- }\n-\nprivate function checkforContent($content, string $keyword): bool\n{\nif (! $content instanceof Content) {\n" }, { "change_type": "MODIFY", "old_path": "templates/content/_relationships.html.twig", "new_path": "templates/content/_relationships.html.twig", "diff": "{% for contentType, relation in record.definition.relations %}\n{% set options = related_options(contentType, relation.order|default(), relation.format|default(), relation.required) %}\n-{# {% set value = record|related_values(contentType) %}#}\n- {% set value = record|related_values_from_content(contentType) %}\n+ {% set value = record|related_values(contentType) %}\n<div class=\"form-group is-normal\">\n" }, { "change_type": "MODIFY", "old_path": "tests/spec/Bolt/Twig/RelatedExtensionSpec.php", "new_path": "tests/spec/Bolt/Twig/RelatedExtensionSpec.php", "diff": "@@ -24,7 +24,7 @@ class RelatedExtensionSpec extends ObjectBehavior\npublic function it_gets_all_related_content(Content $content, RelationRepository $relationRepository, Relation $relation, Content $related): void\n{\n- $relationRepository->findRelations($content, null, true, null, true)\n+ $relationRepository->findRelations($content, null, null, true)\n->shouldBeCalledOnce()\n->willReturn([$relation, $relation]);\n@@ -44,7 +44,7 @@ class RelatedExtensionSpec extends ObjectBehavior\npublic function it_gets_related_content(Content $content, RelationRepository $relationRepository, Relation $relation, Content $related): void\n{\n- $relationRepository->findRelations($content, self::TEST_CT_SLUG, true, null, true)\n+ $relationRepository->findRelations($content, self::TEST_CT_SLUG, null, true)\n->shouldBeCalledOnce()\n->willReturn([$relation]);\n@@ -60,7 +60,7 @@ class RelatedExtensionSpec extends ObjectBehavior\npublic function it_gets_related_content_unidirectional_with_limit(Content $content, RelationRepository $relationRepository, Relation $relation, Content $related): void\n{\n- $relationRepository->findRelations($content, self::TEST_CT_SLUG, false, 3, true)\n+ $relationRepository->findRelations($content, self::TEST_CT_SLUG, 3, true)\n->shouldBeCalledOnce()\n->willReturn([$relation, $relation, $relation]);\n@@ -77,7 +77,7 @@ class RelatedExtensionSpec extends ObjectBehavior\npublic function it_gets_first_related_content(Content $content, RelationRepository $relationRepository, Relation $relation, Content $related): void\n{\n- $relationRepository->findFirstRelation($content, self::TEST_CT_SLUG, true, true)\n+ $relationRepository->findFirstRelation($content, self::TEST_CT_SLUG, true)\n->shouldBeCalledOnce()\n->willReturn($relation);\n@@ -92,7 +92,7 @@ class RelatedExtensionSpec extends ObjectBehavior\npublic function it_couldnt_find_related_content(Content $content, RelationRepository $relationRepository): void\n{\n- $relationRepository->findRelations($content, null, true, null, true)->willReturn([]);\n+ $relationRepository->findRelations($content, null, null, true)->willReturn([]);\n$result = $this->getRelatedContent($content);\n$result->shouldBeArray();\n$result->shouldHaveCount(0);\n@@ -100,7 +100,7 @@ class RelatedExtensionSpec extends ObjectBehavior\npublic function it_couldnt_find_first_related_content(Content $content, RelationRepository $relationRepository): void\n{\n- $relationRepository->findFirstRelation($content, null, true, true)->willReturn(null);\n+ $relationRepository->findFirstRelation($content, null, true)->willReturn(null);\n$result = $this->getFirstRelatedContent($content);\n$result->shouldBeNull();\n}\n" } ]
PHP
MIT License
bolt/core
Fix relationships showing in backend, allow bidirectional deleting
95,115
11.05.2021 17:39:55
-7,200
d99effe5e77d63fecaf045a6ebf68bc8acdd2051
fix issue with migration that wouldn't run on MariaDB 10 by specifying a primary key
[ { "change_type": "MODIFY", "old_path": "migrations/Version20201210105836.php", "new_path": "migrations/Version20201210105836.php", "diff": "@@ -45,6 +45,7 @@ final class Version20201210105836 extends AbstractMigration\nif (!$schema->hasTable($this->tablePrefix . '_password_request')) {\n$resetPaswordTable = $schema->createTable($this->tablePrefix . '_password_request');\n$resetPaswordTable->addColumn('id', 'integer', ['autoincrement' => true]);\n+ $resetPaswordTable->setPrimaryKey([\"id\"]); // MySQL / MariaDB needs autoincrement column to be the primary key\n$resetPaswordTable->addColumn('user_id', 'integer', ['notnull' => true, '', 'default' => 0]);\n$resetPaswordTable->addForeignKeyConstraint($this->tablePrefix . '_user', ['user_id'], ['id'], ['onUpdate' => 'CASCADE']);\n}\n" } ]
PHP
MIT License
bolt/core
fix issue with migration that wouldn't run on MariaDB 10 by specifying a primary key
95,168
19.05.2021 11:02:46
-7,200
0962ed0c2368f2304a2252136296e8e1e4409181
Make "Edit permissions" button link to permissions.yaml edit file page
[ { "change_type": "MODIFY", "old_path": "templates/users/listing.html.twig", "new_path": "templates/users/listing.html.twig", "diff": "{% endif %}\n{% if is_granted('user:add') %}\n{{ macro.buttonlink('action.edit_permissions', path('bolt_file_edit', {'location': 'config',\n- 'file': '/bolt/config.yaml'}), 'user-cog', 'tertiary') }}\n+ 'file': '/bolt/permissions.yaml'}), 'user-cog', 'tertiary') }}\n{% endif %}\n</p>\n" } ]
PHP
MIT License
bolt/core
Make "Edit permissions" button link to permissions.yaml edit file page
95,167
19.05.2021 17:10:14
-7,200
66956e1a95f18c3d515eb1693c69aaa63492de8f
Fix some accessibility issues Add correct ID's to fields Change color of code to be contrast compliant Remove space from aria-selected And some more minor changes
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/File.vue", "new_path": "assets/js/app/editor/Components/File.vue", "diff": "name=\"file-upload-dropdown\"\ntype=\"button\"\n:disabled=\"readonly\"\n- ></button>\n+ ><span class=\"sr-only\">{{ labels.button_upload_options }}</span></button>\n<div class=\"dropdown-menu\">\n<button\n" }, { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Html.vue", "new_path": "assets/js/app/editor/Components/Html.vue", "diff": "<template>\n<div>\n- <trumbowyg :id=\"name\" v-model=\"val\" :name=\"name\" :config=\"config\"></trumbowyg>\n+ <trumbowyg :id=\"id\" v-model=\"val\" :name=\"name\" :config=\"config\"></trumbowyg>\n</div>\n</template>\n@@ -17,6 +17,7 @@ export default {\nvalue: String,\nlabel: String,\nname: String,\n+ id: String\n},\ndata: () => {\nreturn {\n" }, { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Image.vue", "new_path": "assets/js/app/editor/Components/Image.vue", "diff": "class=\"editor__image--preview-image\"\n:href=\"previewImage\"\n:style=\"`background-image: url('${thumbnailImage}')`\"\n- >\n+ ><span class=\"sr-only\">{{ labels.image_preview }}</span>\n</a>\n</div>\n</div>\nname=\"image-upload-dropdown\"\ntype=\"button\"\n:disabled=\"readonly\"\n- ></button>\n+ ><span class=\"sr-only\">{{ labels.button_upload_options }}</span></button>\n<div class=\"dropdown-menu\">\n<button\n</div>\n</div>\n<input\n+ :id=\"fieldId\"\nref=\"selectFile\"\nclass=\"editor__image--upload\"\n:name=\"fieldName\"\n@@ -168,6 +169,7 @@ export default {\nprops: {\nfilename: String,\nname: String,\n+ id: String,\nrequired: Boolean,\nreadonly: Boolean,\nthumbnail: String,\n@@ -200,6 +202,9 @@ export default {\n};\n},\ncomputed: {\n+ fieldId() {\n+ return this.id;\n+ },\nfieldName() {\nreturn this.name + '[]';\n},\n" }, { "change_type": "MODIFY", "old_path": "assets/scss/init/_base.scss", "new_path": "assets/scss/init/_base.scss", "diff": "@@ -38,7 +38,7 @@ code {\n&,\n& a {\n- color: $code;\n+ color: $primary;\n}\n}\n" }, { "change_type": "MODIFY", "old_path": "assets/scss/init/_variables.scss", "new_path": "assets/scss/init/_variables.scss", "diff": "@@ -82,7 +82,6 @@ $danger: #db2427;\n$light: #e0e0e0;\n$dark: #333;\n$disabled: #c8c8c8;\n-$code: #4c6e91;\n$spacer: 1rem;\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/fields/file.html.twig", "new_path": "templates/_partials/fields/file.html.twig", "diff": "{% set filelist = path('bolt_async_filelisting', {'location': location|default('files') }) %}\n{% set labels = {\n'button_upload': 'image.button_upload'|trans,\n+ 'button_upload_options': 'image.button_upload_options'|trans,\n'button_from_library': 'image.button_from_library'|trans,\n'button_remove': 'image.button_remove'|trans,\n'placeholder_filename': 'image.placeholder_filename'|trans,\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/fields/filelist.html.twig", "new_path": "templates/_partials/fields/filelist.html.twig", "diff": "{% set filelist = path('bolt_async_filelisting', {'location': location|default('files') }) %}\n{% set labels = {\n'button_upload': 'image.button_upload'|trans,\n+ 'button_upload_options': 'image.button_upload_options'|trans,\n'button_from_library': 'image.button_from_library'|trans,\n'placeholder_filename': 'image.placeholder_filename'|trans,\n'placeholder_alt_text': 'image.placeholder_alt_text'|trans,\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/fields/html.html.twig", "new_path": "templates/_partials/fields/html.html.twig", "diff": "<editor-html\n:value=\"{{ value|json_encode }}\"\n:name='{{ name|json_encode }}'\n+ :id='{{ id|json_encode}}'\n></editor-html>\n{% endblock %}\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/fields/image.html.twig", "new_path": "templates/_partials/fields/image.html.twig", "diff": "{% set filelist = path('bolt_async_filelisting', {'location': location|default('files'), 'type': 'images' }) %}\n{% set labels = {\n'button_upload': 'image.button_upload'|trans,\n+ 'button_upload_options': 'image.button_upload_options'|trans,\n'button_from_library': 'image.button_from_library'|trans,\n'button_remove': 'image.button_remove'|trans,\n'placeholder_filename': 'image.placeholder_filename'|trans,\n'placeholder_alt_text': 'image.placeholder_alt_text'|trans,\n'button_edit_attributes': 'image.button_edit_attributes'|trans,\n'button_from_url': 'image.button_from_url'|trans,\n+ 'image_preview': 'image.image_preview'|trans,\n}|json_encode %}\n<editor-image\n+ :id='{{ id|json_encode }}'\n:name='{{ name|json_encode }}'\n:filename='{{ field.get('filename')|json_encode }}'\n:media='{{ field.get('media')|json_encode }}'\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/fields/imagelist.html.twig", "new_path": "templates/_partials/fields/imagelist.html.twig", "diff": "{% set filelist = path('bolt_async_filelisting', {'location': location|default('files'), 'type': 'images' }) %}\n{% set labels = {\n'button_upload': 'image.button_upload'|trans,\n+ 'button_upload_options': 'image.button_upload_options'|trans,\n'button_from_library': 'image.button_from_library'|trans,\n'placeholder_filename': 'image.placeholder_filename'|trans,\n'placeholder_alt_text': 'image.placeholder_alt_text'|trans,\n" }, { "change_type": "MODIFY", "old_path": "translations/messages.en.xlf", "new_path": "translations/messages.en.xlf", "diff": "<target>Edit Permissions</target>\n</segment>\n</unit>\n+ <unit id=\"a_COwtV\" name=\"image.button_upload_options\">\n+ <segment>\n+ <source>image.button_upload_options</source>\n+ <target>Upload options</target>\n+ </segment>\n+ </unit>\n+ <unit id=\"OYUVA5.\" name=\"general.label.search\">\n+ <segment>\n+ <source>general.label.search</source>\n+ <target>Search</target>\n+ </segment>\n+ </unit>\n+ <unit id=\"hKmDb7q\" name=\"Share secure preview link\">\n+ <segment>\n+ <source>Share secure preview link</source>\n+ <target>Share secure preview link</target>\n+ </segment>\n+ </unit>\n+ <unit id=\"wG04eAa\" name=\"image.image_preview\">\n+ <segment>\n+ <source>image.image_preview</source>\n+ <target>Preview the image</target>\n+ </segment>\n+ </unit>\n</file>\n</xliff>\n" } ]
PHP
MIT License
bolt/core
Fix some accessibility issues - Add correct ID's to fields - Change color of code to be contrast compliant - Remove space from aria-selected - And some more minor changes
95,144
30.05.2021 12:21:57
-7,200
cfe65104af011b74a5cc07424ce5b65da24fc7c2
Keep in-memory copy of `currentLocale`
[ { "change_type": "MODIFY", "old_path": "src/Utils/LocaleHelper.php", "new_path": "src/Utils/LocaleHelper.php", "diff": "@@ -36,6 +36,9 @@ class LocaleHelper\n/** @var string */\nprivate $defaultLocale;\n+ /** @var Collection */\n+ private $currentLocale;\n+\npublic function __construct(string $locales, ContentRepository $contentRepository, UrlGeneratorInterface $urlGenerator, Config $config, string $defaultLocale)\n{\n$this->localeCodes = new Collection(explode('|', $locales));\n@@ -51,7 +54,13 @@ class LocaleHelper\npublic function getCurrentLocale(Environment $twig): ?Collection\n{\n- return $this->getLocales($twig)->firstWhere('current', true);\n+ // Getting the currentLocale is surprisingly inefficient, so we do it once per Request\n+ // See https://github.com/bolt/core/pull/2597\n+ if (! isset($this->currentLocale)) {\n+ $this->currentLocale = $this->getLocales($twig)->firstWhere('current', true);\n+ }\n+\n+ return $this->currentLocale;\n}\npublic function getLocales(Environment $twig, ?Collection $localeCodes = null, bool $all = false): Collection\n" } ]
PHP
MIT License
bolt/core
Keep in-memory copy of `currentLocale`
95,144
30.05.2021 14:06:01
-7,200
a78f6c68ca0a639cb6f6b0750c9e2bfc94d348c4
Fix CSS for 'meta' block on overview pages
[ { "change_type": "MODIFY", "old_path": "assets/scss/modules/listing/row/row.scss", "new_path": "assets/scss/modules/listing/row/row.scss", "diff": "@@ -186,11 +186,11 @@ $checkbox-row-width: 32px;\n}\n@include media-breakpoint-up(md) {\n- flex: 0 0 155px;\n- max-width: 155px;\n+ flex: 0 0 175px;\n+ max-width: 175px;\norder: 3;\npadding: $spacer*0.5 0 $spacer*0.3 $spacer*0.5;\n- margin-right: -2rem;\n+ margin: 0 -2rem 0 0;\n}\n}\n@@ -230,7 +230,6 @@ $checkbox-row-width: 32px;\n}\nli {\n- padding-right: 1rem;\nmargin-bottom: $spacer / 4;\ncolor: var(--shade);\ntext-transform: capitalize;\n" } ]
PHP
MIT License
bolt/core
Fix CSS for 'meta' block on overview pages
95,144
01.06.2021 17:36:34
-7,200
25bae9b33b3af7fb1068ce8a8722c8d36411d7b1
Looks like we've had a minor PHPStan bump! Typehinting some arrays!
[ { "change_type": "MODIFY", "old_path": "src/Controller/Backend/UserEditController.php", "new_path": "src/Controller/Backend/UserEditController.php", "diff": "@@ -72,6 +72,8 @@ class UserEditController extends TwigAwareController implements BackendZoneInter\npublic function add(Request $request): Response\n{\n$user = UserRepository::factory();\n+\n+ /** @var array $submitted_data */\n$submitted_data = $request->request->get('user');\n$event = new UserEvent($user);\n" }, { "change_type": "MODIFY", "old_path": "src/Security/LoginFormAuthenticator.php", "new_path": "src/Security/LoginFormAuthenticator.php", "diff": "@@ -76,7 +76,9 @@ class LoginFormAuthenticator extends AbstractFormLoginAuthenticator\npublic function getCredentials(Request $request): array\n{\n+ /** @var array $login_form */\n$login_form = $request->request->get('login');\n+\n$credentials = [\n'username' => $login_form['username'],\n'password' => $login_form['password'],\n" } ]
PHP
MIT License
bolt/core
Looks like we've had a minor PHPStan bump! Typehinting some arrays!
95,144
02.06.2021 12:16:09
-7,200
3fbd5fb167b57ff2fa9b4843762bf186a33a8bc1
Cleanup of Symplify dependencies
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"symfony/webpack-encore-bundle\": \"^1.7\",\n\"symfony/yaml\": \"^5.1\",\n\"symfonycasts/reset-password-bundle\": \"^1.1\",\n- \"symplify/package-builder\": \"^8.0\",\n\"tightenco/collect\": \"^v8.0\",\n\"twig/twig\": \"^3.0\",\n\"ua-parser/uap-php\": \"^3.9\",\n" }, { "change_type": "MODIFY", "old_path": "config/bundles.php", "new_path": "config/bundles.php", "diff": "@@ -22,7 +22,6 @@ return [\nSymfony\\Bundle\\WebServerBundle\\WebServerBundle::class => ['all' => true],\nSymfony\\WebpackEncoreBundle\\WebpackEncoreBundle::class => ['all' => true],\nSymfonyCasts\\Bundle\\ResetPassword\\SymfonyCastsResetPasswordBundle::class => ['all' => 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];\n" } ]
PHP
MIT License
bolt/core
Cleanup of Symplify dependencies
95,144
03.06.2021 14:40:33
-7,200
6d5ef01e1c2799256ca2d2004e78f760be02205e
Refactoring out `SymfonyStyleFactory`
[ { "change_type": "MODIFY", "old_path": "bin/composer-script/Script.php", "new_path": "bin/composer-script/Script.php", "diff": "@@ -5,8 +5,12 @@ declare(strict_types=1);\nnamespace Bolt\\ComposerScripts;\nuse Composer\\Script\\Event;\n+use Symfony\\Component\\Console\\Application;\n+use Symfony\\Component\\Console\\Input\\ArgvInput;\n+use Symfony\\Component\\Console\\Output\\ConsoleOutput;\n+use Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n-use Symplify\\PackageBuilder\\Console\\Style\\SymfonyStyleFactory;\n+use Symplify\\PackageBuilder\\Reflection\\PrivatesCaller;\nclass Script\n{\n@@ -15,8 +19,7 @@ class Script\nprotected static function init(string $message = ''): void\n{\n- $consoleFactory = new SymfonyStyleFactory();\n- self::$console = $consoleFactory->create();\n+ self::$console = self::createSymfonyStyle();\nself::$console->note($message);\n}\n@@ -31,11 +34,36 @@ class Script\n/**\n* Execute a command in the CLI, as a separate process.\n*/\n- protected static function run(string $command): int\n+ public static function run(string $command): int\n{\n// Execute the command and show the output.\npassthru($command, $result);\nreturn $result;\n}\n+\n+ /**\n+ * Create SymfonyStyle object. Taken from Symplify (which we might not\n+ * have at our disposal inside a 'project' installation)\n+ */\n+ public static function createSymfonyStyle(): SymfonyStyle\n+ {\n+ // to prevent missing argv indexes\n+ if (! isset($_SERVER['argv'])) {\n+ $_SERVER['argv'] = [];\n+ }\n+\n+ $argvInput = new ArgvInput();\n+ $consoleOutput = new ConsoleOutput();\n+\n+ // to configure all -v, -vv, -vvv options without memory-lock to Application run() arguments\n+ (new PrivatesCaller())->callPrivateMethod(new Application(), 'configureIO', $argvInput, $consoleOutput);\n+\n+ // --debug is called\n+ if ($argvInput->hasParameterOption('--debug')) {\n+ $consoleOutput->setVerbosity(OutputInterface::VERBOSITY_DEBUG);\n+ }\n+\n+ return new SymfonyStyle($argvInput, $consoleOutput);\n+ }\n}\n" }, { "change_type": "MODIFY", "old_path": "bin/composer-script/post-install-cmd.php", "new_path": "bin/composer-script/post-install-cmd.php", "diff": "@@ -6,13 +6,12 @@ declare(strict_types=1);\n// @see https://github.com/bolt/core/pull/1918#issuecomment-701460769\nuse OndraM\\CiDetector\\CiDetector;\n-use Symplify\\PackageBuilder\\Console\\Style\\SymfonyStyleFactory;\nrequire __DIR__ . '/../../vendor/autoload.php';\n+require __DIR__ . '/Script.php';\nrequire __DIR__ . '/run.php';\n-$symfonyStyleFactory = new SymfonyStyleFactory();\n-$symfonyStyle = $symfonyStyleFactory->create();\n+$symfonyStyle = Bolt\\ComposerScripts\\Script::createSymfonyStyle();\n$ciDetector = new CiDetector();\nif ($ciDetector->isCiDetected()) {\n" }, { "change_type": "MODIFY", "old_path": "bin/composer-script/post-update-cmd.php", "new_path": "bin/composer-script/post-update-cmd.php", "diff": "@@ -6,13 +6,12 @@ declare(strict_types=1);\n// @see https://github.com/bolt/core/pull/1918#issuecomment-701460769\nuse OndraM\\CiDetector\\CiDetector;\n-use Symplify\\PackageBuilder\\Console\\Style\\SymfonyStyleFactory;\nrequire __DIR__ . '/../../vendor/autoload.php';\n+require __DIR__ . '/Script.php';\nrequire __DIR__ . '/run.php';\n-$symfonyStyleFactory = new SymfonyStyleFactory();\n-$symfonyStyle = $symfonyStyleFactory->create();\n+$symfonyStyle = Bolt\\ComposerScripts\\Script::createSymfonyStyle();\n$ciDetector = new CiDetector();\nif ($ciDetector->isCiDetected()) {\n" }, { "change_type": "DELETE", "old_path": "bin/composer-script/project-post-install-cmd.php", "new_path": null, "diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-/**\n- * This file runs after `composer install` is run in bolt/project, in Bolt 4.2 and later.\n- */\n-use Symplify\\PackageBuilder\\Console\\Style\\SymfonyStyleFactory;\n-\n-require __DIR__ . '/../../../../../vendor/autoload.php';\n-require __DIR__ . '/run.php';\n-\n-$symfonyStyleFactory = new SymfonyStyleFactory();\n-$symfonyStyle = $symfonyStyleFactory->create();\n-\n-// Run the auto scripts.\n-run('php bin/console bolt:copy-assets --ansi', $symfonyStyle);\n-run('php bin/console cache:clear --no-warmup --ansi', $symfonyStyle);\n-run('php bin/console assets:install --ansi', $symfonyStyle);\n-\n-// Check for database migrations\n-$migrate = 'Database is out-of-date. To update the database, run `php bin/console doctrine:migrations:migrate`.';\n-$migrate .= ' You are strongly advised to backup your database before migrating.';\n-run('php bin/console doctrine:migrations:up-to-date', $symfonyStyle, false, $migrate);\n-\n-// Configure the extensions\n-run('php bin/console extensions:configure --ansi', $symfonyStyle);\n" }, { "change_type": "DELETE", "old_path": "bin/composer-script/project-post-update-cmd.php", "new_path": null, "diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-/**\n- * This file runs after `composer update` is run in bolt/project, in Bolt 4.2 and later.\n- */\n-use Symplify\\PackageBuilder\\Console\\Style\\SymfonyStyleFactory;\n-\n-require __DIR__ . '/../../../../../vendor/autoload.php';\n-require __DIR__ . '/run.php';\n-\n-$symfonyStyleFactory = new SymfonyStyleFactory();\n-$symfonyStyle = $symfonyStyleFactory->create();\n-\n-$symfonyStyle->note('Running composer \"post-update-cmd\" scripts');\n-\n-// Run yaml migrations\n-run('php vendor/bobdenotter/yaml-migrations/bin/yaml-migrate process -c vendor/bolt/core/yaml-migrations/config.yaml -v', $symfonyStyle);\n-\n-// Install and copy the Bolt assets.\n-run('php bin/console assets:install --symlink --relative public', $symfonyStyle);\n-run('php bin/console bolt:copy-assets', $symfonyStyle);\n-\n-// (Re-)configure Bolt extensions\n-run('php bin/console extensions:configure --with-config --ansi', $symfonyStyle);\n-\n-// Check for database migrations\n-$migrate = 'Database is out-of-date. To update the database, run `php bin/console doctrine:migrations:migrate`.';\n-$migrate .= ' You are strongly advised to backup your database before migrating.';\n-run('php bin/console doctrine:migrations:up-to-date', $symfonyStyle, false, $migrate);\n-\n-// Clear cache, show Bolt info\n-run('php bin/console cache:clear --no-warmup', $symfonyStyle);\n-run('php bin/console bolt:info --ansi', $symfonyStyle, true);\n" } ]
PHP
MIT License
bolt/core
Refactoring out `SymfonyStyleFactory`
95,144
03.06.2021 14:52:40
-7,200
494a973d9add0792129e92831f33cd03d954cfc7
Get rid of run.php
[ { "change_type": "MODIFY", "old_path": "bin/composer-script/post-install-cmd.php", "new_path": "bin/composer-script/post-install-cmd.php", "diff": "@@ -6,12 +6,12 @@ declare(strict_types=1);\n// @see https://github.com/bolt/core/pull/1918#issuecomment-701460769\nuse OndraM\\CiDetector\\CiDetector;\n+use Bolt\\ComposerScripts\\Script;\nrequire __DIR__ . '/../../vendor/autoload.php';\nrequire __DIR__ . '/Script.php';\n-require __DIR__ . '/run.php';\n-$symfonyStyle = Bolt\\ComposerScripts\\Script::createSymfonyStyle();\n+$symfonyStyle = Script::createSymfonyStyle();\n$ciDetector = new CiDetector();\nif ($ciDetector->isCiDetected()) {\n@@ -22,10 +22,10 @@ if ($ciDetector->isCiDetected()) {\n$symfonyStyle->note('Running composer \"post-install-cmd\" scripts');\n-run('php bin/console extensions:configure --with-config --ansi', $symfonyStyle);\n+Script::run('php bin/console extensions:configure --with-config --ansi');\n// @auto-scripts\n-run('php bin/console cache:clear --no-warmup', $symfonyStyle);\n-run('php bin/console assets:install --symlink --relative public', $symfonyStyle);\n+Script::run('php bin/console cache:clear --no-warmup');\n+Script::run('php bin/console assets:install --symlink --relative public');\n-run('php bin/console bolt:info --ansi', $symfonyStyle, true);\n+Script::run('php bin/console bolt:info --ansi');\n" }, { "change_type": "MODIFY", "old_path": "bin/composer-script/post-update-cmd.php", "new_path": "bin/composer-script/post-update-cmd.php", "diff": "@@ -6,12 +6,12 @@ declare(strict_types=1);\n// @see https://github.com/bolt/core/pull/1918#issuecomment-701460769\nuse OndraM\\CiDetector\\CiDetector;\n+use Bolt\\ComposerScripts\\Script;\nrequire __DIR__ . '/../../vendor/autoload.php';\nrequire __DIR__ . '/Script.php';\n-require __DIR__ . '/run.php';\n-$symfonyStyle = Bolt\\ComposerScripts\\Script::createSymfonyStyle();\n+$symfonyStyle = Script::createSymfonyStyle();\n$ciDetector = new CiDetector();\nif ($ciDetector->isCiDetected()) {\n@@ -22,14 +22,19 @@ if ($ciDetector->isCiDetected()) {\n$symfonyStyle->note('Running composer \"post-update-cmd\" scripts');\n-run('php bin/console extensions:configure --with-config --ansi', $symfonyStyle);\n+Script::run('php bin/console extensions:configure --with-config --ansi');\n// @auto-scripts\n-run('php bin/console cache:clear --no-warmup', $symfonyStyle);\n-run('php bin/console assets:install --symlink --relative public', $symfonyStyle);\n+Script::run('php bin/console cache:clear --no-warmup');\n+Script::run('php bin/console assets:install --symlink --relative public');\n+$res = Script::run('php bin/console doctrine:migrations:up-to-date');\n+\n+if (! $res) {\n$migrate = 'Database is out-of-date. To update the database, run `php bin/console doctrine:migrations:migrate`.';\n$migrate .= ' You are strongly advised to backup your database before migrating.';\n-run('php bin/console doctrine:migrations:up-to-date', $symfonyStyle, false, $migrate);\n-run('php bin/console bolt:info --ansi', $symfonyStyle, true);\n+ $symfonyStyle->warning($migrate);\n+}\n+\n+Script::run('php bin/console bolt:info --ansi');\n" }, { "change_type": "DELETE", "old_path": "bin/composer-script/run.php", "new_path": null, "diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-use Symfony\\Component\\Console\\Style\\SymfonyStyle;\n-\n-function run(string $command, SymfonyStyle $symfonyStyle, bool $withOutput = false, string $message = ''): void\n-{\n- exec($command, $output, $return);\n- if ($return) {\n- // Some error occurred.\n- if (empty($message)) {\n- $message = sprintf(\"Command '%s' failed. %s\", $command, implode(\"\\n\", $output));\n- }\n- $symfonyStyle->error($message);\n- } else {\n- if ($withOutput) {\n- $symfonyStyle->text($output);\n- }\n- $message = sprintf(\"Command '%s' executed successfully.\", $command);\n- $symfonyStyle->success($message);\n- }\n-}\n" } ]
PHP
MIT License
bolt/core
Get rid of run.php
95,144
04.06.2021 12:18:02
-7,200
623a86fe0d08612636091cfd9560ff025acad94a
Pin Chromedriver to version 90.x
[ { "change_type": "MODIFY", "old_path": ".github/workflows/behavioural_tests.yaml", "new_path": ".github/workflows/behavioural_tests.yaml", "diff": "@@ -68,6 +68,9 @@ jobs:\nextensions: json, mbstring, pdo, curl, pdo_sqlite\ncoverage: none\n- uses: nanasess/setup-chromedriver@master\n+ with:\n+ # Pin Chromedriver to 90.something, because 91 _appends_ text when using `.setValue()` instead of replacing it.\n+ chromedriver-version: ['90.0.4430.24']\n- uses: actions/setup-node@v1\nwith:\nnode-version: ${{ matrix.node-version }}\n@@ -106,5 +109,5 @@ jobs:\nrun: ./run_behat_tests.sh && make behat-js-quiet\n- name: Upload Behat logs\n- run: ./vendor/bin/upload-textfiles \"var/log/behat-reports/*.log\"\n+ run: ./bin/upload-textfiles \"var/log/behat-reports/*.html\"\nif: always()\n" } ]
PHP
MIT License
bolt/core
Pin Chromedriver to version 90.x
95,144
04.06.2021 13:49:51
-7,200
7d2a4c65a18d18fd3f4fc4b390e065effb84482b
Adding Jasny Twig Extensions for Bolt 5.
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"embed/embed\": \"^3.4\",\n\"erusev/parsedown\": \"^1.7\",\n\"fakerphp/faker\": \"^1.10\",\n+ \"jasny/twig-extensions\": \"^1.3\",\n\"knplabs/doctrine-behaviors\": \"^2.0.3\",\n\"knplabs/knp-menu-bundle\": \"^3.0\",\n\"league/glide-symfony\": \"^1.0\",\n" }, { "change_type": "MODIFY", "old_path": "config/services.yaml", "new_path": "config/services.yaml", "diff": "@@ -38,6 +38,11 @@ services:\nresource: '../src/*'\nexclude: '../src/{Entity,Exception,Kernel.php}'\n+ Bolt\\Api\\Extensions\\ContentExtension:\n+ tags:\n+ - { name: api_platform.doctrine.orm.query_extension.collection }\n+ - { name: api_platform.doctrine.orm.query_extension.item }\n+\n# controllers are imported separately to make sure services can be injected\n# as action arguments even if you don't extend any base controller class\nBolt\\Controller\\:\n@@ -104,10 +109,8 @@ services:\nBolt\\Twig\\DumpExtension:\narguments: [\"%kernel.environment%\"]\n- Bolt\\Api\\Extensions\\ContentExtension:\n- tags:\n- - { name: api_platform.doctrine.orm.query_extension.collection }\n- - { name: api_platform.doctrine.orm.query_extension.item }\n+ # Validation: specify Bolt\\Validator\\ContentValidator as validator\n+ Bolt\\Validator\\ContentValidatorInterface: '@Bolt\\Validator\\ContentValidator'\nDoctrine\\ORM\\Query\\Expr: ~\n@@ -116,11 +119,28 @@ services:\ntags:\n- { name: monolog.processor, method: processRecord, handler: db }\n- Twig\\Extension\\StringLoaderExtension: ~\n-\nSymfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface: '@error_handler.error_renderer.html'\nSquirrel\\TwigPhpSyntax\\PhpSyntaxExtension: ~\n- # Validation: specify Bolt\\Validator\\ContentValidator as validator\n- Bolt\\Validator\\ContentValidatorInterface: '@Bolt\\Validator\\ContentValidator'\n+ Twig\\Extension\\StringLoaderExtension: ~\n+\n+ twig.extension.date:\n+ class: Jasny\\Twig\\DateExtension\n+ tags:\n+ - { name: twig.extension }\n+\n+ twig.extension.pcre:\n+ class: Jasny\\Twig\\PcreExtension\n+ tags:\n+ - { name: twig.extension }\n+\n+ twig.extension.text:\n+ class: Jasny\\Twig\\TextExtension\n+ tags:\n+ - { name: twig.extension }\n+\n+ twig.extension.array:\n+ class: Jasny\\Twig\\ArrayExtension\n+ tags:\n+ - { name: twig.extension }\n" }, { "change_type": "MODIFY", "old_path": "symfony.lock", "new_path": "symfony.lock", "diff": "\"intervention/image\": {\n\"version\": \"2.5.1\"\n},\n+ \"jasny/twig-extensions\": {\n+ \"version\": \"v1.3.0\"\n+ },\n\"jdorn/sql-formatter\": {\n\"version\": \"v1.2.17\"\n},\n" }, { "change_type": "ADD", "old_path": null, "new_path": "yaml-migrations/m_2021-06-04-services.yaml", "diff": "+# Adding the new services for Bolt 4.2.0\n+file: services.yaml\n+since: 5.0.0\n+\n+add:\n+ services:\n+ twig.extension.date:\n+ class: Jasny\\Twig\\DateExtension\n+ tags:\n+ - { name: twig.extension }\n+\n+ twig.extension.pcre:\n+ class: Jasny\\Twig\\PcreExtension\n+ tags:\n+ - { name: twig.extension }\n+\n+ twig.extension.text:\n+ class: Jasny\\Twig\\TextExtension\n+ tags:\n+ - { name: twig.extension }\n+\n+ twig.extension.array:\n+ class: Jasny\\Twig\\ArrayExtension\n+ tags:\n+ - { name: twig.extension }\n" } ]
PHP
MIT License
bolt/core
Adding Jasny Twig Extensions for Bolt 5. https://github.com/jasny/twig-extensions
95,144
05.06.2021 14:59:08
-7,200
8d373834e177679ee7fd4d25551743c60c437cec
Add restriction for (global) Composer 2 to `composer.json`
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"ext-json\": \"*\",\n\"ext-mbstring\": \"*\",\n\"ext-pdo\": \"*\",\n+ \"composer-runtime-api\": \"^2\",\n\"api-platform/core\": \"2.5.3.*\",\n\"babdev/pagerfanta-bundle\": \"^2.5\",\n\"beberlei/doctrineextensions\": \"^1.2\",\n" } ]
PHP
MIT License
bolt/core
Add restriction for (global) Composer 2 to `composer.json`
95,144
06.06.2021 16:41:30
-7,200
05fdaf266cb2d0fe22d4ffe2f2f2c11d96b443d0
Use `localdate`, in preparation of this being the standard in 5.0
[ { "change_type": "MODIFY", "old_path": "public/theme/skeleton/partials/_recordfooter.twig", "new_path": "public/theme/skeleton/partials/_recordfooter.twig", "diff": "{% endif %}\n{{ __('general.phrase.written-by-on', {\n'%name%': record.author.displayName|default(__('Unknown')),\n- '%date%': record.publishedAt|localedatetime(\"%A %B %e, %Y\")\n+ '%date%': record.publishedAt|localdate(\"l F j, Y\")\n}) }}\n</p>\n" } ]
PHP
MIT License
bolt/core
Use `localdate`, in preparation of this being the standard in 5.0
95,144
10.06.2021 13:26:51
-7,200
15e33b433af385bf2b3cf3231ef3cc16c2747be7
Don't use Jasny's DateExtension
[ { "change_type": "MODIFY", "old_path": "config/services.yaml", "new_path": "config/services.yaml", "diff": "@@ -125,11 +125,6 @@ services:\nTwig\\Extension\\StringLoaderExtension: ~\n- twig.extension.date:\n- class: Jasny\\Twig\\DateExtension\n- tags:\n- - { name: twig.extension }\n-\ntwig.extension.pcre:\nclass: Jasny\\Twig\\PcreExtension\ntags:\n" } ]
PHP
MIT License
bolt/core
Don't use Jasny's DateExtension
95,144
10.06.2021 13:27:49
-7,200
40a816a6bd78453b5cbd006e92d4782106a1b026
Update m_2021-06-04-services.yaml
[ { "change_type": "MODIFY", "old_path": "yaml-migrations/m_2021-06-04-services.yaml", "new_path": "yaml-migrations/m_2021-06-04-services.yaml", "diff": "@@ -4,11 +4,6 @@ since: 5.0.0\nadd:\nservices:\n- twig.extension.date:\n- class: Jasny\\Twig\\DateExtension\n- tags:\n- - { name: twig.extension }\n-\ntwig.extension.pcre:\nclass: Jasny\\Twig\\PcreExtension\ntags:\n" } ]
PHP
MIT License
bolt/core
Update m_2021-06-04-services.yaml
95,144
11.06.2021 14:27:21
-7,200
744f6c3472b60fd55233dc39111e4aa2c4581d65
catch `LoaderLoadException` instead of `Throwable`
[ { "change_type": "MODIFY", "old_path": "src/Kernel.php", "new_path": "src/Kernel.php", "diff": "@@ -10,6 +10,7 @@ use Bolt\\Extension\\ExtensionCompilerPass;\nuse Bolt\\Extension\\ExtensionInterface;\nuse Bolt\\Repository\\FieldRepository;\nuse Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;\n+use Symfony\\Component\\Config\\Exception\\LoaderLoadException;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\n@@ -64,9 +65,11 @@ class Kernel extends BaseKernel\n// Load auto-generated extension services first. Any overrides after take precedence.\ntry {\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+ } catch (LoaderLoadException $e) {\n+ // Ignore LoaderLoadExceptions. This is a race-condition that will occur when extensions\n+ // get added or deleted, before Bolt has a chance to update `services_bolt.yaml`.\n+ // The file will be updated on next `cache:clear` or when the container gets refreshed.\n+ // @see https://github.com/bolt/core/issues/2622\n}\n$loader->load($confDir . '/{packages}/*' . self::CONFIG_EXTS, 'glob');\n" } ]
PHP
MIT License
bolt/core
catch `LoaderLoadException` instead of `Throwable`
95,144
13.06.2021 14:49:07
-7,200
341318f6317f025ca37247885385283daa60f27f
Pass around `BaseExtension` instead of string in `ExtensionsConfigureCommand`
[ { "change_type": "MODIFY", "old_path": "src/Command/ExtensionsConfigureCommand.php", "new_path": "src/Command/ExtensionsConfigureCommand.php", "diff": "@@ -5,6 +5,7 @@ declare(strict_types=1);\nnamespace Bolt\\Command;\nuse Bolt\\Common\\Str;\n+use Bolt\\Extension\\BaseExtension;\nuse Bolt\\Extension\\ExtensionRegistry;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n@@ -14,6 +15,7 @@ use Webmozart\\PathUtil\\Path;\nclass ExtensionsConfigureCommand extends Command\n{\n+ /** @var string */\nprotected static $defaultName = 'extensions:configure';\n/** @var ExtensionRegistry */\n@@ -65,8 +67,8 @@ class ExtensionsConfigureCommand extends Command\nforeach ($packages as $package) {\n$path = $this->getPackagePath($package);\n- $this->copyConfig($this->getRelativePath($path) . '/config/config.yaml', $path);\n- $this->copyConfig($this->getRelativePath($path) . '/config/config.yml', $path);\n+ $this->copyConfig($this->getRelativePath($path) . '/config/config.yaml', $package);\n+ $this->copyConfig($this->getRelativePath($path) . '/config/config.yml', $package);\n}\n}\n@@ -109,7 +111,7 @@ class ExtensionsConfigureCommand extends Command\narray_map('unlink', $oldExtensionsServices);\n}\n- private function copyConfig(string $source, string $package): void\n+ private function copyConfig(string $source, BaseExtension $package): void\n{\n[$namespace, $name] = explode('\\\\', mb_strtolower($this->getNamespace($package) . '\\\\'));\n$destination = $this->getExtensionConfigPath($namespace, $name);\n@@ -178,14 +180,14 @@ class ExtensionsConfigureCommand extends Command\n$name);\n}\n- private function getPackagePath($package): string\n+ private function getPackagePath(BaseExtension $package): string\n{\n$reflection = new \\ReflectionClass($package);\nreturn dirname(dirname($reflection->getFilename()));\n}\n- private function getNamespace($package): string\n+ private function getNamespace(BaseExtension $package): string\n{\n$reflection = new \\ReflectionClass($package);\n" } ]
PHP
MIT License
bolt/core
Pass around `BaseExtension` instead of string in `ExtensionsConfigureCommand`
95,144
14.06.2021 10:16:28
-7,200
69345d815600eaef2b15a49561f86f59ee062a76
Remove unneeded `security_checker.yaml` migration
[ { "change_type": "DELETE", "old_path": "yaml-migrations/m_2020-12-06-security_checker.yaml", "new_path": null, "diff": "-# Adding the new security_checker settings for Bolt 4.2.0\n-file: packages/security_checker.yaml\n-since: 4.2.0\n-\n-add:\n- services:\n- SensioLabs\\Security\\SecurityChecker:\n- public: false\n-\n- SensioLabs\\Security\\Command\\SecurityCheckerCommand:\n- arguments: ['@SensioLabs\\Security\\SecurityChecker']\n- tags:\n- - { name: console.command }\n" } ]
PHP
MIT License
bolt/core
Remove unneeded `security_checker.yaml` migration
95,144
16.06.2021 09:14:09
-7,200
627067b7710293c92ab75ad8f5800a7bd2019870
Adding `twig/extra-bundle`, `twig/html-extra` and `twig/intl-extra`
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"symfony/expression-language\": \"^5.1\",\n\"symfony/flex\": \"^1.9\",\n\"symfony/form\": \"^5.1\",\n- \"symfony/framework-bundle\": \"^5.1\",\n\"symfony/http-client\": \"^5.1\",\n\"symfony/mailer\": \"^5.1\",\n\"symfony/monolog-bridge\": \"^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/yaml\": \"^5.1\",\n\"symfonycasts/reset-password-bundle\": \"^1.1\",\n\"tightenco/collect\": \"^v8.0\",\n- \"twig/twig\": \"^3.0\",\n+ \"twig/extra-bundle\": \"^3.3\",\n+ \"twig/html-extra\": \"^3.3\",\n+ \"twig/intl-extra\": \"^3.3\",\n\"ua-parser/uap-php\": \"^3.9\",\n\"webimpress/safe-writer\": \"^2.1\",\n\"webmozart/path-util\": \"^2.3\",\n" }, { "change_type": "MODIFY", "old_path": "config/bundles.php", "new_path": "config/bundles.php", "diff": "@@ -24,4 +24,5 @@ return [\nSymfonyCasts\\Bundle\\ResetPassword\\SymfonyCastsResetPasswordBundle::class => ['all' => true],\nTranslation\\Bundle\\TranslationBundle::class => ['all' => true],\nTranslation\\PlatformAdapter\\Loco\\Bridge\\Symfony\\TranslationAdapterLocoBundle::class => ['dev' => true, 'local' => true],\n+ Twig\\Extra\\TwigExtraBundle\\TwigExtraBundle::class => ['all' => true],\n];\n" }, { "change_type": "MODIFY", "old_path": "symfony.lock", "new_path": "symfony.lock", "diff": "\"tightenco/collect\": {\n\"version\": \"v6.16.0\"\n},\n+ \"twig/extra-bundle\": {\n+ \"version\": \"v3.3.1\"\n+ },\n+ \"twig/html-extra\": {\n+ \"version\": \"v3.3.0\"\n+ },\n+ \"twig/intl-extra\": {\n+ \"version\": \"v3.3.0\"\n+ },\n\"twig/twig\": {\n\"version\": \"v3.0.3\"\n},\n" } ]
PHP
MIT License
bolt/core
Adding `twig/extra-bundle`, `twig/html-extra` and `twig/intl-extra`
95,144
16.06.2021 09:22:31
-7,200
7927b455034c9c8d24272dc2fdc04b06cfd724e6
Actually, we should declare these explicitly
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"symfony/expression-language\": \"^5.1\",\n\"symfony/flex\": \"^1.9\",\n\"symfony/form\": \"^5.1\",\n+ \"symfony/framework-bundle\": \"^5.1\",\n\"symfony/http-client\": \"^5.1\",\n\"symfony/mailer\": \"^5.1\",\n\"symfony/monolog-bridge\": \"^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\"twig/extra-bundle\": \"^3.3\",\n\"twig/html-extra\": \"^3.3\",\n\"twig/intl-extra\": \"^3.3\",\n+ \"twig/twig\": \"^3.0\",\n\"ua-parser/uap-php\": \"^3.9\",\n\"webimpress/safe-writer\": \"^2.1\",\n\"webmozart/path-util\": \"^2.3\",\n" }, { "change_type": "MODIFY", "old_path": "symfony.lock", "new_path": "symfony.lock", "diff": "\"composer/composer\": {\n\"version\": \"1.9.3\"\n},\n+ \"composer/metadata-minifier\": {\n+ \"version\": \"1.0.0\"\n+ },\n\"composer/package-versions-deprecated\": {\n\"version\": \"1.11.99\"\n},\n\"doctrine/dbal\": {\n\"version\": \"v2.10.1\"\n},\n+ \"doctrine/deprecations\": {\n+ \"version\": \"v0.5.3\"\n+ },\n\"doctrine/doctrine-bundle\": {\n\"version\": \"2.0\",\n\"recipe\": {\n\"symfony/options-resolver\": {\n\"version\": \"v4.4.4\"\n},\n+ \"symfony/password-hasher\": {\n+ \"version\": \"v5.3.0\"\n+ },\n\"symfony/polyfill-ctype\": {\n\"version\": \"v1.14.0\"\n},\n\"symfony/polyfill-php80\": {\n\"version\": \"v1.17.0\"\n},\n+ \"symfony/polyfill-php81\": {\n+ \"version\": \"v1.23.0\"\n+ },\n\"symfony/process\": {\n\"version\": \"v4.4.4\"\n},\n" } ]
PHP
MIT License
bolt/core
Actually, we should declare these explicitly
95,144
16.06.2021 11:19:54
-7,200
cf0fbc93e37e41c6d28318fc0d55a4e2628d222f
Use `nelexa/zip` because it supports both PHP 7.2 and 8.0
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"knplabs/knp-menu-bundle\": \"^3.0\",\n\"league/glide-symfony\": \"^1.0\",\n\"miljar/php-exif\": \"^0.6.4\",\n- \"nelexa/zip\": \"^3.3 | ^4.0\",\n+ \"nelexa/zip\": \"dev-support/3.4.x\",\n\"nelmio/cors-bundle\": \"^2.1\",\n\"nesbot/carbon\": \"^2.39\",\n\"php-translation/symfony-bundle\": \"^0.12\",\n" } ]
PHP
MIT License
bolt/core
Use `nelexa/zip` because it supports both PHP 7.2 and 8.0
95,144
16.06.2021 17:40:16
-7,200
27ce1730df9396b3ad5681cbb4ff08dd48df80dd
Add inferred_slug values to parsed ContentType, if applicable
[ { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/ContentTypesParser.php", "new_path": "src/Configuration/Parser/ContentTypesParser.php", "diff": "@@ -88,8 +88,13 @@ class ContentTypesParser extends BaseParser\nthrow new ConfigurationException($error);\n}\n+ $contentType['inferred_slug'] = null;\n+\nif (! isset($contentType['slug'])) {\n$contentType['slug'] = Str::slug($contentType['name']);\n+ if (Str::slug($contentType['name']) != $key) {\n+ $contentType['inferred_slug'] = [Str::slug($contentType['name']), $key];\n+ }\n}\nif (! isset($contentType['name'])) {\n$contentType['name'] = ucwords(preg_replace('/[^a-z0-9]/i', ' ', $contentType['slug']));\n" }, { "change_type": "MODIFY", "old_path": "tests/php/Configuration/Parser/ContentTypesParserTest.php", "new_path": "tests/php/Configuration/Parser/ContentTypesParserTest.php", "diff": "@@ -15,7 +15,7 @@ class ContentTypesParserTest extends ParserTestBase\n{\npublic const NUMBER_OF_CONTENT_TYPES_IN_MINIMAL_FILE = 2;\n- public const AMOUNT_OF_ATTRIBUTES_IN_CONTENT_TYPE = 25;\n+ public const AMOUNT_OF_ATTRIBUTES_IN_CONTENT_TYPE = 26;\npublic const AMOUNT_OF_ATTRIBUTES_IN_FIELD = 26;\n" } ]
PHP
MIT License
bolt/core
Add inferred_slug values to parsed ContentType, if applicable
95,144
17.06.2021 15:00:03
-7,200
94bc3c0c508e716c4d31ec7b734e4a484ee72b15
Adding missing methods to ExtensionInterface and BaseExtension
[ { "change_type": "MODIFY", "old_path": "src/Extension/BaseExtension.php", "new_path": "src/Extension/BaseExtension.php", "diff": "@@ -55,6 +55,24 @@ abstract class BaseExtension implements ExtensionInterface\n// Nothing\n}\n+ /**\n+ * Called when initialising the Extension from the Command Line only\n+ */\n+ public function initializeCli(): void\n+ {\n+ // Nothing\n+ }\n+\n+ /**\n+ * Called when installing the Extension or when running\n+ * `bin/console extensions:configure`. Use this to install assets for the\n+ * Extension or other tasks that need to be done once.\n+ */\n+ public function install(): void\n+ {\n+ // Nothing\n+ }\n+\n/**\n* Shortcut method to register a widget and inject the extension into it\n*/\n" }, { "change_type": "MODIFY", "old_path": "src/Extension/ExtensionInterface.php", "new_path": "src/Extension/ExtensionInterface.php", "diff": "@@ -18,5 +18,9 @@ interface ExtensionInterface\npublic function initialize(): void;\n+ public function initializeCli(): void;\n+\n+ public function install(): void;\n+\npublic function getComposerPackage(): ?CompletePackageInterface;\n}\n" } ]
PHP
MIT License
bolt/core
Adding missing methods to ExtensionInterface and BaseExtension
95,144
18.06.2021 08:58:26
-7,200
24f866a4d75ac658765f50386d9b18400fd5d30f
Don't allow `symfony/security-http` 5.3.0 and 5.3.1
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"conflict\": {\n\"doctrine/common\": \">=3.0\",\n\"doctrine/persistence\": \"<1.3\",\n- \"friendsofphp/php-cs-fixer\": \">=2.19.0\"\n+ \"friendsofphp/php-cs-fixer\": \">=2.19.0\",\n+ \"symfony/security-http\": \"v5.3.0 v5.3.1\"\n},\n\"config\": {\n\"preferred-install\": {\n" } ]
PHP
MIT License
bolt/core
Don't allow `symfony/security-http` 5.3.0 and 5.3.1
95,144
18.06.2021 12:31:09
-7,200
e61e160caa3968fdfcfbaf7d0d6f7bafdc0a8725
Prepare release 5.0.0-beta.9
[ { "change_type": "MODIFY", "old_path": "assets/js/version.js", "new_path": "assets/js/version.js", "diff": "// generated by genversion\n-export const version = '4.99.8';\n+export const version = '4.99.9';\n" }, { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.99.8\",\n+ \"version\": \"4.99.9\",\n\"lockfileVersion\": 2,\n\"requires\": true,\n\"packages\": {\n\"\": {\n\"name\": \"bolt\",\n- \"version\": \"4.99.8\",\n+ \"version\": \"4.99.9\",\n\"license\": \"MIT\",\n\"dependencies\": {\n\"@vue/cli-service\": \"^4.5.13\",\n\"integrity\": \"sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg==\"\n},\n\"node_modules/@types/node\": {\n- \"version\": \"15.12.2\",\n- \"resolved\": \"https://registry.npmjs.org/@types/node/-/node-15.12.2.tgz\",\n- \"integrity\": \"sha512-zjQ69G564OCIWIOHSXyQEEDpdpGl+G348RAKY0XXy9Z5kU9Vzv1GMNnkar/ZJ8dzXB3COzD9Mo9NtRZ4xfgUww==\"\n+ \"version\": \"15.12.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/node/-/node-15.12.3.tgz\",\n+ \"integrity\": \"sha512-SNt65CPCXvGNDZ3bvk1TQ0Qxoe3y1RKH88+wZ2Uf05dduBCqqFQ76ADP9pbT+Cpvj60SkRppMCh2Zo8tDixqjQ==\"\n},\n\"node_modules/@types/normalize-package-data\": {\n\"version\": \"2.4.0\",\n\"integrity\": \"sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg==\"\n},\n\"@types/node\": {\n- \"version\": \"15.12.2\",\n- \"resolved\": \"https://registry.npmjs.org/@types/node/-/node-15.12.2.tgz\",\n- \"integrity\": \"sha512-zjQ69G564OCIWIOHSXyQEEDpdpGl+G348RAKY0XXy9Z5kU9Vzv1GMNnkar/ZJ8dzXB3COzD9Mo9NtRZ4xfgUww==\"\n+ \"version\": \"15.12.3\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/node/-/node-15.12.3.tgz\",\n+ \"integrity\": \"sha512-SNt65CPCXvGNDZ3bvk1TQ0Qxoe3y1RKH88+wZ2Uf05dduBCqqFQ76ADP9pbT+Cpvj60SkRppMCh2Zo8tDixqjQ==\"\n},\n\"@types/normalize-package-data\": {\n\"version\": \"2.4.0\",\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.99.8\",\n+ \"version\": \"4.99.9\",\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 5.0.0-beta.9
95,173
21.06.2021 14:53:53
-3,600
028469893ddb45d5fedb8682b10b456ed2b1dc66
Issue 2620 Filter / Order By Number Field Types Fix Fixes issues with number field types in query parameters showing as a json array and issues in cast detection.
[ { "change_type": "MODIFY", "old_path": "src/Storage/SelectQuery.php", "new_path": "src/Storage/SelectQuery.php", "diff": "@@ -324,6 +324,8 @@ class SelectQuery implements QueryInterface\n$dateFields = $this->getDateFields();\n+ $numberFields = $this->getNumberFields();\n+\n// Set the regular fields. They are needed for setting the correct param if DB does not support json.\n$this->setRegularFields();\n@@ -339,7 +341,7 @@ class SelectQuery implements QueryInterface\n$param = date('c', strtotime($param));\n}\n- if (in_array($fieldName, $this->regularFields, true)) {\n+ if (in_array($fieldName, $this->regularFields, true) && !in_array($fieldName, $numberFields, true)) {\n$param = JsonHelper::wrapJsonFunction(null, $param, $query->getEntityManager()->getConnection());\n}\n@@ -491,6 +493,17 @@ class SelectQuery implements QueryInterface\nreturn array_merge($dateFields, $this->coreDateFields);\n}\n+ private function getNumberFields(): 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: number`)\n+ $numberFields = $ctFields->where('type', 'number')->keys()->all();\n+\n+ return $numberFields;\n+ }\n+\npublic function getIndex(): int\n{\nreturn $this->index;\n" } ]
PHP
MIT License
bolt/core
Issue 2620 Filter / Order By Number Field Types Fix Fixes issues with number field types in query parameters showing as a json array and issues in cast detection.
95,144
22.06.2021 17:03:09
-7,200
cae14b9cb4b9dbcc5bce8911afa8b29f7354f953
Remove unneeded line and fix rogue quote
[ { "change_type": "MODIFY", "old_path": ".env", "new_path": ".env", "diff": "###> symfony/framework-bundle ###\nAPP_ENV=dev\n-APP_DEBUG=1\nAPP_SECRET=73fd814e2c9fbf61dc5f87a62967d829\n#TRUSTED_PROXIES=127.0.0.1,127.0.0.2\n#TRUSTED_HOSTS='^localhost|example\\.com$'\n@@ -20,7 +19,7 @@ DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/bolt.sqlite\n#DATABASE_URL=mysql://db_user:\"db_password\"@localhost:3306/db_name\n# Postgres\n-#DATABASE_URL=postgresql://db_user:\"db_password\"@localhost:5432/db_name?serverVersion=11&charset=utf8\"\n+#DATABASE_URL=postgresql://db_user:\"db_password\"@localhost:5432/db_name?serverVersion=11&charset=utf8\n# MYSQL / MariaDB (additional settings, needed for Docker)\n#DATABASE_USER=db_user\n" } ]
PHP
MIT License
bolt/core
Remove unneeded line and fix rogue quote
95,144
23.06.2021 17:00:19
-7,200
fc315e7bc7e31808fa92fe23c740f03ee8f1f10f
Allows running `bin/console` from other folders than just ProjectDir
[ { "change_type": "MODIFY", "old_path": "src/Command/InfoCommand.php", "new_path": "src/Command/InfoCommand.php", "diff": "@@ -27,9 +27,12 @@ class InfoCommand extends Command\n/** @var SymfonyStyle */\nprivate $io;\n- public function __construct(\\Bolt\\Doctrine\\Version $doctrineVersion)\n+ private $projectDir;\n+\n+ public function __construct(\\Bolt\\Doctrine\\Version $doctrineVersion, string $projectDir)\n{\n$this->doctrineVersion = $doctrineVersion;\n+ $this->projectDir = $projectDir;\nparent::__construct();\n}\n@@ -105,7 +108,8 @@ HELP\n// We check for 4.1.999, because \"4.2.0-beta.1\" is considered lower than \"4.2.0\"\nif (Version::compare('4.1.999', '<=')) {\n- $this->composer = json_decode(file_get_contents('composer.json'));\n+ $composerFilename = $this->projectDir . DIRECTORY_SEPARATOR . 'composer.json';\n+ $this->composer = json_decode(file_get_contents($composerFilename));\n$warnings = 0;\n$warnings += $this->checkComposerScript('pre-install-cmd', 'Bolt\\\\ComposerScripts\\\\ProjectEventHandler::preInstall');\n" } ]
PHP
MIT License
bolt/core
Allows running `bin/console` from other folders than just ProjectDir
95,144
25.06.2021 10:58:44
-7,200
d5624597f586b5b4bef864a4e2c5b6022d210078
Clean up composer.json, remove `roave/security-advisories`
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"ext-json\": \"*\",\n\"ext-mbstring\": \"*\",\n\"ext-pdo\": \"*\",\n- \"composer-runtime-api\": \"^2\",\n\"api-platform/core\": \"^2.6\",\n\"babdev/pagerfanta-bundle\": \"^2.5\",\n\"beberlei/doctrineextensions\": \"^1.3\",\n\"bobdenotter/yaml-migrations\": \"^1.0\",\n\"bolt/common\": \"^3.0.4\",\n\"cocur/slugify\": \"^4.0\",\n+ \"composer-runtime-api\": \"^2\",\n\"composer/composer\": \"^2.0\",\n\"composer/package-versions-deprecated\": \"^1.11\",\n\"doctrine/doctrine-bundle\": \"^2.1\",\n\"knplabs/knp-menu-bundle\": \"^3.0\",\n\"league/glide-symfony\": \"^1.0\",\n\"miljar/php-exif\": \"^0.6.4\",\n- \"nelexa/zip\": \"dev-support/3.4.x\",\n+ \"nelexa/zip\": \"^3.3 || ^4.0\",\n\"nelmio/cors-bundle\": \"^2.1\",\n\"nesbot/carbon\": \"^2.39\",\n\"php-translation/symfony-bundle\": \"^0.12\",\n\"webonyx/graphql-php\": \"^14.5\",\n\"xemlock/htmlpurifier-html5\": \"^0.1.11\"\n},\n+ \"conflict\": {\n+ \"friendsofphp/php-cs-fixer\": \">=2.19.0\",\n+ \"symfony/security-http\": \"v5.3.0 v5.3.1\"\n+ },\n\"require-dev\": {\n\"ext-curl\": \"*\",\n\"ext-pdo_sqlite\": \"*\",\n\"phpstan/phpstan-doctrine\": \"^0.12\",\n\"phpstan/phpstan-symfony\": \"^0.12\",\n\"phpunit/phpunit\": \"^8.5\",\n- \"roave/security-advisories\": \"dev-master@dev\",\n\"se/selenium-server-standalone\": \"^3.141\",\n\"symfony/browser-kit\": \"^5.3\",\n\"symfony/css-selector\": \"^5.3\",\n\"symplify/easy-coding-standard\": \"^8.2.3\"\n},\n- \"conflict\": {\n- \"friendsofphp/php-cs-fixer\": \">=2.19.0\",\n- \"symfony/security-http\": \"v5.3.0 v5.3.1\"\n- },\n\"config\": {\n\"preferred-install\": {\n\"*\": \"dist\"\n\"spec\\\\Bolt\\\\\": \"tests/spec/Bolt/\"\n}\n},\n- \"minimum-stability\": \"dev\",\n+ \"minimum-stability\": \"stable\",\n\"prefer-stable\": true,\n\"scripts\": {\n\"post-install-cmd\": \"php bin/composer-script/post-install-cmd.php --ansi\",\n" }, { "change_type": "MODIFY", "old_path": "symfony.lock", "new_path": "symfony.lock", "diff": "\"pagerfanta/pagerfanta\": {\n\"version\": \"v2.3.0\"\n},\n+ \"paragonie/random_compat\": {\n+ \"version\": \"v9.99.100\"\n+ },\n\"peterkahl/country-code-to-emoji-flag\": {\n\"version\": \"v1.2\"\n},\n\"react/promise\": {\n\"version\": \"v2.8.0\"\n},\n- \"roave/security-advisories\": {\n- \"version\": \"dev-master\"\n- },\n\"scienta/doctrine-json-functions\": {\n\"version\": \"4.1.2\"\n},\n" } ]
PHP
MIT License
bolt/core
Clean up composer.json, remove `roave/security-advisories`
95,144
29.06.2021 20:02:32
-7,200
3f14673dda1c7cc92024a69be134d5bf669a503e
Fix incorrect error when uploading an allowed filetype, that isn't an image
[ { "change_type": "MODIFY", "old_path": "src/Controller/Backend/Async/UploadController.php", "new_path": "src/Controller/Backend/Async/UploadController.php", "diff": "@@ -116,8 +116,11 @@ class UploadController implements AsyncZoneInterface\nif ($result->isValid()) {\ntry {\n$media = $this->mediaFactory->createFromFilename($locationName, $path, $result->__get('name'));\n+\n+ if ($this->mediaFactory->isImage($media)) {\n$this->em->persist($media);\n$this->em->flush();\n+ }\nreturn new JsonResponse($media->getFilenamePath());\n} catch (\\Throwable $e) {\n" }, { "change_type": "MODIFY", "old_path": "src/Factory/MediaFactory.php", "new_path": "src/Factory/MediaFactory.php", "diff": "@@ -32,7 +32,7 @@ class MediaFactory\nprivate $exif;\n/** @var Collection */\n- private $mediaTypes;\n+ private $allowedFileTypes;\n/** @var FileLocations */\nprivate $fileLocations;\n@@ -44,7 +44,7 @@ class MediaFactory\n$this->tokenStorage = $tokenStorage;\n$this->exif = Reader::factory(Reader::TYPE_NATIVE);\n- $this->mediaTypes = $config->getMediaTypes();\n+ $this->allowedFileTypes = $config->getMediaTypes()->merge($config->getFileTypes());\n$this->fileLocations = $fileLocations;\n}\n@@ -65,7 +65,7 @@ class MediaFactory\n->setLocation($fileLocation);\n}\n- if ($this->mediaTypes->contains($file->getExtension()) === false) {\n+ if ($this->allowedFileTypes->contains($file->getExtension()) === false) {\nthrow new UnsupportedMediaTypeHttpException(\"{$file->getExtension()} files are not accepted\");\n}\n@@ -104,7 +104,7 @@ class MediaFactory\n}\n}\n- private function isImage(Media $media): bool\n+ public function isImage(Media $media): bool\n{\nreturn in_array($media->getType(), ['gif', 'png', 'jpg', 'jpeg', 'svg', 'webp', 'avif'], true);\n}\n" } ]
PHP
MIT License
bolt/core
Fix incorrect error when uploading an allowed filetype, that isn't an image
95,139
02.07.2021 12:44:36
-10,800
c88adc8ed76e033f9e41dfc9987734670d05d672
Created cypress test for the homepage
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/cypress/integration/homepage.spec.js", "diff": "+/// <reference types=\"cypress\" />\n+\n+describe('I want to display Homepage', () => {\n+ it('checks that the homepage exists', () => {\n+ cy.visit('/');\n+ cy.get('h2').should('contain', 'Bolt Core Git Clone');\n+ cy.get('h5').should('contain', 'Recent Pages');\n+ })\n+});\n\\ No newline at end of file\n" }, { "change_type": "DELETE", "old_path": "tests/e2e/homepage.feature", "new_path": null, "diff": "-Feature: Homepage\n- @javascript\n- Scenario: I want to display Homepage\n- When I am on \"/\"\n- Then I should see \"Bolt Core Git Clone\"\n- And I should see \"Recent Pages\"\n\\ No newline at end of file\n" } ]
PHP
MIT License
bolt/core
Created cypress test for the homepage
95,139
02.07.2021 14:04:44
-10,800
04eeecb30d35123f21a2779c8314f9d6ee1298cc
Created cypress test for the dashboard listings
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/cypress/integration/display_listings.spec.js", "diff": "+/// <reference types=\"cypress\" />\n+\n+describe('As an admin I want to see Dashboard page', () => {\n+ it('checks that the dashboard listings work', () => {\n+\n+ cy.login();\n+ cy.get('.admin__header--title').should('contain', 'Dashboard');\n+ cy.get('.listing__row').should('exist');\n+ cy.get('.listing__row').its('length').should('eq', 8)\n+ })\n+});\n\\ No newline at end of file\n" }, { "change_type": "DELETE", "old_path": "tests/e2e/display_listing.feature", "new_path": null, "diff": "-Feature: Visiting Dashboard\n-\n- @javascript\n- Scenario: As an admin I want to see Dashboard page\n- Given I am logged in as \"admin\"\n- Then I should see \"Dashboard\" in the \".admin__header--title\" element\n- And I should see 8 \".listing__row\" elements\n- And I should see an \".listing__row\" element\n\\ No newline at end of file\n" } ]
PHP
MIT License
bolt/core
Created cypress test for the dashboard listings
95,146
02.07.2021 14:22:33
-10,800
ff4b9df027ef3b56e098dfd069114342b7699c2e
Created cypress test for widgets
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/cypress/integration/widgets.spec.js", "diff": "+/// <reference types=\"cypress\" />\n+\n+describe('As an admin I want to see the News Widget', () => {\n+ it('checks if News widget exists', () => {\n+ cy.login();\n+ cy.visit('/bolt/');\n+ cy.get('#widget-news-widget').should('contain', 'Latest Bolt News');\n+ })\n+});\n" }, { "change_type": "DELETE", "old_path": "tests/e2e/widgets.feature", "new_path": null, "diff": "-Feature: Visiting Dashboard\n-\n- @javascript\n- Scenario: As an admin I want to see the News Widget\n- Given I am logged in as \"admin\"\n- When I am on \"/bolt/\"\n- Then I should see \"Latest Bolt News\" in the \"#widget-news-widget\" element\n" } ]
PHP
MIT License
bolt/core
Created cypress test for widgets
95,139
02.07.2021 16:10:48
-10,800
1e5bc369990700ef4bb9ddfa3e77d73b9f15d2b5
Created cypress test for display records
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/cypress/integration/display_record_test.spec.js", "diff": "+/// <reference types=\"cypress\" />\n+\n+\n+describe('As a user I want to see how the record title is displayed', () => {\n+ it('checks that the record title is displayed as a user', () => {\n+ cy.visit('/test/title-of-the-test');\n+ cy.get('.title').should('have.length', 1);\n+ cy.get('.title').should('contain', '74: Title of the test');\n+ })\n+});\n+\n+describe('As a user I want to see how fields are escaped', () => {\n+ it('checks that fields are escaped as a user', () => {\n+ cy.visit('/test/title-of-the-test');\n+ cy.get('.title').should('have.length', 1);\n+\n+ cy.get('.text_markup_a').should('contain', 'Text with markup allowed');\n+ cy.get('.text_markup_b').should('contain', 'Text with markup allowed');\n+ cy.get('.text_markup_c').should('contain', 'Text with <em>markup allowed</em>.');\n+\n+ cy.get('.text_plain_a').should('contain', 'Text with <strong>no</strong> markup allowed');\n+ cy.get('.text_plain_b').should('contain', 'Text with no markup allowed');\n+ cy.get('.text_plain_c').should('contain', 'Text with <strong>no</strong> markup allowed');\n+\n+ cy.get('.text_html').should('contain', 'HTML field with simple HTML in it.');\n+ cy.get('.text_markdown').should('have.text', 'Markdown field with simple Markdown in it.');\n+ cy.get('.text_textarea').should('contain', 'Textarea field with <em>simple</em> HTML in it.');\n+\n+ cy.get('.text_sanitise_a').should('contain', \"Text field with <strong>markup</strong>, including <script>console.log('hoi')</script>. The end.\");\n+ cy.get('.text_sanitise_b').should('contain', 'Text field with <strong>markup</strong>, including . The end.');\n+ })\n+});\n+\n+describe('As a user I want to see how file fields are displayed', () => {\n+ it('checks that file fields are displayed as a user', () => {\n+ cy.visit('/test/title-of-the-test');\n+ cy.get('.title').should('have.length', 1);\n+ cy.get('#attachment #filename').should('contain', 'joey.jpg');\n+ cy.get('#attachment #path').should('contain', '/files/joey.jpg');\n+ cy.get('#attachment #fieldname').should('contain', 'attachment');\n+ cy.get('#attachment #url').should('contain', 'http');\n+ cy.get('#attachment #url').should('contain', '://');\n+ cy.get('#attachment #url').should('contain', '/files/joey.jpg');\n+ })\n+});\n\\ No newline at end of file\n" }, { "change_type": "DELETE", "old_path": "tests/e2e/display_record_test.feature", "new_path": null, "diff": "-Feature: Test field output\n-\n- @javascript\n- Scenario: As a user I want to see how the record title is displayed\n- Given I am on \"/test/title-of-the-test\"\n- Then I wait for \".title\"\n-\n- And I should see \"74: Title of the test\" in the \".title\" element\n-\n- @javascript\n- Scenario: As a user I want to see how fields are escaped\n-\n- Given I am on \"/test/title-of-the-test\"\n- Then I wait for \".title\"\n-\n- And I should see \"Text with markup allowed.\" in the \".text_markup_a\" element\n- And I should see \"Text with markup allowed.\" in the \".text_markup_b\" element\n- And I should see \"Text with <em>markup allowed</em>.\" in the \".text_markup_c\" element\n-\n- And I should see \"Text with <strong>no</strong> markup allowed\" in the \".text_plain_a\" element\n- And I should see \"Text with no markup allowed\" in the \".text_plain_b\" element\n- And I should see \"Text with <strong>no</strong> markup allowed\" in the \".text_plain_c\" element\n-\n- And I should see \"HTML field with simple HTML in it.\" in the \".text_html\" element\n- And I should see \"Markdown field with simple Markdown in it.\" in the \".text_markdown\" element\n- And I should see \"Textarea field with <em>simple</em> HTML in it.\" in the \".text_textarea\" element\n-\n- And I should see \"Text field with <strong>markup</strong>, including <script>console.log('hoi')</script>. The end.\" in the \".text_sanitise_a\" element\n- And I should see \"Text field with <strong>markup</strong>, including . The end.\" in the \".text_sanitise_b\" element\n-\n- @javascript\n- Scenario: As a user I want to see how file fields are displayed\n- Given I am on \"/test/title-of-the-test\"\n- Then I wait for \".title\"\n-\n- And I should see \"joey.jpg\" in the \"#attachment #filename\" element\n- And I should see \"/files/joey.jpg\" in the \"#attachment #path\" element\n- And I should see \"attachment\" in the \"#attachment #fieldname\" element\n- And I should see \"http\" in the \"#attachment #url\" element\n- And I should see \"://\" in the \"#attachment #url\" element\n- And I should see \"/files/joey.jpg\" in the \"#attachment #url\" element\n" } ]
PHP
MIT License
bolt/core
Created cypress test for display records
95,144
07.07.2021 16:58:06
-7,200
e73b024edf200965161423c6fd36a97b0da2cd44
Ignore two more PHPstan false positives
[ { "change_type": "MODIFY", "old_path": "phpstan.neon", "new_path": "phpstan.neon", "diff": "@@ -21,11 +21,21 @@ parameters:\nmessage: '#Call to an undefined method Knp\\\\DoctrineBehaviors\\\\Contract\\\\Entity\\\\TranslationInterface#'\npath: %currentWorkingDirectory%/src/*\n- # Parameters in Storage\\Directive\\OrderDirective::orderByNumericField() aren't seen as ints\n+ # false positive: Parameters in Storage\\Directive\\OrderDirective::orderByNumericField() aren't seen as integers\n-\nmessage: '#of method Doctrine\\\\ORM\\\\Query\\\\Expr::substring\\(\\) expects int#'\npath: %currentWorkingDirectory%/src/Storage/Directive/OrderDirective.php\n+ # false positive: An item to the Logger's Record added by us isn't recognized\n+ -\n+ message: \"#Offset 'location' does not exist on array#\"\n+ path: %currentWorkingDirectory%/src/Log/LogHandler.php\n+\n+ # false positive: Parameter #1 $description of method Bolt\\Entity\\Media::setDescription() expects string|null, array given.\n+ -\n+ message: '#of method Bolt\\\\Entity\\\\Media::setDescription#'\n+ path: %currentWorkingDirectory%/src/DataFixtures/ImagesFixtures.php\n+\nincludes:\n- vendor/phpstan/phpstan-symfony/extension.neon\n- vendor/phpstan/phpstan-doctrine/extension.neon\n" } ]
PHP
MIT License
bolt/core
Ignore two more PHPstan false positives
95,144
08.07.2021 07:38:53
-7,200
3111d4f7d2904b5f4ff90e7eabdb8307bf6ee772
Don't lowercase values in queries, allow for booleans
[ { "change_type": "MODIFY", "old_path": "src/Doctrine/JsonHelper.php", "new_path": "src/Doctrine/JsonHelper.php", "diff": "@@ -18,9 +18,11 @@ class JsonHelper\n* Older SQLite, Mysql 5.6 -> [ 'foo', '[\"bar\"]' ]\n* Newer SQLite, Mysql 5.7 -> [ \"JSON_EXTRACT(foo, '$[0]')\", 'bar' ]\n*\n+ * @param string|bool|null $slug\n+ *\n* @return string|array\n*/\n- public static function wrapJsonFunction(?string $where = null, ?string $slug = null, Connection $connection)\n+ public static function wrapJsonFunction(?string $where = null, $slug = null, Connection $connection)\n{\n$version = new Version($connection);\n" }, { "change_type": "MODIFY", "old_path": "src/Storage/SelectQuery.php", "new_path": "src/Storage/SelectQuery.php", "diff": "@@ -4,7 +4,6 @@ declare(strict_types=1);\nnamespace Bolt\\Storage;\n-use Bolt\\Common\\Arr;\nuse Bolt\\Configuration\\Config;\nuse Bolt\\Configuration\\Content\\ContentType;\nuse Bolt\\Doctrine\\JsonHelper;\n@@ -176,15 +175,13 @@ class SelectQuery implements QueryInterface\n*/\npublic function setParameters(array $params): void\n{\n- // Change all params to lowercase, filter out empty ones\n+ // Filter out empty parameters, ignoring it if 'like' statement is empty\n$this->params = array_filter(\n- Arr::mapRecursive($params, function ($a) {\n- return mb_strtolower((string) $a, 'utf-8');\n- }\n- ), function ($a) {\n- // ignore parameter if like statement is empty\n+ $params,\n+ function ($a) {\nreturn $a !== '%%';\n- });\n+ }\n+ );\n$this->processFilters();\n}\n" } ]
PHP
MIT License
bolt/core
Don't lowercase values in queries, allow for booleans
95,139
08.07.2021 15:38:57
-10,800
30938aeddb2b34516d14890031551fe0945ef81e
Fixed a formatting error in edit.html.twig
[ { "change_type": "MODIFY", "old_path": "templates/content/edit.html.twig", "new_path": "templates/content/edit.html.twig", "diff": "{# The 'title' and 'shoulder' blocks are the main heading of the page. #}\n{% block shoulder %}\n- {{ (app.request.get('_route') == 'bolt_content_duplicate') ? 'caption.duplicate'|trans : 'caption.edit'|trans }}\n- {{ record.definition.singular_name }}\n+ {{- (app.request.get('_route') == 'bolt_content_duplicate') ? 'caption.duplicate'|trans : 'caption.edit'|trans }} {{ record.definition.singular_name -}}\n{% endblock shoulder %}\n{% block title %}\n" } ]
PHP
MIT License
bolt/core
Fixed a formatting error in edit.html.twig
95,146
08.07.2021 16:16:57
-10,800
5d58cc7a3bbd8adc50f368cf42488ce6d26ab8d6
Created cypress test for edit_record_1(changing titles)
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/cypress/integration/edit_record_1_change_title.spec.js", "diff": "+/// <reference types=\"cypress\" />\n+\n+describe('As an Admin I want to change title of a record', () => {\n+ it(\"checks if an admin can change a record's title\", () => {\n+ cy.login();\n+ cy.visit('/bolt/edit/30');\n+ cy.get('input[id=\"field-title\"]').clear();\n+ cy.get('input[id=\"field-title\"]').type('Changed title');\n+\n+ cy.get('button[name=\"save\"]').eq(1).scrollIntoView();\n+ cy.get('button[name=\"save\"]').eq(1).click();\n+\n+ cy.visit('/bolt/edit/30');\n+ cy.reload();\n+ cy.wait(1000);\n+ cy.get('input[id=\"field-title\"]').should('have.value', 'Changed title');\n+ })\n+});\n+\n+describe('As an Admin I want to change title of a record in another language', () => {\n+ it(\"checks if an admin can change a record's title in another language\", () => {\n+ cy.login();\n+ cy.visit('/bolt/edit/1');\n+ cy.get('input[id=\"field-title\"]').clear();\n+ cy.get('input[id=\"field-title\"]').type('Changed title EN');\n+\n+ cy.get('button[name=\"save\"]').eq(1).scrollIntoView();\n+ cy.get('button[name=\"save\"]').eq(1).click();\n+\n+ cy.get('#multiselect-localeswitcher div.multiselect__select').scrollIntoView();\n+ cy.get('#multiselect-localeswitcher div.multiselect__content-wrapper > ul > li:nth-child(2) > span').click({force: true});\n+\n+ cy.get('input[id=\"field-title\"]').clear();\n+ cy.get('input[id=\"field-title\"]').type('Changed title NL');\n+\n+ cy.get('button[name=\"save\"]').eq(1).scrollIntoView();\n+ cy.get('button[name=\"save\"]').eq(1).click();\n+\n+ cy.visit('/bolt/edit/1?edit_locale=nl');\n+ cy.get('.admin__header--title').its('length').should('eq', 1);\n+ cy.get('input[id=\"field-title\"]').should('have.value', 'Changed title NL');\n+\n+ cy.visit('/bolt/edit/1?edit_locale=en&_locale=nl');\n+ cy.get('.admin__header--title').its('length').should('eq', 1);\n+ cy.get('input[id=\"field-title\"]').should('have.value', 'Changed title EN');\n+\n+ cy.visit('/page/1?_locale=nl');\n+ cy.findByText('Changed title NL');\n+ })\n+});\n" } ]
PHP
MIT License
bolt/core
Created cypress test for edit_record_1(changing titles)
95,139
08.07.2021 16:55:16
-10,800
fb89243eb73bddf5e34242dc9cc062b56d694f65
Fixed the first record localization test My local database had doubled an element so the test wasn't running as intended. I've fixed the issue.
[ { "change_type": "MODIFY", "old_path": "tests/cypress/integration/record_localization.spec.js", "new_path": "tests/cypress/integration/record_localization.spec.js", "diff": "@@ -4,7 +4,7 @@ describe('No localization link for contenttype without locales', () => {\nit('checks that there\\'s no localization link for contentype without locales', () => {\ncy.login();\n- cy.get('a[href=\"/bolt/content/entries\"]').eq(1).click();\n+ cy.get('a[href=\"/bolt/content/entries\"]').click();\ncy.get('a[href=\"/bolt/edit/23\"]').eq(1).click();\ncy.url().should('contain', '/bolt/edit/23');\n" } ]
PHP
MIT License
bolt/core
Fixed the first record localization test My local database had doubled an element so the test wasn't running as intended. I've fixed the issue.
95,144
18.07.2021 12:48:38
-7,200
ca633952e39e76443f625d768cd53b6f56ba5f64
Replace `_` with space in Field labels
[ { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/ContentTypesParser.php", "new_path": "src/Configuration/Parser/ContentTypesParser.php", "diff": "@@ -97,13 +97,13 @@ class ContentTypesParser extends BaseParser\n}\n}\nif (! isset($contentType['name'])) {\n- $contentType['name'] = ucwords(preg_replace('/[^a-z0-9]/i', ' ', $contentType['slug']));\n+ $contentType['name'] = Str::humanize($contentType['slug']);\n}\nif (! isset($contentType['singular_slug'])) {\n$contentType['singular_slug'] = Str::slug($contentType['singular_name']);\n}\nif (! isset($contentType['singular_name'])) {\n- $contentType['singular_name'] = ucwords(preg_replace('/[^a-z0-9]/i', ' ', $contentType['singular_slug']));\n+ $contentType['singular_name'] = Str::humanize($contentType['singular_slug']);\n}\nif (! isset($contentType['show_on_dashboard'])) {\n$contentType['show_on_dashboard'] = true;\n@@ -319,7 +319,7 @@ class ContentTypesParser extends BaseParser\n}\nif (empty($field['label'])) {\n- $field['label'] = ucwords($key);\n+ $field['label'] = Str::humanize($key);\n}\nif (isset($field['allow_html']) === false) {\n" } ]
PHP
MIT License
bolt/core
Replace `_` with space in Field labels
95,144
18.07.2021 12:57:40
-7,200
e0bdfff7ddfebb01818d2925918e72f4e458051c
Allow whitespace in `orderby` in setcontent queries
[ { "change_type": "MODIFY", "old_path": "src/Storage/Directive/OrderDirective.php", "new_path": "src/Storage/Directive/OrderDirective.php", "diff": "@@ -153,7 +153,7 @@ class OrderDirective\n$separatedOrders = [$order];\nif ($this->isMultiOrderQuery($order)) {\n- $separatedOrders = explode(',', $order);\n+ $separatedOrders = array_map('trim', explode(',', $order));\n}\nreturn $separatedOrders;\n" } ]
PHP
MIT License
bolt/core
Allow whitespace in `orderby` in setcontent queries
95,144
18.07.2021 13:30:50
-7,200
ef366616bd454941a15b95a0fbccf5d482c7e510
Prepare release 4.1.23
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.1.22\",\n+ \"version\": \"4.1.23\",\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.1.23
95,144
25.07.2021 17:16:26
-7,200
39078a7f678117b507c94c64ed1e21bd5614c54a
Prepare release 5.0.0 beta 12
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "\"version\": \"2.2.0\",\n\"resolved\": \"https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz\",\n\"integrity\": \"sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==\",\n+ \"devOptional\": true,\n\"engines\": {\n\"node\": \">=8\"\n}\n\"version\": \"3.5.2\",\n\"resolved\": \"https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz\",\n\"integrity\": \"sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==\",\n+ \"devOptional\": true,\n\"dependencies\": {\n\"anymatch\": \"~3.1.2\",\n\"braces\": \"~3.0.2\",\n\"version\": \"5.1.2\",\n\"resolved\": \"https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz\",\n\"integrity\": \"sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==\",\n+ \"devOptional\": true,\n\"dependencies\": {\n\"is-glob\": \"^4.0.1\"\n},\n\"version\": \"2.1.0\",\n\"resolved\": \"https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz\",\n\"integrity\": \"sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==\",\n+ \"devOptional\": true,\n\"dependencies\": {\n\"binary-extensions\": \"^2.0.0\"\n},\n\"version\": \"1.19.1\",\n\"resolved\": \"https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz\",\n\"integrity\": \"sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==\",\n+ \"devOptional\": true,\n\"bin\": {\n\"prettier\": \"bin-prettier.js\"\n},\n\"version\": \"3.6.0\",\n\"resolved\": \"https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz\",\n\"integrity\": \"sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==\",\n+ \"devOptional\": true,\n\"dependencies\": {\n\"picomatch\": \"^2.2.1\"\n},\n\"binary-extensions\": {\n\"version\": \"2.2.0\",\n\"resolved\": \"https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz\",\n- \"integrity\": \"sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==\"\n+ \"integrity\": \"sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==\",\n+ \"devOptional\": true\n},\n\"bindings\": {\n\"version\": \"1.5.0\",\n\"version\": \"3.5.2\",\n\"resolved\": \"https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz\",\n\"integrity\": \"sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==\",\n+ \"devOptional\": true,\n\"requires\": {\n\"anymatch\": \"~3.1.2\",\n\"braces\": \"~3.0.2\",\n\"version\": \"5.1.2\",\n\"resolved\": \"https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz\",\n\"integrity\": \"sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==\",\n+ \"devOptional\": true,\n\"requires\": {\n\"is-glob\": \"^4.0.1\"\n}\n\"version\": \"2.1.0\",\n\"resolved\": \"https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz\",\n\"integrity\": \"sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==\",\n+ \"devOptional\": true,\n\"requires\": {\n\"binary-extensions\": \"^2.0.0\"\n}\n\"prettier\": {\n\"version\": \"1.19.1\",\n\"resolved\": \"https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz\",\n- \"integrity\": \"sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==\"\n+ \"integrity\": \"sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==\",\n+ \"devOptional\": true\n},\n\"prettier-linter-helpers\": {\n\"version\": \"1.0.0\",\n\"version\": \"3.6.0\",\n\"resolved\": \"https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz\",\n\"integrity\": \"sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==\",\n+ \"devOptional\": true,\n\"requires\": {\n\"picomatch\": \"^2.2.1\"\n}\n" } ]
PHP
MIT License
bolt/core
Prepare release 5.0.0 beta 12
95,147
26.07.2021 10:50:13
-7,200
bf309bfdd20df1e9bd252f945ea5e38f65ac9ac8
Update edit_record_1_content.spec.js
[ { "change_type": "MODIFY", "old_path": "tests/cypress/integration/edit_record_1_content.spec.js", "new_path": "tests/cypress/integration/edit_record_1_content.spec.js", "diff": "@@ -21,7 +21,7 @@ describe('As an Admin, I want to see default values on new content', () => {\ncy.login();\ncy.visit('/bolt');\n- cy.get('a[href=\"/bolt/content/tests\"]').trigger('mouseover');\n+ cy.findAllByText('Tests').trigger('mouseover');\ncy.get('a[href=\"/bolt/new/tests\"]').click({force: true});\ncy.url().should('contain', '/bolt/new/tests');\n" } ]
PHP
MIT License
bolt/core
Update edit_record_1_content.spec.js
95,147
03.08.2021 13:33:49
-7,200
528808a653177b6b1dc9718256db34c9fc11122a
Exclude partials in the `templateselect` default filter. Move methods to `FieldExtension`
[ { "change_type": "MODIFY", "old_path": "src/Twig/ContentExtension.php", "new_path": "src/Twig/ContentExtension.php", "diff": "@@ -5,7 +5,6 @@ declare(strict_types=1);\nnamespace Bolt\\Twig;\nuse Bolt\\Canonical;\n-use Bolt\\Common\\Str;\nuse Bolt\\Configuration\\Config;\nuse Bolt\\Configuration\\Content\\ContentType;\nuse Bolt\\Entity\\Content;\n@@ -13,8 +12,6 @@ use Bolt\\Entity\\Field;\nuse Bolt\\Entity\\Field\\Excerptable;\nuse Bolt\\Entity\\Field\\ImageField;\nuse Bolt\\Entity\\Field\\ImagelistField;\n-use Bolt\\Entity\\Field\\SelectField;\n-use Bolt\\Entity\\Field\\TemplateselectField;\nuse Bolt\\Entity\\Taxonomy;\nuse Bolt\\Enum\\Statuses;\nuse Bolt\\Log\\LoggerTrait;\n@@ -27,8 +24,6 @@ use Bolt\\Utils\\Excerpt;\nuse Bolt\\Utils\\Html;\nuse Bolt\\Utils\\Sanitiser;\nuse Pagerfanta\\Pagerfanta;\n-use Symfony\\Component\\Finder\\Finder;\n-use Symfony\\Component\\Finder\\SplFileInfo;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Routing\\Exception\\InvalidParameterException;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\n@@ -158,9 +153,7 @@ class ContentExtension extends AbstractExtension\nnew TwigFunction('excerpt', [$this, 'getExcerpt'], $safe),\nnew TwigFunction('previous_record', [$this, 'getPreviousContent']),\nnew TwigFunction('next_record', [$this, 'getNextContent']),\n- new TwigFunction('list_templates', [$this, 'getListTemplates']),\nnew TwigFunction('pager', [$this, 'pager'], $env + $safe),\n- new TwigFunction('select_options', [$this, 'selectOptions']),\nnew TwigFunction('taxonomy_options', [$this, 'taxonomyOptions']),\nnew TwigFunction('taxonomy_values', [$this, 'taxonomyValues']),\nnew TwigFunction('icon', [$this, 'icon'], $safe),\n@@ -482,61 +475,6 @@ class ContentExtension extends AbstractExtension\nreturn new Collection($taxonomies);\n}\n- public function getListTemplates(TemplateselectField $field): Collection\n- {\n- $definition = $field->getDefinition();\n- $current = current($field->getValue());\n-\n- $finder = new Finder();\n- $templatesDir = $this->config->get('theme/template_directory');\n- $templatesPath = $this->config->getPath('theme', true, $templatesDir);\n-\n- $filter = $definition->get('filter', '/^[^_].*\\.twig$/');\n-\n- if (! Str::isValidRegex($filter)) {\n- $filter = Str::isValidRegex('/' . $filter . '/') ? '/' . $filter . '/' : '/^[^_].*\\.twig$/';\n- }\n-\n- $finder\n- ->files()\n- ->in($templatesPath)\n- ->path($definition->get('path'))\n- ->sortByName()\n- ->filter(function (SplFileInfo $file) use ($filter) {\n- return preg_match($filter, $file->getRelativePathname()) === 1;\n- });\n-\n- $options = [];\n-\n- if ($definition->get('required') === false) {\n- $options = [[\n- 'key' => '',\n- 'value' => '(choose a template)',\n- 'selected' => false,\n- ]];\n- }\n-\n- foreach ($finder as $file) {\n- $options[] = [\n- 'key' => $file->getRelativePathname(),\n- 'value' => $file->getRelativePathname(),\n- ];\n-\n- if ($current === $file->getRelativePathname()) {\n- $current = false;\n- }\n- }\n-\n- if ($current !== false) {\n- $options[] = [\n- 'key' => $current,\n- 'value' => $current . ' (file seems to be missing)',\n- ];\n- }\n-\n- return new Collection($options);\n- }\n-\npublic function pager(Environment $twig, ?Pagerfanta $records = null, string $template = '@bolt/helpers/_pager_basic.html.twig', string $class = 'pagination', int $surround = 3)\n{\n$params = array_merge(\n@@ -559,100 +497,6 @@ class ContentExtension extends AbstractExtension\nreturn $twig->render($template, $context);\n}\n- public function selectOptions(Field $field): Collection\n- {\n- if (! $field instanceof SelectField) {\n- return collect([]);\n- }\n-\n- $values = $field->getOptions();\n-\n- if (is_iterable($values)) {\n- return $this->selectOptionsArray($field);\n- }\n-\n- return $this->selectOptionsContentType($field);\n- }\n-\n- private function selectOptionsArray(Field $field): Collection\n- {\n- if (! $field instanceof SelectField) {\n- return collect([]);\n- }\n-\n- $values = $field->getOptions();\n- $currentValues = $field->getValue();\n-\n- $options = [];\n-\n- // We need to add this as a 'dummy' option for when the user is allowed\n- // not to pick an option. This is needed, because otherwise the `select`\n- // would default to the one.\n- if (! $field->getDefinition()->get('required', true)) {\n- $options[] = [\n- 'key' => '',\n- 'value' => '',\n- 'selected' => false,\n- ];\n- }\n-\n- if (! is_iterable($values)) {\n- return new Collection($options);\n- }\n-\n- foreach ($values as $key => $value) {\n- $options[] = [\n- 'key' => $key,\n- 'value' => $value,\n- 'selected' => in_array($key, $currentValues, true),\n- ];\n- }\n-\n- return new Collection($options);\n- }\n-\n- private function selectOptionsContentType(Field $field): Collection\n- {\n- [ $contentTypeSlug, $format ] = explode('/', $field->getDefinition()->get('values'));\n-\n- $options = [];\n-\n- if (! $field->getDefinition()->get('required')) {\n- $options[] = [\n- 'key' => '',\n- 'value' => '',\n- ];\n- }\n-\n- if (! empty($field->getDefinition()->get('limit'))) {\n- $maxAmount = $field->getDefinition()->get('limit');\n- } else {\n- $maxAmount = $this->config->get('general/maximum_listing_select', 200);\n- }\n-\n- $order = $field->getDefinition()->get('order', '');\n-\n- $params = [\n- 'limit' => $maxAmount,\n- 'order' => $order,\n- ];\n-\n- /** @var Content[] $records */\n- $records = iterator_to_array($this->query->getContent($contentTypeSlug, $params)->getCurrentPageResults());\n-\n- foreach ($records as $record) {\n- if ($field->getDefinition()->get('mode') === 'format') {\n- $formattedKey = $this->contentHelper->get($record, $field->getDefinition()->get('format'));\n- }\n- $options[] = [\n- 'key' => $formattedKey ?? $record->getId(),\n- 'value' => $this->contentHelper->get($record, $format),\n- ];\n- }\n-\n- return new Collection($options);\n- }\n-\npublic function taxonomyOptions(Collection $taxonomy): Collection\n{\n$options = [];\n" }, { "change_type": "MODIFY", "old_path": "src/Twig/FieldExtension.php", "new_path": "src/Twig/FieldExtension.php", "diff": "@@ -4,11 +4,18 @@ declare(strict_types=1);\nnamespace Bolt\\Twig;\n+use Bolt\\Common\\Str;\nuse Bolt\\Configuration\\Config;\nuse Bolt\\Entity\\Content;\nuse Bolt\\Entity\\Field;\n+use Bolt\\Entity\\Field\\SelectField;\n+use Bolt\\Entity\\Field\\TemplateselectField;\nuse Bolt\\Repository\\ContentRepository;\nuse Bolt\\Repository\\FieldRepository;\n+use Bolt\\Storage\\Query;\n+use Bolt\\Utils\\ContentHelper;\n+use Symfony\\Component\\Finder\\Finder;\n+use Symfony\\Component\\Finder\\SplFileInfo;\nuse Tightenco\\Collect\\Support\\Collection;\nuse Twig\\Environment;\nuse Twig\\Extension\\AbstractExtension;\n@@ -26,11 +33,24 @@ class FieldExtension extends AbstractExtension\n/** @var Config */\nprivate $config;\n- public function __construct(Notifications $notifications, ContentRepository $contentRepository, Config $config)\n+ /** @var ContentHelper */\n+ private $contentHelper;\n+\n+ /** @var Query */\n+ private $query;\n+\n+ public function __construct(\n+ Notifications $notifications,\n+ ContentRepository $contentRepository,\n+ Config $config,\n+ ContentHelper $contentHelper,\n+ Query $query)\n{\n$this->notifications = $notifications;\n$this->contentRepository = $contentRepository;\n$this->config = $config;\n+ $this->contentHelper = $contentHelper;\n+ $this->query = $query;\n}\n/**\n@@ -50,6 +70,8 @@ class FieldExtension extends AbstractExtension\n{\nreturn [\nnew TwigFunction('field_factory', [$this, 'fieldFactory']),\n+ new TwigFunction('list_templates', [$this, 'getListTemplates']),\n+ new TwigFunction('select_options', [$this, 'selectOptions']),\n];\n}\n@@ -119,4 +141,153 @@ class FieldExtension extends AbstractExtension\nreturn $records;\n}\n+\n+ public function getListTemplates(TemplateselectField $field): Collection\n+ {\n+ $definition = $field->getDefinition();\n+ $current = current($field->getValue());\n+\n+ $finder = new Finder();\n+ $templatesDir = $this->config->get('theme/template_directory');\n+ $templatesPath = $this->config->getPath('theme', true, $templatesDir);\n+\n+ $filter = $definition->get('filter', '/^[^_]*\\.twig$/');\n+\n+ if (! Str::isValidRegex($filter)) {\n+ $filter = Str::isValidRegex('/' . $filter . '/') ? '/' . $filter . '/' : '/^[^_]*\\.twig$/';\n+ }\n+\n+ $finder\n+ ->files()\n+ ->in($templatesPath)\n+ ->path($definition->get('path'))\n+ ->sortByName()\n+ ->filter(function (SplFileInfo $file) use ($filter) {\n+ return preg_match($filter, $file->getRelativePathname()) === 1;\n+ });\n+\n+ $options = [];\n+\n+ if ($definition->get('required') === false) {\n+ $options = [[\n+ 'key' => '',\n+ 'value' => '(choose a template)',\n+ 'selected' => false,\n+ ]];\n+ }\n+\n+ foreach ($finder as $file) {\n+ $options[] = [\n+ 'key' => $file->getRelativePathname(),\n+ 'value' => $file->getRelativePathname(),\n+ ];\n+\n+ if ($current === $file->getRelativePathname()) {\n+ $current = false;\n+ }\n+ }\n+\n+ if ($current !== false) {\n+ $options[] = [\n+ 'key' => $current,\n+ 'value' => $current . ' (file seems to be missing)',\n+ ];\n+ }\n+\n+ return new Collection($options);\n+ }\n+\n+ public function selectOptions(Field $field): Collection\n+ {\n+ if (! $field instanceof SelectField) {\n+ return collect([]);\n+ }\n+\n+ $values = $field->getOptions();\n+\n+ if (is_iterable($values)) {\n+ return $this->selectOptionsArray($field);\n+ }\n+\n+ return $this->selectOptionsContentType($field);\n+ }\n+\n+ private function selectOptionsArray(Field $field): Collection\n+ {\n+ if (! $field instanceof SelectField) {\n+ return collect([]);\n+ }\n+\n+ $values = $field->getOptions();\n+ $currentValues = $field->getValue();\n+\n+ $options = [];\n+\n+ // We need to add this as a 'dummy' option for when the user is allowed\n+ // not to pick an option. This is needed, because otherwise the `select`\n+ // would default to the one.\n+ if (! $field->getDefinition()->get('required', true)) {\n+ $options[] = [\n+ 'key' => '',\n+ 'value' => '',\n+ 'selected' => false,\n+ ];\n+ }\n+\n+ if (! is_iterable($values)) {\n+ return new Collection($options);\n+ }\n+\n+ foreach ($values as $key => $value) {\n+ $options[] = [\n+ 'key' => $key,\n+ 'value' => $value,\n+ 'selected' => in_array($key, $currentValues, true),\n+ ];\n+ }\n+\n+ return new Collection($options);\n+ }\n+\n+ private function selectOptionsContentType(Field $field): Collection\n+ {\n+ [ $contentTypeSlug, $format ] = explode('/', $field->getDefinition()->get('values'));\n+\n+ $options = [];\n+\n+ if (! $field->getDefinition()->get('required')) {\n+ $options[] = [\n+ 'key' => '',\n+ 'value' => '',\n+ ];\n+ }\n+\n+ if (! empty($field->getDefinition()->get('limit'))) {\n+ $maxAmount = $field->getDefinition()->get('limit');\n+ } else {\n+ $maxAmount = $this->config->get('general/maximum_listing_select', 200);\n+ }\n+\n+ $order = $field->getDefinition()->get('order', '');\n+\n+ $params = [\n+ 'limit' => $maxAmount,\n+ 'order' => $order,\n+ ];\n+\n+ /** @var Content[] $records */\n+ $records = iterator_to_array($this->query->getContent($contentTypeSlug, $params)->getCurrentPageResults());\n+\n+ foreach ($records as $record) {\n+ if ($field->getDefinition()->get('mode') === 'format') {\n+ $formattedKey = $this->contentHelper->get($record, $field->getDefinition()->get('format'));\n+ }\n+ $options[] = [\n+ 'key' => $formattedKey ?? $record->getId(),\n+ 'value' => $this->contentHelper->get($record, $format),\n+ ];\n+ }\n+\n+ return new Collection($options);\n+ }\n}\n" } ]
PHP
MIT License
bolt/core
Exclude partials in the `templateselect` default filter. Move methods to `FieldExtension`
95,147
03.08.2021 15:15:34
-7,200
eb314f44db851c4e9ac3f5fb061c769ee95ba484
Create a new readme
[ { "change_type": "ADD", "old_path": null, "new_path": "SETUP.md", "diff": "+1 Install\n+---------\n+\n+To install a _**development**_ version of Bolt:\n+\n+ - Check out this git repository\n+ - Then run:\n+\n+<!-- If you're reading this, and you're curious about the echo statement below:\n+We've found that people are _really_ terrible at reading. There's a big notice\n+on the top of this page, telling people the purpose of this repository, but\n+they miss it, and just paste the following on the CLI, assuming it's what they\n+need. -->\n+\n+```bash\n+echo \"\\n\\nAre you sure you shouldn't use https://docs.bolt.cm/installation instead?\\n\\n\"\n+sleep 5\n+composer install\n+npm install && npm run build\n+```\n+\n+Alternatively, run `make install`, on a UNIX-like system.\n+\n+If you already have Bolt 4 installed and need to update dependencies run:\n+```bash\n+composer update\n+```\n+\n+### Or install with Docker\n+\n+To install a _**development**_ version of Bolt 4 with Docker:\n+\n+ - Check out the git repo\n+ - Then run:\n+\n+```bash\n+echo \"\\n\\nAre you sure you shouldn't use https://docs.bolt.cm/installation instead?\\n\\n\"\n+sleep 5\n+make docker-install\n+```\n+\n+Actually, just add `docker-` prefix to any Make command and that's it!\n+\n+When installed with Docker, in your browser go to `http://0.0.0.0:8088/` for the frontend, and to\n+`http://0.0.0.0:8088/bolt` for the Admin Panel.\n+\n+2 Set up Database\n+-----------------\n+\n+ - Configure the database connection in `.env` or stick with the default\n+ SQLite, which should work out of the box.\n+ - Then run:\n+\n+```bash\n+bin/console doctrine:database:create\n+bin/console doctrine:schema:create\n+bin/console doctrine:fixtures:load -n\n+```\n+\n+Alternatively, run `make db-create`, on a UNIX-like system.\n+\n+Note: if you're using SQLite, ensure that `var/db/` is readable and writable to\n+you, as well as to the webserver users. The same applies to the file\n+`var/data/bolt.sqlite` if it already exists.\n+\n+3 Re-set the Database\n+---------------------\n+\n+This is a Bolt prototype in flux, so stuff can break, and you might want to reset the database to\n+the \"factory settings\". To re-set a database to the latest, with fresh\n+dummy-content run the following:\n+\n+```\n+bin/console doctrine:schema:drop --force\n+bin/console doctrine:schema:create\n+bin/console doctrine:fixtures:load -n\n+```\n+\n+Alternatively, run `make db-reset`, on a UNIX-like system.\n+\n+4 How to build assets\n+---------------------\n+\n+To set up initially, run `npm install` to get the required dependencies /\n+`node_modules`. Alternatively give the path to the python executable (`npm install --python=\"/usr/local/bin/python3.7\"`) Then:\n+ - Prepare directory structure `mkdir -p node_modules/node-sass/vendor`\n+ - Rebuild npm environment for current OS `npm rebuild node-sass`\n+ - Run `npm run start` (alternatively `npm run start --python=\"/usr/local/bin/python3.7\"`)\n+\n+See the other options by running `npm run`.\n+(Note: on testing remotely, assets can be compiled into public/assets by simply `npm run-script build`)\n+\n+5 Run the prototype\n+-------------------\n+\n+ - Using the Symfony CLI tool, just run `symfony server:start`.\n+\n+ - Alternatively, run `bin/console server:start`\n+ (if running `bin/console server:start`does not work because you don't have the pcntl extension, run `bin/console server:run`)\n+\n+In your browser, go to `http://127.0.0.1:8000/` for the frontend, and to\n+`http://127.0.0.1:8000/bolt` for the Admin Panel.\n+\n+You can log on, using the default user & pass:\n+\n+ - user: `admin`\n+ - pass: `admin%1`\n+\n+\n+Code Style checking / Static Analysis\n+-------------------------------------\n+\n+Run the following commands with `make`, to perform Code Style checking and\n+automatic fixing:\n+\n+ - `make cscheck`: Run ECS and PHPStan\n+ - `make csfix`: Run ECS, perform automatic fixes and run PHPStan\n+\n+On windows, you can run the commands separately:\n+\n+```bash\n+vendor/bin/ecs.bat check src\n+```\n+\n+```bash\n+vendor/bin/ecs.bat check src --fix\n+```\n+\n+```bash\n+vendor/bin/phpstan.bat analyse -c phpstan.neon src\n+```\n+\n+Testing\n+-------\n+\n+Bolt uses several testing frameworks for [different test layers][fowler]:\n+\n+- unit: PHPSpec, PHPUnit, Jest\n+- integration (of Symfony services): PHPUnit with KernelTestCase\n+- functional (API Contracts): Behat\n+- acceptance (UI, end-to-end): Behat/Mink\n+\n+To run PHP unit tests:\n+```\n+make test\n+```\n+\n+To run E2E tests:\n+```\n+make behat-js\n+```\n+\n+Read more about running and creating tests on the [e2e tests page](tests/e2e/README.md).\n+\n+Fixing IDE issues\n+-----------------\n+\n+- PHPStorm does not see `@bolt` Twig namespace.\n+\n+ The namespace needs to be added manually in Twig Plugin settings, pointing to `templates` folder.\n+\n+\n+Translations\n+------------\n+\n+These are the translations used in Bolt. We rely on the community to expand on new\n+translations, and keep them up to date. If you wish to participate, read the\n+[instructions here][translations].\n+\n+Several translation-related Console commands are available:\n+\n+ - `bin/console translation:download` - Download translations from Loco (replaces all local ones)\n+ - `bin/console translation:sync bolt down` - Download translations from Loco (replaces local changes if there is a conflict)\n+ - `bin/console translation:sync bolt up` - Send updated translations to Loco\n" } ]
PHP
MIT License
bolt/core
Create a new readme
95,134
04.08.2021 18:45:21
-3,600
3e22fc853516fcf4ae9356a2aeea692b2b1401d6
Unlimited select field options Allows the number of options displayed in select fields to be set by the limit value in the contenttypes.yaml
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Select.vue", "new_path": "assets/js/app/editor/Components/Select.vue", "diff": ":limit=\"1000\"\n:multiple=\"multiple\"\n:options=\"options\"\n- :searchable=\"taggable\"\n+ :optionsLimit=\"optionslimit\"\n+ :searchable=\"autocomplete || taggable\"\n:show-labels=\"false\"\n:taggable=\"taggable\"\n:disabled=\"readonly\"\n@@ -70,11 +71,13 @@ export default {\nid: String,\nform: String,\noptions: Array,\n+ optionslimit: Number,\nmultiple: Boolean,\nallowempty: Boolean,\ntaggable: Boolean,\nreadonly: Boolean,\nclassname: String,\n+ autocomplete: Boolean,\nerrormessage: String | Boolean, //string if errormessage is set, and false otherwise\n},\ndata: () => {\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/fields/select.html.twig", "new_path": "templates/_partials/fields/select.html.twig", "diff": "{% set multiple = field.definition.get('multiple')|default ? 'true' : 'false' %}\n{% endif %}\n+{% if autocomplete is not defined %}\n+ {% set autocomplete = field.definition.get('autocomplete')|default ? 'true' : 'false' %}\n+{% endif %}\n+\n+{% if limit is not defined %}\n+ {% set limit = field.definition.get('limit')|default(99999) %}\n+{% endif %}\n+\n+\n{% block field %}\n<editor-select\n:classname=\"{{ \"wide-options\"|json_encode }}\"\n:name='{{ name|json_encode }}'\n:id='{{ id|json_encode }}'\n:options=\"{{ options|json_encode }}\"\n+ :optionslimit=\"{{ limit }}\"\n:form='{{ form|json_encode }}'\n:multiple=\"{{ multiple }}\"\n+ :autocomplete=\"{{ autocomplete }}\"\n:readonly=\"{{ readonly|json_encode }}\"\n:errormessage='{{ errormessage|json_encode }}'\n:allowempty=\"{{ required ? 'false' : 'true' }}\"\n" } ]
PHP
MIT License
bolt/core
Unlimited select field options Allows the number of options displayed in select fields to be set by the limit value in the contenttypes.yaml
95,168
05.08.2021 15:39:17
-7,200
bf985a55729533b5ce6ff4bb08c3caab23686140
Update postcss-loader to version ^4.0.0 since Webpack Encore does not support v3.0.0
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "\"genversion\": \"^2.3.1\",\n\"jest\": \"^25.5.4\",\n\"jest-serializer-vue\": \"^2.0.2\",\n- \"postcss-loader\": \"^3.0.0\",\n+ \"postcss-loader\": \"^4.3.0\",\n\"postcss-preset-env\": \"^6.7.0\",\n\"prettier\": \"^1.19.1\",\n\"regenerator-runtime\": \"^0.13.7\",\n\"node\": \">=4\"\n}\n},\n+ \"node_modules/@vue/cli-service/node_modules/postcss-loader\": {\n+ \"version\": \"3.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/postcss-loader/-/postcss-loader-3.0.0.tgz\",\n+ \"integrity\": \"sha512-cLWoDEY5OwHcAjDnkyRQzAXfs2jrKjXpO/HQFcc5b5u/r7aa471wdmChmwfnv7x2u840iat/wi0lQ5nbRgSkUA==\",\n+ \"dependencies\": {\n+ \"loader-utils\": \"^1.1.0\",\n+ \"postcss\": \"^7.0.0\",\n+ \"postcss-load-config\": \"^2.0.0\",\n+ \"schema-utils\": \"^1.0.0\"\n+ },\n+ \"engines\": {\n+ \"node\": \">= 6\"\n+ }\n+ },\n+ \"node_modules/@vue/cli-service/node_modules/postcss-loader/node_modules/loader-utils\": {\n+ \"version\": \"1.4.0\",\n+ \"resolved\": \"https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz\",\n+ \"integrity\": \"sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==\",\n+ \"dependencies\": {\n+ \"big.js\": \"^5.2.2\",\n+ \"emojis-list\": \"^3.0.0\",\n+ \"json5\": \"^1.0.1\"\n+ },\n+ \"engines\": {\n+ \"node\": \">=4.0.0\"\n+ }\n+ },\n+ \"node_modules/@vue/cli-service/node_modules/postcss-loader/node_modules/schema-utils\": {\n+ \"version\": \"1.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz\",\n+ \"integrity\": \"sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==\",\n+ \"dependencies\": {\n+ \"ajv\": \"^6.1.0\",\n+ \"ajv-errors\": \"^1.0.0\",\n+ \"ajv-keywords\": \"^3.1.0\"\n+ },\n+ \"engines\": {\n+ \"node\": \">= 4\"\n+ }\n+ },\n\"node_modules/@vue/cli-service/node_modules/supports-color\": {\n\"version\": \"7.2.0\",\n\"resolved\": \"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz\",\n\"node\": \">=6\"\n}\n},\n+ \"node_modules/klona\": {\n+ \"version\": \"2.0.4\",\n+ \"resolved\": \"https://registry.npmjs.org/klona/-/klona-2.0.4.tgz\",\n+ \"integrity\": \"sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==\",\n+ \"dev\": true,\n+ \"engines\": {\n+ \"node\": \">= 8\"\n+ }\n+ },\n\"node_modules/known-css-properties\": {\n\"version\": \"0.21.0\",\n\"resolved\": \"https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.21.0.tgz\",\n}\n},\n\"node_modules/postcss-loader\": {\n- \"version\": \"3.0.0\",\n- \"resolved\": \"https://registry.npmjs.org/postcss-loader/-/postcss-loader-3.0.0.tgz\",\n- \"integrity\": \"sha512-cLWoDEY5OwHcAjDnkyRQzAXfs2jrKjXpO/HQFcc5b5u/r7aa471wdmChmwfnv7x2u840iat/wi0lQ5nbRgSkUA==\",\n+ \"version\": \"4.3.0\",\n+ \"resolved\": \"https://registry.npmjs.org/postcss-loader/-/postcss-loader-4.3.0.tgz\",\n+ \"integrity\": \"sha512-M/dSoIiNDOo8Rk0mUqoj4kpGq91gcxCfb9PoyZVdZ76/AuhxylHDYZblNE8o+EQ9AMSASeMFEKxZf5aU6wlx1Q==\",\n+ \"dev\": true,\n\"dependencies\": {\n- \"loader-utils\": \"^1.1.0\",\n- \"postcss\": \"^7.0.0\",\n- \"postcss-load-config\": \"^2.0.0\",\n- \"schema-utils\": \"^1.0.0\"\n+ \"cosmiconfig\": \"^7.0.0\",\n+ \"klona\": \"^2.0.4\",\n+ \"loader-utils\": \"^2.0.0\",\n+ \"schema-utils\": \"^3.0.0\",\n+ \"semver\": \"^7.3.4\"\n+ },\n+ \"engines\": {\n+ \"node\": \">= 10.13.0\"\n+ },\n+ \"funding\": {\n+ \"type\": \"opencollective\",\n+ \"url\": \"https://opencollective.com/webpack\"\n+ },\n+ \"peerDependencies\": {\n+ \"postcss\": \"^7.0.0 || ^8.0.1\",\n+ \"webpack\": \"^4.0.0 || ^5.0.0\"\n+ }\n+ },\n+ \"node_modules/postcss-loader/node_modules/cosmiconfig\": {\n+ \"version\": \"7.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz\",\n+ \"integrity\": \"sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==\",\n+ \"dev\": true,\n+ \"dependencies\": {\n+ \"@types/parse-json\": \"^4.0.0\",\n+ \"import-fresh\": \"^3.2.1\",\n+ \"parse-json\": \"^5.0.0\",\n+ \"path-type\": \"^4.0.0\",\n+ \"yaml\": \"^1.10.0\"\n+ },\n+ \"engines\": {\n+ \"node\": \">=10\"\n+ }\n+ },\n+ \"node_modules/postcss-loader/node_modules/import-fresh\": {\n+ \"version\": \"3.3.0\",\n+ \"resolved\": \"https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz\",\n+ \"integrity\": \"sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==\",\n+ \"dev\": true,\n+ \"dependencies\": {\n+ \"parent-module\": \"^1.0.0\",\n+ \"resolve-from\": \"^4.0.0\"\n},\n\"engines\": {\n\"node\": \">=6\"\n+ },\n+ \"funding\": {\n+ \"url\": \"https://github.com/sponsors/sindresorhus\"\n}\n},\n- \"node_modules/postcss-loader/node_modules/json5\": {\n- \"version\": \"1.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/json5/-/json5-1.0.1.tgz\",\n- \"integrity\": \"sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==\",\n+ \"node_modules/postcss-loader/node_modules/lru-cache\": {\n+ \"version\": \"6.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz\",\n+ \"integrity\": \"sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==\",\n+ \"dev\": true,\n\"dependencies\": {\n- \"minimist\": \"^1.2.0\"\n+ \"yallist\": \"^4.0.0\"\n},\n- \"bin\": {\n- \"json5\": \"lib/cli.js\"\n+ \"engines\": {\n+ \"node\": \">=10\"\n}\n},\n- \"node_modules/postcss-loader/node_modules/loader-utils\": {\n- \"version\": \"1.4.0\",\n- \"resolved\": \"https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz\",\n- \"integrity\": \"sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==\",\n+ \"node_modules/postcss-loader/node_modules/parse-json\": {\n+ \"version\": \"5.2.0\",\n+ \"resolved\": \"https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz\",\n+ \"integrity\": \"sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==\",\n+ \"dev\": true,\n\"dependencies\": {\n- \"big.js\": \"^5.2.2\",\n- \"emojis-list\": \"^3.0.0\",\n- \"json5\": \"^1.0.1\"\n+ \"@babel/code-frame\": \"^7.0.0\",\n+ \"error-ex\": \"^1.3.1\",\n+ \"json-parse-even-better-errors\": \"^2.3.0\",\n+ \"lines-and-columns\": \"^1.1.6\"\n},\n\"engines\": {\n- \"node\": \">=4.0.0\"\n+ \"node\": \">=8\"\n+ },\n+ \"funding\": {\n+ \"url\": \"https://github.com/sponsors/sindresorhus\"\n+ }\n+ },\n+ \"node_modules/postcss-loader/node_modules/path-type\": {\n+ \"version\": \"4.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz\",\n+ \"integrity\": \"sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==\",\n+ \"dev\": true,\n+ \"engines\": {\n+ \"node\": \">=8\"\n+ }\n+ },\n+ \"node_modules/postcss-loader/node_modules/resolve-from\": {\n+ \"version\": \"4.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz\",\n+ \"integrity\": \"sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==\",\n+ \"dev\": true,\n+ \"engines\": {\n+ \"node\": \">=4\"\n}\n},\n\"node_modules/postcss-loader/node_modules/schema-utils\": {\n- \"version\": \"1.0.0\",\n- \"resolved\": \"https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz\",\n- \"integrity\": \"sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==\",\n+ \"version\": \"3.1.1\",\n+ \"resolved\": \"https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz\",\n+ \"integrity\": \"sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==\",\n+ \"dev\": true,\n\"dependencies\": {\n- \"ajv\": \"^6.1.0\",\n- \"ajv-errors\": \"^1.0.0\",\n- \"ajv-keywords\": \"^3.1.0\"\n+ \"@types/json-schema\": \"^7.0.8\",\n+ \"ajv\": \"^6.12.5\",\n+ \"ajv-keywords\": \"^3.5.2\"\n},\n\"engines\": {\n- \"node\": \">= 4\"\n+ \"node\": \">= 10.13.0\"\n+ },\n+ \"funding\": {\n+ \"type\": \"opencollective\",\n+ \"url\": \"https://opencollective.com/webpack\"\n+ }\n+ },\n+ \"node_modules/postcss-loader/node_modules/semver\": {\n+ \"version\": \"7.3.5\",\n+ \"resolved\": \"https://registry.npmjs.org/semver/-/semver-7.3.5.tgz\",\n+ \"integrity\": \"sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==\",\n+ \"dev\": true,\n+ \"dependencies\": {\n+ \"lru-cache\": \"^6.0.0\"\n+ },\n+ \"bin\": {\n+ \"semver\": \"bin/semver.js\"\n+ },\n+ \"engines\": {\n+ \"node\": \">=10\"\n}\n},\n+ \"node_modules/postcss-loader/node_modules/yallist\": {\n+ \"version\": \"4.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz\",\n+ \"integrity\": \"sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==\",\n+ \"dev\": true\n+ },\n\"node_modules/postcss-logical\": {\n\"version\": \"3.0.0\",\n\"resolved\": \"https://registry.npmjs.org/postcss-logical/-/postcss-logical-3.0.0.tgz\",\n\"sort-keys\": \"^1.0.0\"\n}\n},\n+ \"postcss-loader\": {\n+ \"version\": \"3.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/postcss-loader/-/postcss-loader-3.0.0.tgz\",\n+ \"integrity\": \"sha512-cLWoDEY5OwHcAjDnkyRQzAXfs2jrKjXpO/HQFcc5b5u/r7aa471wdmChmwfnv7x2u840iat/wi0lQ5nbRgSkUA==\",\n+ \"requires\": {\n+ \"loader-utils\": \"^1.1.0\",\n+ \"postcss\": \"^7.0.0\",\n+ \"postcss-load-config\": \"^2.0.0\",\n+ \"schema-utils\": \"^1.0.0\"\n+ },\n+ \"dependencies\": {\n+ \"loader-utils\": {\n+ \"version\": \"1.4.0\",\n+ \"resolved\": \"https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz\",\n+ \"integrity\": \"sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==\",\n+ \"requires\": {\n+ \"big.js\": \"^5.2.2\",\n+ \"emojis-list\": \"^3.0.0\",\n+ \"json5\": \"^1.0.1\"\n+ }\n+ },\n+ \"schema-utils\": {\n+ \"version\": \"1.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz\",\n+ \"integrity\": \"sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==\",\n+ \"requires\": {\n+ \"ajv\": \"^6.1.0\",\n+ \"ajv-errors\": \"^1.0.0\",\n+ \"ajv-keywords\": \"^3.1.0\"\n+ }\n+ }\n+ }\n+ },\n\"supports-color\": {\n\"version\": \"7.2.0\",\n\"resolved\": \"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz\",\n\"integrity\": \"sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==\",\n\"dev\": true\n},\n+ \"klona\": {\n+ \"version\": \"2.0.4\",\n+ \"resolved\": \"https://registry.npmjs.org/klona/-/klona-2.0.4.tgz\",\n+ \"integrity\": \"sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==\",\n+ \"dev\": true\n+ },\n\"known-css-properties\": {\n\"version\": \"0.21.0\",\n\"resolved\": \"https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.21.0.tgz\",\n}\n},\n\"postcss-loader\": {\n- \"version\": \"3.0.0\",\n- \"resolved\": \"https://registry.npmjs.org/postcss-loader/-/postcss-loader-3.0.0.tgz\",\n- \"integrity\": \"sha512-cLWoDEY5OwHcAjDnkyRQzAXfs2jrKjXpO/HQFcc5b5u/r7aa471wdmChmwfnv7x2u840iat/wi0lQ5nbRgSkUA==\",\n+ \"version\": \"4.3.0\",\n+ \"resolved\": \"https://registry.npmjs.org/postcss-loader/-/postcss-loader-4.3.0.tgz\",\n+ \"integrity\": \"sha512-M/dSoIiNDOo8Rk0mUqoj4kpGq91gcxCfb9PoyZVdZ76/AuhxylHDYZblNE8o+EQ9AMSASeMFEKxZf5aU6wlx1Q==\",\n+ \"dev\": true,\n\"requires\": {\n- \"loader-utils\": \"^1.1.0\",\n- \"postcss\": \"^7.0.0\",\n- \"postcss-load-config\": \"^2.0.0\",\n- \"schema-utils\": \"^1.0.0\"\n+ \"cosmiconfig\": \"^7.0.0\",\n+ \"klona\": \"^2.0.4\",\n+ \"loader-utils\": \"^2.0.0\",\n+ \"schema-utils\": \"^3.0.0\",\n+ \"semver\": \"^7.3.4\"\n},\n\"dependencies\": {\n- \"json5\": {\n- \"version\": \"1.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/json5/-/json5-1.0.1.tgz\",\n- \"integrity\": \"sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==\",\n+ \"cosmiconfig\": {\n+ \"version\": \"7.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz\",\n+ \"integrity\": \"sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==\",\n+ \"dev\": true,\n\"requires\": {\n- \"minimist\": \"^1.2.0\"\n+ \"@types/parse-json\": \"^4.0.0\",\n+ \"import-fresh\": \"^3.2.1\",\n+ \"parse-json\": \"^5.0.0\",\n+ \"path-type\": \"^4.0.0\",\n+ \"yaml\": \"^1.10.0\"\n}\n},\n- \"loader-utils\": {\n- \"version\": \"1.4.0\",\n- \"resolved\": \"https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz\",\n- \"integrity\": \"sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==\",\n+ \"import-fresh\": {\n+ \"version\": \"3.3.0\",\n+ \"resolved\": \"https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz\",\n+ \"integrity\": \"sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==\",\n+ \"dev\": true,\n\"requires\": {\n- \"big.js\": \"^5.2.2\",\n- \"emojis-list\": \"^3.0.0\",\n- \"json5\": \"^1.0.1\"\n+ \"parent-module\": \"^1.0.0\",\n+ \"resolve-from\": \"^4.0.0\"\n+ }\n+ },\n+ \"lru-cache\": {\n+ \"version\": \"6.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz\",\n+ \"integrity\": \"sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==\",\n+ \"dev\": true,\n+ \"requires\": {\n+ \"yallist\": \"^4.0.0\"\n+ }\n+ },\n+ \"parse-json\": {\n+ \"version\": \"5.2.0\",\n+ \"resolved\": \"https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz\",\n+ \"integrity\": \"sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==\",\n+ \"dev\": true,\n+ \"requires\": {\n+ \"@babel/code-frame\": \"^7.0.0\",\n+ \"error-ex\": \"^1.3.1\",\n+ \"json-parse-even-better-errors\": \"^2.3.0\",\n+ \"lines-and-columns\": \"^1.1.6\"\n}\n},\n+ \"path-type\": {\n+ \"version\": \"4.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz\",\n+ \"integrity\": \"sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==\",\n+ \"dev\": true\n+ },\n+ \"resolve-from\": {\n+ \"version\": \"4.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz\",\n+ \"integrity\": \"sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==\",\n+ \"dev\": true\n+ },\n\"schema-utils\": {\n- \"version\": \"1.0.0\",\n- \"resolved\": \"https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz\",\n- \"integrity\": \"sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==\",\n+ \"version\": \"3.1.1\",\n+ \"resolved\": \"https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz\",\n+ \"integrity\": \"sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==\",\n+ \"dev\": true,\n\"requires\": {\n- \"ajv\": \"^6.1.0\",\n- \"ajv-errors\": \"^1.0.0\",\n- \"ajv-keywords\": \"^3.1.0\"\n+ \"@types/json-schema\": \"^7.0.8\",\n+ \"ajv\": \"^6.12.5\",\n+ \"ajv-keywords\": \"^3.5.2\"\n}\n+ },\n+ \"semver\": {\n+ \"version\": \"7.3.5\",\n+ \"resolved\": \"https://registry.npmjs.org/semver/-/semver-7.3.5.tgz\",\n+ \"integrity\": \"sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==\",\n+ \"dev\": true,\n+ \"requires\": {\n+ \"lru-cache\": \"^6.0.0\"\n+ }\n+ },\n+ \"yallist\": {\n+ \"version\": \"4.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz\",\n+ \"integrity\": \"sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==\",\n+ \"dev\": true\n}\n}\n},\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"genversion\": \"^2.3.1\",\n\"jest\": \"^25.5.4\",\n\"jest-serializer-vue\": \"^2.0.2\",\n- \"postcss-loader\": \"^3.0.0\",\n+ \"postcss-loader\": \"^4.3.0\",\n\"postcss-preset-env\": \"^6.7.0\",\n\"prettier\": \"^1.19.1\",\n\"regenerator-runtime\": \"^0.13.7\",\n" } ]
PHP
MIT License
bolt/core
Update postcss-loader to version ^4.0.0 since Webpack Encore does not support v3.0.0