Skip to content

Commit

Permalink
prettier write
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Nov 2, 2024
1 parent f309ef3 commit d2eddc2
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 47 deletions.
6 changes: 3 additions & 3 deletions gadgets/bookflap/mediawiki%3Agadget-bookflap.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@

$raws.each(function () {
var $title = $(this).find(
'.book-flap-title a, .book-flap-title .mw-selflink'
'.book-flap-title a, .book-flap-title .mw-selflink',
);
var $slideBookFlap = $('<div></div>')
.addClass('book-flap-slide')
.html($(this).find('book-flap-raw book-flap-title'))
.append(
$(this).find('.book-flap-body').clone().addClass('mw-parser-output')
$(this).find('.book-flap-body').clone().addClass('mw-parser-output'),
)
.appendTo($overlay);

Expand Down Expand Up @@ -85,7 +85,7 @@
.addClass('book-flap-side')
.html($(this).find('book-flap-raw book-flap-title'))
.append(
$(this).find('.book-flap-body').clone().addClass('mw-parser-output')
$(this).find('.book-flap-body').clone().addClass('mw-parser-output'),
)
.appendTo($(this).hasClass('book-flap-left') ? $leftside : $rightside)
.hide()
Expand Down
8 changes: 4 additions & 4 deletions gadgets/create-redirect/mediawiki%3Agadget-create-redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
'#',
'여기로 넘겨주기',
'p-createRedirect',
'이 문서로 오는 넘겨주기 문서를 만듭니다.'
)
'이 문서로 오는 넘겨주기 문서를 만듭니다.',
),
).on('click', function (e) {
e.preventDefault();
target = mw.config.get('wgPageName').replace(/_/g, ' ');
Expand Down Expand Up @@ -62,7 +62,7 @@
title +
'" 문서에서 "' +
target +
'" 문서로 넘겨주기를 만드시겠습니까?'
'" 문서로 넘겨주기를 만드시겠습니까?',
)
.done(function (confirmed) {
if (confirmed) {
Expand All @@ -75,7 +75,7 @@
'" 문서에서 ' +
'"' +
target +
'" 문서로 넘겨주기 문서가 생성되었습니다.'
'" 문서로 넘겨주기 문서가 생성되었습니다.',
);
})
.fail(function (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ sup.reference:target {

#pt-notifications-alert .mw-echo-notifications-badge:focus,
#pt-notifications-notice .mw-echo-notifications-badge:focus {
box-shadow: #181a1b 0 0 0 1px, #2952a3 0 0 0 3px;
box-shadow:
#181a1b 0 0 0 1px,
#2952a3 0 0 0 3px;
}

#pt-notifications-alert .mw-echo-notifications-badge:focus::after,
Expand Down Expand Up @@ -426,7 +428,9 @@ sup.reference:target {
.oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-buttonElement-active
> .oo-ui-buttonElement-button:focus {
border-color: #272069;
box-shadow: #221c5d 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#221c5d 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
}

.oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-progressive
Expand Down Expand Up @@ -530,7 +534,9 @@ sup.reference:target {
.oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive
> .oo-ui-buttonElement-button:focus {
border-color: #272069;
box-shadow: #221c5d 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#221c5d 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
outline-color: transparent;
}

Expand Down Expand Up @@ -566,7 +572,9 @@ sup.reference:target {
.oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive
> .oo-ui-buttonElement-button:focus {
border-color: #951919;
box-shadow: #a61c1c 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#a61c1c 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
outline-color: transparent;
}

Expand Down Expand Up @@ -812,7 +820,9 @@ ul.mw-gallery-packed-overlay li.gallerybox div.thumb {
+ span {
background-color: #221c5d;
border-color: #272069;
box-shadow: #221c5d 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#221c5d 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
}

.oo-ui-checkboxInputWidget.oo-ui-widget-enabled
Expand Down Expand Up @@ -4666,7 +4676,9 @@ body.skin-vector #ca-talk.hasOpenTopic > span > a::after {
.oo-ui-buttonOptionWidget.oo-ui-optionWidget-selected
.oo-ui-buttonElement-button {
border-color: #272069;
box-shadow: #221c5d 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#221c5d 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
outline-color: transparent;
}

Expand Down Expand Up @@ -5170,7 +5182,9 @@ body.skin-vector #ca-talk.hasOpenTopic > span > a::after {
.oo-ui-tool.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive
> .oo-ui-tool-link:focus {
outline-color: #272069;
box-shadow: #221c5d 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#221c5d 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
}

.oo-ui-tool.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive.oo-ui-widget-disabled
Expand Down Expand Up @@ -5208,7 +5222,9 @@ body.skin-vector #ca-talk.hasOpenTopic > span > a::after {
.oo-ui-tool.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive
> .oo-ui-tool-link:focus {
outline-color: #951919;
box-shadow: #a61c1c 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#a61c1c 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
}

.oo-ui-tool.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive.oo-ui-widget-disabled
Expand Down Expand Up @@ -5426,7 +5442,9 @@ body.skin-vector #ca-talk.hasOpenTopic > span > a::after {
.oo-ui-popupToolGroup.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive
> .oo-ui-popupToolGroup-handle:focus {
outline-color: #272069;
box-shadow: #221c5d 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#221c5d 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
}

.oo-ui-popupToolGroup.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive.oo-ui-widget-disabled
Expand Down Expand Up @@ -5464,7 +5482,9 @@ body.skin-vector #ca-talk.hasOpenTopic > span > a::after {
.oo-ui-popupToolGroup.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive
> .oo-ui-popupToolGroup-handle:focus {
outline-color: #951919;
box-shadow: #a61c1c 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#a61c1c 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
}

.oo-ui-popupToolGroup.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive.oo-ui-widget-disabled
Expand Down Expand Up @@ -5797,7 +5817,9 @@ body.skin-vector #ca-talk.hasOpenTopic > span > a::after {
background-color: #1b1e1f;
color: #d3cfc9;
border-color: #3e4346;
box-shadow: rgba(0, 0, 0, 0.2) 0 1px 0, #181a1b 0 0 0 2px inset;
box-shadow:
rgba(0, 0, 0, 0.2) 0 1px 0,
#181a1b 0 0 0 2px inset;
text-shadow: #181a1b 0 1px 0;
}

Expand Down Expand Up @@ -5976,7 +5998,9 @@ body.skin-vector #ca-talk.hasOpenTopic > span > a::after {
background-color: #181a1b;
color: #d3cfca;
border-color: #24478f;
box-shadow: #2952a3 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#2952a3 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
}

.mw-ui-button:focus::-moz-focus-inner {
Expand Down Expand Up @@ -6095,7 +6119,9 @@ body.skin-vector #ca-talk.hasOpenTopic > span > a::after {
}

.mw-ui-button.mw-ui-destructive:focus {
box-shadow: #a61c1c 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#a61c1c 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
}

.mw-ui-button.mw-ui-destructive.is-on,
Expand Down Expand Up @@ -6161,7 +6187,9 @@ a.mw-ui-button:hover {
}

.mw-ui-button.mw-ui-progressive:focus {
box-shadow: #221c5d 0 0 0 1px inset, #181a1b 0 0 0 2px inset;
box-shadow:
#221c5d 0 0 0 1px inset,
#181a1b 0 0 0 2px inset;
}

.mw-ui-button.mw-ui-progressive.is-on,
Expand Down Expand Up @@ -6248,7 +6276,8 @@ a.mw-ui-button:hover {
}

.mwe-popups {
box-shadow: rgba(0, 0, 0, 0.3) 0 30px 90px -20px,
box-shadow:
rgba(0, 0, 0, 0.3) 0 30px 90px -20px,
rgba(0, 0, 0, 0.05) 0 0 1px 1px;
}

Expand Down Expand Up @@ -10387,7 +10416,9 @@ del[data-diff-action='remove']:hover {
}

.mw-widget-dateInputWidget-calendar:focus {
box-shadow: #2c284e 0 0 0 1px inset, rgba(0, 0, 0, 0.25) 0 2px 2px 0;
box-shadow:
#2c284e 0 0 0 1px inset,
rgba(0, 0, 0, 0.25) 0 2px 2px 0;
}

.mw-widget-mediaResultWidget.oo-ui-optionWidget-highlighted,
Expand Down Expand Up @@ -10880,7 +10911,8 @@ span.ime-disable-shortcut {
}

.mw-gallery-traditional.scroll-left.scroll-right {
box-shadow: rgba(0, 0, 0, 0.4) -17px 0 16px -16px inset,
box-shadow:
rgba(0, 0, 0, 0.4) -17px 0 16px -16px inset,
rgba(0, 0, 0, 0.4) 17px 0 16px -16px inset;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

if (isLinkToSanction) {
$(this).html(
'사용자:' + substitute + ' 님에 대한 부적절한 사용자명 변경 건의'
'사용자:' + substitute + ' 님에 대한 부적절한 사용자명 변경 건의',
);
}
});
Expand Down
8 changes: 4 additions & 4 deletions gadgets/imageview/mediawiki%3Agadget-imageview.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
$('<img></img>')
.attr(
'src',
'https://upload.wikimedia.org/wikipedia/commons/d/de/Ajax-loader.gif'
'https://upload.wikimedia.org/wikipedia/commons/d/de/Ajax-loader.gif',
)
.addClass('loading-spinner')
.addClass('loading-spinner'),
);

$('body').css('overflow', 'hidden');
Expand All @@ -29,7 +29,7 @@
titles: decodeURI(
$(this)
.attr('href')
.match(/\/([^/]+)$/)[1]
.match(/\/([^/]+)$/)[1],
),
prop: 'imageinfo',
iiprop: 'url',
Expand All @@ -42,7 +42,7 @@
});

overlay.append(
$('<img></img>').attr('src', imageSource).addClass('image')
$('<img></img>').attr('src', imageSource).addClass('image'),
);
});
});
Expand Down
8 changes: 4 additions & 4 deletions gadgets/mute/mediawiki%3Agadget-mute.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
' 여러 브라우저로 페미위키를 이용하시는 분들은 각 브라우저별로' +
' 키워드를 등록해주시기 바랍니다.' +
'</p>' +
'</div>'
'</div>',
);

