User:Chlod/Scripts/Deputy.js: Difference between revisions

Content deleted Content added
(bot/CD)
(bot/CD)
Line 3,579:
 
var version = "0.4.2";
var gitAbbrevHash = "7bbf81e7a3ac05";
var gitBranch = "main";
var gitDate = "SatSun, 1725 Jun 2023 1121:5827:3032 +0800";
var gitVersion = "0.4.2+g7bbf81eg7a3ac05";
 
/**
Line 15,972:
 
var deputyAnnouncementsEnglish = {
"deputy.announcement.ues-06-2023template.title": "DeputyAnnouncement user experience surveytitle",
"deputy.announcement.ues-06-2023template.message": "HelpAnnouncement improve Deputy by taking a short survey about your usage of the tool and your experience as a copyright cleanup editor.message",
"deputy.announcement.ues-06-2023template.surveyactionButton.label": "TakeButton the surveylabel",
"deputy.announcement.ues-06-2023template.surveyactionButton.title": "TakeButton the survey (opens the survey on LimeSurvey)title",
"deputy.announcement.ues-06-2023.learn.label": "Learn more",
"deputy.announcement.ues-06-2023.learn.title": "Learn more about the survey (opens the Wikimedia Meta-Wiki page for this survey)"
};
 
Line 16,002 ⟶ 16,000:
for (const [id, announcements] of Object.entries(this.knownAnnouncements)) {
if (config.core.seenAnnouncements.get().includes(id)) {
} continue;
}
if (announcements.expiry && (announcements.expiry < new Date())) {
// Announcement has expired. Skip it.
continue;
}
Line 16,053 ⟶ 16,055:
}
DeputyAnnouncements.knownAnnouncements = {
// No active 'ues-06-2023': {announcements
// actions'announcementId': [{
// actions: {[
// } {
id: 'survey',
// id: 'actionButton',
// flags: [ 'primary', 'progressive' ],
action: () => {
// action: () => { /* do something */ }
open('https://hourglass.limesurvey.net/188262', '_blank');
// }
// }, ]
// {}
id: 'learn',
flags: ['primary'],
action: () => {
open('https://meta.wikimedia.org/wiki/Deputy/Research/Surveys/06-2023', '_blank');
}
}
]
}
};