feat:初始化Tauri应用。
This commit is contained in:
@@ -0,0 +1 @@
|
||||
.logo.vite.svelte-1uha8ag:hover{filter:drop-shadow(0 0 2em #747bff)}.logo.svelte-kit.svelte-1uha8ag:hover{filter:drop-shadow(0 0 2em #ff3e00)}:root{color:#0f0f0f;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;background-color:#f6f6f6;font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:24px}.container.svelte-1uha8ag{text-align:center;flex-direction:column;justify-content:center;margin:0;padding-top:10vh;display:flex}.logo.svelte-1uha8ag{will-change:filter;height:6em;padding:1.5em;transition:all .75s}.logo.tauri.svelte-1uha8ag:hover{filter:drop-shadow(0 0 2em #24c8db)}.row.svelte-1uha8ag{justify-content:center;display:flex}a.svelte-1uha8ag{color:#646cff;-webkit-text-decoration:inherit;text-decoration:inherit;font-weight:500}a.svelte-1uha8ag:hover{color:#535bf2}h1.svelte-1uha8ag{text-align:center}input.svelte-1uha8ag,button.svelte-1uha8ag{color:#0f0f0f;background-color:#fff;border:1px solid #0000;border-radius:8px;padding:.6em 1.2em;font-family:inherit;font-size:1em;font-weight:500;transition:border-color .25s;box-shadow:0 2px 2px #0003}button.svelte-1uha8ag{cursor:pointer}button.svelte-1uha8ag:hover{border-color:#396cd8}button.svelte-1uha8ag:active{background-color:#e8e8e8;border-color:#396cd8}input.svelte-1uha8ag,button.svelte-1uha8ag{outline:none}#greet-input.svelte-1uha8ag{margin-right:5px}@media(prefers-color-scheme:dark){:root{color:#f6f6f6;background-color:#2f2f2f}a.svelte-1uha8ag:hover{color:#24c8db}input.svelte-1uha8ag,button.svelte-1uha8ag{color:#fff;background-color:#0f0f0f98}button.svelte-1uha8ag:active{background-color:#0f0f0f69}}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var B=Object.defineProperty;var g=i=>{throw TypeError(i)};var D=(i,e,s)=>e in i?B(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var w=(i,e,s)=>D(i,typeof e!="symbol"?e+"":e,s),y=(i,e,s)=>e.has(i)||g("Cannot "+s);var t=(i,e,s)=>(y(i,e,"read from private field"),s?s.call(i):e.get(i)),l=(i,e,s)=>e.has(i)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),M=(i,e,s,a)=>(y(i,e,"write to private field"),a?a.call(i,s):e.set(i,s),s);import{r as F,d as k,p as C,c as x,b as A,a as S,h as j,e as q,m as z,s as E}from"./QnfpkG_Q.js";var h,n,r,u,p,_,v;class I{constructor(e,s=!0){w(this,"anchor");l(this,h,new Map);l(this,n,new Map);l(this,r,new Map);l(this,u,new Set);l(this,p,!0);l(this,_,e=>{if(t(this,h).has(e)){var s=t(this,h).get(e),a=t(this,n).get(s);if(a)F(a),t(this,u).delete(s);else{var c=t(this,r).get(s);c&&(t(this,n).set(s,c.effect),t(this,r).delete(s),c.fragment.lastChild.remove(),this.anchor.before(c.fragment),a=c.effect)}for(const[f,o]of t(this,h)){if(t(this,h).delete(f),f===e)break;const d=t(this,r).get(o);d&&(k(d.effect),t(this,r).delete(o))}for(const[f,o]of t(this,n)){if(f===s||t(this,u).has(f))continue;const d=()=>{if(Array.from(t(this,h).values()).includes(f)){var b=document.createDocumentFragment();z(o,b),b.append(x()),t(this,r).set(f,{effect:o,fragment:b})}else k(o);t(this,u).delete(f),t(this,n).delete(f)};t(this,p)||!a?(t(this,u).add(f),C(o,d,!1)):d()}}});l(this,v,e=>{t(this,h).delete(e);const s=Array.from(t(this,h).values());for(const[a,c]of t(this,r))s.includes(a)||(k(c.effect),t(this,r).delete(a))});this.anchor=e,M(this,p,s)}ensure(e,s){var a=S,c=E();if(s&&!t(this,n).has(e)&&!t(this,r).has(e))if(c){var f=document.createDocumentFragment(),o=x();f.append(o),t(this,r).set(e,{effect:A(()=>s(o)),fragment:f})}else t(this,n).set(e,A(()=>s(this.anchor)));if(t(this,h).set(a,e),c){for(const[d,m]of t(this,n))d===e?a.unskip_effect(m):a.skip_effect(m);for(const[d,m]of t(this,r))d===e?a.unskip_effect(m.effect):a.skip_effect(m.effect);a.oncommit(t(this,_)),a.ondiscard(t(this,v))}else j&&(this.anchor=q),t(this,_).call(this,a)}}h=new WeakMap,n=new WeakMap,r=new WeakMap,u=new WeakMap,p=new WeakMap,_=new WeakMap,v=new WeakMap;export{I as B};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{u as o,f as t,l as c,g as u}from"./QnfpkG_Q.js";function l(n){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function i(n){t===null&&l(),c&&t.l!==null?a(t).m.push(n):o(()=>{const e=u(n);if(typeof e=="function")return e})}function a(n){var e=n.l;return e.u??(e.u={a:[],b:[],m:[]})}export{i as o};
|
||||
@@ -0,0 +1 @@
|
||||
import{k as p,c as u,n as c,o as l,q as E,T as w,t as g,h as d,e as s,R as y,v as N,w as x,x as M,y as A}from"./QnfpkG_Q.js";var f;const i=((f=globalThis==null?void 0:globalThis.window)==null?void 0:f.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function L(t){return(i==null?void 0:i.createHTML(t))??t}function R(t){var r=p("template");return r.innerHTML=L(t.replaceAll("<!>","<!---->")),r.content}function n(t,r){var e=c;e.nodes===null&&(e.nodes={start:t,end:r,a:null,t:null})}function P(t,r){var e=(r&w)!==0,m=(r&g)!==0,a,v=!t.startsWith("<!>");return()=>{if(d)return n(s,null),s;a===void 0&&(a=R(v?t:"<!>"+t),e||(a=l(a)));var o=m||E?document.importNode(a,!0):a.cloneNode(!0);if(e){var T=l(o),h=o.lastChild;n(T,h)}else n(o,o);return o}}function C(t=""){if(!d){var r=u(t+"");return n(r,r),r}var e=s;return e.nodeType!==x?(e.before(e=u()),M(e)):A(e),n(e,e),e}function I(){if(d)return n(s,null),s;var t=document.createDocumentFragment(),r=document.createComment(""),e=u();return t.append(r,e),n(r,e),t}function D(t,r){if(d){var e=c;((e.f&y)===0||e.nodes.end===null)&&(e.nodes.end=s),N();return}t!==null&&t.before(r)}const b="5";var _;typeof window<"u"&&((_=window.__svelte??(window.__svelte={})).v??(_.v=new Set)).add(b);export{D as a,n as b,I as c,P as f,C as t};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{l as o,a as r}from"../chunks/BRJNrpWH.js";export{o as load_css,r as start};
|
||||
@@ -0,0 +1 @@
|
||||
import{c as s,a as c}from"../chunks/VCsPq5MH.js";import{i,E as l,j as p}from"../chunks/QnfpkG_Q.js";import{B as m}from"../chunks/L6H5smAl.js";function f(n,o,...e){var a=new m(n);i(()=>{const r=o()??null;a.ensure(r,r&&(t=>r(t,...e)))},l)}const u=!1,v=Object.freeze(Object.defineProperty({__proto__:null,ssr:u},Symbol.toStringTag,{value:"Module"}));function g(n,o){var e=s(),a=p(e);f(a,()=>o.children),c(n,e)}export{g as component,v as universal};
|
||||
@@ -0,0 +1 @@
|
||||
import{a as b,f as k}from"../chunks/VCsPq5MH.js";import{f as x,z as y,u as i,g as $,A as l,B as j,C as v,D as z,F as A,G as B,H as C,j as D,I as E,J as F,K as u,L as m,M as G}from"../chunks/QnfpkG_Q.js";import{s as g}from"../chunks/E-DQD4vt.js";import{s as H,p as _}from"../chunks/BRJNrpWH.js";function I(a=!1){const t=x,e=t.l.u;if(!e)return;let r=()=>z(t.s);if(a){let o=0,s={};const c=A(()=>{let n=!1;const p=t.s;for(const f in p)p[f]!==s[f]&&(s[f]=p[f],n=!0);return n&&o++,o});r=()=>v(c)}e.b.length&&y(()=>{d(t,r),l(e.b)}),i(()=>{const o=$(()=>e.m.map(j));return()=>{for(const s of o)typeof s=="function"&&s()}}),e.a.length&&i(()=>{d(t,r),l(e.a)})}function d(a,t){if(a.l.s)for(const e of a.l.s)v(e);t()}B();const J={get error(){return _.error},get status(){return _.status}};H.updated.check;const h=J;var K=k("<h1> </h1> <p> </p>",1);function N(a,t){C(t,!1),I();var e=K(),r=D(e),o=u(r,!0);m(r);var s=G(r,2),c=u(s,!0);m(s),E(()=>{var n;g(o,h.status),g(c,(n=h.error)==null?void 0:n.message)}),b(a,e),F()}export{N as component};
|
||||
@@ -0,0 +1 @@
|
||||
import{a as p,f as L}from"../chunks/VCsPq5MH.js";import{h as m,Q as T,ao as y,ap as A,aq as I,ar as M,as as N,a as c,at as w,g as K,O as x,H as C,I as H,C as f,J as O,K as _,M as S,a3 as R,L as d,au as k,av as b}from"../chunks/QnfpkG_Q.js";import{e as V,s as G}from"../chunks/E-DQD4vt.js";const U=Symbol("is custom element"),q=Symbol("is html"),D=M?"link":"LINK";function W(e){if(m){var a=!1,r=()=>{if(!a){if(a=!0,e.hasAttribute("value")){var l=e.value;E(e,"value",null),e.value=l}if(e.hasAttribute("checked")){var s=e.checked;E(e,"checked",null),e.checked=s}}};e.__on_r=r,T(r),y()}}function E(e,a,r,l){var s=B(e);m&&(s[a]=e.getAttribute(a),a==="src"||a==="srcset"||a==="href"&&e.nodeName===D)||s[a]!==(s[a]=r)&&(a==="loading"&&(e[A]=r),e.removeAttribute(a))}function B(e){return e.__attributes??(e.__attributes={[U]:e.nodeName.includes("-"),[q]:e.namespaceURI===I})}function J(e,a,r=a){var l=new WeakSet;N(e,"input",async s=>{var t=s?e.defaultValue:e.value;if(t=g(e)?h(t):t,r(t),c!==null&&l.add(c),await w(),t!==(t=a())){var o=e.selectionStart,v=e.selectionEnd,n=e.value.length;if(e.value=t??"",v!==null){var u=e.value.length;o===v&&v===n&&u>n?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=o,e.selectionEnd=Math.min(v,u))}}}),(m&&e.defaultValue!==e.value||K(a)==null&&e.value)&&(r(g(e)?h(e.value):e.value),c!==null&&l.add(c)),x(()=>{var s=a();if(e===document.activeElement){var t=c;if(l.has(t))return}g(e)&&s===h(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function g(e){var a=e.type;return a==="number"||a==="range"}function h(e){return e===""?null:+e}async function P(e,a={},r){return window.__TAURI_INTERNALS__.invoke(e,a,r)}var Q=L('<main class="container svelte-1uha8ag"><h1 class="svelte-1uha8ag">Welcome to Tauri + Svelte</h1> <div class="row svelte-1uha8ag"><a href="https://vite.dev" target="_blank" class="svelte-1uha8ag"><img src="/vite.svg" class="logo vite svelte-1uha8ag" alt="Vite Logo"/></a> <a href="https://tauri.app" target="_blank" class="svelte-1uha8ag"><img src="/tauri.svg" class="logo tauri svelte-1uha8ag" alt="Tauri Logo"/></a> <a href="https://svelte.dev" target="_blank" class="svelte-1uha8ag"><img src="/svelte.svg" class="logo svelte-kit svelte-1uha8ag" alt="SvelteKit Logo"/></a></div> <p>Click on the Tauri, Vite, and SvelteKit logos to learn more.</p> <form class="row svelte-1uha8ag"><input id="greet-input" placeholder="Enter a name..." class="svelte-1uha8ag"/> <button type="submit" class="svelte-1uha8ag">Greet</button></form> <p> </p></main>');function z(e,a){C(a,!0);let r=b(""),l=b("");async function s(i){i.preventDefault(),k(l,await P("greet",{name:f(r)}),!0)}var t=Q(),o=S(_(t),6),v=_(o);W(v),R(2),d(o);var n=S(o,2),u=_(n,!0);d(n),d(t),H(()=>G(u,f(l))),V("submit",o,s),J(v,()=>f(r),i=>k(r,i)),p(e,t),O()}export{z as component};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":"1774502804002"}
|
||||
Reference in New Issue
Block a user