forked from directus/directus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
171bcc3
commit d187b6b
Showing
313 changed files
with
794 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
migrations/upgrades/20191209130300_add_project_public_note.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
migrations/upgrades/20191209141700_set_options_collection_listing.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] | ||
)); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
public/admin/css/app.002001cf.css → public/admin/css/app.a247a210.css
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
public/admin/css/chunk-27dab218.b479a725.css → public/admin/css/chunk-1740a5c2.f9007e35.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
public/admin/js/chunk-00b3f8b0.c9db5b8f.js → public/admin/js/chunk-00b3f8b0.6215d8ed.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.