Skip to content

Commit

Permalink
Early Devel support.
Browse files Browse the repository at this point in the history
  • Loading branch information
laryn committed Sep 15, 2024
1 parent d8b1d09 commit a4f5be4
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 7 deletions.
5 changes: 5 additions & 0 deletions dist/css/components/gin_devel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#admin-bar .admin-devel::before {
-webkit-mask-image: url("../../media/sprite.svg#tool-view");
mask-image: url("../../media/sprite.svg#tool-view");
}

10 changes: 10 additions & 0 deletions includes/libraries.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,16 @@ function gin_library_info() {
),
),
),
'gin_devel' => array(
'title' => 'Devel',
'version' => BACKDROP_VERSION,
'css' => array(
$basethemeurl . '/dist/css/components/gin_devel.css' => array(
'type' => 'file',
'media' => 'screen',
),
),
),
'gin_node_preview' => array(
'title' => 'Node preview',
'version' => BACKDROP_VERSION,
Expand Down
13 changes: 7 additions & 6 deletions includes/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,20 @@ function gin_preprocess_page(&$variables) {
backdrop_add_library('gin', 'gin_tableselect');

$module_libraries = [
'dashboard' => 'gin_dashboard',
'admin_bar' => 'gin_admin_bar',
'chosen' => 'gin_chosen',
'ckeditor' => 'gin_ckeditor',
'ckeditor5' => 'gin_ckeditor5',
'civicrm' => 'gin_civicrm',
'coffee' => 'gin_coffee',
'node_preview' => 'gin_node_preview',
'webform' => 'gin_webform',
'module_filter' => 'gin_module_filter',
'chosen' => 'gin_chosen',
'dashboard' => 'gin_dashboard',
'devel' => 'gin_devel',
'inline_entity_form' => 'gin_inline_entity_form',
'installer' => 'project_installer',
'module_filter' => 'gin_module_filter',
'node_preview' => 'gin_node_preview',
'paragraphs' => 'gin_paragraphs',
'admin_bar' => 'gin_admin_bar',
'webform' => 'gin_webform',
];

foreach ($module_libraries as $module => $library) {
Expand Down
5 changes: 5 additions & 0 deletions styles/components/gin_devel.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#admin-bar {
.admin-devel::before {
mask-image: icon('tool');
}
}
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ module.exports = {
'components/autocomplete': ['./styles/components/autocomplete.scss'],
'components/breadcrumb': ['./styles/components/breadcrumb.scss'],
'components/chosenjs': ['./styles/components/chosenjs.scss'],
'components/gin_civicrm': ['./styles/components/gin_civicrm.scss'],
'components/ckeditor': ['./styles/components/ckeditor.scss'],
'components/ckeditor5': ['./styles/components/ckeditor5.scss'],
'components/gin_civicrm': ['./styles/components/gin_civicrm.scss'],
'components/gin_coffee': ['./styles/components/gin_coffee.scss'],
'components/contextual_links': ['./styles/components/contextual_links.scss'],
'components/description_toggle': ['./styles/components/description_toggle.scss'],
'components/gin_dashboard': ['./styles/components/gin_dashboard.scss'],
'components/gin_devel': ['./styles/components/gin_devel.scss'],
'components/gin_dialog': ['./styles/components/gin_dialog.scss'],
'components/dropzonejs': ['./styles/components/dropzonejs.scss'],
'components/more_actions': ['./styles/components/more_actions.scss'],
Expand Down

0 comments on commit a4f5be4

Please sign in to comment.