function _initUI() {
Expand All @@ -25,8 +25,8 @@
'#',
'뮤트',
'p-mute',
'금지어를 설정합니다.'
)
'금지어를 설정합니다.',
),
).on('click', function (e) {
e.preventDefault();
$editorEl.show();
Expand Down Expand Up @@ -58,7 +58,7 @@
$('#mw-content-text').prepend(
'<div class="notice warning">' +
'가림 단어가 포함된 문서입니다. 이 문서의 제목 또는 본문에 한 개 이상의 가림 단어가 있습니다.' +
'</div>'
'</div>',
);
}

Expand Down
6 changes: 3 additions & 3 deletions gadgets/rc-lazy-load/mediawiki%3Agadget-rc-lazy-load.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// 바뀐글 링크를 limit가 0인 링크로 바꿉니다.
$('#site-navigation .changes a').attr(
'href',
$('#site-navigation .changes a').attr('href') + '?limit=0'
$('#site-navigation .changes a').attr('href') + '?limit=0',
);

if (
Expand Down Expand Up @@ -46,12 +46,12 @@

// limit를 50으로 변경하는 버튼
var btn = $(
'.mw-rcfilters-ui-changesLimitPopupWidget .oo-ui-buttonSelectWidget a'
'.mw-rcfilters-ui-changesLimitPopupWidget .oo-ui-buttonSelectWidget a',
).eq(limitButtonIndex);

// 버튼을 누르는 동작을 흉내냅니다. 즉 limit를 50으로 다시 설정합니다.
btn.trigger(
jQuery.Event('mousedown', { which: OO.ui.MouseButtons.LEFT })
jQuery.Event('mousedown', { which: OO.ui.MouseButtons.LEFT }),
);
btn[0].dispatchEvent(new MouseEvent('mouseup'));
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
}
.mw-gallery-traditional.scroll-left.scroll-right {
box-shadow: -17px 0 16px -16px rgba(0, 0, 0, 0.4) inset,
box-shadow:
-17px 0 16px -16px rgba(0, 0, 0, 0.4) inset,
17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
}

Expand Down
Loading

0 comments on commit d2eddc2

Please sign in to comment.