Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Bump y18n from 3.2.1 to 3.2.2 #17

Open
wants to merge 15 commits into
base: 8.x-7.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"require": {
"cweagans/composer-patches": "^1.6.0",
"oomphinc/composer-installers-extender": "^1.1 || ^2",
"drupal/core": "8.* || 9.*",
"drupal/bootstrap": "3.25"
"drupal/core": "9.* || 10.*",
"drupal/bootstrap": "3.29"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
2 changes: 1 addition & 1 deletion config/optional/block.block.sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ settings:
render_parent: false
visibility:
node_type:
id: node_type
id: 'entity_bundle:node'
bundles:
page: page
negate: false
Expand Down
2 changes: 1 addition & 1 deletion config/optional/block.block.sidebar_fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ settings:
suggestion: sidebar_fr
visibility:
node_type:
id: node_type
id: 'entity_bundle:node'
bundles:
page: page
negate: false
Expand Down
17 changes: 0 additions & 17 deletions css/ckeditor.css

This file was deleted.

6 changes: 6 additions & 0 deletions css/ckeditor5.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* CKEditor5 styles.
*/

.ck-content {
min-height: 250px; }
19 changes: 0 additions & 19 deletions sass/ckeditor.scss

This file was deleted.

7 changes: 7 additions & 0 deletions sass/ckeditor5.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* CKEditor5 styles.
*/

.ck-content {
min-height: 250px;
}
16 changes: 16 additions & 0 deletions src/Plugin/Preprocess/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ class Comment extends PreprocessBase {
*/
public function preprocessVariables(Variables $variables) {
$variables['author'] = \Drupal::service('renderer')->render($elements);
$owner = $variables['comment']->getOwner();
if (empty($variables['author']) && $owner->id() === 0) {
$variables['author'] = $this->t('Anonymous');
}
if (empty($variables['author']) && $owner->isAuthenticated()) {
if ($owner->hasField('field_first_name') && $owner->hasField('field_last_name')) {
$first_name = $owner->get('field_first_name')->getString();
$last_name = $owner->get('field_last_name')->getString();
if (!empty($first_name) && !empty($last_name)) {
$variables['author'] = $first_name . ' ' . $last_name;
}
}
}
if (empty($variables['author'])) {
$variables['author'] = $variables['comment']->getAuthorName();
}

// Getting the node creation time stamp from the comment object.
$date = $variables['comment']->getCreatedTime();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@
]
%}
<div class="gc-contextual">
<div clas="container">
<nav{{ attributes.addClass(classes) }}>
{{ title_prefix }}
<nav{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{% if label %}
<h3>{{ label }}</h3>
{{ title_suffix }}
{% block content %}
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
{{ content }}
</ul>
{% endblock %}
</nav>
</div>
{% endif %}
{{ title_suffix }}
{% block content %}
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
{{ content }}
</ul>
{% endblock %}
</nav>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@
]
%}
<div class="gc-contextual">
<div clas="container">
<nav{{ attributes.addClass(classes) }}>
{{ title_prefix }}
<nav{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{% if label %}
<h3>{{ label }}</h3>
{{ title_suffix }}
{% block content %}
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
{{ content }}
</ul>
{% endblock %}
</nav>
</div>
{% endif %}
{{ title_suffix }}
{% block content %}
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
{{ content }}
</ul>
{% endblock %}
</nav>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,14 @@
]
%}
<div class="gc-main-footer">
<div clas="container">
<nav{{ attributes.addClass(classes) }}>
{{ title_prefix }}
<h3>{{ 'Government of Canada'|t }}</h3>
{{ title_suffix }}
{% block content %}
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
{{ content }}
</ul>
{% endblock %}
</nav>
</div>
<nav{{ attributes.addClass(classes) }}>
{{ title_prefix }}
<h3>{{ 'Government of Canada'|t }}</h3>
{{ title_suffix }}
{% block content %}
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
{{ content }}
</ul>
{% endblock %}
</nav>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,14 @@
]
%}
<div class="gc-main-footer">
<div clas="container">
<nav{{ attributes.addClass(classes) }}>
{{ title_prefix }}
<h3>{{ 'Government of Canada'|t }}</h3>
{{ title_suffix }}
{% block content %}
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
{{ content }}
</ul>
{% endblock %}
</nav>
</div>
<nav{{ attributes.addClass(classes) }}>
{{ title_prefix }}
<h3>{{ 'Government of Canada'|t }}</h3>
{{ title_suffix }}
{% block content %}
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
{{ content }}
</ul>
{% endblock %}
</nav>
</div>
4 changes: 2 additions & 2 deletions templates/file/file-link.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @see \Drupal\bootstrap\Plugin\Preprocess\FileLink::preprocessVariables
*/
#}
{% spaceless %}
{% apply spaceless %}
{%
set classes = [
icon_only ? 'icon-only',
Expand All @@ -37,4 +37,4 @@
{% endif %}
{% endif %}
</span>
{% endspaceless %}
{% endapply %}
14 changes: 7 additions & 7 deletions templates/input/input--button--split.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
* @see template_preprocess_input()
*/
#}
{% spaceless %}
{%
set classes = [

{% block input %}{% apply spaceless %}
{%
set classes = [
'btn',
type == 'submit' ? 'js-form-submit',
icon and icon_position and not icon_only ? 'icon-' ~ icon_position,
]
%}
{% block input %}
%}
{% if icon_only %}
<button{{ attributes.addClass(classes, 'icon-only') }}>
<span class="sr-only">{{ label }}</span>
Expand All @@ -54,5 +54,5 @@
<span class="sr-only">{{ 'Toggle Dropdown'|t }}</span>
</button>
{{ children }}
{% endblock %}
{% endspaceless %}
{% endapply %}{% endblock %}

12 changes: 5 additions & 7 deletions templates/input/input--button--submit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@
* @see template_preprocess_input()
*/
#}
{% spaceless %}
{%
set classes = [
{% block input %}{% apply spaceless %}
{%
set classes = [
'btn',
type == 'submit' ? 'js-form-submit',
icon and icon_position and not icon_only ? 'icon-' ~ icon_position,
]
%}
{% block input %}
%}
{% if search_submit == 'true' %}
{% if wxt_theme == 'gcweb' %}
<button{{ attributes.addClass(classes) }}>{{ icon }}<span class="wb-inv">{{ 'Search'|t }}</span></button>{{ children }}
Expand All @@ -52,5 +51,4 @@
{% endif %}
{% endif %}
{{ children }}
{% endblock %}
{% endspaceless %}
{% endapply %}{% endblock %}
12 changes: 5 additions & 7 deletions templates/input/input--button.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@
* @see template_preprocess_input()
*/
#}
{% spaceless %}
{%
set classes = [
{% block input %}{% apply spaceless %}
{%
set classes = [
'btn',
type == 'submit' ? 'js-form-submit',
icon and icon_position and not icon_only ? 'icon-' ~ icon_position,
]
%}
{% block input %}
%}
{% if icon and icon_only %}
<button{{ attributes.addClass(classes, 'icon-only') }}>
<span class="sr-only">{{ label }}</span>
Expand All @@ -44,5 +43,4 @@
{% endif %}
{% endif %}
{{ children }}
{% endblock %}
{% endspaceless %}
{% endapply %}{% endblock %}
14 changes: 7 additions & 7 deletions templates/input/input--form-control.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* @see template_preprocess_input()
*/
#}
{% spaceless %}
{%
set classes = [

{% block input %}{% apply spaceless %}
{%
set classes = [
'form-control',
]
%}
{% block input %}
%}
<input{{ attributes.addClass(classes) }} />
{% endblock %}
{% endspaceless %}
{% endapply %}{% endblock %}

4 changes: 2 additions & 2 deletions templates/input/input.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @see template_preprocess_input()
*/
#}
{% spaceless %}
{% apply spaceless %}
{% if input_group %}
<div class="input-group">
{% endif %}
Expand All @@ -41,4 +41,4 @@
{% endif %}

{{ children }}
{% endspaceless %}
{% endapply %}
4 changes: 2 additions & 2 deletions templates/input/select.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @see template_preprocess_select()
*/
#}
{% spaceless %}
{% apply spaceless %}
{% if input_group %}
<div class="input-group">
{% endif %}
Expand Down Expand Up @@ -58,4 +58,4 @@
{% if input_group %}
</div>
{% endif %}
{% endspaceless %}
{% endapply %}
6 changes: 3 additions & 3 deletions wxt_bootstrap.info.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: WxT Bootstrap
description: WxT theme(s) support leveraging Bootstrap.
type: theme
core_version_requirement: ^8 || ^9
core_version_requirement: '^9 || ^10'
package: 'WxT'
base theme: bootstrap
ckeditor_stylesheets:
- css/ckeditor.css
ckeditor5-stylesheets:
- css/ckeditor5.css

regions:
branding: 'Branding'
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4374,9 +4374,9 @@ xmlhttprequest-ssl@~1.5.4:
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==

y18n@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41"
integrity sha1-bRX7qITAhnnA136I53WegR4H+kE=
version "3.2.2"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.2.tgz#85c901bd6470ce71fc4bb723ad209b70f7f28696"
integrity sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==

yallist@^2.1.2:
version "2.1.2"
Expand Down