PageSourceSearch

https://genau.qwertqwefsday.eu/assets/theme-editor.4c41d88d.js

js qwertqwefsday.eu collected 2026-10-02 07:03:27 UTC 6,107 bytes, 1 lines download raw bytes

1import{aZ as F,f as l,aP as W,L as Z,r as q,a_ as G,as as y,a$ as T,b0 as M,a6 as V,ai as J,$ as K,b1 as Q,k as X,C as $,j as Y,_ as ee}from"./app.0a7dc9c6.js";import{F as z}from"./textarea.74f473ca.js";import{F as p}from"./folder.2201e250.js";import{a as oe}from"./theme-store.00019aa6.js";import{v as ae}from"./v4.12a0d710.js";import{b as te,a as C,w as re,c as le,f as u,g as se,h as a,B as i,k as t,H as d,y as f,u as n,j as v,A as h,l as g,p as w,F as b,z as B,D as ie,E as ne}from"./vue.ad847db7.js";const ce=k=>(ie("data-v-fe6839a6"),k=k(),ne(),k),de={class:"cwepdizn _formRoot"},fe={class:"cwepdizn-colors"},ue={class:"row"},ve=["onClick"],pe={class:"row"},ke=["onClick"],_e={class:"cwepdizn-colors"},me={class:"row"},he=["onClick"],ge={class:"cwepdizn-colors"},we={class:"row"},be=["onClick"],Pe=ce(()=>t("i",{class:"fas fa-code"},null,-1)),ye={class:"_formRoot"},Ce={class:"_formRoot"},Be=te({__name:"theme-editor",setup(k){const x=[{color:"#f5f5f5",kind:"light",forPreview:"#f5f5f5"},{color:"#f0eee9",kind:"light",forPreview:"#f3e2b9"},{color:"#e9eff0",kind:"light",forPreview:"#bfe3e8"},{color:"#f0e9ee",kind:"light",forPreview:"#f1d1e8"},{color:"#dce2e0",kind:"light",forPreview:"#a4dccc"},{color:"#e2e0dc",kind:"light",forPreview:"#d8c7a5"},{color:"#d5dbe0",kind:"light",forPreview:"#b0cae0"},{color:"#dad5d5",kind:"light",forPreview:"#d6afaf"},{color:"#2b2b2b",kind:"dark",forPreview:"#444444"},{color:"#362e29",kind:"dark",forPreview:"#735c4d"},{color:"#303629",kind:"dark",forPreview:"#506d2f"},{color:"#293436",kind:"dark",forPreview:"#258192"},{color:"#2e2936",kind:"dark",forPreview:"#504069"},{color:"#252722",kind:"dark",forPreview:"#3c462f"},{color:"#212525",kind:"dark",forPreview:"#303e3e"},{color:"#191919",kind:"dark",forPreview:"#272727"}],A=["#e36749","#f29924","#98c934","#34c9a9","#34a1c9","#606df7","#8d34c9","#e84d83"],D=[{color:"none",forLight:"#5f5f5f",forDark:"#dadada",forPreview:null},{color:"red",forLight:"#7f6666",forDark:"#e4d1d1",forPreview:"#ca4343"},{color:"yellow",forLight:"#736955",forDark:"#e0d5c0",forPreview:"#d49923"},{color:"green",forLight:"#586d5b",forDark:"#d1e4d4",forPreview:"#4cbd5c"},{color:"cyan",forLight:"#5d7475",forDark:"#d1e3e4",forPreview:"#2abdc3"},{color:"blue",forLight:"#676880",forDark:"#d1d2e4",forPreview:"#7275d8"},{color:"pink",forLight:"#84667d",forDark:"#e4d1e0",forPreview:"#b12390"}];let o=C({base:"light",props:F.props}),_=C(null),m=C(null);function E(){q("/preview")}function S(r){if(o.value.base!==r.kind){const s=r.kind==="dark"?G:F;for(const c of Object.keys(s.props))c!=="accent"&&c!=="fg"&&(o.value.props[c]=s.props[c])}if(o.value.base=r.kind,o.value.props.bg=r.color,o.value.props.fg){const s=D.find(c=>[y(c.forLight).toRgbString(),y(c.forDark).toRgbString()].includes(y(o.value.props.fg).toRgbString()));s&&L(s)}}function R(r){o.value.props.accent=r}function L(r){o.value.props.fg=o.value.base==="light"?r.forLight:r.forDark}function I(){m.value=T.stringify(o.value,null,"	"),M(o.value,!1)}function j(){let r;try{r=T.parse(m.value)}
1catch(s){V({type:"error",text:l.ts._theme.invalid});return}o.value=r}async function H(){const{canceled:r,result:s}=await J({title:l.ts.name,allowEmpty:!1});r||(o.value.id=ae(),o.value.name=s,o.value.author=`@${K.username}@${Q(Y)}`,_.value&&(o.value.desc=_.value),oe(o.value),M(o.value),X.state.darkMode?$.set("darkTheme",o.value):$.set("lightTheme",o.value),V({type:"success",text:l.t("_theme.installed",{name:o.value.name})}))}re(o,I,{deep:!0});const N=le(()=>[{asFullButton:!0,icon:"fas fa-eye",text:l.ts.preview,handler:E},{asFullButton:!0,icon:"fas fa-check",text:l.ts.saveAs,handler:H}]);return W({title:l.ts.themeEditor,icon:"fas fa-palette"}),(r,s)=>{const c=B("MkPageHeader"),U=B("MkSpacer"),O=B("MkStickyContainer");return u(),se(O,null,{header:a(()=>[i(c,{actions:N.value},null,8,["actions"])]),default:a(()=>[i(U,{"content-max":800,"margin-min":16,"margin-max":32},{default:a(()=>[t("div",de,[i(p,{"default-open":!0,class:"_formBlock"},{label:a(()=>[d(f(n(l).ts.backgroundColor),1)]),default:a(()=>[t("div",fe,[t("div",ue,[(u(!0),v(b,null,h(n(x).filter(e=>e.kind==="light"),e=>(u(),v("button",{key:e.color,class:g(["color _button",{active:o.value.props.bg===e.color}]),onClick:P=>S(e)},[t("div",{class:"preview",style:w({background:e.forPreview})},null,4)],10,ve))),128))]),t("div",pe,[(u(!0),v(b,null,h(n(x).filter(e=>e.kind==="dark"),e=>(u(),v("button",{key:e.color,class:g(["color _button",{active:o.value.props.bg===e.color}]),onClick:P=>S(e)},[t("div",{class:"preview",style:w({background:e.forPreview})},null,4)],10,ke))),128))])])]),_:1}),i(p,{"default-open":!0,class:"_formBlock"},{label:a(()=>[d(f(n(l).ts.accentColor),1)]),default:a(()=>[t("div",_e,[t("div",me,[(u(),v(b,null,h(A,e=>
1t("button",{key:e,class:g(["color rounded _button",{active:o.value.props.accent===e}]),onClick:P=>R(e)},[t("div",{class:"preview",style:w({background:e})},null,4)],10,he)),64))])])]),_:1}),i(p,{"default-open":!0,class:"_formBlock"},{label:a(()=>[d(f(n(l).ts.textColor),1)]),default:a(()=>[t("div",ge,[t("div",we,[(u(),v(b,null,h(D,e=>t("button",{key:e,class:g(["color char _button",{active:o.value.props.fg===e.forLight||o.value.props.fg===e.forDark}]),onClick:P=>L(e)},[t("div",{class:"preview",style:w({color:e.forPreview?e.forPreview:o.value.base==="light"?"#5f5f5f":"#dadada"})},"A",4)],10,be)),64))])])]),_:1}),i(p,{"default-open":!1,class:"_formBlock"},{icon:a(()=>[Pe]),label:a(()=>[d(f(n(l).ts.editCode),1)]),default:a(()=>[t("div",ye,[i(z,{modelValue:m.value,"onUpdate:modelValue":s[0]||(s[0]=e=>m.value=e),tall:"",class:"_formBlock"},{label:a(()=>[d(f(n(l).ts._theme.code),1)]),_:1},8,["modelValue"]),i(Z,{primary:"",class:"_formBlock",onClick:j},{default:a(()=>[d(f(n(l).ts.apply),1)]),_:1})])]),_:1}),i(p,{"default-open":!1,class:"_formBlock"},{label:a(()=>[d(f(n(l).ts.addDescription),1)]),default:a(()=>[t("div",Ce,[i(z,{modelValue:_.value,"onUpdate:modelValue":s[1]||(s[1]=e=>_.value=e)},{label:a(()=>[d(f(n(l).ts._theme.description),1)]),_:1},8,["modelValue"])])]),_:1})])]),_:1})]),_:1})}}});const Me=ee(Be,[["__scopeId","data-v-fe6839a6"]]);export{Me as default};

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.