Skip to content

Commit

Permalink
v8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkvanzanten committed Dec 9, 2019
1 parent 171bcc3 commit d187b6b
Show file tree
Hide file tree
Showing 313 changed files with 794 additions and 473 deletions.
55 changes: 2 additions & 53 deletions migrations/install/20180220023217_create_roles_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,66 +125,15 @@ public function change()
'type' => \Directus\Database\Schema\DataTypes::TYPE_JSON,
'interface' => 'repeater',
'locked' => 1,
'options' => '{
"fields": [
{
"field": "name",
"interface": "text-input",
"type": "string",
"width": "half"
},
{
"field": "link",
"interface": "text-input",
"type": "string",
"width": "half"
},
{
"field": "icon",
"interface": "icon",
"type": "string",
"width": "full"
}
]
}'
'options' => '{"template":"{{ name }}","createItemText":"Add Module","fields":[{"field":"name","interface":"text-input","type":"string","width":"half"},{"field":"link","interface":"text-input","type":"string","width":"half"},{"field":"icon","interface":"icon","type":"string","width":"full"}]}'
],
[
'collection' => 'directus_roles',
'field' => 'collection_listing',
'type' => \Directus\Database\Schema\DataTypes::TYPE_JSON,
'interface' => 'repeater',
'locked' => 1,
'options' => '{
"fields": [
{
"field": "groups",
"width": "full",
"interface": "repeater",
"type": "JSON",
"options": {
"template": "{{ label }}",
"fields": [
{
"field": "label",
"interface": "text-input",
"type": "string"
},
{
"field": "value",
"interface": "text-input",
"type": "string"
},
{
"field": "icon",
"width": "full",
"interface": "icon",
"type": "string"
}
]
}
}
]
}'
'options' => '{"template":"{{ group_name }}","createItemText":"Add Group","fields":[{"field":"group_name","width":"full","interface":"text-input","type":"string"},{"field":"collections","interface":"repeater","type":"JSON","options":{"createItemText":"Add Collection","fields":[{"field":"collection","type":"string","interface":"collections","width":"full"}]}}]}'
],
];

Expand Down
74 changes: 58 additions & 16 deletions migrations/install/20180220023243_create_settings_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ public function change()
'note' => 'Full-screen background for the login page',
'sort' => 6
],
[
'collection' => 'directus_settings',
'field' => 'project_public_note',
'type' => \Directus\Database\Schema\DataTypes::TYPE_STRING,
'interface' => 'markdown',
'locked' => 1,
'width' => 'full',
'note' => 'This value will be shown on the public pages of the app',
'sort' => 7
],
[
'collection' => 'directus_settings',
'field' => 'default_locale',
Expand All @@ -102,7 +112,7 @@ public function change()
'locked' => 1,
'width' => 'half',
'note' => 'Default locale for Directus Users',
'sort' => 7,
'sort' => 8,
'options' => json_encode([
'limit' => true
])
Expand All @@ -115,7 +125,7 @@ public function change()
'locked' => 1,
'width' => 'half',
'note' => '<a href="https://docs.directus.io/getting-started/concepts.html#telemetry" target="_blank">Learn More</a>',
'sort' => 8
'sort' => 9
],
[
'collection' => 'directus_settings',
Expand All @@ -130,7 +140,7 @@ public function change()
'locked' => 1,
'width' => 'full',
'hidden_browse' => 1,
'sort' => 10
'sort' => 11
],
[
'collection' => 'directus_settings',
Expand All @@ -144,7 +154,7 @@ public function change()
'required' => 1,
'width' => 'half',
'note' => 'Default item count in API and App responses',
'sort' => 11
'sort' => 12
],
[
'collection' => 'directus_settings',
Expand All @@ -154,7 +164,7 @@ public function change()
'locked' => 1,
'note' => 'NULL values are sorted last',
'width' => 'half',
'sort' => 12
'sort' => 13
],
[
'collection' => 'directus_settings',
Expand Down Expand Up @@ -377,7 +387,7 @@ public function change()
],
[
'key' => 'project_color',
'value' => '#13181a',
'value' => '#263238',
],
[
'key' => 'project_foreground',
Expand All @@ -387,6 +397,10 @@ public function change()
'key' => 'project_background',
'value' => '',
],
[
'key' => 'project_public_note',
'value' => '',
],
[
'key' => 'default_locale',
'value' => 'en-US',
Expand Down Expand Up @@ -451,18 +465,46 @@ public function change()
'key' => 'asset_whitelist_system',
'value' => json_encode([
[
"key" => "card",
"width" => 200,
"height" => 200,
"fit" => "crop",
"quality" => 80
'key' => 'directus-small-crop',
'width' => 64,
'height' => 64,
'fit' => 'crop',
'quality' => 80
],
[
"key" => "avatar",
"width" => 100,
"height" => 100,
"fit" => "crop",
"quality" => 80
'key' => 'directus-small-contain',
'width' => 64,
'height' => 64,
'fit' => 'contain',
'quality' => 80
],
[
'key' => 'directus-medium-crop',
'width' => 300,
'height' => 300,
'fit' => 'crop',
'quality' => 80
],
[
'key' => 'directus-medium-contain',
'width' => 300,
'height' => 300,
'fit' => 'contain',
'quality' => 80
],
[
'key' => 'directus-large-crop',
'width' => 800,
'height' => 600,
'fit' => 'crop',
'quality' => 80
],
[
'key' => 'directus-large-contain',
'width' => 800,
'height' => 600,
'fit' => 'contain',
'quality' => 80
]
])
]
Expand Down
82 changes: 82 additions & 0 deletions migrations/upgrades/20191209130300_add_project_public_note.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?php

