Skip to content

Commit c2bc291

Browse files
committedMar 6, 2025··
ran prettier
1 parent eeeeb87 commit c2bc291

File tree

6 files changed

+32
-43
lines changed

6 files changed

+32
-43
lines changed
 

‎docs/.vitepress/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function renderInlineCode(tokens, idx, options, env, renderer) {
77
var token = tokens[idx];
88

99
return `<code v-pre ${renderer.renderAttrs(token)}>${escapeHtml(
10-
tokens[idx].content,
10+
tokens[idx].content
1111
)}</code>`;
1212
}
1313

‎src/web/assets/feedme/src/js/feed-me.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $(function () {
2323

2424
// Change the import strategy for Users
2525
var $disableLabel = $(
26-
'input[name="duplicateHandle[]"][value="disable"]',
26+
'input[name="duplicateHandle[]"][value="disable"]'
2727
).next('label');
2828
var originalDisableLabel = $disableLabel.text();
2929
var $disableInstructions = $disableLabel.siblings('.instructions');
@@ -39,10 +39,7 @@ $(function () {
3939
if (value === 'craft-elements-User') {
4040
$disableLabel.text(Craft.t('feed-me', 'Suspend missing users'));
4141
$disableInstructions.text(
42-
Craft.t(
43-
'feed-me',
44-
'Suspends any users that are missing from the feed.',
45-
),
42+
Craft.t('feed-me', 'Suspends any users that are missing from the feed.')
4643
);
4744
} else {
4845
$disableLabel.text(originalDisableLabel);
@@ -121,7 +118,7 @@ $(function () {
121118
// for categories and entries - only show "create if they do not exist" if matching done by "title"
122119
// for users - only show "create if they do not exist" if matching done by "email"
123120
$(
124-
'.categories-field-match select, .entries-field-match select, .users-field-match select',
121+
'.categories-field-match select, .entries-field-match select, .users-field-match select'
125122
).on('change', function (e) {
126123
var match = 'title';
127124
var $selectParent = $(this).parent();
@@ -229,7 +226,7 @@ $(function () {
229226
});
230227

231228
$container.find('select').html(newOptions);
232-
},
229+
}
233230
);
234231

235232
$('.field-extra-settings .element-group-section select').trigger('change');

‎src/web/assets/feedme/src/lib/selectize.js

+21-21
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@
655655
module.exports = factory(
656656
require('jquery'),
657657
require('sifter'),
658-
require('microplugin'),
658+
require('microplugin')
659659
);
660660
} else {
661661
root.Selectize = factory(root.jQuery, root.Sifter, root.MicroPlugin);
@@ -722,7 +722,7 @@
722722
for (var i = 0; i < this._events[event].length; i++) {
723723
this._events[event][i].apply(
724724
this,
725-
Array.prototype.slice.call(arguments, 1),
725+
Array.prototype.slice.call(arguments, 1)
726726
);
727727
}
728728
},
@@ -1288,7 +1288,7 @@
12881288
if (!self.settings.splitOn && self.settings.delimiter) {
12891289
var delimiterEscaped = self.settings.delimiter.replace(
12901290
/[-\/\\^$*+?.()|[\]{}]/g,
1291-
'\\$&',
1291+
'\\$&'
12921292
);
12931293
self.settings.splitOn = new RegExp('\\s*' + delimiterEscaped + '+\\s*');
12941294
}
@@ -1392,7 +1392,7 @@
13921392
if (self.isOpen) {
13931393
self.positionDropdown.apply(self, arguments);
13941394
}
1395-
},
1395+
}
13961396
);
13971397
$window.on('mousemove' + eventNS, function () {
13981398
self.ignoreHover = false;
@@ -1593,7 +1593,7 @@
15931593
if (self.settings.splitOn) {
15941594
setTimeout(function () {
15951595
var splitInput = $.trim(self.$control_input.val() || '').split(
1596-
self.settings.splitOn,
1596+
self.settings.splitOn
15971597
);
15981598
for (var i = 0, n = splitInput.length; i < n; i++) {
15991599
self.createItem(splitInput[i]);
@@ -2089,14 +2089,14 @@
20892089
.stop()
20902090
.animate(
20912091
{scrollTop: scroll_bottom},
2092-
animate ? self.settings.scrollDuration : 0,
2092+
animate ? self.settings.scrollDuration : 0
20932093
);
20942094
} else if (y < scroll) {
20952095
self.$dropdown_content
20962096
.stop()
20972097
.animate(
20982098
{scrollTop: scroll_top},
2099-
animate ? self.settings.scrollDuration : 0,
2099+
animate ? self.settings.scrollDuration : 0
21002100
);
21012101
}
21022102
}
@@ -2110,7 +2110,7 @@
21102110
if (self.settings.mode === 'single') return;
21112111

21122112
self.$activeItems = Array.prototype.slice.apply(
2113-
self.$control.children(':not(input)').addClass('active'),
2113+
self.$control.children(':not(input)').addClass('active')
21142114
);
21152115
if (self.$activeItems.length) {
21162116
self.hideInput();
@@ -2227,7 +2227,7 @@
22272227
calculateScore = self.settings.score.apply(this, [query]);
22282228
if (typeof calculateScore !== 'function') {
22292229
throw new Error(
2230-
'Selectize "score" setting must be a function that returns a function',
2230+
'Selectize "score" setting must be a function that returns a function'
22312231
);
22322232
}
22332233
}
@@ -2237,7 +2237,7 @@
22372237
self.lastQuery = query;
22382238
result = self.sifter.search(
22392239
query,
2240-
$.extend(options, {score: calculateScore}),
2240+
$.extend(options, {score: calculateScore})
22412241
);
22422242
self.currentResults = result;
22432243
} else {
@@ -2345,8 +2345,8 @@
23452345
'optgroup',
23462346
$.extend({}, self.optgroups[optgroup], {
23472347
html: html_children,
2348-
}),
2349-
),
2348+
})
2349+
)
23502350
);
23512351
} else {
23522352
html.push(groups[optgroup].join(''));
@@ -2627,7 +2627,7 @@
26272627
getOption: function (value) {
26282628
return this.getElementWithValue(
26292629
value,
2630-
this.$dropdown_content.find('[data-selectable]'),
2630+
this.$dropdown_content.find('[data-selectable]')
26312631
);
26322632
},
26332633

@@ -2947,7 +2947,7 @@
29472947
escape_html(self.items[i]) +
29482948
'" selected="selected">' +
29492949
escape_html(label) +
2950-
'</option>',
2950+
'</option>'
29512951
);
29522952
}
29532953
if (!options.length && !this.$input.attr('multiple')) {
@@ -3112,7 +3112,7 @@
31123112

31133113
if (self.$activeItems.length) {
31143114
$tail = self.$control.children(
3115-
'.active:' + (direction > 0 ? 'last' : 'first'),
3115+
'.active:' + (direction > 0 ? 'last' : 'first')
31163116
);
31173117
caret = self.$control.children(':not(input)').index($tail);
31183118
if (direction > 0) {
@@ -3393,13 +3393,13 @@
33933393
id = data[self.settings.optgroupValueField] || '';
33943394
html = html.replace(
33953395
regex_tag,
3396-
'<$1 data-group="' + escape_replace(escape_html(id)) + '"',
3396+
'<$1 data-group="' + escape_replace(escape_html(id)) + '"'
33973397
);
33983398
}
33993399
if (templateName === 'option' || templateName === 'item') {
34003400
html = html.replace(
34013401
regex_tag,
3402-
'<$1 data-value="' + escape_replace(escape_html(value || '')) + '"',
3402+
'<$1 data-value="' + escape_replace(escape_html(value || '')) + '"'
34033403
);
34043404
}
34053405

@@ -3687,7 +3687,7 @@
36873687

36883688
instance = new Selectize(
36893689
$input,
3690-
$.extend(true, {}, defaults, settings_element, settings_user),
3690+
$.extend(true, {}, defaults, settings_element, settings_user)
36913691
);
36923692
});
36933693
};
@@ -3781,7 +3781,7 @@
37813781
);
37823782
},
37833783
},
3784-
options,
3784+
options
37853785
);
37863786

