@xcpcio/board-app 0.28.0 → 0.29.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/assets/{Board-96bc5ecc.css → Board-2cad79eb.css} +1 -1
- package/dist/assets/Board-9442407d.js +3 -0
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-983c0ef5.js → DataSourceInput.vue_vue_type_script_setup_true_lang-d16f2a12.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-6ed50735.js → TheInput.vue_vue_type_script_setup_true_lang-1dafe5cb.js} +1 -1
- package/dist/assets/{_...all_-51e55631.js → _...all_-d54370e4.js} +1 -1
- package/dist/assets/{_name_-735452d1.js → _name_-c7264d89.js} +1 -1
- package/dist/assets/{about-c67fc7ea.js → about-55b7ba92.js} +1 -1
- package/dist/assets/{board-55f2cfd1.js → board-88a98e6a.js} +1 -1
- package/dist/assets/{board-layout-9c68b45b.js → board-layout-e4e0bae6.js} +1 -1
- package/dist/assets/{headless-a3c0debd.js → headless-3466779c.js} +1 -1
- package/dist/assets/{home-45ae8111.js → home-37e85146.js} +1 -1
- package/dist/assets/{index-65e6de07.js → index-bc173751.js} +1 -1
- package/dist/assets/{index-1418cfa7.js → index-f1d19db1.js} +4 -4
- package/dist/assets/{index-layout-3ce68075.js → index-layout-c91f7cfd.js} +1 -1
- package/dist/assets/{test-09be4a74.js → test-133c6df2.js} +1 -1
- package/dist/assets/{useQueryBoardData-5ec632a5.js → useQueryBoardData-c0567554.js} +1 -1
- package/dist/assets/{user-901b4c74.js → user-6ae7ff90.js} +1 -1
- package/dist/assets/{virtual_pwa-register-033c41ee.js → virtual_pwa-register-7ea4486e.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/src/components/board/ProblemBlock.vue +57 -0
- package/src/components/board/ProblemInfoModal.vue +111 -0
- package/src/components/board/Standings.vue +7 -13
- package/src/components.d.ts +2 -0
- package/src/composables/statistics.ts +3 -3
- package/dist/assets/Board-ebc7d2d2.js +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_}from"./TheInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_}from"./TheInput.vue_vue_type_script_setup_true_lang-1dafe5cb.js";import{H as p,g as f,q as h,i as g,I as S,D as b,j as o,o as v,c as y,d as t,b as x,E as U,G as V,t as l,l as w}from"./index-f1d19db1.js";function D(){return p("data-source","",{transform:String})}const I={key:0,class:"flex flex-col items-center"},R={"w-128":""},k=t("div",{"py-2":""},null,-1),B=["disabled"],u="Data Source URL",E=f({__name:"DataSourceInput",setup(C){const{t:r}=h(),a=D(),e=g(a.value),c=S(),d=b();function s(){d.push(`${c.fullPath}/?data-source=${e.value.trim()}`)}return(K,n)=>{const i=_;return o(a).length===0?(v(),y("div",I,[t("div",R,[x(i,{modelValue:o(e),"onUpdate:modelValue":n[0]||(n[0]=m=>U(e)?e.value=m:null),"w-full":"",placeholder:u,autocomplete:"false",onKeydown:V(s,["enter"])},null,8,["modelValue","onKeydown"]),t("label",{class:"hidden",for:"input"},l(u))]),k,t("div",null,[t("button",{"m-3":"","text-sm":"",btn:"",disabled:o(e).length===0,onClick:s},l(o(r)("button.go")),9,B)])])):w("",!0)}}});export{E as _,D as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o,J as l,K as r,L as s,j as u,o as p,c as d,M as i,E as m}from"./index-
|
|
1
|
+
import{g as o,J as l,K as r,L as s,j as u,o as p,c as d,M as i,E as m}from"./index-f1d19db1.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-9442407d.js";import{g as p,D as h,q as l,r as y,o as c,c as a,d as r,t as i,j as n,b as _,P as B,Q as m,I as C,C as u}from"./index-f1d19db1.js";import"./useQueryBoardData-c0567554.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})])}}}),N={key:0,class:"flex flex-col items-center"},R=r("div",{"text-4xl":""},[r("div",{"i-carbon-warning":""})],-1),T={key:1},V=p({__name:"[...all]",setup(d){const{t:s}=l(),t=C(),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",N,[R,m(" "+i(n(s)("not-found"))+" ",1),_(x)])):(c(),a("div",T,[_(b)]))}}});typeof u=="function"&&u(V);export{V as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as d,D as _,q as f,aG as k,r as x,o as a,c as r,d as e,t as n,j as t,F as h,z as b,b as y,P as v,Q as N,l as C}from"./index-
|
|
1
|
+
import{g as d,D as _,q as f,aG as k,r as x,o as a,c as r,d as e,t as n,j as t,F as h,z as b,b as y,P as v,Q as N,l as C}from"./index-f1d19db1.js";import{u as g}from"./user-6ae7ff90.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)}),(j,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{N as o,o as a,c as t,d as s,O as e}from"./index-
|
|
1
|
+
import{N as o,o as a,c as t,d as s,O as e}from"./index-f1d19db1.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-9442407d.js";import{g as l,_ as d}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-d16f2a12.js";import{g as f,o as t,c as n,b as a,j as r,l as i,F as g,a as B,A as k,C as c}from"./index-f1d19db1.js";import"./useQueryBoardData-c0567554.js";import"./TheInput.vue_vue_type_script_setup_true_lang-1dafe5cb.js";const C={key:0},h=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",C,[a(u,{"data-source-url":r(o)},null,8,["data-source-url"])])):i("",!0)],64)}}}),s={};function x(_,o){const e=h;return t(),k(e)}typeof c=="function"&&c(s);const U=B(s,[["render",x]]);export{U 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-f1d19db1.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-f1d19db1.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-f1d19db1.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 C,h as w,i as u,u as V,o,c as n,j as t,n as E,d as s,k as S,t as p,l as g,m as F,p as R,B as I,q as A,w as O,s as q,v as M,x as Q,y as X,F as N,z as G,A as H,R as J,b as $,a as K,C as j}from"./index-
|
|
1
|
+
import{g as C,h as w,i as u,u as V,o,c as n,j as t,n as E,d as s,k as S,t as p,l as g,m as F,p as R,B as I,q as A,w as O,s as q,v as M,x as Q,y as X,F as N,z as G,A as H,R as J,b as $,a as K,C as j}from"./index-f1d19db1.js";import{u as P}from"./useQueryBoardData-c0567554.js";import{g as W,_ as Y}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-d16f2a12.js";import"./TheInput.vue_vue_type_script_setup_true_lang-1dafe5cb.js";const Z={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":""},ee={class:"resolver-team-name",truncate:"","overflow-hidden":""},te=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":""},ne=C({__name:"BalloonBlock",props:{index:null,balloon:null},setup(f){const a=f,_=w(()=>a.index),r=w(()=>a.balloon),c=u(null),i=V(c);function x(e){return[e.location,e.organization,e.name].filter(d=>d).join(" - ")}function v(e){return typeof e=="string"?e:F&&(e!=null&&e.dark)?e.dark:e.light}return(e,b)=>{var d,l,h,k;return o(),n("div",{ref_key:"el",ref:c,"h-24":""},[t(i)?(o(),n("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:E([t(_)%2===0?"bg-resolver-bg-zero":"bg-resolver-bg-one"])},[s("div",{"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":"",style:S({backgroundColor:v(((l=(d=t(r).problem)==null?void 0:d.balloonColor)==null?void 0:l.background_color)??"rgba(0, 0, 0, 0.5)")})},[s("div",{style:S({color:v(((k=(h=t(r).problem)==null?void 0:h.balloonColor)==null?void 0:k.color)??"#fff")})},p(t(r).problem.label),5)],4),s("div",Z,[s("div",ee,p(x(t(r).team)),1),te]),s("div",oe,p(t(r).submission.timestampToMinute),1)],2)):g("",!0)],512)}}}),se={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=C({__name:"Balloon",props:{dataSourceUrl:null},setup(f){const a=f,_=R(I),{t:r}=A(),c=u(!1),i=u({}),x=u([]),v=u([]),e=u({}),b=u(new Date);function d(){const m=new J(i.value,x.value,v.value);m.buildBalloons(),e.value=m}const{data:l,isError:h,error:k}=P(a.dataSourceUrl,b);O(l,async()=>{var m,B,y;l.value===null||l.value===void 0||(i.value=q((m=l.value)==null?void 0:m.contest),_.value=`${i.value.name} | ${I}`,x.value=M((B=l.value)==null?void 0:B.teams),v.value=Q((y=l.value)==null?void 0:y.submissions),d(),c.value=!0)});const U=w(()=>e.value.balloons),z=setInterval(()=>{b.value=new Date},1e3);return X(()=>{clearInterval(z)}),(m,B)=>{const y=ne;return o(),n("div",se,[t(c)?(o(),n("div",ce,[s("div",ie,[(o(!0),n(N,null,G(t(U),(D,L)=>(o(),H(y,{key:D.key,index:L,balloon:D},null,8,["index","balloon"]))),128))])])):(o(),n("div",ae,[s("div",le,[s("div",null,p(t(r)("common.loading"))+"... ",1),t(h)?(o(),n("div",re,p(t(k)),1)):g("",!0)])]))])}}}),_e={key:0},de={"mt-20":""},me={key:1},fe=C({__name:"CustomBalloon",setup(f){const a=W();return(_,r)=>{const c=Y,i=ue;return o(),n(N,null,[t(a).length===0?(o(),n("div",_e,[s("div",de,[$(c)])])):g("",!0),t(a).length>0?(o(),n("div",me,[$(i,{"data-source-url":t(a)},null,8,["data-source-url"])])):g("",!0)],64)}}}),T={};function ve(f,a){const _=fe;return o(),n("div",null,[$(_)])}typeof j=="function"&&j(T);const ke=K(T,[["render",ve]]);export{ke as default};
|