From bd545d76793a24c81196abd9953fd3af24aa571c Mon Sep 17 00:00:00 2001 From: Jonathan Smith <20701-jonathan1055@users.noreply.drupalcode.org> Date: Thu, 16 Nov 2023 16:28:54 +0000 Subject: [PATCH] Issue #3402091 add .gitlab-ci.yml file --- .eslintignore | 1 + .eslintrc.json | 10 ------ .gitlab-ci.yml | 50 ++++++++++++++++++++++++++++++ css/module_filter.css | 14 ++++----- css/module_filter.modules_tabs.css | 24 +++++++------- module_filter.module | 2 +- 6 files changed, 71 insertions(+), 30 deletions(-) create mode 100644 .eslintignore delete mode 100644 .eslintrc.json create mode 100644 .gitlab-ci.yml diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..1cda54b --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +*.yml diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 8de31b0..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,10 +0,0 @@ -// This file does not strictly need to exist in contrib, because eslint config -// files placed futher up in the directory structure will be merged and -// inherited. The top-level .eslintrc.json extends ./core/.eslintrc.json. -// However there is no 'sniff all files' argument for eslint in MR testing, and -// a bug in the testbot script means that any changed .yml files are not checked -// in patch or MR tests. However, having this file and making a change to it -// will cause all js and yml files to be checked. -// See https://www.drupal.org/project/drupalci_testbot/issues/3333051 - -{} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..32ae6b6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,50 @@ +################ +# DrupalCI GitLabCI template +# +# Gitlab-ci.yml to replicate DrupalCI testing for Contrib +# +# With thanks to: +# * The GitLab Acceleration Initiative participants +# * DrupalSpoons +################ + +################ +# Guidelines +# +# This template is designed to give any Contrib maintainer everything they need to test, without requiring modification. +# It is also designed to keep up to date with Core Development automatically through the use of include files that can +# be centrally maintained. +# +# However, you can modify this template if you have additional needs for your project. +################ + +################ +# Includes +# +# Additional configuration can be provided through includes. +# One advantage of include files is that if they are updated upstream, the changes affect all pipelines using that include. +# +# Includes can be overridden by re-declaring anything provided in an include, here in gitlab-ci.yml +# https://docs.gitlab.com/ee/ci/yaml/includes.html#override-included-configuration-values +################ + +include: + ################ + # DrupalCI includes: + # As long as you include this, any future includes added by the Drupal Association will be accessible to your pipelines automatically. + # View these include files at https://git.drupalcode.org/project/gitlab_templates/ + ################ + - project: $_GITLAB_TEMPLATES_REPO + ref: $_GITLAB_TEMPLATES_REF + file: + - '/includes/include.drupalci.main.yml' + - '/includes/include.drupalci.variables.yml' + - '/includes/include.drupalci.workflows.yml' + +################ +# Pipeline configuration variables +# +# These are the variables provided to the Run Pipeline form that a user may want to override. +# +# Docs at https://git.drupalcode.org/project/gitlab_templates/-/blob/1.0.x/includes/include.drupalci.variables.yml +################ diff --git a/css/module_filter.css b/css/module_filter.css index d7f9307..c59fa3f 100644 --- a/css/module_filter.css +++ b/css/module_filter.css @@ -8,26 +8,26 @@ .winnow-clear { position: absolute; top: 0; - bottom: 0; right: 2px; + bottom: 0; left: auto; text-align: left; text-indent: -9999px; } -.winnow-clear:after { +.winnow-clear::after { position: absolute; right: 0; - padding: 0 0.5em; height: 100%; + padding: 0 0.5em; content: '✕'; - color: #aaa; - font: 1em/2.2em arial, sans-serif; text-decoration: none; - text-shadow: 0 1px 0 #fff; text-indent: 0; opacity: 0.7; + color: #aaa; + text-shadow: 0 1px 0 #fff; + font: 1em/2.2em arial, sans-serif; } -.winnow-clear:hover:after { +.winnow-clear:hover::after { opacity: 1; } .admin-missing { diff --git a/css/module_filter.modules_tabs.css b/css/module_filter.modules_tabs.css index 39d04fb..62b88c6 100644 --- a/css/module_filter.modules_tabs.css +++ b/css/module_filter.modules_tabs.css @@ -5,9 +5,9 @@ position: relative; overflow: hidden; margin: 10px 0; - background: #e6e5e1; border: 1px solid #bdbdbd; border-radius: 4px; + background: #e6e5e1; } .modules-tabs__menu { float: left; /* LTR */ @@ -22,8 +22,8 @@ margin: 0 0 -1px -100%; } .modules-tabs__menu-item { - background: #eee; border-top: 1px solid #ccc; + background: #eee; } .modules-tabs__menu-item:first-child { border-top: 0 none; @@ -36,35 +36,35 @@ background: #f9f9f9; } .modules-tabs__menu-item.disabled { - background: #ccc; border-top-color: #bbb; border-bottom-color: #bbb; + background: #ccc; } .modules-tabs__menu-item a { display: block; - text-decoration: none; padding: 10px; + text-decoration: none; } .modules-tabs__menu-item a:hover, .modules-tabs__menu-item a:focus { - background: #d5d5d5; text-decoration: none; outline: 0; + background: #d5d5d5; } .modules-tabs__menu-item.is-selected a, .modules-tabs__menu-item.is-selected a:hover, .modules-tabs__menu-item.is-selected a:focus, .modules-tabs__menu-item.is-selected a:active { - background-color: #fcfcfa; margin-right: -1px; + background-color: #fcfcfa; } .modules-tabs__menu-item.disabled a, .modules-tabs__menu-item.disabled span { color: #999; } .modules-tabs__menu-item.disabled a { - pointer-events: none; cursor: default; + pointer-events: none; } .modules-tabs__menu-item .summary { padding-top: 0.4em; @@ -78,7 +78,7 @@ font-size: 0.75em; font-weight: bold; } -.modules-tabs__menu-item ul.enabling:before { +.modules-tabs__menu-item ul.enabling::before { content: '+'; } .modules-tabs__menu-item span.result { @@ -93,18 +93,18 @@ .modules-tabs__pane { margin: 0 0 0 240px; /* LTR */ padding: 10px 15px; - background: #fcfcfa; border-left: 1px solid #a6a5a1; /* LTR */ + background: #fcfcfa; } [dir="rtl"] .modules-tabs__pane { margin: 0 240px 0 0; - border-left: none; border-right: 1px solid #a6a5a1; + border-left: none; } -.modules-tabs__pane:after { - content: ''; +.modules-tabs__pane::after { display: table; clear: both; + content: ''; } .modules-tabs__pane input.table-filter-text { width: 100%; diff --git a/module_filter.module b/module_filter.module index afdd1bd..6d79a00 100644 --- a/module_filter.module +++ b/module_filter.module @@ -5,9 +5,9 @@ * Provides a filtering mechanism to various admin pages. */ -use Drupal\Core\Render\Element; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Link; +use Drupal\Core\Render\Element; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Url; -- GitLab