@xcpcio/board-app 0.58.3 → 0.60.0
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/Balloon.vue_vue_type_script_setup_true_lang-C6oZahdv.js +1 -0
- package/dist/assets/{Board-bfV2AXzG.css → Board-DXbI9neC.css} +1 -1
- package/dist/assets/Board-DovAO4Mu.js +160 -0
- package/dist/assets/ContestStateBadge-soRqulZS.js +1 -0
- package/dist/assets/Countdown-D2ppGGLX.js +1 -0
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-BSD2nOLI.js → DataSourceInput.vue_vue_type_script_setup_true_lang-kJJ5LcaD.js} +1 -1
- package/dist/assets/Footer.vue_vue_type_script_setup_true_lang-h_cLHQgz.js +1 -0
- package/dist/assets/NavBar-CcnJ2cge.css +1 -0
- package/dist/assets/NavBar-Db-2bUQa.js +1 -0
- package/dist/assets/Resolver-CT8TRsWI.js +22 -0
- package/dist/assets/{RightArrowIcon-T3TF8_rk.js → RightArrowIcon-wpNsrEjv.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-BWpongzC.js → TheInput.vue_vue_type_script_setup_true_lang-Eo--8z_e.js} +1 -1
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-Dz7zNI7K.js → Tooltip.vue_vue_type_script_setup_true_lang-YFiK3KHD.js} +1 -1
- package/dist/assets/_...all_-f8Z5ZdeB.js +1 -0
- package/dist/assets/_...all_-kxYzml7z.js +6 -0
- package/dist/assets/{_name_-ClyI30XE.js → _name_-IhHUMucH.js} +1 -1
- package/dist/assets/{about-BV57MLHG.js → about-Bi56EKqb.js} +1 -1
- package/dist/assets/board-2imHcuqa.js +1 -0
- package/dist/assets/board-layout-Dv9kVbfh.js +1 -0
- package/dist/assets/{constant-BHEvsV-t.js → constant-DAnT2gcW.js} +1 -1
- package/dist/assets/contest-CmhGi5GX.js +39 -0
- package/dist/assets/dayjs-CJBmrKAq.js +1 -0
- package/dist/assets/default-B2tsSga6.js +1 -0
- package/dist/assets/{headless-DFTRHIoQ.js → headless-D7YRIgg8.js} +1 -1
- package/dist/assets/home-BToYn0H2.js +1 -0
- package/dist/assets/index-B2VET1_I.js +1 -0
- package/dist/assets/{index-B3EUeOPq.js → index-BNOo90nu.js} +4 -4
- package/dist/assets/index-CHBwbgGj.js +1 -0
- package/dist/assets/{index-kywOXmCz.css → index-CREIPGSZ.css} +1 -1
- package/dist/assets/index-DhTVZZ9u.js +1 -0
- package/dist/assets/{index-CQhfGh-j.js → index-RxxNhn0e.js} +3 -3
- package/dist/assets/index-layout-78wTk6Fj.js +1 -0
- package/dist/assets/{index-6t7LBg_a.js → index-q3HWYEPg.js} +1 -1
- package/dist/assets/{pagination-BqXCsqCF.js → pagination-Dnx4Nats.js} +3 -3
- package/dist/assets/query-D9FW_Yec.js +1 -0
- package/dist/assets/rank-DrF0MN_o.js +1 -0
- package/dist/assets/{test-DypsErYH.js → test-yIsv8BB-.js} +1 -1
- package/dist/assets/{use-vmodel-B7MHtQGY.js → use-vmodel-c-1x5v4Y.js} +1 -1
- package/dist/assets/{user-CWmd0Y8g.js → user-LMkuYIst.js} +1 -1
- package/dist/assets/{virtual_pwa-register-DgX7z6s_.js → virtual_pwa-register-CVvHW-l_.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/manifest.webmanifest +1 -1
- package/dist/sw.js +1 -1
- package/package.json +10 -13
- package/src/components/Balloon.vue +2 -2
- package/src/components/ContestIndexUI.vue +2 -2
- package/src/components/CustomBalloon.vue +1 -1
- package/src/components/CustomBoard.vue +1 -1
- package/src/components/CustomCountdown.vue +1 -1
- package/src/components/CustomResolver.vue +1 -1
- package/src/components/DataSourceInput.vue +1 -1
- package/src/components/NavBar.vue +1 -1
- package/src/components/board/AnimatedSubmissionBlock.vue +3 -3
- package/src/components/board/AnimatedSubmissionsModal.vue +2 -2
- package/src/components/board/Board.vue +5 -5
- package/src/components/board/SubmissionsTable.vue +3 -3
- package/src/components/rating/RatingTable.vue +2 -2
- package/src/components/table/TablePagination.vue +1 -1
- package/src/modules/README.md +2 -2
- package/src/modules/i18n.ts +1 -1
- package/src/modules/nprogress.ts +1 -1
- package/src/modules/pinia.ts +1 -1
- package/src/modules/pwa.ts +1 -1
- package/src/modules/toast.ts +1 -1
- package/src/pages/index.vue +4 -4
- package/tsconfig.json +3 -15
- package/vite.config.ts +2 -3
- package/dist/_headers +0 -3
- package/dist/assets/Balloon.vue_vue_type_script_setup_true_lang-BKveHasS.js +0 -1
- package/dist/assets/Board-sEPnOK2-.js +0 -1
- package/dist/assets/ContestStateBadge-C-CRP-tQ.js +0 -1
- package/dist/assets/Countdown-CeS_BWZv.js +0 -1
- package/dist/assets/Footer.vue_vue_type_script_setup_true_lang-B86U4ciI.js +0 -1
- package/dist/assets/NavBar-C0cqpBnK.css +0 -1
- package/dist/assets/NavBar-D31YQkhO.js +0 -1
- package/dist/assets/Resolver-CRFhNOx4.js +0 -22
- package/dist/assets/_...all_-C40TUx5u.js +0 -1
- package/dist/assets/_...all_-CCcLuoMG.js +0 -6
- package/dist/assets/board-DJeGN7R7.js +0 -1
- package/dist/assets/board-layout-BzOSZI4M.js +0 -1
- package/dist/assets/default-CavolZov.js +0 -1
- package/dist/assets/home-BlfNlQZp.js +0 -1
- package/dist/assets/index-B-HgEno7.js +0 -1
- package/dist/assets/index-BEWvW0Ov.js +0 -1
- package/dist/assets/index-C3xW_99q.js +0 -1
- package/dist/assets/index-D6OpkRje.js +0 -1
- package/dist/assets/index-Df2L9kBl.js +0 -198
- package/dist/assets/index-DjL7tCTU.js +0 -1
- package/dist/assets/index-layout-D9jzayF1.js +0 -1
- package/dist/assets/query-CYkuXIy7.js +0 -1
- package/public/_headers +0 -3
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as p}from"./Countdown-CeS_BWZv.js";import{_ as d}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-BSD2nOLI.js";import{g as f}from"./query-CYkuXIy7.js";import{d as l,c as t,o as e,F as h,q as s,h as n,b as C,a as r}from"./index-B3EUeOPq.js";import{b as a}from"./route-block-B_A1xBdJ.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-Df2L9kBl.js";import"./index-BEWvW0Ov.js";import"./constant-BHEvsV-t.js";import"./TheInput.vue_vue_type_script_setup_true_lang-BWpongzC.js";import"./use-vmodel-B7MHtQGY.js";import"./index-C3xW_99q.js";const k={key:0},x={"mt-20":""},v={key:1},b=l({__name:"CustomCountdown",setup(m){const o=f();return(c,y)=>{const i=d,u=p;return e(),t(h,null,[n(o).length===0?(e(),t("div",k,[C("div",x,[r(i)])])):s("",!0),n(o).length>0?(e(),t("div",v,[r(u,{"data-source-url":n(o)},null,8,["data-source-url"])])):s("",!0)],64)}}}),_={};function w(m,o){const c=b;return e(),t("div",null,[r(c)])}typeof a=="function"&&a(_);const z=g(_,[["render",w]]);export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as n}from"./Footer.vue_vue_type_script_setup_true_lang-B86U4ciI.js";import{_ as s}from"./NavBar-D31YQkhO.js";import{_ as a}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c,o as _,a as o,b as m,r as p,F as i}from"./index-B3EUeOPq.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-Dz7zNI7K.js";import"./constant-BHEvsV-t.js";import"./index-BEWvW0Ov.js";const l={},f={class:"lg:mt-[-52px]","py-2":"","text-gray-700":"","dark:text-gray-200":""};function d(u,x){const e=s,t=p("RouterView"),r=n;return _(),c(i,null,[o(e,{width:"sm:w-[1024px] lg:w-screen"}),m("main",f,[o(t),o(r,{class:"sm:w-[1024px] lg:w-screen"})])],64)}const F=a(l,[["render",d]]);export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as V,a5 as j,a6 as d,a7 as D,a8 as w,a9 as z,aa as k,ab as M,ac as H,ad as T,ae as K,af as G,ag as L,ah as Y,ai as J,aj as X,ak as Z,f as W,al as q,am as tt,an as et,C as Q,ao as $,ap as st,aq as A,ar as it,as as nt,at as rt}from"./index-B3EUeOPq.js";import{a as at}from"./constant-BHEvsV-t.js";import{u as B}from"./index-C3xW_99q.js";var ot=class extends V{constructor(t,e){super(),this.options=e,this.#s=t,this.#n=null,this.#i=j(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#a;#l;#i;#n;#b;#c;#f;#o;#h;#r;#d=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),_(this.#t,this.options)?this.#u():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return U(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return U(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#O(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,i=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof d(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),e._defaulted&&!D(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&N(this.#t,i,this.options,e)&&this.#u(),this.updateResult(),s&&(this.#t!==i||d(this.options.enabled,this.#t)!==d(e.enabled,this.#t)||w(this.options.staleTime,this.#t)!==w(e.staleTime,this.#t))&&this.#v();const n=this.#m();s&&(this.#t!==i||d(this.options.enabled,this.#t)!==d(e.enabled,this.#t)||n!==this.#r)&&this.#R(n)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),i=this.createResult(e,t);return ut(this,i)&&(this.#e=i,this.#l=this.options,this.#a=this.#t.state),i}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),e?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(t){this.#d.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),i=this.#s.getQueryCache().build(this.#s,e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return this.#u({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#u(t){this.#w();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(z)),e}#v(){this.#g();const t=w(this.options.staleTime,this.#t);if(k||this.#e.isStale||!M(t))return;const i=H(this.#e.dataUpdatedAt,t)+1;this.#o=T.setTimeout(()=>{this.#e.isStale||this.updateResult()},i)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#R(t){this.#O(),this.#r=t,!(k||d(this.options.enabled,this.#t)===!1||!M(this.#r)||this.#r===0)&&(this.#h=T.setInterval(()=>{(this.options.refetchIntervalInBackground||K.isFocused())&&this.#u()},this.#r))}#y(){this.#v(),this.#R(this.#m())}#g(){this.#o&&(T.clearTimeout(this.#o),this.#o=void 0)}#O(){this.#h&&(T.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const i=this.#t,s=this.options,n=this.#e,a=this.#a,u=this.#l,v=t!==i?t.state:this.#p,{state:g}=t;let r={...g},S=!1,h;if(e._optimisticResults){const c=this.hasListeners(),C=!c&&_(t,e),y=c&&N(t,i,e,s);(C||y)&&(r={...r,...G(g.data,t.options)}),e._optimisticResults==="isRestoring"&&(r.fetchStatus="idle")}let{error:o,errorUpdatedAt:b,status:f}=r;h=r.data;let O=!1;if(e.placeholderData!==void 0&&h===void 0&&f==="pending"){let c;n?.isPlaceholderData&&e.placeholderData===u?.placeholderData?(c=n.data,O=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#f?.state.data,this.#f):e.placeholderData,c!==void 0&&(f="success",h=L(n?.data,c,e),S=!0)}if(e.select&&h!==void 0&&!O)if(n&&h===a?.data&&e.select===this.#b)h=this.#c;else try{this.#b=e.select,h=e.select(h),h=L(n?.data,h,e),this.#c=h,this.#n=null}catch(c){this.#n=c}this.#n&&(o=this.#n,h=this.#c,b=Date.now(),f="error");const m=r.fetchStatus==="fetching",R=f==="pending",E=f==="error",P=R&&m,x=h!==void 0,p={status:f,fetchStatus:r.fetchStatus,isPending:R,isSuccess:f==="success",isError:E,isInitialLoading:P,isLoading:P,data:h,dataUpdatedAt:r.dataUpdatedAt,error:o,errorUpdatedAt:b,failureCount:r.fetchFailureCount,failureReason:r.fetchFailureReason,errorUpdateCount:r.errorUpdateCount,isFetched:r.dataUpdateCount>0||r.errorUpdateCount>0,isFetchedAfterMount:r.dataUpdateCount>v.dataUpdateCount||r.errorUpdateCount>v.errorUpdateCount,isFetching:m,isRefetching:m&&!R,isLoadingError:E&&!x,isPaused:r.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:E&&x,isStale:F(t,e),refetch:this.refetch,promise:this.#i,isEnabled:d(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=I=>{p.status==="error"?I.reject(p.error):p.data!==void 0&&I.resolve(p.data)},C=()=>{const I=this.#i=p.promise=j();c(I)},y=this.#i;switch(y.status){case"pending":t.queryHash===i.queryHash&&c(y);break;case"fulfilled":(p.status==="error"||p.data!==y.value)&&C();break;case"rejected":(p.status!=="error"||p.error!==y.reason)&&C();break}}return p}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#l=this.options,this.#a.data!==void 0&&(this.#f=this.#t),D(e,t))return;this.#e=e;const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,n=typeof s=="function"?s():s;if(n==="all"||!n&&!this.#d.size)return!0;const a=new Set(n??this.#d);return this.options.throwOnError&&a.add("error"),Object.keys(this.#e).some(u=>{const l=u;return this.#e[l]!==t[l]&&a.has(l)})};this.#S({listeners:i()})}#w(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#S(t){Y.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ht(t,e){return d(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function _(t,e){return ht(t,e)||t.state.data!==void 0&&U(t,e,e.refetchOnMount)}function U(t,e,i){if(d(e.enabled,t)!==!1&&w(e.staleTime,t)!=="static"){const s=typeof i=="function"?i(t):i;return s==="always"||s!==!1&&F(t,e)}return!1}function N(t,e,i,s){return(t!==e||d(s.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&F(t,i)}function F(t,e){return d(e.enabled,t)!==!1&&t.isStaleByTime(w(e.staleTime,t))}function ut(t,e){return!D(t.getCurrentResult(),e)}function lt(t=""){if(!J())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const e=Z(t),i=X(e);if(!i)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return i}function ct(t,e,i){const s=lt(),n=W(()=>{const o=q(e);typeof o.enabled=="function"&&(o.enabled=o.enabled());const b=s.defaultQueryOptions(o);return b._optimisticResults=s.isRestoring?.value?"isRestoring":"optimistic",b}),a=new t(s,n.value),u=n.value.shallow?tt(a.getCurrentResult()):et(a.getCurrentResult());let l=()=>{};s.isRestoring&&Q(s.isRestoring,o=>{o||(l(),l=a.subscribe(b=>{$(u,b)}))},{immediate:!0});const v=()=>{a.setOptions(n.value),$(u,a.getCurrentResult())};Q(n,v),st(()=>{l()});const g=(...o)=>(v(),u.refetch(...o)),r=()=>new Promise((o,b)=>{let f=()=>{};const O=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const m=a.getOptimisticResult(n.value);m.isStale?(f(),a.fetchOptimistic(n.value).then(o,R=>{A(n.value.throwOnError,[R,a.getCurrentQuery()])?b(R):o(a.getCurrentResult())})):(f(),o(m))}};O(),f=Q(n,O)});Q(()=>u.error,o=>{if(u.isError&&!u.isFetching&&A(n.value.throwOnError,[o,a.getCurrentQuery()]))throw o});const S=n.value.shallow?it(u):nt(u),h=rt(S);for(const o in u)typeof u[o]=="function"&&(h[o]=u[o]);return h.suspense=r,h.refetch=g,h}function ft(t,e){return ct(ot,t)}const dt=3;async function pt(t,e){const i=t.startsWith("/")?t.slice(1):t;let s=`${window.DATA_HOST}${i}`;const n={allInOne:!1};if(s.includes("#")){const r=new URLSearchParams(s.split("#")[1]);n.allInOne=r.get("allInOne")==="true",s=s.split("#")[0]}t.startsWith("http")&&(s=t),s.endsWith("/")&&(s=s.slice(0,-1));const a=r=>r.includes("?")?`${r}&t=${e??0}`:`${r}?t=${e??0}`,u=n.allInOne?[await fetch(a(s))]:[await fetch(a(`${s}/config.json`)),await fetch(a(`${s}/team.json`)),await fetch(a(`${s}/run.json`))],{status:l,statusText:v}=u[0];if(l>=300||l<200)throw new Error(`fetch data failed. [status=${l}] [statusText=${v}]`);return Promise.all(u.map(r=>r.json())).then(r=>n.allInOne?r[0]:{contest:r[0],teams:r[1],submissions:r[2]})}function yt(t,e,i=!1){let s=3e4,n=s;const a=W(()=>Math.floor(e.value.getTime()/1e3/10));return at.value==="I18N"&&(s=10*1e3,n=s),i&&(s=Number.POSITIVE_INFINITY,n=!1),ft({queryKey:[t,a.value],queryFn:()=>pt(t,a.value),retry:dt,staleTime:s,refetchInterval:n})}function gt(){return B("data-source","",{transform:String})}function Ot(){return B("battle-of-giants","",{transform:String})}export{Ot as a,gt as g,yt as u};
|
package/public/_headers
DELETED