Add built-in screens (login, profile, menu, posts), per-user and site themes

This commit is contained in:
Matthijs Iriks committed 2026-12-04 03:58:19 +01:00
1 parent 4bf0a8bbb0
commit 351667abaf
46 files changed
+3720 -12

No files matched your search

+1
View File
@@ -0,0 +1 @@
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:var(--m-font,ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-500:oklch(63.7% .237 25.331);--color-emerald-500:oklch(69.6% .17 162.48);--color-black:#000;--spacing:.25rem;--container-sm:24rem;--container-xl:36rem;--container-3xl:48rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--m-font,ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-Line truncated
+2
View File
@@ -0,0 +1,2 @@
function pn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const G={},xt=[],We=()=>{},Sr=()=>!1,$s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Os=e=>e.startsWith("onUpdate:"),le=Object.assign,hn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Vi=Object.prototype.hasOwnProperty,U=(e,t)=>Vi.call(e,t),R=Array.isArray,at=e=>It(e)==="[object Map]",Ot=e=>It(e)==="[object Set]",Ln=e=>It(e)==="[object Date]",j=e=>typeof e=="function",te=e=>typeof e=="string",Ne=e=>typeof e=="symbol",q=e=>e!==null&&typeof e=="object",Cr=e=>(q(e)||j(e))&&j(e.then)&&j(e.catch),Tr=Object.prototype.toString,It=e=>Tr.call(e),Ui=e=>It(e).slice(8,-1),Er=e=>It(e)==="[object Object]",gn=e=>te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vt=pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hi=1e4,As=e=>{let t=Object.create(null),s=0;return(n=>{const r=t[n];return r!==void 0?r:(++s>Hi&&(t=Object.create(null),s=1),t[n]=e(n))})},Ki=/-\w/g,ye=As(e=>e.replace(Ki,t=>t.slice(1).toUpperCase())),Bi=/\B([A-Z])/g,St=As(e=>e.replace(Bi,"-$1").toLowerCase()),Ps=As(e=>e.charAt(0).toUpperCase()+e.slice(1)),Us=As(e=>e?`on${Ps(e)}`:""),Ke=(e,t)=>!Object.is(e,t),hs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},$r=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},mn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Vn;const Ms=()=>Vn||(Vn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function es(e){if(R(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=te(n)?Gi(n):es(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(te(e)||q(e))return e}const Wi=/;(?![^(]*\))/g,qi=/:([^]+)/,zi=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Gi(e){const t={};return e.replace(zi,s=>s.startsWith("/*")?"":s).split(Wi).forEach(s=>{if(s){const n=s.split(qi);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ft(e){let t="";if(te(e))t=e;else if(R(e))for(let s=0;s<e.length;s++){const n=ft(e[s]);n&&(t+=n+" ")}else if(q(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function Ji(e){if(!e)return null;let{class:t,style:s}=e;return t&&!te(t)&&(e.class=ft(t)),s&&(e.style=es(s)),e}const Yi="itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",Xi=pn(Yi);function Or(e){return!!e||e===""}function Zi(e,t,s){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=dt(e[r],t[r],s);return n}function Un(e,t,s){if(e.size!==t.size)return!1;const n=Array.from(t),r=new Uint8Array(n.length);for(const i of e){let o=-1;for(let l=0;l<n.length;l++)if(!r[l]&&dt(i,n[l],s)){o=l;break}if(o<0)return!1;r[o]=1}return!0}function Qi(e,t,s){let n=at(e),r=at(t);if(n||r||(n=Ot(e),r=Ot(t),n||r))return n&&r?Un(e,t,s):!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const l in e){const c=U(e,l),d=U(t,l);if(c&&!d||!c&&d||!dt(e[l],t[l],s))return!1}return Kn(e)===Kn(t)}function Hn(e,t,s,n){s||(s=[new Map,new Map]);const[r,i]=s;if(r.has(e)||i.has(t))return r.get(e)===t&&i.get(t)===e;r.set(e,t),i.set(t,e);const o=n(e,t,s);return r.delete(e),i.delete(t),o}function dt(e,t,s){if(e===t)return!0;let n=Ln(e),r=Ln(t);return n||r?n&&r?e.getTime()===t.getTime():!1:(n=Ne(e),r=Ne(t),n||r?e===t:(n=R(e),r=R(t),n||r?n&&r?Hn(e,t,s,Zi):!1:(n=q(e),r=q(t),n||r?!n||!r?!1:Hn(e,t,s,Qi):String(e)===String(t))))}function Ar(e,t){return e.findIndex(s=>dt(s,t))}function Kn(e){return Object.getPrototypeOf(e)===null&&e[Symbol.toPrimitive]==null&&typeof e.toString!="function"&&typeof e.valueOf!="function"?It(e):String(e)}const Pr=e=>!!(e&&e.__v_isRef===!0),E=e=>te(e)?e:e==null?"":R(e)||q(e)&&(e.toString===Tr||!j(e.toString))?Pr(e)?E(e.value):JSON.stringify(e,Mr,2):String(e),Mr=(e,t)=>Pr(t)?Mr(e,t.value):at(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[Hs(n,i)+" =>"]=r,s),{})}:Ot(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Hs(s))}:Ne(t)?Hs(t):q(t)&&!R(t)&&!Er(t)?String(t):t,Hs=(e,t="")=>{var s;return Ne(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let oe;class Ir{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&oe&&(oe.active?(this.parent=oe,this.index=(oe.scopes||(oe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const r=this.scopes.slice();for(t=0,s=r.length;t<s;t++)r[t].resume()}const n=this.effects.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}}run(t){iLine truncated
`))),e[Be]=Mt(r);const i=n||r.props&&r.props.type==="number";ct(e,t?"change":"input",o=>{o.target.composing||e[Be](Qs(e.value,s,i))}),(s||i)&&ct(e,"change",()=>{e.value=Qs(e.value,s,i)}),t||(ct(e,"compositionstart",ac),ct(e,"compositionend",_r),ct(e,"change",_r))},mounted(e,{value:t,modifiers:{trim:s,number:n}}){const r=t??"",i=e[ds];delete e[ds],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Be](Qs(e.value,s,n)):e.value=r},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:i}},o){if(e[Be]=Mt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?mn(e.value):e.value,c=t??"";if(l===c)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===c)||(e.value=c)}},dn={deep:!0,created(e,t,s){e[Be]=Mt(s),ct(e,"change",()=>{const n=e._modelValue,r=ji(e),i=e.checked,o=e[Be];if(R(n)){const l=Ar(n,r),c=l!==-1;if(i&&!c)o(n.concat(r));else if(!i&&c){const d=[...n];d.splice(l,1),o(d)}}else if(Ot(n)){const l=new Set(n);i?l.add(r):l.delete(r),o(l)}else o(Di(e,i))})},mounted:br,beforeUpdate(e,t,s){e[Be]=Mt(s),br(e,t,s)}};function br(e,{value:t,oldValue:s},n){e._modelValue=t;let r;if(R(t))r=Ar(t,n.props.value)>-1;else if(Ot(t))r=t.has(n.props.value);else{if(t===s)return;r=dt(t,Di(e,!0))}e.checked!==r&&(e.checked=r)}const uc={created(e,{value:t},s){e.checked=dt(t,s.props.value),e[Be]=Mt(s),ct(e,"change",()=>{e[Be](ji(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[Be]=Mt(n),t!==s&&(e.checked=dt(t,n.props.value))}};function ji(e){return"_value"in e?e._value:e.value}function Di(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const fc=["ctrl","shift","alt","meta"],dc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>fc.some(s=>e[`${s}Key`]&&!t.includes(s))},An=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((r,...i)=>{for(let o=0;o<t.length;o++){const l=dc[t[o]];if(l&&l(r,t))return}return e(r,...i)}))},pc=le({patchProp:oc},Kl);let yr;function hc(){return yr||(yr=wl(pc))}const gc=((...e)=>{const t=hc().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=_c(n);if(!r)return;const i=t._component;!j(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,mc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function mc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _c(e){return te(e)?document.querySelector(e):e}class Ts extends Error{constructor(t,s){super(s?.message??`HTTP ${t}`),this.status=t,this.body=s}status;body;get errors(){return Object.fromEntries(Object.entries(this.body?.errors??{}).map(([t,s])=>[t,s[0]]))}}const k=JSON.parse(document.getElementById("manager-boot").textContent);function bc(){const e=document.cookie.match(/(?:^|; )XSRF-TOKEN=([^;]+)/);return e?decodeURIComponent(e[1]):""}async function ps(e,t,s){const n=await fetch(t,{method:e,credentials:"same-origin",headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-XSRF-TOKEN":bc(),...s===void 0?{}:{"Content-Type":"application/json"}},body:s===void 0?void 0:JSON.stringify(s)}),r=n.status===204?null:await n.json().catch(()=>null);if(!n.ok)throw new Ts(n.status,r);return r}const Qt={get:e=>ps("GET",e),post:(e,t={})=>ps("POST",e,t),put:(e,t={})=>ps("PUT",e,t),delete:e=>ps("DELETE",e)};function Pn(e){const t=ts({values:{...e},errors:{},busy:!1,async send(s,n){t.busy=!0,t.errors={};try{return await Qt[s](n,t.values)}catch(r){if(r instanceof Ts&&r.status===422)return t.errors=r.errors,null;throw r}finally{t.busy=!1}}});return t}const yc={Dashboard:"Dashboard","Log in":"Inloggen","Log out":"Uitloggen",Email:"E-mailadres",Password:"Wachtwoord","Keep me logged in":"Ingelogd blijven","Logging in…":"Bezig met inloggen…","Log in to manage the site.":"Log in om de site te beheren.","My account":"Mijn account",Name:"Naam","Email address":"E-mailadres","What you may do":"Wat je mag","Super admin: everything":"Super admin: alles","Not in a group yet":"Nog in geen groep","New password":"Nieuw wachtwoord","Leave empty to keep the password you have.":"Laat leeg om je wachtwoord te houden.","Current password":"Huidig wachtwoord","At least 12 characters.":"Minstens 12 tekens.","New password, once more":"Nieuw wachtwoord, nogmaals",Save:"Opslaan","Saving…":"Bezig met opslaan…","Saved.":"Opgeslagen.",Look:"Uiterlijk",Theme:"Thema",Posts:"Berichten","New post":"Nieuw bericht",Title:"Titel",Status:"Status",Category:"Categorie",Edit:"Bewerken",Delete:"Verwijderen","Put online":"Online zetten","Take offline":"Offline halen",Draft:"Concept",Sc Line truncated