use Phinx\Migration\AbstractMigration;

class AddProjectPublicNote extends AbstractMigration
{
public function change() {
// -------------------------------------------------------------------------
// Add project_public_note settings
// -------------------------------------------------------------------------
$fieldsTable = $this->table('directus_fields');
$settingsTable = $this->table('directus_settings');

$exists = $this->fetchRow('SELECT `key` FROM directus_settings WHERE `key` = "project_public_note";');

if ($exists !== false) return;

$settingsTable->insert([
'key' => 'project_public_note',
'value' => ''
]);

$fieldsTable->insert([
'collection' => 'directus_settings',
'field' => 'project_public_note',
'type' => \Directus\Database\Schema\DataTypes::TYPE_STRING,
'interface' => 'markdown',
'locked' => 1,
'width' => 'full',
'note' => 'This value will be shown on the public pages of the app',
'sort' => 7
]);

$this->execute(\Directus\phinx_update(
$this->getAdapter(),
'directus_fields',
[
'sort' => 8
],
['collection' => 'directus_settings', 'field' => 'default_locale']
));

$this->execute(\Directus\phinx_update(
$this->getAdapter(),
'directus_fields',
[
'sort' => 9
],
['collection' => 'directus_settings', 'field' => 'telemetry']
));

$this->execute(\Directus\phinx_update(
$this->getAdapter(),
'directus_fields',
[
'sort' => 10
],
['collection' => 'directus_settings', 'field' => 'data_divider']
));

$this->execute(\Directus\phinx_update(
$this->getAdapter(),
'directus_fields',
[
'sort' => 11
],
['collection' => 'directus_settings', 'field' => 'default_limit']
));

$this->execute(\Directus\phinx_update(
$this->getAdapter(),
'directus_fields',
[
'sort' => 12
],
['collection' => 'directus_settings', 'field' => 'sort_null_last']
));

$fieldsTable->save();
$settingsTable->save();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

use Phinx\Migration\AbstractMigration;

class SetOptionsCollectionListing extends AbstractMigration
{
public function change() {
// -------------------------------------------------------------------------
// Use the correct options for collection listing
// -------------------------------------------------------------------------
$this->execute(\Directus\phinx_update(
$this->getAdapter(),
'directus_fields',
[
'options' => '{"template":"{{ name }}","createItemText":"Add Module","fields":[{"field":"name","interface":"text-input","type":"string","width":"half"},{"field":"link","interface":"text-input","type":"string","width":"half"},{"field":"icon","interface":"icon","type":"string","width":"full"}]}'
],
['collection' => 'directus_roles', 'field' => 'module_listing']
));

$this->execute(\Directus\phinx_update(
$this->getAdapter(),
'directus_fields',
[
'options' => '{"template":"{{ group_name }}","createItemText":"Add Group","fields":[{"field":"group_name","width":"full","interface":"text-input","type":"string"},{"field":"collections","interface":"repeater","type":"JSON","options":{"createItemText":"Add Collection","fields":[{"field":"collection","type":"string","interface":"collections","width":"full"}]}}]}'
],
['collection' => 'directus_roles', 'field' => 'collection_listing']
));
}
}

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/admin/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=favicon.ico><link rel=manifest href=manifest.webmanifest><title>Directus</title><link rel=stylesheet href=style.css><link href=css/app.002001cf.css rel=preload as=style><link href=js/app.db449593.js rel=preload as=script><link href=js/chunk-vendors.fb4575a5.js rel=preload as=script><link href=css/app.002001cf.css rel=stylesheet></head><body><noscript><strong>We're sorry but Directus doesn't work without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=script.js></script><script src=js/chunk-vendors.fb4575a5.js></script><script src=js/app.db449593.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=favicon.ico><link rel=manifest href=manifest.webmanifest><title>Directus</title><link rel=stylesheet href=style.css><link href=css/app.a247a210.css rel=preload as=style><link href=js/app.6ec75eda.js rel=preload as=script><link href=js/chunk-vendors.df77a3b0.js rel=preload as=script><link href=css/app.a247a210.css rel=stylesheet></head><body><noscript><strong>We're sorry but Directus doesn't work without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=script.js></script><script src=js/chunk-vendors.df77a3b0.js></script><script src=js/app.6ec75eda.js></script></body></html>
2 changes: 2 additions & 0 deletions public/admin/js/app.6ec75eda.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/admin/js/app.6ec75eda.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions public/admin/js/app.db449593.js

This file was deleted.

1 change: 0 additions & 1 deletion public/admin/js/app.db449593.js.map

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d187b6b

Please sign in to comment.