37873787
self.setup = (function () {
@@ -3802,7 +3802,7 @@
38023802
equalizeWidth: true,
38033803
equalizeHeight: true,
38043804
},
3805-
options,
3805+
options
38063806
);
38073807

38083808
this.getAdjacentOption = function ($option, direction) {
@@ -3903,7 +3903,7 @@
39033903
className: 'remove',
39043904
append: true,
39053905
},
3906-
options,
3906+
options
39073907
);
39083908

39093909
var self = this;

‎src/web/assets/feedme/src/scss/_font-awesome.scss

+2-4
Original file line numberDiff line numberDiff line change
@@ -4752,8 +4752,7 @@ readers do not read off random characters that represent icons */
47524752
font-style: normal;
47534753
font-weight: 400;
47544754
src: url('../fonts/fa-regular-400.eot');
4755-
src:
4756-
url('../fonts/fa-regular-400.eot?#iefix') format('embedded-opentype'),
4755+
src: url('../fonts/fa-regular-400.eot?#iefix') format('embedded-opentype'),
47574756
url('../fonts/fa-regular-400.woff2') format('woff2'),
47584757
url('../fonts/fa-regular-400.woff') format('woff'),
47594758
url('../fonts/fa-regular-400.ttf') format('truetype'),
@@ -4774,8 +4773,7 @@ readers do not read off random characters that represent icons */
47744773
font-style: normal;
47754774
font-weight: 900;
47764775
src: url('../fonts/fa-solid-900.eot');
4777-
src:
4778-
url('../fonts/fa-solid-900.eot?#iefix') format('embedded-opentype'),
4776+
src: url('../fonts/fa-solid-900.eot?#iefix') format('embedded-opentype'),
47794777
url('../fonts/fa-solid-900.woff2') format('woff2'),
47804778
url('../fonts/fa-solid-900.woff') format('woff'),
47814779
url('../fonts/fa-solid-900.ttf') format('truetype'),

‎src/web/assets/feedme/src/scss/feed-me.css

+3-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/web/assets/feedme/src/scss/feed-me.scss

+1-3
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ body.ltr .table-feed-me .thin.action {
143143
position: relative;
144144
display: inline-block;
145145
background-image: linear-gradient(#fff, #fafafa);
146-
box-shadow:
147-
inset 0 0 0 1px rgba(0, 0, 0, 0.1),
148-
0 0 0 1px rgba(0, 0, 0, 0.025),
146+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.025),
149147
0 1px 1px rgba(0, 0, 0, 0.1);
150148

151149
&:after {

0 commit comments

Comments
 (0)