Skip to content
Snippets Groups Projects
Commit 15980e54 authored by Ken Rickard's avatar Ken Rickard
Browse files

Issue #3458052 by agentrickard: Configure and fix Eslint issues

parent 84ad8915
No related branches found
No related tags found
1 merge request!94Resolve #3458052 "Eslint"
Pipeline #213257 passed
Showing
with 100 additions and 70 deletions
......@@ -49,7 +49,5 @@ include:
- echo "127.0.0.1 nine.example.local" >> /etc/hosts
- echo "127.0.0.1 ten.example.local" >> /etc/hosts
variables:
SKIP_ESLINT: '1'
SKIP_PHPCS: '1'
SKIP_PHPSTAN: '1'
_PHPUNIT_CONCURRENT: '1'
......@@ -13,7 +13,7 @@ label: 'Domain administrator'
description: 'Select the domains this user may administer.'
required: false
translatable: false
default_value: { }
default_value: {}
default_value_callback: ''
settings:
handler: 'domain:domain'
......
......@@ -14,6 +14,6 @@ module: core
locked: false
cardinality: -1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -7,4 +7,4 @@ id: domain_default_action
label: 'Set default domain record'
type: domain
plugin: domain_default_action
configuration: { }
configuration: {}
......@@ -7,4 +7,4 @@ id: domain_delete_action
label: 'Delete domain record'
type: domain
plugin: domain_delete_action
configuration: { }
configuration: {}
......@@ -7,4 +7,4 @@ id: domain_disable_action
label: 'Disable domain record'
type: domain
plugin: domain_disable_action
configuration: { }
configuration: {}
......@@ -7,4 +7,4 @@ id: domain_enable_action
label: 'Enable domain record'
type: domain
plugin: domain_enable_action
configuration: { }
configuration: {}
......@@ -19,20 +19,48 @@ services:
arguments: ['@entity_type.manager']
domain.negotiator:
class: Drupal\domain\DomainNegotiator
arguments: ['@request_stack', '@module_handler', '@entity_type.manager', '@config.factory']
arguments:
[
'@request_stack',
'@module_handler',
'@entity_type.manager',
'@config.factory',
]
domain.subscriber:
class: Drupal\domain\EventSubscriber\DomainSubscriber
tags:
- { name: event_subscriber }
arguments: ['@domain.negotiator', '@entity_type.manager', '@access_check.domain', '@current_user']
arguments:
[
'@domain.negotiator',
'@entity_type.manager',
'@access_check.domain',
'@current_user',
]
domain.token:
class: Drupal\domain\DomainToken
arguments: ['@entity_type.manager', '@domain.negotiator']
domain.validator:
class: Drupal\domain\DomainValidator
arguments: ['@module_handler', '@config.factory', '@http_client', '@entity_type.manager']
arguments:
[
'@module_handler',
'@config.factory',
'@http_client',
'@entity_type.manager',
]
domain.route_provider:
class: Drupal\domain\Routing\DomainRouteProvider
decorates: router.route_provider
decoration_priority: 10
arguments: ['@database', '@state', '@path.current', '@cache.data', '@path_processor_manager', '@cache_tags.invalidator', 'router', '@language_manager']
arguments:
[
'@database',
'@state',
'@path.current',
'@cache.data',
'@path_processor_manager',
'@cache_tags.invalidator',
'router',
'@language_manager',
]
......@@ -2,30 +2,34 @@
* @file
* Attaches behaviors for the Domain module.
*/
(function ($) {
"use strict";
(function ($) {
/**
* Provides the summary information for the block settings vertical tabs.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches the behavior for the block settings summaries.
*/
Drupal.behaviors.domainSettingsSummaries = {
attach: function () {
attach() {
// The drupalSetSummary method required for this behavior is not available
// on the Blocks administration page, so we need to make sure this
// behavior is processed only if drupalSetSummary is defined.
if (typeof jQuery.fn.drupalSetSummary === 'undefined') {
if (typeof $.fn.drupalSetSummary === 'undefined') {
return;
}
// There may be an easier way to do this. Right now, we just copy code
// from block module.
function checkboxesSummary(context) {
var values = [];
var $checkboxes = $(context).find('input[type="checkbox"]:checked + label');
var il = $checkboxes.length;
for (var i = 0; i < il; i++) {
const values = [];
const $checkboxes = $(context).find(
'input[type="checkbox"]:checked + label',
);
const il = $checkboxes.length;
for (let i = 0; i < il; i++) {
values.push($($checkboxes[i]).html());
}
if (!values.length) {
......@@ -34,9 +38,9 @@
return values.join(', ');
}
$('[data-drupal-selector="edit-visibility-domain"]').drupalSetSummary(checkboxesSummary);
}
$('[data-drupal-selector="edit-visibility-domain"]').drupalSetSummary(
checkboxesSummary,
);
},
};
})(jQuery);
langcode: en
status: true
dependencies: { }
dependencies: {}
id: drupal
domain_id: 4308242
hostname: drupal.org
......
name: "Domain module config schema tests"
description: "Support module for domain config schema testing."
name: 'Domain module config schema tests'
description: 'Support module for domain config schema testing.'
type: module
package: Testing
version: VERSION
......
......@@ -30,7 +30,7 @@ display:
one_example_com: one_example_com
cache:
type: tag
options: { }
options: {}
query:
type: views_query
options:
......@@ -38,7 +38,7 @@ display:
distinct: false
replica: false
query_comment: ''
query_tags: { }
query_tags: {}
exposed_form:
type: basic
options:
......@@ -94,9 +94,9 @@ display:
hide_alter_empty: true
click_sort_column: value
type: user_name
settings: { }
settings: {}
group_column: value
group_columns: { }
group_columns: {}
group_rows: true
delta_limit: 0
delta_offset: 0
......@@ -117,28 +117,28 @@ display:
expose:
operator: ''
group: 1
sorts: { }
sorts: {}
title: 'Domain views access'
header: { }
footer: { }
empty: { }
relationships: { }
arguments: { }
display_extenders: { }
header: {}
footer: {}
empty: {}
relationships: {}
arguments: {}
display_extenders: {}
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.site
tags: { }
tags: {}
block_1:
display_plugin: block
id: block_1
display_title: Block
position: 2
display_options:
display_extenders: { }
display_extenders: {}
pager:
type: some
options:
......@@ -147,21 +147,21 @@ display:
defaults:
pager: false
header: false
header: { }
header: {}
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.site
tags: { }
tags: {}
page_1:
display_plugin: page
id: page_1
display_title: Page
position: 1
display_options:
display_extenders: { }
display_extenders: {}
path: domain-views-access
cache_metadata:
max-age: -1
......@@ -169,4 +169,4 @@ display:
- 'languages:language_content'
- 'languages:language_interface'
- url.site
tags: { }
tags: {}
name: "Domain module hook tests"
description: "Support module for domain hook testing."
name: 'Domain module hook tests'
description: 'Support module for domain hook testing.'
type: module
package: Testing
version: VERSION
......
......@@ -25,7 +25,7 @@ display:
perm: 'access content'
cache:
type: tag
options: { }
options: {}
query:
type: views_query
options:
......@@ -33,7 +33,7 @@ display:
distinct: false
replica: false
query_comment: ''
query_tags: { }
query_tags: {}
exposed_form:
type: basic
options:
......@@ -121,7 +121,7 @@ display:
thousand_separator: ''
prefix_suffix: true
group_column: value
group_columns: { }
group_columns: {}
group_rows: true
delta_limit: 0
delta_offset: 0
......@@ -171,7 +171,7 @@ display:
click_sort_column: value
type: string
group_column: value
group_columns: { }
group_columns: {}
group_rows: true
delta_limit: 0
delta_offset: 0
......@@ -192,7 +192,7 @@ display:
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
operator_list: {}
group: 1
sorts:
nid:
......@@ -210,10 +210,10 @@ display:
entity_field: nid
plugin_id: standard
title: test_active_domain_argument
header: { }
footer: { }
empty: { }
relationships: { }
header: {}
footer: {}
empty: {}
relationships: {}
arguments:
field_domain_access_target_id:
id: field_domain_access_target_id
......@@ -230,7 +230,7 @@ display:
title_enable: false
title: ''
default_argument_type: active_domain
default_argument_options: { }
default_argument_options: {}
default_argument_skip_url: false
summary_options:
base_path: ''
......@@ -245,7 +245,7 @@ display:
validate:
type: none
fail: 'not found'
validate_options: { }
validate_options: {}
glossary: false
limit: 0
case: none
......@@ -253,7 +253,7 @@ display:
transform_dash: false
break_phrase: false
plugin_id: domain_access_argument
display_extenders: { }
display_extenders: {}
cache_metadata:
max-age: -1
contexts:
......@@ -264,14 +264,14 @@ display:
- url.site
- 'user.node_grants:view'
- user.permissions
tags: { }
tags: {}
page_1:
display_plugin: page
id: page_1
display_title: Page
position: 1
display_options:
display_extenders: { }
display_extenders: {}
path: test-active-domain-argument
cache_metadata:
max-age: -1
......@@ -283,4 +283,4 @@ display:
- url.site
- 'user.node_grants:view'
- user.permissions
tags: { }
tags: {}
......@@ -17,6 +17,6 @@ module: core
locked: false
cardinality: -1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -11,11 +11,11 @@ id: node.field_domain_all_affiliates
field_name: field_domain_all_affiliates
entity_type: node
type: boolean
settings: { }
settings: {}
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -17,6 +17,6 @@ module: core
locked: false
cardinality: -1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -11,11 +11,11 @@ id: user.field_domain_all_affiliates
field_name: field_domain_all_affiliates
entity_type: user
type: boolean
settings: { }
settings: {}
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -7,4 +7,4 @@ id: domain_access_all_action
label: 'Assign content to all affiliates'
type: node
plugin: domain_access_all_action
configuration: { }
configuration: {}
......@@ -7,4 +7,4 @@ id: domain_access_edit_all_action
label: 'Assign editors to all affiliates'
type: user
plugin: domain_access_edit_all_action
configuration: { }
configuration: {}
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