mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-23 17:11:31 +08:00
Update On Thu May 16 20:28:34 CEST 2024
This commit is contained in:
+1
-1
@@ -6,4 +6,4 @@ e.i=function(n,t,o){"string"==typeof n&&(
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
n=[[null,n,""]]);var a={};if(o)for(var r=0;r<this.length;r++){
|
||||
// eslint-disable-next-line prefer-destructuring
|
||||
var i=this[r][0];null!=i&&(a[i]=!0)}for(var l=0;l<n.length;l++){var c=[].concat(n[l]);o&&a[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),e.push(c))}},e}},25:(n,e,t)=>{var o=t(956);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()},144:(n,e,t)=>{var o=t(404);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()},110:n=>{"use strict";n.exports=coreApis.lifeCycle},986:n=>{"use strict";n.exports=coreApis.settings}},o={};function a(n){var e=o[n];if(void 0!==e)return e.exports;var r=o[n]={id:n,exports:{}};return t[n](r,r.exports,a),r.exports}e=Object.getPrototypeOf?n=>Object.getPrototypeOf(n):n=>n.__proto__,a.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var r=Object.create(null);a.r(r);var i={};n=n||[null,e({}),e([]),e(e)];for(var l=2&o&&t;"object"==typeof l&&!~n.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((n=>i[n]=()=>t[n]));return i.default=()=>t,a.d(r,i),r},a.d=(n,e)=>{for(var t in e)a.o(e,t)&&!a.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},a.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),a.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.d(r,{component:()=>i});const n=coreApis.componentApis.define,e="#111",t=async()=>{document.body.classList.add("dark"),localStorage.setItem("pbp_theme_v4","b");const n=dq('meta[name="theme-color"]');n?(n.dataset.light=n.content,n.content=e):document.head.insertAdjacentHTML("beforeend",'<meta name="theme-color" content="#111">')},o=async()=>{document.body.classList.remove("dark");const n=dq('meta[name="theme-color"]');n&&(n.dataset.light?n.content=n.dataset.light:n.remove())},i=(0,n.defineComponentMetadata)({name:"darkMode",displayName:"夜间模式",entry:()=>{setTimeout(t,200)},reload:()=>{setTimeout(t,200)},unload:()=>{setTimeout(o,200)},description:"启用夜间模式能更好地适应光线暗的环境, 并会大量应用主题颜色.",tags:[componentsTags.style,componentsTags.general],instantStyles:[{name:"dark-mode",style:()=>Promise.resolve().then(a.t.bind(a,144,23)),important:!1},{name:"dark-mode-important",style:()=>Promise.resolve().then(a.t.bind(a,25,23)),important:!0}],plugin:{displayName:"夜间模式 - 提前注入",description:{"zh-CN":"提前注入夜间模式的 .dark class 以减少一些组件首屏仍然是白色的问题."},async setup(){const{contentLoaded:n}=await Promise.resolve().then(a.t.bind(a,110,23)),{isComponentEnabled:e}=await Promise.resolve().then(a.t.bind(a,986,23));n((()=>{e("darkMode")&&document.body.classList.add("dark")}))}},urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task","//live.bilibili.com/activity/live-activity-full/full-next/index.html"],commitHash:"66ede2a74ce88d6e7a57911497e39e10aa8eeb54",coreVersion:"2.8.11"})})(),r=r.component})()));
|
||||
var i=this[r][0];null!=i&&(a[i]=!0)}for(var l=0;l<n.length;l++){var c=[].concat(n[l]);o&&a[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),e.push(c))}},e}},25:(n,e,t)=>{var o=t(956);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()},144:(n,e,t)=>{var o=t(404);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()},110:n=>{"use strict";n.exports=coreApis.lifeCycle},986:n=>{"use strict";n.exports=coreApis.settings}},o={};function a(n){var e=o[n];if(void 0!==e)return e.exports;var r=o[n]={id:n,exports:{}};return t[n](r,r.exports,a),r.exports}e=Object.getPrototypeOf?n=>Object.getPrototypeOf(n):n=>n.__proto__,a.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var r=Object.create(null);a.r(r);var i={};n=n||[null,e({}),e([]),e(e)];for(var l=2&o&&t;"object"==typeof l&&!~n.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((n=>i[n]=()=>t[n]));return i.default=()=>t,a.d(r,i),r},a.d=(n,e)=>{for(var t in e)a.o(e,t)&&!a.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},a.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),a.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.d(r,{component:()=>i});const n=coreApis.componentApis.define,e="#111",t=async()=>{document.body.classList.add("dark"),localStorage.setItem("pbp_theme_v4","b");const n=dq('meta[name="theme-color"]');n?(n.dataset.light=n.content,n.content=e):document.head.insertAdjacentHTML("beforeend",'<meta name="theme-color" content="#111">')},o=async()=>{document.body.classList.remove("dark");const n=dq('meta[name="theme-color"]');n&&(n.dataset.light?n.content=n.dataset.light:n.remove())},i=(0,n.defineComponentMetadata)({name:"darkMode",displayName:"夜间模式",entry:()=>{setTimeout(t,200)},reload:()=>{setTimeout(t,200)},unload:()=>{setTimeout(o,200)},description:"启用夜间模式能更好地适应光线暗的环境, 并会大量应用主题颜色.",tags:[componentsTags.style,componentsTags.general],instantStyles:[{name:"dark-mode",style:()=>Promise.resolve().then(a.t.bind(a,144,23)),important:!1},{name:"dark-mode-important",style:()=>Promise.resolve().then(a.t.bind(a,25,23)),important:!0}],plugin:{displayName:"夜间模式 - 提前注入",description:{"zh-CN":"提前注入夜间模式的 .dark class 以减少一些组件首屏仍然是白色的问题."},async setup(){const{contentLoaded:n}=await Promise.resolve().then(a.t.bind(a,110,23)),{isComponentEnabled:e}=await Promise.resolve().then(a.t.bind(a,986,23));n((()=>{e("darkMode")&&document.body.classList.add("dark")}))}},urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task","//live.bilibili.com/activity/live-activity-full/full-next/index.html"],commitHash:"f539020624c731a30f1c5b3d77a0b0ed514dfce0",coreVersion:"2.8.12"})})(),r=r.component})()));
|
||||
Reference in New Issue
Block a user