Skip to content

Commit

Permalink
build: re-generate dist
Browse files Browse the repository at this point in the history
  • Loading branch information
AnYiEE committed Aug 6, 2024
1 parent 456b4db commit ffe17e6
Show file tree
Hide file tree
Showing 12 changed files with 922 additions and 992 deletions.
2 changes: 1 addition & 1 deletion dist/CookieWarning/CookieWarning.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/RRD/RRD.js

Large diffs are not rendered by default.

499 changes: 223 additions & 276 deletions dist/Tippy/Tippy.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/Twinkle/Twinkle.js

Large diffs are not rendered by default.

281 changes: 142 additions & 139 deletions dist/VariantAlly/VariantAlly.js

Large diffs are not rendered by default.

499 changes: 223 additions & 276 deletions dist/Wikiplus-highlight/Wikiplus-highlight.js

Large diffs are not rendered by default.

563 changes: 303 additions & 260 deletions dist/Wikiplus/Wikiplus.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/morebits/morebits.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/CookieWarning/components/AgreeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'ext.gadget.React';
import {getMessage} from '../modules/i18n';

interface Props {
onClick(): void;
onClick: () => void;
}

const AgreeButton = ({onClick}: Props) => (
Expand Down
2 changes: 1 addition & 1 deletion src/RRD/components/ReportButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {getMessage} from '../modules/i18n';
import {isSpecialLog} from '../modules/isSpecialLog';

interface Props {
onClick(): void;
onClick: () => void;
}

const ReportButton = ({onClick}: Props) => (
Expand Down
16 changes: 6 additions & 10 deletions src/Twinkle/modules/twinklebatchprotect.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,9 @@
let editProt;
if (missing) {
metadata[metadata.length] = '页面不存在';
editProt = page.protection
.filter((protection) => {
return protection.type === 'create' && protection.level === 'sysop';
})
.pop();
editProt = page.protection.findLast((protection) => {
return protection.type === 'create' && protection.level === 'sysop';
});
} else {
if (page.redirect) {
metadata[metadata.length] = '重定向';
Expand All @@ -201,11 +199,9 @@
} else {
metadata[metadata.length] = `${mw.language.convertNumber(page.revisions[0].size)}字节`;
}
editProt = page.protection
.filter((protection) => {
return protection.type === 'edit' && protection.level === 'sysop';
})
.pop();
editProt = page.protection.findLast((protection) => {
return protection.type === 'edit' && protection.level === 'sysop';
});
}
if (editProt) {
metadata[metadata.length] = `${missing ? '白纸' : ''}全保护${
Expand Down
24 changes: 9 additions & 15 deletions src/morebits/morebits.js
Original file line number Diff line number Diff line change
Expand Up @@ -3690,11 +3690,9 @@ import {generateArray} from 'ext.gadget.Util';
// extract protection info, to alert admins when they are about to edit a protected page
// Includes cascading protection
if (Morebits.userIsSysop) {
const editProt = page.protection
.filter((pr) => {
return pr.type === 'edit' && pr.level === 'sysop';
})
.pop();
const editProt = page.protection.findLast((pr) => {
return pr.type === 'edit' && pr.level === 'sysop';
});
if (editProt) {
ctx.fullyProtected = editProt.expiry;
} else {
Expand Down Expand Up @@ -4089,17 +4087,13 @@ import {generateArray} from 'ext.gadget.Util';
// extract protection info
let editprot;
if (action === 'undelete') {
editprot = response.pages[0].protection
.filter((pr) => {
return pr.type === 'create' && pr.level === 'sysop';
})
.pop();
editprot = response.pages[0].protection.findLast((pr) => {
return pr.type === 'create' && pr.level === 'sysop';
});
} else if (action === 'delete' || action === 'move') {
editprot = response.pages[0].protection
.filter((pr) => {
return pr.type === 'edit' && pr.level === 'sysop';
})
.pop();
editprot = response.pages[0].protection.findLast((pr) => {
return pr.type === 'edit' && pr.level === 'sysop';
});
}
if (
editprot &&
Expand Down

0 comments on commit ffe17e6

Please sign in to comment.