From 0b9b2c89c5e609bd40e2456bd034ee9073a5da95 Mon Sep 17 00:00:00 2001 From: Qubot <1445788683@qq.com> Date: Mon, 31 Mar 2025 14:56:54 +0000 Subject: [PATCH] change theme info --- README.md | 16 +++++++--------- settings.yaml | 4 ++-- templates/assets/dist/main.iife.js | 2 +- templates/assets/qrcode-share.html | 2 +- theme.yaml | 28 ++++++++++++---------------- 5 files changed, 23 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index ee76888..3431545 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,19 @@ -# Earth +# UncleQuark -Halo 2.0 的默认主题。 +Halo 2.0 的企业主题。 -![Earth](./screenshot.jpg) +![UncleQuark](./screenshot.jpg) ## 使用方式 1. 手动从以下地址下载主题包并在 Console 的主题管理界面安装,安装方式可参考: - - https://www.halo.run/store/apps/app-KgWqR - - https://github.com/halo-dev/theme-earth/releases + - https://github.com/BigQubot/theme-unclequark/releases -3. 如果安装了[应用市场](https://www.halo.run/store/apps/app-VYJbF)插件,可以直接在应用市场中搜索`Earth`并安装。 ## 插件支持 -Earth 主题支持以下 Halo 插件: +UncleQuark 主题支持以下 Halo 插件: - 友情链接(/links): - 图库(/photos): @@ -29,11 +27,11 @@ Earth 主题支持以下 Halo 插件: ## 开发 ```bash -git clone git@github.com:halo-dev/theme-earth.git ~/halo2-dev/themes/theme-earth +git clone git@github.com:BigQubot/theme-unclequark.git ~/halo2-dev/themes/theme-unclequark ``` ```bash -cd ~/halo2-dev/themes/theme-earth +cd ~/halo2-dev/themes/theme-unclequark ``` ```bash diff --git a/settings.yaml b/settings.yaml index 1ccc9f9..d684c45 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1,7 +1,7 @@ apiVersion: v1alpha1 kind: Setting metadata: - name: theme-earth-setting + name: theme-unclequark-setting spec: forms: - group: layout @@ -57,7 +57,7 @@ spec: id: header_background_image key: header_background_image label: 首页顶部背景图片 - value: /themes/theme-earth/assets/images/default-background-2023-10-12.jpeg + value: /themes/theme-unclequark/assets/images/default-background-2023-10-12.jpeg - $formkit: color if: "$get(header_widget).value === site_title" name: title_color diff --git a/templates/assets/dist/main.iife.js b/templates/assets/dist/main.iife.js index 977eb49..370594e 100644 --- a/templates/assets/dist/main.iife.js +++ b/templates/assets/dist/main.iife.js @@ -2,4 +2,4 @@ var main=function(P){"use strict";var Re=!1,He=!1,U=[],qe=-1;function or(e){sr(e ${n?'Expression: "'+n+`" -`:""}`,t),setTimeout(()=>{throw e},0)}var xe=!0;function Kt(e){let t=xe;xe=!1;let n=e();return xe=t,n}function J(e,t,n={}){let r;return L(e,t)(i=>r=i,n),r}function L(...e){return Ut(...e)}var Ut=Wt;function Sr(e){Ut=e}function Wt(e,t){let n={};Ve(n,e);let r=[n,...re(e)],i=typeof t=="function"?Cr(r,t):Ar(r,t,e);return wr.bind(null,e,t,i)}function Cr(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=t.apply(ce([r,...e]),i);be(n,o)}}var Ye={};function Er(e,t){if(Ye[e])return Ye[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return ue(s,t,e),Promise.resolve()}})();return Ye[e]=o,o}function Ar(e,t,n){let r=Er(t,n);return(i=()=>{},{scope:o={},params:s=[]}={})=>{r.result=void 0,r.finished=!1;let a=ce([o,...e]);if(typeof r=="function"){let l=r(r,a).catch(c=>ue(c,n,t));r.finished?(be(i,r.result,a,s,n),r.result=void 0):l.then(c=>{be(i,c,a,s,n)}).catch(c=>ue(c,n,t)).finally(()=>r.result=void 0)}}}function be(e,t,n,r,i){if(xe&&typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(s=>be(e,s,n,r)).catch(s=>ue(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var Xe="x-";function ie(e=""){return Xe+e}function Or(e){Xe=e}var we={};function O(e,t){return we[e]=t,{before(n){if(!we[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}const r=V.indexOf(n);V.splice(r>=0?r:V.indexOf("DEFAULT"),0,e)}}}function Tr(e){return Object.keys(we).includes(e)}function Ge(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=Jt(o);o=o.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let r={};return t.map(Qt((o,s)=>r[o]=s)).filter(en).map(kr(r,n)).sort(Mr).map(o=>$r(e,o))}function Jt(e){return Array.from(e).map(Qt()).filter(t=>!en(t))}var Qe=!1,fe=new Map,Vt=Symbol();function Lr(e){Qe=!0;let t=Symbol();Vt=t,fe.set(t,[]);let n=()=>{for(;fe.get(t).length;)fe.get(t).shift()();fe.delete(t)},r=()=>{Qe=!1,n()};e(n),r()}function Yt(e){let t=[],n=a=>t.push(a),[r,i]=dr(e);return t.push(i),[{Alpine:_e,effect:r,cleanup:n,evaluateLater:L.bind(L,e),evaluate:J.bind(J,e)},()=>t.forEach(a=>a())]}function $r(e,t){let n=()=>{},r=we[t.type]||n,[i,o]=Yt(e);Rt(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),Qe?fe.get(Vt).push(r):r())};return s.runCleanups=o,s}var Xt=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),Gt=e=>e;function Qt(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=Zt.reduce((o,s)=>s(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var Zt=[];function Ze(e){Zt.push(e)}function en({name:e}){return tn().test(e)}var tn=()=>new RegExp(`^${Xe}([^:^.]+)\\b`);function kr(e,t){return({name:n,value:r})=>{let i=n.match(tn()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:r,original:a}}}var et="DEFAULT",V=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",et,"teleport"];function Mr(e,t){let n=V.indexOf(e.type)===-1?et:e.type,r=V.indexOf(t.type)===-1?et:t.type;return V.indexOf(n)-V.indexOf(r)}function de(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function Y(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>Y(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)Y(r,t),r=r.nextElementSibling}function $(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var nn=!1;function Nr(){nn&&$("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),nn=!0,document.body||$("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's ` +