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,190
04.10.2020 00:41:01
-7,200
d9c23121fd39640c226d5f68ad23639334d6b165
Fully postgres/mysql compatible
[ { "change_type": "MODIFY", "old_path": "config/packages/doctrine.yaml", "new_path": "config/packages/doctrine.yaml", "diff": "@@ -31,7 +31,9 @@ doctrine:\nalias: App\ndql:\nstring_functions:\n- JSON_EXTRACT: Bolt\\Doctrine\\Functions\\JsonExtract\n+ JSON_EXTRACT: Bolt\\Doctrine\\Functions\\JsonExtract # Why have a duplicate of the Scienta version?\n+ # JSON_EXTRACT_PATH: Scienta\\DoctrineJsonFunctions\\Query\\AST\\Functions\\Postgresql\\JsonExtractPath\n+ JSON_GET_TEXT: Scienta\\DoctrineJsonFunctions\\Query\\AST\\Functions\\Postgresql\\JsonGetText\n# CAST: DoctrineExtensions\\Query\\Mysql\\Cast\nCAST: Bolt\\Doctrine\\Query\\Cast\nnumeric_functions:\n" }, { "change_type": "MODIFY", "old_path": "src/Doctrine/JsonHelper.php", "new_path": "src/Doctrine/JsonHelper.php", "diff": "@@ -23,9 +23,19 @@ class JsonHelper\npublic static function wrapJsonFunction(?string $where = null, ?string $slug = null, Connection $connection)\n{\n$version = new Version($connection);\n+ //print_r($version->getPlatform()['driver_name']); # pgsql\n+ //exit(print($where)); // translations_anyField.value\nif ($version->hasJson()) {\n+ //PostgreSQL handles JSON differently than MySQL\n+ if ($version->getPlatform()['driver_name'] === 'pgsql') {\n+ // PostgreSQL\n+ $resultWhere = 'JSON_GET_TEXT(' . $where . ', 0)';\n+ } else {\n+ // MySQL and SQLite\n$resultWhere = 'JSON_EXTRACT(' . $where . \", '$[0]')\";\n+ }\n+ //exit($resultWhere);\n$resultSlug = $slug;\n} else {\n$resultWhere = $where;\n" }, { "change_type": "MODIFY", "old_path": "src/Doctrine/Version.php", "new_path": "src/Doctrine/Version.php", "diff": "@@ -9,6 +9,7 @@ use Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\Driver\\PDOConnection;\nuse Doctrine\\DBAL\\Platforms\\MariaDb1027Platform;\nuse Doctrine\\DBAL\\Platforms\\MySQL57Platform;\n+use Doctrine\\DBAL\\Platforms\\PostgreSQL92Platform;\nuse Doctrine\\DBAL\\Platforms\\SqlitePlatform;\nclass Version\n@@ -87,6 +88,11 @@ class Version\nreturn true;\n}\n+ // PostgreSQL supports JSON from v9.2 and above, later versions are implicitly included\n+ if ($platform instanceof PostgreSQL92Platform) {\n+ return true;\n+ }\n+\nreturn false;\n}\n" }, { "change_type": "MODIFY", "old_path": "src/Repository/ContentRepository.php", "new_path": "src/Repository/ContentRepository.php", "diff": "@@ -94,14 +94,14 @@ class ContentRepository extends ServiceEntityRepository\n$qb = $this->getQueryBuilder()\n->select('partial content.{id}');\n- // For PostgreSQL we need to CAST the jsonb to text. For SQLite this is not required but also works\n- // For mysql however, an error is thrown. the JSON can be directly searched without CAST.\n- // So, there is need for a custom CAST function, which reacts when json/b is casted to text\n- // this can probably be more efficient by a seperate ->Cast implementation\n+ // proper JSON wrapping solves a lot of problems (added PostgreSQL compatibility)\n+ $connection = $qb->getEntityManager()->getConnection();\n+ [$where, $searchTerm] = JsonHelper::wrapJsonFunction('t.value', $searchTerm, $connection);\n+\n$qb->addSelect('f')\n->innerJoin('content.fields', 'f')\n->innerJoin('f.translations', 't')\n- ->andWhere($qb->expr()->like('CAST(t.value AS TEXT)', ':search'))\n+ ->andWhere($qb->expr()->like($where, ':search'))\n->setParameter('search', '%' . $searchTerm . '%');\n// These are the ID's of content we need.\n" } ]
PHP
MIT License
bolt/core
Fully postgres/mysql compatible
95,144
04.10.2020 14:05:13
-7,200
e8637a179f3ad6eea469f89c5d895a699692f328
Add missing `json_decode` Twig Filter
[ { "change_type": "MODIFY", "old_path": "src/Twig/JsonExtension.php", "new_path": "src/Twig/JsonExtension.php", "diff": "@@ -36,6 +36,7 @@ class JsonExtension extends AbstractExtension\nreturn [\nnew TwigFilter('normalize_records', [$this, 'normalizeRecords']),\nnew TwigFilter('json_records', [$this, 'jsonRecords']),\n+ new TwigFilter('json_decode', [$this, 'jsonDecode']),\n];\n}\n@@ -113,4 +114,9 @@ class JsonExtension extends AbstractExtension\n{\nreturn Json::test($string);\n}\n+\n+ public function jsonDecode(string $json, $assoc = false, $depth = 512, $options = 0)\n+ {\n+ return json::json_decode($json, $assoc, $depth, $options);\n+ }\n}\n" } ]
PHP
MIT License
bolt/core
Add missing `json_decode` Twig Filter
95,144
04.10.2020 14:38:39
-7,200
daf3799f1c0222a912997cb24ae5459b2d654c0f
Ensure we have an array of records in "select" block
[ { "change_type": "MODIFY", "old_path": "templates/helpers/_field_blocks.twig", "new_path": "templates/helpers/_field_blocks.twig", "diff": "<p><strong>{{ field|label }}: </strong></p>\n<ul>\n{% if field.contentSelect %}\n- {% setcontent selected = field.contentType where {'id': field.selectedIds} %}\n+ {% setcontent selected = field.contentType where {'id': field.selectedIds} returnmultiple %}\n{% for record in selected %}\n<li><a href=\"{{ record|link }}\">{{ record|title }}</a></li>\n{% endfor %}\n" } ]
PHP
MIT License
bolt/core
Ensure we have an array of records in "select" block
95,190
05.10.2020 09:59:06
-7,200
fea65d4910db636428b601be2c3d41495c43e801
Further cleanup & fix of showcase editability in postgres
[ { "change_type": "MODIFY", "old_path": "config/packages/doctrine.yaml", "new_path": "config/packages/doctrine.yaml", "diff": "@@ -31,10 +31,8 @@ doctrine:\nalias: App\ndql:\nstring_functions:\n- JSON_EXTRACT: Bolt\\Doctrine\\Functions\\JsonExtract # Why have a duplicate of the Scienta version?\n- # JSON_EXTRACT_PATH: Scienta\\DoctrineJsonFunctions\\Query\\AST\\Functions\\Postgresql\\JsonExtractPath\n+ JSON_EXTRACT: Bolt\\Doctrine\\Functions\\JsonExtract\nJSON_GET_TEXT: Scienta\\DoctrineJsonFunctions\\Query\\AST\\Functions\\Postgresql\\JsonGetText\n- # CAST: DoctrineExtensions\\Query\\Mysql\\Cast\nCAST: Bolt\\Doctrine\\Query\\Cast\nnumeric_functions:\nRAND: Bolt\\Doctrine\\Functions\\Rand\n" }, { "change_type": "MODIFY", "old_path": "src/Doctrine/Query/Cast.php", "new_path": "src/Doctrine/Query/Cast.php", "diff": "@@ -21,12 +21,17 @@ class Cast extends FunctionNode\npublic function getSql(SqlWalker $sqlWalker): string\n{\n$backend_driver = $sqlWalker->getConnection()->getDriver()->getName();\n+\n// test if we are using MySQL\nif (mb_strpos($backend_driver, 'mysql') !== false) {\n+ // YES we are using MySQL\n// how do we know what type $this->first is? For now hardcoding\n// type(t.value) = JSON for MySQL. JSONB for others.\n- // alternatively, test if true: $this->first->dispatch($sqlWalker)==='b2_.value'\n- if ($this->first->identificationVariable === 't' && $this->first->field === 'value' && $this->second === 'TEXT') {\n+ // alternatively, test if true: $this->first->dispatch($sqlWalker)==='b2_.value',\n+ // b4_.value for /bolt/new/showcases\n+ if ($this->first->dispatch($sqlWalker)==='b2_.value' ||\n+ $this->first->dispatch($sqlWalker)==='b4_.value')\n+ {\nreturn $this->first->dispatch($sqlWalker);\n}\n}\n" }, { "change_type": "MODIFY", "old_path": "src/Storage/Directive/OrderDirective.php", "new_path": "src/Storage/Directive/OrderDirective.php", "diff": "@@ -115,9 +115,10 @@ class OrderDirective\n} else {\n// Note the `lower()` in the `addOrderBy()`. It is essential to sorting the\n// results correctly. See also https://github.com/bolt/core/issues/1190\n+ // again: lower breaks postgresql jsonb compatibility, first cast as txt\n$query\n->getQueryBuilder()\n- ->addOrderBy('lower(' . $translationsAlias . '.value)', $direction);\n+ ->addOrderBy('lower(CAST(' . $translationsAlias . '.value as TEXT))', $direction);\n}\n$query->incrementIndex();\n} else {\n" }, { "change_type": "MODIFY", "old_path": "templates/helpers/_field_blocks.twig", "new_path": "templates/helpers/_field_blocks.twig", "diff": "{# Special case for 'select' fields: if it's a multiple select, the field is an array. #}\n{# I dont know what is going on here, but field.selectedIds for pgsql showcase/mr-jean-feeney (and others) #}\n- {# yield field values, NOT integer IDs.. Also, selectedIds does not exists (try dump(field) ) #}\n- {# TODO: FIX IT, bypassing for now by setting field.id #}\n+ {# yield field values (strings containing full name!), NOT integer IDs.. #}\n+ {# TODO: FIX IT, bypassing for now by selecting on 'value' (string) and not 'id' (int) #}\n{% if type == \"select\" and field is not empty %}\n<p><strong>{{ field|label }}: </strong></p>\n<ul>\n{% if field.contentSelect %}\n- {% setcontent selected = field.contentType where {'id': field.id} %}\n+ {% setcontent selected = field.contentType where {'value': field.selectedIds} %}\n{% for record in selected %}\n<li><a href=\"{{ record|link }}\">{{ record|title }}</a></li>\n{% endfor %}\n" } ]
PHP
MIT License
bolt/core
Further cleanup & fix of showcase editability in postgres
95,144
05.10.2020 13:02:49
-7,200
9a401e9ab650775713144665e5883765134d2080
Delete Version20200219064805.php
[ { "change_type": "DELETE", "old_path": "src/Migrations/Version20200219064805.php", "new_path": null, "diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-namespace Bolt\\Migrations;\n-\n-use Doctrine\\DBAL\\Schema\\Schema;\n-use Doctrine\\Migrations\\AbstractMigration;\n-\n-/**\n- * Auto-generated Migration: Please modify to your needs!\n- */\n-final class Version20200219064805 extends AbstractMigration\n-{\n- public function getDescription(): string\n- {\n- return '';\n- }\n-\n- public function up(Schema $schema): void\n- {\n- // this up() migration is auto-generated, please modify it to your needs\n- $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'sqlite', 'Migration can only be executed safely on \\'sqlite\\'.');\n-\n- $this->addSql('DROP INDEX IDX_3431ED74AF0465EA');\n- $this->addSql('DROP INDEX IDX_3431ED74A3934190');\n- $this->addSql('DROP INDEX name_idx');\n- $this->addSql('DROP INDEX group_idx');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_relation AS SELECT id, from_content_id, to_content_id, name, position, \"group\" FROM bolt_relation');\n- $this->addSql('DROP TABLE bolt_relation');\n- $this->addSql('CREATE TABLE bolt_relation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, from_content_id INTEGER NOT NULL, to_content_id INTEGER NOT NULL, name VARCHAR(191) NOT NULL COLLATE BINARY, position INTEGER NOT NULL, \"group\" VARCHAR(191) NOT NULL COLLATE BINARY, CONSTRAINT FK_3431ED74AF0465EA FOREIGN KEY (from_content_id) REFERENCES bolt_content (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT FK_3431ED74A3934190 FOREIGN KEY (to_content_id) REFERENCES bolt_content (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)');\n- $this->addSql('INSERT INTO bolt_relation (id, from_content_id, to_content_id, name, position, \"group\") SELECT id, from_content_id, to_content_id, name, position, \"group\" FROM __temp__bolt_relation');\n- $this->addSql('DROP TABLE __temp__bolt_relation');\n- $this->addSql('CREATE INDEX IDX_3431ED74AF0465EA ON bolt_relation (from_content_id)');\n- $this->addSql('CREATE INDEX IDX_3431ED74A3934190 ON bolt_relation (to_content_id)');\n- $this->addSql('CREATE INDEX name_idx ON bolt_relation (name)');\n- $this->addSql('CREATE INDEX group_idx ON bolt_relation (\"group\")');\n- $this->addSql('DROP INDEX IDX_C5BCC03C9557E6F6');\n- $this->addSql('DROP INDEX IDX_C5BCC03C84A0A3ED');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_taxonomy_content AS SELECT taxonomy_id, content_id FROM bolt_taxonomy_content');\n- $this->addSql('DROP TABLE bolt_taxonomy_content');\n- $this->addSql('CREATE TABLE bolt_taxonomy_content (taxonomy_id INTEGER NOT NULL, content_id INTEGER NOT NULL, PRIMARY KEY(taxonomy_id, content_id), CONSTRAINT FK_C5BCC03C9557E6F6 FOREIGN KEY (taxonomy_id) REFERENCES bolt_taxonomy (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT FK_C5BCC03C84A0A3ED FOREIGN KEY (content_id) REFERENCES bolt_content (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)');\n- $this->addSql('INSERT INTO bolt_taxonomy_content (taxonomy_id, content_id) SELECT taxonomy_id, content_id FROM __temp__bolt_taxonomy_content');\n- $this->addSql('DROP TABLE __temp__bolt_taxonomy_content');\n- $this->addSql('CREATE INDEX IDX_C5BCC03C9557E6F6 ON bolt_taxonomy_content (taxonomy_id)');\n- $this->addSql('CREATE INDEX IDX_C5BCC03C84A0A3ED ON bolt_taxonomy_content (content_id)');\n- $this->addSql('DROP INDEX IDX_F5AB2E9CF675F31B');\n- $this->addSql('DROP INDEX content_type_idx');\n- $this->addSql('DROP INDEX status_idx');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_content AS SELECT id, author_id, content_type, status, created_at, modified_at, published_at, depublished_at FROM bolt_content');\n- $this->addSql('DROP TABLE bolt_content');\n- $this->addSql('CREATE TABLE bolt_content (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, author_id INTEGER DEFAULT NULL, content_type VARCHAR(191) NOT NULL COLLATE BINARY, status VARCHAR(191) NOT NULL COLLATE BINARY, created_at DATETIME NOT NULL, modified_at DATETIME DEFAULT NULL, published_at DATETIME DEFAULT NULL, depublished_at DATETIME DEFAULT NULL, CONSTRAINT FK_F5AB2E9CF675F31B FOREIGN KEY (author_id) REFERENCES bolt_user (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');\n- $this->addSql('INSERT INTO bolt_content (id, author_id, content_type, status, created_at, modified_at, published_at, depublished_at) SELECT id, author_id, content_type, status, created_at, modified_at, published_at, depublished_at FROM __temp__bolt_content');\n- $this->addSql('DROP TABLE __temp__bolt_content');\n- $this->addSql('CREATE INDEX IDX_F5AB2E9CF675F31B ON bolt_content (author_id)');\n- $this->addSql('CREATE INDEX content_type_idx ON bolt_content (content_type)');\n- $this->addSql('CREATE INDEX status_idx ON bolt_content (status)');\n- $this->addSql('DROP INDEX IDX_4A2EBBE584A0A3ED');\n- $this->addSql('DROP INDEX IDX_4A2EBBE5727ACA70');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_field AS SELECT id, content_id, parent_id, name, sortorder, version, type FROM bolt_field');\n- $this->addSql('DROP TABLE bolt_field');\n- $this->addSql('CREATE TABLE bolt_field (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, content_id INTEGER NOT NULL, parent_id INTEGER DEFAULT NULL, name VARCHAR(191) NOT NULL COLLATE BINARY, sortorder INTEGER NOT NULL, version INTEGER DEFAULT NULL, type VARCHAR(191) NOT NULL COLLATE BINARY, CONSTRAINT FK_4A2EBBE584A0A3ED FOREIGN KEY (content_id) REFERENCES bolt_content (id) NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT FK_4A2EBBE5727ACA70 FOREIGN KEY (parent_id) REFERENCES bolt_field (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');\n- $this->addSql('INSERT INTO bolt_field (id, content_id, parent_id, name, sortorder, version, type) SELECT id, content_id, parent_id, name, sortorder, version, type FROM __temp__bolt_field');\n- $this->addSql('DROP TABLE __temp__bolt_field');\n- $this->addSql('CREATE INDEX IDX_4A2EBBE584A0A3ED ON bolt_field (content_id)');\n- $this->addSql('CREATE INDEX IDX_4A2EBBE5727ACA70 ON bolt_field (parent_id)');\n- $this->addSql('DROP INDEX IDX_5C60C0542C2AC5D3');\n- $this->addSql('DROP INDEX field_translation_unique_translation');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_field_translation AS SELECT id, translatable_id, value, locale FROM bolt_field_translation');\n- $this->addSql('DROP TABLE bolt_field_translation');\n- $this->addSql('CREATE TABLE bolt_field_translation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, translatable_id INTEGER DEFAULT NULL, value CLOB NOT NULL COLLATE BINARY --(DC2Type:json)\n- , locale VARCHAR(5) NOT NULL COLLATE BINARY, CONSTRAINT FK_5C60C0542C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES bolt_field (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)');\n- $this->addSql('INSERT INTO bolt_field_translation (id, translatable_id, value, locale) SELECT id, translatable_id, value, locale FROM __temp__bolt_field_translation');\n- $this->addSql('DROP TABLE __temp__bolt_field_translation');\n- $this->addSql('CREATE INDEX IDX_5C60C0542C2AC5D3 ON bolt_field_translation (translatable_id)');\n- $this->addSql('CREATE UNIQUE INDEX field_translation_unique_translation ON bolt_field_translation (translatable_id, locale)');\n- $this->addSql('DROP INDEX UNIQ_8B90D313A76ED395');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_user_auth_token AS SELECT id, user_id, useragent, validity FROM bolt_user_auth_token');\n- $this->addSql('DROP TABLE bolt_user_auth_token');\n- $this->addSql('CREATE TABLE bolt_user_auth_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, user_id INTEGER DEFAULT NULL, useragent VARCHAR(255) NOT NULL COLLATE BINARY, validity DATETIME NOT NULL, CONSTRAINT FK_8B90D313A76ED395 FOREIGN KEY (user_id) REFERENCES bolt_user (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');\n- $this->addSql('INSERT INTO bolt_user_auth_token (id, user_id, useragent, validity) SELECT id, user_id, useragent, validity FROM __temp__bolt_user_auth_token');\n- $this->addSql('DROP TABLE __temp__bolt_user_auth_token');\n- $this->addSql('CREATE UNIQUE INDEX UNIQ_8B90D313A76ED395 ON bolt_user_auth_token (user_id)');\n- $this->addSql('ALTER TABLE bolt_log ADD COLUMN content INTEGER DEFAULT NULL');\n- $this->addSql('DROP INDEX IDX_7BF75FB1F675F31B');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_media AS SELECT id, author_id, location, path, filename, type, width, height, filesize, crop_x, crop_y, crop_zoom, created_at, modified_at, title, description, original_filename, copyright FROM bolt_media');\n- $this->addSql('DROP TABLE bolt_media');\n- $this->addSql('CREATE TABLE bolt_media (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, author_id INTEGER DEFAULT NULL, location VARCHAR(191) NOT NULL COLLATE BINARY, path CLOB NOT NULL COLLATE BINARY, filename VARCHAR(191) NOT NULL COLLATE BINARY, type VARCHAR(191) NOT NULL COLLATE BINARY, width INTEGER DEFAULT NULL, height INTEGER DEFAULT NULL, filesize INTEGER DEFAULT NULL, crop_x INTEGER DEFAULT NULL, crop_y INTEGER DEFAULT NULL, crop_zoom DOUBLE PRECISION DEFAULT NULL, created_at DATETIME NOT NULL, modified_at DATETIME NOT NULL, title VARCHAR(191) DEFAULT NULL COLLATE BINARY, description VARCHAR(1000) DEFAULT NULL COLLATE BINARY, original_filename VARCHAR(1000) DEFAULT NULL COLLATE BINARY, copyright VARCHAR(191) DEFAULT NULL COLLATE BINARY, CONSTRAINT FK_7BF75FB1F675F31B FOREIGN KEY (author_id) REFERENCES bolt_user (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');\n- $this->addSql('INSERT INTO bolt_media (id, author_id, location, path, filename, type, width, height, filesize, crop_x, crop_y, crop_zoom, created_at, modified_at, title, description, original_filename, copyright) SELECT id, author_id, location, path, filename, type, width, height, filesize, crop_x, crop_y, crop_zoom, created_at, modified_at, title, description, original_filename, copyright FROM __temp__bolt_media');\n- $this->addSql('DROP TABLE __temp__bolt_media');\n- $this->addSql('CREATE INDEX IDX_7BF75FB1F675F31B ON bolt_media (author_id)');\n- }\n-\n- public function down(Schema $schema): void\n- {\n- // this down() migration is auto-generated, please modify it to your needs\n- $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'sqlite', 'Migration can only be executed safely on \\'sqlite\\'.');\n-\n- $this->addSql('DROP INDEX IDX_F5AB2E9CF675F31B');\n- $this->addSql('DROP INDEX content_type_idx');\n- $this->addSql('DROP INDEX status_idx');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_content AS SELECT id, author_id, content_type, status, created_at, modified_at, published_at, depublished_at FROM bolt_content');\n- $this->addSql('DROP TABLE bolt_content');\n- $this->addSql('CREATE TABLE bolt_content (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, author_id INTEGER DEFAULT NULL, content_type VARCHAR(191) NOT NULL, status VARCHAR(191) NOT NULL, created_at DATETIME NOT NULL, modified_at DATETIME DEFAULT NULL, published_at DATETIME DEFAULT NULL, depublished_at DATETIME DEFAULT NULL)');\n- $this->addSql('INSERT INTO bolt_content (id, author_id, content_type, status, created_at, modified_at, published_at, depublished_at) SELECT id, author_id, content_type, status, created_at, modified_at, published_at, depublished_at FROM __temp__bolt_content');\n- $this->addSql('DROP TABLE __temp__bolt_content');\n- $this->addSql('CREATE INDEX IDX_F5AB2E9CF675F31B ON bolt_content (author_id)');\n- $this->addSql('CREATE INDEX content_type_idx ON bolt_content (content_type)');\n- $this->addSql('CREATE INDEX status_idx ON bolt_content (status)');\n- $this->addSql('DROP INDEX IDX_4A2EBBE584A0A3ED');\n- $this->addSql('DROP INDEX IDX_4A2EBBE5727ACA70');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_field AS SELECT id, content_id, parent_id, name, sortorder, version, type FROM bolt_field');\n- $this->addSql('DROP TABLE bolt_field');\n- $this->addSql('CREATE TABLE bolt_field (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, content_id INTEGER NOT NULL, parent_id INTEGER DEFAULT NULL, name VARCHAR(191) NOT NULL, sortorder INTEGER NOT NULL, version INTEGER DEFAULT NULL, type VARCHAR(191) NOT NULL)');\n- $this->addSql('INSERT INTO bolt_field (id, content_id, parent_id, name, sortorder, version, type) SELECT id, content_id, parent_id, name, sortorder, version, type FROM __temp__bolt_field');\n- $this->addSql('DROP TABLE __temp__bolt_field');\n- $this->addSql('CREATE INDEX IDX_4A2EBBE584A0A3ED ON bolt_field (content_id)');\n- $this->addSql('CREATE INDEX IDX_4A2EBBE5727ACA70 ON bolt_field (parent_id)');\n- $this->addSql('DROP INDEX IDX_5C60C0542C2AC5D3');\n- $this->addSql('DROP INDEX field_translation_unique_translation');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_field_translation AS SELECT id, translatable_id, value, locale FROM bolt_field_translation');\n- $this->addSql('DROP TABLE bolt_field_translation');\n- $this->addSql('CREATE TABLE bolt_field_translation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, translatable_id INTEGER DEFAULT NULL, value CLOB NOT NULL --(DC2Type:json)\n- , locale VARCHAR(5) NOT NULL)');\n- $this->addSql('INSERT INTO bolt_field_translation (id, translatable_id, value, locale) SELECT id, translatable_id, value, locale FROM __temp__bolt_field_translation');\n- $this->addSql('DROP TABLE __temp__bolt_field_translation');\n- $this->addSql('CREATE INDEX IDX_5C60C0542C2AC5D3 ON bolt_field_translation (translatable_id)');\n- $this->addSql('CREATE UNIQUE INDEX field_translation_unique_translation ON bolt_field_translation (translatable_id, locale)');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_log AS SELECT id, message, context, level, level_name, created_at, extra, user, location FROM bolt_log');\n- $this->addSql('DROP TABLE bolt_log');\n- $this->addSql('CREATE TABLE bolt_log (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, message CLOB NOT NULL, context CLOB DEFAULT NULL --(DC2Type:array)\n- , level SMALLINT NOT NULL, level_name VARCHAR(50) NOT NULL, created_at DATETIME NOT NULL, extra CLOB DEFAULT NULL --(DC2Type:array)\n- , user CLOB DEFAULT NULL --(DC2Type:array)\n- , location CLOB DEFAULT NULL --(DC2Type:array)\n- )');\n- $this->addSql('INSERT INTO bolt_log (id, message, context, level, level_name, created_at, extra, user, location) SELECT id, message, context, level, level_name, created_at, extra, user, location FROM __temp__bolt_log');\n- $this->addSql('DROP TABLE __temp__bolt_log');\n- $this->addSql('DROP INDEX IDX_7BF75FB1F675F31B');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_media AS SELECT id, author_id, location, path, filename, type, width, height, filesize, crop_x, crop_y, crop_zoom, created_at, modified_at, title, description, original_filename, copyright FROM bolt_media');\n- $this->addSql('DROP TABLE bolt_media');\n- $this->addSql('CREATE TABLE bolt_media (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, author_id INTEGER DEFAULT NULL, location VARCHAR(191) NOT NULL, path CLOB NOT NULL, filename VARCHAR(191) NOT NULL, type VARCHAR(191) NOT NULL, width INTEGER DEFAULT NULL, height INTEGER DEFAULT NULL, filesize INTEGER DEFAULT NULL, crop_x INTEGER DEFAULT NULL, crop_y INTEGER DEFAULT NULL, crop_zoom DOUBLE PRECISION DEFAULT NULL, created_at DATETIME NOT NULL, modified_at DATETIME NOT NULL, title VARCHAR(191) DEFAULT NULL, description VARCHAR(1000) DEFAULT NULL, original_filename VARCHAR(1000) DEFAULT NULL, copyright VARCHAR(191) DEFAULT NULL)');\n- $this->addSql('INSERT INTO bolt_media (id, author_id, location, path, filename, type, width, height, filesize, crop_x, crop_y, crop_zoom, created_at, modified_at, title, description, original_filename, copyright) SELECT id, author_id, location, path, filename, type, width, height, filesize, crop_x, crop_y, crop_zoom, created_at, modified_at, title, description, original_filename, copyright FROM __temp__bolt_media');\n- $this->addSql('DROP TABLE __temp__bolt_media');\n- $this->addSql('CREATE INDEX IDX_7BF75FB1F675F31B ON bolt_media (author_id)');\n- $this->addSql('DROP INDEX IDX_3431ED74AF0465EA');\n- $this->addSql('DROP INDEX IDX_3431ED74A3934190');\n- $this->addSql('DROP INDEX name_idx');\n- $this->addSql('DROP INDEX group_idx');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_relation AS SELECT id, from_content_id, to_content_id, name, position, \"group\" FROM bolt_relation');\n- $this->addSql('DROP TABLE bolt_relation');\n- $this->addSql('CREATE TABLE bolt_relation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, from_content_id INTEGER NOT NULL, to_content_id INTEGER NOT NULL, name VARCHAR(191) NOT NULL, position INTEGER NOT NULL, \"group\" VARCHAR(191) NOT NULL)');\n- $this->addSql('INSERT INTO bolt_relation (id, from_content_id, to_content_id, name, position, \"group\") SELECT id, from_content_id, to_content_id, name, position, \"group\" FROM __temp__bolt_relation');\n- $this->addSql('DROP TABLE __temp__bolt_relation');\n- $this->addSql('CREATE INDEX IDX_3431ED74AF0465EA ON bolt_relation (from_content_id)');\n- $this->addSql('CREATE INDEX IDX_3431ED74A3934190 ON bolt_relation (to_content_id)');\n- $this->addSql('CREATE INDEX name_idx ON bolt_relation (name)');\n- $this->addSql('CREATE INDEX group_idx ON bolt_relation (\"group\")');\n- $this->addSql('DROP INDEX IDX_C5BCC03C9557E6F6');\n- $this->addSql('DROP INDEX IDX_C5BCC03C84A0A3ED');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_taxonomy_content AS SELECT taxonomy_id, content_id FROM bolt_taxonomy_content');\n- $this->addSql('DROP TABLE bolt_taxonomy_content');\n- $this->addSql('CREATE TABLE bolt_taxonomy_content (taxonomy_id INTEGER NOT NULL, content_id INTEGER NOT NULL, PRIMARY KEY(taxonomy_id, content_id))');\n- $this->addSql('INSERT INTO bolt_taxonomy_content (taxonomy_id, content_id) SELECT taxonomy_id, content_id FROM __temp__bolt_taxonomy_content');\n- $this->addSql('DROP TABLE __temp__bolt_taxonomy_content');\n- $this->addSql('CREATE INDEX IDX_C5BCC03C9557E6F6 ON bolt_taxonomy_content (taxonomy_id)');\n- $this->addSql('CREATE INDEX IDX_C5BCC03C84A0A3ED ON bolt_taxonomy_content (content_id)');\n- $this->addSql('DROP INDEX UNIQ_8B90D313A76ED395');\n- $this->addSql('CREATE TEMPORARY TABLE __temp__bolt_user_auth_token AS SELECT id, user_id, useragent, validity FROM bolt_user_auth_token');\n- $this->addSql('DROP TABLE bolt_user_auth_token');\n- $this->addSql('CREATE TABLE bolt_user_auth_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, user_id INTEGER DEFAULT NULL, useragent VARCHAR(255) NOT NULL, validity DATETIME NOT NULL)');\n- $this->addSql('INSERT INTO bolt_user_auth_token (id, user_id, useragent, validity) SELECT id, user_id, useragent, validity FROM __temp__bolt_user_auth_token');\n- $this->addSql('DROP TABLE __temp__bolt_user_auth_token');\n- $this->addSql('CREATE UNIQUE INDEX UNIQ_8B90D313A76ED395 ON bolt_user_auth_token (user_id)');\n- }\n-}\n" } ]
PHP
MIT License
bolt/core
Delete Version20200219064805.php
95,144
05.10.2020 17:16:34
-7,200
492c45649f096d2a5318c1bcbbede6825304a88e
Ensure the "Titles" in collection blocks are plain text only
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Collection.vue", "new_path": "assets/js/app/editor/Components/Collection.vue", "diff": "@@ -204,8 +204,10 @@ export default {\nconst input = $(item)\n.find('textarea,input[type=\"text\"]')\n.first();\n- const title = $(input).val() ? $(input).val() : label.attr('data-label');\n- label.html(icon + title);\n+ // We use this 'innerText' trick to ensure the title is plain text.\n+ var title = document.createElement('span');\n+ title.innerHTML = $(input).val() ? $(input).val() : label.attr('data-label');\n+ label.html(icon + title.innerText);\n}\n/**\n* Open newly inserted collection items.\n" }, { "change_type": "MODIFY", "old_path": "assets/scss/modules/editor/fields/_collection.scss", "new_path": "assets/scss/modules/editor/fields/_collection.scss", "diff": "padding-bottom: 1px;\n}\n+\n+ .card-header {\n+ padding: 0.8125rem 0.8125rem;\n+ }\n}\n}\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/fields/_collection_buttons.html.twig", "new_path": "templates/_partials/fields/_collection_buttons.html.twig", "diff": "{% if in_compound is defined %}\n- <div class=\"btn-group ml-auto mr-2\" role=\"group\" aria-label=\"Collection buttons\">\n+ <div class=\"btn-group ml-2\" role=\"group\" aria-label=\"Collection buttons\">\n<button class='action-move-up-collection-item btn btn-light btn-sm' style=\"white-space: nowrap\" {% if is_first is defined and is_first %} disabled {% endif %}>\n<i class=\"fas fa-fw fa-chevron-up\"></i>\n{{ 'collection.move_item_up'|trans }}\n" }, { "change_type": "MODIFY", "old_path": "translations/messages.en.xlf", "new_path": "translations/messages.en.xlf", "diff": "<unit id=\"N_0yRcH\" name=\"action.close_alert\">\n<segment>\n<source>action.close_alert</source>\n- <target>close</target>\n+ <target>Close</target>\n</segment>\n</unit>\n<unit id=\"Dvu2HQx\" name=\"caption.api\">\n<unit id=\".t1ICS7\" name=\"collection.remove_item\">\n<segment>\n<source>collection.remove_item</source>\n- <target>Remove item</target>\n+ <target>Remove</target>\n</segment>\n</unit>\n<unit id=\"0C9.Vmh\" name=\"collection.add_item\">\n" } ]
PHP
MIT License
bolt/core
Ensure the "Titles" in collection blocks are plain text only
95,144
06.10.2020 20:28:52
-7,200
4a10c68e4a529c29338d6fcb8767501dbda5d4be
Allow default values for Fields in new Content
[ { "change_type": "MODIFY", "old_path": "templates/_partials/fields/_base.html.twig", "new_path": "templates/_partials/fields/_base.html.twig", "diff": "{% if value is string %}\n{% set value = value|replace({'{{': \"{\\xE2\\x80\\x8B{\", '}}': \"}\\xE2\\x80\\x8B}\" }) %}\n{% endif %}\n+\n+ {# Set a default, for example when an extension requests `/bolt/new/entries?field-title=Foo+Bar #}\n+ {% if not record.id and not value %}\n+ {% set value = app.request.get(id) %}\n+ {% endif %}\n{% endif %}\n{# Set the class #}\n" } ]
PHP
MIT License
bolt/core
Allow default values for Fields in new Content
95,190
06.10.2020 22:26:42
-7,200
89fa4b7979983c5ee964271eedb4a22b3f7856ed
Fix for returned bug: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "a voluptas possimus aut libero doloremque."") in "helpers/_field_blocks.twig".
[ { "change_type": "MODIFY", "old_path": "templates/helpers/_field_blocks.twig", "new_path": "templates/helpers/_field_blocks.twig", "diff": "<p><strong>{{ field|label }}: </strong></p>\n<ul>\n{% if field.contentSelect %}\n- {% setcontent selected = field.contentType where {'id': field.selectedIds} returnmultiple %}\n+ {% setcontent selected = field.contentType where {'value': field.selectedIds} returnmultiple %}\n{% for record in selected %}\n<li><a href=\"{{ record|link }}\">{{ record|title }}</a></li>\n{% endfor %}\n" } ]
PHP
MIT License
bolt/core
Fix for returned bug: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "a voluptas possimus aut libero doloremque."") in "helpers/_field_blocks.twig".
95,144
07.10.2020 11:07:41
-7,200
4b4e6b0c98cc037c992c9ee5d488dcab7b0407b1
Add `|default`
[ { "change_type": "MODIFY", "old_path": "config/bolt/contenttypes.yaml", "new_path": "config/bolt/contenttypes.yaml", "diff": "@@ -45,6 +45,22 @@ homepage:\nicon_many: \"fa:home\"\nicon_one: \"fa:home\"\n+dummies:\n+ name: Dummies\n+ singular_name: Dummy\n+ fields:\n+ title:\n+ type: text\n+ slug:\n+ type: slug\n+ uses: title\n+ veld:\n+ type: collection\n+ fields:\n+ foo:\n+ type: html\n+ icon_many: \"fa:viruses\"\n+ icon_one: \"fa:virus\"\n# Pages can be used for the more 'static' pages on your site. This content-type\n# has a 'templateselect' field, which allows you to override the record_template\n" }, { "change_type": "MODIFY", "old_path": "symfony.lock", "new_path": "symfony.lock", "diff": "\"symplify/smart-file-system\": {\n\"version\": \"v7.2.2\"\n},\n+ \"symplify/symplify-kernel\": {\n+ \"version\": \"8.3.30\"\n+ },\n\"theseer/tokenizer\": {\n\"version\": \"1.1.3\"\n},\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/fields/_base.html.twig", "new_path": "templates/_partials/fields/_base.html.twig", "diff": "{% endif %}\n{# Set a default, for example when an extension requests `/bolt/new/entries?field-title=Foo+Bar #}\n- {% if not record.id and not value %}\n+ {% if not record.id|default() and not value %}\n{% set value = app.request.get(id) %}\n{% endif %}\n{% endif %}\n" } ]
PHP
MIT License
bolt/core
Add `|default`
95,144
07.10.2020 14:05:18
-7,200
0ec56d4d38e332ec6d45bf67d3e5b600f1f96be7
Don't overwrite `$searchTerm`
[ { "change_type": "MODIFY", "old_path": "src/Repository/ContentRepository.php", "new_path": "src/Repository/ContentRepository.php", "diff": "@@ -6,6 +6,7 @@ namespace Bolt\\Repository;\nuse Bolt\\Configuration\\Content\\ContentType;\nuse Bolt\\Doctrine\\JsonHelper;\n+use Bolt\\Doctrine\\Version;\nuse Bolt\\Entity\\Content;\nuse Bolt\\Enum\\Statuses;\nuse Doctrine\\Bundle\\DoctrineBundle\\Repository\\ServiceEntityRepository;\n@@ -96,7 +97,7 @@ class ContentRepository extends ServiceEntityRepository\n// proper JSON wrapping solves a lot of problems (added PostgreSQL compatibility)\n$connection = $qb->getEntityManager()->getConnection();\n- [$where, $searchTerm] = JsonHelper::wrapJsonFunction('t.value', $searchTerm, $connection);\n+ [$where] = JsonHelper::wrapJsonFunction('t.value', $searchTerm, $connection);\n$qb->addSelect('f')\n->innerJoin('content.fields', 'f')\n" } ]
PHP
MIT License
bolt/core
Don't overwrite `$searchTerm`
95,144
07.10.2020 17:54:44
-7,200
5b16b5a56e17bc4faa08fea7c7cc8c1d8ab08353
Preparing release 4.0.2
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.1\",\n+ \"version\": \"4.0.2\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n}\n},\n\"@types/express-serve-static-core\": {\n- \"version\": \"4.17.12\",\n- \"resolved\": \"https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.12.tgz\",\n- \"integrity\": \"sha512-EaEdY+Dty1jEU7U6J4CUWwxL+hyEGMkO5jan5gplfegUgCUsIUWqXxqw47uGjimeT4Qgkz/XUfwoau08+fgvKA==\",\n+ \"version\": \"4.17.13\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.13.tgz\",\n+ \"integrity\": \"sha512-RgDi5a4nuzam073lRGKTUIaL3eF2+H7LJvJ8eUnCI0wA6SNjXc44DCmWNiTLs/AZ7QlsFWZiw/gTG3nSQGL0fA==\",\n\"requires\": {\n\"@types/node\": \"*\",\n\"@types/qs\": \"*\",\n\"resolved\": \"https://registry.npmjs.org/@types/mime/-/mime-2.0.3.tgz\",\n\"integrity\": \"sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q==\"\n},\n- \"@types/mini-css-extract-plugin\": {\n- \"version\": \"0.9.1\",\n- \"resolved\": \"https://registry.npmjs.org/@types/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.1.tgz\",\n- \"integrity\": \"sha512-+mN04Oszdz9tGjUP/c1ReVwJXxSniLd7lF++sv+8dkABxVNthg6uccei+4ssKxRHGoMmPxdn7uBdJWONSJGTGQ==\",\n- \"optional\": true,\n- \"requires\": {\n- \"@types/webpack\": \"*\"\n- }\n- },\n\"@types/minimatch\": {\n\"version\": \"3.0.3\",\n\"resolved\": \"https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz\",\n\"integrity\": \"sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==\"\n},\n\"@types/qs\": {\n- \"version\": \"6.9.4\",\n- \"resolved\": \"https://registry.npmjs.org/@types/qs/-/qs-6.9.4.tgz\",\n- \"integrity\": \"sha512-+wYo+L6ZF6BMoEjtf8zB2esQsqdV6WsjRK/GP9WOgLPrq87PbNWgIxS76dS5uvl/QXtHGakZmwTznIfcPXcKlQ==\"\n+ \"version\": \"6.9.5\",\n+ \"resolved\": \"https://registry.npmjs.org/@types/qs/-/qs-6.9.5.tgz\",\n+ \"integrity\": \"sha512-/JHkVHtx/REVG0VVToGRGH2+23hsYLHdyG+GrvoUGlGAd0ErauXDyvHtRI/7H7mzLm+tBCKA7pfcpkQ1lf58iQ==\"\n},\n\"@types/range-parser\": {\n\"version\": \"1.2.3\",\n\"dev\": true\n},\n\"@vue/cli-overlay\": {\n- \"version\": \"4.5.6\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-4.5.6.tgz\",\n- \"integrity\": \"sha512-8kFIdiErtGRlvKWJV0AcF6SXakQDxeuqqcMhWt3qIJxRH6aD33RTC37Q3KWuMsYryBZpEY3tNWGhS1d4spQu0g==\"\n+ \"version\": \"4.5.7\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-4.5.7.tgz\",\n+ \"integrity\": \"sha512-45BbVPR2dTa27QGaFap7eNYbJSzuIhGff1R5L50tWlpw/lf8fIyOuXSdSNQGZCVe+Y3NbcD2DK7mZryxOXWGmw==\"\n},\n\"@vue/cli-plugin-router\": {\n- \"version\": \"4.5.6\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-4.5.6.tgz\",\n- \"integrity\": \"sha512-QEqOGglg0JEKddZPuyiSnAzAVK7IzLrdTPCUegigzGSbUXDW4gQiltY3/2nij2q538YvdIM7JXtW1sUfy4MgHQ==\",\n+ \"version\": \"4.5.7\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-4.5.7.tgz\",\n+ \"integrity\": \"sha512-wzKz8+qOXNqVglcw90lYHbu5UJQo8QoyNXHAiM0RIX4r3W8KqiHrvu7MZFCOVKM3ojRFbDofumorypN2yieSXA==\",\n\"requires\": {\n- \"@vue/cli-shared-utils\": \"^4.5.6\"\n+ \"@vue/cli-shared-utils\": \"^4.5.7\"\n}\n},\n\"@vue/cli-plugin-vuex\": {\n- \"version\": \"4.5.6\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-4.5.6.tgz\",\n- \"integrity\": \"sha512-cWxj0jIhhupU+oFl0mc1St3ig9iF5F01XKwAhKEbvvuHR97zHxLd29My/vvcRwojZMy4aY320oJ+0ljoCIbueQ==\"\n+ \"version\": \"4.5.7\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-4.5.7.tgz\",\n+ \"integrity\": \"sha512-bHH2JSAd/S9fABtZdr3xVSgbIPm3PGcan56adMt0hGlm6HG/QxDNuPLppMleuBLr9uHoHX5x7sQmbtZvzIYjxw==\"\n},\n\"@vue/cli-service\": {\n- \"version\": \"4.5.6\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/cli-service/-/cli-service-4.5.6.tgz\",\n- \"integrity\": \"sha512-wl0rhjHSpy2Mc2zNU6sfhaUVNNaRzgXNfZMIpTZMO3wJalPMLuvGC3KLMaXcpvuI01zeQBmkEocAdhzay4lQ0w==\",\n+ \"version\": \"4.5.7\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/cli-service/-/cli-service-4.5.7.tgz\",\n+ \"integrity\": \"sha512-iT5wb5JbF/kbJCY7HR8qabWEiaMvZP4/KPezsnEp/6vNGAF0Akx0FGvCuU9sm7uf6w0UKzIJ38I6JJBtkOMvJA==\",\n\"requires\": {\n\"@intervolga/optimize-cssnano-plugin\": \"^1.0.5\",\n\"@soda/friendly-errors-webpack-plugin\": \"^1.7.1\",\n\"@types/minimist\": \"^1.2.0\",\n\"@types/webpack\": \"^4.0.0\",\n\"@types/webpack-dev-server\": \"^3.11.0\",\n- \"@vue/cli-overlay\": \"^4.5.6\",\n- \"@vue/cli-plugin-router\": \"^4.5.6\",\n- \"@vue/cli-plugin-vuex\": \"^4.5.6\",\n- \"@vue/cli-shared-utils\": \"^4.5.6\",\n+ \"@vue/cli-overlay\": \"^4.5.7\",\n+ \"@vue/cli-plugin-router\": \"^4.5.7\",\n+ \"@vue/cli-plugin-vuex\": \"^4.5.7\",\n+ \"@vue/cli-shared-utils\": \"^4.5.7\",\n\"@vue/component-compiler-utils\": \"^3.1.2\",\n\"@vue/preload-webpack-plugin\": \"^1.1.0\",\n\"@vue/web-component-wrapper\": \"^1.2.0\",\n},\n\"dependencies\": {\n\"acorn\": {\n- \"version\": \"7.4.0\",\n- \"resolved\": \"https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz\",\n- \"integrity\": \"sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==\"\n+ \"version\": \"7.4.1\",\n+ \"resolved\": \"https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz\",\n+ \"integrity\": \"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==\"\n},\n\"acorn-walk\": {\n\"version\": \"7.2.0\",\n\"integrity\": \"sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==\"\n},\n\"ansi-styles\": {\n- \"version\": \"4.2.1\",\n- \"resolved\": \"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz\",\n- \"integrity\": \"sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==\",\n+ \"version\": \"4.3.0\",\n+ \"resolved\": \"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz\",\n+ \"integrity\": \"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==\",\n\"optional\": true,\n\"requires\": {\n- \"@types/color-name\": \"^1.1.1\",\n\"color-convert\": \"^2.0.1\"\n}\n},\n}\n},\n\"chalk\": {\n- \"version\": \"3.0.0\",\n- \"resolved\": \"https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz\",\n- \"integrity\": \"sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==\",\n+ \"version\": \"4.1.0\",\n+ \"resolved\": \"https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz\",\n+ \"integrity\": \"sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==\",\n\"optional\": true,\n\"requires\": {\n\"ansi-styles\": \"^4.1.0\",\n\"integrity\": \"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==\",\n\"optional\": true\n},\n+ \"emojis-list\": {\n+ \"version\": \"3.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz\",\n+ \"integrity\": \"sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==\",\n+ \"optional\": true\n+ },\n\"fast-deep-equal\": {\n\"version\": \"3.1.3\",\n\"resolved\": \"https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz\",\n\"resolved\": \"https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz\",\n\"integrity\": \"sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==\"\n},\n+ \"json5\": {\n+ \"version\": \"2.1.3\",\n+ \"resolved\": \"https://registry.npmjs.org/json5/-/json5-2.1.3.tgz\",\n+ \"integrity\": \"sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==\",\n+ \"optional\": true,\n+ \"requires\": {\n+ \"minimist\": \"^1.2.5\"\n+ }\n+ },\n+ \"loader-utils\": {\n+ \"version\": \"2.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz\",\n+ \"integrity\": \"sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==\",\n+ \"optional\": true,\n+ \"requires\": {\n+ \"big.js\": \"^5.2.2\",\n+ \"emojis-list\": \"^3.0.0\",\n+ \"json5\": \"^2.1.2\"\n+ }\n+ },\n\"p-limit\": {\n\"version\": \"2.3.0\",\n\"resolved\": \"https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz\",\n}\n},\n\"vue-loader-v16\": {\n- \"version\": \"npm:vue-loader@16.0.0-beta.7\",\n- \"resolved\": \"https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.7.tgz\",\n- \"integrity\": \"sha512-xQ8/GZmRPdQ3EinnE0IXwdVoDzh7Dowo0MowoyBuScEBXrRabw6At5/IdtD3waKklKW5PGokPsm8KRN6rvQ1cw==\",\n+ \"version\": \"npm:vue-loader@16.0.0-beta.8\",\n+ \"resolved\": \"https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.8.tgz\",\n+ \"integrity\": \"sha512-oouKUQWWHbSihqSD7mhymGPX1OQ4hedzAHyvm8RdyHh6m3oIvoRF+NM45i/bhNOlo8jCnuJhaSUf/6oDjv978g==\",\n\"optional\": true,\n\"requires\": {\n- \"@types/mini-css-extract-plugin\": \"^0.9.1\",\n- \"chalk\": \"^3.0.0\",\n+ \"chalk\": \"^4.1.0\",\n\"hash-sum\": \"^2.0.0\",\n- \"loader-utils\": \"^1.2.3\",\n- \"merge-source-map\": \"^1.1.0\",\n- \"source-map\": \"^0.6.1\"\n+ \"loader-utils\": \"^2.0.0\"\n}\n}\n}\n},\n\"@vue/cli-shared-utils\": {\n- \"version\": \"4.5.6\",\n- \"resolved\": \"https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-4.5.6.tgz\",\n- \"integrity\": \"sha512-p6ePDlEa7Xc0GEt99KDOCwPZtR7UnoEaZLMfwPYU5LAWkdCmtAw8HPAY/WWcjtoiaAkY4k9tz7ZehQasZ9mJxg==\",\n+ \"version\": \"4.5.7\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-4.5.7.tgz\",\n+ \"integrity\": \"sha512-oicFfx9PvgupxN/LW0s2ktdn1U6bBu8J4lPcW2xj6TtTWUkkxwzis4Tm+XOvgvZnu44+d7216y0Y4TX90q645w==\",\n\"requires\": {\n\"@hapi/joi\": \"^15.0.1\",\n\"chalk\": \"^2.4.2\",\n}\n},\n\"caniuse-lite\": {\n- \"version\": \"1.0.30001140\",\n- \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001140.tgz\",\n- \"integrity\": \"sha512-xFtvBtfGrpjTOxTpjP5F2LmN04/ZGfYV8EQzUIC/RmKpdrmzJrjqlJ4ho7sGuAMPko2/Jl08h7x9uObCfBFaAA==\"\n+ \"version\": \"1.0.30001144\",\n+ \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001144.tgz\",\n+ \"integrity\": \"sha512-4GQTEWNMnVZVOFG3BK0xvGeaDAtiPAbG2N8yuMXuXzx/c2Vd4XoMPO8+E918zeXn5IF0FRVtGShBfkfQea2wHQ==\"\n},\n\"capture-exit\": {\n\"version\": \"2.0.0\",\n},\n\"dependencies\": {\n\"ansi-styles\": {\n- \"version\": \"4.2.1\",\n- \"resolved\": \"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz\",\n- \"integrity\": \"sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==\",\n+ \"version\": \"4.3.0\",\n+ \"resolved\": \"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz\",\n+ \"integrity\": \"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==\",\n\"requires\": {\n- \"@types/color-name\": \"^1.1.1\",\n\"color-convert\": \"^2.0.1\"\n}\n},\n\"integrity\": \"sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==\"\n},\n\"postcss\": {\n- \"version\": \"7.0.32\",\n- \"resolved\": \"https://registry.npmjs.org/postcss/-/postcss-7.0.32.tgz\",\n- \"integrity\": \"sha512-03eXong5NLnNCD05xscnGKGDZ98CyzoqPSMjOe6SuoQY7Z2hIj0Ld1g/O/UQRuOle2aRtiIRDg9tDcTGAkLfKw==\",\n+ \"version\": \"7.0.35\",\n+ \"resolved\": \"https://registry.npmjs.org/postcss/-/postcss-7.0.35.tgz\",\n+ \"integrity\": \"sha512-3QT8bBJeX/S5zKTTjTCIjRF3If4avAT6kqxcASlTWEtAFCb9NH0OUxNDfgZSWdP5fJnBYCMEWkIFfWeugjzYMg==\",\n\"requires\": {\n\"chalk\": \"^2.4.2\",\n\"source-map\": \"^0.6.1\",\n\"integrity\": \"sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==\"\n},\n\"electron-to-chromium\": {\n- \"version\": \"1.3.576\",\n- \"resolved\": \"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.576.tgz\",\n- \"integrity\": \"sha512-uSEI0XZ//5ic+0NdOqlxp0liCD44ck20OAGyLMSymIWTEAtHKVJi6JM18acOnRgUgX7Q65QqnI+sNncNvIy8ew==\"\n+ \"version\": \"1.3.578\",\n+ \"resolved\": \"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.578.tgz\",\n+ \"integrity\": \"sha512-z4gU6dA1CbBJsAErW5swTGAaU2TBzc2mPAonJb00zqW1rOraDo2zfBMDRvaz9cVic+0JEZiYbHWPw/fTaZlG2Q==\"\n},\n\"elliptic\": {\n\"version\": \"6.5.3\",\n},\n\"is-obj\": {\n\"version\": \"1.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz\",\n\"integrity\": \"sha1-PkcprB9f3gJc19g6iW2rn09n2w8=\"\n},\n\"is-path-cwd\": {\n}\n},\n\"locutus\": {\n- \"version\": \"2.0.12\",\n- \"resolved\": \"https://registry.npmjs.org/locutus/-/locutus-2.0.12.tgz\",\n- \"integrity\": \"sha512-wnzhY9xOdDb2djr17kQhTh9oZgEfp78zI27KRRiiV1GnPXWA2xfVODbpH3QgpIuUMLupM02+6X/rJXvktTpnoA==\",\n+ \"version\": \"2.0.14\",\n+ \"resolved\": \"https://registry.npmjs.org/locutus/-/locutus-2.0.14.tgz\",\n+ \"integrity\": \"sha512-0H1o1iHNEp3kJ5rW57bT/CAP5g6Qm0Zd817Wcx2+rOMTYyIJoc482Ja1v9dB6IUjwvWKcBNdYi7x2lRXtlJ3bA==\",\n\"requires\": {\n\"es6-promise\": \"^4.2.5\"\n}\n},\n\"load-json-file\": {\n\"version\": \"1.1.0\",\n- \"resolved\": \"https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz\",\n\"integrity\": \"sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=\",\n\"dev\": true,\n\"requires\": {\n},\n\"semver\": {\n\"version\": \"5.3.0\",\n- \"resolved\": \"https://registry.npmjs.org/semver/-/semver-5.3.0.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/semver/-/semver-5.3.0.tgz\",\n\"integrity\": \"sha1-myzl094C0XxgEq0yaqa00M9U+U8=\",\n\"dev\": true\n}\n\"integrity\": \"sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==\"\n},\n\"postcss\": {\n- \"version\": \"7.0.32\",\n- \"resolved\": \"https://registry.npmjs.org/postcss/-/postcss-7.0.32.tgz\",\n- \"integrity\": \"sha512-03eXong5NLnNCD05xscnGKGDZ98CyzoqPSMjOe6SuoQY7Z2hIj0Ld1g/O/UQRuOle2aRtiIRDg9tDcTGAkLfKw==\",\n+ \"version\": \"7.0.35\",\n+ \"resolved\": \"https://registry.npmjs.org/postcss/-/postcss-7.0.35.tgz\",\n+ \"integrity\": \"sha512-3QT8bBJeX/S5zKTTjTCIjRF3If4avAT6kqxcASlTWEtAFCb9NH0OUxNDfgZSWdP5fJnBYCMEWkIFfWeugjzYMg==\",\n\"requires\": {\n\"chalk\": \"^2.4.2\",\n\"source-map\": \"^0.6.1\",\n}\n},\n\"postcss-selector-parser\": {\n- \"version\": \"6.0.2\",\n- \"resolved\": \"https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.2.tgz\",\n- \"integrity\": \"sha512-36P2QR59jDTOAiIkqEprfJDsoNrvwFei3eCqKd1Y0tUsBimsq39BLp7RD+JWny3WgB1zGhJX8XVePwm9k4wdBg==\",\n+ \"version\": \"6.0.4\",\n+ \"resolved\": \"https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.4.tgz\",\n+ \"integrity\": \"sha512-gjMeXBempyInaBqpp8gODmwZ52WaYsVOsfr4L4lDQ7n3ncD6mEyySiDtgzCT+NYC0mmeOLvtsF8iaEf0YT6dBw==\",\n\"requires\": {\n\"cssesc\": \"^3.0.0\",\n\"indexes-of\": \"^1.0.1\",\n- \"uniq\": \"^1.0.1\"\n+ \"uniq\": \"^1.0.1\",\n+ \"util-deprecate\": \"^1.0.2\"\n}\n},\n\"postcss-value-parser\": {\n\"integrity\": \"sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==\"\n},\n\"postcss-selector-parser\": {\n- \"version\": \"6.0.2\",\n- \"resolved\": \"https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.2.tgz\",\n- \"integrity\": \"sha512-36P2QR59jDTOAiIkqEprfJDsoNrvwFei3eCqKd1Y0tUsBimsq39BLp7RD+JWny3WgB1zGhJX8XVePwm9k4wdBg==\",\n+ \"version\": \"6.0.4\",\n+ \"resolved\": \"https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.4.tgz\",\n+ \"integrity\": \"sha512-gjMeXBempyInaBqpp8gODmwZ52WaYsVOsfr4L4lDQ7n3ncD6mEyySiDtgzCT+NYC0mmeOLvtsF8iaEf0YT6dBw==\",\n\"requires\": {\n\"cssesc\": \"^3.0.0\",\n\"indexes-of\": \"^1.0.1\",\n- \"uniq\": \"^1.0.1\"\n+ \"uniq\": \"^1.0.1\",\n+ \"util-deprecate\": \"^1.0.2\"\n}\n}\n}\n},\n\"safe-regex\": {\n\"version\": \"1.1.0\",\n- \"resolved\": \"https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz\",\n\"integrity\": \"sha1-QKNmnzsHfR6UPURinhV91IAjvy4=\",\n\"requires\": {\n\"ret\": \"~0.1.10\"\n},\n\"strip-ansi\": {\n\"version\": \"3.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n\"integrity\": \"sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=\",\n\"requires\": {\n\"ansi-regex\": \"^2.0.0\"\n},\n\"strip-eof\": {\n\"version\": \"1.0.0\",\n- \"resolved\": \"https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz\",\n\"integrity\": \"sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=\"\n},\n\"strip-final-newline\": {\n}\n},\n\"webpack-bundle-analyzer\": {\n- \"version\": \"3.8.0\",\n- \"resolved\": \"https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.8.0.tgz\",\n- \"integrity\": \"sha512-PODQhAYVEourCcOuU+NiYI7WdR8QyELZGgPvB1y2tjbUpbmcQOt5Q7jEK+ttd5se0KSBKD9SXHCEozS++Wllmw==\",\n+ \"version\": \"3.9.0\",\n+ \"resolved\": \"https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.9.0.tgz\",\n+ \"integrity\": \"sha512-Ob8amZfCm3rMB1ScjQVlbYYUEJyEjdEtQ92jqiFUYt5VkEeO2v5UMbv49P/gnmCZm3A6yaFQzCBvpZqN4MUsdA==\",\n\"requires\": {\n\"acorn\": \"^7.1.1\",\n\"acorn-walk\": \"^7.1.1\",\n\"express\": \"^4.16.3\",\n\"filesize\": \"^3.6.1\",\n\"gzip-size\": \"^5.0.0\",\n- \"lodash\": \"^4.17.15\",\n+ \"lodash\": \"^4.17.19\",\n\"mkdirp\": \"^0.5.1\",\n\"opener\": \"^1.5.1\",\n\"ws\": \"^6.0.0\"\n},\n\"dependencies\": {\n\"acorn\": {\n- \"version\": \"7.4.0\",\n- \"resolved\": \"https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz\",\n- \"integrity\": \"sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==\"\n+ \"version\": \"7.4.1\",\n+ \"resolved\": \"https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz\",\n+ \"integrity\": \"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==\"\n},\n\"acorn-walk\": {\n\"version\": \"7.2.0\",\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.1\",\n+ \"version\": \"4.0.2\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n\"url\": \"git://github.com/bolt/core.git\"\n},\n\"dependencies\": {\n- \"@vue/cli-service\": \"^4.5.6\",\n+ \"@vue/cli-service\": \"^4.5.7\",\n\"axios\": \"^0.19.2\",\n\"baguettebox.js\": \"^1.11.1\",\n\"bootbox\": \"^5.4.1\",\n\"bootstrap\": \"^4.5.2\",\n\"browserslist\": \"^4.14.5\",\n\"caniuse-lite\": \"^1.0.30001140\",\n- \"codemirror\": \"^5.58.0\",\n+ \"codemirror\": \"^5.58.1\",\n\"dropzone\": \"^5.7.2\",\n\"flagpack\": \"^1.0.5\",\n\"hotkeys-js\": \"^3.8.1\",\n\"jquery\": \"^3.5.1\",\n- \"locutus\": \"^2.0.12\",\n+ \"locutus\": \"^2.0.14\",\n\"luxon\": \"^1.25.0\",\n\"no-scroll\": \"^2.1.1\",\n\"node-vibrant\": \"^3.1.5\",\n" } ]
PHP
MIT License
bolt/core
Preparing release 4.0.2
95,115
07.10.2020 22:30:58
-7,200
b70fce9f61207cdb339a2143d9571762927b4a86
$this->viewlessContentTypes should be a normal array. toArray() would return an associative array, and this in turn messes up the parameter substitution in SQLParserUtils.expandListParameters(). Using values() instead of toArray() fixes this. fixes
[ { "change_type": "MODIFY", "old_path": "src/Api/Extensions/ContentExtension.php", "new_path": "src/Api/Extensions/ContentExtension.php", "diff": "@@ -30,7 +30,7 @@ final class ContentExtension implements QueryCollectionExtensionInterface, Query\nreturn $ct->get('viewless', false);\n})->map(function (Collection $ct) {\nreturn $ct->get('slug');\n- })->toArray();\n+ })->values();\n}\npublic function applyToCollection(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, ?string $operationName = null): void\n" } ]
PHP
MIT License
bolt/core
$this->viewlessContentTypes should be a normal array. toArray() would return an associative array, and this in turn messes up the parameter substitution in SQLParserUtils.expandListParameters(). Using values() instead of toArray() fixes this. fixes https://github.com/bolt/core/issues/1953
95,144
08.10.2020 07:39:07
-7,200
fb81b35407d2eb5f5de3061c58b9556c55c07362
Use `id` in `{% setcontent %}` for Select in Blocks
[ { "change_type": "MODIFY", "old_path": "templates/helpers/_field_blocks.twig", "new_path": "templates/helpers/_field_blocks.twig", "diff": "{% block extended_fields %}\n{# Special case for 'select' fields: if it's a multiple select, the field is an array. #}\n- {# I dont know what is going on here, but field.selectedIds for pgsql showcase/mr-jean-feeney (and others) #}\n- {# yield field values (strings containing full name!), NOT integer IDs.. #}\n- {# TODO: FIX IT, bypassing for now by selecting on 'value' (string) and not 'id' (int) #}\n{% if type == \"select\" and field is not empty %}\n<p><strong>{{ field|label }}: </strong></p>\n<ul>\n{% if field.contentSelect %}\n- {% setcontent selected = field.contentType where {'value': field.selectedIds} returnmultiple %}\n+ {% setcontent selected = field.contentType where {'id': field.selectedIds} returnmultiple %}\n{% for record in selected %}\n<li><a href=\"{{ record|link }}\">{{ record|title }}</a></li>\n{% endfor %}\n" } ]
PHP
MIT License
bolt/core
Use `id` in `{% setcontent %}` for Select in Blocks
95,144
08.10.2020 13:31:35
-7,200
733ae7b6c0959382908f1a0b9a54b082732b46fa
Let's go for 4.1.0 instead! :innocent:
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.2\",\n+ \"version\": \"4.1.0\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n\"dev\": true\n},\n\"@fortawesome/fontawesome-free\": {\n- \"version\": \"5.15.0\",\n- \"resolved\": \"https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.0.tgz\",\n- \"integrity\": \"sha512-wXetjQBNMTP59MAYNR1tdahMDOLx3FYj3PKdso7PLFLDpTvmAIqhSSEqnSTmWKahRjD+Sh5I5635+5qaoib5lw==\",\n+ \"version\": \"5.15.1\",\n+ \"resolved\": \"https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.1.tgz\",\n+ \"integrity\": \"sha512-OEdH7SyC1suTdhBGW91/zBfR6qaIhThbcN8PUXtXilY4GYnSBbVqOntdHbC1vXwsDnX0Qix2m2+DSU1J51ybOQ==\",\n\"dev\": true\n},\n\"@hapi/address\": {\n}\n},\n\"caniuse-lite\": {\n- \"version\": \"1.0.30001144\",\n- \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001144.tgz\",\n- \"integrity\": \"sha512-4GQTEWNMnVZVOFG3BK0xvGeaDAtiPAbG2N8yuMXuXzx/c2Vd4XoMPO8+E918zeXn5IF0FRVtGShBfkfQea2wHQ==\"\n+ \"version\": \"1.0.30001146\",\n+ \"resolved\": \"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001146.tgz\",\n+ \"integrity\": \"sha512-VAy5RHDfTJhpxnDdp2n40GPPLp3KqNrXz1QqFv4J64HvArKs8nuNMOWkB3ICOaBTU/Aj4rYAo/ytdQDDFF/Pug==\"\n},\n\"capture-exit\": {\n\"version\": \"2.0.0\",\n},\n\"is-obj\": {\n\"version\": \"1.0.1\",\n- \"resolved\": \"http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz\",\n\"integrity\": \"sha1-PkcprB9f3gJc19g6iW2rn09n2w8=\"\n},\n\"is-path-cwd\": {\n},\n\"load-json-file\": {\n\"version\": \"1.1.0\",\n- \"resolved\": \"http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz\",\n\"integrity\": \"sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=\",\n\"dev\": true,\n\"requires\": {\n},\n\"semver\": {\n\"version\": \"5.3.0\",\n- \"resolved\": \"http://registry.npmjs.org/semver/-/semver-5.3.0.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/semver/-/semver-5.3.0.tgz\",\n\"integrity\": \"sha1-myzl094C0XxgEq0yaqa00M9U+U8=\",\n\"dev\": true\n}\n},\n\"safe-regex\": {\n\"version\": \"1.1.0\",\n- \"resolved\": \"http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz\",\n\"integrity\": \"sha1-QKNmnzsHfR6UPURinhV91IAjvy4=\",\n\"requires\": {\n\"ret\": \"~0.1.10\"\n},\n\"strip-ansi\": {\n\"version\": \"3.0.1\",\n- \"resolved\": \"http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n\"integrity\": \"sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=\",\n\"requires\": {\n\"ansi-regex\": \"^2.0.0\"\n},\n\"strip-eof\": {\n\"version\": \"1.0.0\",\n- \"resolved\": \"http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz\",\n\"integrity\": \"sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=\"\n},\n\"strip-final-newline\": {\n\"integrity\": \"sha512-s7jmZPlm9FeueJg1RwJtnE9KNPtME/7C8uRWSfp9/yEN4M8XcS/d+bddoyVwVnvFyRh9msFo0HWeW0vTL8Qv+w==\"\n},\n\"vue-router\": {\n- \"version\": \"3.4.5\",\n- \"resolved\": \"https://registry.npmjs.org/vue-router/-/vue-router-3.4.5.tgz\",\n- \"integrity\": \"sha512-ioRY5QyDpXM9TDjOX6hX79gtaMXSVDDzSlbIlyAmbHNteIL81WIVB2e+jbzV23vzxtoV0krdS2XHm+GxFg+Nxg==\",\n+ \"version\": \"3.4.6\",\n+ \"resolved\": \"https://registry.npmjs.org/vue-router/-/vue-router-3.4.6.tgz\",\n+ \"integrity\": \"sha512-kaXnB3pfFxhAJl/Mp+XG1HJMyFqrL/xPqV7oXlpXn4AwMmm6VNgf0nllW8ksflmZANfI4kdo0bVn/FYSsAolPQ==\",\n\"dev\": true\n},\n\"vue-simplemde\": {\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.0.2\",\n+ \"version\": \"4.1.0\",\n\"homepage\": \"https://boltcms.io\",\n\"author\": \"Bob den Otter <bob@twokings.nl> (https://boltcms.io)\",\n\"license\": \"MIT\",\n\"bootbox\": \"^5.4.1\",\n\"bootstrap\": \"^4.5.2\",\n\"browserslist\": \"^4.14.5\",\n- \"caniuse-lite\": \"^1.0.30001140\",\n+ \"caniuse-lite\": \"^1.0.30001146\",\n\"codemirror\": \"^5.58.1\",\n\"dropzone\": \"^5.7.2\",\n\"flagpack\": \"^1.0.5\",\n\"@babel/plugin-transform-runtime\": \"^7.11.5\",\n\"@babel/polyfill\": \"^7.11.5\",\n\"@babel/preset-env\": \"^7.11.5\",\n- \"@fortawesome/fontawesome-free\": \"^5.15.0\",\n+ \"@fortawesome/fontawesome-free\": \"^5.15.1\",\n\"@symfony/webpack-encore\": \"^0.30.2\",\n\"@vue/test-utils\": \"^1.1.0\",\n\"ajv-keywords\": \"^3.5.2\",\n\"stylelint-config-standard\": \"^19.0.0\",\n\"vue-jest\": \"^3.0.7\",\n\"vue-loader\": \"^15.9.3\",\n- \"vue-router\": \"^3.4.5\",\n+ \"vue-router\": \"^3.4.6\",\n\"vue-template-compiler\": \"^2.6.12\",\n\"webpackbar\": \"^4.0.0\",\n\"workbox-webpack-plugin\": \"^4.3.1\"\n" } ]
PHP
MIT License
bolt/core
Let's go for 4.1.0 instead! :innocent:
95,115
09.10.2020 10:45:26
-7,200
b4862fbf14f9d8b0e793ef8a78edcff7715e122e
Log.php had an incorrect repositoryClass specified in the Entity annotation.
[ { "change_type": "MODIFY", "old_path": "src/Entity/Log.php", "new_path": "src/Entity/Log.php", "diff": "@@ -7,7 +7,7 @@ namespace Bolt\\Entity;\nuse Doctrine\\ORM\\Mapping as ORM;\n/**\n- * @ORM\\Entity(repositoryClass=\"AppBundle\\Repository\\LogRepository\")\n+ * @ORM\\Entity(repositoryClass=\"Bolt\\Repository\\LogRepository\")\n* @ORM\\Table(name=\"log\")\n* @ORM\\HasLifecycleCallbacks\n*/\n" } ]
PHP
MIT License
bolt/core
Log.php had an incorrect repositoryClass specified in the Entity annotation.
95,170
10.10.2020 11:18:59
18,000
3f8d2c6ccc764a2f92a325d73e171d5b02bfc3df
Force path separator to / in ImageFixtures relative paths
[ { "change_type": "MODIFY", "old_path": "src/DataFixtures/ContentFixtures.php", "new_path": "src/DataFixtures/ContentFixtures.php", "diff": "@@ -275,7 +275,7 @@ class ContentFixtures extends BaseFixture implements DependentFixtureInterface,\ncase 'image':\n$randomImage = $this->imagesIndex->random();\n$data = [\n- 'filename' => $randomImage->getRelativePathname(),\n+ 'filename' => str_replace('\\\\', '/', $randomImage->getRelativePathname()),\n'alt' => $this->faker->sentence(4, true),\n'media' => '',\n];\n@@ -284,7 +284,7 @@ class ContentFixtures extends BaseFixture implements DependentFixtureInterface,\ncase 'file':\n$randomImage = $this->imagesIndex->random();\n$data = [\n- 'filename' => $randomImage->getRelativePathname(),\n+ 'filename' => str_replace('\\\\', '/', $randomImage->getRelativePathname()),\n'title' => $this->faker->sentence(4, true),\n'media' => '',\n];\n" } ]
PHP
MIT License
bolt/core
Force path separator to / in ImageFixtures relative paths
95,154
09.10.2020 22:48:02
-7,200
e0c700957509d24445fbbcc1960f509d20e8cc78
Feat: add .gitattributes file for release
[ { "change_type": "ADD", "old_path": null, "new_path": ".gitattributes", "diff": "+/.babelrc export-ignore\n+/.editorconfig export-ignore\n+/.env export-ignore\n+/.eslintrc.js export-ignore\n+/.git export-ignore\n+/.gitattributes export-ignore\n+/.github export-ignore\n+/.gitignore export-ignore\n+/.phpspec.yml export-ignore\n+/.prettierrc export-ignore\n+/.stylelintrc export-ignore\n+/.travis.yml export-ignore\n+/behat.yml export-ignore\n+/docker-compose.yml export-ignore\n+/ecs.php export-ignore\n+/Makefile export-ignore\n+/package.json export-ignore\n+/package-lock.json export-ignore\n+/phpstan.neon export-ignore\n+/phpunit.bootstrap.php export-ignore\n+/phpunit.xml.dist export-ignore\n+/postcss.config.js export-ignore\n+/run_behat_tests.sh export-ignore\n+/symfony.lock export-ignore\n+/webpack.config.js export-ignore\n+/assets export-ignore\n+/bin export-ignore\n+/config export-ignore\n+/docker export-ignore\n+/public export-ignore\n+/tests export-ignore\n+/var export-ignore\n" } ]
PHP
MIT License
bolt/core
Feat: add .gitattributes file for release
95,144
12.10.2020 20:54:15
-7,200
8c18220c679d9e8c486fb8663f05e59810cf9a8c
Fix url for 'bulk' operations on Listing screen, for sites with modified Backend URL
[ { "change_type": "MODIFY", "old_path": "assets/js/app/listing/Components/SelectBox.vue", "new_path": "assets/js/app/listing/Components/SelectBox.vue", "diff": "@@ -57,6 +57,7 @@ export default {\nplural: String,\nlabels: Object,\ncsrftoken: String,\n+ backendPrefix: RegExp,\n},\ndata() {\nreturn {\n@@ -92,7 +93,7 @@ export default {\ncomputed: {\npostUrl() {\nif (this.selectedAction) {\n- return '/bolt/bulk/' + this.selectedAction.key;\n+ return this.backendPrefix + 'bulk/' + this.selectedAction.key;\n}\nreturn '';\n" }, { "change_type": "MODIFY", "old_path": "templates/content/listing.html.twig", "new_path": "templates/content/listing.html.twig", "diff": "'update_all': 'action.update_all'|trans,\n}|json_encode }}\"\n:csrftoken=\"{{ csrf_token('batch')|json_encode }}\"\n+ :backend-prefix=\"{{ path('bolt_dashboard') }}\"\n></listing-select-box>\n{% set filterOptions = {\n" } ]
PHP
MIT License
bolt/core
Fix url for 'bulk' operations on Listing screen, for sites with modified Backend URL
95,156
12.10.2020 21:02:15
-3,600
0b6d28c614472ed1eb7c0eb96a81788c689b84ce
Replace getDriver()->getName() call with getDatabasePlatform->getName() to avoid a deprecation in Doctrine
[ { "change_type": "MODIFY", "old_path": "src/Doctrine/Query/Cast.php", "new_path": "src/Doctrine/Query/Cast.php", "diff": "@@ -20,7 +20,7 @@ class Cast extends FunctionNode\npublic function getSql(SqlWalker $sqlWalker): string\n{\n- $backend_driver = $sqlWalker->getConnection()->getDriver()->getName();\n+ $backend_driver = $sqlWalker->getConnection()->getDatabasePlatform()->getName();\n// test if we are using MySQL\nif (mb_strpos($backend_driver, 'mysql') !== false) {\n" } ]
PHP
MIT License
bolt/core
Replace getDriver()->getName() call with getDatabasePlatform->getName() to avoid a deprecation in Doctrine
95,147
14.10.2020 09:51:06
-7,200
d5d3bd564f911e19571c695a8bc7394c5073704d
Any field that has a localized field down the line is considered localized
[ { "change_type": "MODIFY", "old_path": "src/Entity/FieldParentTrait.php", "new_path": "src/Entity/FieldParentTrait.php", "diff": "@@ -4,7 +4,7 @@ declare(strict_types=1);\nnamespace Bolt\\Entity;\n-use Bolt\\Configuration\\Content\\FieldType;\n+use Tightenco\\Collect\\Support\\Collection;\n/**\n* Implements the methods of the FieldParentInterface.\n@@ -30,17 +30,26 @@ trait FieldParentTrait\n/**\n* Override isTranslatable so that if one child definition\n- * has localize: true, the whole field is considered localizable.\n+ * has localize: true, the whole field is considered localized.\n*/\npublic function isTranslatable(): bool\n{\n- /** @var FieldType $fieldDefinition */\n- foreach ($this->getDefinition()->get('fields', []) as $fieldDefinition) {\n- if ($fieldDefinition->get('localize', false)) {\n+ return $this->shouldThisBeTranslatable($this->getDefinition());\n+ }\n+\n+ private function shouldThisBeTranslatable(Collection $definition): bool\n+ {\n+ if ($definition->has('fields')) {\n+ foreach ($definition->get('fields') as $fieldDefinition) {\n+ $result = $this->shouldThisBeTranslatable($fieldDefinition);\n+ if ($result) {\nreturn true;\n}\n}\n+ }\n- return parent::isTranslatable();\n+ // todo: This is a duplication of Field::isTranslatable()\n+ // but if it's in Field, it requires the thing to be a field...\n+ return $definition->get('localize');\n}\n}\n" } ]
PHP
MIT License
bolt/core
Any field that has a localized field down the line is considered localized
95,147
14.10.2020 10:07:08
-7,200
eebc94638ee0b17c05d7c61de096a43833a662da
Depracete `default_state` for collection in favour of `variant`
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Collection.vue", "new_path": "assets/js/app/editor/Components/Collection.vue", "diff": "</div>\n<div v-for=\"element in elements\" :key=\"element.hash\" class=\"collection-item\">\n- <details :open=\"state === 'expanded'\" class=\"card\">\n+ <details :open=\"variant === 'expanded'\" class=\"card\">\n<summary class=\"d-block\">\n<div class=\"card-header d-flex align-items-center\">\n<!-- Initial title. This is replaced by dynamic title in JS below. -->\n@@ -105,7 +105,7 @@ export default {\ntype: Number,\nrequired: true,\n},\n- state: {\n+ variant: {\ntype: String,\nrequired: true,\n},\n" }, { "change_type": "MODIFY", "old_path": "config/bolt/contenttypes.yaml", "new_path": "config/bolt/contenttypes.yaml", "diff": "@@ -266,7 +266,7 @@ showcases:\ntype: collection\ngroup: Collections\nlabel: This is my Collection\n- default_state: expanded\n+ variant: expanded\nfields:\nset:\ntype: set\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/fields/collection.html.twig", "new_path": "templates/_partials/fields/collection.html.twig", "diff": "{% set templated_fields %}{{ macro.generate_collection_fields(field, field.templates, record, true) }}{% endset %}\n{% endif %}\n+ {% if variant == 'normal' %}\n+ {% set variant = field.definition.get('default_state')|default('collapsed') %}\n+ {% endif %}\n+\n<editor-collection\n:existing-fields='{{ existing_fields }}'\n:templates='{{ templated_fields }}'\n:labels='{{ labels | json_encode }}'\n:limit='{{ limit | json_encode }}'\n:name=\"{{ field.name | json_encode }}\"\n- :state=\"{{ field.definition.get('default_state')|default('collapsed')|json_encode }}\"\n+ :variant=\"{{ variant|json_encode }}\"\n></editor-collection>\n{% endblock %}\n" } ]
PHP
MIT License
bolt/core
Depracete `default_state` for collection in favour of `variant`
95,147
14.10.2020 10:19:48
-7,200
30980b62bfa1e9a98350aaa1cbcba5c2d745b191
By default, fields are not localized
[ { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/ContentTypesParser.php", "new_path": "src/Configuration/Parser/ContentTypesParser.php", "diff": "@@ -316,6 +316,10 @@ class ContentTypesParser extends BaseParser\n$field['sanitise'] = in_array($field['type'], ['text', 'textarea', 'html', 'markdown'], true);\n}\n+ if (isset($field['localize']) === false) {\n+ $field['localize'] = false;\n+ }\n+\nif (empty($field['group'])) {\n$field['group'] = $currentGroup;\n} else {\n" } ]
PHP
MIT License
bolt/core
By default, fields are not localized
95,144
15.10.2020 15:35:17
-7,200
3fcc8638421c26d11aea829ede7cd0381fdd8b58
Don't break if slug is `null` as opposed to "empty string"
[ { "change_type": "MODIFY", "old_path": "assets/js/app/listing/Components/Table/Row/_Actions.vue", "new_path": "assets/js/app/listing/Components/Table/Row/_Actions.vue", "diff": "@@ -101,6 +101,9 @@ export default {\n},\ncomputed: {\nslug() {\n+ if (this.record.fieldValues.slug === null) {\n+ return '';\n+ }\nif (typeof this.record.fieldValues.slug === 'string') {\nreturn this.record.fieldValues.slug;\n}\n" }, { "change_type": "MODIFY", "old_path": "assets/js/app/listing/Components/Table/Row/index.vue", "new_path": "assets/js/app/listing/Components/Table/Row/index.vue", "diff": "@@ -60,6 +60,9 @@ export default {\n},\ncomputed: {\nslug() {\n+ if (this.record.fieldValues.slug === null) {\n+ return '';\n+ }\nif (typeof this.record.fieldValues.slug === 'string') {\nreturn this.record.fieldValues.slug;\n}\n" } ]
PHP
MIT License
bolt/core
Don't break if slug is `null` as opposed to "empty string"
95,144
15.10.2020 16:27:43
-7,200
1b86721dcb01b1ac339a8f445a6c1d9543fe3af5
Updating the system font stack for 2020
[ { "change_type": "MODIFY", "old_path": "assets/scss/init/_variables.scss", "new_path": "assets/scss/init/_variables.scss", "diff": "@@ -11,7 +11,7 @@ $bolt-saturated: #003e7c; // Very saturated. Use with care\n$big-z-index: 1000;\n// Typography\n-$font-family-base: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n+$font-family-base: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n$headings-font-family: 'Source Sans Variable', sans-serif;\n$font-size-base: 0.9rem;\n" }, { "change_type": "MODIFY", "old_path": "public/theme/skeleton/css/new.css", "new_path": "public/theme/skeleton/css/new.css", "diff": "/* New.css 1.1.3 from https://newcss.net */\n:root {\n- --nc-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n+ --nc-font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n--nc-font-mono: Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace;\n--nc-tx-1: #000000;\n--nc-tx-2: #1A1A1A;\n" }, { "change_type": "MODIFY", "old_path": "templates/_partials/notification.html.twig", "new_path": "templates/_partials/notification.html.twig", "diff": "border: none;\nborder-left-width: 5px !important;\nborder-left-style: solid !important;\n- font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\" !important;\n+ font-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\" !important;\nfont-size: 16px !important;\npadding: 1rem !important;\nmargin: 1rem 0 !important;\n" } ]
PHP
MIT License
bolt/core
Updating the system font stack for 2020
95,144
17.10.2020 12:16:47
-7,200
1118b920a52528410a7280cdc3c1bbeccfd98ce7
Enable twig namespace 'theme' by default
[ { "change_type": "MODIFY", "old_path": "config/packages/twig.yaml", "new_path": "config/packages/twig.yaml", "diff": "@@ -7,7 +7,7 @@ twig:\npaths:\n# Since the name of the theme folder is dynamic, we shouldn't set it here, but dynamically\n# See TwigAwareController::setTwigLoader()\n- # '%kernel.project_dir%/public/theme/%bolt.theme%': ''\n+ '%kernel.project_dir%/public/theme/%bolt.theme%': 'theme'\n'%kernel.project_dir%/templates/': 'bolt'\nglobals:\n'config': '@Bolt\\Configuration\\Config'\n" } ]
PHP
MIT License
bolt/core
Enable twig namespace 'theme' by default
95,115
17.10.2020 15:53:37
-7,200
5a3b3113aeeaaf7ea2102ef0f0940ee79885cf7f
Show actual error message from upload response if available in {error: {message: "the error"}} format (instead of [object Object]). If response contains just a string this will still be displayed as well.
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/File.vue", "new_path": "assets/js/app/editor/Components/File.vue", "diff": "@@ -264,7 +264,14 @@ export default {\nthis.progress = 0;\n})\n.catch(err => {\n- bootbox.alert(err.response.data + '<br>File did not upload.');\n+ const responseData = err.response.data;\n+ let errorMessage = 'unknown error';\n+ if (typeof responseData === 'string' || responseData instanceof String) {\n+ errorMessage = responseData;\n+ } else if (responseData.error && responseData.error.message) {\n+ errorMessage = responseData.error.message;\n+ }\n+ bootbox.alert(errorMessage + '<br>File did not upload.');\nconsole.warn(err);\nthis.progress = 0;\n});\n" } ]
PHP
MIT License
bolt/core
Show actual error message from upload response if available in {error: {message: "the error"}} format (instead of [object Object]). If response contains just a string this will still be displayed as well.
95,144
18.10.2020 15:18:41
-7,200
391c48ea263d41469eb230c8939bb71fc22ffde1
Update .gitattributes. We most certainly _do_ want `/assets/static`
[ { "change_type": "MODIFY", "old_path": ".gitattributes", "new_path": ".gitattributes", "diff": "/run_behat_tests.sh export-ignore\n/symfony.lock export-ignore\n/webpack.config.js export-ignore\n-/assets export-ignore\n+/assets/js export-ignore\n+/assets/scss export-ignore\n/bin export-ignore\n/config export-ignore\n/docker export-ignore\n" } ]
PHP
MIT License
bolt/core
Update .gitattributes. We most certainly _do_ want `/assets/static`
95,144
18.10.2020 16:20:19
-7,200
b4acd7081ce4f56eaeff78e5c1f77901339ff36a
Put back some more files that we really do need.
[ { "change_type": "MODIFY", "old_path": ".gitattributes", "new_path": ".gitattributes", "diff": "-/.babelrc export-ignore\n/.editorconfig export-ignore\n/.env export-ignore\n-/.eslintrc.js export-ignore\n/.git export-ignore\n/.gitattributes export-ignore\n/.github export-ignore\n/.gitignore export-ignore\n/.phpspec.yml export-ignore\n-/.prettierrc export-ignore\n-/.stylelintrc export-ignore\n/.travis.yml export-ignore\n/behat.yml export-ignore\n/docker-compose.yml export-ignore\n/ecs.php export-ignore\n/Makefile export-ignore\n-/package.json export-ignore\n-/package-lock.json export-ignore\n/phpstan.neon export-ignore\n/phpunit.bootstrap.php export-ignore\n/phpunit.xml.dist export-ignore\n-/postcss.config.js export-ignore\n/run_behat_tests.sh export-ignore\n/symfony.lock export-ignore\n-/webpack.config.js export-ignore\n-/assets/js export-ignore\n-/assets/scss export-ignore\n/bin export-ignore\n/config export-ignore\n/docker export-ignore\n" } ]
PHP
MIT License
bolt/core
Put back some more files that we really do need.
95,157
18.10.2020 21:50:48
-10,800
e170e888b86ec7197b6dbc6917f35dd0205ae8ae
Fixed Extensions List Command issue with package name
[ { "change_type": "MODIFY", "old_path": "src/Command/ExtensionsListCommand.php", "new_path": "src/Command/ExtensionsListCommand.php", "diff": "@@ -37,7 +37,8 @@ class ExtensionsListCommand extends Command\n$rows = [];\nforeach ($extensions as $extension) {\n- $rows[] = [$extension->getComposerPackage()->getName(), $extension->getClass(), $extension->getName()];\n+ $packageName = $extension->getComposerPackage() ? $extension->getComposerPackage()->getName() : 'No Package';\n+ $rows[] = [$packageName, $extension->getClass(), $extension->getName()];\n}\n$io = new SymfonyStyle($input, $output);\n" } ]
PHP
MIT License
bolt/core
Fixed Extensions List Command issue with package name
95,197
20.10.2020 12:32:13
25,200
87598db2eebbc8eb28e02d91aa14be2caac353b9
Update _collection_buttons.html.twig Aligns button group on the right side of its collection header. See comment here: Fixes:
[ { "change_type": "MODIFY", "old_path": "templates/_partials/fields/_collection_buttons.html.twig", "new_path": "templates/_partials/fields/_collection_buttons.html.twig", "diff": "{% if in_compound is defined %}\n- <div class=\"btn-group ml-2\" role=\"group\" aria-label=\"Collection buttons\">\n+ <div class=\"btn-group ml-auto mr-2\" role=\"group\" aria-label=\"Collection buttons\">\n<button class='action-move-up-collection-item btn btn-light btn-sm' style=\"white-space: nowrap\" {% if is_first is defined and is_first %} disabled {% endif %}>\n<i class=\"fas fa-fw fa-chevron-up\"></i>\n{{ 'collection.move_item_up'|trans }}\n" } ]
PHP
MIT License
bolt/core
Update _collection_buttons.html.twig Aligns button group on the right side of its collection header. See comment here: https://github.com/bolt/core/commit/492c45649f096d2a5318c1bcbbede6825304a88e#commitcomment-43284379 Fixes: https://github.com/bolt/core/issues/2014
95,165
20.10.2020 18:17:28
14,400
5dfd91c55c93c16b9011a09dfd7eeada171e1415
Changed name of generic taxonomy config file identifier
[ { "change_type": "MODIFY", "old_path": "src/TemplateChooser.php", "new_path": "src/TemplateChooser.php", "diff": "@@ -125,7 +125,7 @@ class TemplateChooser\n$templates = new Collection();\n// First candidate: defined specifically in the taxonomy\n- $templates->push($this->config->get('taxonomy/' . $taxonomyslug . '/listing_template'));\n+ $templates->push($this->config->get('taxonomies/' . $taxonomyslug . '/listing_template'));\n// Second candidate: Theme-specific config.yml file.\n$templates->push($this->config->get('theme/listing_template'));\n" } ]
PHP
MIT License
bolt/core
Changed name of generic taxonomy config file identifier
95,144
23.10.2020 11:37:12
-7,200
fed9cccd7c66ba4f31710a7761d9f1dc56080ad3
Yeah, let's change this back.
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -37,8 +37,8 @@ Follow the progress on the development of Bolt 4, at these locations\nTo set up a running **development** environment of Bolt 4 please perform the following steps 1 to 4:\n-1. Install\n-----------\n+1 Install\n+---------\nTo install a _**development**_ version of Bolt 4:\n@@ -83,8 +83,8 @@ Actually, just add `docker-` prefix to any Make command and that's it!\nWhen 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-2. Set up Database\n-------------------\n+2 Set up Database\n+-----------------\n- Configure the database connection in `.env` or stick with the default\nSQLite, which should work out of the box.\n@@ -102,8 +102,8 @@ Note: if you're using SQLite, ensure that `var/db/` is readable and writable to\nyou, as well as to the webserver users. The same applies to the file\n`var/data/bolt.sqlite` if it already exists.\n-3. Re-set the Database\n-----------------------\n+3 Re-set the Database\n+---------------------\nThis is a Bolt prototype in flux, so stuff can break, and you might want to reset the database to\nthe \"factory settings\". To re-set a database to the latest, with fresh\n@@ -117,8 +117,8 @@ bin/console doctrine:fixtures:load -n\nAlternatively, run `make db-reset`, on a UNIX-like system.\n-4. How to build assets\n---------------------\n+4 How to build assets\n+---------------------\nTo 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@@ -129,8 +129,8 @@ To set up initially, run `npm install` to get the required dependencies /\nSee the other options by running `npm run`.\n(Note: as I'm testing this as well remotely, I copied all assets from the released composer installation by `cp -r ../www_backup/public/assets/* public/assets/`)\n-5. Run the prototype\n---------------------\n+5 Run the prototype\n+-------------------\n- Using the Symfony CLI tool, just run `symfony server:start`.\n" } ]
PHP
MIT License
bolt/core
Yeah, let's change this back.
95,157
22.10.2020 22:02:20
-10,800
e7cffb9a7039abe95929161bd57d18d3de320065
Project specific extension bug in ExtensionExtension.php
[ { "change_type": "MODIFY", "old_path": "src/Twig/ExtensionExtension.php", "new_path": "src/Twig/ExtensionExtension.php", "diff": "@@ -48,8 +48,9 @@ class ExtensionExtension extends AbstractExtension\n$rows = [];\nforeach ($extensions as $extension) {\n+ $packageName = $extension->getComposerPackage() ? $extension->getComposerPackage()->getName() : 'No Package';\n$rows[] = [\n- 'package' => $extension->getComposerPackage()->getName(),\n+ 'package' => $packageName,\n'class' => $extension->getClass(),\n'name' => $extension->getName(),\n];\n" } ]
PHP
MIT License
bolt/core
Project specific extension bug in ExtensionExtension.php
95,144
24.10.2020 11:41:48
-7,200
4e0642a0df614bf3b85bbe61681670700ed3ceb4
Fix PHPstan breakage
[ { "change_type": "MODIFY", "old_path": "phpstan.neon", "new_path": "phpstan.neon", "diff": "@@ -36,3 +36,5 @@ services:\ntags: [phpstan.rules.rule]\narguments:\nforbiddenFunctions: ['d', 'dd', 'dump', 'var_dump', 'extract']\n+\n+ - Symplify\\PackageBuilder\\Matcher\\ArrayStringAndFnMatcher\n\\ No newline at end of file\n" } ]
PHP
MIT License
bolt/core
Fix PHPstan breakage
95,144
24.10.2020 11:51:52
-7,200
93a33a1418fd51740546686decbe12626749afcf
Force composer to stay on v1 for now
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -18,7 +18,7 @@ matrix:\nbefore_install:\n- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo \"xdebug not available\"\n- - composer self-update -q\n+ - composer self-update --1 -q\ninstall:\n- COMPOSER_MEMORY_LIMIT=-1 composer update\n" } ]
PHP
MIT License
bolt/core
Force composer to stay on v1 for now
95,144
24.10.2020 13:57:22
-7,200
5171498c3fd2448009e55fdd080faa092c2b91a7
Composer 2 compatibility
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"beberlei/doctrineextensions\": \"^1.2\",\n\"bolt/common\": \"^2.1.6\",\n\"cocur/slugify\": \"^4.0\",\n- \"composer/composer\": \"^1.10\",\n+ \"composer/composer\": \"^1.10 | ^2.0\",\n\"composer/package-versions-deprecated\": \"^1.11\",\n\"doctrine/doctrine-bundle\": \"^2.1\",\n\"doctrine/doctrine-fixtures-bundle\": \"^3.3\",\n\"doctrine/orm\": \"^2.7\",\n- \"drupol/composer-packages\": \"^1.1\",\n+ \"drupol/composer-packages\": \"dev-master\",\n\"embed/embed\": \"^3.4\",\n\"erusev/parsedown\": \"^1.7\",\n\"fzaninotto/faker\": \"^1.9\",\n\"se/selenium-server-standalone\": \"^3.141\",\n\"symfony/browser-kit\": \"^5.1\",\n\"symfony/css-selector\": \"^5.1\",\n- \"symplify/easy-coding-standard\": \"^8.2.3\",\n- \"vaimo/binary-chromedriver\": \"^5.0\"\n+ \"symplify/easy-coding-standard\": \"^8.2.3\"\n},\n\"config\": {\n\"preferred-install\": {\n]\n},\n\"replace\": {\n- \"container-interop/container-interop\": \"*\"\n+ \"container-interop/container-interop\": \"*\",\n+ \"vaimo/webdriver-binary-downloader\": \"*\"\n+ },\n+ \"minimum-stability\": \"dev\",\n+ \"prefer-stable\": true,\n+ \"repositories\": [\n+ {\n+ \"type\": \"vcs\",\n+ \"url\": \"https://github.com/bolt/binary-chromedriver\"\n+ },\n+ {\n+ \"type\": \"vcs\",\n+ \"url\": \"https://github.com/bolt/webdriver-binary-downloader\"\n}\n+ ]\n}\n" }, { "change_type": "MODIFY", "old_path": "symfony.lock", "new_path": "symfony.lock", "diff": "\"composer/composer\": {\n\"version\": \"1.9.3\"\n},\n+ \"composer/package-versions-deprecated\": {\n+ \"version\": \"1.11.99\"\n+ },\n\"composer/semver\": {\n\"version\": \"1.5.1\"\n},\n" } ]
PHP
MIT License
bolt/core
Composer 2 compatibility
95,144
25.10.2020 10:57:03
-3,600
4411f6590ddd5f6411d3b7eae7d0281fff71dbb8
Requiring stable release, not `dev-master`
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"behatch/contexts\": \"^3.3\",\n\"bobdenotter/configuration-notices\": \"^1.1\",\n\"bobdenotter/weatherwidget\": \"^1.1\",\n- \"bolt/binary-chromedriver\": \"dev-master\",\n+ \"bolt/binary-chromedriver\": \"^5.1.1\",\n\"bolt/newswidget\": \"^1.2\",\n\"coduo/php-matcher\": \"^4.0\",\n\"dama/doctrine-test-bundle\": \"^6.2.0\",\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.99\"\n- },\n\"peterkahl/country-code-to-emoji-flag\": {\n\"version\": \"v1.2\"\n},\n" } ]
PHP
MIT License
bolt/core
Requiring stable release, not `dev-master`
95,144
25.10.2020 11:54:27
-3,600
aa82090f7b96b16489e6af356e045724228953f1
Keep track of assets version on "About" page
[ { "change_type": "MODIFY", "old_path": "assets/js/app/common.js", "new_path": "assets/js/app/common.js", "diff": "import $ from 'jquery';\nimport { DateTime } from 'luxon';\n+import { version } from '../version';\n+window.assetsVersion = version;\n+\n$(document).ready(function() {\n// add a js class to indicate we have JS enabled. Might need a change to either modernizr or somethng comparable\n$('html').addClass('js');\n" }, { "change_type": "ADD", "old_path": null, "new_path": "assets/js/version.js", "diff": "+// generated by genversion\n+export const version = '4.1.3';\n" }, { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "\"pkg-dir\": \"^4.1.0\"\n}\n},\n+ \"find-package\": {\n+ \"version\": \"1.0.0\",\n+ \"resolved\": \"https://registry.npmjs.org/find-package/-/find-package-1.0.0.tgz\",\n+ \"integrity\": \"sha1-13ONpn48XwVcJNPhmqGu7QY8PoM=\",\n+ \"dev\": true,\n+ \"requires\": {\n+ \"parents\": \"^1.0.1\"\n+ }\n+ },\n\"find-up\": {\n\"version\": \"4.1.0\",\n\"resolved\": \"https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz\",\n\"resolve-dir\": \"^1.0.1\"\n}\n},\n+ \"firstline\": {\n+ \"version\": \"1.3.1\",\n+ \"resolved\": \"https://registry.npmjs.org/firstline/-/firstline-1.3.1.tgz\",\n+ \"integrity\": \"sha512-ycwgqtoxujz1dm0kjkBFOPQMESxB9uKc/PlD951dQDIG+tBXRpYZC2UmJb0gDxopQ1ZX6oyRQN3goRczYu7Deg==\",\n+ \"dev\": true\n+ },\n\"flagpack\": {\n\"version\": \"1.0.5\",\n\"resolved\": \"https://registry.npmjs.org/flagpack/-/flagpack-1.0.5.tgz\",\n\"integrity\": \"sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==\",\n\"dev\": true\n},\n+ \"genversion\": {\n+ \"version\": \"2.2.1\",\n+ \"resolved\": \"https://registry.npmjs.org/genversion/-/genversion-2.2.1.tgz\",\n+ \"integrity\": \"sha512-q/QoXvB22iLpGvvkhJYTaJTpYgTBLJiMfwNtvGoEIBWHF5Vr1/dnbasYX9CGmqs6O4dZE4f/xjvxqp+DAyDgRg==\",\n+ \"dev\": true,\n+ \"requires\": {\n+ \"commander\": \"^2.11.0\",\n+ \"find-package\": \"^1.0.0\",\n+ \"firstline\": \"^1.2.1\",\n+ \"mkdirp\": \"^0.5.1\"\n+ }\n+ },\n\"get-caller-file\": {\n\"version\": \"2.0.5\",\n\"resolved\": \"https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz\",\n},\n\"is-obj\": {\n\"version\": \"1.0.1\",\n- \"resolved\": \"http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz\",\n\"integrity\": \"sha1-PkcprB9f3gJc19g6iW2rn09n2w8=\"\n},\n\"is-path-cwd\": {\n},\n\"load-json-file\": {\n\"version\": \"1.1.0\",\n- \"resolved\": \"http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz\",\n\"integrity\": \"sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=\",\n\"dev\": true,\n\"requires\": {\n},\n\"semver\": {\n\"version\": \"5.3.0\",\n- \"resolved\": \"http://registry.npmjs.org/semver/-/semver-5.3.0.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/semver/-/semver-5.3.0.tgz\",\n\"integrity\": \"sha1-myzl094C0XxgEq0yaqa00M9U+U8=\",\n\"dev\": true\n}\n}\n}\n},\n+ \"parents\": {\n+ \"version\": \"1.0.1\",\n+ \"resolved\": \"https://registry.npmjs.org/parents/-/parents-1.0.1.tgz\",\n+ \"integrity\": \"sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=\",\n+ \"dev\": true,\n+ \"requires\": {\n+ \"path-platform\": \"~0.11.15\"\n+ }\n+ },\n\"parse-asn1\": {\n\"version\": \"5.1.6\",\n\"resolved\": \"https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz\",\n\"resolved\": \"https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz\",\n\"integrity\": \"sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==\"\n},\n+ \"path-platform\": {\n+ \"version\": \"0.11.15\",\n+ \"resolved\": \"https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz\",\n+ \"integrity\": \"sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=\",\n+ \"dev\": true\n+ },\n\"path-to-regexp\": {\n\"version\": \"0.1.7\",\n\"resolved\": \"https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz\",\n},\n\"safe-regex\": {\n\"version\": \"1.1.0\",\n- \"resolved\": \"http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz\",\n\"integrity\": \"sha1-QKNmnzsHfR6UPURinhV91IAjvy4=\",\n\"requires\": {\n\"ret\": \"~0.1.10\"\n}\n},\n\"sortablejs\": {\n- \"version\": \"1.12.0\",\n- \"resolved\": \"https://registry.npmjs.org/sortablejs/-/sortablejs-1.12.0.tgz\",\n- \"integrity\": \"sha512-bPn57rCjBRlt2sC24RBsu40wZsmLkSo2XeqG8k6DC1zru5eObQUIPPZAQG7W2SJ8FZQYq+BEJmvuw1Zxb3chqg==\"\n+ \"version\": \"1.10.2\",\n+ \"resolved\": \"https://registry.npmjs.org/sortablejs/-/sortablejs-1.10.2.tgz\",\n+ \"integrity\": \"sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A==\"\n},\n\"source-list-map\": {\n\"version\": \"2.0.1\",\n},\n\"strip-ansi\": {\n\"version\": \"3.0.1\",\n- \"resolved\": \"http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n\"integrity\": \"sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=\",\n\"requires\": {\n\"ansi-regex\": \"^2.0.0\"\n},\n\"strip-eof\": {\n\"version\": \"1.0.0\",\n- \"resolved\": \"http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz\",\n+ \"resolved\": \"https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz\",\n\"integrity\": \"sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=\"\n},\n\"strip-final-newline\": {\n}\n},\n\"vuedraggable\": {\n- \"version\": \"2.24.2\",\n- \"resolved\": \"https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.2.tgz\",\n- \"integrity\": \"sha512-y1NbVhLFOVHHdJl7qsYOtExiTq4zyxF+PxiF9NC8kHEtI6sAFhUHtHYp+ONa8v4S3bAspzGHOHuOq0pNO4fFtA==\",\n+ \"version\": \"2.24.3\",\n+ \"resolved\": \"https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.3.tgz\",\n+ \"integrity\": \"sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g==\",\n\"requires\": {\n- \"sortablejs\": \"^1.10.1\"\n+ \"sortablejs\": \"1.10.2\"\n}\n},\n\"vuex\": {\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"vue-multiselect\": \"^2.1.6\",\n\"vue-simplemde\": \"^1.1.2\",\n\"vue-trumbowyg\": \"^3.6.2\",\n- \"vuedraggable\": \"^2.24.2\",\n+ \"vuedraggable\": \"^2.24.3\",\n\"vuex\": \"^3.5.1\",\n\"zxcvbn\": \"^4.4.2\"\n},\n\"eslint-plugin-prettier\": \"^3.1.4\",\n\"eslint-plugin-standard\": \"^4.0.2\",\n\"eslint-plugin-vue\": \"^6.2.2\",\n+ \"genversion\": \"^2.2.1\",\n\"jest\": \"^25.5.4\",\n\"jest-serializer-vue\": \"^2.0.2\",\n\"node-sass\": \"^4.14.1\",\n\"stylelint\": \"stylelint 'assets/scss'\",\n\"stylelint-fix\": \"stylelint 'assets/scss' --fix\",\n\"csfix\": \"eslint --ext .js,.vue, assets --fix; stylelint 'assets/scss' --fix\",\n- \"test\": \"jest\"\n+ \"test\": \"jest\",\n+ \"genversion\": \"genversion --es6 --semi assets/js/version.js\"\n},\n\"browserslist\": [\n\"> 1%\"\n" }, { "change_type": "MODIFY", "old_path": "templates/pages/about.html.twig", "new_path": "templates/pages/about.html.twig", "diff": "{% block main %}\n- <h2>Bolt {{ constant('Bolt\\\\Version::VERSION') }}<small> - {{ constant('Bolt\\\\Version::CODENAME') }}</small></h2>\n+ <h2>\n+ Bolt {{ constant('Bolt\\\\Version::VERSION') }}\n+ {% if constant('Bolt\\\\Version::CODENAME') %}<small> - {{ constant('Bolt\\\\Version::CODENAME') }}</small>{% endif %}\n+ </h2>\n<p><b>{{ 'about.system_info'|trans }}:</b></p>\n<ul>\n<li>PHP version: <code>{{ php }}</code></li>\n<li>Symfony version: <code>{{ symfony }}</code></li>\n<li>Operating System: <code>{{ os_name }} - <small>{{ os_version }}</small></code></li>\n+ <li>Assets version: <code id=\"assetsVersion\">-</code></li>\n</ul>\n<hr>\n{# @todo: Once we settle on a Markdown component (like MDE or ToastUI), add it here. #}\n</ul>\n+ <script>\n+ document.addEventListener(\"DOMContentLoaded\", function() {\n+ document.querySelector('#assetsVersion').innerText = window.assetsVersion;\n+ });\n+ </script>\n+\n{% endblock main %}\n" } ]
PHP
MIT License
bolt/core
Keep track of assets version on "About" page
95,144
25.10.2020 12:45:39
-3,600
15709749c8753ec3abc738527c3240165dc4a10a
Add `Carbon` to `scanDirectories`
[ { "change_type": "MODIFY", "old_path": "phpstan.neon", "new_path": "phpstan.neon", "diff": "@@ -5,8 +5,9 @@ parameters:\n- src\nscanDirectories:\n- # In order to 'recognize' Twig functions in global scope\n+ # In order to 'recognize' Twig and Carbon functions in global scope\n- %currentWorkingDirectory%/vendor/twig/twig/src/Extension\n+ - %currentWorkingDirectory%/vendor/nesbot/carbon/src/Carbon\nignoreErrors:\n# false positive: `Unreachable statement - code above always terminates.`\n" } ]
PHP
MIT License
bolt/core
Add `Carbon` to `scanDirectories`
95,144
25.10.2020 13:12:01
-3,600
8eb1cc38385b59ddbfd0035108fd270a2d3af0c8
Pin `drupol/composer-packages` to `2.0`
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"doctrine/doctrine-bundle\": \"^2.1\",\n\"doctrine/doctrine-fixtures-bundle\": \"^3.3\",\n\"doctrine/orm\": \"^2.7\",\n- \"drupol/composer-packages\": \"dev-master\",\n+ \"drupol/composer-packages\": \"^2.0\",\n\"embed/embed\": \"^3.4\",\n\"erusev/parsedown\": \"^1.7\",\n\"fzaninotto/faker\": \"^1.9\",\n" } ]
PHP
MIT License
bolt/core
Pin `drupol/composer-packages` to `2.0`
95,144
25.10.2020 14:33:42
-3,600
f1724c3827cf0e44d26cbbbef8b9390a39d1597d
Ninja-edit Travis to do less verbose `composer update`
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -21,7 +21,7 @@ before_install:\n- composer self-update --2 -q\ninstall:\n- - COMPOSER_MEMORY_LIMIT=-1 composer update -v\n+ - COMPOSER_MEMORY_LIMIT=-1 composer update\n- ./bin/console bolt:info\n- nvm install 12.5\n- npm ci\n" } ]
PHP
MIT License
bolt/core
Ninja-edit Travis to do less verbose `composer update`
95,144
26.10.2020 10:58:34
-3,600
c121660d5cb08e253c86bc8b139556d03ca7ac4d
Cleaning up `composer.json`
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"sort-packages\": true\n},\n\"extra\": {\n+ \"public-dir\": \"public\",\n\"symfony\": {\n\"allow-contrib\": true,\n\"require\": \"^5.1\"\n- },\n- \"public-dir\": \"public\"\n+ }\n},\n\"autoload\": {\n\"psr-4\": {\n\"spec\\\\Bolt\\\\\": \"tests/spec/Bolt/\"\n}\n},\n+ \"minimum-stability\": \"dev\",\n+ \"prefer-stable\": true,\n\"scripts\": {\n\"post-install-cmd\": \"php bin/composer-script/post-install-cmd.php --ansi\",\n+ \"post-update-cmd\": \"php bin/composer-script/post-update-cmd.php --ansi\",\n\"pre-package-uninstall\": [\n\"php bin/console extensions:configure --remove-services --ansi\"\n],\n- \"post-update-cmd\": \"php bin/composer-script/post-update-cmd.php --ansi\",\n\"auto-scripts\": [\n\"php bin/console cache:clear --no-warmup --ansi\",\n\"php bin/console assets:install --symlink --relative public --ansi\"\n\"periodical-tasks\": [\n\"security-checker security:check\"\n]\n- },\n- \"replace\": {\n- \"container-interop/container-interop\": \"*\"\n- },\n- \"minimum-stability\": \"dev\",\n- \"prefer-stable\": true\n+ }\n}\n" } ]
PHP
MIT License
bolt/core
Cleaning up `composer.json`
95,144
29.10.2020 13:57:47
-3,600
137ccf956807ac1aa6e871c60e202b95ad65a941
Remove extraneous whitespace in excerpts
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"api-platform/core\": \"^2.5\",\n\"babdev/pagerfanta-bundle\": \"^2.5\",\n\"beberlei/doctrineextensions\": \"^1.2\",\n- \"bolt/common\": \"^2.1.6\",\n+ \"bolt/common\": \"^2.1.10\",\n\"cocur/slugify\": \"^4.0\",\n\"composer/composer\": \"^2.0\",\n\"composer/package-versions-deprecated\": \"^1.11\",\n" }, { "change_type": "MODIFY", "old_path": "src/Utils/Excerpt.php", "new_path": "src/Utils/Excerpt.php", "diff": "@@ -4,6 +4,8 @@ declare(strict_types=1);\nnamespace Bolt\\Utils;\n+use Bolt\\Common\\Str;\n+\nclass Excerpt\n{\npublic static function getExcerpt(string $text, int $length = 200, $focus = null): string\n@@ -14,7 +16,7 @@ class Excerpt\n$text = Html::trimText($text, $length);\n}\n- return trim($text);\n+ return Str::cleanWhitespace($text);\n}\n/**\n" }, { "change_type": "MODIFY", "old_path": "src/Utils/Html.php", "new_path": "src/Utils/Html.php", "diff": "@@ -28,7 +28,7 @@ class Html\n$newLength = $desiredLength;\n}\n- $str = trim(strip_tags($str));\n+ $str = Str::cleanWhitespace(strip_tags($str));\n$str = filter_var($str, FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_LOW);\n@@ -40,7 +40,7 @@ class Html\n// Check for too long cutoff\nif (mb_strlen($str) - $lastSpace >= $cutOffCap) {\n// Trim the ellipse, as we do not want a space now\n- return $str . trim($ellipseStr);\n+ return $str . Str::cleanWhitespace($ellipseStr);\n}\n$str = mb_substr($str, 0, $lastSpace);\n}\n" } ]
PHP
MIT License
bolt/core
Remove extraneous whitespace in excerpts
95,144
29.10.2020 15:55:30
-3,600
325d7dc5aa37a1c517ec188e59f43226f520ecbc
Add three more 'allowed' tags by default
[ { "change_type": "MODIFY", "old_path": "config/bolt/config.yaml", "new_path": "config/bolt/config.yaml", "diff": "@@ -156,7 +156,7 @@ filepermissions:\n# the allowed tags. For example, if you set `images: true`, the `<img>` tag\n# will be allowed, regardless of it being in the `allowed_tags` setting.\nhtmlcleaner:\n- allowed_tags: [ div, span, p, br, hr, s, u, strong, em, i, b, li, ul, ol, mark, blockquote, pre, code, tt, h1, h2, h3, h4, h5, h6, dd, dl, dt, table, tbody, thead, tfoot, th, td, tr, a, img, address, abbr, iframe, caption, sub, super, figure, figcaption ]\n+ allowed_tags: [ div, span, p, br, hr, s, u, strong, em, i, b, li, ul, ol, mark, blockquote, pre, code, tt, h1, h2, h3, h4, h5, h6, dd, dl, dt, table, tbody, thead, tfoot, th, td, tr, a, img, address, abbr, iframe, caption, sub, super, figure, figcaption, article, section, small ]\nallowed_attributes: [ id, class, style, name, value, href, src, alt, title, width, height, frameborder, allowfullscreen, scrolling, target, colspan, rowspan, rel, download, hreflang ]\nallowed_frame_targets: [ _blank, _self, _parent, _top ]\n" } ]
PHP
MIT License
bolt/core
Add three more 'allowed' tags by default
95,144
30.10.2020 12:29:44
-3,600
a29ec8e6c2a93df325912c0d15b4477d9336aed3
Correct spelling of `sup`
[ { "change_type": "MODIFY", "old_path": "config/bolt/config.yaml", "new_path": "config/bolt/config.yaml", "diff": "@@ -156,7 +156,7 @@ filepermissions:\n# the allowed tags. For example, if you set `images: true`, the `<img>` tag\n# will be allowed, regardless of it being in the `allowed_tags` setting.\nhtmlcleaner:\n- allowed_tags: [ div, span, p, br, hr, s, u, strong, em, i, b, li, ul, ol, mark, blockquote, pre, code, tt, h1, h2, h3, h4, h5, h6, dd, dl, dt, table, tbody, thead, tfoot, th, td, tr, a, img, address, abbr, iframe, caption, sub, super, figure, figcaption, article, section, small ]\n+ allowed_tags: [ div, span, p, br, hr, s, u, strong, em, i, b, li, ul, ol, mark, blockquote, pre, code, tt, h1, h2, h3, h4, h5, h6, dd, dl, dt, table, tbody, thead, tfoot, th, td, tr, a, img, address, abbr, iframe, caption, sub, sup, figure, figcaption, article, section, small ]\nallowed_attributes: [ id, class, style, name, value, href, src, alt, title, width, height, frameborder, allowfullscreen, scrolling, target, colspan, rowspan, rel, download, hreflang ]\nallowed_frame_targets: [ _blank, _self, _parent, _top ]\n" } ]
PHP
MIT License
bolt/core
Correct spelling of `sup`
95,144
28.10.2020 17:09:05
-3,600
838d551e2af655b4b8a6d5ee92283f786cba99a5
Make "files" selector use more levels
[ { "change_type": "MODIFY", "old_path": "src/Controller/Backend/Async/FileListingController.php", "new_path": "src/Controller/Backend/Async/FileListingController.php", "diff": "@@ -69,7 +69,7 @@ class FileListingController implements AsyncZoneInterface\nprivate function findFiles(string $path, ?string $glob = null): Finder\n{\n$finder = new Finder();\n- $finder->in($path)->depth('< 3')->sortByType()->files();\n+ $finder->in($path)->depth('< 5')->sortByType()->files();\nif ($glob) {\n$finder->name($glob);\n" } ]
PHP
MIT License
bolt/core
Make "files" selector use more levels
95,144
31.10.2020 10:40:56
-3,600
ffa5eb844d3a3bfe829bef2ebbdb2f886153e8ef
Use first element, regardless of index
[ { "change_type": "MODIFY", "old_path": "src/Entity/FieldTranslation.php", "new_path": "src/Entity/FieldTranslation.php", "diff": "@@ -55,7 +55,7 @@ class FieldTranslation implements TranslationInterface\npublic function isEmpty(): bool\n{\n- $value = is_iterable($this->value) ? $this->value[0] : $this->value;\n+ $value = is_iterable($this->value) ? current($this->value) : $this->value;\nreturn empty($value);\n}\n" } ]
PHP
MIT License
bolt/core
Use first element, regardless of index
95,144
02.11.2020 08:42:29
-3,600
3f6fde0eb3e4456f47c4527cfea321efbec18e2b
Fix empty Imagelist breaking rendering in Prod ENV
[ { "change_type": "MODIFY", "old_path": "templates/_partials/fields/imagelist.html.twig", "new_path": "templates/_partials/fields/imagelist.html.twig", "diff": "{% set limit = field.definition.get('limit')|default(200) %}\n<editor-imagelist\n- :images='{{ field.jsonvalue }}'\n+ :images='{{ field.jsonvalue|default('[]') }}'\n:name='{{ name|json_encode }}'\n:directory='{{ directory|json_encode }}'\n:filelist='{{ filelist|json_encode }}'\n" } ]
PHP
MIT License
bolt/core
Fix empty Imagelist breaking rendering in Prod ENV
95,190
03.11.2020 21:32:50
-3,600
7e021f012b73d9928f2db09a2f34d9d3f96cfc9e
undoing all from more errors further down appear
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Select.vue", "new_path": "assets/js/app/editor/Components/Select.vue", "diff": "@@ -87,7 +87,7 @@ export default {\nif (this.selected === null) {\nreturn JSON.stringify([]);\n- } else if (this.selected.map && typeof item !== 'undefined') {\n+ } else if (this.selected.map) {\nfiltered = this.selected.map(item => item.key);\nreturn JSON.stringify(filtered);\n} else {\n" } ]
PHP
MIT License
bolt/core
undoing all from 50e6f1b, more errors further down appear
95,144
05.11.2020 13:59:53
-3,600
b3d1241ae66cae3586b3f5dc0a4418f102b6f398
Explicitly set `form_theme` for when a project defines its own forms.
[ { "change_type": "MODIFY", "old_path": "templates/security/login.html.twig", "new_path": "templates/security/login.html.twig", "diff": "{% block main %}\n<div>\n+ {% form_theme loginForm 'bootstrap_4_layout.html.twig' %}\n+\n<div class=\"login__logo\">\n<img class=\"logo\" alt=\"Bolt CMS logo\"\n{% if not config.get('general/omit_backgrounds') %}\n" } ]
PHP
MIT License
bolt/core
Explicitly set `form_theme` for when a project defines its own forms.
95,144
31.10.2020 13:59:49
-3,600
1b178e95aaa30d813e3c38581b581182fc5e3242
Fix: Support standard Symfony `.env` options
[ { "change_type": "MODIFY", "old_path": ".editorconfig", "new_path": ".editorconfig", "diff": "-; top-most EditorConfig file\n+# EditorConfig helps developers define and maintain consistent\n+# coding styles between different editors and IDEs\n+# editorconfig.org\n+\nroot = true\n-; Unix-style newlines\n[*]\n-end_of_line = LF\n+# Change these settings to your own preference\n+indent_style = space\n+indent_size = 4\n+\n+# We recommend you to keep these unchanged\n+end_of_line = lf\n+charset = utf-8\n+trim_trailing_whitespace = true\n+insert_final_newline = true\n+\n+[*.feature]\n+indent_style = space\n+indent_size = 2\n+\n+[*.js]\n+indent_style = space\n+indent_size = 2\n+\n+[*.json]\n+indent_style = space\n+indent_size = 2\n+\n+[*.md]\n+trim_trailing_whitespace = false\n+\n+[*.php]\n+indent_style = space\n+indent_size = 4\n+\n+[*.sh]\n+indent_style = tab\n+indent_size = 4\n+\n+[*.vcl]\n+indent_style = space\n+indent_size = 2\n+\n+[*.xml]\n+indent_style = space\n+indent_size = 4\n+\n+[*.{yaml,yml}]\n+indent_style = space\n+indent_size = 4\n+trim_trailing_whitespace = false\n+\n+[.github/workflows/*.yml]\n+indent_style = space\n+indent_size = 2\n+\n+[.gitmodules]\n+indent_style = tab\n+indent_size = 4\n+\n+[*.neon{,.dist}]\n+indent_style = tab\n+indent_size = 4\n+\n+[.php_cs{,.dist}]\n+indent_style = space\n+indent_size = 4\n+\n+[composer.json]\n+indent_style = space\n+indent_size = 4\n+\n+[docker-compose{,.*}.{yaml,yml}]\n+indent_style = space\n+indent_size = 2\n+\n+[Dockerfile]\n+indent_style = tab\n+indent_size = 4\n+\n+[Makefile]\n+indent_style = tab\n+indent_size = 4\n+\n+[package.json]\n+indent_style = space\n+indent_size = 2\n+\n+[phpunit.xml{,.dist}]\nindent_style = space\nindent_size = 4\n" }, { "change_type": "MODIFY", "old_path": ".env", "new_path": ".env", "diff": "+# In all environments, the following files are loaded if they exist,\n+# the latter taking precedence over the former:\n+#\n+# * .env contains default values for the environment variables needed by the app\n+# * .env.local uncommitted file with local overrides\n+# * .env.$APP_ENV committed environment-specific defaults\n+# * .env.$APP_ENV.local uncommitted environment-specific overrides\n+#\n+# Real environment variables win over .env files.\n+#\n+# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.\n+#\n+# Run \"composer dump-env prod\" to compile .env files for production use (requires symfony/flex >=1.2).\n+# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration\n+\n###> symfony/framework-bundle ###\nAPP_ENV=dev\nAPP_DEBUG=1\n-APP_SECRET=73fd814e2c9fbf61dc5f87a62967d829\n-#TRUSTED_PROXIES=127.0.0.1,127.0.0.2\n-#TRUSTED_HOSTS='^localhost|example\\.com$'\n+APP_SECRET=!ChangeMe!\n+TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16\n+#TRUSTED_HOSTS='^(localhost|nginx)$'\n###< symfony/framework-bundle ###\n###> doctrine/doctrine-bundle ###\n-\n-# Uncomment the appropriate line(s) below to set the database using a DSN (data source name)\n-# Replace `db_user`, `db_password` and `db_name` where needed. Depending on your server settings,\n-# you might also need to configure the host (\"localhost\" / \"127.0.0.1\") or the port number (\"3306\")\n# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url\n+# For an SQLite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"\n+# For a MySQL / MariaDB database, use: \"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"\n+# For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8\"\n+#\n+# Potential replacements:\n+# db_user - database username\n+# db_password - database password. If it contains special characters, you can quote it: \"p@ss'w0rd\"\n+# 127.0.0.1 - database host. Often 127.0.0.1 or localhost. Can also be a remote host\n+# 3306 / 5432 - port number for resp. MySQL and Postgres.\n+# data.db - Database name for SQLite. This is the file the DB will be written to.\n+# serverVersion - The version of the Database\n+\n+# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml\n# SQLite (note: _three_ slashes)\n-DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/bolt.sqlite\n+#DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/bolt.sqlite\n# MYSQL / MariaDB\n-#DATABASE_URL=mysql://db_user:\"db_password\"@localhost:3306/db_name\n+#DATABASE_URL=mysql://db_user:\"db_password\"@127.0.0.1:3306/db_name\n# Postgres\n-#DATABASE_URL=postgresql://db_user:\"db_password\"@localhost:5432/db_name?serverVersion=11&charset=utf8\"\n-\n-# MYSQL / MariaDB (additional settings, needed for Docker)\n-#DATABASE_USER=db_user\n-#DATABASE_PASSWORD=db_password\n-#DATABASE_NAME=db_name\n+DATABASE_URL=postgresql://db_user:\"db_password\"@127.0.0.1:5432/db_name?serverVersion=11\n###< doctrine/doctrine-bundle ###\n+###> nelmio/cors-bundle ###\n+CORS_ALLOW_ORIGIN=^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$\n+###< nelmio/cors-bundle ###\n+\n###> symfony/mailer ###\nMAILER_DSN=smtp://localhost\n+# for Docker:\n+# MAILER_DSN=smtp://mailcatcher:1025\n###< symfony/mailer ###\n-###> nelmio/cors-bundle ###\n-CORS_ALLOW_ORIGIN=^https?://(localhost|127\\\\.0\\\\.0\\\\.1)(:[0-9]+)?$\n-###< nelmio/cors-bundle ###\n-\n###> php-translation/loco-adapter ###\nLOCO_PROJECT_API_KEY=\n###< php-translation/loco-adapter ###\n" }, { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "@@ -70,6 +70,9 @@ appveyor.yml\n.php-version\n###> symfony/framework-bundle ###\n+/.env.local\n+/.env.local.php\n+/.env.*.local\n/public/bundles/\n/vendor/\n###< symfony/framework-bundle ###\n" }, { "change_type": "MODIFY", "old_path": "bin/console", "new_path": "bin/console", "diff": "use Bolt\\Kernel;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Input\\ArgvInput;\n-use Symfony\\Component\\Debug\\Debug;\nuse Symfony\\Component\\Dotenv\\Dotenv;\n+use Symfony\\Component\\ErrorHandler\\Debug;\n+\n+if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {\n+ echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;\n+}\nset_time_limit(0);\n-require __DIR__.'/../vendor/autoload.php';\n+require dirname(__DIR__).'/vendor/autoload.php';\n-if (!class_exists(Application::class)) {\n- throw new \\RuntimeException('You need to add \"symfony/framework-bundle\" as a Composer dependency.');\n+if (!class_exists(Application::class) || !class_exists(Dotenv::class)) {\n+ throw new LogicException('You need to add \"symfony/framework-bundle\" and \"symfony/dotenv\" as Composer dependencies.');\n}\n-if (!isset($_SERVER['APP_ENV'])) {\n- if (!class_exists(Dotenv::class)) {\n- throw new \\RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add \"symfony/dotenv\" as a Composer dependency to load variables from a .env file.');\n+$input = new ArgvInput();\n+if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {\n+ putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);\n}\n- (new Dotenv())->load(__DIR__.'/../.env');\n+\n+if ($input->hasParameterOption('--no-debug', true)) {\n+ putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');\n}\n-$input = new ArgvInput();\n-$env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev', true);\n-$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true);\n+(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');\n-if ($debug) {\n+if ($_SERVER['APP_DEBUG']) {\numask(0000);\nif (class_exists(Debug::class)) {\n@@ -34,6 +38,6 @@ if ($debug) {\n}\n}\n-$kernel = new Kernel($env, $debug);\n+$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);\n$application = new Application($kernel);\n$application->run($input);\n" }, { "change_type": "MODIFY", "old_path": "public/index.php", "new_path": "public/index.php", "diff": "declare(strict_types=1);\nuse Bolt\\Kernel;\n-use Symfony\\Component\\ErrorHandler\\Debug;\n+\nuse Symfony\\Component\\Dotenv\\Dotenv;\n+use Symfony\\Component\\ErrorHandler\\Debug;\nuse Symfony\\Component\\HttpFoundation\\Request;\n-require __DIR__.'/../vendor/autoload.php';\n-\n-// The check is to ensure we don't use .env in production\n-if (! isset($_SERVER['APP_ENV'])) {\n- if (! class_exists(Dotenv::class)) {\n- throw new \\RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add \"symfony/dotenv\" as a Composer dependency to load variables from a .env file.');\n- }\n- (new Dotenv())->load(__DIR__.'/../.env');\n-}\n+require dirname(__DIR__).'/vendor/autoload.php';\n-$env = $_SERVER['APP_ENV'] ?? 'dev';\n-$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ($env !== 'prod'));\n+(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');\n-if ($debug) {\n+if ($_SERVER['APP_DEBUG']) {\numask(0000);\nDebug::enable();\n}\n-if (! empty($_SERVER['TRUSTED_PROXIES'])) {\n- Request::setTrustedProxies(explode(',', $_SERVER['TRUSTED_PROXIES']), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);\n+if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {\n+ Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);\n}\n-if (! empty($_SERVER['TRUSTED_HOSTS'])) {\n- Request::setTrustedHosts(explode(',', $_SERVER['TRUSTED_HOSTS']));\n+if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {\n+ Request::setTrustedHosts([$trustedHosts]);\n}\n-$kernel = new Kernel($env, $debug);\n+$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);\n$request = Request::createFromGlobals();\n$response = $kernel->handle($request);\n$response->send();\n" } ]
PHP
MIT License
bolt/core
Fix: Support standard Symfony `.env` options
95,115
07.11.2020 16:09:34
-3,600
36f03643f32fd7bef4fe321cf43868d3bbb3cde7
Rename guesstimatePublicFolder() to getPublicFolder() and make the function protected. This way subclasses of Kernel can provide their own implementation, for example returning a hard-coded path.
[ { "change_type": "MODIFY", "old_path": "src/Kernel.php", "new_path": "src/Kernel.php", "diff": "@@ -91,7 +91,7 @@ class Kernel extends BaseKernel\nprivate function setBoltParameters(ContainerBuilder $container, string $confDir): void\n{\n- $container->setParameter('bolt.public_folder', $this->guesstimatePublicFolder());\n+ $container->setParameter('bolt.public_folder', $this->getPublicFolder());\n$fileLocator = new FileLocator([$confDir . '/bolt']);\n$fileName = $fileLocator->locate('config.yaml', null, true);\n@@ -158,7 +158,16 @@ class Kernel extends BaseKernel\n$container->setParameter('bolt.requirement.taxonomies', $slugs);\n}\n- private function guesstimatePublicFolder(): string\n+ /**\n+ * Return the public folder of this project. This implementation locates the public folder\n+ * for this project by checking for the following candidates in the project dir: 'public',\n+ * 'public_html', 'www', 'web', 'httpdocs', 'wwwroot', 'htdocs', 'http_public', 'private_html'\n+ * and picking the first that is a directory.\n+ *\n+ * @return string path to the public folder for this project\n+ * @throws \\Exception\n+ */\n+ protected function getPublicFolder(): string\n{\n$projectDir = $this->getProjectDir();\n$candidates = ['public', 'public_html', 'www', 'web', 'httpdocs', 'wwwroot', 'htdocs', 'http_public', 'private_html'];\n" } ]
PHP
MIT License
bolt/core
Rename guesstimatePublicFolder() to getPublicFolder() and make the function protected. This way subclasses of Kernel can provide their own implementation, for example returning a hard-coded path.
95,159
09.11.2020 22:33:23
-10,800
081507bf78aea271e8bb9ebd04e2eb9ee9e04b50
add ExtensionBackendMenuInterface thats allow to extend menu in backend easily
[ { "change_type": "MODIFY", "old_path": ".github/workflows/code_analysis.yaml", "new_path": ".github/workflows/code_analysis.yaml", "diff": "@@ -27,7 +27,7 @@ jobs:\n-\nname: Check YAML configs files\n- run: bin/console lint:yaml config --ansi\n+ run: bin/console lint:yaml config --ansi --parse-tags\n-\nname: Check TWIG files\n" }, { "change_type": "MODIFY", "old_path": "config/services.yaml", "new_path": "config/services.yaml", "diff": "@@ -28,6 +28,9 @@ services:\n$projectDir: '%kernel.project_dir%'\n$publicFolder: '%bolt.public_folder%'\n$tablePrefix: '%bolt.table_prefix%'\n+ _instanceof:\n+ Bolt\\Menu\\ExtensionBackendMenuInterface:\n+ tags: [ 'bolt.extension_backend_menu' ]\n# makes classes in src/ available to be used as services\n# this creates a service per class whose id is the fully-qualified class name\n@@ -69,7 +72,9 @@ services:\n# menus\nBolt\\Menu\\BackendMenuBuilder:\n- arguments: [\"@knp_menu.factory\"]\n+ arguments:\n+ - \"@knp_menu.factory\"\n+ - !tagged_iterator bolt.extension_backend_menu\ntags:\n- { name: knp_menu.menu_builder, method: createAdminMenu, alias: admin_menu } # The alias is what is used to retrieve the menu\n" }, { "change_type": "MODIFY", "old_path": "src/Menu/BackendMenuBuilder.php", "new_path": "src/Menu/BackendMenuBuilder.php", "diff": "@@ -37,8 +37,12 @@ final class BackendMenuBuilder implements BackendMenuBuilderInterface\n/** @var ContentExtension */\nprivate $contentExtension;\n+ /** @var ExtensionBackendMenuInterface[] */\n+ private $extensionMenus;\n+\npublic function __construct(\nFactoryInterface $menuFactory,\n+ iterable $extensionMenus,\nConfig $config,\nContentRepository $contentRepository,\nUrlGeneratorInterface $urlGenerator,\n@@ -51,6 +55,7 @@ final class BackendMenuBuilder implements BackendMenuBuilderInterface\n$this->urlGenerator = $urlGenerator;\n$this->translator = $translator;\n$this->contentExtension = $contentExtension;\n+ $this->extensionMenus = $extensionMenus;\n}\nprivate function createAdminMenu(): ItemInterface\n@@ -80,6 +85,8 @@ final class BackendMenuBuilder implements BackendMenuBuilderInterface\n$this->addContentOthers($menu);\n+ $this->addExtensionMenus($menu);\n+\n$menu->addChild('Settings', [\n'extras' => [\n'name' => $t->trans('caption.settings'),\n@@ -380,6 +387,13 @@ final class BackendMenuBuilder implements BackendMenuBuilderInterface\nreturn $result;\n}\n+ private function addExtensionMenus(MenuItem $menu): void\n+ {\n+ foreach ($this->extensionMenus as $extensionMenu) {\n+ $extensionMenu->addItems($menu);\n+ }\n+ }\n+\npublic function buildAdminMenu(): array\n{\n$menu = $this->createAdminMenu()->getChildren();\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/Menu/ExtensionBackendMenuInterface.php", "diff": "+<?php\n+\n+declare(strict_types=1);\n+\n+namespace Bolt\\Menu;\n+\n+use Knp\\Menu\\MenuItem;\n+\n+interface ExtensionBackendMenuInterface\n+{\n+ public function addItems(MenuItem $menu): void;\n+}\n" } ]
PHP
MIT License
bolt/core
add ExtensionBackendMenuInterface thats allow to extend menu in backend easily
95,159
09.11.2020 23:26:12
-10,800
edc6dcc360be071efd18f8fef42486e23ef7e5a6
add make docker-build use composer alias everywhere
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -134,19 +134,22 @@ docker-install: ## to install project with docker\nmake docker-db-create\ndocker-install-deps: ## to install all assets with docker\n- docker-compose exec -T php sh -c \"composer install\"\n+ docker-compose exec -T php sh -c \"$(COMPOSER) install\"\n$(DC_RUN) node sh -c \"npm install\"\n$(DC_RUN) node sh -c \"npm rebuild node-sass\"\n$(DC_RUN) node sh -c \"npm run build\"\n-docker-start: ## to build containers\n+docker-build: ## to build containers\n+ docker-compose build\n+\n+docker-start: ## to start containers\ndocker-compose up -d\ndocker-assets-serve: ## to run server with npm\n$(DC_RUN) node sh -c \"npm run serve\"\ndocker-update: ## to update dependencies with docker\n- docker-compose exec -T php sh -c \"composer update && composer outdated\"\n+ docker-compose exec -T php sh -c \"$(COMPOSER) update && $(COMPOSER) outdated\"\ndocker-cache: ## to clean cache with docke\ndocker-compose exec -T php sh -c \"bin/console cache:clear\"\n" }, { "change_type": "MODIFY", "old_path": "docker/php/Dockerfile", "new_path": "docker/php/Dockerfile", "diff": "@@ -66,7 +66,6 @@ RUN extBuildDeps=\" \\\nsed -i s'/pm.max_spare_servers = 3/pm.max_spare_servers = 35/' /usr/local/etc/php-fpm.d/www.conf && \\\necho 'ForwardAgent yes' >> /etc/ssh/ssh_config && \\\ncurl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \\\n- composer global require \"hirak/prestissimo:^0.3\" --prefer-dist --no-progress --no-suggest --optimize-autoloader --classmap-authoritative && \\\ncomposer clear-cache && \\\nmkdir -p /root/.ssh/ && \\\nssh-keyscan github.com >> /root/.ssh/known_hosts\n" } ]
PHP
MIT License
bolt/core
add make docker-build use composer alias everywhere
95,115
11.11.2020 22:18:17
-3,600
933fa21330c8b9f967d67c64700544c8f97ac00b
return 404 for listing route of contenttype that has viewless: true. Fixes
[ { "change_type": "MODIFY", "old_path": "src/Controller/Frontend/ListingController.php", "new_path": "src/Controller/Frontend/ListingController.php", "diff": "@@ -14,6 +14,7 @@ use Pagerfanta\\Adapter\\ArrayAdapter;\nuse Pagerfanta\\Pagerfanta;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n+use Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\Routing\\Annotation\\Route;\nclass ListingController extends TwigAwareController implements FrontendZoneInterface\n@@ -46,6 +47,11 @@ class ListingController extends TwigAwareController implements FrontendZoneInter\n$contentType = ContentType::factory($contentTypeSlug, $this->config->get('contenttypes'));\n+ // If the ContentType is 'viewless' we throw a 404.\n+ if ($contentType->get('viewless') === true) {\n+ throw new NotFoundHttpException('Content is not viewable');\n+ }\n+\n// If the locale is the wrong locale\nif (! $this->validLocaleForContentType($contentType)) {\nreturn $this->redirectToDefaultLocale();\n" } ]
PHP
MIT License
bolt/core
return 404 for listing route of contenttype that has viewless: true. Fixes https://github.com/bolt/core/issues/2109
95,115
10.11.2020 16:17:48
-3,600
366a9db037ac579b91b8340fd911d97c9253ded7
simple workaround to stop elements from opening when moving
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Collection.vue", "new_path": "assets/js/app/editor/Components/Collection.vue", "diff": "</div>\n<div v-for=\"element in elements\" :key=\"element.hash\" class=\"collection-item\">\n+ <!-- Navigation buttons -->\n+ <div :is=\"compile(element.buttons)\"></div>\n<details :open=\"variant === 'expanded'\" class=\"card\">\n<summary class=\"d-block\">\n<div class=\"card-header d-flex align-items-center\">\n<i :class=\"[element.icon, 'fas fa-fw']\" />\n{{ element.label }}\n</div>\n-\n- <!-- Navigation buttons -->\n- <div :is=\"compile(element.buttons)\"></div>\n</div>\n</summary>\n@@ -146,6 +145,7 @@ export default {\n* The collection items are not Vue elements in order to initialise them correctly within their twig template.\n*/\nwindow.$(document).on('click', vueThis.selector.collectionContainer + vueThis.selector.remove, function(e) {\n+ console.log('click remove');\ne.preventDefault();\nlet collectionContainer = window.$(this).closest(vueThis.selector.collectionContainer);\nvueThis.getCollectionItemFromPressedButton(this).remove();\n@@ -153,6 +153,7 @@ export default {\nvueThis.counter--;\n});\nwindow.$(document).on('click', vueThis.selector.collectionContainer + vueThis.selector.moveUp, function(e) {\n+ console.log('click up');\ne.preventDefault();\nlet thisCollectionItem = vueThis.getCollectionItemFromPressedButton(this);\nlet prevCollectionitem = vueThis.getPreviousCollectionItem(thisCollectionItem);\n@@ -161,6 +162,7 @@ export default {\nvueThis.setButtonsState(prevCollectionitem);\n});\nwindow.$(document).on('click', vueThis.selector.collectionContainer + vueThis.selector.moveDown, function(e) {\n+ console.log('click down');\ne.preventDefault();\nlet thisCollectionItem = vueThis.getCollectionItemFromPressedButton(this);\nlet nextCollectionItem = vueThis.getNextCollectionItem(thisCollectionItem);\n@@ -169,6 +171,7 @@ export default {\nvueThis.setButtonsState(nextCollectionItem);\n});\nwindow.$(document).on('click', vueThis.selector.collectionContainer + vueThis.selector.expandAll, function(e) {\n+ console.log('click expand all');\ne.preventDefault();\nconst collection = $(e.target).closest(vueThis.selector.collectionContainer);\ncollection.find('details').attr('open', '');\n@@ -176,6 +179,7 @@ export default {\nwindow\n.$(document)\n.on('click', vueThis.selector.collectionContainer + vueThis.selector.collapseAll, function(e) {\n+ console.log('click collapse all');\ne.preventDefault();\nconst collection = $(e.target).closest(vueThis.selector.collectionContainer);\ncollection.find('details').removeAttr('open');\n@@ -214,14 +218,14 @@ export default {\n/**\n* Open newly inserted collection items.\n*/\n- $(document).on('DOMNodeInserted', function(e) {\n- if ($(e.target).hasClass('collection-item')) {\n- $(e.target)\n- .find('details')\n- .first()\n- .attr('open', '');\n- }\n- });\n+ // $(document).on('DOMNodeInserted', function(e) {\n+ // if ($(e.target).hasClass('collection-item')) {\n+ // $(e.target)\n+ // .find('details')\n+ // .first()\n+ // .attr('open', '');\n+ // }\n+ // });\n},\nupdated() {\nthis.setAllButtonsStates(window.$(this.$refs.collectionContainer));\n" } ]
PHP
MIT License
bolt/core
simple workaround to stop elements from opening when moving
95,115
12.11.2020 00:11:22
-3,600
7a02a4dda26071d266716f12638a5c9a9564c340
replace summary/details tags with divs to fix issue with propagating mouse events from up/down/delete buttons
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Collection.vue", "new_path": "assets/js/app/editor/Components/Collection.vue", "diff": "</div>\n</div>\n- <div v-for=\"element in elements\" :key=\"element.hash\" class=\"collection-item\">\n- <!-- Navigation buttons -->\n- <div :is=\"compile(element.buttons)\"></div>\n- <details :open=\"variant === 'expanded'\" class=\"card\">\n- <summary class=\"d-block\">\n+ <div\n+ v-for=\"element in elements\"\n+ :key=\"element.hash\"\n+ class=\"collection-item\"\n+ v-bind:class=\"{ collapsed: variant !== 'expanded' }\"\n+ >\n+ <div class=\"d-block summary\">\n<div class=\"card-header d-flex align-items-center\">\n<!-- Initial title. This is replaced by dynamic title in JS below. -->\n<i class=\"card-marker-caret fa fa-caret-right\"></i>\n<i :class=\"[element.icon, 'fas fa-fw']\" />\n{{ element.label }}\n</div>\n+ <!-- Navigation buttons -->\n+ <div :is=\"compile(element.buttons)\"></div>\n</div>\n- </summary>\n-\n+ </div>\n+ <div class=\"card details\">\n<!-- The actual field -->\n<div :is=\"compile(element.content)\" class=\"card-body\"></div>\n- </details>\n+ </div>\n</div>\n<div class=\"row\">\n@@ -144,17 +148,24 @@ export default {\n* This is a jQuery event listener, because Vue cannot handle an event emitted by a non-vue element.\n* The collection items are not Vue elements in order to initialise them correctly within their twig template.\n*/\n+ window\n+ .$(document)\n+ .on('click', vueThis.selector.collectionContainer + ' .collection-item .summary', function(e) {\n+ e.preventDefault();\n+ let thisCollectionItem = vueThis.getCollectionItemFromPressedButton(this);\n+ thisCollectionItem.toggleClass('collapsed');\n+ });\nwindow.$(document).on('click', vueThis.selector.collectionContainer + vueThis.selector.remove, function(e) {\n- console.log('click remove');\ne.preventDefault();\n+ e.stopPropagation();\nlet collectionContainer = window.$(this).closest(vueThis.selector.collectionContainer);\nvueThis.getCollectionItemFromPressedButton(this).remove();\nvueThis.setAllButtonsStates(collectionContainer);\nvueThis.counter--;\n});\nwindow.$(document).on('click', vueThis.selector.collectionContainer + vueThis.selector.moveUp, function(e) {\n- console.log('click up');\ne.preventDefault();\n+ e.stopPropagation();\nlet thisCollectionItem = vueThis.getCollectionItemFromPressedButton(this);\nlet prevCollectionitem = vueThis.getPreviousCollectionItem(thisCollectionItem);\nwindow.$(thisCollectionItem).after(prevCollectionitem);\n@@ -162,8 +173,8 @@ export default {\nvueThis.setButtonsState(prevCollectionitem);\n});\nwindow.$(document).on('click', vueThis.selector.collectionContainer + vueThis.selector.moveDown, function(e) {\n- console.log('click down');\ne.preventDefault();\n+ e.stopPropagation();\nlet thisCollectionItem = vueThis.getCollectionItemFromPressedButton(this);\nlet nextCollectionItem = vueThis.getNextCollectionItem(thisCollectionItem);\nwindow.$(thisCollectionItem).before(nextCollectionItem);\n@@ -171,18 +182,16 @@ export default {\nvueThis.setButtonsState(nextCollectionItem);\n});\nwindow.$(document).on('click', vueThis.selector.collectionContainer + vueThis.selector.expandAll, function(e) {\n- console.log('click expand all');\ne.preventDefault();\nconst collection = $(e.target).closest(vueThis.selector.collectionContainer);\n- collection.find('details').attr('open', '');\n+ collection.find('.collection-item').removeClass('collapsed');\n});\nwindow\n.$(document)\n.on('click', vueThis.selector.collectionContainer + vueThis.selector.collapseAll, function(e) {\n- console.log('click collapse all');\ne.preventDefault();\nconst collection = $(e.target).closest(vueThis.selector.collectionContainer);\n- collection.find('details').removeAttr('open');\n+ collection.find('.collection-item').addClass('collapsed');\n});\n/**\n* Update the title dynamically.\n" }, { "change_type": "MODIFY", "old_path": "assets/scss/modules/editor/fields/_collection.scss", "new_path": "assets/scss/modules/editor/fields/_collection.scss", "diff": ".collection-item {\nmargin-bottom: 1rem;\n- summary {\n+ .summary {\npadding: 0;\nbackground: transparent;\n+ cursor: pointer;\n&::-webkit-details-marker {\ndisplay: none;\ni.card-marker-caret {\nmargin-right: 0.75rem;\n+ transform: rotate(90deg);\n}\n}\n- details[open] summary i.card-marker-caret {\n- transform: rotate(90deg);\n+ &.collapsed {\n+ .summary i.card-marker-caret {\n+ transform: rotate(0);\n+ }\n}\n.collection-item-title {\ntext-overflow: ellipsis;\nwhite-space: nowrap;\noverflow: hidden;\n+ user-select: none;\n+ }\n+\n+ &.collapsed .details {\n+ display: none;\n}\n.card-body {\n" } ]
PHP
MIT License
bolt/core
replace summary/details tags with divs to fix issue with propagating mouse events from up/down/delete buttons
95,119
13.11.2020 18:00:40
-3,600
abfec9d1c18ec7743f65706240a638452c56b527
feat(user): update User entity to add avatar field
[ { "change_type": "MODIFY", "old_path": "src/Entity/User.php", "new_path": "src/Entity/User.php", "diff": "@@ -9,6 +9,7 @@ use Bolt\\Enum\\UserStatus;\nuse Cocur\\Slugify\\Slugify;\nuse Doctrine\\ORM\\Mapping as ORM;\nuse Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity;\n+use Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Serializer\\Annotation\\Groups;\nuse Symfony\\Component\\Validator\\Constraints as Assert;\n@@ -105,6 +106,14 @@ class User implements UserInterface, \\Serializable\n/** @ORM\\OneToOne(targetEntity=\"Bolt\\Entity\\UserAuthToken\", mappedBy=\"user\", cascade={\"persist\", \"remove\"}) */\nprivate $userAuthToken;\n+ /** @ORM\\Column(type=\"string\", length=250, nullable=true) */\n+ private $avatarPath;\n+\n+ /**\n+ * @var UploadedFile\n+ */\n+ private $avatar;\n+\npublic function __construct()\n{\n}\n@@ -319,4 +328,24 @@ class User implements UserInterface, \\Serializable\n{\nreturn $this->id === null;\n}\n+\n+ public function getAvatarPath(): ?string\n+ {\n+ return $this->avatarPath;\n+ }\n+\n+ public function setAvatarPath($avatarPath): void\n+ {\n+ $this->avatarPath = $avatarPath;\n+ }\n+\n+ public function getAvatar(): UploadedFile\n+ {\n+ return $this->avatar;\n+ }\n+\n+ public function setAvatar(UploadedFile $avatar): void\n+ {\n+ $this->avatar = $avatar;\n+ }\n}\n" } ]
PHP
MIT License
bolt/core
feat(user): update User entity to add avatar field
95,119
13.11.2020 18:03:06
-3,600
2edff586994683a2b594d09a263580ade0687a09
fix(user): getAvatar can return null
[ { "change_type": "MODIFY", "old_path": ".env", "new_path": ".env", "diff": "@@ -38,10 +38,10 @@ TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16\n# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml\n# SQLite (note: _three_ slashes)\n-DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/bolt.sqlite\n+#DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/bolt.sqlite\n# MYSQL / MariaDB\n-#DATABASE_URL=mysql://db_user:\"db_password\"@127.0.0.1:3306/db_name\n+DATABASE_URL=mysql://root:root@localhost:3306/bolt_41core\n# Postgres\n#DATABASE_URL=postgresql://db_user:\"db_password\"@127.0.0.1:5432/db_name?serverVersion=11\n" }, { "change_type": "MODIFY", "old_path": "src/Entity/User.php", "new_path": "src/Entity/User.php", "diff": "@@ -339,7 +339,7 @@ class User implements UserInterface, \\Serializable\n$this->avatarPath = $avatarPath;\n}\n- public function getAvatar(): UploadedFile\n+ public function getAvatar(): ?UploadedFile\n{\nreturn $this->avatar;\n}\n" } ]
PHP
MIT License
bolt/core
fix(user): getAvatar can return null
95,119
13.11.2020 18:03:57
-3,600
a6420acf2702fc35df685d26ae0a8d91111ea4d3
feat(user): add avatar in UserEditType
[ { "change_type": "MODIFY", "old_path": "src/Form/UserEditType.php", "new_path": "src/Form/UserEditType.php", "diff": "@@ -10,6 +10,7 @@ use Bolt\\Utils\\LocaleHelper;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\EmailType;\n+use Symfony\\Component\\Form\\Extension\\Core\\Type\\FileType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\n@@ -82,7 +83,11 @@ class UserEditType extends AbstractType\n])\n->add('status', ChoiceType::class, [\n'choices' => UserStatus::all(),\n- ]);\n+ ])\n+ ->add('avatar', FileType::class, [\n+ 'required' => false\n+ ])\n+ ;\n// ->add('lastseenAt')\n// ->add('lastIp')\n// ->add('backendTheme')\n" } ]
PHP
MIT License
bolt/core
feat(user): add avatar in UserEditType
95,119
13.11.2020 19:45:49
-3,600
2612136e53873da756726b77c7bdcd084c84a701
feat(user): update entity to remove UploadableFile
[ { "change_type": "MODIFY", "old_path": "src/Entity/User.php", "new_path": "src/Entity/User.php", "diff": "@@ -107,11 +107,6 @@ class User implements UserInterface, \\Serializable\nprivate $userAuthToken;\n/** @ORM\\Column(type=\"string\", length=250, nullable=true) */\n- private $avatarPath;\n-\n- /**\n- * @var UploadedFile\n- */\nprivate $avatar;\npublic function __construct()\n@@ -329,22 +324,12 @@ class User implements UserInterface, \\Serializable\nreturn $this->id === null;\n}\n- public function getAvatarPath(): ?string\n- {\n- return $this->avatarPath;\n- }\n-\n- public function setAvatarPath($avatarPath): void\n- {\n- $this->avatarPath = $avatarPath;\n- }\n-\n- public function getAvatar(): ?UploadedFile\n+ public function getAvatar(): ?string\n{\nreturn $this->avatar;\n}\n- public function setAvatar(UploadedFile $avatar): void\n+ public function setAvatar(?string $avatar): void\n{\n$this->avatar = $avatar;\n}\n" } ]
PHP
MIT License
bolt/core
feat(user): update entity to remove UploadableFile
95,119
13.11.2020 19:46:08
-3,600
396283d2033bd86d5a37912b6ae690a49452e32c
feat(user): change UploadableFile to TextType
[ { "change_type": "MODIFY", "old_path": "src/Form/UserEditType.php", "new_path": "src/Form/UserEditType.php", "diff": "@@ -84,8 +84,12 @@ class UserEditType extends AbstractType\n->add('status', ChoiceType::class, [\n'choices' => UserStatus::all(),\n])\n- ->add('avatar', FileType::class, [\n- 'required' => false\n+ ->add('avatar', TextType::class, [\n+ 'required' => false,\n+ 'attr' => [\n+ 'upload_path' => 'avatars',\n+ 'extensions_allowed' => ['png', 'jpeg', 'jpg', 'gif']\n+ ]\n])\n;\n// ->add('lastseenAt')\n" } ]
PHP
MIT License
bolt/core
feat(user): change UploadableFile to TextType
95,119
13.11.2020 19:46:30
-3,600
86a9e8ac724a2bd83108ba2707914cb79e5a12b1
feat(user): add simple_image field and use it in form
[ { "change_type": "ADD", "old_path": null, "new_path": "templates/_partials/fields/simple_image.html.twig", "diff": "+{# {% extends '@bolt/_partials/fields/_base.html.twig' %}\n+\n+{% set extensions = field.definition.get('extensions')|default('') %}\n+{% set info %}\n+ {{ 'upload.allow_file_types'|trans }}: <code>{{ extensions|join('</code>, <code>') }}</code><br>\n+ {{ 'upload.max_size'|trans }}: {{ config.maxupload|format_bytes }}\n+{% endset %}\n+\n+{% block field %}\n+ {% set directory = path('bolt_async_upload', {'location': location|default('files'), 'path': upload_path}) %}\n+ {% set filelist = path('bolt_async_filelisting', {'location': location|default('files') }) %}\n+ {% set labels = {\n+ 'button_upload': 'image.button_upload'|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+ 'placeholder_title': 'image.placeholder_title'|trans,\n+ 'button_edit_attributes': 'image.button_edit_attributes'|trans,\n+ }|json_encode %}\n+\n+\n+ <editor-image\n+ :name='{{ name|json_encode }}'\n+ :filename='{{ filepath|json_encode }}'\n+ :thumbnail='{{ null|thumbnail(width=400, height=300)|json_encode }}'\n+ :title='{{ null|json_encode }}'\n+ :media='{{ 'avatars/1605292244_avatar-370-456322.png'|json_encode }}'\n+ :directory='{{ directory|json_encode }}'\n+ :filelist='{{ filelist|json_encode }}'\n+ :csrf-token='{{ csrf_token('upload')|json_encode }}'\n+ :labels='{{ labels }}'\n+ :extensions='{{ extensions_allowed|json_encode }}'\n+ :attributes-link='{{ path('bolt_media_new')|json_encode }}'\n+ :required='{{ required|json_encode }}'\n+ :readonly='{{ readonly|json_encode }}'\n+ :errormessage='{{ errormessage|json_encode }}'\n+ :pattern='{{ pattern|json_encode }}'\n+ :placeholder='{{ placeholder|json_encode }}'\n+ ></editor-image>\n+{% endblock %}\n+\n+#}\n+\n+{% extends '@bolt/_partials/fields/_base.html.twig' %}\n+\n+{% set extensions = extensions_allowed|default([]) %}\n+{% set info %}\n+ {{ 'upload.allow_file_types'|trans }}: <code>{{ extensions|join('</code>, <code>') }}</code><br>\n+ {{ 'upload.max_size'|trans }}: {{ config.maxupload|format_bytes }}\n+{% endset %}\n+\n+{% block field %}\n+ {% set directory = path('bolt_async_upload', {'location': location|default('files'), 'path': upload_path}) %}\n+ {% set directoryurl = path('bolt_async_upload_url', {'location': location|default('files'), 'path': upload_path}) %}\n+ {% set filelist = path('bolt_async_filelisting', {'location': location|default('files'), 'type': 'images' }) %}\n+ {% set labels = {\n+ 'button_upload': 'image.button_upload'|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+ }|json_encode %}\n+\n+ <editor-image\n+ :name='{{ name|json_encode }}'\n+ :filename='{{ filepath|json_encode }}'\n+ :directory='{{ directory|json_encode }}'\n+ :directoryurl='{{ directoryurl|json_encode }}'\n+ :filelist='{{ filelist|json_encode }}'\n+ :csrf-token='{{ csrf_token('upload')|json_encode }}'\n+ :labels='{{ labels }}'\n+ :extensions='{{ extensions|json_encode }}'\n+ :attributes-link='{{ path('bolt_media_new')|json_encode }}'\n+ :required='{{ required|json_encode }}'\n+ :readonly='{{ readonly|json_encode }}'\n+ :errormessage='{{ errormessage|json_encode }}'\n+ :pattern='{{ pattern|json_encode }}'\n+ :placeholder='{{ placeholder|json_encode }}'\n+ ></editor-image>\n+{% endblock %}\n" }, { "change_type": "MODIFY", "old_path": "templates/users/_form.html.twig", "new_path": "templates/users/_form.html.twig", "diff": "{% endif %}\n{% do userForm.status.setRendered() %}\n+ {# ===== AVATAR ===== #}\n+ {% include '@bolt/_partials/fields/simple_image.html.twig' with {\n+ 'filepath': userForm.avatar.vars.value,\n+ 'upload_path': userForm.avatar.vars.attr['upload_path'],\n+ 'extensions_allowed': userForm.avatar.vars.attr['extensions_allowed'],\n+ 'id' : userForm.avatar.vars.id,\n+ 'label' : 'label.avatar'|trans,\n+ 'name' : userForm.vars.name ~ '[' ~ userForm.avatar.vars.name ~ ']',\n+ 'value' : userForm.avatar.vars.value,\n+ 'required': userForm.avatar.vars.required,\n+ } %}\n+ {% if form_errors(userForm.avatar) is not empty %}\n+ <div class=\"field-error\">{{ form_errors(userForm.avatar) }}</div>\n+ {% endif %}\n+ {% do userForm.avatar.setRendered() %}\n+\n{# TODO: include form field with '@bolt/_partials/fields/select.html.twig' #}\n{# Comment out for a while, until we work on this again\n" } ]
PHP
MIT License
bolt/core
feat(user): add simple_image field and use it in form
95,119
13.11.2020 21:05:15
-3,600
47ae7cf7dee50bd01cb1b3c025c41027bd993187
feat(user): transform media data to store avatar path
[ { "change_type": "MODIFY", "old_path": "src/Controller/Backend/UserEditController.php", "new_path": "src/Controller/Backend/UserEditController.php", "diff": "@@ -145,9 +145,12 @@ class UserEditController extends TwigAwareController implements BackendZoneInter\n// We need to transform to JSON.stringify value for the field \"roles\" into\n// an array so symfony forms validation works\n$submitted_data['roles'] = json_decode($submitted_data['roles']);\n+\n+ // Transform media array to keep only filepath\n+ $submitted_data['avatar'] = $submitted_data['avatar']['filename'];\n+\n$form->submit($submitted_data);\n}\n-\nif ($form->isSubmitted() && $form->isValid()) {\nreturn $this->_handleValidFormSubmit($form);\n}\n" } ]
PHP
MIT License
bolt/core
feat(user): transform media data to store avatar path
95,119
13.11.2020 21:38:36
-3,600
9fcb4e02457beb2c7b46586df0af971a7e9f904d
feat(user): add avatar configuration
[ { "change_type": "MODIFY", "old_path": "config/bolt/config.yaml", "new_path": "config/bolt/config.yaml", "diff": "@@ -193,3 +193,9 @@ fixtures_seed: 87654\n# Globally enable / disable the validator for Fields\nvalidator_options:\nenable: true\n+\n+# Options for user's avatar\n+user_avatar:\n+ upload_path: avatars\n+ extensions_allowed: ['png', 'jpeg', 'jpg', 'gif']\n+ default_avatar: '/assets/images/placeholder.png'\n" }, { "change_type": "MODIFY", "old_path": "src/Form/UserEditType.php", "new_path": "src/Form/UserEditType.php", "diff": "@@ -4,13 +4,14 @@ declare(strict_types=1);\nnamespace Bolt\\Form;\n+use Bolt\\Collection\\DeepCollection;\n+use Bolt\\Configuration\\Config;\nuse Bolt\\Entity\\User;\nuse Bolt\\Enum\\UserStatus;\nuse Bolt\\Utils\\LocaleHelper;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\EmailType;\n-use Symfony\\Component\\Form\\Extension\\Core\\Type\\FileType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\n@@ -25,11 +26,19 @@ class UserEditType extends AbstractType\n/** @var Environment */\nprivate $twig;\n+ /**\n+ * @var DeepCollection\n+ */\n+ private $avatarConfig;\n- public function __construct(LocaleHelper $localeHelper, Environment $twig)\n+ public function __construct(LocaleHelper $localeHelper, Environment $twig, Config $config)\n{\n$this->localeHelper = $localeHelper;\n$this->twig = $twig;\n+\n+ /** @var DeepCollection $config */\n+ $config = $config->get('general');\n+ $this->avatarConfig = $config->get('user_avatar');\n}\npublic function buildForm(FormBuilderInterface $builder, array $options): void\n@@ -87,11 +96,12 @@ class UserEditType extends AbstractType\n->add('avatar', TextType::class, [\n'required' => false,\n'attr' => [\n- 'upload_path' => 'avatars',\n- 'extensions_allowed' => ['png', 'jpeg', 'jpg', 'gif']\n- ]\n+ 'upload_path' => $this->avatarConfig->get('upload_path'),\n+ 'extensions_allowed' => $this->avatarConfig->get('extensions_allowed'),\n+ ],\n])\n;\n+\n// ->add('lastseenAt')\n// ->add('lastIp')\n// ->add('backendTheme')\n" } ]
PHP
MIT License
bolt/core
feat(user): add avatar configuration
95,119
13.11.2020 21:50:46
-3,600
a6382f363d035be92cfdac7f09491e31179d6fa9
feat(user): load default avatar
[ { "change_type": "MODIFY", "old_path": "config/bolt/config.yaml", "new_path": "config/bolt/config.yaml", "diff": "@@ -198,4 +198,4 @@ validator_options:\nuser_avatar:\nupload_path: avatars\nextensions_allowed: ['png', 'jpeg', 'jpg', 'gif']\n- default_avatar: '/assets/images/placeholder.png'\n+ default_avatar: '' # Put path of file locate in files directory\n" }, { "change_type": "MODIFY", "old_path": "config/services.yaml", "new_path": "config/services.yaml", "diff": "@@ -67,6 +67,10 @@ services:\ntags:\n- { name: doctrine.event_listener, event: postLoad }\n+ Bolt\\Event\\Listener\\UserAvatarLoadListener:\n+ tags:\n+ - { name: doctrine.event_listener, event: postLoad }\n+\nBolt\\Extension\\RoutesLoader:\ntags: [routing.loader]\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/Event/Listener/UserAvatarLoadListener.php", "diff": "+<?php\n+\n+declare(strict_types=1);\n+\n+namespace Bolt\\Event\\Listener;\n+\n+use Bolt\\Collection\\DeepCollection;\n+use Bolt\\Configuration\\Config;\n+use Bolt\\Entity\\User;\n+use Doctrine\\ORM\\Event\\LifecycleEventArgs;\n+\n+class UserAvatarLoadListener\n+{\n+ /**\n+ * @var DeepCollection\n+ */\n+ private $avatarConfig;\n+\n+ public function __construct(Config $config)\n+ {\n+ /** @var DeepCollection $config */\n+ $config = $config->get('general');\n+ $this->avatarConfig = $config->get('user_avatar');\n+ }\n+\n+ public function postLoad(LifecycleEventArgs $args): void\n+ {\n+ $entity = $args->getEntity();\n+\n+ if ($entity instanceof User) {\n+ if(!$entity->getAvatar() && $this->avatarConfig->get('default_avatar') !== '') {\n+ $entity->setAvatar($this->avatarConfig->get('default_avatar'));\n+ }\n+ }\n+ }\n+}\n" }, { "change_type": "MODIFY", "old_path": "src/Form/UserEditType.php", "new_path": "src/Form/UserEditType.php", "diff": "@@ -26,6 +26,7 @@ class UserEditType extends AbstractType\n/** @var Environment */\nprivate $twig;\n+\n/**\n* @var DeepCollection\n*/\n" } ]
PHP
MIT License
bolt/core
feat(user): load default avatar
95,119
13.11.2020 21:57:02
-3,600
82be7c1819663ea17c8ba74f843765b72c46af16
feat(user): add translation
[ { "change_type": "MODIFY", "old_path": "translations/messages.en.xlf", "new_path": "translations/messages.en.xlf", "diff": "<target>Add User</target>\n</segment>\n</unit>\n+ <unit id=\"nWMH_Nr\" name=\"label.avatar\">\n+ <segment>\n+ <source>label.avatar</source>\n+ <target>Avatar</target>\n+ </segment>\n+ </unit>\n</file>\n</xliff>\n" } ]
PHP
MIT License
bolt/core
feat(user): add translation
95,119
13.11.2020 22:00:05
-3,600
a70e6eaf1c14ecd2ba94ff8297e2053db0149abd
fix(style): csfixer
[ { "change_type": "MODIFY", "old_path": "src/Entity/User.php", "new_path": "src/Entity/User.php", "diff": "@@ -9,7 +9,6 @@ use Bolt\\Enum\\UserStatus;\nuse Cocur\\Slugify\\Slugify;\nuse Doctrine\\ORM\\Mapping as ORM;\nuse Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity;\n-use Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Serializer\\Annotation\\Groups;\nuse Symfony\\Component\\Validator\\Constraints as Assert;\n" }, { "change_type": "MODIFY", "old_path": "src/Event/Listener/UserAvatarLoadListener.php", "new_path": "src/Event/Listener/UserAvatarLoadListener.php", "diff": "@@ -11,9 +11,7 @@ use Doctrine\\ORM\\Event\\LifecycleEventArgs;\nclass UserAvatarLoadListener\n{\n- /**\n- * @var DeepCollection\n- */\n+ /** @var DeepCollection */\nprivate $avatarConfig;\npublic function __construct(Config $config)\n" }, { "change_type": "MODIFY", "old_path": "src/Form/UserEditType.php", "new_path": "src/Form/UserEditType.php", "diff": "@@ -27,9 +27,7 @@ class UserEditType extends AbstractType\n/** @var Environment */\nprivate $twig;\n- /**\n- * @var DeepCollection\n- */\n+ /** @var DeepCollection */\nprivate $avatarConfig;\npublic function __construct(LocaleHelper $localeHelper, Environment $twig, Config $config)\n" } ]
PHP
MIT License
bolt/core
fix(style): csfixer
95,119
13.11.2020 22:05:36
-3,600
44a1bf850b33ec0d0b2aecb4d98829264a9f3e56
fix(env): revert env
[ { "change_type": "MODIFY", "old_path": ".env", "new_path": ".env", "diff": "@@ -38,10 +38,10 @@ TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16\n# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml\n# SQLite (note: _three_ slashes)\n-#DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/bolt.sqlite\n+DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/bolt.sqlite\n# MYSQL / MariaDB\n-DATABASE_URL=mysql://root:root@localhost:3306/bolt_41core\n+#DATABASE_URL=mysql://db_user:\"db_password\"@127.0.0.1:3306/db_name\n# Postgres\n#DATABASE_URL=postgresql://db_user:\"db_password\"@127.0.0.1:5432/db_name?serverVersion=11\n" } ]
PHP
MIT License
bolt/core
fix(env): revert env
95,119
13.11.2020 22:59:18
-3,600
04f54b8c6ea00dab633bfe6a1f5f11adc6dcffa0
fix(user): fix user add action
[ { "change_type": "MODIFY", "old_path": "src/Controller/Backend/UserEditController.php", "new_path": "src/Controller/Backend/UserEditController.php", "diff": "@@ -93,6 +93,9 @@ class UserEditController extends TwigAwareController implements BackendZoneInter\n$submitted_data['locale'] = json_decode($submitted_data['locale'])[0];\n$submitted_data['status'] = json_decode($submitted_data['status'])[0];\n+ // Transform media array to keep only filepath\n+ $submitted_data['avatar'] = $submitted_data['avatar']['filename'];\n+\n$form->submit($submitted_data);\n}\n" } ]
PHP
MIT License
bolt/core
fix(user): fix user add action
95,115
14.11.2020 15:06:22
-3,600
9209db24d5345fb5ad2c78792ed140c391dc2b05
add default value for $extensionMenus so bolt won't break when configuration hasn't been updated yet.
[ { "change_type": "MODIFY", "old_path": "src/Menu/BackendMenuBuilder.php", "new_path": "src/Menu/BackendMenuBuilder.php", "diff": "@@ -42,7 +42,7 @@ final class BackendMenuBuilder implements BackendMenuBuilderInterface\npublic function __construct(\nFactoryInterface $menuFactory,\n- iterable $extensionMenus,\n+ iterable $extensionMenus = [],\nConfig $config,\nContentRepository $contentRepository,\nUrlGeneratorInterface $urlGenerator,\n" } ]
PHP
MIT License
bolt/core
add default value for $extensionMenus so bolt won't break when configuration hasn't been updated yet.
95,144
17.11.2020 11:22:37
-3,600
7c975290e482f1bad9d95246e623b4a4b0491985
Updating default "example" mail address
[ { "change_type": "MODIFY", "old_path": "config/bolt/config.yaml", "new_path": "config/bolt/config.yaml", "diff": "@@ -203,7 +203,7 @@ user_avatar:\n# Settings for the reset password logic\nreset_password_settings:\nshow_already_requested_password_notice: true\n- mail_from: \"do-not-reply@dummy.com\"\n+ mail_from: \"do-not-reply@example.org\"\nmail_name: \"Bolt CMS\"\nmail_subject: \"Your password reset request\"\nmail_template: \"reset_password/email.html.twig\"\n" } ]
PHP
MIT License
bolt/core
Updating default "example" mail address
95,193
17.11.2020 09:45:17
-25,200
711ea1bdd59915891ebe39074182b8c0f6e85d3c
add keys setting for select field type
[ { "change_type": "MODIFY", "old_path": "src/Twig/ContentExtension.php", "new_path": "src/Twig/ContentExtension.php", "diff": "@@ -621,10 +621,14 @@ class ContentExtension extends AbstractExtension\n/** @var Content[] $records */\n$records = iterator_to_array($this->query->getContent($contentTypeSlug, $params)->getCurrentPageResults());\n+ $keyName = $field->getDefinition()->get('keys');\nforeach ($records as $record) {\n+ if ($keyName && $record->hasField($keyName)) {\n+ $keyValue = $this->contentHelper->get($record, \"{{$keyName}}\");\n+ }\n$options[] = [\n- 'key' => $record->getId(),\n+ 'key' => $keyValue ?? $record->getId(),\n'value' => $this->contentHelper->get($record, $format),\n];\n}\n" } ]
PHP
MIT License
bolt/core
add keys setting for select field type
95,193
18.11.2020 09:51:51
-25,200
720cf7c9b770a133f47cb2def7bfb3c0009b5a27
add `mode: format` in select field
[ { "change_type": "MODIFY", "old_path": "src/Twig/ContentExtension.php", "new_path": "src/Twig/ContentExtension.php", "diff": "@@ -621,14 +621,13 @@ class ContentExtension extends AbstractExtension\n/** @var Content[] $records */\n$records = iterator_to_array($this->query->getContent($contentTypeSlug, $params)->getCurrentPageResults());\n- $keyName = $field->getDefinition()->get('keys');\nforeach ($records as $record) {\n- if ($keyName && $record->hasField($keyName)) {\n- $keyValue = $this->contentHelper->get($record, \"{{$keyName}}\");\n+ if ($field->getDefinition()->get('mode') === 'format') {\n+ $formattedKey = $this->contentHelper->get($record, $field->getDefinition()->get('format'));\n}\n$options[] = [\n- 'key' => $keyValue ?? $record->getId(),\n+ 'key' => $formattedKey ?? $record->getId(),\n'value' => $this->contentHelper->get($record, $format),\n];\n}\n" }, { "change_type": "MODIFY", "old_path": "src/Twig/FieldExtension.php", "new_path": "src/Twig/FieldExtension.php", "diff": "@@ -96,10 +96,10 @@ class FieldExtension extends AbstractExtension\n{\n$definition = $field->getDefinition();\n- if ($definition->get('type') !== 'select' || ! $field->isContentSelect()) {\n+ if ($definition->get('type') !== 'select' || ! $field->isContentSelect() || ($field->isContentSelect() && $definition->get('mode') === 'format')) {\nreturn $this->notifications->warning(\n'Incorrect usage of `selected`-filter',\n- 'The `selected`-filter can only be applied to a field of `type: select`, and it must be used as a selector for other content.'\n+ 'The `selected`-filter can only be applied to a field of `type: select`, and it must be used as a selector for other content, and without `mode: format`.'\n);\n}\n" } ]
PHP
MIT License
bolt/core
add `mode: format` in select field
95,158
18.11.2020 11:18:58
-3,600
9448fc9be42ee4dcb62f6c8699f90a7e0904ff68
Add Twig filter to load record from ID This is a replacement for the previous proposed solution. This filter will allow the following in Twig templates, to build URLs with slugs based on only the ID of a record. `{{ 6|record|link() }}`
[ { "change_type": "MODIFY", "old_path": "src/Twig/ContentExtension.php", "new_path": "src/Twig/ContentExtension.php", "diff": "@@ -137,6 +137,7 @@ class ContentExtension extends AbstractExtension\nnew TwigFilter('status_options', [$this, 'statusOptions']),\nnew TwigFilter('feature', [$this, 'getSpecialFeature']),\nnew TwigFilter('sanitise', [$this, 'sanitise']),\n+ new TwigFilter('record', [$this, 'record']),\n];\n}\n@@ -789,4 +790,9 @@ class ContentExtension extends AbstractExtension\n{\nreturn $this->sanitiser->clean($html);\n}\n+\n+ public function record(int $id)\n+ {\n+ return $this->contentRepository->findOneBy(['id' => $id]);\n+ }\n}\n" } ]
PHP
MIT License
bolt/core
Add Twig filter to load record from ID This is a replacement for the previous proposed solution. This filter will allow the following in Twig templates, to build URLs with slugs based on only the ID of a record. `{{ 6|record|link() }}`
95,144
18.11.2020 14:12:29
-3,600
0c30aae0e1e5eac4a07ee5efe85e240a0db2c394
Make 'create user' a bit more robust
[ { "change_type": "MODIFY", "old_path": "src/Controller/Backend/UserEditController.php", "new_path": "src/Controller/Backend/UserEditController.php", "diff": "@@ -135,7 +135,7 @@ class UserEditController extends TwigAwareController implements BackendZoneInter\n/**\n* @Route(\"/user-edit/{id}\", methods={\"POST\"}, name=\"bolt_user_edit_post\", requirements={\"id\": \"\\d+\"})\n*/\n- public function save(?User $user, ValidatorInterface $validator): Response\n+ public function save(?User $user, ValidatorInterface $validator, string $defaultLocale): Response\n{\n$this->validateCsrf('useredit');\n@@ -144,9 +144,9 @@ class UserEditController extends TwigAwareController implements BackendZoneInter\n}\n$displayName = $user->getDisplayName();\n- $locale = Json::findScalar($this->getFromRequest('locale'));\n+ $locale = Json::findScalar($this->getFromRequest('locale')) ?: $defaultLocale;\n$roles = Json::findArray($this->getFromRequest('roles'));\n- $status = Json::findScalar($this->getFromRequest('ustatus', UserStatus::ENABLED));\n+ $status = Json::findScalar($this->getFromRequest('ustatus')) ?: UserStatus::ENABLED;\nif (empty($user->getUsername())) {\n$user->setUsername($this->getFromRequest('username'));\n" } ]
PHP
MIT License
bolt/core
Make 'create user' a bit more robust
95,144
18.11.2020 14:30:36
-3,600
3411384862d83163802a3e77227c7714221d0cf8
I do not know how this has ever worked!
[ { "change_type": "MODIFY", "old_path": "src/Controller/Backend/ProfileController.php", "new_path": "src/Controller/Backend/ProfileController.php", "diff": "@@ -57,14 +57,14 @@ class ProfileController extends TwigAwareController implements BackendZoneInterf\n/**\n* @Route(\"/profile-edit\", methods={\"POST\"}, name=\"bolt_profile_edit_post\")\n*/\n- public function save(ValidatorInterface $validator): Response\n+ public function save(ValidatorInterface $validator, string $defaultLocale): Response\n{\n$this->validateCsrf('profileedit');\n/** @var User $user */\n$user = $this->getUser();\n$displayName = $user->getDisplayName();\n- $locale = Json::findScalar($this->getFromRequest('locale'));\n+ $locale = Json::findScalar($this->getFromRequest('locale')) ?: $defaultLocale;\n$user->setDisplayName((string) $this->getFromRequest('displayName'));\n$user->setEmail((string) $this->getFromRequest('email'));\n" }, { "change_type": "MODIFY", "old_path": "tests/e2e/users.feature", "new_path": "tests/e2e/users.feature", "diff": "@@ -59,6 +59,7 @@ Feature: Users & Permissions\nThen I should be on \"/bolt/user-edit/0\"\nAnd I should see \"New User\" in the \".admin__header--title\" element\n+ And I wait 0.1 seconds\nWhen I fill in the following:\n| username | test_user |\n@@ -151,6 +152,7 @@ Feature: Users & Permissions\nAnd I should see \"Suggested secure password\"\n@javascript\n+ @foo\nScenario: Edit my user with incorrect display name\nGiven I am logged in as \"jane_admin\" with password \"jane%1\"\n@@ -162,9 +164,10 @@ Feature: Users & Permissions\nAnd I should see \"Jane Doe\" in the \"h1\" element\nAnd the field \"username\" should contain \"jane_admin\"\n-\n+ And I wait 0.1 seconds\nWhen I fill \"displayName\" element with \" \"\nAnd I scroll \"Save changes\" into view\n+\nAnd I press \"Save changes\"\nThen I should see \"Invalid display name\"\n" } ]
PHP
MIT License
bolt/core
I do not know how this has ever worked!
95,144
18.11.2020 14:51:36
-3,600
3c17adccd7e437cb33e74bf10416d7d594dfeee5
Fix: Set a default status for the `default_status`
[ { "change_type": "MODIFY", "old_path": "src/Entity/Content.php", "new_path": "src/Entity/Content.php", "diff": "@@ -186,7 +186,7 @@ class Content\n}\n// Set default status and default values\n- $this->setStatus($this->contentTypeDefinition->get('default_status'));\n+ $this->setStatus($this->contentTypeDefinition->get('default_status'), 'published');\n$this->contentTypeDefinition->get('fields')->each(function (LaravelCollection $item, string $name): void {\nif ($item->get('default')) {\n$field = FieldRepository::factory($item, $name);\n" } ]
PHP
MIT License
bolt/core
Fix: Set a default status for the `default_status`
95,115
20.11.2020 10:30:29
-3,600
d183f3226a65b3130026e58d4a30c0fb91834d14
Add comment explaining how the orderByNumericField() internals work, so Ivo won't have to explain it in person the next time.
[ { "change_type": "MODIFY", "old_path": "src/Storage/Directive/OrderDirective.php", "new_path": "src/Storage/Directive/OrderDirective.php", "diff": "@@ -190,6 +190,11 @@ class OrderDirective\nreturn;\n}\n+ // A numerical field value is stored as an json array containing a string, so the number 42\n+ // would be in a field [\"42\"]. To extract the numerical value SUBSTRING(field, 3, field_length)\n+ // is used, where 3 is the (1-based) start index. After taking the substring CAST(... as decimal)\n+ // is used to enable number-based ordering, this cast will ignore the remaining \"] that is left at\n+ // the end of the field after the SUBSTRING operation.\n$substring = $qb\n->expr()\n->substring($translationsAlias . '.value', 3, $query->getQueryBuilder()->expr()->length($translationsAlias . '.value'));\n" } ]
PHP
MIT License
bolt/core
Add comment explaining how the orderByNumericField() internals work, so Ivo won't have to explain it in person the next time.
95,144
21.11.2020 12:20:07
-3,600
f24cb305ee64d13837a67e6f83aec3ae9124c482
Ninja-fix remove live for debugging purposes
[ { "change_type": "MODIFY", "old_path": "tests/e2e/users.feature", "new_path": "tests/e2e/users.feature", "diff": "@@ -152,7 +152,6 @@ Feature: Users & Permissions\nAnd I should see \"Suggested secure password\"\n@javascript\n- @foo\nScenario: Edit my user with incorrect display name\nGiven I am logged in as \"jane_admin\" with password \"jane%1\"\n" } ]
PHP
MIT License
bolt/core
Ninja-fix remove live for debugging purposes
95,144
23.11.2020 14:04:19
-3,600
1b1e950976488df84ea666f5c76bf1b9f695f915
Merging mishap: This shouldn't have been in this branch
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Select.vue", "new_path": "assets/js/app/editor/Components/Select.vue", "diff": "@@ -89,12 +89,8 @@ export default {\nif (this.selected === null) {\nreturn JSON.stringify([]);\n} else if (this.selected.map) {\n- if (typeof item !== 'undefined') {\nfiltered = this.selected.map(item => item.key);\nreturn JSON.stringify(filtered);\n- } else {\n- return JSON.stringify([]);\n- }\n} else {\nreturn JSON.stringify([this.selected.key]);\n}\n" } ]
PHP
MIT License
bolt/core
Merging mishap: This shouldn't have been in this branch
95,144
23.11.2020 14:11:14
-3,600
bed4605be54ef66cd8b490aee14a9a982bf7ef32
Prepare release 4.1.7
[ { "change_type": "MODIFY", "old_path": "assets/js/version.js", "new_path": "assets/js/version.js", "diff": "// generated by genversion\n-export const version = '4.1.6';\n+export const version = '4.1.7';\n" }, { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.1.6\",\n+ \"version\": \"4.1.7\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"bolt\",\n- \"version\": \"4.1.6\",\n+ \"version\": \"4.1.7\",\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.7
95,144
23.11.2020 15:02:29
-3,600
89e5680d8b620377fd5f3e48a59db2d9eb0904a2
Ninja-fixing closing HTML tag.
[ { "change_type": "MODIFY", "old_path": "templates/content/listing.html.twig", "new_path": "templates/content/listing.html.twig", "diff": "{% block title %}\n{{ macro.icon(contentType.icon_one) }}\n{{ contentType.name }}\n- {% if filterValue %}<small>({{ __('label.filtered_by') }}: <em>'{{ filterValue }}'</em>){% endif %}\n- {% if taxonomy %}<small>({{ __('label.filtered_by') }}: <em>'{{ taxonomy|split('=')|last }}'</em>){% endif %}\n+ {% if filterValue %}<small>({{ __('label.filtered_by') }}: <em>'{{ filterValue }}'</em>)</small>{% endif %}\n+ {% if taxonomy %}<small>({{ __('label.filtered_by') }}: <em>'{{ taxonomy|split('=')|last }}'</em>)</small>{% endif %}\n+\n{% endblock %}\n{% block vue_id 'listing' %}\n" } ]
PHP
MIT License
bolt/core
Ninja-fixing closing HTML tag.
95,154
25.11.2020 16:57:29
-3,600
ac74e9e625e6589bda54223002d9dbafc85dbe15
Fix: deprecate the old controller for lost password remove old template & translation for lost password redirect old controler to new controler add translation fr for lost password
[ { "change_type": "MODIFY", "old_path": "config/packages/security.yaml", "new_path": "config/packages/security.yaml", "diff": "@@ -40,6 +40,6 @@ security:\naccess_control:\n# this is a catch-all for the admin area\n# additional security lives in the controllers\n- - { path: '^%bolt.backend_url%/(login|resetpassword)$', roles: IS_AUTHENTICATED_ANONYMOUSLY }\n+ - { path: '^%bolt.backend_url%/(login||resetpassword|reset-password)$', roles: IS_AUTHENTICATED_ANONYMOUSLY }\n- { path: '^%bolt.backend_url%', roles: ROLE_ADMIN }\n- { path: '^/(%app_locales%)%bolt.backend_url%', roles: ROLE_ADMIN }\n" }, { "change_type": "MODIFY", "old_path": "src/Controller/Backend/AuthenticationController.php", "new_path": "src/Controller/Backend/AuthenticationController.php", "diff": "@@ -54,14 +54,13 @@ class AuthenticationController extends TwigAwareController implements BackendZon\n/**\n* @Route(\"/resetpassword\", name=\"bolt_resetpassword\")\n+ *\n+ * @deprecated 4.2\n*/\npublic function resetPassword(): Response\n{\n- $twigVars = [\n- 'title' => 'controller.authentication.reset_title',\n- 'subtitle' => 'controller.authentication.reset_subtitle',\n- ];\n+ @trigger_error(sprintf('The method \"resetPassword\" of the class \"%s\" is deprecated since 4.2 and will be removed in 5.0.', self::class), E_USER_DEPRECATED);\n- return $this->render('@bolt/security/resetpassword.html.twig', $twigVars);\n+ return $this->redirectToRoute('bolt_forgot_password_request');\n}\n}\n" }, { "change_type": "MODIFY", "old_path": "translations/messages.en.xlf", "new_path": "translations/messages.en.xlf", "diff": "<target>To edit users and their permissions</target>\n</segment>\n</unit>\n- <unit id=\"rkVeKe_\" name=\"controller.authentication.reset_title\">\n- <segment>\n- <source>controller.authentication.reset_title</source>\n- <target>Reset Password</target>\n- </segment>\n- </unit>\n- <unit id=\"lN_rF8O\" name=\"controller.authentication.reset_subtitle\">\n- <segment>\n- <source>controller.authentication.reset_subtitle</source>\n- <target>To reset your password, if you've misplaced it</target>\n- </segment>\n- </unit>\n<unit id=\"0Gyf5xr\" name=\"controller.database.check_title\">\n<segment>\n<source>controller.database.check_title</source>\n" }, { "change_type": "MODIFY", "old_path": "translations/messages.nl.xlf", "new_path": "translations/messages.nl.xlf", "diff": "<target>To edit users and their permissions</target>\n</segment>\n</unit>\n- <unit id=\"rkVeKe_\" name=\"controller.authentication.reset_title\">\n- <segment>\n- <source>controller.authentication.reset_title</source>\n- <target>Reset Password</target>\n- </segment>\n- </unit>\n- <unit id=\"lN_rF8O\" name=\"controller.authentication.reset_subtitle\">\n- <segment>\n- <source>controller.authentication.reset_subtitle</source>\n- <target>To reset your password, if you've misplaced it</target>\n- </segment>\n- </unit>\n<unit id=\"0Gyf5xr\" name=\"controller.database.check_title\">\n<segment>\n<source>controller.database.check_title</source>\n" } ]
PHP
MIT License
bolt/core
Fix: deprecate the old controller for lost password - remove old template & translation for lost password - redirect old controler to new controler - add translation fr for lost password
95,115
26.11.2020 21:00:22
-3,600
a07c4018e24534f915be745656e17332df1a65a1
delete controllers that only rendered the 'placeholder' template and weren't used anywhere at the moment.
[ { "change_type": "DELETE", "old_path": "src/Controller/Backend/FixturesController.php", "new_path": null, "diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-namespace Bolt\\Controller\\Backend;\n-\n-use Bolt\\Controller\\TwigAwareController;\n-use Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Security;\n-use Symfony\\Component\\HttpFoundation\\Response;\n-use Symfony\\Component\\Routing\\Annotation\\Route;\n-\n-/**\n- * @Security(\"is_granted('ROLE_ADMIN')\")\n- */\n-class FixturesController extends TwigAwareController implements BackendZoneInterface\n-{\n- /**\n- * @Route(\"/fixtures\", name=\"bolt_fixtures\")\n- */\n- public function fixtures(): Response\n- {\n- $twigVars = [\n- 'title' => 'Fixtures',\n- 'subtitle' => 'To add Fixtures, or \"Dummy Content\".',\n- ];\n-\n- return $this->render('@bolt/pages/placeholder.html.twig', $twigVars);\n- }\n-}\n" }, { "change_type": "DELETE", "old_path": "src/Controller/Backend/OmnisearchController.php", "new_path": null, "diff": "-<?php\n-\n-declare(strict_types=1);\n-\n-namespace Bolt\\Controller\\Backend;\n-\n-use Bolt\\Controller\\TwigAwareController;\n-use Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Security;\n-use Symfony\\Component\\HttpFoundation\\Response;\n-use Symfony\\Component\\Routing\\Annotation\\Route;\n-\n-/**\n- * @Security(\"is_granted('ROLE_ADMIN')\")\n- */\n-class OmnisearchController extends TwigAwareController implements BackendZoneInterface\n-{\n- /**\n- * @Route(\"/omnisearch\", name=\"bolt_omnisearch\")\n- */\n- public function omnisearch(): Response\n- {\n- $twigVars = [\n- 'title' => 'controller.omnisearch.title',\n- 'subtitle' => 'controller.omnisearch.subtitle',\n- ];\n-\n- return $this->render('@bolt/pages/placeholder.html.twig', $twigVars);\n- }\n-}\n" } ]
PHP
MIT License
bolt/core
delete controllers that only rendered the 'placeholder' template and weren't used anywhere at the moment.
95,144
30.11.2020 18:41:40
-3,600
5d32491c71b7fa658ff15039255fa43dd9db66ef
Apply to `4.1`
[ { "change_type": "MODIFY", "old_path": "assets/js/app/editor/Components/Checkbox.vue", "new_path": "assets/js/app/editor/Components/Checkbox.vue", "diff": "<!-- This hidden input is actually what gets submitted. It submits \"true\" when checked, and \"false\" when not checked -->\n<!-- It exists because we need an \"unchecked\" value submitted. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox -->\n- -->\n<input type=\"hidden\" :value=\"liveValue\" :name=\"name\" />\n</div>\n</div>\n" } ]
PHP
MIT License
bolt/core
Apply #2199 to `4.1`
95,144
01.12.2020 14:31:53
-3,600
82c86b1161564245a56edf05ce1a092a6e1c0ea2
Introduce `viewless_listing` setting in addition to `viewless` for Record detail pages
[ { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/ContentTypesParser.php", "new_path": "src/Configuration/Parser/ContentTypesParser.php", "diff": "@@ -112,6 +112,11 @@ class ContentTypesParser extends BaseParser\nif (! isset($contentType['viewless'])) {\n$contentType['viewless'] = false;\n}\n+\n+ if (! isset($contentType['viewless_listing'])) {\n+ $contentType['viewless_listing'] = $contentType['viewless'];\n+ }\n+\nif (! isset($contentType['searchable'])) {\n$contentType['searchable'] = ! $contentType['viewless'];\n}\n" }, { "change_type": "MODIFY", "old_path": "src/Controller/Frontend/ListingController.php", "new_path": "src/Controller/Frontend/ListingController.php", "diff": "@@ -47,8 +47,8 @@ class ListingController extends TwigAwareController implements FrontendZoneInter\n$contentType = ContentType::factory($contentTypeSlug, $this->config->get('contenttypes'));\n- // If the ContentType is 'viewless' we throw a 404.\n- if ($contentType->get('viewless') === true) {\n+ // If the ContentType has 'viewless_listing' set to `true`, we throw a 404.\n+ if ($contentType->get('viewless_listing') === true) {\nthrow new NotFoundHttpException('Content is not viewable');\n}\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
Introduce `viewless_listing` setting in addition to `viewless` for Record detail pages
95,144
28.11.2020 11:23:11
-3,600
e8c7d3038a352f2b1b7b64b8e16456584eefb9df
Tweaks, fixes, "reset button"
[ { "change_type": "MODIFY", "old_path": "assets/scss/modules/base/_badges.scss", "new_path": "assets/scss/modules/base/_badges.scss", "diff": "margin-top: -0.4em;\ntext-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);\n}\n+\n+.badge.selected {\n+ font-weight: bold;\n+}\n" }, { "change_type": "MODIFY", "old_path": "src/Controller/Backend/ListingController.php", "new_path": "src/Controller/Backend/ListingController.php", "diff": "@@ -51,12 +51,15 @@ class ListingController extends TwigAwareController implements BackendZoneInterf\nreturn $this->redirectToRoute('bolt_content_edit', ['id' => $record->getId()]);\n}\n+ [$taxonomyName, $taxonomyValue] = explode('=', $this->getFromRequest('taxonomy', '') . '=');\n+\nreturn $this->render('@bolt/content/listing.html.twig', [\n'contentType' => $contentTypeObject,\n'records' => $records,\n'sortBy' => $this->getFromRequest('sortBy'),\n'filterValue' => $this->getFromRequest('filter'),\n- 'taxonomy' => $this->getFromRequest('taxonomy'),\n+ 'taxonomyName' => $taxonomyName,\n+ 'taxonomyValue' => $taxonomyValue,\n'filterKey' => $this->getFromRequest('filterKey'),\n]);\n}\n" }, { "change_type": "MODIFY", "old_path": "templates/content/listing.html.twig", "new_path": "templates/content/listing.html.twig", "diff": "{{ macro.icon(contentType.icon_one) }}\n{{ contentType.name }}\n{% if filterValue %}<small>({{ __('label.filtered_by') }}: <em>'{{ filterValue }}'</em>)</small>{% endif %}\n- {% if taxonomy %}<small>({{ __('label.filtered_by') }}: <em>'{{ taxonomy|split('=')|last }}'</em>)</small>{% endif %}\n-\n+ {% if taxonomyValue %}<small>({{ __('label.filtered_by') }}: <em>'{{ taxonomyValue }}'</em>)</small>{% endif %}\n{% endblock %}\n{% block vue_id 'listing' %}\n{% if taxonomyDefinition and taxonomyDefinition.behaves_like != 'tags' %}\n<p>\n<strong>{{ taxonomyDefinition.singular_name }}:</strong>\n-\n- {% for key, taxonomyValue in taxonomyDefinition.options %}\n- <a class=\"badge badge-tertiary {% if taxonomy == key %}selected{% endif %}\"\n+ {% for key, value in taxonomyDefinition.options %}\n+ <a class=\"badge badge-tertiary {% if taxonomy == taxonomyName and taxonomyValue == key %}selected{% endif %}\"\nhref=\"?taxonomy={{ (taxonomyDefinition.slug ~ '=' ~ key)|url_encode }}\">\n- {{ taxonomyValue }}\n+ {{ value }}\n</a>\n{% endfor %}\n</p>\n{{ macro.button('listing.button_filter', 'filter', 'secondary mb-0', {'type': 'submit'}) }}\n- {% if sortBy is not empty or filterValue is not empty %}\n+ {% if sortBy is not empty or filterValue is not empty or taxonomyValue is not empty %}\n{{ macro.buttonlink('listing.button_clear', path('bolt_content_overview', {'contentType': contentType.slug}), 'times', 'tertiary mb-0') }}\n{% endif %}\n</form>\n" } ]
PHP
MIT License
bolt/core
Tweaks, fixes, "reset button"
95,144
29.11.2020 12:10:53
-3,600
f0fd1aa5de49e3b79ecb0e7b110895573e4a820d
Set defaults for avatar settings
[ { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/GeneralParser.php", "new_path": "src/Configuration/Parser/GeneralParser.php", "diff": "@@ -101,6 +101,11 @@ class GeneralParser extends BaseParser\n'omit_backgrounds' => false,\n'omit_powered_by_header' => false,\n'omit_meta_generator_tag' => false,\n+ 'user_avatar' => [\n+ 'upload_path' => 'avatars',\n+ 'extensions_allowed' => ['png', 'jpeg', 'jpg', 'gif'],\n+ 'default_avatar' => '',\n+ ]\n];\n}\n}\n" } ]
PHP
MIT License
bolt/core
Set defaults for avatar settings
95,154
30.11.2020 16:57:53
-3,600
43c2e12b51012c532a5f6c1fedd0775114c31f7a
Feat: remove DoctrineMigrationBundle that does not seem to be in use
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"bolt/newswidget\": \"^1.2\",\n\"coduo/php-matcher\": \"^4.0\",\n\"dama/doctrine-test-bundle\": \"^6.2.0\",\n- \"doctrine/doctrine-migrations-bundle\": \"^2.2\",\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" }, { "change_type": "MODIFY", "old_path": "config/bundles.php", "new_path": "config/bundles.php", "diff": "@@ -6,7 +6,6 @@ return [\nDAMA\\DoctrineTestBundle\\DAMADoctrineTestBundle::class => ['test' => true],\nDoctrine\\Bundle\\DoctrineBundle\\DoctrineBundle::class => ['all' => true],\nDoctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle::class => ['all' => true],\n- Doctrine\\Bundle\\MigrationsBundle\\DoctrineMigrationsBundle::class => ['all' => true],\nFriendsOfBehat\\SymfonyExtension\\Bundle\\FriendsOfBehatSymfonyExtensionBundle::class => ['all' => true],\nHttp\\HttplugBundle\\HttplugBundle::class => ['dev' => true, 'local' => true],\nKnp\\Bundle\\MenuBundle\\KnpMenuBundle::class => ['all' => true],\n" }, { "change_type": "DELETE", "old_path": "config/packages/doctrine_migrations.yaml", "new_path": null, "diff": "-doctrine_migrations:\n- dir_name: '%kernel.project_dir%/src/Migrations'\n-\n- namespace: Bolt\\Migrations\n-\n- # Possible values: \"BY_YEAR\", \"BY_YEAR_AND_MONTH\", false\n- organize_migrations: false\n-\n- # Run all migrations in a transaction.\n- all_or_nothing: false\n-\n" }, { "change_type": "MODIFY", "old_path": "config/services.yaml", "new_path": "config/services.yaml", "diff": "@@ -36,7 +36,7 @@ services:\n# this creates a service per class whose id is the fully-qualified class name\nBolt\\:\nresource: '../src/*'\n- exclude: '../src/{Entity,Exception,Migrations,Kernel.php}'\n+ exclude: '../src/{Entity,Exception,Kernel.php}'\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\n" }, { "change_type": "MODIFY", "old_path": "symfony.lock", "new_path": "symfony.lock", "diff": "\"src/DataFixtures/AppFixtures.php\"\n]\n},\n- \"doctrine/doctrine-migrations-bundle\": {\n- \"version\": \"1.2\",\n- \"recipe\": {\n- \"repo\": \"github.com/symfony/recipes\",\n- \"branch\": \"master\",\n- \"version\": \"1.2\",\n- \"ref\": \"c1431086fec31f17fbcfe6d6d7e92059458facc1\"\n- },\n- \"files\": [\n- \"config/packages/doctrine_migrations.yaml\",\n- \"src/Migrations/.gitignore\"\n- ]\n- },\n\"doctrine/event-manager\": {\n\"version\": \"1.1.0\"\n},\n\"doctrine/lexer\": {\n\"version\": \"1.2.0\"\n},\n- \"doctrine/migrations\": {\n- \"version\": \"2.2.1\"\n- },\n\"doctrine/orm\": {\n\"version\": \"v2.7.1\"\n},\n" } ]
PHP
MIT License
bolt/core
Feat: remove DoctrineMigrationBundle that does not seem to be in use
95,147
03.12.2020 12:33:47
-3,600
1ad78f799be080fc861807dacc6116fbe7db541e
Create Welcome command
[ { "change_type": "ADD", "old_path": null, "new_path": "src/Command/WelcomeCommand.php", "diff": "+<?php\n+\n+declare(strict_types=1);\n+\n+namespace Bolt\\Command;\n+\n+use Symfony\\Component\\Console\\Command\\Command;\n+use Symfony\\Component\\Console\\Input\\InputInterface;\n+use Symfony\\Component\\Console\\Output\\OutputInterface;\n+use Symfony\\Component\\Console\\Style\\SymfonyStyle;\n+\n+class WelcomeCommand extends Command\n+{\n+ use ImageTrait;\n+\n+ protected static $defaultName = 'bolt:welcome';\n+\n+ /**\n+ * {@inheritdoc}\n+ */\n+ protected function configure(): void\n+ {\n+ $this\n+ ->setDescription('Welcome command with basic resources about Bolt.')\n+ ->setHelp(\n+ <<<'HELP'\n+The <info>%command.name%</info> command shows some information and resources to get started with your Bolt project.\n+HELP\n+ );\n+ }\n+\n+ /**\n+ * This method is executed after initialize(). It usually contains the logic\n+ * to execute to complete this command task.\n+ */\n+ protected function execute(InputInterface $input, OutputInterface $output)\n+ {\n+ $io = new SymfonyStyle($input, $output);\n+\n+ $this->outputImage($io);\n+\n+ $io->info('Welcome to your new Bolt project. To set up the database, run `bin/console bolt:setup`');\n+ $io->text('For the full setup instructions, and other documentation, visit <href=https://docs.bolt.cm/installation/installation>https://docs.bolt.cm/installation/installation</>');\n+ $io->text('To ask questions and learn form our community, join our Slack channel: <href=https://slack.bolt.cm/>https://slack.bolt.cm/</>');\n+ $io->text('Additional resources and tips are available at <href=https://bolt.tips/>https://bolt.tips/</>');\n+\n+ $io->info('Happy building!');\n+\n+ return 0;\n+ }\n+}\n" } ]
PHP
MIT License
bolt/core
Create Welcome command
95,125
10.12.2020 23:48:25
-3,600
4ac0ac336224542549f1440ea2081953bd7eb16b
Set canonical URL for listing pages (fixes
[ { "change_type": "MODIFY", "old_path": "src/Controller/Frontend/ListingController.php", "new_path": "src/Controller/Frontend/ListingController.php", "diff": "@@ -80,6 +80,16 @@ class ListingController extends TwigAwareController implements FrontendZoneInter\n$records = $this->setRecords($content, $amountPerPage, $page);\n+ // Set canonical URL\n+ $this->canonical->setPath(\n+ 'listing_locale',\n+ array_merge([\n+ 'contentTypeSlug' => $contentType->get('slug'),\n+ '_locale' => $this->request->getLocale(),\n+ ], $queryParams),\n+ );\n+\n+ // Render\n$templates = $this->templateChooser->forListing($contentType);\n$this->twig->addGlobal('records', $records);\n" } ]
PHP
MIT License
bolt/core
Set canonical URL for listing pages (fixes #2218)
95,125
10.12.2020 23:50:15
-3,600
d3d54bdb5d251cf22b8cad3b35ce6083b4722aae
Add `remove_default_locale_on_canonical` option (fixes Default value `false` keeps the old behaviour. Locale prefix is always removed for default locale, e.g. `/en/pages` becomes `/pages` When `true` it always prefixes the default locale on listing & record pages, `/pages` becomes `/en/pages`
[ { "change_type": "MODIFY", "old_path": "config/bolt/config.yaml", "new_path": "config/bolt/config.yaml", "diff": "@@ -190,6 +190,7 @@ curl_options:\n# Various settings about Bolt's built-in localization features.\nlocalization:\nfallback_when_missing: true # When set to true, fields with empty values will fallback to the default locale's value.\n+ remove_default_locale_on_canonical: true # When set to true removes locale prefix on default locale canonical URLs\n# Define the seed used to generated the test data\n# Used in <bolt-core>/src/DataFixtures/ContentFixtures.php\n" }, { "change_type": "MODIFY", "old_path": "src/Canonical.php", "new_path": "src/Canonical.php", "diff": "@@ -164,7 +164,10 @@ class Canonical\npublic function generateLink(?string $route, ?array $params, $canonical = false): ?string\n{\n- if (isset($params['_locale']) && $params['_locale'] === $this->defaultLocale) {\n+ $removeDefaultLocaleOnCanonical = $this->config->get('general/localization/remove_default_locale_on_canonical', true);\n+ $hasDefaultLocale = isset($params['_locale']) && $params['_locale'] === $this->defaultLocale;\n+\n+ if ($removeDefaultLocaleOnCanonical && $hasDefaultLocale) {\nunset($params['_locale']);\n$routeWithoutLocale = str_replace('_locale', '', $route);\n" }, { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/GeneralParser.php", "new_path": "src/Configuration/Parser/GeneralParser.php", "diff": "@@ -100,6 +100,7 @@ class GeneralParser extends BaseParser\n'internal_server_error' => 'helpers/page_500.html.twig',\n'localization' => [\n'fallback_when_missing' => true,\n+ 'remove_default_locale_on_canonical' => true,\n],\n'omit_backgrounds' => false,\n'omit_powered_by_header' => false,\n" } ]
PHP
MIT License
bolt/core
Add `remove_default_locale_on_canonical` option (fixes #2219) - Default value `false` keeps the old behaviour. Locale prefix is always removed for default locale, e.g. `/en/pages` becomes `/pages` - When `true` it always prefixes the default locale on listing & record pages, `/pages` becomes `/en/pages`
95,144
12.12.2020 12:33:15
-3,600
aed6e91ef2ce51736705d320294fb722575d8d95
Update src/Controller/Frontend/ListingController.php
[ { "change_type": "MODIFY", "old_path": "src/Controller/Frontend/ListingController.php", "new_path": "src/Controller/Frontend/ListingController.php", "diff": "@@ -86,7 +86,7 @@ class ListingController extends TwigAwareController implements FrontendZoneInter\narray_merge([\n'contentTypeSlug' => $contentType->get('slug'),\n'_locale' => $this->request->getLocale(),\n- ], $queryParams),\n+ ], $queryParams)\n);\n// Render\n" } ]
PHP
MIT License
bolt/core
Update src/Controller/Frontend/ListingController.php
95,154
09.12.2020 13:13:07
-3,600
8a403551ca2a3ab922a735ec62a9c888a1a112f7
Feat: remove SymfonyMakerBundle that does not seem to be in use
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"symfony/framework-bundle\": \"^5.1\",\n\"symfony/http-client\": \"^5.1\",\n\"symfony/mailer\": \"^5.1\",\n- \"symfony/maker-bundle\": \"^1.14\",\n\"symfony/monolog-bridge\": \"^5.1\",\n\"symfony/monolog-bundle\": \"^3.5\",\n\"symfony/polyfill-php72\": \"^1.13\",\n" }, { "change_type": "MODIFY", "old_path": "config/bundles.php", "new_path": "config/bundles.php", "diff": "@@ -14,7 +14,6 @@ return [\nSensio\\Bundle\\FrameworkExtraBundle\\SensioFrameworkExtraBundle::class => ['all' => true],\nSymfony\\Bundle\\DebugBundle\\DebugBundle::class => ['all' => true],\nSymfony\\Bundle\\FrameworkBundle\\FrameworkBundle::class => ['all' => true],\n- Symfony\\Bundle\\MakerBundle\\MakerBundle::class => ['dev' => true, 'local' => true],\nSymfony\\Bundle\\MonologBundle\\MonologBundle::class => ['all' => true],\nSymfony\\Bundle\\SecurityBundle\\SecurityBundle::class => ['all' => true],\nSymfony\\Bundle\\TwigBundle\\TwigBundle::class => ['all' => true],\n" }, { "change_type": "DELETE", "old_path": "config/packages/dev/maker.yaml", "new_path": null, "diff": "-maker:\n- # tell MakerBundle that all of your classes lives in an\n- # Bolt namespace, instead of the default App\n- # (e.g. Bolt\\Entity\\Article, Bolt\\Command\\MyCommand, etc)\n- root_namespace: 'Bolt'\n" }, { "change_type": "MODIFY", "old_path": "symfony.lock", "new_path": "symfony.lock", "diff": "\"lakion/mink-debug-extension\": {\n\"version\": \"v1.2.3\"\n},\n+ \"laminas/laminas-code\": {\n+ \"version\": \"3.5.1\"\n+ },\n+ \"laminas/laminas-eventmanager\": {\n+ \"version\": \"3.3.0\"\n+ },\n+ \"laminas/laminas-zendframework-bridge\": {\n+ \"version\": \"1.1.1\"\n+ },\n\"league/flysystem\": {\n\"version\": \"1.0.64\"\n},\n\"config/packages/mailer.yaml\"\n]\n},\n- \"symfony/maker-bundle\": {\n- \"version\": \"1.0\",\n- \"recipe\": {\n- \"repo\": \"github.com/symfony/recipes\",\n- \"branch\": \"master\",\n- \"version\": \"1.0\",\n- \"ref\": \"fadbfe33303a76e25cb63401050439aa9b1a9c7f\"\n- }\n- },\n\"symfony/mime\": {\n\"version\": \"v4.4.4\"\n},\n" } ]
PHP
MIT License
bolt/core
Feat: remove SymfonyMakerBundle that does not seem to be in use
95,144
13.12.2020 14:15:40
-3,600
4cb70777baf7141eb04a173e9f9cdb465132b5b6
Doing some more upgrades
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"behatch/contexts\": \"^3.3\",\n\"bobdenotter/configuration-notices\": \"^1.1\",\n\"bobdenotter/weatherwidget\": \"^1.1\",\n- \"lanfest/binary-chromedriver\": \"^6.0\",\n\"bolt/newswidget\": \"^1.2\",\n- \"coduo/php-matcher\": \"^4.0\",\n+ \"coduo/php-matcher\": \"^5.0\",\n\"dama/doctrine-test-bundle\": \"^6.2.0\",\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+ \"laminas/laminas-code\": \"^3.4\",\n+ \"lanfest/binary-chromedriver\": \"^6.0\",\n\"ondram/ci-detector\": \"^3.5\",\n\"php-http/httplug-pack\": \"^1.2\",\n\"php-translation/loco-adapter\": \"^0.11\",\n\"phpstan/phpstan\": \"^0.12\",\n\"phpstan/phpstan-doctrine\": \"^0.12\",\n\"phpstan/phpstan-symfony\": \"^0.12\",\n- \"phpunit/phpunit\": \"^7.5\",\n+ \"phpunit/phpunit\": \"^8.5\",\n\"roave/security-advisories\": \"dev-master@dev\",\n\"se/selenium-server-standalone\": \"^3.141\",\n\"symfony/browser-kit\": \"^5.1\",\n" }, { "change_type": "MODIFY", "old_path": "symfony.lock", "new_path": "symfony.lock", "diff": "},\n\"lanfest/webdriver-binary-downloader\": {\n\"version\": \"3.0.1\"\n+ \"laminas/laminas-code\": {\n+ \"version\": \"3.4.1\"\n+ },\n+ \"laminas/laminas-eventmanager\": {\n+ \"version\": \"3.2.1\"\n+ },\n+ \"laminas/laminas-zendframework-bridge\": {\n+ \"version\": \"1.1.1\"\n},\n\"league/flysystem\": {\n\"version\": \"1.0.64\"\n\"ondram/ci-detector\": {\n\"version\": \"3.5.1\"\n},\n- \"openlss/lib-array2xml\": {\n- \"version\": \"1.0.0\"\n- },\n\"pagerfanta/pagerfanta\": {\n\"version\": \"v2.3.0\"\n},\n\"sebastian/resource-operations\": {\n\"version\": \"2.0.1\"\n},\n+ \"sebastian/type\": {\n+ \"version\": \"1.1.4\"\n+ },\n\"sebastian/version\": {\n\"version\": \"2.0.1\"\n},\n},\n\"xemlock/htmlpurifier-html5\": {\n\"version\": \"v0.1.11\"\n- },\n- \"zendframework/zend-code\": {\n- \"version\": \"3.4.1\"\n- },\n- \"zendframework/zend-eventmanager\": {\n- \"version\": \"3.2.1\"\n}\n}\n" } ]
PHP
MIT License
bolt/core
Doing some more upgrades
95,144
13.12.2020 14:43:17
-3,600
f66bd8dd638e002a663ba7dbd9b320c0f58a0a26
phpmatcher to 4.0
[ { "change_type": "MODIFY", "old_path": "composer.json", "new_path": "composer.json", "diff": "\"bobdenotter/configuration-notices\": \"^1.1\",\n\"bobdenotter/weatherwidget\": \"^1.1\",\n\"bolt/newswidget\": \"^1.2\",\n- \"coduo/php-matcher\": \"^5.0\",\n+ \"coduo/php-matcher\": \"^4.0.2\",\n\"dama/doctrine-test-bundle\": \"^6.2.0\",\n\"friends-of-behat/mink\": \"^1.8\",\n\"friends-of-behat/mink-browserkit-driver\": \"^1.4\",\n" }, { "change_type": "MODIFY", "old_path": "symfony.lock", "new_path": "symfony.lock", "diff": "\"ondram/ci-detector\": {\n\"version\": \"3.5.1\"\n},\n+ \"openlss/lib-array2xml\": {\n+ \"version\": \"1.0.0\"\n+ },\n\"pagerfanta/pagerfanta\": {\n\"version\": \"v2.3.0\"\n},\n" } ]
PHP
MIT License
bolt/core
phpmatcher to 4.0
95,144
19.12.2020 12:45:21
-3,600
4311dbaf483269d61505b9bc95c93813c50b3a99
Make the migrations conditional
[ { "change_type": "MODIFY", "old_path": "migrations/Version20201210105836.php", "new_path": "migrations/Version20201210105836.php", "diff": "@@ -34,15 +34,20 @@ final class Version20201210105836 extends AbstractMigration\npublic function up(Schema $schema) : void\n{\n// Create the user avatar. See https://github.com/bolt/core/pull/2114\n- $schema->getTable($this->tablePrefix . '_user')\n- ->addColumn('avatar', 'string', ['notnull' => false, 'length' => 250]);\n+ $userTable = $schema->getTable($this->tablePrefix . '_user');\n+\n+ if (! $userTable->hasColumn('avatar')) {\n+ $userTable->addColumn('avatar', 'string', ['notnull' => false, 'length' => 250]);\n+ }\n// Create the reset password table. See https://github.com/bolt/core/pull/2131\n+ if (!$schema->hasTable($this->tablePrefix . '_password_request')) {\n$resetPaswordTable = $schema->createTable($this->tablePrefix . '_password_request');\n$resetPaswordTable->addColumn('id', 'integer', ['autoincrement' => true]);\n$resetPaswordTable->addColumn('user_id', 'integer', ['notnull' => true, '', 'default' => 0]);\n$resetPaswordTable->addForeignKeyConstraint($this->tablePrefix . '_user', ['user_id'], ['id'], ['onUpdate' => 'CASCADE']);\n}\n+ }\npublic function down(Schema $schema) : void\n{\n" } ]
PHP
MIT License
bolt/core
Make the migrations conditional
95,144
23.12.2020 18:28:14
-3,600
86ef0545f45ced0bb8a5452af42b052d0017ebba
Fix escaping of ContentType names in listing pages
[ { "change_type": "MODIFY", "old_path": "templates/content/listing.html.twig", "new_path": "templates/content/listing.html.twig", "diff": "{% block title %}\n{{ macro.icon(contentType.icon_one) }}\n- {{ contentType.name }}\n+ {{ contentType.name|raw }}\n{% if filterValue %}<small>({{ __('label.filtered_by') }}: <em>'{{ filterValue }}'</em>)</small>{% endif %}\n{% if taxonomy %}<small>({{ __('label.filtered_by') }}: <em>'{{ taxonomy|split('=')|last }}'</em>)</small>{% endif %}\n" } ]
PHP
MIT License
bolt/core
Fix escaping of ContentType names in listing pages
95,144
23.12.2020 17:23:16
-3,600
0e423c69474a1686ca53ff762bc446e765025296
Set `base-2020` in `GeneralParser.php`
[ { "change_type": "MODIFY", "old_path": "src/Configuration/Parser/GeneralParser.php", "new_path": "src/Configuration/Parser/GeneralParser.php", "diff": "@@ -67,7 +67,7 @@ class GeneralParser extends BaseParser\n'sitename' => 'Default Bolt site',\n'records_per_page' => 10,\n'records_on_dashboard' => 5,\n- 'theme' => 'base-2019',\n+ 'theme' => 'base-2020',\n'listing_template' => 'listing.html.twig',\n'listing_records' => '5',\n'listing_sort' => 'datepublish DESC',\n" } ]
PHP
MIT License
bolt/core
Set `base-2020` in `GeneralParser.php`