Skip to content
Snippets Groups Projects
Commit 197d7644 authored by David Suissa's avatar David Suissa Committed by Paul McKibben
Browse files

Issue #3467008 by DYdave: CSpell on GitlabCI: Fixed all validation errors such...

Issue #3467008 by DYdave: CSpell on GitlabCI: Fixed all validation errors such as typos or spelling, added file '.cspell-project-words.txt' to ignore certain keywords and required job to pass.
parent 570e7e2c
No related branches found
No related tags found
1 merge request!39Issue #3467008 by DYdave: CSpell on GitlabCI: Fixed all validation errors such...
Pipeline #251918 passed with warnings
# List of words excluded from cspell validation for the project Colorbox.
# Mostly contains custom names: variables, css/js properties, etc...
# Custom variable names, ids, keys or identifiers.
cbox
colorbox
colorboxdompurify
colorboxplugin
dompurify
iframed
lightbox
mobiledetect
mobiledevicewidth
mycolorbox
mystyle
stockholmsyndrome
# Config variables defined in module's schema file:
# Watchout: changing these would have a big impact and could break sites.
initialheight
initialwidth
maxheight
maxwidth
overlayclose
returnfocus
......@@ -59,48 +59,9 @@ include:
# OPT_IN_TEST_NEXT_MAJOR: '1'
# _CURL_TEMPLATES_REF: 'main'
###################################################################################
#
# *
# /(
# ((((,
# /(((((((
# ((((((((((*
# ,(((((((((((((((
# ,(((((((((((((((((((
# ((((((((((((((((((((((((*
# *(((((((((((((((((((((((((((((
# ((((((((((((((((((((((((((((((((((*
# *(((((((((((((((((( .((((((((((((((((((
# ((((((((((((((((((. /(((((((((((((((((*
# /((((((((((((((((( .(((((((((((((((((,
# ,(((((((((((((((((( ((((((((((((((((((
# .(((((((((((((((((((( .(((((((((((((((((
# ((((((((((((((((((((((( ((((((((((((((((/
# (((((((((((((((((((((((((((/ ,(((((((((((((((*
# .((((((((((((((/ /(((((((((((((. ,(((((((((((((((
# *(((((((((((((( ,(((((((((((((/ *((((((((((((((.
# ((((((((((((((, /(((((((((((((. ((((((((((((((,
# (((((((((((((/ ,(((((((((((((* ,(((((((((((((,
# *((((((((((((( .((((((((((((((( ,(((((((((((((
# ((((((((((((/ /((((((((((((((((((. ,((((((((((((/
# ((((((((((((( *(((((((((((((((((((((((* *((((((((((((
# ((((((((((((( ,(((((((((((((..((((((((((((( *((((((((((((
# ((((((((((((, /((((((((((((* /((((((((((((/ ((((((((((((
# ((((((((((((( /((((((((((((/ (((((((((((((* ((((((((((((
# (((((((((((((/ /(((((((((((( ,((((((((((((, *((((((((((((
# (((((((((((((( *(((((((((((/ *((((((((((((. ((((((((((((/
# *((((((((((((((((((((((((((, /(((((((((((((((((((((((((
# ((((((((((((((((((((((((( ((((((((((((((((((((((((,
# .(((((((((((((((((((((((/ ,(((((((((((((((((((((((
# ((((((((((((((((((((((/ ,(((((((((((((((((((((/
# *((((((((((((((((((((( (((((((((((((((((((((,
# ,(((((((((((((((((((((, ((((((((((((((((((((/
# ,(((((((((((((((((((((* /((((((((((((((((((((
# ((((((((((((((((((((((, ,/((((((((((((((((((((,
# ,(((((((((((((((((((((((((((((((((((((((((((((((((((
# .(((((((((((((((((((((((((((((((((((((((((((((
# .((((((((((((((((((((((((((((((((((((,.
# .,(((((((((((((((((((((((((.
# CSpell overrides and configuration.
#
###################################################################################
cspell:
# Require spellcheck to pass.
allow_failure: false
......@@ -66,9 +66,8 @@ Or, if you prefer, you can download DOMPurify directly from:
[DOMPurify](https://github.com/cure53/DOMPurify/releases/latest)
From the above link, you can download a zip or tar.gz archive file.
To avoid security issues, please only install the dist directory, and
nothing else from the archive. The drush command above only installs
the dist directory.
To avoid security issues, only install the dist directory, and nothing else from
the archive. The drush command above only installs the dist directory.
The DOMPurify library is optional. Without DOMPurify, the Colorbox module
will convert all captions to plain text.
......
......@@ -25,7 +25,7 @@
*/
function hook_colorbox_settings_alter(&$settings, &$style) {
// @codingStandardsIgnoreEnd
// Disable automatic downscaling of images to maxWidth/maxHeight size.
// Disable automatic down scaling of images to maxWidth/maxHeight size.
$settings['scalePhotos'] = FALSE;
// Use custom style plugin specifically for node/123.
......
......@@ -45,6 +45,7 @@ function colorbox_requirements($phase) {
'title' => t('DOMPurify library'),
'value' => $dompurify_exists ? t('Installed') : t('Not installed'),
'description' => $dompurify_exists ? '' :
// cspell:disable-next-line ForbiddenWords
t('The DOMPurify library is not installed. The Colorbox module uses this library to sanitize HTML captions. Without this library, all captions will be treated as plain text. If you intend to have HTML captions in Colorbox content, download the <a href="@url">DOMPurify library</a>, extract it, and copy the dist directory into the /libraries/DOMPurify folder in your Drupal installation directory. Specifically, the system looks for /libraries/DOMPurify/dist/purify.min.js. <br /><br /> To avoid potential security issues, please only install the dist directory, and not any other files from the archive.<br /><br /> If you do not intend to use HTML captions, you can suppress this warning on the <a href="@config">Colorbox configuration page.</a>',
[
'@url' => 'https://github.com/cure53/DOMPurify/archive/main.zip',
......
......@@ -25,7 +25,7 @@ class ActivationCheck implements ActivationCheckInterface {
protected $request;
/**
* Create an instace of ActivationCheck.
* Create an instance of ActivationCheck.
*/
public function __construct(ConfigFactoryInterface $config, RequestStack $request) {
$this->settings = $config->get('colorbox.settings');
......
......@@ -105,7 +105,7 @@ class ColorboxAttachment implements ElementAttachmentInterface {
// Add colorbox js settings.
$page['#attached']['drupalSettings']['colorbox'] = $js_settings;
// Add and initialise the Colorbox plugin.
// Add and initialize the Colorbox plugin.
if ($this->settings->get('advanced.compression_type') == 'minified') {
$page['#attached']['library'][] = 'colorbox/colorbox';
}
......
......@@ -9,7 +9,7 @@ use GuzzleHttp\Exception\RequestException;
use Symfony\Component\Filesystem\Filesystem;
/**
* A Drush commandfile.
* A Drush command file.
*
* In addition to this file, you need a drush.services.yml
* in root of your module, and a composer.json file that provides the name
......
......@@ -11,8 +11,9 @@ use Drupal\Core\Form\FormStateInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Extension\ModuleExtensionList;
// cspell:ignore slideshowauto slideshowspeed
/**
* General configuration form for controlling the colorbox behaviour..
* General configuration form for controlling the colorbox behavior.
*/
class ColorboxSettingsForm extends ConfigFormBase {
......@@ -345,7 +346,7 @@ class ColorboxSettingsForm extends ConfigFormBase {
'#title' => $this->t('Unique per-request gallery token'),
'#options' => [1 => $this->t('On'), 0 => $this->t('Off')],
'#default_value' => $config->get('advanced.unique_token'),
'#description' => $this->t('If On (default), Colorbox will add a unique per-request token to the gallery id to avoid images being added manually to galleries. The token was added as a security fix but some see the old behavoiur as an feature and this settings makes it possible to remove the token.'),
'#description' => $this->t('If On (default), Colorbox will add a unique per-request token to the gallery id to avoid images being added manually to galleries. The token was added as a security fix but some see the old behavior as an feature and this settings makes it possible to remove the token.'),
];
$form['colorbox_advanced_settings']['colorbox_mobile_detect'] = [
'#type' => 'radios',
......
......@@ -55,7 +55,7 @@
cursor: pointer;
}
/**
* Avoid outlines on :active (mouseclick),
* Avoid outlines on :active (mouse click),
* but preserve outlines on :focus (tabbed navigating)
*/
#cboxPrevious:active,
......
......@@ -55,7 +55,7 @@
cursor: pointer;
}
/**
* Avoid outlines on :active (mouseclick),
* Avoid outlines on :active (mouse click),
* but preserve outlines on :focus (tabbed navigating)
*/
#cboxPrevious:active,
......
......@@ -55,7 +55,7 @@
cursor: pointer;
}
/**
* Avoid outlines on :active (mouseclick),
* Avoid outlines on :active (mouse click),
* but preserve outlines on :focus (tabbed navigating)
*/
#cboxPrevious:active,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment