MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针

如果在编辑的过程中遇到了什么问题,可以去讨论板提问。

为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证

MCBBS Wiki GitHub群组已上线!

您可以在回声洞中发表吐槽!

服务器状态监控。点击进入

本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>

MediaWiki:Gadget-VectorThemeLoader.js:修订间差异

跳到导航 跳到搜索
无编辑摘要
(区分新旧版vector皮肤)
无编辑摘要
第82行: 第82行:


   // src/utils/utils.ts
   // src/utils/utils.ts
  var i = document.createElement("textarea");
  i.setAttribute("style", "pointer-events:none;opacity:0;position:fixed;");
   function clickOutside(el, callback) {
   function clickOutside(el, callback) {
     const cb = (ev) => {
     const cb = (ev) => {
第181行: 第179行:
     book: {
     book: {
       name: "仿MCBBS书页风格",
       name: "仿MCBBS书页风格",
      common: "MediaWiki:Vector-Legacy-Book.css",
       default: {
       default: {
         name: "夏季主题",
         name: "夏季主题",
第195行: 第192行:
     v4: {
     v4: {
       name: "仿MCBBS v4风格",
       name: "仿MCBBS v4风格",
      common: "MediaWiki:Vector-V4.css",
       default: { name: "默认风格", css: "MediaWiki:EEEEE.css" },
       default: { name: "默认风格", css: "MediaWiki:Vector-V4.css" },
       other: {}
       other: {}
     }
     }
第206行: 第202行:
     const styleMap = themeMap[style] || themeMap[defaultStyle];
     const styleMap = themeMap[style] || themeMap[defaultStyle];
     const currentCommonStyle = styleMap.common;
     const currentCommonStyle = styleMap.common;
     loadWikiStyle(currentCommonStyle, "salt-wiki-style-common");
     if (currentCommonStyle)
      loadWikiStyle(currentCommonStyle, "salt-wiki-style-common");
     const currentTheme = theme === "default" || !styleMap.other[theme] ? styleMap.default : styleMap.other[theme];
     const currentTheme = theme === "default" || !styleMap.other[theme] ? styleMap.default : styleMap.other[theme];
     loadWikiStyle(currentTheme.css, "salt-wiki-style-theme");
     loadWikiStyle(currentTheme.css, "salt-wiki-style-theme");
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,469

个编辑

我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。

导航菜单