Skip to content

Commit

Permalink
refactor(MarkBlocked): follow commit b3e3327
Browse files Browse the repository at this point in the history
  • Loading branch information
WaitSpringQW committed Jan 3, 2025
1 parent b3e3327 commit 92d229a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions dist/MarkBlocked/MarkBlocked.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions dist/MarkBlocked/MarkBlocked.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/MarkBlocked/modules/MarkBlocked.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
opacity: 0.4;
}

.userlinkLock {
.userlinkLocked {
text-decoration: line-through double;
font-style: italic;
opacity: 0.4;
Expand Down
10 changes: 5 additions & 5 deletions src/MarkBlocked/modules/markBlockedUser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {inHours, parseTS} from './util/parseTime';
import {loading, userlinkIndef, userlinkLock, userlinkPartial, userlinkTemp} from './MarkBlocked.module.less';
import {loading, userlinkIndef, userlinkLocked, userlinkPartial, userlinkTemp} from './MarkBlocked.module.less';
import {api} from './util/api';
import {generateUserLinks} from './util/generateUserLinks';
import {getMessage} from './i18n';
Expand Down Expand Up @@ -133,7 +133,7 @@ const markBlockedUser = ($content: JQuery): void => {
return;
}

const className = userlinkLock as string;
const className = userlinkLocked as string;

for (const $link of $links) {
// The following classes are used here:
Expand Down Expand Up @@ -167,11 +167,11 @@ const markBlockedUser = ($content: JQuery): void => {
formatversion: '2',
list: ['blocks', 'globalblocks'],
bkusers,
bgtargets: bkusers,
bklimit: 100,
bglimit: 100,
bkprop: ['by', 'expiry', 'reason', 'restrictions', 'timestamp', 'user'],
bgprop: ['by', 'expiry', 'reason', 'timestamp'],
bglimit: 100,
bgtargets: bkusers,
bgprop: ['by', 'expiry', 'reason', 'timestamp', 'target'],
smaxage: 600,
maxage: 600,
};
Expand Down

0 comments on commit 92d229a

Please sign in to comment.