OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)

This commit is contained in:
wangruiguo
2026-09-03 18:49:20 +08:00
commit d647428529
3501 changed files with 1988906 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
leantime.authController = (function () {
var makeInputReadonly = function (container) {
if (typeof container === undefined) {
container = "body";
}
jQuery(container).find("input").not(".filterBar input").prop("readonly", true);
jQuery(container).find("input").not(".filterBar input").prop("disabled", true);
jQuery(container).find("select").not(".filterBar select, .mainSprintSelector").prop("readonly", true);
jQuery(container).find("select").not(".filterBar select, .mainSprintSelector").prop("disabled", true);
jQuery(container).find("textarea").not(".filterBar textarea").prop("disabled", true);
jQuery(container).find("a.delete").remove();
jQuery(container).find(".quickAddLink").hide();
// Make Tiptap editors readonly
if (jQuery(container).find(".tiptap-editor").length && window.leantime && window.leantime.tiptapController) {
jQuery(container).find(".tiptap-editor").each(function () {
var editor = leantime.tiptapController.registry.get(this);
if (editor) {
editor.setEditable(false);
}
});
}
// Hide Tiptap toolbar
jQuery(container).find(".tiptap-toolbar").hide();
jQuery(container).find(".ticketDropdown a").removeAttr("data-toggle");
jQuery("#mainToggler").hide();
jQuery(".commentBox").hide();
jQuery(".deleteComment, .replyButton").hide();
jQuery(container).find(".dropdown i").removeClass('fa-caret-down');
};
// Make public what you want to have public, everything else is private
return {
makeInputReadonly:makeInputReadonly,
};
})();