@xcpcio/board-app 0.32.0 → 0.33.1
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/assets/{Board-5181d383.css → Board-99a6e425.css} +1 -1
- package/dist/assets/{Board-a9988a0d.js → Board-d7609da2.js} +3 -3
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-7ca3c000.js → DataSourceInput.vue_vue_type_script_setup_true_lang-63873d5f.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-2682b2e3.js → TheInput.vue_vue_type_script_setup_true_lang-71351c84.js} +1 -1
- package/dist/assets/{_...all_-c4727646.js → _...all_-414ec1ce.js} +1 -1
- package/dist/assets/{_name_-8853f4a2.js → _name_-c561fe83.js} +1 -1
- package/dist/assets/{about-b984181a.js → about-695e703f.js} +1 -1
- package/dist/assets/{board-ce33013d.js → board-11251e74.js} +1 -1
- package/dist/assets/{board-layout-ccb8d7e4.js → board-layout-0478c0e4.js} +1 -1
- package/dist/assets/{headless-be8dd44c.js → headless-7c6b9b6c.js} +1 -1
- package/dist/assets/{home-bc4084e9.js → home-9ae3487b.js} +1 -1
- package/dist/assets/index-39ee8a2c.css +1 -0
- package/dist/assets/index-82d24eb3.js +1 -0
- package/dist/assets/index-ce574b40.js +1 -0
- package/dist/assets/index-da189e9b.js +338 -0
- package/dist/assets/{index-bbe8c4f8.css → index-e63239d5.css} +1 -1
- package/dist/assets/{index-layout-95eb074e.js → index-layout-51dba345.js} +1 -1
- package/dist/assets/{test-fa217a0f.js → test-9b2d3ab7.js} +1 -1
- package/dist/assets/{useQueryBoardData-95ed94f9.js → useQueryBoardData-19e23ff0.js} +1 -1
- package/dist/assets/{user-c1e9292b.js → user-d3d10ec9.js} +1 -1
- package/dist/assets/{virtual_pwa-register-f8259b1b.js → virtual_pwa-register-5bd81c90.js} +1 -1
- package/dist/index.html +1 -122
- package/dist/sw.js +1 -1
- package/package.json +4 -3
- package/src/auto-imports.d.ts +4 -1
- package/src/components/Balloon.vue +2 -2
- package/src/components/BalloonBlock.vue +3 -14
- package/src/components/Countdown.vue +0 -7
- package/src/components/board/{DynamicSubmissionsModal.vue → AnimatedSubmissionsModal.vue} +19 -6
- package/src/components/board/Board.vue +2 -2
- package/src/components/board/OptionsModal.vue +4 -4
- package/src/components/board/ProblemBlock.vue +4 -2
- package/src/components/board/SubmissionsTable.vue +2 -4
- package/src/components/board/TeamUI.vue +4 -4
- package/src/components/board/Utility.vue +15 -15
- package/src/components.d.ts +1 -1
- package/src/composables/color.ts +31 -0
- package/vite.config.ts +16 -0
- package/dist/assets/index-181beaa6.js +0 -1
- package/dist/assets/index-622de38d.css +0 -1
- package/dist/assets/index-6c4a0937.js +0 -205
- package/dist/assets/index-d882800e.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_}from"./TheInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_}from"./TheInput.vue_vue_type_script_setup_true_lang-71351c84.js";import{J as p,g as f,u as h,i as g,K as S,G as b,l as o,o as v,c as y,d as t,b as x,H as U,I as V,t as u,m as w}from"./index-da189e9b.js";function I(){return p("data-source","",{transform:String})}const R={key:0,class:"flex flex-col items-center"},k={"w-128":""},D=t("div",{"py-2":""},null,-1),K=["disabled"],l="Data Source URL",T=f({__name:"DataSourceInput",setup(B){const{t:r}=h(),a=I(),e=g(a.value),c=S(),d=b();function s(){d.push(`${c.fullPath}/?data-source=${e.value.trim()}`)}return(C,n)=>{const i=_;return o(a).length===0?(v(),y("div",R,[t("div",k,[x(i,{modelValue:o(e),"onUpdate:modelValue":n[0]||(n[0]=m=>U(e)?e.value=m:null),"w-full":"",placeholder:l,autocomplete:"false",onKeydown:V(s,["enter"])},null,8,["modelValue","onKeydown"]),t("label",{class:"hidden",for:"input"},u(l))]),D,t("div",null,[t("button",{"m-3":"","text-sm":"",btn:"",disabled:o(e).length===0,onClick:s},u(o(r)("button.go")),9,K)])])):w("",!0)}}});export{T as _,I as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o,L as l,M as r,N as s,l as u,o as p,c as d,O as i,H as m}from"./index-
|
|
1
|
+
import{g as o,L as l,M as r,N as s,l as u,o as p,c as d,O as i,H as m}from"./index-da189e9b.js";const f=o({__name:"TheInput",props:{modelValue:null},emits:["update:modelValue"],setup(_){const{modelValue:e}=l("modelValue");return(n,t)=>r((p(),d("input",i({id:"input","onUpdate:modelValue":t[0]||(t[0]=a=>m(e)?e.value=a:null),type:"text"},n.$attrs,{p:"x-4 y-2","w-full":"",text:"center",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"}),null,16)),[[s,u(e)]])}});export{f as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as v}from"./Board-
|
|
1
|
+
import{_ as v}from"./Board-d7609da2.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 _,S as B,T as m,K as g,q as u}from"./index-da189e9b.js";import"./useQueryBoardData-19e23ff0.js";const C=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})])}}}),N={key:0,class:"flex flex-col items-center"},R=r("div",{"text-4xl":""},[r("div",{"i-carbon-warning":""})],-1),T={key:1},G=p({__name:"[...all]",setup(d){const{t:s}=l(),t=g(),o=!["camp","icpc","ccpc","provincial-contest"].some(e=>t.fullPath.startsWith(`/${e}`));return(e,k)=>{const x=C,b=v;return o?(c(),a("div",N,[R,m(" "+i(n(s)("not-found"))+" ",1),_(x)])):(c(),a("div",T,[_(b)]))}}});typeof u=="function"&&u(G);export{G as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as d,G as _,u as f,aJ 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,S as v,T as N,m as C}from"./index-
|
|
1
|
+
import{g as d,G as _,u as f,aJ 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,S as v,T as N,m as C}from"./index-da189e9b.js";import{u as g}from"./user-d3d10ec9.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":""},F=d({__name:"[name]",props:{name:null},setup(u){const c=u,m=_(),i=g(),{t:o}=f();return k(()=>{i.setNewName(c.name)}),(S,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:v(()=>[N(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{F as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as o,o as a,c as t,d as s,Q as e}from"./index-
|
|
1
|
+
import{P as o,o as a,c as t,d as s,Q as e}from"./index-da189e9b.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-d7609da2.js";import{g as l,_ as d}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-63873d5f.js";import{g as f,o as t,c as n,b as a,l as r,m as i,F as g,a as B,E as k,q as c}from"./index-da189e9b.js";import"./useQueryBoardData-19e23ff0.js";import"./TheInput.vue_vue_type_script_setup_true_lang-71351c84.js";const h={key:0},x=f({__name:"CustomBoard",setup(_){const o=l();return(e,b)=>{const m=d,u=p;return t(),n(g,null,[a(m),r(o).length>0?(t(),n("div",h,[a(u,{"data-source-url":r(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-da189e9b.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-da189e9b.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-da189e9b.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.background[data-v-03b5a196]{background-color:#333443}.PENDING[data-v-03b5a196]{color:#3bb4f2}.RUNNING[data-v-03b5a196]{color:#5eb95e}.FROZEN[data-v-03b5a196]{color:#dd514c}.FINISHED[data-v-03b5a196]{color:#0e90d2}.PAUSED[data-v-03b5a196]{color:#3bb4f2}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as x,u as D,h as N,C as g,i as d,w as $,j as U,k as T,o,c as s,l as t,d as c,t as r,m,n as h,p as b,a as y,b as p,F as E,q as C}from"./index-da189e9b.js";import{u as B}from"./useQueryBoardData-19e23ff0.js";import{g as F,_ as j}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-63873d5f.js";import"./TheInput.vue_vue_type_script_setup_true_lang-71351c84.js";const V={class:"background","text-gray-200":"","w-screen":"","h-screen":""},L={key:0},O={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},P={key:0},q={key:1},z={flex:"","flex-col":"","items-center":"","justify-center":"","font-mono":""},G={key:0},Q={key:1},W=x({__name:"Countdown",props:{dataSourceUrl:null},setup(l){const a=l,{t:_}=D(),v=N(g),e=d(new Date),n=d({}),f=d(!1),{data:i,isError:w,error:k}=B(a.dataSourceUrl,e);$(i,async()=>{var u;i.value===null||i.value===void 0||(n.value=U((u=i.value)==null?void 0:u.contest),v.value=`${n.value.name} | ${g}`,f.value=!0)});const I=setInterval(()=>{e.value=new Date},1e3);return T(()=>{clearInterval(I)}),(u,R)=>(o(),s("div",V,[t(f)?(o(),s("div",q,[c("div",z,[c("div",{"mt-20":"","text-6xl":"",class:h([t(n).getContestState(t(e)).toString()])},r(t(n).getContestState(t(e))),3),c("div",{"mt-20":"",class:h(["text-[320px]",[t(n).getContestState(t(e)).toString()]])},[t(n).getContestState(t(e))===t(b).PENDING?(o(),s("div",G,r(t(n).getContestPendingTime(t(e))),1)):(o(),s("div",Q,r(t(n).getContestElapsedTime(t(e))),1))],2)])])):(o(),s("div",L,[c("div",O,[c("div",null,r(t(_)("common.loading"))+"... ",1),t(w)?(o(),s("div",P,r(t(k)),1)):m("",!0)])]))]))}});const X=y(W,[["__scopeId","data-v-03b5a196"]]),A={key:0},H={"mt-20":""},J={key:1},K=x({__name:"CustomCountdown",setup(l){const a=F();return(_,v)=>{const e=j,n=X;return o(),s(E,null,[t(a).length===0?(o(),s("div",A,[c("div",H,[p(e)])])):m("",!0),t(a).length>0?(o(),s("div",J,[p(n,{"data-source-url":t(a)},null,8,["data-source-url"])])):m("",!0)],64)}}}),S={};function M(l,a){const _=K;return o(),s("div",null,[p(_)])}typeof C=="function"&&C(S);const nt=y(S,[["render",M]]);export{nt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as w,s as h,i,v as L,o,c as t,l as e,n as V,d as s,x as D,t as v,m as y,h as F,B as C,u as R,w as A,j as O,y as q,z as M,A as Q,k as X,F as I,D as G,E as H,R as J,b as B,a as K,q as S}from"./index-da189e9b.js";import{u as P}from"./useQueryBoardData-19e23ff0.js";import{g as W,_ as Y}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-63873d5f.js";import"./TheInput.vue_vue_type_script_setup_true_lang-71351c84.js";const Z={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":""},ee={class:"resolver-team-name",truncate:"","overflow-hidden":""},oe=s("div",{flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},null,-1),te={"w-32":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},se=w({__name:"BalloonBlock",props:{index:{},balloon:{}},setup(m){const n=m,u=h(()=>n.index),a=h(()=>n.balloon),l=i(null),r=L(l);function x(c){return[c.location,c.organization,c.name].filter(k=>k).join(" - ")}const f=h(()=>a.value.problem.balloonColor);return(c,p)=>(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(u)%2===0?"bg-resolver-bg-zero":"bg-resolver-bg-one"])},[s("div",{"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":"",style:D({backgroundColor:e(f).background_color})},[s("div",{style:D({color:e(f).color})},v(e(a).problem.label),5)],4),s("div",Z,[s("div",ee,v(x(e(a).team)),1),oe]),s("div",te,v(e(a).submission.timestampToMinute),1)],2)):y("",!0)],512))}}),ne={class:"bg-[#323443]","text-gray-200":""},ae={key:0},le={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},re={key:0},ce={key:1},ie={flex:"","flex-col":"","justify-between":""},ue=w({__name:"Balloon",props:{dataSourceUrl:null},setup(m){const n=m,u=F(C),{t:a}=R(),l=i(!1),r=i({}),x=i([]),f=i([]),c=i({}),p=i(new Date);function k(){const d=new J(r.value,x.value,f.value);d.buildBalloons(),c.value=d}const{data:_,isError:N,error:T}=P(n.dataSourceUrl,p);A(_,async()=>{var d,g,b;_.value===null||_.value===void 0||(r.value=O((d=_.value)==null?void 0:d.contest),u.value=`${r.value.name} | ${C}`,x.value=q((g=_.value)==null?void 0:g.teams),f.value=M((b=_.value)==null?void 0:b.submissions),k(),l.value=!0)});const U=h(()=>c.value.balloons.sort(Q.compare).reverse().slice(0,256)),z=setInterval(()=>{p.value=new Date},1e3);return X(()=>{clearInterval(z)}),(d,g)=>{const b=se;return o(),t("div",ne,[e(l)?(o(),t("div",ce,[s("div",ie,[(o(!0),t(I,null,G(e(U),($,E)=>(o(),H(b,{key:$.key,index:E,balloon:$},null,8,["index","balloon"]))),128))])])):(o(),t("div",ae,[s("div",le,[s("div",null,v(e(a)("common.loading"))+"... ",1),e(N)?(o(),t("div",re,v(e(T)),1)):y("",!0)])]))])}}}),_e={key:0},de={"mt-20":""},me={key:1},fe=w({__name:"CustomBalloon",setup(m){const n=W();return(u,a)=>{const l=Y,r=ue;return o(),t(I,null,[e(n).length===0?(o(),t("div",_e,[s("div",de,[B(l)])])):y("",!0),e(n).length>0?(o(),t("div",me,[B(r,{"data-source-url":e(n)},null,8,["data-source-url"])])):y("",!0)],64)}}}),j={};function ve(m,n){const u=fe;return o(),t("div",null,[B(u)])}typeof S=="function"&&S(j);const ye=K(j,[["render",ve]]);export{ye as default};
|