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

Content deleted Content added
(bot/CD)
(bot/CD)
Line 365:
 
var version = "0.8.0";
var gitAbbrevHash = "b1dd0f4dae6ce6";
var gitBranch = "main";
var gitDate = "MonSat, 18 NovJan 20242025 1201:4511:2334 +0800";
var gitVersion = "0.8.0+gb1dd0f4gdae6ce6";
 
/**
Line 9,624:
catch (e) {
error('Cannot convert `diff` parameter to URL.', e);
OOwindow.uiCopiedTemplateEditor.alert(mwwindowManager.msgopenWindow('deputy.ante.copied.diffDeprecate.failedmessage'));, {
message: mw.msg('deputy.ante.copied.diffDeprecate.failed'),
actions: [OO.ui.MessageDialog.static.actions[0]]
});
}
});
Line 14,146 ⟶ 14,149:
}
}) :
OOwindow.uiCopiedTemplateEditor.alertwindowManager.openWindow('Theremessage', are no templates to merge.');{
message: 'There are no templates to merge.',
actions: [OO.ui.MessageDialog.static.actions[0]]
});
});
const resetButton = new OO.ui.ButtonWidget({
Line 14,314 ⟶ 14,320:
if (unwrapWidget(this.layout)
.querySelector('.oo-ui-flaggedElement-invalid') != null) {
return new OOwindow.uiCopiedTemplateEditor.Process(windowManager.openWindow() =>'message', {
OO.ui.alert(message: mw.msg('deputy.ante.invalid'));,
actions: [OO.ui.MessageDialog.static.actions[0]]
});
return process;
}
// Saves the page.