@xcpcio/board-app 0.51.0 → 0.51.2
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/dist/404.html +1 -1
- package/dist/assets/{Board-c1aec925.js → Board-a6a37adf.js} +1 -1
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-8706f2ab.js → DataSourceInput.vue_vue_type_script_setup_true_lang-d2ea1ac6.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-765c2b3c.js → TheInput.vue_vue_type_script_setup_true_lang-1ce252e6.js} +1 -1
- package/dist/assets/{_...all_-a8e69cef.js → _...all_-198e3528.js} +1 -1
- package/dist/assets/{_...all_-c5b455bb.js → _...all_-61cb8860.js} +1 -1
- package/dist/assets/{_name_-60a93f5f.js → _name_-f901a5ed.js} +1 -1
- package/dist/assets/{about-490ee0d7.js → about-9fdb1313.js} +1 -1
- package/dist/assets/{board-d69a45e8.js → board-65f3126c.js} +1 -1
- package/dist/assets/{board-layout-bd329ecf.js → board-layout-598f9ee4.js} +1 -1
- package/dist/assets/{headless-9c707fd4.js → headless-e015e9d1.js} +1 -1
- package/dist/assets/{home-b6c236a6.js → home-89f287c8.js} +1 -1
- package/dist/assets/{index-2b0627dc.js → index-7af0a9ca.js} +1 -1
- package/dist/assets/{index-6c2171b3.js → index-8e5373fd.js} +1 -1
- package/dist/assets/{index-5d2848e0.js → index-d8432aad.js} +3 -3
- package/dist/assets/{index-301db79b.js → index-ea20d191.js} +1 -1
- package/dist/assets/{index-layout-834eb607.js → index-layout-60ef1a96.js} +1 -1
- package/dist/assets/{pagination-57c59553.js → pagination-95a79aa6.js} +1 -1
- package/dist/assets/{query-f5d987d0.js → query-67fd6c27.js} +1 -1
- package/dist/assets/{test-f10f3f09.js → test-5c739ae1.js} +1 -1
- package/dist/assets/{user-c00215bb.js → user-03dfbe5d.js} +1 -1
- package/dist/assets/{virtual_pwa-register-7b8b4a68.js → virtual_pwa-register-6ca2d3a0.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +4 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
var q=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var s=(i,t,e)=>(q(i,t,"read from private field"),e?e.call(i):t.get(i)),u=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},l=(i,t,e,n)=>(q(i,t,"write to private field"),n?n.call(i,e):t.set(i,e),e);var f=(i,t,e)=>(q(i,t,"access private method"),e);import{au as Qt,av as O,aw as tt,ax as J,ay as Et,az as ft,aA as pt,aB as It,aC as Dt,aD as Ft,aE as bt,aF as Tt,aG as Ut,aH as jt,aI as xt,h as Ot,aJ as At,aK as Mt,A as H,aL as yt,aM as Pt,aN as vt,aO as Lt,aP as $t,ah as St}from"./index-5d2848e0.js";var y,a,W,b,I,A,g,B,M,P,D,F,w,L,T,$,N,et,_,st,k,it,z,nt,K,at,V,rt,G,ot,Y,Ct,gt,Wt=(gt=class extends Qt{constructor(t,e){super();u(this,T);u(this,N);u(this,_);u(this,k);u(this,z);u(this,K);u(this,V);u(this,G);u(this,Y);u(this,y,void 0);u(this,a,void 0);u(this,W,void 0);u(this,b,void 0);u(this,I,void 0);u(this,A,void 0);u(this,g,void 0);u(this,B,void 0);u(this,M,void 0);u(this,P,void 0);u(this,D,void 0);u(this,F,void 0);u(this,w,void 0);u(this,L,new Set);this.options=e,l(this,y,t),l(this,g,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(s(this,a).addObserver(this),mt(s(this,a),this.options)?f(this,T,$).call(this):this.updateResult(),f(this,z,nt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ht(s(this,a),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ht(s(this,a),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,f(this,K,at).call(this),f(this,V,rt).call(this),s(this,a).removeObserver(this)}setOptions(t,e){const n=this.options,h=s(this,a);if(this.options=s(this,y).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof O(this.options.enabled,s(this,a))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");f(this,G,ot).call(this),s(this,a).setOptions(this.options),n._defaulted&&!tt(this.options,n)&&s(this,y).getQueryCache().notify({type:"observerOptionsUpdated",query:s(this,a),observer:this});const o=this.hasListeners();o&&Rt(s(this,a),h,this.options,n)&&f(this,T,$).call(this),this.updateResult(e),o&&(s(this,a)!==h||O(this.options.enabled,s(this,a))!==O(n.enabled,s(this,a))||J(this.options.staleTime,s(this,a))!==J(n.staleTime,s(this,a)))&&f(this,N,et).call(this);const c=f(this,_,st).call(this);o&&(s(this,a)!==h||O(this.options.enabled,s(this,a))!==O(n.enabled,s(this,a))||c!==s(this,w))&&f(this,k,it).call(this,c)}getOptimisticResult(t){const e=s(this,y).getQueryCache().build(s(this,y),t),n=this.createResult(e,t);return Nt(this,n)&&(l(this,b,n),l(this,A,this.options),l(this,I,s(this,a).state)),n}getCurrentResult(){return s(this,b)}trackResult(t,e){const n={};return Object.keys(t).forEach(h=>{Object.defineProperty(n,h,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(h),e==null||e(h),t[h])})}),n}trackProp(t){s(this,L).add(t)}getCurrentQuery(){return s(this,a)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=s(this,y).defaultQueryOptions(t),n=s(this,y).getQueryCache().build(s(this,y),e);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,e))}fetch(t){return f(this,T,$).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),s(this,b)))}createResult(t,e){var dt;const n=s(this,a),h=this.options,o=s(this,b),c=s(this,I),p=s(this,A),Q=t!==n?t.state:s(this,W),{state:v}=t;let d={...v},E=!1,r;if(e._optimisticResults){const m=this.hasListeners(),Z=!m&&mt(t,e),wt=m&&Rt(t,n,e,h);(Z||wt)&&(d={...d,...Ft(v.data,t.options)}),e._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:S,errorUpdatedAt:U,status:R}=d;if(e.select&&d.data!==void 0)if(o&&d.data===(c==null?void 0:c.data)&&e.select===s(this,B))r=s(this,M);else try{l(this,B,e.select),r=e.select(d.data),r=bt(o==null?void 0:o.data,r,e),l(this,M,r),l(this,g,null)}catch(m){l(this,g,m)}else r=d.data;if(e.placeholderData!==void 0&&r===void 0&&R==="pending"){let m;if(o!=null&&o.isPlaceholderData&&e.placeholderData===(p==null?void 0:p.placeholderData))m=o.data;else if(m=typeof e.placeholderData=="function"?e.placeholderData((dt=s(this,P))==null?void 0:dt.state.data,s(this,P)):e.placeholderData,e.select&&m!==void 0)try{m=e.select(m),l(this,g,null)}catch(Z){l(this,g,Z)}m!==void 0&&(R="success",r=bt(o==null?void 0:o.data,m,e),E=!0)}s(this,g)&&(S=s(this,g),r=s(this,M),U=Date.now(),R="error");const j=d.fetchStatus==="fetching",x=R==="pending",X=R==="error",ct=x&&j,lt=r!==void 0;return{status:R,fetchStatus:d.fetchStatus,isPending:x,isSuccess:R==="success",isError:X,isInitialLoading:ct,isLoading:ct,data:r,dataUpdatedAt:d.dataUpdatedAt,error:S,errorUpdatedAt:U,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>Q.dataUpdateCount||d.errorUpdateCount>Q.errorUpdateCount,isFetching:j,isRefetching:j&&!x,isLoadingError:X&&!lt,isPaused:d.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:X&<,isStale:ut(t,e),refetch:this.refetch}}updateResult(t){const e=s(this,b),n=this.createResult(s(this,a),this.options);if(l(this,I,s(this,a).state),l(this,A,this.options),s(this,I).data!==void 0&&l(this,P,s(this,a)),tt(n,e))return;l(this,b,n);const h={},o=()=>{if(!e)return!0;const{notifyOnChangeProps:c}=this.options,p=typeof c=="function"?c():c;if(p==="all"||!p&&!s(this,L).size)return!0;const C=new Set(p??s(this,L));return this.options.throwOnError&&C.add("error"),Object.keys(s(this,b)).some(Q=>{const v=Q;return s(this,b)[v]!==e[v]&&C.has(v)})};(t==null?void 0:t.listeners)!==!1&&o()&&(h.listeners=!0),f(this,Y,Ct).call(this,{...h,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&f(this,z,nt).call(this)}},y=new WeakMap,a=new WeakMap,W=new WeakMap,b=new WeakMap,I=new WeakMap,A=new WeakMap,g=new WeakMap,B=new WeakMap,M=new WeakMap,P=new WeakMap,D=new WeakMap,F=new WeakMap,w=new WeakMap,L=new WeakMap,T=new WeakSet,$=function(t){f(this,G,ot).call(this);let e=s(this,a).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(Et)),e},N=new WeakSet,et=function(){f(this,K,at).call(this);const t=J(this.options.staleTime,s(this,a));if(ft||s(this,b).isStale||!pt(t))return;const n=It(s(this,b).dataUpdatedAt,t)+1;l(this,D,setTimeout(()=>{s(this,b).isStale||this.updateResult()},n))},_=new WeakSet,st=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(s(this,a)):this.options.refetchInterval)??!1},k=new WeakSet,it=function(t){f(this,V,rt).call(this),l(this,w,t),!(ft||O(this.options.enabled,s(this,a))===!1||!pt(s(this,w))||s(this,w)===0)&&l(this,F,setInterval(()=>{(this.options.refetchIntervalInBackground||Dt.isFocused())&&f(this,T,$).call(this)},s(this,w)))},z=new WeakSet,nt=function(){f(this,N,et).call(this),f(this,k,it).call(this,f(this,_,st).call(this))},K=new WeakSet,at=function(){s(this,D)&&(clearTimeout(s(this,D)),l(this,D,void 0))},V=new WeakSet,rt=function(){s(this,F)&&(clearInterval(s(this,F)),l(this,F,void 0))},G=new WeakSet,ot=function(){const t=s(this,y).getQueryCache().build(s(this,y),this.options);if(t===s(this,a))return;const e=s(this,a);l(this,a,t),l(this,W,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Y=new WeakSet,Ct=function(t){Tt.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(s(this,b))}),s(this,y).getQueryCache().notify({query:s(this,a),type:"observerResultsUpdated"})})},gt);function Bt(i,t){return O(t.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&t.retryOnMount===!1)}function mt(i,t){return Bt(i,t)||i.state.data!==void 0&&ht(i,t,t.refetchOnMount)}function ht(i,t,e){if(O(t.enabled,i)!==!1){const n=typeof e=="function"?e(i):e;return n==="always"||n!==!1&&ut(i,t)}return!1}function Rt(i,t,e,n){return(i!==t||O(n.enabled,i)===!1)&&(!e.suspense||i.state.status!=="error")&&ut(i,e)}function ut(i,t){return O(t.enabled,i)!==!1&&i.isStaleByTime(J(t.staleTime,i))}function Nt(i,t){return!tt(i.getCurrentResult(),t)}function _t(i=""){if(!Ut())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=xt(i),e=jt(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}function kt(i,t,e){const n=e||_t(),h=Ot(()=>{const r=At(t);typeof r.enabled=="function"&&(r.enabled=r.enabled());const S=n.defaultQueryOptions(r);return S._optimisticResults=n.isRestoring.value?"isRestoring":"optimistic",S}),o=new i(n,h.value),c=Mt(o.getCurrentResult());let p=()=>{};H(n.isRestoring,r=>{r||(p(),p=o.subscribe(S=>{yt(c,S)}))},{immediate:!0});const C=()=>{o.setOptions(h.value),yt(c,o.getCurrentResult())};H(h,C),Pt(()=>{p()});const Q=(...r)=>(C(),c.refetch(...r)),v=()=>new Promise((r,S)=>{let U=()=>{};const R=()=>{if(h.value.enabled!==!1){o.setOptions(h.value);const j=o.getOptimisticResult(h.value);j.isStale?(U(),o.fetchOptimistic(h.value).then(r,x=>{vt(h.value.throwOnError,[x,o.getCurrentQuery()])?S(x):r(o.getCurrentResult())})):(U(),r(j))}};R(),U=H(h,R)});H(()=>c.error,r=>{if(c.isError&&!c.isFetching&&vt(h.value.throwOnError,[r,o.getCurrentQuery()]))throw r});const E=Lt(c);for(const r in c)typeof c[r]=="function"&&(E[r]=c[r]);return E.suspense=v,E.refetch=Q,E}function zt(i,t){return kt(Wt,i,t)}const Kt=3;async function Vt(i,t){const e=i.startsWith("/")?i.slice(1):i;let n=`${window.DATA_HOST}${e}`;i.startsWith("http")&&(n=i),n.endsWith("/")&&(n=n.slice(0,-1));const h=await fetch(`${n}/config.json?t=${t??0}`),o=await fetch(`${n}/team.json?t=${t??0}`),c=await fetch(`${n}/run.json?t=${t??0}`),{status:p,statusText:C}=h;if(p>=300||p<200)throw new Error(`fetch data failed. [status=${p}] [statusText=${C}]`);return Promise.all([h.json(),o.json(),c.json()]).then(v=>({contest:v[0],teams:v[1],submissions:v[2]}))}function Yt(i,t){let e=3e4;const n=Ot(()=>Math.floor(t.value.getTime()/1e3/10));return $t.value==="I18N"&&(e=10*1e3),zt({queryKey:[i,n.value],queryFn:()=>Vt(i,n.value),retry:Kt,staleTime:e,refetchInterval:e})}function Xt(){return St("data-source","",{transform:String})}function Zt(){return St("battle-of-giants","",{transform:String})}export{Zt as a,Xt as g,Yt as u};
|
|
1
|
+
var q=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var s=(i,t,e)=>(q(i,t,"read from private field"),e?e.call(i):t.get(i)),u=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},l=(i,t,e,n)=>(q(i,t,"write to private field"),n?n.call(i,e):t.set(i,e),e);var f=(i,t,e)=>(q(i,t,"access private method"),e);import{au as Qt,av as O,aw as tt,ax as J,ay as Et,az as ft,aA as pt,aB as It,aC as Dt,aD as Ft,aE as bt,aF as Tt,aG as Ut,aH as jt,aI as xt,h as Ot,aJ as At,aK as Mt,A as H,aL as yt,aM as Pt,aN as vt,aO as Lt,aP as $t,ah as St}from"./index-d8432aad.js";var y,a,W,b,I,A,g,B,M,P,D,F,w,L,T,$,N,et,_,st,k,it,z,nt,K,at,V,rt,G,ot,Y,Ct,gt,Wt=(gt=class extends Qt{constructor(t,e){super();u(this,T);u(this,N);u(this,_);u(this,k);u(this,z);u(this,K);u(this,V);u(this,G);u(this,Y);u(this,y,void 0);u(this,a,void 0);u(this,W,void 0);u(this,b,void 0);u(this,I,void 0);u(this,A,void 0);u(this,g,void 0);u(this,B,void 0);u(this,M,void 0);u(this,P,void 0);u(this,D,void 0);u(this,F,void 0);u(this,w,void 0);u(this,L,new Set);this.options=e,l(this,y,t),l(this,g,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(s(this,a).addObserver(this),mt(s(this,a),this.options)?f(this,T,$).call(this):this.updateResult(),f(this,z,nt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ht(s(this,a),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ht(s(this,a),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,f(this,K,at).call(this),f(this,V,rt).call(this),s(this,a).removeObserver(this)}setOptions(t,e){const n=this.options,h=s(this,a);if(this.options=s(this,y).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof O(this.options.enabled,s(this,a))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");f(this,G,ot).call(this),s(this,a).setOptions(this.options),n._defaulted&&!tt(this.options,n)&&s(this,y).getQueryCache().notify({type:"observerOptionsUpdated",query:s(this,a),observer:this});const o=this.hasListeners();o&&Rt(s(this,a),h,this.options,n)&&f(this,T,$).call(this),this.updateResult(e),o&&(s(this,a)!==h||O(this.options.enabled,s(this,a))!==O(n.enabled,s(this,a))||J(this.options.staleTime,s(this,a))!==J(n.staleTime,s(this,a)))&&f(this,N,et).call(this);const c=f(this,_,st).call(this);o&&(s(this,a)!==h||O(this.options.enabled,s(this,a))!==O(n.enabled,s(this,a))||c!==s(this,w))&&f(this,k,it).call(this,c)}getOptimisticResult(t){const e=s(this,y).getQueryCache().build(s(this,y),t),n=this.createResult(e,t);return Nt(this,n)&&(l(this,b,n),l(this,A,this.options),l(this,I,s(this,a).state)),n}getCurrentResult(){return s(this,b)}trackResult(t,e){const n={};return Object.keys(t).forEach(h=>{Object.defineProperty(n,h,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(h),e==null||e(h),t[h])})}),n}trackProp(t){s(this,L).add(t)}getCurrentQuery(){return s(this,a)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=s(this,y).defaultQueryOptions(t),n=s(this,y).getQueryCache().build(s(this,y),e);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,e))}fetch(t){return f(this,T,$).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),s(this,b)))}createResult(t,e){var dt;const n=s(this,a),h=this.options,o=s(this,b),c=s(this,I),p=s(this,A),Q=t!==n?t.state:s(this,W),{state:v}=t;let d={...v},E=!1,r;if(e._optimisticResults){const m=this.hasListeners(),Z=!m&&mt(t,e),wt=m&&Rt(t,n,e,h);(Z||wt)&&(d={...d,...Ft(v.data,t.options)}),e._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:S,errorUpdatedAt:U,status:R}=d;if(e.select&&d.data!==void 0)if(o&&d.data===(c==null?void 0:c.data)&&e.select===s(this,B))r=s(this,M);else try{l(this,B,e.select),r=e.select(d.data),r=bt(o==null?void 0:o.data,r,e),l(this,M,r),l(this,g,null)}catch(m){l(this,g,m)}else r=d.data;if(e.placeholderData!==void 0&&r===void 0&&R==="pending"){let m;if(o!=null&&o.isPlaceholderData&&e.placeholderData===(p==null?void 0:p.placeholderData))m=o.data;else if(m=typeof e.placeholderData=="function"?e.placeholderData((dt=s(this,P))==null?void 0:dt.state.data,s(this,P)):e.placeholderData,e.select&&m!==void 0)try{m=e.select(m),l(this,g,null)}catch(Z){l(this,g,Z)}m!==void 0&&(R="success",r=bt(o==null?void 0:o.data,m,e),E=!0)}s(this,g)&&(S=s(this,g),r=s(this,M),U=Date.now(),R="error");const j=d.fetchStatus==="fetching",x=R==="pending",X=R==="error",ct=x&&j,lt=r!==void 0;return{status:R,fetchStatus:d.fetchStatus,isPending:x,isSuccess:R==="success",isError:X,isInitialLoading:ct,isLoading:ct,data:r,dataUpdatedAt:d.dataUpdatedAt,error:S,errorUpdatedAt:U,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>Q.dataUpdateCount||d.errorUpdateCount>Q.errorUpdateCount,isFetching:j,isRefetching:j&&!x,isLoadingError:X&&!lt,isPaused:d.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:X&<,isStale:ut(t,e),refetch:this.refetch}}updateResult(t){const e=s(this,b),n=this.createResult(s(this,a),this.options);if(l(this,I,s(this,a).state),l(this,A,this.options),s(this,I).data!==void 0&&l(this,P,s(this,a)),tt(n,e))return;l(this,b,n);const h={},o=()=>{if(!e)return!0;const{notifyOnChangeProps:c}=this.options,p=typeof c=="function"?c():c;if(p==="all"||!p&&!s(this,L).size)return!0;const C=new Set(p??s(this,L));return this.options.throwOnError&&C.add("error"),Object.keys(s(this,b)).some(Q=>{const v=Q;return s(this,b)[v]!==e[v]&&C.has(v)})};(t==null?void 0:t.listeners)!==!1&&o()&&(h.listeners=!0),f(this,Y,Ct).call(this,{...h,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&f(this,z,nt).call(this)}},y=new WeakMap,a=new WeakMap,W=new WeakMap,b=new WeakMap,I=new WeakMap,A=new WeakMap,g=new WeakMap,B=new WeakMap,M=new WeakMap,P=new WeakMap,D=new WeakMap,F=new WeakMap,w=new WeakMap,L=new WeakMap,T=new WeakSet,$=function(t){f(this,G,ot).call(this);let e=s(this,a).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(Et)),e},N=new WeakSet,et=function(){f(this,K,at).call(this);const t=J(this.options.staleTime,s(this,a));if(ft||s(this,b).isStale||!pt(t))return;const n=It(s(this,b).dataUpdatedAt,t)+1;l(this,D,setTimeout(()=>{s(this,b).isStale||this.updateResult()},n))},_=new WeakSet,st=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(s(this,a)):this.options.refetchInterval)??!1},k=new WeakSet,it=function(t){f(this,V,rt).call(this),l(this,w,t),!(ft||O(this.options.enabled,s(this,a))===!1||!pt(s(this,w))||s(this,w)===0)&&l(this,F,setInterval(()=>{(this.options.refetchIntervalInBackground||Dt.isFocused())&&f(this,T,$).call(this)},s(this,w)))},z=new WeakSet,nt=function(){f(this,N,et).call(this),f(this,k,it).call(this,f(this,_,st).call(this))},K=new WeakSet,at=function(){s(this,D)&&(clearTimeout(s(this,D)),l(this,D,void 0))},V=new WeakSet,rt=function(){s(this,F)&&(clearInterval(s(this,F)),l(this,F,void 0))},G=new WeakSet,ot=function(){const t=s(this,y).getQueryCache().build(s(this,y),this.options);if(t===s(this,a))return;const e=s(this,a);l(this,a,t),l(this,W,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Y=new WeakSet,Ct=function(t){Tt.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(s(this,b))}),s(this,y).getQueryCache().notify({query:s(this,a),type:"observerResultsUpdated"})})},gt);function Bt(i,t){return O(t.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&t.retryOnMount===!1)}function mt(i,t){return Bt(i,t)||i.state.data!==void 0&&ht(i,t,t.refetchOnMount)}function ht(i,t,e){if(O(t.enabled,i)!==!1){const n=typeof e=="function"?e(i):e;return n==="always"||n!==!1&&ut(i,t)}return!1}function Rt(i,t,e,n){return(i!==t||O(n.enabled,i)===!1)&&(!e.suspense||i.state.status!=="error")&&ut(i,e)}function ut(i,t){return O(t.enabled,i)!==!1&&i.isStaleByTime(J(t.staleTime,i))}function Nt(i,t){return!tt(i.getCurrentResult(),t)}function _t(i=""){if(!Ut())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=xt(i),e=jt(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}function kt(i,t,e){const n=e||_t(),h=Ot(()=>{const r=At(t);typeof r.enabled=="function"&&(r.enabled=r.enabled());const S=n.defaultQueryOptions(r);return S._optimisticResults=n.isRestoring.value?"isRestoring":"optimistic",S}),o=new i(n,h.value),c=Mt(o.getCurrentResult());let p=()=>{};H(n.isRestoring,r=>{r||(p(),p=o.subscribe(S=>{yt(c,S)}))},{immediate:!0});const C=()=>{o.setOptions(h.value),yt(c,o.getCurrentResult())};H(h,C),Pt(()=>{p()});const Q=(...r)=>(C(),c.refetch(...r)),v=()=>new Promise((r,S)=>{let U=()=>{};const R=()=>{if(h.value.enabled!==!1){o.setOptions(h.value);const j=o.getOptimisticResult(h.value);j.isStale?(U(),o.fetchOptimistic(h.value).then(r,x=>{vt(h.value.throwOnError,[x,o.getCurrentQuery()])?S(x):r(o.getCurrentResult())})):(U(),r(j))}};R(),U=H(h,R)});H(()=>c.error,r=>{if(c.isError&&!c.isFetching&&vt(h.value.throwOnError,[r,o.getCurrentQuery()]))throw r});const E=Lt(c);for(const r in c)typeof c[r]=="function"&&(E[r]=c[r]);return E.suspense=v,E.refetch=Q,E}function zt(i,t){return kt(Wt,i,t)}const Kt=3;async function Vt(i,t){const e=i.startsWith("/")?i.slice(1):i;let n=`${window.DATA_HOST}${e}`;i.startsWith("http")&&(n=i),n.endsWith("/")&&(n=n.slice(0,-1));const h=await fetch(`${n}/config.json?t=${t??0}`),o=await fetch(`${n}/team.json?t=${t??0}`),c=await fetch(`${n}/run.json?t=${t??0}`),{status:p,statusText:C}=h;if(p>=300||p<200)throw new Error(`fetch data failed. [status=${p}] [statusText=${C}]`);return Promise.all([h.json(),o.json(),c.json()]).then(v=>({contest:v[0],teams:v[1],submissions:v[2]}))}function Yt(i,t){let e=3e4;const n=Ot(()=>Math.floor(t.value.getTime()/1e3/10));return $t.value==="I18N"&&(e=10*1e3),zt({queryKey:[i,n.value],queryFn:()=>Vt(i,n.value),retry:Kt,staleTime:e,refetchInterval:e})}function Xt(){return St("data-source","",{transform:String})}function Zt(){return St("battle-of-giants","",{transform:String})}export{Zt as a,Xt as g,Yt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-1ce252e6.js";import{g as c,i as f,M as _,n as b,o as v,c as h,d as e,t as a,j as s,b as y,N as x,O as g,y as i}from"./index-d8432aad.js";import{u as V}from"./user-03dfbe5d.js";const k={flex:"","flex-col":"","justify-center":"","items-center":""},w={"text-sm":"","opacity-75":""},I={"w-48":""},N={class:"hidden",for:"input"},B=["disabled"],C=c({name:"IndexPage",__name:"test",setup(R){const r=V(),o=f(r.savedName),u=_();function l(){o.value&&u.push(`/hi/${encodeURIComponent(o.value)}`)}const{t:n}=b();return(U,t)=>{const d=p;return v(),h("div",k,[t[1]||(t[1]=e("div",{"text-4xl":""},[e("div",{"i-carbon-campsite":""})],-1)),t[2]||(t[2]=e("p",null,[e("a",{rel:"noreferrer",href:"https://github.com/antfu/vitesse",target:"_blank"}," Vitesse ")],-1)),e("p",null,[e("em",w,a(s(n)("intro.desc")),1)]),t[3]||(t[3]=e("div",{"py-4":""},null,-1)),e("div",I,[y(d,{modelValue:s(o),"onUpdate:modelValue":t[0]||(t[0]=m=>x(o)?o.value=m:null),placeholder:s(n)("intro.whats-your-name"),autocomplete:"false",onKeydown:g(l,["enter"])},null,8,["modelValue","placeholder"]),e("label",N,a(s(n)("intro.whats-your-name")),1)]),e("div",null,[e("button",{"m-3":"","text-sm":"",btn:"",disabled:!s(o),onClick:l},a(s(n)("button.go")),9,B)])])}}});typeof i=="function"&&i(C);export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aT as m,i as r,h as t}from"./index-
|
|
1
|
+
import{aT as m,i as r,h as t}from"./index-d8432aad.js";const l=m("user",()=>{const e=r(""),s=r(new Set),o=t(()=>Array.from(s.value)),u=t(()=>o.value.filter(a=>a!==e.value));function n(a){e.value&&s.value.add(e.value),e.value=a}return{setNewName:n,otherNames:u,savedName:e}});export{l as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_}from"./index-
|
|
1
|
+
import{_}from"./index-d8432aad.js";function f(c={}){const{immediate:d=!1,onNeedRefresh:m,onOfflineReady:i,onRegistered:r,onRegisteredSW:s,onRegisterError:a}=c;let t,o;const l=async(n=!0)=>{await o};async function p(){if("serviceWorker"in navigator){const{Workbox:n}=await _(()=>import("./workbox-window.prod.es5-c46a1faa.js"),[],import.meta.url);t=new n("/sw.js",{scope:"/",type:"classic"}),t.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),t.addEventListener("installed",e=>{e.isUpdate||i==null||i()}),t.register({immediate:d}).then(e=>{s?s("/sw.js",e):r==null||r(e)}).catch(e=>{a==null||a(e)})}}return o=p(),l}export{f as registerSW};
|
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="UTF-8"><link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.51.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"><link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.51.2/dist/balloon-192x192.png"><link rel="mask-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.51.2/dist/balloon-512x512.svg" color="#00aba9"><meta name="msapplication-TileColor" content="#00aba9"><script>function normalizePath(_){for(;_.endsWith("/");)_=_.slice(0,-1);return`${_}/`}{let _="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.51.2/dist";_=normalizePath(_),window.CDN_HOST=_}try{let _=__DATA_HOST__;_=normalizePath(_),window.DATA_HOST=_}catch(_){window.DATA_HOST="/data/"}try{let _=__DATA_REGION__;window.DATA_REGION=_}catch(_){window.DATA_REGION="CN"}try{let _=__DEFAULT_LANG__;window.DEFAULT_LANG=_}catch(_){window.DEFAULT_LANG="en"}</script><script>!function(){localStorage.getItem("vueuse-color-scheme")||localStorage.setItem("vueuse-color-scheme","light");const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,o=localStorage.getItem("vueuse-color-scheme")||"auto";("dark"===o||e&&"light"!==o)&&document.documentElement.classList.toggle("dark",!0)}()</script><script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.51.2/dist/assets/index-d8432aad.js"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.51.2/dist/assets/index-9dd86d68.css"><link rel="manifest" href="/manifest.webmanifest"></head><body class="font-sans"><div id="app"></div><noscript>This website requires JavaScript to function properly. Please enable JavaScript to continue.</noscript><script>try{var umamiJSUrl=__UMAMI_JS_URL__,umamiWebsiteId=__UMAMI_WEBSITE_ID__;!function(){var e=document.createElement("script");e.src=umamiJSUrl,e.defer=!0,e.setAttribute("data-website-id",umamiWebsiteId);var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){}try{var plausibleJSUrl=__PLAUSIBLE_JS_URL__,plausibleDataDomain=__PLAUSIBLE_DATA_DOMAIN__;!function(){var e=document.createElement("script");e.src=plausibleJSUrl,e.defer=!0,e.setAttribute("data-domain",plausibleDataDomain);var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){}try{var baiduAnalyticsId=__BAIDU_ANALYTICS_ID__,_hmt=_hmt||[];!function(){var e=document.createElement("script");e.src=`https://hm.baidu.com/hm.js?${baiduAnalyticsId}`;var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){}try{var googleAnalyticsId=__GOOGLE_ANALYTICS_ID__;!function(){var e,t,a,r,c,n;location.port||(e=window,t=document,a="script",r="ga",e.GoogleAnalyticsObject=r,e[r]=e[r]||function(){(e[r].q=e[r].q||[]).push(arguments)},e[r].l=1*new Date,c=t.createElement(a),n=t.getElementsByTagName(a)[0],c.async=1,c.src="//www.google-analytics.com/analytics.js",n.parentNode.insertBefore(c,n),ga("create",`${googleAnalyticsId}`,"auto"),ga("send","pageview"))}()}catch(e){}</script></body></html>
|
package/dist/sw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(n,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let
|
|
1
|
+
if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(n,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let a={};const u=s=>l(s,r),t={module:{uri:r},exports:a,require:u};e[r]=Promise.all(n.map((s=>t[s]||u(s)))).then((s=>(i(...s),a)))}}define(["./workbox-86deb690"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/_...all_-198e3528.js",revision:null},{url:"assets/_...all_-61cb8860.js",revision:null},{url:"assets/_...all_-c60acc8c.css",revision:null},{url:"assets/_name_-f901a5ed.js",revision:null},{url:"assets/about-9fdb1313.js",revision:null},{url:"assets/Board-3491f2da.css",revision:null},{url:"assets/board-65f3126c.js",revision:null},{url:"assets/Board-a6a37adf.js",revision:null},{url:"assets/board-layout-598f9ee4.js",revision:null},{url:"assets/DataSourceInput.vue_vue_type_script_setup_true_lang-d2ea1ac6.js",revision:null},{url:"assets/en-c9a8dbb5.js",revision:null},{url:"assets/headless-e015e9d1.js",revision:null},{url:"assets/home-89f287c8.js",revision:null},{url:"assets/index-241beb5a.css",revision:null},{url:"assets/index-67b2a8c5.css",revision:null},{url:"assets/index-7af0a9ca.js",revision:null},{url:"assets/index-8e5373fd.js",revision:null},{url:"assets/index-9dd86d68.css",revision:null},{url:"assets/index-d8432aad.js",revision:null},{url:"assets/index-ea20d191.js",revision:null},{url:"assets/index-layout-60ef1a96.js",revision:null},{url:"assets/pagination-95a79aa6.js",revision:null},{url:"assets/query-67fd6c27.js",revision:null},{url:"assets/test-5c739ae1.js",revision:null},{url:"assets/TheInput.vue_vue_type_script_setup_true_lang-1ce252e6.js",revision:null},{url:"assets/user-03dfbe5d.js",revision:null},{url:"assets/virtual_pwa-register-6ca2d3a0.js",revision:null},{url:"assets/workbox-window.prod.es5-c46a1faa.js",revision:null},{url:"assets/zh-CN-8e545f66.js",revision:null},{url:"index.html",revision:"deec9e7b65e453899edd84352ba7cdb1"},{url:"favicon.svg",revision:"5a744f4ccbb122d4a0575be779ddcd43"},{url:"safari-pinned-tab.svg",revision:"5eaf74d1c43d30e0af743b68a3f48504"},{url:"balloon2-192x192.png",revision:"c857ae6d9dfae118ab4397d4358422bd"},{url:"balloon2-512x512.png",revision:"065594f4f743fe3884793c03d3fe7d9e"},{url:"manifest.webmanifest",revision:"3082e8d8ebc9619c6c1055ff243a02a8"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcpcio/board-app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.51.
|
|
4
|
+
"version": "0.51.2",
|
|
5
5
|
"description": "XCPCIO Board App",
|
|
6
6
|
"author": "Dup4 <lyuzhi.pan@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"vue-router": "^4.4.5",
|
|
54
54
|
"vue-search-select": "^3.2.0",
|
|
55
55
|
"vue-toast-notification": "^3.1.3",
|
|
56
|
-
"@xcpcio/
|
|
57
|
-
"@xcpcio/
|
|
56
|
+
"@xcpcio/types": "0.51.2",
|
|
57
|
+
"@xcpcio/core": "0.51.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@antfu/eslint-config": "^0.39.8",
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
"less": "^4.2.0",
|
|
79
79
|
"markdown-it-link-attributes": "^4.0.1",
|
|
80
80
|
"markdown-it-shiki": "^0.9.0",
|
|
81
|
-
"pnpm": "^8.15.9",
|
|
82
81
|
"shiki": "^0.14.7",
|
|
83
82
|
"taze": "^0.11.4",
|
|
84
83
|
"typescript": "^5.6.2",
|
|
@@ -99,7 +98,7 @@
|
|
|
99
98
|
"vite-plugin-webfont-dl": "^3.9.5",
|
|
100
99
|
"vite-ssg": "^0.23.8",
|
|
101
100
|
"vite-ssg-sitemap": "^0.5.1",
|
|
102
|
-
"vitest": "^
|
|
101
|
+
"vitest": "^2.1.2",
|
|
103
102
|
"vue-tsc": "^1.8.27",
|
|
104
103
|
"workbox-build": "^7.1.1",
|
|
105
104
|
"workbox-window": "^7.1.0"
|