PageSourceSearch

https://mistarg.cn/assets/admin/appearance-themes.933bf722f2bc46332ea5.min.js

js mistarg.cn collected 2026-10-06 13:18:06 UTC 3,419 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[22067,28440,43602],{77882(y,f,a){var s,h;s=[a(65303),a(17459),a(29930)],h=(function(i,b,l){const g={};g.init=function(){$("#installed_themes").on("click",function(o){const m=$(o.target),c=m.attr("data-action");if(c&&c==="use"){const u=m.parents("[data-theme]"),e=u.attr("data-type"),t=u.attr("data-css"),n=u.attr("data-theme");if(config["theme:id"]===n)return;socket.emit("admin.themes.set",{type:e,id:n,src:t},function(r){if(r)return l.error(r);config["theme:id"]=n,d(n),l.alert({alert_id:"admin:theme",type:"info",title:"[[admin/appearance/themes:theme-changed]]",message:"[[admin/appearance/themes:restart-to-activate]]",timeout:5e3,clickfn:function(){a.e(32050).then(function(){var E=[a(27270)];(function(P){P.rebuildAndRestart()}).apply(null,E)}).catch(a.oe)}})})}}),$("#revert_theme").on("click",function(){config["theme:id"]!=="nodebb-theme-harmony"&&i.confirm("[[admin/appearance/themes:revert-confirm]]",function(o){o&&socket.emit("admin.themes.set",{type:"local",id:"nodebb-theme-harmony"},function(m){if(m)return l.error(m);config["theme:id"]="nodebb-theme-harmony",d("nodebb-theme-harmony"),l.alert({alert_id:"admin:theme",type:"success",title:"[[admin/appearance/themes:theme-changed]]",message:"[[admin/appearance/themes:revert-success]]",timeout:3500})})})}),d(config["theme:id"])};function d(o){$("[data-theme]").removeClass("selected").find('[data-action="use"]').translateText("[[admin/appearance/themes:select-theme]]").removeClass("btn-success").addClass("btn-primary"),$('[data-theme="'+o+'"]').addClass("selected").find('[data-action="use"]').translateText("[[admin/appearance/themes:current-theme]]").removeClass("btn-primary").addClass("btn-success")}return g}).apply(f,s),h!==void 0&&(y.exports=h)},65303(y,f,a){a.r(f),a.d(f,{alert:()=>g,confirm:()=>d,dialog:()=>l,prompt:()=>o,promptPassword:()=>m});var s=a(33530),h=a.n(s),i=a(17459),b=a.n(i);s.setDefaults({locale:config.userLang}),i.translateKeys(["modules:bootbox.ok","modules:bootbox.cancel","modules:bootbox.confirm"]).then(e=>{s.addLocale(config.userLang,{OK:e[0],CANCEL:e[1],CONFIRM:e[2]}),s.setLocale(config.userLang)});async function l(e){const[t,n,r]=await Promise.all([i.translate(e.title||""),c(e)||"",u(e.buttons)]);return s.dialog({...e,title:t,message:n,buttons:r})}async function g(e,t){const[n,r]=await Promise.all([e&&e.title?i.translate(e.title):null,c(e)]);return t=typeof t=="function"?t:e.callback,s.alert({...e,title:n,message:r,callback:t})}async function d(e,t){const[n,r]=await Promise.all([e&&e.title?i.translate(e.title):null,c(e)]);return t=typeof t=="function"?t:e.callback,s.confirm({...e,title:n,message:r,callback:t})}async function o(e,t){const[n,r]=await Promise.all([i.translate(typeof e=="string"?e:e.title),e&&e.message?c(e):null]);return t=typeof t=="function"?t:e.callback,s.prompt({...e,title:n,message:r,callback:t})}async function m(e){return typeof e=="string"&&(e={title:e}),e=e||{title:"[[user:current-password]]",message:"[[user:emailUpdate.password-challenge]]"},await new Promise(t=>{o({...e,inputType:"password",required:!0,value:"",callback:t})})}function c(e){const t=e&&e.message?e.message:e;return t instanceof jQuery?t:i.translate(t||"")}async function u(e){if(!Object.keys(e||{}).length)return;const t=Object.values(e);return await Promise.all(t.map(async n=>({...n,label:await i.translateKey(n.label)})))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.