@xcpcio/board-app 0.69.4 → 0.70.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-oEmN2FUH.js +1 -0
- package/dist/assets/{Board-B9qlHyDI.js → Board-Bhkqgu1Y.js} +99 -99
- package/dist/assets/{Board-C89Lc-cb.css → Board-tx1moXfi.css} +1 -1
- package/dist/assets/{ContestStateBadge-CCVy2wZJ.js → ContestStateBadge-CvO-EMgm.js} +1 -1
- package/dist/assets/Countdown-BzEYBgj7.css +1 -0
- package/dist/assets/Countdown-TVEha-GX.js +1 -0
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-B5xllChj.js → DataSourceInput.vue_vue_type_script_setup_true_lang-DPoc3DXZ.js} +1 -1
- package/dist/assets/{Footer-ClNjZVUX.js → Footer-D8toReDQ.js} +1 -1
- package/dist/assets/{NavBar--v06rckE.js → NavBar-o5bwwfFh.js} +1 -1
- package/dist/assets/{Resolver-leMWgtXW.js → Resolver-DHnKaMVV.js} +4 -4
- package/dist/assets/{Resolver-ZGkKM3bm.css → Resolver-DWEPObm3.css} +1 -1
- package/dist/assets/{RightArrowIcon-C7gnivmE.js → RightArrowIcon-DYbq8Bub.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-Cq-GdaDA.js → TheInput.vue_vue_type_script_setup_true_lang-BdUca1-n.js} +1 -1
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-B47ETaN9.js → Tooltip.vue_vue_type_script_setup_true_lang-JtL4ZY65.js} +1 -1
- package/dist/assets/{_...all_-DB8qOqv8.js → _...all_-CtqfVkht.js} +1 -1
- package/dist/assets/{_...all_-a-Uvc7a9.js → _...all_-DMSafAfm.js} +1 -1
- package/dist/assets/{_name_-BUzaHppL.js → _name_-BmEIkMG7.js} +1 -1
- package/dist/assets/{about-DI_NGucr.js → about-BR3jUE0_.js} +1 -1
- package/dist/assets/{board-layout-BHEsJV7B.js → board-layout-DbzTYtb3.js} +1 -1
- package/dist/assets/board-q5on1RUR.js +1 -0
- package/dist/assets/{constant-CZ5yULfd.js → constant-Ds9q2BQF.js} +1 -1
- package/dist/assets/{dayjs-CZgaplJl.js → dayjs-DRRP86hV.js} +1 -1
- package/dist/assets/{default-DWmoYCsL.js → default--P8qjAUG.js} +1 -1
- package/dist/assets/en-Bc_VXYkH.js +1 -0
- package/dist/assets/{headless-CdZcsu6X.js → headless---RphLCU.js} +1 -1
- package/dist/assets/{home-Ca7VxYvt.js → home-CRBm3f13.js} +1 -1
- package/dist/assets/{index-B94pQy55.js → index-BJ0B1S7n.js} +5 -5
- package/dist/assets/{index-CrdVtfk1.js → index-BKVhu7Tw.js} +1 -1
- package/dist/assets/{index-BGJAeisZ.css → index-CBwoaX68.css} +1 -1
- package/dist/assets/index-D7Dv5u2i.js +1 -0
- package/dist/assets/index-DDXtBC57.js +1 -0
- package/dist/assets/{index-B0Nibdcu.js → index-DF3noR7O.js} +1 -1
- package/dist/assets/index-DwDo-flU.js +1 -0
- package/dist/assets/{index-layout-BcC1Tv9X.js → index-layout-DpgBAC2O.js} +1 -1
- package/dist/assets/{pagination-nWSlxTuW.js → pagination-CCDih46R.js} +1 -1
- package/dist/assets/{person-CJEnqSCh.js → person-wOxxwhEX.js} +1 -1
- package/dist/assets/{query-DRKvftyM.js → query-Cwkn7-aW.js} +2 -2
- package/dist/assets/{rank-CihvP4tD.js → rank-CzKFUPaY.js} +1 -1
- package/dist/assets/{test-plNUzEC6.js → test-2P7EDOc4.js} +1 -1
- package/dist/assets/{use-vmodel-DYni6XFa.js → use-vmodel-eKIPpK5B.js} +1 -1
- package/dist/assets/{useQueryBoardData-DfePVUs0.js → useQueryBoardData-BxZkFBMO.js} +1 -1
- package/dist/assets/{user-Cbn7G8ga.js → user-CgerVobA.js} +1 -1
- package/dist/assets/{virtual_pwa-register-DHt7vHCS.js → virtual_pwa-register-CeNObX1m.js} +1 -1
- package/dist/assets/zh-CN-DJPqkv-M.js +1 -0
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/src/components/Balloon.vue +4 -3
- package/src/components/BalloonBlock.vue +5 -1
- package/src/components/Countdown.vue +4 -3
- package/src/components/Resolver.vue +4 -3
- package/src/components/board/{TeamInfoModal.vue → TeamModal.vue} +7 -20
- package/src/components/board/{TeamInfo.vue → TeamOverview.vue} +38 -0
- package/src/components/board/TeamUI.vue +7 -7
- package/src/components.d.ts +2 -3
- package/src/composables/query.ts +1 -1
- package/dist/assets/Balloon.vue_vue_type_script_setup_true_lang-BYUKhrtC.js +0 -1
- package/dist/assets/Countdown-CGwMuG9S.css +0 -1
- package/dist/assets/Countdown-cd9telur.js +0 -1
- package/dist/assets/board-iHKEEikR.js +0 -1
- package/dist/assets/en-DYzJz2c1.js +0 -1
- package/dist/assets/index-BRDPFAYp.js +0 -1
- package/dist/assets/index-Bng_iWYy.js +0 -1
- package/dist/assets/index-DEzYdclv.js +0 -1
- package/dist/assets/zh-CN-Cbd_t3aN.js +0 -1
- package/src/components/board/TeamAwards.vue +0 -121
|
@@ -10,8 +10,11 @@ const props = defineProps<{
|
|
|
10
10
|
rank: Rank;
|
|
11
11
|
team: Team;
|
|
12
12
|
}>();
|
|
13
|
-
|
|
14
13
|
const emit = defineEmits(["update:isHidden"]);
|
|
14
|
+
const TYPE_OVERVIEW = "overview";
|
|
15
|
+
const TYPE_SUBMISSIONS = "submissions";
|
|
16
|
+
const TYPE_STATISTICS = "statistics";
|
|
17
|
+
const types = [TYPE_OVERVIEW, TYPE_SUBMISSIONS, TYPE_STATISTICS];
|
|
15
18
|
|
|
16
19
|
const { locale } = useI18n();
|
|
17
20
|
const lang = computed(() => locale.value as unknown as Lang);
|
|
@@ -25,7 +28,7 @@ const isHidden = computed({
|
|
|
25
28
|
},
|
|
26
29
|
});
|
|
27
30
|
|
|
28
|
-
const currentType = ref(
|
|
31
|
+
const currentType = ref(TYPE_OVERVIEW);
|
|
29
32
|
|
|
30
33
|
const rank = computed(() => props.rank);
|
|
31
34
|
const team = computed(() => props.team);
|
|
@@ -41,12 +44,6 @@ const headerTitle = computed(() => {
|
|
|
41
44
|
|
|
42
45
|
return res;
|
|
43
46
|
});
|
|
44
|
-
|
|
45
|
-
const TYPE_INFO = "info";
|
|
46
|
-
const TYPE_SUBMISSIONS = "submissions";
|
|
47
|
-
const TYPE_STATISTICS = "statistics";
|
|
48
|
-
const TYPE_AWARDS = "awards";
|
|
49
|
-
const types = [TYPE_INFO, TYPE_SUBMISSIONS, TYPE_STATISTICS, TYPE_AWARDS];
|
|
50
47
|
</script>
|
|
51
48
|
|
|
52
49
|
<template>
|
|
@@ -114,10 +111,10 @@ const types = [TYPE_INFO, TYPE_SUBMISSIONS, TYPE_STATISTICS, TYPE_AWARDS];
|
|
|
114
111
|
flex items-center justify-center
|
|
115
112
|
>
|
|
116
113
|
<div
|
|
117
|
-
v-if="currentType ===
|
|
114
|
+
v-if="currentType === TYPE_OVERVIEW"
|
|
118
115
|
w-full
|
|
119
116
|
>
|
|
120
|
-
<
|
|
117
|
+
<TeamOverview
|
|
121
118
|
:rank="rank"
|
|
122
119
|
:team="team"
|
|
123
120
|
/>
|
|
@@ -145,16 +142,6 @@ const types = [TYPE_INFO, TYPE_SUBMISSIONS, TYPE_STATISTICS, TYPE_AWARDS];
|
|
|
145
142
|
:options="getTeamPlaceChart(rank, team)"
|
|
146
143
|
/>
|
|
147
144
|
</div>
|
|
148
|
-
|
|
149
|
-
<div
|
|
150
|
-
v-if="currentType === TYPE_AWARDS"
|
|
151
|
-
w-full
|
|
152
|
-
>
|
|
153
|
-
<TeamAwards
|
|
154
|
-
:team="team"
|
|
155
|
-
:rank="rank"
|
|
156
|
-
/>
|
|
157
|
-
</div>
|
|
158
145
|
</div>
|
|
159
146
|
</Modal>
|
|
160
147
|
</template>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Rank, Team } from "@xcpcio/core";
|
|
3
3
|
import type { Lang } from "@xcpcio/types";
|
|
4
|
+
import { MedalType } from "@xcpcio/core";
|
|
4
5
|
|
|
5
6
|
const props = defineProps<{
|
|
6
7
|
rank: Rank;
|
|
@@ -56,6 +57,37 @@ const groupNames = computed(() => {
|
|
|
56
57
|
.join(", ");
|
|
57
58
|
});
|
|
58
59
|
|
|
60
|
+
const medal = computed(() => {
|
|
61
|
+
if (team.value.awards.includes(MedalType.GOLD)) {
|
|
62
|
+
return {
|
|
63
|
+
emoji: "i-twemoji-1st-place-medal",
|
|
64
|
+
text: t("medal.gold"),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (team.value.awards.includes(MedalType.SILVER)) {
|
|
69
|
+
return {
|
|
70
|
+
emoji: "i-twemoji-2nd-place-medal",
|
|
71
|
+
text: t("medal.silver"),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (team.value.awards.includes(MedalType.BRONZE)) {
|
|
76
|
+
return {
|
|
77
|
+
emoji: "i-twemoji-3rd-place-medal",
|
|
78
|
+
text: t("medal.bronze"),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (team.value.awards.includes(MedalType.HONORABLE)) {
|
|
83
|
+
return {
|
|
84
|
+
text: t("medal.honorable"),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return null;
|
|
89
|
+
});
|
|
90
|
+
|
|
59
91
|
const tableRows = computed(() => {
|
|
60
92
|
const rows = [
|
|
61
93
|
{ label: t("team_info.rank"), value: team.value.rank, show: true },
|
|
@@ -65,6 +97,7 @@ const tableRows = computed(() => {
|
|
|
65
97
|
{ label: t("team_info.members"), value: team.value.membersToString(lang.value), show: team.value.members.length > 0 },
|
|
66
98
|
{ label: t("team_info.coaches"), value: team.value.coachesToString(lang.value), show: team.value.coaches.length > 0 },
|
|
67
99
|
{ label: t("team_info.location"), value: team.value.location, show: !!team.value.location },
|
|
100
|
+
{ label: t("team_info.award"), value: medal.value?.text, emoji: medal.value?.emoji, show: !!medal.value },
|
|
68
101
|
];
|
|
69
102
|
return rows.filter(row => row.show);
|
|
70
103
|
});
|
|
@@ -90,6 +123,11 @@ const tableRows = computed(() => {
|
|
|
90
123
|
{{ row.label }}
|
|
91
124
|
</td>
|
|
92
125
|
<td px-4 py-2>
|
|
126
|
+
<span
|
|
127
|
+
v-if="!!row.emoji"
|
|
128
|
+
:class="row.emoji"
|
|
129
|
+
text-xl
|
|
130
|
+
/>
|
|
93
131
|
{{ row.value }}
|
|
94
132
|
</td>
|
|
95
133
|
</tr>
|
|
@@ -14,9 +14,9 @@ const props = defineProps<{
|
|
|
14
14
|
const el = ref(null);
|
|
15
15
|
const isVisible = useElementVisibility(el);
|
|
16
16
|
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
|
|
17
|
+
const hiddenTeamModal = ref(true);
|
|
18
|
+
function onClickTeamModal() {
|
|
19
|
+
hiddenTeamModal.value = false;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
const { locale } = useI18n();
|
|
@@ -129,7 +129,7 @@ function isRenderByVisible() {
|
|
|
129
129
|
>
|
|
130
130
|
<div
|
|
131
131
|
cursor-pointer
|
|
132
|
-
@click="
|
|
132
|
+
@click="onClickTeamModal"
|
|
133
133
|
>
|
|
134
134
|
<span>{{ teamName }}</span>
|
|
135
135
|
<span v-if="team.group.includes('unofficial')" class="i-line-md:star-alt-filled" />
|
|
@@ -137,9 +137,9 @@ function isRenderByVisible() {
|
|
|
137
137
|
</div>
|
|
138
138
|
|
|
139
139
|
<div>
|
|
140
|
-
<
|
|
141
|
-
v-if="!
|
|
142
|
-
v-model:is-hidden="
|
|
140
|
+
<TeamModal
|
|
141
|
+
v-if="!hiddenTeamModal"
|
|
142
|
+
v-model:is-hidden="hiddenTeamModal"
|
|
143
143
|
:rank="rank"
|
|
144
144
|
:team="team"
|
|
145
145
|
/>
|
package/src/components.d.ts
CHANGED
|
@@ -59,9 +59,8 @@ declare module 'vue' {
|
|
|
59
59
|
SubmissionsTableModal: typeof import('./components/board/SubmissionsTableModal.vue')['default']
|
|
60
60
|
SubmitHeatMap: typeof import('./components/board/SubmitHeatMap.vue')['default']
|
|
61
61
|
TablePagination: typeof import('./components/table/TablePagination.vue')['default']
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
TeamInfoModal: typeof import('./components/board/TeamInfoModal.vue')['default']
|
|
62
|
+
TeamModal: typeof import('./components/board/TeamModal.vue')['default']
|
|
63
|
+
TeamOverview: typeof import('./components/board/TeamOverview.vue')['default']
|
|
65
64
|
TeamProblemBlock: typeof import('./components/board/TeamProblemBlock.vue')['default']
|
|
66
65
|
TeamUI: typeof import('./components/board/TeamUI.vue')['default']
|
|
67
66
|
TheCheckbox: typeof import('./components/common/TheCheckbox.vue')['default']
|
package/src/composables/query.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as w,f as _,m as i,p as D,c as n,o as s,q as g,h as e,n as E,b as o,K as h,k as d,A as L,u as N,C as F,F as V,E as z,G as I,s as R}from"./index-B94pQy55.js";import{B}from"./constant-CZ5yULfd.js";import{c as U,a as A,B as O,R as q}from"./rank-CihvP4tD.js";import{c as G}from"./query-DRKvftyM.js";import{u as K}from"./useQueryBoardData-DfePVUs0.js";const M={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":""},Q={class:"resolver-team-name",truncate:"","overflow-hidden":""},X={"w-32":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},H=w({__name:"BalloonBlock",props:{index:null,balloon:null},setup(x){const f=x,p=_(()=>f.index),l=_(()=>f.balloon),c=i(null),a=D(c);function v(t){return[t.location,t.organization,t.name].filter(b=>b).join(" - ")}const u=_(()=>l.value.problem.balloonColor);return(t,m)=>(s(),n("div",{ref_key:"el",ref:c,"h-24":""},[e(a)?(s(),n("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:E([e(p)%2===0?"bg-resolver-bg-0":"bg-resolver-bg-1"])},[o("div",{"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":"",style:h({backgroundColor:e(u).background_color})},[o("div",{style:h({color:e(u).color})},d(e(l).problem.label),5)],4),o("div",M,[o("div",Q,d(v(e(l).team)),1),m[0]||(m[0]=o("div",{flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},null,-1))]),o("div",X,d(e(l).submission.timestampToMinute),1)],2)):g("",!0)],512))}}),J={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},P={key:0},W={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},Y={key:0},Z={key:1},ee={flex:"","flex-col":"","justify-between":""},re=w({__name:"Balloon",props:{dataSourceUrl:null},setup(x){const f=x,p=L(B),{t:l}=N(),c=i(!1),a=i({}),v=i([]),u=i([]),t=i({}),m=R();function b(){const k=new q(a.value,v.value,u.value);k.buildBalloons(),t.value=k}const{data:r,isError:C,error:j}=K(f.dataSourceUrl,m);F(r,async()=>{r.value===null||r.value===void 0||(a.value=G(r.value?.contest),p.value=`${a.value.name} | ${B}`,v.value=U(r.value?.teams),u.value=A(r.value?.submissions,a.value),b(),c.value=!0)},{immediate:!0});const S=_(()=>t.value.balloons.sort(O.compare).reverse().slice(0,256));return(k,oe)=>{const T=H;return s(),n("div",J,[e(c)?(s(),n("div",Z,[o("div",ee,[(s(!0),n(V,null,z(e(S),(y,$)=>(s(),I(T,{key:y.key,index:$,balloon:y},null,8,["index","balloon"]))),128))])])):(s(),n("div",P,[o("div",W,[o("div",null,d(e(l)("common.loading"))+"... ",1),e(C)?(s(),n("div",Y,d(e(j)),1)):g("",!0)])]))])}}});export{re as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.PENDING[data-v-2d2a8baf]{color:#3bb4f2}.RUNNING[data-v-2d2a8baf]{color:#5eb95e}.FROZEN[data-v-2d2a8baf]{color:#dd514c}.FINISHED[data-v-2d2a8baf]{color:#0e90d2}.PAUSED[data-v-2d2a8baf]{color:#3bb4f2}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as h,h as x}from"./query-DRKvftyM.js";import{d as C,u as y,A as S,m as l,C as k,c as o,o as n,h as t,b as a,q as N,k as r,n as d,s as w}from"./index-B94pQy55.js";import{c as _}from"./constant-CZ5yULfd.js";import{u as T}from"./useQueryBoardData-DfePVUs0.js";import{_ as E}from"./_plugin-vue_export-helper-DlAUqK2U.js";const I={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},B={key:0},D={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},U={key:0},b={key:1},j={flex:"","flex-col":"","items-center":"","justify-center":"","font-mono":""},F={key:0},L={key:1},O=C({__name:"Countdown",props:{dataSourceUrl:null},setup(u){const m=u,{t:f}=y(),p=S(_),s=w(),e=l({}),i=l(!1),{data:c,isError:v,error:g}=T(m.dataSourceUrl,s);return k(c,async()=>{c.value===null||c.value===void 0||(e.value=h(c.value?.contest),p.value=`${e.value.name} | ${_}`,i.value=!0)},{immediate:!0}),(P,V)=>(n(),o("div",I,[t(i)?(n(),o("div",b,[a("div",j,[a("div",{"mt-20":"","text-6xl":"",class:d([t(e).getContestState(t(s)).toString()])},r(t(e).getContestState(t(s))),3),a("div",{"mt-20":"",class:d(["text-[320px]",[t(e).getContestState(t(s)).toString()]])},[t(e).getContestState(t(s))===t(x).PENDING?(n(),o("div",F,r(t(e).getContestPendingTime(t(s))),1)):(n(),o("div",L,r(t(e).getContestElapsedTime(t(s))),1))],2)])])):(n(),o("div",B,[a("div",D,[a("div",null,r(t(f)("common.loading"))+"... ",1),t(v)?(n(),o("div",U,r(t(g)),1)):N("",!0)])]))]))}}),Q=E(O,[["__scopeId","data-v-2d2a8baf"]]);export{Q as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i}from"./Board-B9qlHyDI.js";import{_ as u}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-B5xllChj.js";import{b as f}from"./query-DRKvftyM.js";import{d,c as e,o as t,a as n,q as l,h as a,F as B,G as h}from"./index-B94pQy55.js";import{b as c}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./pagination-nWSlxTuW.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-B47ETaN9.js";import"./TheInput.vue_vue_type_script_setup_true_lang-Cq-GdaDA.js";import"./use-vmodel-DYni6XFa.js";import"./rank-CihvP4tD.js";import"./dayjs-CZgaplJl.js";import"./person-CJEnqSCh.js";import"./ContestStateBadge-CCVy2wZJ.js";import"./constant-CZ5yULfd.js";import"./useQueryBoardData-DfePVUs0.js";const b={key:0},x=d({__name:"CustomBoard",setup(s){const o=f();return(r,g)=>{const _=u,p=i;return t(),e(B,null,[n(_),a(o).length>0?(t(),e("div",b,[n(p,{"data-source-url":a(o)},null,8,["data-source-url"])])):l("",!0)],64)}}}),m={};function C(s,o){const r=x;return t(),h(r)}typeof c=="function"&&c(m);const z=k(m,[["render",C]]);export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={button:{about:{t:0,b:{t:2,i:[{t:3}],s:"About"}},back:{t:0,b:{t:2,i:[{t:3}],s:"Back"}},go:{t:0,b:{t:2,i:[{t:3}],s:"GO"}},home:{t:0,b:{t:2,i:[{t:3}],s:"Home"}},confirm:{t:0,b:{t:2,i:[{t:3}],s:"Confirm"}},cancel:{t:0,b:{t:2,i:[{t:3}],s:"Cancel"}},toggle_dark:{t:0,b:{t:2,i:[{t:3}],s:"Toggle dark mode"}},toggle_langs:{t:0,b:{t:2,i:[{t:3}],s:"Change languages"}}},intro:{desc:{t:0,b:{t:2,i:[{t:3}],s:"Opinionated Vite Starter Template"}},"dynamic-route":{t:0,b:{t:2,i:[{t:3}],s:"Demo of dynamic route"}},hi:{t:0,b:{t:2,i:[{t:3,v:"Hi, "},{t:4,k:"name"},{t:3,v:"!"}]}},aka:{t:0,b:{t:2,i:[{t:3}],s:"Also known as"}},"whats-your-name":{t:0,b:{t:2,i:[{t:3}],s:"What's your name?"}}},"not-found":{t:0,b:{t:2,i:[{t:3}],s:"Not found"}},common:{loading:{t:0,b:{t:2,i:[{t:3}],s:"Loading"}},colon:{t:0,b:{t:2,i:[{t:3}],s:":"}}},index:{start:{t:0,b:{t:2,i:[{t:3}],s:"StartTime"}},duration:{t:0,b:{t:2,i:[{t:3}],s:"Duration"}}},type_menu:{rank:{t:0,b:{t:2,i:[{t:3}],s:"Rank"}},info:{t:0,b:{t:2,i:[{t:3}],s:"Info"}},submissions:{t:0,b:{t:2,i:[{t:3}],s:"Submissions"}},statistics:{t:0,b:{t:2,i:[{t:3}],s:"Statistics"}},balloon:{t:0,b:{t:2,i:[{t:3}],s:"Balloon"}},resolver:{t:0,b:{t:2,i:[{t:3}],s:"Resolver"}},filter:{t:0,b:{t:2,i:[{t:3}],s:"Filter"}},options:{t:0,b:{t:2,i:[{t:3}],s:"Options"}},awards:{t:0,b:{t:2,i:[{t:3}],s:"Awards"}},utility:{t:0,b:{t:2,i:[{t:3}],s:"Utility"}},countdown:{t:0,b:{t:2,i:[{t:3}],s:"Countdown"}}},utility:{tools:{t:0,b:{t:2,i:[{t:3}],s:"Tools"}},export:{t:0,b:{t:2,i:[{t:3}],s:"Export"}}},standings:{start_time:{t:0,b:{t:2,i:[{t:3}],s:"Start"}},end_time:{t:0,b:{t:2,i:[{t:3}],s:"End"}},elapsed:{t:0,b:{t:2,i:[{t:3}],s:"Elapsed"}},remaining:{t:0,b:{t:2,i:[{t:3}],s:"Remaining"}},place:{t:0,b:{t:2,i:[{t:3}],s:"Place"}},team:{t:0,b:{t:2,i:[{t:3}],s:"Team"}},solved:{t:0,b:{t:2,i:[{t:3}],s:"Solved"}},penalty:{t:0,b:{t:2,i:[{t:3}],s:"Penalty"}},dirt:{t:0,b:{t:2,i:[{t:3}],s:"Dirt"}},se:{t:0,b:{t:2,i:[{t:3}],s:"SE"}},statistics:{submitted:{t:0,b:{t:2,i:[{t:3}],s:"Submitted"}},attempted:{t:0,b:{t:2,i:[{t:3}],s:"Attempted"}},accepted:{t:0,b:{t:2,i:[{t:3}],s:"Accepted"}},dirt:{t:0,b:{t:2,i:[{t:3}],s:"Dirt"}},se:{t:0,b:{t:2,i:[{t:3}],s:"SE"}},first_solved:{t:0,b:{t:2,i:[{t:3}],s:"First Solved"}},last_solved:{t:0,b:{t:2,i:[{t:3}],s:"Last Solved"}},head_data:{problems:{t:0,b:{t:2,i:[{t:3}],s:"Problems"}},teams:{t:0,b:{t:2,i:[{t:3}],s:"Teams"}},submissions:{t:0,b:{t:2,i:[{t:3}],s:"Submissions"}}},submit_heatmap:{t:0,b:{t:2,i:[{t:3}],s:"Submit Heatmap"}}},options:{calculation_of_penalty:{t:0,b:{t:2,i:[{t:3}],s:"Calculation Of Penalty"}},in_minutes:{t:0,b:{t:2,i:[{t:3}],s:"in minutes"}},in_seconds:{t:0,b:{t:2,i:[{t:3}],s:"in seconds"}},accumulate_in_seconds_and_finally_to_the_minute:{t:0,b:{t:2,i:[{t:3}],s:"Accumulate in seconds and finally to the minute"}}}},submissions:{total_submissions:{t:0,b:{t:2,i:[{t:3}],s:"Total Submissions"}}},team_info:{rank:{t:0,b:{t:2,i:[{t:3}],s:"Rank"}},team_name:{t:0,b:{t:2,i:[{t:3}],s:"Team Name"}},organization:{t:0,b:{t:2,i:[{t:3}],s:"Organization"}},group:{t:0,b:{t:2,i:[{t:3}],s:"Group"}},members:{t:0,b:{t:2,i:[{t:3}],s:"Members"}},coaches:{t:0,b:{t:2,i:[{t:3}],s:"Coaches"}},location:{t:0,b:{t:2,i:[{t:3}],s:"Location"}}}};export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as u}from"./Balloon.vue_vue_type_script_setup_true_lang-BYUKhrtC.js";import{_ as l}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-B5xllChj.js";import{b as d}from"./query-DRKvftyM.js";import{d as f,c as t,o as e,F as h,q as s,h as r,b as B,a as n}from"./index-B94pQy55.js";import{b as c}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./constant-CZ5yULfd.js";import"./rank-CihvP4tD.js";import"./dayjs-CZgaplJl.js";import"./person-CJEnqSCh.js";import"./useQueryBoardData-DfePVUs0.js";import"./TheInput.vue_vue_type_script_setup_true_lang-Cq-GdaDA.js";import"./use-vmodel-DYni6XFa.js";const x={key:0},b={"mt-20":""},v={key:1},y=f({__name:"CustomBalloon",setup(_){const o=d();return(a,g)=>{const i=l,p=u;return e(),t(h,null,[r(o).length===0?(e(),t("div",x,[B("div",b,[n(i)])])):s("",!0),r(o).length>0?(e(),t("div",v,[n(p,{"data-source-url":r(o)},null,8,["data-source-url"])])):s("",!0)],64)}}}),m={};function C(_,o){const a=y;return e(),t("div",null,[n(a)])}typeof c=="function"&&c(m);const z=k(m,[["render",C]]);export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as u}from"./Resolver-leMWgtXW.js";import{_ as l}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-B5xllChj.js";import{b as d}from"./query-DRKvftyM.js";import{d as f,c as e,o as t,F as h,q as c,h as r,b as v,a as n}from"./index-B94pQy55.js";import{b as a}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./rank-CihvP4tD.js";import"./dayjs-CZgaplJl.js";import"./person-CJEnqSCh.js";import"./constant-CZ5yULfd.js";import"./useQueryBoardData-DfePVUs0.js";import"./TheInput.vue_vue_type_script_setup_true_lang-Cq-GdaDA.js";import"./use-vmodel-DYni6XFa.js";const x={key:0},b={"mt-20":""},g={key:1},y=f({__name:"CustomResolver",setup(m){const o=d();return(s,B)=>{const i=l,p=u;return t(),e(h,null,[r(o).length===0?(t(),e("div",x,[v("div",b,[n(i)])])):c("",!0),r(o).length>0?(t(),e("div",g,[n(p,{"data-source-url":r(o)},null,8,["data-source-url"])])):c("",!0)],64)}}}),_={};function C(m,o){const s=y;return t(),e("div",null,[n(s)])}typeof a=="function"&&a(_);const w=k(_,[["render",C]]);export{w as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as p}from"./Countdown-cd9telur.js";import{_ as d}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-B5xllChj.js";import{b as f}from"./query-DRKvftyM.js";import{d as l,c as t,o as e,F as h,q as c,h as n,b as C,a as r}from"./index-B94pQy55.js";import{b as a}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./constant-CZ5yULfd.js";import"./useQueryBoardData-DfePVUs0.js";import"./TheInput.vue_vue_type_script_setup_true_lang-Cq-GdaDA.js";import"./use-vmodel-DYni6XFa.js";import"./dayjs-CZgaplJl.js";const x={key:0},b={"mt-20":""},g={key:1},v=l({__name:"CustomCountdown",setup(m){const o=f();return(s,w)=>{const u=d,i=p;return e(),t(h,null,[n(o).length===0?(e(),t("div",x,[C("div",b,[r(u)])])):c("",!0),n(o).length>0?(e(),t("div",g,[r(i,{"data-source-url":n(o)},null,8,["data-source-url"])])):c("",!0)],64)}}}),_={};function y(m,o){const s=v;return e(),t("div",null,[r(s)])}typeof a=="function"&&a(_);const Q=k(_,[["render",y]]);export{Q as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={button:{about:{t:0,b:{t:2,i:[{t:3}],s:"关于"}},back:{t:0,b:{t:2,i:[{t:3}],s:"返回"}},go:{t:0,b:{t:2,i:[{t:3}],s:"确定"}},home:{t:0,b:{t:2,i:[{t:3}],s:"首页"}},confirm:{t:0,b:{t:2,i:[{t:3}],s:"确认"}},cancel:{t:0,b:{t:2,i:[{t:3}],s:"取消"}},toggle_dark:{t:0,b:{t:2,i:[{t:3}],s:"切换深色模式"}},toggle_langs:{t:0,b:{t:2,i:[{t:3}],s:"切换语言"}}},intro:{desc:{t:0,b:{t:2,i:[{t:3}],s:"固执己见的 Vite 项目模板"}},"dynamic-route":{t:0,b:{t:2,i:[{t:3}],s:"动态路由演示"}},hi:{t:0,b:{t:2,i:[{t:3,v:"你好,"},{t:4,k:"name"}]}},aka:{t:0,b:{t:2,i:[{t:3}],s:"也叫"}},"whats-your-name":{t:0,b:{t:2,i:[{t:3}],s:"输入你的名字"}}},"not-found":{t:0,b:{t:2,i:[{t:3}],s:"未找到页面"}},common:{loading:{t:0,b:{t:2,i:[{t:3}],s:"加载中"}},colon:{t:0,b:{t:2,i:[{t:3}],s:":"}}},index:{start:{t:0,b:{t:2,i:[{t:3}],s:"开始时间"}},duration:{t:0,b:{t:2,i:[{t:3}],s:"持续时长"}}},type_menu:{rank:{t:0,b:{t:2,i:[{t:3}],s:"排名"}},info:{t:0,b:{t:2,i:[{t:3}],s:"简介"}},submissions:{t:0,b:{t:2,i:[{t:3}],s:"提交"}},statistics:{t:0,b:{t:2,i:[{t:3}],s:"统计"}},balloon:{t:0,b:{t:2,i:[{t:3}],s:"气球"}},resolver:{t:0,b:{t:2,i:[{t:3}],s:"滚榜"}},filter:{t:0,b:{t:2,i:[{t:3}],s:"筛选"}},options:{t:0,b:{t:2,i:[{t:3}],s:"选项"}},awards:{t:0,b:{t:2,i:[{t:3}],s:"奖项"}},utility:{t:0,b:{t:2,i:[{t:3}],s:"工具"}},countdown:{t:0,b:{t:2,i:[{t:3}],s:"倒计时"}}},utility:{tools:{t:0,b:{t:2,i:[{t:3}],s:"工具集"}},export:{t:0,b:{t:2,i:[{t:3}],s:"导出"}}},standings:{start_time:{t:0,b:{t:2,i:[{t:3}],s:"开始时间"}},end_time:{t:0,b:{t:2,i:[{t:3}],s:"结束时间"}},elapsed:{t:0,b:{t:2,i:[{t:3}],s:"当前时间"}},remaining:{t:0,b:{t:2,i:[{t:3}],s:"剩余时间"}},place:{t:0,b:{t:2,i:[{t:3}],s:"Place"}},team:{t:0,b:{t:2,i:[{t:3}],s:"Team"}},solved:{t:0,b:{t:2,i:[{t:3}],s:"Solved"}},penalty:{t:0,b:{t:2,i:[{t:3}],s:"Penalty"}},dirt:{t:0,b:{t:2,i:[{t:3}],s:"Dirt"}},se:{t:0,b:{t:2,i:[{t:3}],s:"SE"}},statistics:{submitted:{t:0,b:{t:2,i:[{t:3}],s:"Submitted"}},attempted:{t:0,b:{t:2,i:[{t:3}],s:"Attempted"}},accepted:{t:0,b:{t:2,i:[{t:3}],s:"Accepted"}},dirt:{t:0,b:{t:2,i:[{t:3}],s:"Dirt"}},se:{t:0,b:{t:2,i:[{t:3}],s:"SE"}},first_solved:{t:0,b:{t:2,i:[{t:3}],s:"First Solved"}},last_solved:{t:0,b:{t:2,i:[{t:3}],s:"Last Solved"}},head_data:{problems:{t:0,b:{t:2,i:[{t:3}],s:"题目数"}},teams:{t:0,b:{t:2,i:[{t:3}],s:"队伍数"}},submissions:{t:0,b:{t:2,i:[{t:3}],s:"提交数"}}},submit_heatmap:{t:0,b:{t:2,i:[{t:3}],s:"提交热力图"}}},options:{calculation_of_penalty:{t:0,b:{t:2,i:[{t:3}],s:"罚时计算方式"}},in_minutes:{t:0,b:{t:2,i:[{t:3}],s:"精确到分钟进行累加"}},in_seconds:{t:0,b:{t:2,i:[{t:3}],s:"精确到秒进行累加"}},accumulate_in_seconds_and_finally_to_the_minute:{t:0,b:{t:2,i:[{t:3}],s:"精确到秒进行累加,最后精确到分钟"}}}},submissions:{total_submissions:{t:0,b:{t:2,i:[{t:3}],s:"总提交数"}}},team_info:{rank:{t:0,b:{t:2,i:[{t:3}],s:"排名"}},team_name:{t:0,b:{t:2,i:[{t:3}],s:"队名"}},organization:{t:0,b:{t:2,i:[{t:3}],s:"组织"}},group:{t:0,b:{t:2,i:[{t:3}],s:"组别"}},members:{t:0,b:{t:2,i:[{t:3}],s:"队员"}},coaches:{t:0,b:{t:2,i:[{t:3}],s:"教练"}},location:{t:0,b:{t:2,i:[{t:3}],s:"位置"}}}};export{t as default};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { Rank, Team } from "@xcpcio/core";
|
|
3
|
-
import { MedalType } from "@xcpcio/core";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
team: Team;
|
|
7
|
-
rank: Rank;
|
|
8
|
-
}>();
|
|
9
|
-
|
|
10
|
-
const team = computed(() => props.team);
|
|
11
|
-
const rank = computed(() => props.rank);
|
|
12
|
-
|
|
13
|
-
const firstSolvedProblems = computed(() => {
|
|
14
|
-
return props.team.problemStatistics.filter((p) => {
|
|
15
|
-
if (p.isFirstSolved) {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return false;
|
|
20
|
-
}).map(p => p.problem.label).join(",");
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
interface Medal {
|
|
24
|
-
text: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const medal = computed((): Medal | null => {
|
|
28
|
-
const awards = props.team.awards;
|
|
29
|
-
|
|
30
|
-
if (awards.includes(MedalType.GOLD)) {
|
|
31
|
-
return {
|
|
32
|
-
text: "Gold",
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (awards.includes(MedalType.SILVER)) {
|
|
37
|
-
return {
|
|
38
|
-
text: "Silver",
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
if (awards.includes(MedalType.BRONZE)) {
|
|
43
|
-
return {
|
|
44
|
-
text: "Bronze",
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (awards.includes(MedalType.HONORABLE)) {
|
|
49
|
-
return {
|
|
50
|
-
text: "Honorable",
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return null;
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
const place = computed(() => {
|
|
58
|
-
let r = team.value.rank;
|
|
59
|
-
|
|
60
|
-
if (rank.value.contest.organization) {
|
|
61
|
-
r = team.value.organizationRank;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (r === 1) {
|
|
65
|
-
return "1st Place";
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
if (r === 2) {
|
|
69
|
-
return "2nd Place";
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if (r === 3) {
|
|
73
|
-
return "3rd Place";
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return "";
|
|
77
|
-
});
|
|
78
|
-
</script>
|
|
79
|
-
|
|
80
|
-
<template>
|
|
81
|
-
<div
|
|
82
|
-
text-gray-900 dark:text-white
|
|
83
|
-
text-xl
|
|
84
|
-
font-mono font-semibold italic
|
|
85
|
-
flex flex-col gap-2
|
|
86
|
-
justify-center items-center
|
|
87
|
-
>
|
|
88
|
-
<div
|
|
89
|
-
flex flex-col
|
|
90
|
-
items-start
|
|
91
|
-
gap-y-2
|
|
92
|
-
>
|
|
93
|
-
<div
|
|
94
|
-
v-if="medal"
|
|
95
|
-
>
|
|
96
|
-
{{ medal.text }} Medalist
|
|
97
|
-
</div>
|
|
98
|
-
|
|
99
|
-
<div
|
|
100
|
-
v-if="place.length > 0"
|
|
101
|
-
>
|
|
102
|
-
{{ place }}
|
|
103
|
-
</div>
|
|
104
|
-
|
|
105
|
-
<div
|
|
106
|
-
v-if="firstSolvedProblems.length"
|
|
107
|
-
flex flex-col gap-2
|
|
108
|
-
>
|
|
109
|
-
<div>
|
|
110
|
-
First Solved Problem {{ firstSolvedProblems }}
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
<div
|
|
115
|
-
v-if="team.solvedProblemNum > 0"
|
|
116
|
-
>
|
|
117
|
-
Solved {{ team.solvedProblemNum }} {{ team.solvedProblemNum > 1 ? 'Problems' : 'Problem' }}
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
</template>
|