@hefou/lum 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License +21 -0
- package/components/Aside.vue +130 -0
- package/components/BoxCube.vue +89 -0
- package/components/Card.vue +111 -0
- package/components/CopyText.vue +214 -0
- package/components/Footer.vue +194 -0
- package/components/Links.vue +121 -0
- package/components/Notice.vue +85 -0
- package/components/Pill.vue +108 -0
- package/components/Underline.vue +22 -0
- package/components/common/Icon.vue +67 -0
- package/components/common/Image.vue +94 -0
- package/components/common/Link.vue +33 -0
- package/components/common/Svg.vue +28 -0
- package/components/common/index.ts +4 -0
- package/components/index.ts +9 -0
- package/composables/baiduAnalytics.ts +60 -0
- package/composables/googleAnalytics.ts +26 -0
- package/composables/index.ts +4 -0
- package/composables/umamiAnalytics.ts +49 -0
- package/composables/utils.ts +61 -0
- package/dist/cjs/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/dist/cjs/components/Aside.cjs +1 -0
- package/dist/cjs/components/Aside.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/BoxCube.cjs +1 -0
- package/dist/cjs/components/BoxCube.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Card.cjs +1 -0
- package/dist/cjs/components/Card.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/CopyText.cjs +1 -0
- package/dist/cjs/components/CopyText.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Footer.cjs +1 -0
- package/dist/cjs/components/Footer.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Links.cjs +1 -0
- package/dist/cjs/components/Links.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Notice.cjs +1 -0
- package/dist/cjs/components/Notice.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Pill.cjs +1 -0
- package/dist/cjs/components/Pill.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Underline.cjs +1 -0
- package/dist/cjs/components/Underline.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/Icon.cjs +1 -0
- package/dist/cjs/components/common/Icon.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/Image.cjs +1 -0
- package/dist/cjs/components/common/Image.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/Link.cjs +1 -0
- package/dist/cjs/components/common/Link.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/Svg.cjs +1 -0
- package/dist/cjs/composables/baiduAnalytics.cjs +1 -0
- package/dist/cjs/composables/googleAnalytics.cjs +1 -0
- package/dist/cjs/composables/umamiAnalytics.cjs +1 -0
- package/dist/cjs/composables/utils.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/lum.css +2 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_vue@5.0.5_vue@3.5.45_typescript@5.9.3_/node_modules/@iconify/vue/dist/iconify.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/iconify-icon@3.0.5/node_modules/iconify-icon/dist/iconify-icon.cjs +1 -0
- package/dist/esm/_virtual/_plugin-vue_export-helper.js +7 -0
- package/dist/esm/components/Aside.js +6 -0
- package/dist/esm/components/Aside.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/esm/components/BoxCube.js +6 -0
- package/dist/esm/components/BoxCube.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/esm/components/Card.js +6 -0
- package/dist/esm/components/Card.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/esm/components/CopyText.js +6 -0
- package/dist/esm/components/CopyText.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/esm/components/Footer.js +6 -0
- package/dist/esm/components/Footer.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/esm/components/Links.js +6 -0
- package/dist/esm/components/Links.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/esm/components/Notice.js +6 -0
- package/dist/esm/components/Notice.vue_vue_type_script_setup_true_lang.js +61 -0
- package/dist/esm/components/Pill.js +6 -0
- package/dist/esm/components/Pill.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/esm/components/Underline.js +6 -0
- package/dist/esm/components/Underline.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/esm/components/common/Icon.js +4 -0
- package/dist/esm/components/common/Icon.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/esm/components/common/Image.js +6 -0
- package/dist/esm/components/common/Image.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/esm/components/common/Link.js +4 -0
- package/dist/esm/components/common/Link.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/esm/components/common/Svg.js +19 -0
- package/dist/esm/composables/baiduAnalytics.js +23 -0
- package/dist/esm/composables/googleAnalytics.js +12 -0
- package/dist/esm/composables/umamiAnalytics.js +12 -0
- package/dist/esm/composables/utils.js +24 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/lum.css +2 -0
- package/dist/esm/node_modules/.pnpm/@iconify_vue@5.0.5_vue@3.5.45_typescript@5.9.3_/node_modules/@iconify/vue/dist/iconify.js +988 -0
- package/dist/esm/node_modules/.pnpm/iconify-icon@3.0.5/node_modules/iconify-icon/dist/iconify-icon.js +1209 -0
- package/dist/types/bump.config.d.ts +2 -0
- package/dist/types/changelogithub.config.d.ts +26 -0
- package/dist/types/components/Aside.vue.d.ts +7 -0
- package/dist/types/components/BoxCube.vue.d.ts +8 -0
- package/dist/types/components/Card.vue.d.ts +8 -0
- package/dist/types/components/CopyText.vue.d.ts +15 -0
- package/dist/types/components/Footer.vue.d.ts +7 -0
- package/dist/types/components/Links.vue.d.ts +8 -0
- package/dist/types/components/Notice.vue.d.ts +3 -0
- package/dist/types/components/Pill.vue.d.ts +13 -0
- package/dist/types/components/Underline.vue.d.ts +3 -0
- package/dist/types/components/common/Icon.vue.d.ts +9 -0
- package/dist/types/components/common/Image.vue.d.ts +8 -0
- package/dist/types/components/common/Link.vue.d.ts +23 -0
- package/dist/types/components/common/Svg.vue.d.ts +3 -0
- package/dist/types/components/common/index.d.ts +4 -0
- package/dist/types/components/index.d.ts +9 -0
- package/dist/types/composables/baiduAnalytics.d.ts +17 -0
- package/dist/types/composables/googleAnalytics.d.ts +12 -0
- package/dist/types/composables/index.d.ts +4 -0
- package/dist/types/composables/umamiAnalytics.d.ts +13 -0
- package/dist/types/composables/utils.d.ts +30 -0
- package/dist/types/types/index.d.ts +5 -0
- package/dist/types/types/types.d.ts +313 -0
- package/dist/types/vite.config.d.ts +2 -0
- package/package.json +131 -3
- package/readme.md +39 -0
- package/style/all.css +9 -0
- package/style/badge.css +21 -0
- package/style/button.css +48 -0
- package/style/colors.css +59 -0
- package/style/components-var.css +173 -0
- package/style/doc-blocks.css +136 -0
- package/style/doc.css +17 -0
- package/style/home.css +34 -0
- package/style/icon.css +11 -0
- package/style/picture.css +40 -0
- package/tsconfig.json +17 -0
- package/types/index.d.ts +3 -0
- package/types/index.ts +6 -0
- package/types/shims.d.ts +36 -0
- package/types/style.d.ts +10 -0
- package/types/types.ts +318 -0
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.freeze({left:0,top:0,width:16,height:16}),t=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),n=Object.freeze({...e,...t}),r=Object.freeze({...n,body:``,hidden:!1}),i=Object.freeze({width:null,height:null}),a=Object.freeze({...i,...t});function o(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}var s=/[\s,]+/;function c(e,t){t.split(s).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0}})}var l={...a,preserveAspectRatio:``};function u(e){let t={...l},n=(t,n)=>e.getAttribute(t)||n;return t.width=n(`width`,null),t.height=n(`height`,null),t.rotate=o(n(`rotate`,``)),c(t,n(`flip`,``)),t.preserveAspectRatio=n(`preserveAspectRatio`,n(`preserveaspectratio`,``)),t}function d(e,t){for(let n in l)if(e[n]!==t[n])return!0;return!1}var f=/^[a-z0-9]+(-[a-z0-9]+)*$/,p=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!m(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!m(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!m(e,n)?null:e}return null},m=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function h(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}function g(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function _(e,n){let i=g(e,n);for(let a in r)a in t?a in e&&!(a in i)&&(i[a]=t[a]):a in n?i[a]=n[a]:a in e&&(i[a]=e[a]);return i}function v(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=_(r[e]||i[e],a)}return o(t),n.forEach(o),_(e,a)}function y(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=h(e);for(let i in r){let a=r[i];a&&(t(i,v(e,i,a)),n.push(i))}return n}var b={provider:``,aliases:{},not_found:{},...e};function x(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function S(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!x(e,b))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!x(t,r))return null}let i=t.aliases||Object.create(null);for(let e in i){let t=i[e],a=t.parent;if(!e||typeof a!=`string`||!n[a]&&!i[a]||!x(t,r))return null}return t}var C=Object.create(null);function ee(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function w(e,t){let n=C[e]||(C[e]=Object.create(null));return n[t]||(n[t]=ee(e,t))}function T(e,t){return S(t)?y(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function te(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}function ne(e,t){let n=[];return(typeof e==`string`?[e]:Object.keys(C)).forEach(e=>{(typeof e==`string`&&typeof t==`string`?[t]:Object.keys(C[e]||{})).forEach(t=>{let r=w(e,t);n=n.concat(Object.keys(r.icons).map(n=>(e===``?``:`@`+e+`:`)+t+`:`+n))})}),n}var E=!1;function D(e){return typeof e==`boolean`&&(E=e),E}function O(e){let t=typeof e==`string`?p(e,!0,E):e;if(t){let e=w(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function re(e,t){let n=p(e,!0,E);if(!n)return!1;let r=w(n.provider,n.prefix);return t?te(r,n.name,t):(r.missing.add(n.name),!0)}function ie(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),E&&!t&&!e.prefix){let t=!1;return S(e)&&(e.prefix=``,y(e,(e,n)=>{re(e,n)&&(t=!0)})),t}let n=e.prefix;return m({prefix:n,name:`a`})?!!T(w(t,n),e):!1}function ae(e){return!!O(e)}function oe(e){let t=O(e);return t&&{...n,...t}}function k(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function se(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||k([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var ce=0;function le(e,t,n){let r=ce++,i=k.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function ue(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=w(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}var A=Object.create(null);function j(e,t){A[e]=t}function M(e){return A[e]||A[``]}function de(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?p(e,t,n):e;i&&r.push(i)}),r}function N(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||2e3,timeout:e.timeout||1e4,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}var P=Object.create(null);P[``]=N({resources:[`https://api.iconify.design`,`https://api2.iconify.design`]});function fe(e,t){let n=N(t);return n!==null&&(P[e]=n,!0)}function F(e){return P[e]}function pe(){return Object.keys(P)}var me={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function he(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`)u=r,v();else if(i)u=r,f.length||(o.length?x():v());else{if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function ge(e){let t={...me,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=he(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function _e(){}var I=Object.create(null);function ve(e){if(!I[e]){let t=F(e);if(!t)return;I[e]={config:t,redundancy:ge(t)}}return I[e]}function ye(e,t,n){let r,i;if(typeof e==`string`){let t=M(e);if(!t)return n(void 0,424),_e;i=t.send;let a=ve(e);a&&(r=a.redundancy)}else{let t=N(e);if(t){r=ge(t);let n=M(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),_e):r.query(t,i,n)().abort}function be(){}function xe(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,se(e)}))}function Se(e){let t=[],n=[];return e.forEach(e=>{(e.match(f)?t:n).push(e)}),{valid:t,invalid:n}}function L(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!T(e,n).length){r();return}}catch(e){console.error(e)}r(),xe(e)}function R(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function Ce(e,t){e.iconsToLoad=e.iconsToLoad?e.iconsToLoad.concat(t).sort():t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){R(e.loadIcons(r,n,t),t=>{L(e,r,t)});return}if(i){r.forEach(r=>{R(i(r,n,t),t=>{L(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=Se(r);if(o.length&&L(e,o,null),!a.length)return;let s=n.match(f)?M(t):null;s?s.prepare(t,n,a).forEach(n=>{ye(t,n,t=>{L(e,n.icons,t)})}):L(e,a,null)}))}var z=(e,t)=>{let n=ue(de(e,!0,D()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,be)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(w(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=w(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&Ce(e,t)}),t?le(t,n,i):be},we=e=>new Promise((t,r)=>{let i=typeof e==`string`?p(e,!0):e;i?z([i||e],a=>{if(a.length&&i){let e=O(i);if(e){t({...n,...e});return}}r(e)}):r(e)});function B(e){try{let t=typeof e==`string`?JSON.parse(e):e;if(typeof t.body==`string`)return{...t}}catch{}}function Te(e,t){if(typeof e==`object`)return{data:B(e),value:e};if(typeof e!=`string`)return{value:e};if(e.includes(`{`)){let t=B(e);if(t)return{data:t,value:e}}let n=p(e,!0,!0);if(!n)return{value:e};let r=O(n);return r!==void 0||!n.prefix?{value:e,name:n,data:r}:{value:e,name:n,loading:z([n],()=>t(e,n,O(n)))}}var V=!1;try{V=navigator.vendor.indexOf(`Apple`)===0}catch{}function Ee(e,t){switch(t){case`svg`:case`bg`:case`mask`:return t}return t!==`style`&&(V||e.indexOf(`<a`)===-1)?`svg`:e.indexOf(`currentColor`)===-1?`bg`:`mask`}var De=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Oe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function H(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(De);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=Oe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function ke(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Ae(e,t){return e?`<defs>`+e+`</defs>`+t:t}function je(e,t,n){let r=ke(e);return Ae(r.defs,t+r.content+n)}var Me=e=>e===`unset`||e===`undefined`||e===`none`;function U(e,t){let r={...n,...e},i={...a,...t},o={left:r.left,top:r.top,width:r.width,height:r.height},s=r.body;[r,i].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,i=e.rotate;n?r?i+=2:(t.push(`translate(`+(o.width+o.left).toString()+` `+(0-o.top).toString()+`)`),t.push(`scale(-1 1)`),o.top=o.left=0):r&&(t.push(`translate(`+(0-o.left).toString()+` `+(o.height+o.top).toString()+`)`),t.push(`scale(1 -1)`),o.top=o.left=0);let a;switch(i<0&&(i-=Math.floor(i/4)*4),i%=4,i){case 1:a=o.height/2+o.top,t.unshift(`rotate(90 `+a.toString()+` `+a.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(o.width/2+o.left).toString()+` `+(o.height/2+o.top).toString()+`)`);break;case 3:a=o.width/2+o.left,t.unshift(`rotate(-90 `+a.toString()+` `+a.toString()+`)`)}i%2==1&&(o.left!==o.top&&(a=o.left,o.left=o.top,o.top=a),o.width!==o.height&&(a=o.width,o.width=o.height,o.height=a)),t.length&&(s=je(s,`<g transform="`+t.join(` `)+`">`,`</g>`))});let c=i.width,l=i.height,u=o.width,d=o.height,f,p;c===null?(p=l===null?`1em`:l===`auto`?d:l,f=H(p,u/d)):(f=c===`auto`?u:c,p=l===null?H(f,d/u):l===`auto`?d:l);let m={},h=(e,t)=>{Me(t)||(m[e]=t.toString())};h(`width`,f),h(`height`,p);let g=[o.left,o.top,u,d];return m.viewBox=g.join(` `),{attributes:m,viewBox:g,body:s}}function W(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function Ne(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `).replace(/:/g,`%3A`).replace(/\//g,`%2F`)}function Pe(e){return`data:image/svg+xml,`+Ne(e)}function G(e){return`url("`+Pe(e)+`")`}var K=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function Fe(e){K=e}function Ie(){return K}function Le(e,t){let n=F(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function Re(e){return e===404}var ze=(e,t,n)=>{let r=[],i=Le(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function Be(e){if(typeof e==`string`){let t=F(e);if(t)return t.path}return`/`}var Ve={prepare:ze,send:(e,t,n)=>{if(!K){n(`abort`,424);return}let r=Be(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;K(e+r).then(e=>{let t=e.status;if(t!==200)setTimeout(()=>{n(Re(t)?`abort`:`next`,t)});else return i=501,e.json()}).then(e=>{setTimeout(typeof e!=`object`||!e?()=>{e===404?n(`abort`,e):n(`next`,i)}:()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function He(e,t,n){w(n||``,t).loadIcons=e}function Ue(e,t,n){w(n||``,t).loadIcon=e}var q=`data-style`,We=``,J={};function Y(e){return`:host{display:inline-block;vertical-align:`+(e?`-0.125em`:`0`)+`}span,svg{display:block;margin:auto}`+We}function Ge(e){return`adoptedStyleSheets`in e&&typeof CSSStyleSheet==`function`&&typeof CSSStyleSheet.prototype.replaceSync==`function`}function Ke(e){let t=e?`inline`:`block`,n=J[t];return n||(n=J[t]=new CSSStyleSheet,n.replaceSync(Y(e))),n}function qe(e){We=e,J.inline?.replaceSync(Y(!0)),J.block?.replaceSync(Y(!1))}function Je(e,t){if(Ge(e)){let n=Ke(t),r=e.adoptedStyleSheets;if(r.includes(n))return;e.adoptedStyleSheets=r.filter(e=>e!==J.inline&&e!==J.block).concat(n);return}let n=Array.from(e.childNodes).find(e=>e.hasAttribute&&e.hasAttribute(q));n||(n=document.createElement(`style`),n.setAttribute(q,q),e.appendChild(n)),n.textContent=Y(t)}function Ye(){j(``,Ve),D(!0);let e;try{e=window}catch{}if(e){if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!ie(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;fe(e,r)||console.error(n)}catch{console.error(n)}}}}return{iconLoaded:ae,getIcon:oe,listIcons:ne,addIcon:re,addCollection:ie,calculateSize:H,buildIcon:U,iconToHTML:W,svgToURL:G,loadIcons:z,loadIcon:we,addAPIProvider:fe,setCustomIconLoader:Ue,setCustomIconsLoader:He,appendCustomStyle:qe,_api:{getAPIConfig:F,setAPIModule:j,sendAPIQuery:ye,setFetch:Fe,getFetch:Ie,listAPIProviders:pe}}}var X={"background-color":`currentColor`},Xe={"background-color":`transparent`},Z={image:`var(--svg)`,repeat:`no-repeat`,size:`100% 100%`},Ze={"-webkit-mask":X,mask:X,background:Xe};for(let e in Ze){let t=Ze[e];for(let n in Z)t[e+`-`+n]=Z[n]}function Qe(e){return e?e+(e.match(/^[-0-9.]+$/)?`px`:``):`inherit`}function $e(e,t,n){let r=document.createElement(`span`),i=e.body;i.indexOf(`<a`)!==-1&&(i+=`<!-- `+Date.now()+` -->`);let a=e.attributes,o=G(W(i,{...a,width:t.width+``,height:t.height+``})),s=r.style,c={"--svg":o,width:Qe(a.width),height:Qe(a.height),...n?X:Xe};for(let e in c)s.setProperty(e,c[e]);return r}var Q;function et(){try{Q=window.trustedTypes.createPolicy(`iconify`,{createHTML:e=>e})}catch{Q=null}}function tt(e){return Q===void 0&&et(),Q?Q.createHTML(e):e}function nt(e){let t=document.createElement(`span`),n=e.attributes,r=``;return n.width||(r=`width: inherit;`),n.height||(r+=`height: inherit;`),r&&(n.style=r),t.innerHTML=tt(W(e.body,n)),t.firstChild}function $(e){return Array.from(e.childNodes).find(e=>{let t=e.tagName&&e.tagName.toUpperCase();return t===`SPAN`||t===`SVG`})}function rt(e,t){let r=t.icon.data,i=t.customisations,a=U(r,i);i.preserveAspectRatio&&(a.attributes.preserveAspectRatio=i.preserveAspectRatio);let o=t.renderedMode,s;switch(o){case`svg`:s=nt(a);break;default:s=$e(a,{...n,...r},o===`mask`)}let c=$(e);c?s.tagName===`SPAN`&&c.tagName===s.tagName?c.setAttribute(`style`,s.getAttribute(`style`)):e.replaceChild(s,c):e.appendChild(s)}function it(e,t,n){return{rendered:!1,inline:t,icon:e,lastRender:n&&(n.rendered?n:n.lastRender)}}function at(e=`iconify-icon`){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;let r=t.get(e);if(r)return r;let i=[`icon`,`mode`,`inline`,`noobserver`,`width`,`height`,`rotate`,`flip`],a=class extends n{_shadowRoot;_initialised=!1;_state;_checkQueued=!1;_connected=!1;_observer=null;_visible=!0;constructor(){super();let e=this._shadowRoot=this.attachShadow({mode:`open`}),t=this.hasAttribute(`inline`);Je(e,t),this._state=it({value:``},t),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(e){switch(e){case`inline`:{let e=this.hasAttribute(`inline`),t=this._state;e!==t.inline&&(t.inline=e,Je(this._shadowRoot,e));break}case`noobserver`:this.hasAttribute(`noobserver`)?this.startObserver():this.stopObserver();break;default:this._queueCheck()}}get icon(){let e=this.getAttribute(`icon`);if(e&&e.slice(0,1)===`{`)try{return JSON.parse(e)}catch{}return e}set icon(e){typeof e==`object`&&(e=JSON.stringify(e)),this.setAttribute(`icon`,e)}get inline(){return this.hasAttribute(`inline`)}set inline(e){e?this.setAttribute(`inline`,`true`):this.removeAttribute(`inline`)}get observer(){return this.hasAttribute(`observer`)}set observer(e){e?this.setAttribute(`observer`,`true`):this.removeAttribute(`observer`)}restartAnimation(){let e=this._state;if(e.rendered){let t=this._shadowRoot;if(e.renderedMode===`svg`)try{t.lastChild.setCurrentTime(0);return}catch{}rt(t,e)}}get status(){let e=this._state;return e.rendered?`rendered`:e.icon.data===null?`failed`:`loading`}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;let e=this._state,t=this.getAttribute(`icon`);if(t!==e.icon.value){this._iconChanged(t);return}if(!e.rendered||!this._visible)return;let n=this.getAttribute(`mode`),r=u(this);(e.attrMode!==n||d(e.customisations,r)||!$(this._shadowRoot))&&this._renderIcon(e.icon,r,n)}_iconChanged(e){let t=Te(e,(e,t,n)=>{let r=this._state;if(r.rendered||this.getAttribute(`icon`)!==e)return;let i={value:e,name:t,data:n};i.data?this._gotIconData(i):r.icon=i});t.data?this._gotIconData(t):this._state=it(t,this._state.inline,this._state)}_forceRender(){if(this._visible)this._queueCheck();else{let e=$(this._shadowRoot);e&&this._shadowRoot.removeChild(e)}}_gotIconData(e){this._checkQueued=!1,this._renderIcon(e,u(this),this.getAttribute(`mode`))}_renderIcon(e,t,n){let r=Ee(e.data.body,n),i=this._state.inline;rt(this._shadowRoot,this._state={rendered:!0,icon:e,inline:i,customisations:t,attrMode:n,renderedMode:r})}startObserver(){if(!this._observer&&!this.hasAttribute(`noobserver`))try{this._observer=new IntersectionObserver(e=>{let t=e.some(e=>e.isIntersecting);t!==this._visible&&(this._visible=t,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};i.forEach(e=>{e in a.prototype||Object.defineProperty(a.prototype,e,{get:function(){return this.getAttribute(e)},set:function(t){t===null?this.removeAttribute(e):this.setAttribute(e,t)}})});let o=Ye();for(let e in o)a[e]=a.prototype[e]=o[e];return t.define(e,a),a}var ot=at()||Ye(),{iconLoaded:st,getIcon:ct,listIcons:lt,addIcon:ut,addCollection:dt,calculateSize:ft,buildIcon:pt,iconToHTML:mt,svgToURL:ht,loadIcons:gt,loadIcon:_t,setCustomIconLoader:vt,setCustomIconsLoader:yt,addAPIProvider:bt,_api:xt}=ot;exports.IconifyIconComponent=ot,exports.appendCustomStyle=qe;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { getLocaleKey as e } from "../composables/utils.js";
|
|
2
|
+
import t from "./common/Icon.js";
|
|
3
|
+
import n from "./common/Image.js";
|
|
4
|
+
import r from "./common/Link.js";
|
|
5
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderList as p, unref as m, withCtx as h } from "vue";
|
|
6
|
+
// components/Aside.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = ["innerHTML"], b = ["innerHTML"], x = ["innerHTML"], S = /*@__PURE__*/ u({
|
|
8
|
+
__name: "Aside",
|
|
9
|
+
props: { Aside_Data: {} },
|
|
10
|
+
setup(u) {
|
|
11
|
+
let S = u, C = e();
|
|
12
|
+
function w(e, t) {
|
|
13
|
+
let n = e.i18n?.[t];
|
|
14
|
+
return n ? {
|
|
15
|
+
...e,
|
|
16
|
+
...n
|
|
17
|
+
} : e;
|
|
18
|
+
}
|
|
19
|
+
let T = a(() => {
|
|
20
|
+
let e = C.value;
|
|
21
|
+
return (Array.isArray(S.Aside_Data) ? S.Aside_Data : S.Aside_Data.i18n[e] ?? []).map((t) => w(t, e));
|
|
22
|
+
});
|
|
23
|
+
return (e, a) => (f(!0), c(i, null, p(T.value, (e, a) => (f(), o(m(r), {
|
|
24
|
+
key: "promo" in e ? e.promo + a : "name" in e ? e.name + a : a,
|
|
25
|
+
class: d(["link", {
|
|
26
|
+
"has-promo": "promo" in e,
|
|
27
|
+
"has-name": "name" in e
|
|
28
|
+
}]),
|
|
29
|
+
tag: e.link ? "a" : "div",
|
|
30
|
+
href: e.link,
|
|
31
|
+
rel: e.rel,
|
|
32
|
+
target: e.target,
|
|
33
|
+
"no-icon": ""
|
|
34
|
+
}, {
|
|
35
|
+
default: h(() => [e.icon ? (f(), o(m(t), {
|
|
36
|
+
key: 0,
|
|
37
|
+
icon: e.icon,
|
|
38
|
+
size: e.size || "32"
|
|
39
|
+
}, null, 8, ["icon", "size"])) : e.image ? (f(), o(m(n), {
|
|
40
|
+
key: 1,
|
|
41
|
+
class: "icon",
|
|
42
|
+
image: e.image,
|
|
43
|
+
size: e.size || "32"
|
|
44
|
+
}, null, 8, ["image", "size"])) : s("", !0), l("div", null, ["promo" in e ? (f(), c(i, { key: 0 }, [
|
|
45
|
+
l("span", {
|
|
46
|
+
class: "promo",
|
|
47
|
+
innerHTML: e.promo
|
|
48
|
+
}, null, 8, g),
|
|
49
|
+
e.info1 ? (f(), c("p", {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "info",
|
|
52
|
+
innerHTML: e.info1
|
|
53
|
+
}, null, 8, _)) : s("", !0),
|
|
54
|
+
e.info2 ? (f(), c("p", {
|
|
55
|
+
key: 1,
|
|
56
|
+
class: "info",
|
|
57
|
+
innerHTML: e.info2
|
|
58
|
+
}, null, 8, v)) : s("", !0)
|
|
59
|
+
], 64)) : (f(), c(i, { key: 1 }, [
|
|
60
|
+
e.hide1 ? (f(), c("p", {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: "hide",
|
|
63
|
+
innerHTML: e.hide1
|
|
64
|
+
}, null, 8, y)) : s("", !0),
|
|
65
|
+
l("span", {
|
|
66
|
+
class: "name",
|
|
67
|
+
innerHTML: e.name
|
|
68
|
+
}, null, 8, b),
|
|
69
|
+
e.hide2 ? (f(), c("p", {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: "hide",
|
|
72
|
+
innerHTML: e.hide2
|
|
73
|
+
}, null, 8, x)) : s("", !0)
|
|
74
|
+
], 64))])]),
|
|
75
|
+
_: 2
|
|
76
|
+
}, 1032, [
|
|
77
|
+
"class",
|
|
78
|
+
"tag",
|
|
79
|
+
"href",
|
|
80
|
+
"rel",
|
|
81
|
+
"target"
|
|
82
|
+
]))), 128));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export { S as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import e from "./common/Icon.js";
|
|
2
|
+
import t from "./common/Image.js";
|
|
3
|
+
import n from "./common/Link.js";
|
|
4
|
+
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeStyle as l, openBlock as u, renderList as d, unref as f, withCtx as p } from "vue";
|
|
5
|
+
// components/BoxCube.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var m = ["innerHTML"], h = /*@__PURE__*/ c({
|
|
7
|
+
__name: "BoxCube",
|
|
8
|
+
props: {
|
|
9
|
+
items: {},
|
|
10
|
+
grid: {}
|
|
11
|
+
},
|
|
12
|
+
setup(c) {
|
|
13
|
+
let h = c;
|
|
14
|
+
return (c, g) => (u(), o("div", {
|
|
15
|
+
class: "grid",
|
|
16
|
+
style: l(typeof h.grid == "number" ? { gridTemplateColumns: `repeat(${h.grid}, 1fr)` } : void 0)
|
|
17
|
+
}, [(u(!0), o(r, null, d(h.items, (r, o) => (u(), i(f(n), {
|
|
18
|
+
key: r.name + o,
|
|
19
|
+
class: "link",
|
|
20
|
+
href: r.link,
|
|
21
|
+
rel: r.rel,
|
|
22
|
+
target: r.target,
|
|
23
|
+
"no-icon": ""
|
|
24
|
+
}, {
|
|
25
|
+
default: p(() => [r.icon ? (u(), i(f(e), {
|
|
26
|
+
key: 0,
|
|
27
|
+
icon: r.icon,
|
|
28
|
+
size: r.size || "32"
|
|
29
|
+
}, null, 8, ["icon", "size"])) : r.image ? (u(), i(f(t), {
|
|
30
|
+
key: 1,
|
|
31
|
+
image: r.image,
|
|
32
|
+
size: r.size || "32"
|
|
33
|
+
}, null, 8, ["image", "size"])) : a("", !0), s("span", {
|
|
34
|
+
class: "name",
|
|
35
|
+
innerHTML: r.name
|
|
36
|
+
}, null, 8, m)]),
|
|
37
|
+
_: 2
|
|
38
|
+
}, 1032, [
|
|
39
|
+
"href",
|
|
40
|
+
"rel",
|
|
41
|
+
"target"
|
|
42
|
+
]))), 128))], 4));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export { h as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import e from "./common/Icon.js";
|
|
2
|
+
import t from "./common/Image.js";
|
|
3
|
+
import n from "./common/Link.js";
|
|
4
|
+
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeStyle as l, openBlock as u, renderList as d, unref as f, withCtx as p } from "vue";
|
|
5
|
+
// components/Card.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var m = { class: "row" }, h = ["innerHTML"], g = ["innerHTML"], _ = /*@__PURE__*/ c({
|
|
7
|
+
__name: "Card",
|
|
8
|
+
props: {
|
|
9
|
+
items: {},
|
|
10
|
+
grid: {}
|
|
11
|
+
},
|
|
12
|
+
setup(c) {
|
|
13
|
+
let _ = c;
|
|
14
|
+
return (c, v) => (u(), o("div", {
|
|
15
|
+
class: "grid",
|
|
16
|
+
style: l(typeof _.grid == "number" ? { gridTemplateColumns: `repeat(${_.grid}, 1fr)` } : void 0)
|
|
17
|
+
}, [(u(!0), o(r, null, d(_.items, (r, c) => (u(), i(f(n), {
|
|
18
|
+
key: r.name ? r.name + c : (r.desc ?? "") + c,
|
|
19
|
+
class: "link",
|
|
20
|
+
href: r.link,
|
|
21
|
+
rel: r.rel,
|
|
22
|
+
target: r.target,
|
|
23
|
+
"no-icon": ""
|
|
24
|
+
}, {
|
|
25
|
+
default: p(() => [s("span", m, [r.icon ? (u(), i(f(e), {
|
|
26
|
+
key: 0,
|
|
27
|
+
icon: r.icon,
|
|
28
|
+
size: r.size || "48"
|
|
29
|
+
}, null, 8, ["icon", "size"])) : r.image ? (u(), i(f(t), {
|
|
30
|
+
key: 1,
|
|
31
|
+
image: r.image,
|
|
32
|
+
size: r.size || "48"
|
|
33
|
+
}, null, 8, ["image", "size"])) : a("", !0), r.name ? (u(), o("span", {
|
|
34
|
+
key: 2,
|
|
35
|
+
class: "name",
|
|
36
|
+
innerHTML: r.name
|
|
37
|
+
}, null, 8, h)) : a("", !0)]), r.desc ? (u(), o("p", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "desc",
|
|
40
|
+
innerHTML: r.desc
|
|
41
|
+
}, null, 8, g)) : a("", !0)]),
|
|
42
|
+
_: 2
|
|
43
|
+
}, 1032, [
|
|
44
|
+
"href",
|
|
45
|
+
"rel",
|
|
46
|
+
"target"
|
|
47
|
+
]))), 128))], 4));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export { _ as default };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import e from "./common/Icon.js";
|
|
2
|
+
import t from "./common/Image.js";
|
|
3
|
+
import { Fragment as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, onUnmounted as f, openBlock as p, ref as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
4
|
+
// components/CopyText.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var v = ["title"], y = ["innerHTML"], b = /*@__PURE__*/ u({
|
|
6
|
+
__name: "CopyText",
|
|
7
|
+
props: {
|
|
8
|
+
type: {},
|
|
9
|
+
label: {},
|
|
10
|
+
text: {},
|
|
11
|
+
toolTip: {},
|
|
12
|
+
noIcon: { type: Boolean },
|
|
13
|
+
icon: {},
|
|
14
|
+
image: {},
|
|
15
|
+
toolTipPos: {},
|
|
16
|
+
bold: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
setup(u) {
|
|
19
|
+
let b = u, x = m(!1), S = null, C = i(() => b.toolTipPos ?? "top"), w = i(() => b.type ?? "auto"), T = async () => {
|
|
20
|
+
await navigator.clipboard.writeText(b.text), x.value = !0, S !== null && clearTimeout(S), S = setTimeout(() => x.value = !1, 1e3);
|
|
21
|
+
};
|
|
22
|
+
return f(() => {
|
|
23
|
+
S !== null && clearTimeout(S);
|
|
24
|
+
}), (i, u) => (p(), s("button", {
|
|
25
|
+
class: d([
|
|
26
|
+
"copy",
|
|
27
|
+
"ignore-header",
|
|
28
|
+
{ "no-icon": b.noIcon },
|
|
29
|
+
w.value
|
|
30
|
+
]),
|
|
31
|
+
type: "button",
|
|
32
|
+
"aria-label": "点击复制",
|
|
33
|
+
title: b.text,
|
|
34
|
+
onClick: T
|
|
35
|
+
}, [
|
|
36
|
+
l(r, { name: "fade" }, {
|
|
37
|
+
default: _(() => [x.value ? (p(), s("span", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: d(["tooltip", C.value])
|
|
40
|
+
}, h(b.toolTip || "已复制"), 3)) : o("", !0)]),
|
|
41
|
+
_: 1
|
|
42
|
+
}),
|
|
43
|
+
b.noIcon ? o("", !0) : (p(), s(n, { key: 0 }, [b.icon ? (p(), a(g(e), {
|
|
44
|
+
key: 0,
|
|
45
|
+
icon: b.icon,
|
|
46
|
+
size: "14"
|
|
47
|
+
}, null, 8, ["icon"])) : b.image ? (p(), a(g(t), {
|
|
48
|
+
key: 1,
|
|
49
|
+
image: b.image,
|
|
50
|
+
size: "14"
|
|
51
|
+
}, null, 8, ["image"])) : (p(), a(g(e), {
|
|
52
|
+
key: 2,
|
|
53
|
+
icon: "heroicons-outline:clipboard-copy",
|
|
54
|
+
size: "14"
|
|
55
|
+
}))], 64)),
|
|
56
|
+
c("span", {
|
|
57
|
+
class: d({ bold: b.bold }),
|
|
58
|
+
innerHTML: b.label || b.text
|
|
59
|
+
}, null, 10, y)
|
|
60
|
+
], 10, v));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export { b as default };
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { getLocaleKey as e, isExternal as t } from "../composables/utils.js";
|
|
2
|
+
import n from "./common/Icon.js";
|
|
3
|
+
import r from "./common/Image.js";
|
|
4
|
+
import i from "./common/Link.js";
|
|
5
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, onMounted as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
6
|
+
import { useData as x } from "vitepress";
|
|
7
|
+
// components/Footer.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var S = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "footer"
|
|
11
|
+
}, C = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "list-container"
|
|
14
|
+
}, w = { class: "list-title" }, T = { class: "list-links" }, E = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "footer-info"
|
|
17
|
+
}, D = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "footer-infotext"
|
|
20
|
+
}, O = {
|
|
21
|
+
key: 1,
|
|
22
|
+
class: "footer-infotext"
|
|
23
|
+
}, k = {
|
|
24
|
+
key: 1,
|
|
25
|
+
class: "footer-infotext"
|
|
26
|
+
}, A = /*@__PURE__*/ p({
|
|
27
|
+
__name: "Footer",
|
|
28
|
+
props: { Footer_Data: {} },
|
|
29
|
+
setup(p) {
|
|
30
|
+
let A = p, j = e(), M = o(() => {
|
|
31
|
+
let e = A.Footer_Data?.i18n?.[j.value];
|
|
32
|
+
return {
|
|
33
|
+
...A.Footer_Data,
|
|
34
|
+
...e,
|
|
35
|
+
author: e?.author ?? A.Footer_Data?.author ?? void 0,
|
|
36
|
+
beian: e?.beian ?? A.Footer_Data?.beian ?? void 0,
|
|
37
|
+
group: e?.group ?? A.Footer_Data?.group ?? [],
|
|
38
|
+
noIcon: e?.noIcon ?? A.Footer_Data?.noIcon ?? !1
|
|
39
|
+
};
|
|
40
|
+
}), N = o(() => M.value.author ?? null), P = o(() => M.value.beian ?? {}), F = o(() => P.value.icp), I = o(() => P.value.police), L = g("");
|
|
41
|
+
m(() => L.value = (/* @__PURE__ */ new Date()).getFullYear().toString());
|
|
42
|
+
let { frontmatter: R } = x(), z = o(() => !!(R.value.isHome ?? R.value.layout === "home"));
|
|
43
|
+
return (e, o) => z.value ? (h(), l("footer", S, [M.value.group?.length ? (h(), l("div", C, [(h(!0), l(a, null, _(M.value.group, (e, o) => (h(), l("section", { key: e.title + o }, [u("h3", w, [e.icon ? (h(), s(y(n), {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "icon-space",
|
|
46
|
+
icon: e.icon,
|
|
47
|
+
size: "12"
|
|
48
|
+
}, null, 8, ["icon"])) : e.image ? (h(), s(y(r), {
|
|
49
|
+
key: 1,
|
|
50
|
+
class: "image-inline",
|
|
51
|
+
image: e.image,
|
|
52
|
+
size: "12"
|
|
53
|
+
}, null, 8, ["image"])) : c("", !0), d(" " + v(e.title), 1)]), u("ul", T, [(h(!0), l(a, null, _(e.links, (a, o) => (h(), l("li", { key: a.name + o }, [a.icon ? (h(), s(y(n), {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "icon-space",
|
|
56
|
+
icon: a.icon,
|
|
57
|
+
size: "12"
|
|
58
|
+
}, null, 8, ["icon"])) : a.image ? (h(), s(y(r), {
|
|
59
|
+
key: 1,
|
|
60
|
+
class: "image-inline",
|
|
61
|
+
image: a.image,
|
|
62
|
+
size: "12"
|
|
63
|
+
}, null, 8, ["image"])) : c("", !0), f(y(i), {
|
|
64
|
+
href: a.link,
|
|
65
|
+
rel: a.rel,
|
|
66
|
+
target: a.target,
|
|
67
|
+
"no-icon": M.value.noIcon || e.noIcon || a.noIcon || !y(t)(a.link ?? "")
|
|
68
|
+
}, {
|
|
69
|
+
default: b(() => [d(v(a.name), 1)]),
|
|
70
|
+
_: 2
|
|
71
|
+
}, 1032, [
|
|
72
|
+
"href",
|
|
73
|
+
"rel",
|
|
74
|
+
"target",
|
|
75
|
+
"no-icon"
|
|
76
|
+
])]))), 128))])]))), 128))])) : c("", !0), M.value.beian?.icp || M.value.beian?.police || M.value.author ? (h(), l("div", E, [
|
|
77
|
+
M.value.beian?.icp || M.value.beian?.police ? (h(), l(a, { key: 0 }, [
|
|
78
|
+
M.value.beian?.icp?.number ? (h(), l("span", D, [M.value.beian?.showIcon ? (h(), l(a, { key: 0 }, [M.value.beian.icp.icon ? (h(), s(y(n), {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: "icon-space",
|
|
81
|
+
icon: M.value.beian.icp.icon,
|
|
82
|
+
size: "12"
|
|
83
|
+
}, null, 8, ["icon"])) : M.value.beian.icp.image ? (h(), s(y(r), {
|
|
84
|
+
key: 1,
|
|
85
|
+
class: "image-inline",
|
|
86
|
+
image: M.value.beian.icp.image,
|
|
87
|
+
size: "12"
|
|
88
|
+
}, null, 8, ["image"])) : (h(), s(y(r), {
|
|
89
|
+
key: 2,
|
|
90
|
+
class: "image-inline",
|
|
91
|
+
image: "https://i.theojs.net/logo/miit.webp",
|
|
92
|
+
size: "12",
|
|
93
|
+
loading: "eager"
|
|
94
|
+
}))], 64)) : c("", !0), f(y(i), {
|
|
95
|
+
href: F.value?.link || "https://beian.miit.gov.cn/",
|
|
96
|
+
rel: F.value?.rel || "nofollow",
|
|
97
|
+
target: F.value?.target,
|
|
98
|
+
"no-icon": ""
|
|
99
|
+
}, {
|
|
100
|
+
default: b(() => [d(v(F.value?.number), 1)]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, [
|
|
103
|
+
"href",
|
|
104
|
+
"rel",
|
|
105
|
+
"target"
|
|
106
|
+
])])) : c("", !0),
|
|
107
|
+
o[0] ||= u("span", { class: "info-spacing" }, null, -1),
|
|
108
|
+
I.value?.number ? (h(), l("span", O, [M.value.beian?.showIcon ? (h(), l(a, { key: 0 }, [I.value?.icon ? (h(), s(y(n), {
|
|
109
|
+
key: 0,
|
|
110
|
+
class: "icon-space",
|
|
111
|
+
icon: I.value.icon,
|
|
112
|
+
size: "12"
|
|
113
|
+
}, null, 8, ["icon"])) : I.value?.image ? (h(), s(y(r), {
|
|
114
|
+
key: 1,
|
|
115
|
+
class: "image-inline",
|
|
116
|
+
image: I.value.image,
|
|
117
|
+
size: "12"
|
|
118
|
+
}, null, 8, ["image"])) : (h(), s(y(r), {
|
|
119
|
+
key: 2,
|
|
120
|
+
class: "image-inline",
|
|
121
|
+
image: "https://i.theojs.net/logo/mps.webp",
|
|
122
|
+
size: "12",
|
|
123
|
+
loading: "eager"
|
|
124
|
+
}))], 64)) : c("", !0), f(y(i), {
|
|
125
|
+
href: I.value?.link || "https://beian.mps.gov.cn/",
|
|
126
|
+
rel: I.value?.rel,
|
|
127
|
+
target: I.value?.target,
|
|
128
|
+
"no-icon": ""
|
|
129
|
+
}, {
|
|
130
|
+
default: b(() => [d(v(I.value?.number), 1)]),
|
|
131
|
+
_: 1
|
|
132
|
+
}, 8, [
|
|
133
|
+
"href",
|
|
134
|
+
"rel",
|
|
135
|
+
"target"
|
|
136
|
+
])])) : c("", !0)
|
|
137
|
+
], 64)) : c("", !0),
|
|
138
|
+
o[1] ||= u("span", { class: "info-spacing-copyright" }, null, -1),
|
|
139
|
+
M.value.author?.name ? (h(), l("span", k, [M.value.author.icon ? (h(), s(y(n), {
|
|
140
|
+
key: 0,
|
|
141
|
+
class: "icon-space",
|
|
142
|
+
icon: M.value.author.icon,
|
|
143
|
+
size: "12"
|
|
144
|
+
}, null, 8, ["icon"])) : M.value.author.image ? (h(), s(y(r), {
|
|
145
|
+
key: 1,
|
|
146
|
+
class: "image-inline",
|
|
147
|
+
image: M.value.author.image,
|
|
148
|
+
size: "12"
|
|
149
|
+
}, null, 8, ["image"])) : (h(), s(y(n), {
|
|
150
|
+
key: 2,
|
|
151
|
+
class: "icon-space",
|
|
152
|
+
icon: "ri:copyright-line",
|
|
153
|
+
size: "12"
|
|
154
|
+
})), f(y(i), {
|
|
155
|
+
href: N.value?.link || `https://github.com/${N.value?.name}`,
|
|
156
|
+
rel: N.value?.rel,
|
|
157
|
+
target: N.value?.target,
|
|
158
|
+
"no-icon": ""
|
|
159
|
+
}, {
|
|
160
|
+
default: b(() => [d(v(N.value?.startYear ? `${N.value.startYear} - ` : "") + v(L.value) + " " + v(N.value?.name) + " " + v(N.value?.text || "All Rights Reserved."), 1)]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, [
|
|
163
|
+
"href",
|
|
164
|
+
"rel",
|
|
165
|
+
"target"
|
|
166
|
+
])])) : c("", !0)
|
|
167
|
+
])) : c("", !0)])) : c("", !0);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
export { A as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import e from "./common/Icon.js";
|
|
2
|
+
import t from "./common/Image.js";
|
|
3
|
+
import n from "./common/Link.js";
|
|
4
|
+
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, normalizeStyle as u, openBlock as d, renderList as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
|
|
5
|
+
// components/Links.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var g = { class: "row" }, _ = ["innerHTML"], v = ["innerHTML"], y = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "link-text"
|
|
9
|
+
}, b = /*@__PURE__*/ l({
|
|
10
|
+
__name: "Links",
|
|
11
|
+
props: {
|
|
12
|
+
items: {},
|
|
13
|
+
grid: {}
|
|
14
|
+
},
|
|
15
|
+
setup(l) {
|
|
16
|
+
let b = l;
|
|
17
|
+
return (l, x) => (d(), o("div", {
|
|
18
|
+
class: "grid",
|
|
19
|
+
style: u(typeof b.grid == "number" ? { gridTemplateColumns: `repeat(${b.grid}, 1fr)` } : void 0)
|
|
20
|
+
}, [(d(!0), o(r, null, f(b.items, (r, l) => (d(), i(m(n), {
|
|
21
|
+
key: r.name + l,
|
|
22
|
+
class: "link",
|
|
23
|
+
href: r.link,
|
|
24
|
+
rel: r.rel,
|
|
25
|
+
target: r.target,
|
|
26
|
+
"no-icon": ""
|
|
27
|
+
}, {
|
|
28
|
+
default: h(() => [
|
|
29
|
+
s("span", g, [r.icon ? (d(), i(m(e), {
|
|
30
|
+
key: 0,
|
|
31
|
+
icon: r.icon,
|
|
32
|
+
size: r.size || "32"
|
|
33
|
+
}, null, 8, ["icon", "size"])) : r.image ? (d(), i(m(t), {
|
|
34
|
+
key: 1,
|
|
35
|
+
image: r.image,
|
|
36
|
+
size: r.size || "32"
|
|
37
|
+
}, null, 8, ["image", "size"])) : a("", !0), s("span", {
|
|
38
|
+
class: "name",
|
|
39
|
+
innerHTML: r.name
|
|
40
|
+
}, null, 8, _)]),
|
|
41
|
+
r.desc ? (d(), o("p", {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "desc",
|
|
44
|
+
innerHTML: r.desc
|
|
45
|
+
}, null, 8, v)) : a("", !0),
|
|
46
|
+
r.linkText ? (d(), o("p", y, [c(p(r.linkText) + " ", 1), x[0] ||= s("span", {
|
|
47
|
+
class: "vpi-arrow-right",
|
|
48
|
+
style: { "margin-left": "6px" }
|
|
49
|
+
}, null, -1)])) : a("", !0)
|
|
50
|
+
]),
|
|
51
|
+
_: 2
|
|
52
|
+
}, 1032, [
|
|
53
|
+
"href",
|
|
54
|
+
"rel",
|
|
55
|
+
"target"
|
|
56
|
+
]))), 128))], 4));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export { b as default };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useNotice as e } from "../composables/utils.js";
|
|
2
|
+
import t from "./common/Icon.js";
|
|
3
|
+
import n from "./common/Image.js";
|
|
4
|
+
import r from "./common/Link.js";
|
|
5
|
+
import { createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, openBlock as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
6
|
+
// components/Notice.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var p = { class: "content" }, m = ["innerHTML"], h = ["innerHTML"], g = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "time-info"
|
|
10
|
+
}, _ = ["innerHTML"], v = { class: "date" }, y = /*@__PURE__*/ c({
|
|
11
|
+
__name: "Notice",
|
|
12
|
+
setup(c) {
|
|
13
|
+
let y = e();
|
|
14
|
+
return (e, c) => d(y) ? (l(), i(d(r), {
|
|
15
|
+
key: (d(y).link ?? "") + (d(y).rel ?? "") + (d(y).target ?? "") || d(y).title || d(y).desc || d(y).date,
|
|
16
|
+
class: "notice",
|
|
17
|
+
tag: d(y).link ? "a" : "div",
|
|
18
|
+
href: d(y).link,
|
|
19
|
+
rel: d(y).rel,
|
|
20
|
+
target: d(y).target,
|
|
21
|
+
"no-icon": ""
|
|
22
|
+
}, {
|
|
23
|
+
default: f(() => [s("div", p, [
|
|
24
|
+
s("span", {
|
|
25
|
+
class: "title",
|
|
26
|
+
innerHTML: d(y).title
|
|
27
|
+
}, null, 8, m),
|
|
28
|
+
d(y).desc ? (l(), o("p", {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "desc",
|
|
31
|
+
innerHTML: d(y).desc
|
|
32
|
+
}, null, 8, h)) : a("", !0),
|
|
33
|
+
d(y).date ? (l(), o("div", g, [
|
|
34
|
+
d(y).dateIcon ? (l(), i(d(t), {
|
|
35
|
+
key: 0,
|
|
36
|
+
icon: d(y).dateIcon,
|
|
37
|
+
size: "14"
|
|
38
|
+
}, null, 8, ["icon"])) : d(y).dateImage ? (l(), i(d(n), {
|
|
39
|
+
key: 1,
|
|
40
|
+
image: d(y).dateImage,
|
|
41
|
+
size: "14"
|
|
42
|
+
}, null, 8, ["image"])) : (l(), i(d(t), {
|
|
43
|
+
key: 2,
|
|
44
|
+
icon: "heroicons:calendar-days",
|
|
45
|
+
size: "14",
|
|
46
|
+
style: { transform: "translateY(-0.5px)" }
|
|
47
|
+
})),
|
|
48
|
+
s("time", { innerHTML: d(y).dateText || "活动时间: 即日至" }, null, 8, _),
|
|
49
|
+
s("time", v, u(d(y).date), 1)
|
|
50
|
+
])) : a("", !0)
|
|
51
|
+
])]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, [
|
|
54
|
+
"tag",
|
|
55
|
+
"href",
|
|
56
|
+
"rel",
|
|
57
|
+
"target"
|
|
58
|
+
])) : a("", !0);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export { y as default };
|