@xcpcio/board-app 0.50.2 → 0.50.3

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.
Files changed (27) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/assets/{Board-38585e67.js → Board-8f2004f9.js} +1 -1
  3. package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-114e3155.js → DataSourceInput.vue_vue_type_script_setup_true_lang-011b0cca.js} +1 -1
  4. package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-bd5395e9.js → TheInput.vue_vue_type_script_setup_true_lang-b9065d2b.js} +1 -1
  5. package/dist/assets/{_...all_-0bc53d25.js → _...all_-77b5b693.js} +1 -1
  6. package/dist/assets/{_...all_-8c4ba3cf.js → _...all_-fbd699cb.js} +1 -1
  7. package/dist/assets/{_name_-a532ea53.js → _name_-746990f0.js} +1 -1
  8. package/dist/assets/{about-6f40b1d0.js → about-bd59929b.js} +1 -1
  9. package/dist/assets/{board-08dfd01a.js → board-096b9490.js} +1 -1
  10. package/dist/assets/{board-layout-74a77f38.js → board-layout-2d677ff8.js} +1 -1
  11. package/dist/assets/{headless-54fb8186.js → headless-c003417f.js} +1 -1
  12. package/dist/assets/{home-9515d6d7.js → home-cab2b0fb.js} +1 -1
  13. package/dist/assets/{index-de0376d5.js → index-2100889e.js} +1 -1
  14. package/dist/assets/index-4cb8a5a5.js +1 -0
  15. package/dist/assets/{index-0e85099d.js → index-943d13ca.js} +34 -34
  16. package/dist/assets/{index-67faeda8.js → index-ade098f2.js} +1 -1
  17. package/dist/assets/{index-layout-2b7977ec.js → index-layout-531f5aad.js} +1 -1
  18. package/dist/assets/{pagination-672f41c6.js → pagination-e1aadb74.js} +1 -1
  19. package/dist/assets/{query-61045468.js → query-4f249c18.js} +1 -1
  20. package/dist/assets/{test-3d1287e8.js → test-ef1fc0b2.js} +1 -1
  21. package/dist/assets/{user-3576d2ec.js → user-61a5b2f8.js} +1 -1
  22. package/dist/assets/{virtual_pwa-register-c4e95d0e.js → virtual_pwa-register-3f06d91c.js} +1 -1
  23. package/dist/index.html +1 -1
  24. package/dist/sw.js +1 -1
  25. package/package.json +3 -3
  26. package/vite.config.ts +2 -2
  27. package/dist/assets/index-3a723320.js +0 -1
