@xcpcio/board-app 0.46.2 → 0.46.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.
- package/dist/404.html +1 -1
- package/dist/assets/{Board-5a18de8e.js → Board-6ef1c1b9.js} +1 -1
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-3f2e71b7.js → DataSourceInput.vue_vue_type_script_setup_true_lang-3f783706.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-859ce89a.js → TheInput.vue_vue_type_script_setup_true_lang-51ad90e9.js} +1 -1
- package/dist/assets/{_...all_-8b9261ff.js → _...all_-5d9480a0.js} +1 -1
- package/dist/assets/{_name_-07451050.js → _name_-c9a7b268.js} +1 -1
- package/dist/assets/{about-ccab3fef.js → about-6219edda.js} +1 -1
- package/dist/assets/{board-fd754235.js → board-33bc86ab.js} +1 -1
- package/dist/assets/{board-layout-9f205eef.js → board-layout-b08cf01a.js} +1 -1
- package/dist/assets/{headless-84b0ba2a.js → headless-4d4f2337.js} +1 -1
- package/dist/assets/{home-51ee0a78.js → home-5f98843d.js} +1 -1
- package/dist/assets/{index-ae87348c.js → index-168068d2.js} +1 -1
- package/dist/assets/{index-f9b2eb26.js → index-3c0f7a79.js} +1 -1
- package/dist/assets/{index-b8520a7a.js → index-a771ea05.js} +3 -3
- package/dist/assets/{index-layout-69d341e2.js → index-layout-692a69df.js} +1 -1
- package/dist/assets/{query-f9ac0577.js → query-5fd73b94.js} +1 -1
- package/dist/assets/{test-1cc6e80d.js → test-4379792f.js} +1 -1
- package/dist/assets/{user-c860815d.js → user-62a1879b.js} +1 -1
- package/dist/assets/{virtual_pwa-register-6184380c.js → virtual_pwa-register-10abc341.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
|
@@ -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-51ad90e9.js";import{g as _,u as f,j as h,J as g,G as b,l as o,o as v,c as S,d as t,b as x,H as y,I as U,t as l,m as V}from"./index-a771ea05.js";import{g as w}from"./query-5fd73b94.js";const I={key:0,class:"flex flex-col items-center"},k={"w-128":""},D=t("div",{"py-2":""},null,-1),R=["disabled"],u="Data Source URL",T=_({__name:"DataSourceInput",setup(B){const{t:r}=f(),a=w(),e=h(a.value),c=g(),d=b();function s(){d.push(`${c.fullPath}/?data-source=${e.value.trim()}`)}return(C,n)=>{const i=p;return o(a).length===0?(v(),S("div",I,[t("div",k,[x(i,{modelValue:o(e),"onUpdate:modelValue":n[0]||(n[0]=m=>y(e)?e.value=m:null),"w-full":"",placeholder:u,autocomplete:"false",onKeydown:U(s,["enter"])},null,8,["modelValue","onKeydown"]),t("label",{class:"hidden",for:"input"},l(u))]),D,t("div",null,[t("button",{"m-3":"","text-sm":"",btn:"",disabled:o(e).length===0,onClick:s},l(o(r)("button.go")),9,R)])])):V("",!0)}}});export{T as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as s,W as r,S as u,aS as p,l as i,o as d,c as m,aT as c,H as x}from"./index-
|
|
1
|
+
import{g as s,W as r,S as u,aS as p,l as i,o as d,c as m,aT as c,H as x}from"./index-a771ea05.js";const _=["type","text"],g=s({__name:"TheInput",props:{modelValue:null,textAlign:null,textType:null},emits:["update:modelValue"],setup(l){const t=l,{modelValue:e}=r("modelValue");return(a,n)=>u((d(),m("input",c({id:"input","onUpdate:modelValue":n[0]||(n[0]=o=>x(e)?e.value=o:null)},a.$attrs,{type:t.textType??"text",text:t.textAlign??"center",p:"x-4 y-2","w-full":"",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"}),null,16,_)),[[p,i(e)]])}});export{g as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as v}from"./Board-
|
|
1
|
+
import{_ as v}from"./Board-6ef1c1b9.js";import{g as p,G as h,u as l,r as y,o as c,c as a,d as r,t as i,l as n,b as _,M as B,N as m,J as N,q as u}from"./index-a771ea05.js";import"./TheInput.vue_vue_type_script_setup_true_lang-51ad90e9.js";import"./query-5fd73b94.js";const g=p({__name:"GoBack",setup(d){const s=h(),{t}=l();return(f,o)=>{const e=y("RouterLink");return c(),a("div",null,[r("div",{class:"m-3 text-sm btn",onClick:o[0]||(o[0]=k=>n(s).back())},i(n(t)("button.back")),1),_(e,{class:"m-3 text-sm btn",to:"/"},{default:B(()=>[m(i(n(t)("button.home")),1)]),_:1})])}}}),C={key:0,class:"flex flex-col items-center"},R=r("div",{"text-4xl":""},[r("div",{"i-carbon-warning":""})],-1),G={key:1},T=p({__name:"[...all]",setup(d){const{t:s}=l(),t=N(),o=!["camp","icpc","ccpc","provincial-contest"].some(e=>t.fullPath.startsWith(`/${e}`));return(e,k)=>{const x=g,b=v;return o?(c(),a("div",C,[R,m(" "+i(n(s)("not-found"))+" ",1),_(x)])):(c(),a("div",G,[_(b)]))}}});typeof u=="function"&&u(T);export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as d,G as _,u as f,aU as k,r as x,o as a,c as r,d as e,t as n,l as t,F as h,D as b,b as y,M as N,N as v,m as C}from"./index-
|
|
1
|
+
import{g as d,G as _,u as f,aU as k,r as x,o as a,c as r,d as e,t as n,l as t,F as h,D as b,b as y,M as N,N as v,m as C}from"./index-a771ea05.js";import{u as g}from"./user-62a1879b.js";const w={"w-full":"",flex:"","flex-col":"","justify-center":"","items-center":""},V=e("div",{"text-4xl":""},[e("div",{"i-carbon-pedestrian":"","inline-block":""})],-1),B={"text-sm":"","opacity-75":""},L={key:0,"mt-4":"","text-sm":""},R={"opacity-75":""},S=d({__name:"[name]",props:{name:null},setup(u){const c=u,m=_(),i=g(),{t:o}=f();return k(()=>{i.setNewName(c.name)}),(D,l)=>{const p=x("RouterLink");return a(),r("div",w,[V,e("p",null,n(t(o)("intro.hi",{name:c.name})),1),e("p",B,[e("em",null,n(t(o)("intro.dynamic-route")),1)]),t(i).otherNames.length?(a(),r("p",L,[e("span",R,n(t(o)("intro.aka"))+":",1),e("ul",null,[(a(!0),r(h,null,b(t(i).otherNames,s=>(a(),r("li",{key:s},[y(p,{to:`/hi/${s}`,replace:""},{default:N(()=>[v(n(s),1)]),_:2},1032,["to"])]))),128))])])):C("",!0),e("div",null,[e("button",{m:"3 t6","text-sm":"",btn:"",onClick:l[0]||(l[0]=s=>t(m).back())},n(t(o)("button.back")),1)])])}}});export{S as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{K as o,o as a,c as t,d as s,L as e}from"./index-
|
|
1
|
+
import{K as o,o as a,c as t,d as s,L as e}from"./index-a771ea05.js";const l={class:"prose prose-sm m-auto text-left"},p=s("div",{class:"text-center"},[s("div",{"i-carbon-dicom-overlay":"",class:"text-4xl -mb-6 m-auto"}),s("h3",null,"About")],-1),c=e(`<p><a href="https://github.com/xcpcio/xcpcio" target="_blank" rel="noopener">Board - XCPCIO</a> is an opinionated ICPC/CCPC Board made by <a href="https://github.com/dup4" target="_blank" rel="noopener">@dup4</a>.</p><pre hidden></pre><div class="shiki-container language-js"><pre class="shiki shiki-dark vitesse-dark" style="background-color:#121212;" tabindex="0"><code><span class="line"><span style="color:#758575DD;">// syntax highlighting example</span></span>
|
|
2
2
|
<span class="line"><span style="color:#CB7676;">function</span><span style="color:#DBD7CAEE;"> </span><span style="color:#80A665;">board</span><span style="color:#666666;">()</span><span style="color:#DBD7CAEE;"> </span><span style="color:#666666;">{</span></span>
|
|
3
3
|
<span class="line"><span style="color:#DBD7CAEE;"> </span><span style="color:#CB7676;">const</span><span style="color:#DBD7CAEE;"> </span><span style="color:#BD976A;">foo</span><span style="color:#DBD7CAEE;"> </span><span style="color:#666666;">=</span><span style="color:#DBD7CAEE;"> </span><span style="color:#C98A7D99;">"</span><span style="color:#C98A7D;">bar</span><span style="color:#C98A7D99;">"</span><span style="color:#666666;">;</span></span>
|
|
4
4
|
<span class="line"><span style="color:#DBD7CAEE;"> </span><span style="color:#BD976A;">console</span><span style="color:#666666;">.</span><span style="color:#80A665;">log</span><span style="color:#666666;">(</span><span style="color:#BD976A;">foo</span><span style="color:#666666;">);</span></span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as p}from"./Board-
|
|
1
|
+
import{_ as p}from"./Board-6ef1c1b9.js";import{_ as l}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-3f783706.js";import{g as f}from"./query-5fd73b94.js";import{g as d,o as t,c as n,b as r,l as a,m as i,F as g,a as B,E as k,q as c}from"./index-a771ea05.js";import"./TheInput.vue_vue_type_script_setup_true_lang-51ad90e9.js";const h={key:0},x=d({__name:"CustomBoard",setup(_){const o=f();return(e,b)=>{const m=l,u=p;return t(),n(g,null,[r(m),a(o).length>0?(t(),n("div",h,[r(u,{"data-source-url":a(o)},null,8,["data-source-url"])])):i("",!0)],64)}}}),s={};function C(_,o){const e=x;return t(),k(e)}typeof c=="function"&&c(s);const N=B(s,[["render",C]]);export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,r as a,o as c,c as r,b as e,d as _,F as m,e as p,f as l}from"./index-
|
|
1
|
+
import{a as s,r as a,o as c,c as r,b as e,d as _,F as m,e as p,f as l}from"./index-a771ea05.js";const d={},i={"py-2":"","text-gray-700":"","dark:text-gray-200":""};function u(x,f){const o=p,t=a("RouterView"),n=l;return c(),r(m,null,[e(o,{width:"sm:w-[1280px] xl:w-screen"}),_("main",i,[e(t),e(n,{class:"sm:w-[1280px] xl:w-screen"})])],64)}const g=s(d,[["render",u]]);export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,r as o,o as r,c as a,b as c}from"./index-
|
|
1
|
+
import{a as t,r as o,o as r,c as a,b as c}from"./index-a771ea05.js";const n={},s={"text-gray-700":"","dark:text-gray-200":""};function _(d,i){const e=o("RouterView");return r(),a("main",s,[c(e)])}const f=t(n,[["render",_]]);export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c,r as a,o as n,c as r,b as e,d as s,f as _}from"./index-
|
|
1
|
+
import{a as c,r as a,o as n,c as r,b as e,d as s,f as _}from"./index-a771ea05.js";const m={},i={"px-4":"","py-10":"",text:"center gray-700 dark:gray-200"},d=s("div",{"mx-auto":"","mt-5":"","text-center":"","text-sm":"","opacity-50":""}," [Home Layout] ",-1);function p(f,x){const t=a("RouterView"),o=_;return n(),r("main",i,[e(t),e(o),d])}const l=c(m,[["render",p]]);export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as w,s as b,j as d,v as U,o,c as t,l as e,n as V,d as s,x as C,t as v,m as h,h as F,B as S,u as I,i as R,w as A,k as O,y as q,z as M,A as Q,F as j,D as X,E as G,R as H,b as B,a as J,q as D}from"./index-
|
|
1
|
+
import{g as w,s as b,j as d,v as U,o,c as t,l as e,n as V,d as s,x as C,t as v,m as h,h as F,B as S,u as I,i as R,w as A,k as O,y as q,z as M,A as Q,F as j,D as X,E as G,R as H,b as B,a as J,q as D}from"./index-a771ea05.js";import{u as K,g as P}from"./query-5fd73b94.js";import{_ as W}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-3f783706.js";import"./TheInput.vue_vue_type_script_setup_true_lang-51ad90e9.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:null,balloon:null},setup(m){const n=m,i=b(()=>n.index),a=b(()=>n.balloon),l=d(null),r=U(l);function x(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(x(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=F(S),{t:a}=I(),l=d(!1),r=d({}),x=d([]),f=d([]),c=d({}),y=R();function k(){const _=new H(r.value,x.value,f.value);_.buildBalloons(),c.value=_}const{data:u,isError:T,error:z}=K(n.dataSourceUrl,y);A(u,async()=>{var _,g,p;u.value===null||u.value===void 0||(r.value=O((_=u.value)==null?void 0:_.contest),i.value=`${r.value.name} | ${S}`,x.value=q((g=u.value)==null?void 0:g.teams),f.value=M((p=u.value)==null?void 0:p.submissions),k(),l.value=!0)});const E=b(()=>c.value.balloons.sort(Q.compare).reverse().slice(0,256));return(_,g)=>{const p=te;return o(),t("div",se,[e(l)?(o(),t("div",re,[s("div",ce,[(o(!0),t(j,null,X(e(E),($,L)=>(o(),G(p,{key:$.key,index:L,balloon:$},null,8,["index","balloon"]))),128))])])):(o(),t("div",ne,[s("div",ae,[s("div",null,v(e(a)("common.loading"))+"... ",1),e(T)?(o(),t("div",le,v(e(z)),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)}}}),N={};function fe(m,n){const i=me;return o(),t("div",null,[B(i)])}typeof D=="function"&&D(N);const he=J(N,[["render",fe]]);export{he as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as x,u as N,h as $,C as v,i as D,j as g,w as I,k as T,o,c as n,l as t,d as c,t as r,m as l,n as h,p as U,a as y,b as m,F as E,q as C}from"./index-
|
|
1
|
+
import{g as x,u as N,h as $,C as v,i as D,j as g,w as I,k as T,o,c as n,l as t,d as c,t as r,m as l,n as h,p as U,a as y,b as m,F as E,q as C}from"./index-a771ea05.js";import{u as B,g as F}from"./query-5fd73b94.js";import{_ as b}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-3f783706.js";import"./TheInput.vue_vue_type_script_setup_true_lang-51ad90e9.js";const j={class:"background","text-gray-200":"","w-screen":"","h-screen":""},V={key:0},L={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},O={key:0},P={key:1},q={flex:"","flex-col":"","items-center":"","justify-center":"","font-mono":""},z={key:0},G={key:1},Q=x({__name:"Countdown",props:{dataSourceUrl:null},setup(u){const a=u,{t:_}=N(),p=$(v),s=D(),e=g({}),f=g(!1),{data:i,isError:k,error:w}=B(a.dataSourceUrl,s);return I(i,async()=>{var d;i.value===null||i.value===void 0||(e.value=T((d=i.value)==null?void 0:d.contest),p.value=`${e.value.name} | ${v}`,f.value=!0)}),(d,M)=>(o(),n("div",j,[t(f)?(o(),n("div",P,[c("div",q,[c("div",{"mt-20":"","text-6xl":"",class:h([t(e).getContestState(t(s)).toString()])},r(t(e).getContestState(t(s))),3),c("div",{"mt-20":"",class:h(["text-[320px]",[t(e).getContestState(t(s)).toString()]])},[t(e).getContestState(t(s))===t(U).PENDING?(o(),n("div",z,r(t(e).getContestPendingTime(t(s))),1)):(o(),n("div",G,r(t(e).getContestElapsedTime(t(s))),1))],2)])])):(o(),n("div",V,[c("div",L,[c("div",null,r(t(_)("common.loading"))+"... ",1),t(k)?(o(),n("div",O,r(t(w)),1)):l("",!0)])]))]))}});const W=y(Q,[["__scopeId","data-v-42377914"]]),X={key:0},A={"mt-20":""},H={key:1},J=x({__name:"CustomCountdown",setup(u){const a=F();return(_,p)=>{const s=b,e=W;return o(),n(E,null,[t(a).length===0?(o(),n("div",X,[c("div",A,[m(s)])])):l("",!0),t(a).length>0?(o(),n("div",H,[m(e,{"data-source-url":t(a)},null,8,["data-source-url"])])):l("",!0)],64)}}}),S={};function K(u,a){const _=J;return o(),n("div",null,[m(_)])}typeof C=="function"&&C(S);const et=y(S,[["render",K]]);export{et as default};
|