Skip to content

Commit

Permalink
refactor(AdvancedSiteNotices): use existing variables
Browse files Browse the repository at this point in the history
  • Loading branch information
AnYiEE committed Nov 19, 2023
1 parent e0f1ec3 commit 19c524f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/AdvancedSiteNotices/modules/constant.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
const AJAX_PAGE_TITLE = 'Template:AdvancedSiteNotices/ajax';
const CLASS_NOTICES_AREA = 'gadget-advanced_site_notices__area';
const CLASS_NOTICES_DISMISS = 'gadget-advanced_site_notices__dismiss';
const CLASS_NOTICES_NOTICE = 'gadget-advanced_site_notices__notice';
const CLASS_NOTICES_NOTICE_AREA = 'gadget-advanced_site_notices__notice__area';
const CLASS_NOTICES_TITLE = 'gadget-advanced_site_notices__title';

const CLASS_NOTICES = 'gadget-advanced_site_notices';
const CLASS_NOTICES_AREA = `${CLASS_NOTICES}__area`;
const CLASS_NOTICES_DISMISS = `${CLASS_NOTICES}__dismiss`;
const CLASS_NOTICES_NOTICE = `${CLASS_NOTICES}__notice`;
const CLASS_NOTICES_NOTICE_AREA = `${CLASS_NOTICES_NOTICE}__area`;
const CLASS_NOTICES_TITLE = `${CLASS_NOTICES}__title`;

const STORAGE_KEY = 'ext.gadget.AdvancedSiteNotices_dismissASN';

const WG_ACTION: string = mw.config.get('wgAction');
Expand Down

0 comments on commit 19c524f

Please sign in to comment.