@@ -1 +1 @@
1
- var Y=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var s=(i,t,e)=>(Y(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,r)=>(Y(i,t,"write to private field"),r?r.call(i,e):t.set(i,e),e);var f=(i,t,e)=>(Y(i,t,"access private method"),e);import{av as wt,aw as X,ax as St,ay as dt,az as ft,aA as Qt,aB as Et,aC as It,aD as pt,aE as Dt,aF as Ft,aG as Tt,aH as Ut,h as Z,aI as jt,aJ as xt,A as V,aK as yt,aL as Mt,aM as bt,aN as At,aO as Pt,aP as Lt,ai as gt}from"./index-0e85099d.js";var v,o,L,b,Q,U,O,$,j,x,E,I,w,M,D,P,W,tt,B,et,N,st,_,it,k,rt,z,nt,K,at,G,Ot,mt,$t=(mt=class extends wt{constructor(t,e){super();u(this,D);u(this,W);u(this,B);u(this,N);u(this,_);u(this,k);u(this,z);u(this,K);u(this,G);u(this,v,void 0);u(this,o,void 0);u(this,L,void 0);u(this,b,void 0);u(this,Q,void 0);u(this,U,void 0);u(this,O,void 0);u(this,$,void 0);u(this,j,void 0);u(this,x,void 0);u(this,E,void 0);u(this,I,void 0);u(this,w,void 0);u(this,M,new Set);this.options=e,l(this,v,t),l(this,O,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(s(this,o).addObserver(this),vt(s(this,o),this.options)?f(this,D,P).call(this):this.updateResult(),f(this,_,it).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ot(s(this,o),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ot(s(this,o),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,f(this,k,rt).call(this),f(this,z,nt).call(this),s(this,o).removeObserver(this)}setOptions(t,e){const r=this.options,a=s(this,o);if(this.options=s(this,v).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");f(this,K,at).call(this),s(this,o).setOptions(this.options),r._defaulted&&!X(this.options,r)&&s(this,v).getQueryCache().notify({type:"observerOptionsUpdated",query:s(this,o),observer:this});const n=this.hasListeners();n&&Rt(s(this,o),a,this.options,r)&&f(this,D,P).call(this),this.updateResult(e),n&&(s(this,o)!==a||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&f(this,W,tt).call(this);const c=f(this,B,et).call(this);n&&(s(this,o)!==a||this.options.enabled!==r.enabled||c!==s(this,w))&&f(this,N,st).call(this,c)}getOptimisticResult(t){const e=s(this,v).getQueryCache().build(s(this,v),t),r=this.createResult(e,t);return Bt(this,r)&&(l(this,b,r),l(this,U,this.options),l(this,Q,s(this,o).state)),r}getCurrentResult(){return s(this,b)}trackResult(t,e){const r={};return Object.keys(t).forEach(a=>{Object.defineProperty(r,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),e==null||e(a),t[a])})}),r}trackProp(t){s(this,M).add(t)}getCurrentQuery(){return s(this,o)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=s(this,v).defaultQueryOptions(t),r=s(this,v).getQueryCache().build(s(this,v),e);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,e))}fetch(t){return f(this,D,P).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),s(this,b)))}createResult(t,e){var lt;const r=s(this,o),a=this.options,n=s(this,b),c=s(this,Q),y=s(this,U),S=t!==r?t.state:s(this,L),{state:R}=t;let h={...R},d=!1,p;if(e._optimisticResults){const m=this.hasListeners(),J=!m&&vt(t,e),Ct=m&&Rt(t,r,e,a);(J||Ct)&&(h={...h,...It(R.data,t.options)}),e._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:F,errorUpdatedAt:A,status:g}=h;if(e.select&&h.data!==void 0)if(n&&h.data===(c==null?void 0:c.data)&&e.select===s(this,$))p=s(this,j);else try{l(this,$,e.select),p=e.select(h.data),p=pt(n==null?void 0:n.data,p,e),l(this,j,p),l(this,O,null)}catch(m){l(this,O,m)}else p=h.data;if(e.placeholderData!==void 0&&p===void 0&&g==="pending"){let m;if(n!=null&&n.isPlaceholderData&&e.placeholderData===(y==null?void 0:y.placeholderData))m=n.data;else if(m=typeof e.placeholderData=="function"?e.placeholderData((lt=s(this,x))==null?void 0:lt.state.data,s(this,x)):e.placeholderData,e.select&&m!==void 0)try{m=e.select(m),l(this,O,null)}catch(J){l(this,O,J)}m!==void 0&&(g="success",p=pt(n==null?void 0:n.data,m,e),d=!0)}s(this,O)&&(F=s(this,O),p=s(this,j),A=Date.now(),g="error");const T=h.fetchStatus==="fetching",q=g==="pending",H=g==="error",ut=q&&T,ct=p!==void 0;return{status:g,fetchStatus:h.fetchStatus,isPending:q,isSuccess:g==="success",isError:H,isInitialLoading:ut,isLoading:ut,data:p,dataUpdatedAt:h.dataUpdatedAt,error:F,errorUpdatedAt:A,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>S.dataUpdateCount||h.errorUpdateCount>S.errorUpdateCount,isFetching:T,isRefetching:T&&!q,isLoadingError:H&&!ct,isPaused:h.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:H&&ct,isStale:ht(t,e),refetch:this.refetch}}updateResult(t){const e=s(this,b),r=this.createResult(s(this,o),this.options);if(l(this,Q,s(this,o).state),l(this,U,this.options),s(this,Q).data!==void 0&&l(this,x,s(this,o)),X(r,e))return;l(this,b,r);const a={},n=()=>{if(!e)return!0;const{notifyOnChangeProps:c}=this.options,y=typeof c=="function"?c():c;if(y==="all"||!y&&!s(this,M).size)return!0;const C=new Set(y??s(this,M));return this.options.throwOnError&&C.add("error"),Object.keys(s(this,b)).some(S=>{const R=S;return s(this,b)[R]!==e[R]&&C.has(R)})};(t==null?void 0:t.listeners)!==!1&&n()&&(a.listeners=!0),f(this,G,Ot).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&f(this,_,it).call(this)}},v=new WeakMap,o=new WeakMap,L=new WeakMap,b=new WeakMap,Q=new WeakMap,U=new WeakMap,O=new WeakMap,$=new WeakMap,j=new WeakMap,x=new WeakMap,E=new WeakMap,I=new WeakMap,w=new WeakMap,M=new WeakMap,D=new WeakSet,P=function(t){f(this,K,at).call(this);let e=s(this,o).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(St)),e},W=new WeakSet,tt=function(){if(f(this,k,rt).call(this),dt||s(this,b).isStale||!ft(this.options.staleTime))return;const e=Qt(s(this,b).dataUpdatedAt,this.options.staleTime)+1;l(this,E,setTimeout(()=>{s(this,b).isStale||this.updateResult()},e))},B=new WeakSet,et=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(s(this,o)):this.options.refetchInterval)??!1},N=new WeakSet,st=function(t){f(this,z,nt).call(this),l(this,w,t),!(dt||this.options.enabled===!1||!ft(s(this,w))||s(this,w)===0)&&l(this,I,setInterval(()=>{(this.options.refetchIntervalInBackground||Et.isFocused())&&f(this,D,P).call(this)},s(this,w)))},_=new WeakSet,it=function(){f(this,W,tt).call(this),f(this,N,st).call(this,f(this,B,et).call(this))},k=new WeakSet,rt=function(){s(this,E)&&(clearTimeout(s(this,E)),l(this,E,void 0))},z=new WeakSet,nt=function(){s(this,I)&&(clearInterval(s(this,I)),l(this,I,void 0))},K=new WeakSet,at=function(){const t=s(this,v).getQueryCache().build(s(this,v),this.options);if(t===s(this,o))return;const e=s(this,o);l(this,o,t),l(this,L,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},G=new WeakSet,Ot=function(t){Dt.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(s(this,b))}),s(this,v).getQueryCache().notify({query:s(this,o),type:"observerResultsUpdated"})})},mt);function Wt(i,t){return t.enabled!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&t.retryOnMount===!1)}function vt(i,t){return Wt(i,t)||i.state.data!==void 0&&ot(i,t,t.refetchOnMount)}function ot(i,t,e){if(t.enabled!==!1){const r=typeof e=="function"?e(i):e;return r==="always"||r!==!1&&ht(i,t)}return!1}function Rt(i,t,e,r){return(i!==t||r.enabled===!1)&&(!e.suspense||i.state.status!=="error")&&ht(i,e)}function ht(i,t){return t.enabled!==!1&&i.isStaleByTime(t.staleTime)}function Bt(i,t){return!X(i.getCurrentResult(),t)}function Nt(i=""){if(!Ft())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Ut(i),e=Tt(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}function _t(i,t,e){const r=e||Nt(),a=Z(()=>{const d=jt(t);typeof d.enabled=="function"&&(d.enabled=d.enabled());const p=r.defaultQueryOptions(d);return p._optimisticResults=r.isRestoring.value?"isRestoring":"optimistic",p}),n=new i(r,a.value),c=xt(n.getCurrentResult());let y=()=>{};V(r.isRestoring,d=>{d||(y(),y=n.subscribe(p=>{yt(c,p)}))},{immediate:!0});const C=()=>{n.setOptions(a.value),yt(c,n.getCurrentResult())};V(a,C),Mt(()=>{y()});const S=(...d)=>(C(),c.refetch(...d)),R=()=>new Promise((d,p)=>{let F=()=>{};const A=()=>{if(a.value.enabled!==!1){n.setOptions(a.value);const g=n.getOptimisticResult(a.value);g.isStale?(F(),n.fetchOptimistic(a.value).then(d,T=>{bt(a.value.throwOnError,[T,n.getCurrentQuery()])?p(T):d(n.getCurrentResult())})):(F(),d(g))}};A(),F=V(a,A)});V(()=>c.error,d=>{if(c.isError&&!c.isFetching&&bt(a.value.throwOnError,[d,n.getCurrentQuery()]))throw d});const h=At(Pt(c));for(const d in c)typeof c[d]=="function"&&(h[d]=c[d]);return h.suspense=R,h.refetch=S,h}function kt(i,t){return _t($t,i,t)}const zt=3;async function Kt(i,t){const e=i.startsWith("/")?i.slice(1):i;let r=`${window.DATA_HOST}${e}`;i.startsWith("http")&&(r=i),r.endsWith("/")&&(r=r.slice(0,-1));const a=await fetch(`${r}/config.json?t=${t??0}`),n=await fetch(`${r}/team.json?t=${t??0}`),c=await fetch(`${r}/run.json?t=${t??0}`),{status:y,statusText:C}=a;if(y>=300||y<200)throw new Error(`fetch data failed. [status=${y}] [statusText=${C}]`);return Promise.all([a.json(),n.json(),c.json()]).then(R=>({contest:R[0],teams:R[1],submissions:R[2]}))}function Ht(i,t){let e=3e4,r=Z(()=>Math.floor(t.value.getTime()/1e3/10));return Lt.value==="I18N"&&(e=10*1e3,r=Z(()=>Math.floor(t.value.getTime()/1e3))),kt({queryKey:[i,r.value],queryFn:()=>Kt(i,r.value),retry:zt,staleTime:e,refetchInterval:e})}function Jt(){return gt("data-source","",{transform:String})}function Yt(){return gt("battle-of-giants","",{transform:String})}export{Yt as a,Jt as g,Ht as u};
1
+ var Y=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var s=(i,t,e)=>(Y(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,r)=>(Y(i,t,"write to private field"),r?r.call(i,e):t.set(i,e),e);var f=(i,t,e)=>(Y(i,t,"access private method"),e);import{av as wt,aw as X,ax as St,ay as dt,az as ft,aA as Qt,aB as Et,aC as It,aD as pt,aE as Dt,aF as Ft,aG as Tt,aH as Ut,h as Z,aI as jt,aJ as xt,A as V,aK as yt,aL as Mt,aM as bt,aN as At,aO as Pt,aP as Lt,ai as gt}from"./index-943d13ca.js";var v,o,L,b,Q,U,O,$,j,x,E,I,w,M,D,P,W,tt,B,et,N,st,_,it,k,rt,z,nt,K,at,G,Ot,mt,$t=(mt=class extends wt{constructor(t,e){super();u(this,D);u(this,W);u(this,B);u(this,N);u(this,_);u(this,k);u(this,z);u(this,K);u(this,G);u(this,v,void 0);u(this,o,void 0);u(this,L,void 0);u(this,b,void 0);u(this,Q,void 0);u(this,U,void 0);u(this,O,void 0);u(this,$,void 0);u(this,j,void 0);u(this,x,void 0);u(this,E,void 0);u(this,I,void 0);u(this,w,void 0);u(this,M,new Set);this.options=e,l(this,v,t),l(this,O,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(s(this,o).addObserver(this),vt(s(this,o),this.options)?f(this,D,P).call(this):this.updateResult(),f(this,_,it).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ot(s(this,o),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ot(s(this,o),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,f(this,k,rt).call(this),f(this,z,nt).call(this),s(this,o).removeObserver(this)}setOptions(t,e){const r=this.options,a=s(this,o);if(this.options=s(this,v).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");f(this,K,at).call(this),s(this,o).setOptions(this.options),r._defaulted&&!X(this.options,r)&&s(this,v).getQueryCache().notify({type:"observerOptionsUpdated",query:s(this,o),observer:this});const n=this.hasListeners();n&&Rt(s(this,o),a,this.options,r)&&f(this,D,P).call(this),this.updateResult(e),n&&(s(this,o)!==a||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&f(this,W,tt).call(this);const c=f(this,B,et).call(this);n&&(s(this,o)!==a||this.options.enabled!==r.enabled||c!==s(this,w))&&f(this,N,st).call(this,c)}getOptimisticResult(t){const e=s(this,v).getQueryCache().build(s(this,v),t),r=this.createResult(e,t);return Bt(this,r)&&(l(this,b,r),l(this,U,this.options),l(this,Q,s(this,o).state)),r}getCurrentResult(){return s(this,b)}trackResult(t,e){const r={};return Object.keys(t).forEach(a=>{Object.defineProperty(r,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),e==null||e(a),t[a])})}),r}trackProp(t){s(this,M).add(t)}getCurrentQuery(){return s(this,o)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=s(this,v).defaultQueryOptions(t),r=s(this,v).getQueryCache().build(s(this,v),e);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,e))}fetch(t){return f(this,D,P).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),s(this,b)))}createResult(t,e){var lt;const r=s(this,o),a=this.options,n=s(this,b),c=s(this,Q),y=s(this,U),S=t!==r?t.state:s(this,L),{state:R}=t;let h={...R},d=!1,p;if(e._optimisticResults){const m=this.hasListeners(),J=!m&&vt(t,e),Ct=m&&Rt(t,r,e,a);(J||Ct)&&(h={...h,...It(R.data,t.options)}),e._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:F,errorUpdatedAt:A,status:g}=h;if(e.select&&h.data!==void 0)if(n&&h.data===(c==null?void 0:c.data)&&e.select===s(this,$))p=s(this,j);else try{l(this,$,e.select),p=e.select(h.data),p=pt(n==null?void 0:n.data,p,e),l(this,j,p),l(this,O,null)}catch(m){l(this,O,m)}else p=h.data;if(e.placeholderData!==void 0&&p===void 0&&g==="pending"){let m;if(n!=null&&n.isPlaceholderData&&e.placeholderData===(y==null?void 0:y.placeholderData))m=n.data;else if(m=typeof e.placeholderData=="function"?e.placeholderData((lt=s(this,x))==null?void 0:lt.state.data,s(this,x)):e.placeholderData,e.select&&m!==void 0)try{m=e.select(m),l(this,O,null)}catch(J){l(this,O,J)}m!==void 0&&(g="success",p=pt(n==null?void 0:n.data,m,e),d=!0)}s(this,O)&&(F=s(this,O),p=s(this,j),A=Date.now(),g="error");const T=h.fetchStatus==="fetching",q=g==="pending",H=g==="error",ut=q&&T,ct=p!==void 0;return{status:g,fetchStatus:h.fetchStatus,isPending:q,isSuccess:g==="success",isError:H,isInitialLoading:ut,isLoading:ut,data:p,dataUpdatedAt:h.dataUpdatedAt,error:F,errorUpdatedAt:A,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>S.dataUpdateCount||h.errorUpdateCount>S.errorUpdateCount,isFetching:T,isRefetching:T&&!q,isLoadingError:H&&!ct,isPaused:h.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:H&&ct,isStale:ht(t,e),refetch:this.refetch}}updateResult(t){const e=s(this,b),r=this.createResult(s(this,o),this.options);if(l(this,Q,s(this,o).state),l(this,U,this.options),s(this,Q).data!==void 0&&l(this,x,s(this,o)),X(r,e))return;l(this,b,r);const a={},n=()=>{if(!e)return!0;const{notifyOnChangeProps:c}=this.options,y=typeof c=="function"?c():c;if(y==="all"||!y&&!s(this,M).size)return!0;const C=new Set(y??s(this,M));return this.options.throwOnError&&C.add("error"),Object.keys(s(this,b)).some(S=>{const R=S;return s(this,b)[R]!==e[R]&&C.has(R)})};(t==null?void 0:t.listeners)!==!1&&n()&&(a.listeners=!0),f(this,G,Ot).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&f(this,_,it).call(this)}},v=new WeakMap,o=new WeakMap,L=new WeakMap,b=new WeakMap,Q=new WeakMap,U=new WeakMap,O=new WeakMap,$=new WeakMap,j=new WeakMap,x=new WeakMap,E=new WeakMap,I=new WeakMap,w=new WeakMap,M=new WeakMap,D=new WeakSet,P=function(t){f(this,K,at).call(this);let e=s(this,o).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(St)),e},W=new WeakSet,tt=function(){if(f(this,k,rt).call(this),dt||s(this,b).isStale||!ft(this.options.staleTime))return;const e=Qt(s(this,b).dataUpdatedAt,this.options.staleTime)+1;l(this,E,setTimeout(()=>{s(this,b).isStale||this.updateResult()},e))},B=new WeakSet,et=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(s(this,o)):this.options.refetchInterval)??!1},N=new WeakSet,st=function(t){f(this,z,nt).call(this),l(this,w,t),!(dt||this.options.enabled===!1||!ft(s(this,w))||s(this,w)===0)&&l(this,I,setInterval(()=>{(this.options.refetchIntervalInBackground||Et.isFocused())&&f(this,D,P).call(this)},s(this,w)))},_=new WeakSet,it=function(){f(this,W,tt).call(this),f(this,N,st).call(this,f(this,B,et).call(this))},k=new WeakSet,rt=function(){s(this,E)&&(clearTimeout(s(this,E)),l(this,E,void 0))},z=new WeakSet,nt=function(){s(this,I)&&(clearInterval(s(this,I)),l(this,I,void 0))},K=new WeakSet,at=function(){const t=s(this,v).getQueryCache().build(s(this,v),this.options);if(t===s(this,o))return;const e=s(this,o);l(this,o,t),l(this,L,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},G=new WeakSet,Ot=function(t){Dt.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(s(this,b))}),s(this,v).getQueryCache().notify({query:s(this,o),type:"observerResultsUpdated"})})},mt);function Wt(i,t){return t.enabled!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&t.retryOnMount===!1)}function vt(i,t){return Wt(i,t)||i.state.data!==void 0&&ot(i,t,t.refetchOnMount)}function ot(i,t,e){if(t.enabled!==!1){const r=typeof e=="function"?e(i):e;return r==="always"||r!==!1&&ht(i,t)}return!1}function Rt(i,t,e,r){return(i!==t||r.enabled===!1)&&(!e.suspense||i.state.status!=="error")&&ht(i,e)}function ht(i,t){return t.enabled!==!1&&i.isStaleByTime(t.staleTime)}function Bt(i,t){return!X(i.getCurrentResult(),t)}function Nt(i=""){if(!Ft())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Ut(i),e=Tt(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}function _t(i,t,e){const r=e||Nt(),a=Z(()=>{const d=jt(t);typeof d.enabled=="function"&&(d.enabled=d.enabled());const p=r.defaultQueryOptions(d);return p._optimisticResults=r.isRestoring.value?"isRestoring":"optimistic",p}),n=new i(r,a.value),c=xt(n.getCurrentResult());let y=()=>{};V(r.isRestoring,d=>{d||(y(),y=n.subscribe(p=>{yt(c,p)}))},{immediate:!0});const C=()=>{n.setOptions(a.value),yt(c,n.getCurrentResult())};V(a,C),Mt(()=>{y()});const S=(...d)=>(C(),c.refetch(...d)),R=()=>new Promise((d,p)=>{let F=()=>{};const A=()=>{if(a.value.enabled!==!1){n.setOptions(a.value);const g=n.getOptimisticResult(a.value);g.isStale?(F(),n.fetchOptimistic(a.value).then(d,T=>{bt(a.value.throwOnError,[T,n.getCurrentQuery()])?p(T):d(n.getCurrentResult())})):(F(),d(g))}};A(),F=V(a,A)});V(()=>c.error,d=>{if(c.isError&&!c.isFetching&&bt(a.value.throwOnError,[d,n.getCurrentQuery()]))throw d});const h=At(Pt(c));for(const d in c)typeof c[d]=="function"&&(h[d]=c[d]);return h.suspense=R,h.refetch=S,h}function kt(i,t){return _t($t,i,t)}const zt=3;async function Kt(i,t){const e=i.startsWith("/")?i.slice(1):i;let r=`${window.DATA_HOST}${e}`;i.startsWith("http")&&(r=i),r.endsWith("/")&&(r=r.slice(0,-1));const a=await fetch(`${r}/config.json?t=${t??0}`),n=await fetch(`${r}/team.json?t=${t??0}`),c=await fetch(`${r}/run.json?t=${t??0}`),{status:y,statusText:C}=a;if(y>=300||y<200)throw new Error(`fetch data failed. [status=${y}] [statusText=${C}]`);return Promise.all([a.json(),n.json(),c.json()]).then(R=>({contest:R[0],teams:R[1],submissions:R[2]}))}function Ht(i,t){let e=3e4,r=Z(()=>Math.floor(t.value.getTime()/1e3/10));return Lt.value==="I18N"&&(e=10*1e3,r=Z(()=>Math.floor(t.value.getTime()/1e3))),kt({queryKey:[i,r.value],queryFn:()=>Kt(i,r.value),retry:zt,staleTime:e,refetchInterval:e})}function Jt(){return gt("data-source","",{transform:String})}function Yt(){return gt("battle-of-giants","",{transform:String})}export{Yt as a,Jt as g,Ht as u};
@@ -1 +1 @@
1
- import{_ as m}from"./TheInput.vue_vue_type_script_setup_true_lang-bd5395e9.js";import{g as _,i as p,M as f,n as h,o as b,c as v,d as e,t as n,j as o,b as y,N as x,O as g,y as l}from"./index-0e85099d.js";import{u as w}from"./user-3576d2ec.js";const V={flex:"","flex-col":"","justify-center":"","items-center":""},k=e("div",{"text-4xl":""},[e("div",{"i-carbon-campsite":""})],-1),I=e("p",null,[e("a",{rel:"noreferrer",href:"https://github.com/antfu/vitesse",target:"_blank"}," Vitesse ")],-1),N={"text-sm":"","opacity-75":""},B=e("div",{"py-4":""},null,-1),C={"w-48":""},K={class:"hidden",for:"input"},R=["disabled"],U=_({name:"IndexPage",__name:"test",setup(j){const r=w(),t=p(r.savedName),c=f();function a(){t.value&&c.push(`/hi/${encodeURIComponent(t.value)}`)}const{t:s}=h();return(S,i)=>{const d=m;return b(),v("div",V,[k,I,e("p",null,[e("em",N,n(o(s)("intro.desc")),1)]),B,e("div",C,[y(d,{modelValue:o(t),"onUpdate:modelValue":i[0]||(i[0]=u=>x(t)?t.value=u:null),placeholder:o(s)("intro.whats-your-name"),autocomplete:"false",onKeydown:g(a,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),e("label",K,n(o(s)("intro.whats-your-name")),1)]),e("div",null,[e("button",{"m-3":"","text-sm":"",btn:"",disabled:!o(t),onClick:a},n(o(s)("button.go")),9,R)])])}}});typeof l=="function"&&l(U);export{U as default};
1
+ import{_ as m}from"./TheInput.vue_vue_type_script_setup_true_lang-b9065d2b.js";import{g as _,i as p,M as f,n as h,o as b,c as v,d as e,t as n,j as o,b as y,N as x,O as g,y as l}from"./index-943d13ca.js";import{u as w}from"./user-61a5b2f8.js";const V={flex:"","flex-col":"","justify-center":"","items-center":""},k=e("div",{"text-4xl":""},[e("div",{"i-carbon-campsite":""})],-1),I=e("p",null,[e("a",{rel:"noreferrer",href:"https://github.com/antfu/vitesse",target:"_blank"}," Vitesse ")],-1),N={"text-sm":"","opacity-75":""},B=e("div",{"py-4":""},null,-1),C={"w-48":""},K={class:"hidden",for:"input"},R=["disabled"],U=_({name:"IndexPage",__name:"test",setup(j){const r=w(),t=p(r.savedName),c=f();function a(){t.value&&c.push(`/hi/${encodeURIComponent(t.value)}`)}const{t:s}=h();return(S,i)=>{const d=m;return b(),v("div",V,[k,I,e("p",null,[e("em",N,n(o(s)("intro.desc")),1)]),B,e("div",C,[y(d,{modelValue:o(t),"onUpdate:modelValue":i[0]||(i[0]=u=>x(t)?t.value=u:null),placeholder:o(s)("intro.whats-your-name"),autocomplete:"false",onKeydown:g(a,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),e("label",K,n(o(s)("intro.whats-your-name")),1)]),e("div",null,[e("button",{"m-3":"","text-sm":"",btn:"",disabled:!o(t),onClick:a},n(o(s)("button.go")),9,R)])])}}});typeof l=="function"&&l(U);export{U as default};
@@ -1 +1 @@
1
- import{aT as m,i as r,h as t}from"./index-0e85099d.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
+ import{aT as m,i as r,h as t}from"./index-943d13ca.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{_ as u}from"./index-0e85099d.js";function p(d={}){const{immediate:l=!1,onNeedRefresh:v,onOfflineReady:t,onRegistered:r,onRegisteredSW:o,onRegisterError:s}=d;let i,n;const c=async(a=!0)=>{await n};async function f(){if("serviceWorker"in navigator){const{Workbox:a}=await u(()=>import("./workbox-window.prod.es5-a7b12eab.js"),[],import.meta.url);i=new a("/sw.js",{scope:"/",type:"classic"}),i.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),i.addEventListener("installed",e=>{e.isUpdate||t==null||t()}),i.register({immediate:l}).then(e=>{o?o("/sw.js",e):r==null||r(e)}).catch(e=>{s==null||s(e)})}}return n=f(),c}export{p as registerSW};
1
+ import{_ as u}from"./index-943d13ca.js";function p(d={}){const{immediate:l=!1,onNeedRefresh:v,onOfflineReady:t,onRegistered:r,onRegisteredSW:o,onRegisterError:s}=d;let i,n;const c=async(a=!0)=>{await n};async function f(){if("serviceWorker"in navigator){const{Workbox:a}=await u(()=>import("./workbox-window.prod.es5-a7b12eab.js"),[],import.meta.url);i=new a("/sw.js",{scope:"/",type:"classic"}),i.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),i.addEventListener("installed",e=>{e.isUpdate||t==null||t()}),i.register({immediate:l}).then(e=>{o?o("/sw.js",e):r==null||r(e)}).catch(e=>{s==null||s(e)})}}return n=f(),c}export{p 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.50.2/dist/balloon-192x192.png"><link rel="mask-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.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.50.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.50.2/dist/assets/index-0e85099d.js"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/index-e6cdf581.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>
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.50.3/dist/balloon-192x192.png"><link rel="mask-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.3/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.50.3/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.50.3/dist/assets/index-943d13ca.js"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.3/dist/assets/index-e6cdf581.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 u={};const a=s=>l(s,r),t={module:{uri:r},exports:u,require:a};e[r]=Promise.all(n.map((s=>t[s]||a(s)))).then((s=>(i(...s),u)))}}define(["./workbox-b8d87ee1"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/_...all_-0bc53d25.js",revision:null},{url:"assets/_...all_-8c4ba3cf.js",revision:null},{url:"assets/_...all_-c60acc8c.css",revision:null},{url:"assets/_name_-a532ea53.js",revision:null},{url:"assets/about-6f40b1d0.js",revision:null},{url:"assets/board-08dfd01a.js",revision:null},{url:"assets/Board-24564942.css",revision:null},{url:"assets/Board-38585e67.js",revision:null},{url:"assets/board-layout-74a77f38.js",revision:null},{url:"assets/DataSourceInput.vue_vue_type_script_setup_true_lang-114e3155.js",revision:null},{url:"assets/en-c9a8dbb5.js",revision:null},{url:"assets/headless-54fb8186.js",revision:null},{url:"assets/home-9515d6d7.js",revision:null},{url:"assets/index-0e85099d.js",revision:null},{url:"assets/index-241beb5a.css",revision:null},{url:"assets/index-3a723320.js",revision:null},{url:"assets/index-67b2a8c5.css",revision:null},{url:"assets/index-67faeda8.js",revision:null},{url:"assets/index-de0376d5.js",revision:null},{url:"assets/index-e6cdf581.css",revision:null},{url:"assets/index-layout-2b7977ec.js",revision:null},{url:"assets/pagination-672f41c6.js",revision:null},{url:"assets/query-61045468.js",revision:null},{url:"assets/test-3d1287e8.js",revision:null},{url:"assets/TheInput.vue_vue_type_script_setup_true_lang-bd5395e9.js",revision:null},{url:"assets/user-3576d2ec.js",revision:null},{url:"assets/virtual_pwa-register-c4e95d0e.js",revision:null},{url:"assets/workbox-window.prod.es5-a7b12eab.js",revision:null},{url:"assets/zh-CN-8e545f66.js",revision:null},{url:"index.html",revision:"3d0e5994a342a610592c018b2e2301a0"},{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")))}));
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 u={};const a=s=>l(s,r),t={module:{uri:r},exports:u,require:a};e[r]=Promise.all(n.map((s=>t[s]||a(s)))).then((s=>(i(...s),u)))}}define(["./workbox-b8d87ee1"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/_...all_-77b5b693.js",revision:null},{url:"assets/_...all_-c60acc8c.css",revision:null},{url:"assets/_...all_-fbd699cb.js",revision:null},{url:"assets/_name_-746990f0.js",revision:null},{url:"assets/about-bd59929b.js",revision:null},{url:"assets/board-096b9490.js",revision:null},{url:"assets/Board-24564942.css",revision:null},{url:"assets/Board-8f2004f9.js",revision:null},{url:"assets/board-layout-2d677ff8.js",revision:null},{url:"assets/DataSourceInput.vue_vue_type_script_setup_true_lang-011b0cca.js",revision:null},{url:"assets/en-c9a8dbb5.js",revision:null},{url:"assets/headless-c003417f.js",revision:null},{url:"assets/home-cab2b0fb.js",revision:null},{url:"assets/index-2100889e.js",revision:null},{url:"assets/index-241beb5a.css",revision:null},{url:"assets/index-4cb8a5a5.js",revision:null},{url:"assets/index-67b2a8c5.css",revision:null},{url:"assets/index-943d13ca.js",revision:null},{url:"assets/index-ade098f2.js",revision:null},{url:"assets/index-e6cdf581.css",revision:null},{url:"assets/index-layout-531f5aad.js",revision:null},{url:"assets/pagination-e1aadb74.js",revision:null},{url:"assets/query-4f249c18.js",revision:null},{url:"assets/test-ef1fc0b2.js",revision:null},{url:"assets/TheInput.vue_vue_type_script_setup_true_lang-b9065d2b.js",revision:null},{url:"assets/user-61a5b2f8.js",revision:null},{url:"assets/virtual_pwa-register-3f06d91c.js",revision:null},{url:"assets/workbox-window.prod.es5-a7b12eab.js",revision:null},{url:"assets/zh-CN-8e545f66.js",revision:null},{url:"index.html",revision:"0326aa9ab4646b8b85af180c6274b770"},{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.50.2",
4
+ "version": "0.50.3",
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.2.4",
54
54
  "vue-search-select": "^3.1.2",
55
55
  "vue-toast-notification": "^3",
56
- "@xcpcio/types": "0.50.2",
57
- "@xcpcio/core": "0.50.2"
56
+ "@xcpcio/types": "0.50.3",
57
+ "@xcpcio/core": "0.50.3"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@antfu/eslint-config": "^0.39.8",
package/vite.config.ts CHANGED
@@ -21,8 +21,8 @@ import { createHtmlPlugin } from "vite-plugin-html";
21
21
  import packageJSON from "./package.json";
22
22
 
23
23
  const proxyConfig = {
24
- // target: "https://board.xcpcio.com",
25
- target: "http://127.0.0.1:8080",
24
+ target: "https://board.xcpcio.com",
25
+ // target: "http://127.0.0.1:8080",
26
26
  changeOrigin: true,
27
27
  };
28
28
 
@@ -1 +0,0 @@
1
- import{g as w,h as b,i as d,u as U,o,c as t,j as e,D as V,d as s,G as C,t as v,k as h,p as E,H as S,n as F,z as A,A as O,B as R,I as G,J as H,K as J,F as j,s as K,v as M,L as Q,b as B,a as X,y as D}from"./index-0e85099d.js";import{u as q,g as P}from"./query-61045468.js";import{_ as W}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-114e3155.js";import"./TheInput.vue_vue_type_script_setup_true_lang-bd5395e9.js";const Y={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":""},Z={class:"resolver-team-name",truncate:"","overflow-hidden":""},ee=s("div",{flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},null,-1),oe={"w-32":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},te=w({__name:"BalloonBlock",props:{index:{},balloon:{}},setup(m){const n=m,i=b(()=>n.index),a=b(()=>n.balloon),l=d(null),r=U(l);function p(c){return[c.location,c.organization,c.name].filter(k=>k).join(" - ")}const f=b(()=>a.value.problem.balloonColor);return(c,y)=>(o(),t("div",{ref_key:"el",ref:l,"h-24":""},[e(r)?(o(),t("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:V([e(i)%2===0?"bg-resolver-bg-zero":"bg-resolver-bg-one"])},[s("div",{"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":"",style:C({backgroundColor:e(f).background_color})},[s("div",{style:C({color:e(f).color})},v(e(a).problem.label),5)],4),s("div",Y,[s("div",Z,v(p(e(a).team)),1),ee]),s("div",oe,v(e(a).submission.timestampToMinute),1)],2)):h("",!0)],512))}}),se={class:"bg-[#323443]","text-gray-200":""},ne={key:0},ae={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},le={key:0},re={key:1},ce={flex:"","flex-col":"","justify-between":""},ie=w({__name:"Balloon",props:{dataSourceUrl:null},setup(m){const n=m,i=E(S),{t:a}=F(),l=d(!1),r=d({}),p=d([]),f=d([]),c=d({}),y=A();function k(){const _=new Q(r.value,p.value,f.value);_.buildBalloons(),c.value=_}const{data:u,isError:N,error:T}=q(n.dataSourceUrl,y);O(u,async()=>{var _,g,x;u.value===null||u.value===void 0||(r.value=R((_=u.value)==null?void 0:_.contest),i.value=`${r.value.name} | ${S}`,p.value=G((g=u.value)==null?void 0:g.teams),f.value=H((x=u.value)==null?void 0:x.submissions),k(),l.value=!0)});const z=b(()=>c.value.balloons.sort(J.compare).reverse().slice(0,256));return(_,g)=>{const x=te;return o(),t("div",se,[e(l)?(o(),t("div",re,[s("div",ce,[(o(!0),t(j,null,K(e(z),($,I)=>(o(),M(x,{key:$.key,index:I,balloon:$},null,8,["index","balloon"]))),128))])])):(o(),t("div",ne,[s("div",ae,[s("div",null,v(e(a)("common.loading"))+"... ",1),e(N)?(o(),t("div",le,v(e(T)),1)):h("",!0)])]))])}}}),ue={key:0},_e={"mt-20":""},de={key:1},me=w({__name:"CustomBalloon",setup(m){const n=P();return(i,a)=>{const l=W,r=ie;return o(),t(j,null,[e(n).length===0?(o(),t("div",ue,[s("div",_e,[B(l)])])):h("",!0),e(n).length>0?(o(),t("div",de,[B(r,{"data-source-url":e(n)},null,8,["data-source-url"])])):h("",!0)],64)}}}),L={};function fe(m,n){const i=me;return o(),t("div",null,[B(i)])}typeof D=="function"&&D(L);const he=X(L,[["render",fe]]);export{he as default};