@xcpcio/board-app 0.72.0 → 0.74.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-CeyD9H5H.js +1 -0
- package/dist/assets/{Board-gTyMhGu_.js → Board-BFvoTH8d.js} +86 -86
- package/dist/assets/{Board-tx1moXfi.css → Board-BwblFaIo.css} +1 -1
- package/dist/assets/ContestStateBadge-BR1f4Iq-.js +1 -0
- package/dist/assets/Countdown-jAwRBsgJ.js +1 -0
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-kagtc8bk.js +1 -0
- package/dist/assets/NavBar-BLPM7t11.js +1 -0
- package/dist/assets/{Resolver-Q8DKPT27.js → Resolver-C8uCNFNR.js} +4 -4
- package/dist/assets/{Resolver-DWEPObm3.css → Resolver-WB6joHhI.css} +1 -1
- package/dist/assets/{RightArrowIcon-DcxfKt9w.js → RightArrowIcon-CxTngzuT.js} +1 -1
- package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-MKAklEWs.js +1 -0
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-Dyb2RnsU.js → Tooltip.vue_vue_type_script_setup_true_lang-BUnVSWCB.js} +1 -1
- package/dist/assets/_...all_-CnkT4PVb.js +1 -0
- package/dist/assets/{_...all_-CsmwUlW2.js → _...all_-D7WBSwOv.js} +2 -2
- package/dist/assets/board-layout-Bu9E-8ti.js +1 -0
- package/dist/assets/constant-z3sbugPT.js +1 -0
- package/dist/assets/dayjs-CsJI1pvO.js +1 -0
- package/dist/assets/default-CV0hqP0u.js +1 -0
- package/dist/assets/{en-Bc_VXYkH.js → en-B4_XwpZN.js} +1 -1
- package/dist/assets/{headless-YFGG3i0X.js → headless-D_J5o7dw.js} +1 -1
- package/dist/assets/index-8PXU_sno.js +71 -0
- package/dist/assets/index-B1MSy4n9.css +5 -0
- package/dist/assets/{index-Ci0NSRmy.js → index-BVGQ976A.js} +1 -1
- package/dist/assets/index-Bv_d-8W3.js +1 -0
- package/dist/assets/{index-CwP7NwGG.js → index-CsWAnEBP.js} +2 -2
- package/dist/assets/index-DlnVAFjF.js +1 -0
- package/dist/assets/index-HBssAgsv.js +1 -0
- package/dist/assets/index-WgD2LlAm.js +1 -0
- package/dist/assets/index-layout-maIkLl-c.js +1 -0
- package/dist/assets/{pagination-DIQw6Eni.js → pagination-z8KCjwk9.js} +3 -3
- package/dist/assets/{person-B1AH3WbL.js → person-BKesfx6Y.js} +1 -1
- package/dist/assets/rank-DYdp7LSn.js +1 -0
- package/dist/assets/use-vmodel-BLyWK6hZ.js +39 -0
- package/dist/assets/{zh-CN-DJPqkv-M.js → zh-CN-DBAg7eFu.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -7
- package/src/components/BalloonBlock.vue +1 -1
- package/src/components/ResolverTeamRow.vue +1 -1
- package/src/components/board/AnimatedSubmissionsModal.vue +5 -2
- package/src/components/board/FilterModal.vue +5 -3
- package/src/components/board/OptionsModal.vue +5 -3
- package/src/components/board/Standings.vue +7 -5
- package/src/components/board/Statistics.vue +26 -11
- package/src/components/board/SubmissionsTable.vue +13 -12
- package/src/components/board/TeamModal.vue +2 -2
- package/src/components/board/TeamOverview.vue +1 -1
- package/src/components/board/TeamUI.vue +4 -4
- package/src/components.d.ts +2 -2
- package/src/typed-router.d.ts +3 -18
- package/vite.config.ts +1 -31
- package/dist/assets/Balloon.vue_vue_type_script_setup_true_lang-CtCuouAQ.js +0 -1
- package/dist/assets/ContestStateBadge-CB8_hsLw.js +0 -1
- package/dist/assets/Countdown-pWjZd9nn.js +0 -1
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-_B3NQY48.js +0 -1
- package/dist/assets/Footer-8QvUWvz2.js +0 -1
- package/dist/assets/NavBar-CGIuv3BJ.js +0 -1
- package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-BKJ3GgGT.js +0 -1
- package/dist/assets/_...all_-CuN-oZGd.js +0 -1
- package/dist/assets/_name_-ejpgLJXZ.js +0 -1
- package/dist/assets/about-CBXjd0U3.js +0 -5
- package/dist/assets/board-BhNDeXB1.js +0 -1
- package/dist/assets/board-layout-D4i0NI6R.js +0 -1
- package/dist/assets/constant-BHMGs8HW.js +0 -1
- package/dist/assets/dayjs-CWFDEEjq.js +0 -1
- package/dist/assets/default-Bgrn5KWs.js +0 -1
- package/dist/assets/home-Cu4pz2Sk.js +0 -1
- package/dist/assets/index-7wQI9KTJ.js +0 -1
- package/dist/assets/index-BQg0Pox6.js +0 -1
- package/dist/assets/index-DlLCgg4E.js +0 -1
- package/dist/assets/index-DpqeUvzf.js +0 -71
- package/dist/assets/index-VQCc5ge4.css +0 -5
- package/dist/assets/index-layout-BtwuD15Z.js +0 -1
- package/dist/assets/query-Cp6RMzQO.js +0 -39
- package/dist/assets/rank-DEv6bmyV.js +0 -1
- package/dist/assets/test-C7-PYhSH.js +0 -1
- package/dist/assets/use-vmodel-CgA-6ZIs.js +0 -1
- package/dist/assets/useQueryBoardData-Dj_9ByYT.js +0 -1
- package/dist/assets/user-CecgtJR8.js +0 -1
- package/dist/assets/virtual_pwa-register-H_ZiqMGT.js +0 -1
- package/dist/assets/workbox-window.prod.es5-CwtvwXb3.js +0 -2
- package/dist/manifest.webmanifest +0 -1
- package/dist/sw.js +0 -1
- package/dist/workbox-7ee6f867.js +0 -1
- package/src/layouts/home.vue +0 -12
- package/src/modules/README.md +0 -11
- package/src/modules/pwa.ts +0 -15
- package/src/pages/about.md +0 -21
- package/src/pages/hi/[name].vue +0 -50
- package/src/pages/test.vue +0 -65
- /package/src/components/{icon → common}/RightArrowIcon.vue +0 -0
- /package/src/components/{table → common}/TablePagination.vue +0 -0
- /package/src/pages/{board.vue → board/index.vue} +0 -0
|
@@ -46,8 +46,8 @@ const rank = computed(() => props.rank);
|
|
|
46
46
|
const orgOptions = computed(() => {
|
|
47
47
|
const res = rank.value.organizations.map((o) => {
|
|
48
48
|
return {
|
|
49
|
-
value: o,
|
|
50
|
-
text: o,
|
|
49
|
+
value: o.id,
|
|
50
|
+
text: o.name.getOrDefault(lang.value),
|
|
51
51
|
};
|
|
52
52
|
});
|
|
53
53
|
|
|
@@ -62,9 +62,11 @@ function orgOnSelect(selectedItems: Array<SelectOptionItem>, _lastSelectItem: Se
|
|
|
62
62
|
|
|
63
63
|
const teamsOptions = computed(() => {
|
|
64
64
|
const res = rank.value.originTeams.map((t) => {
|
|
65
|
+
const teamName = t.name.getOrDefault(lang.value);
|
|
66
|
+
const orgName = t.organization?.name.getOrDefault(lang.value);
|
|
65
67
|
return {
|
|
66
68
|
value: t.id,
|
|
67
|
-
text:
|
|
69
|
+
text: orgName ? `${teamName} - ${orgName}` : teamName,
|
|
68
70
|
};
|
|
69
71
|
});
|
|
70
72
|
|
|
@@ -47,8 +47,8 @@ const title = computed(() => {
|
|
|
47
47
|
const orgOptions = computed(() => {
|
|
48
48
|
const res = rank.value.organizations.map((o) => {
|
|
49
49
|
return {
|
|
50
|
-
value: o,
|
|
51
|
-
text: o,
|
|
50
|
+
value: o.id,
|
|
51
|
+
text: o.name.getOrDefault(lang.value),
|
|
52
52
|
};
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -57,9 +57,11 @@ const orgOptions = computed(() => {
|
|
|
57
57
|
|
|
58
58
|
const teamsOptions = computed(() => {
|
|
59
59
|
const res = rank.value.originTeams.map((t) => {
|
|
60
|
+
const teamName = t.name.getOrDefault(lang.value);
|
|
61
|
+
const orgName = t.organization?.name.getOrDefault(lang.value);
|
|
60
62
|
return {
|
|
61
63
|
value: t.id,
|
|
62
|
-
text:
|
|
64
|
+
text: orgName ? `${teamName} - ${orgName}` : teamName,
|
|
63
65
|
};
|
|
64
66
|
});
|
|
65
67
|
|
|
@@ -16,8 +16,8 @@ const rankOptions = computed(() => props.rank.options);
|
|
|
16
16
|
|
|
17
17
|
const filterTeams = computed(() => {
|
|
18
18
|
const res = props.rank.teams.filter((t) => {
|
|
19
|
-
if (props.rank.organizations) {
|
|
20
|
-
if (props.rank.options.filterOrganizationMap.has(t.organization)) {
|
|
19
|
+
if (props.rank.organizations && t.organization) {
|
|
20
|
+
if (props.rank.options.filterOrganizationMap.has(t.organization.id)) {
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -50,7 +50,7 @@ const giantTeams = computed(() => {
|
|
|
50
50
|
for (const t of props.rank.teams) {
|
|
51
51
|
const giantsType = (() => {
|
|
52
52
|
if (
|
|
53
|
-
blueTeam.filterOrganizationMap.has(t.organization)
|
|
53
|
+
(!!t.organization && blueTeam.filterOrganizationMap.has(t.organization.id))
|
|
54
54
|
|| blueTeam.filterTeamMap.has(t.id)
|
|
55
55
|
) {
|
|
56
56
|
if (blueCnt >= battleOfGiants.topX) {
|
|
@@ -62,7 +62,7 @@ const giantTeams = computed(() => {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
if (
|
|
65
|
-
redTeam.filterOrganizationMap.has(t.organization)
|
|
65
|
+
(!!t.organization && redTeam.filterOrganizationMap.has(t.organization.id))
|
|
66
66
|
|| redTeam.filterTeamMap.has(t.id)
|
|
67
67
|
) {
|
|
68
68
|
if (redCnt >= battleOfGiants.topX) {
|
|
@@ -122,7 +122,9 @@ const giantTeams = computed(() => {
|
|
|
122
122
|
const maxOrgLength = computed(() => {
|
|
123
123
|
let res = 0;
|
|
124
124
|
rank.value.teams.forEach((t) => {
|
|
125
|
-
|
|
125
|
+
if (t.organization) {
|
|
126
|
+
res = Math.max(res, t.organization.name.getOrDefault(lang.value).length);
|
|
127
|
+
}
|
|
126
128
|
});
|
|
127
129
|
|
|
128
130
|
return res;
|
|
@@ -11,26 +11,41 @@ const { t } = useI18n();
|
|
|
11
11
|
|
|
12
12
|
const rank = computed(() => props.rank);
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
const
|
|
14
|
+
const headData = computed(() => {
|
|
15
|
+
const res = [];
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
res.push({
|
|
18
18
|
title: "standings.statistics.head_data.problems",
|
|
19
19
|
data: rank.value.contest.problems.length,
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
if (rank.value.organizations.length > 0) {
|
|
23
|
+
res.push({
|
|
24
|
+
title: "standings.statistics.head_data.organizations",
|
|
25
|
+
data: rank.value.organizations.length,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
res.push({
|
|
23
30
|
title: "standings.statistics.head_data.teams",
|
|
24
31
|
data: rank.value.teams.length,
|
|
25
32
|
});
|
|
26
33
|
|
|
27
|
-
|
|
34
|
+
res.push({
|
|
28
35
|
title: "standings.statistics.head_data.submissions",
|
|
29
36
|
data: rank.value.getSubmissions().length,
|
|
30
37
|
});
|
|
31
38
|
|
|
32
|
-
return
|
|
33
|
-
}
|
|
39
|
+
return res;
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const headDataGap = computed(() => {
|
|
43
|
+
if (headData.value.length === 4) {
|
|
44
|
+
return "gap-20";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return "gap-32";
|
|
48
|
+
});
|
|
34
49
|
</script>
|
|
35
50
|
|
|
36
51
|
<template>
|
|
@@ -44,12 +59,12 @@ function getHeadData() {
|
|
|
44
59
|
mx-auto px-4 py-4 lg:px-6 lg:py-6
|
|
45
60
|
>
|
|
46
61
|
<div
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
flex flex-nowrap justify-center items-center
|
|
63
|
+
:class="headDataGap"
|
|
49
64
|
>
|
|
50
|
-
<div v-for="h in
|
|
65
|
+
<div v-for="h in headData" :key="h.title" class="w-[16rem]">
|
|
51
66
|
<div
|
|
52
|
-
|
|
67
|
+
w-full
|
|
53
68
|
p-6 xl:p-8
|
|
54
69
|
flex flex-col
|
|
55
70
|
border border-gray-100 dark:border-gray-600
|
|
@@ -9,7 +9,7 @@ import { SubmissionStatusToString } from "@xcpcio/types";
|
|
|
9
9
|
import "@board/styles/submission-status-filter.css";
|
|
10
10
|
|
|
11
11
|
interface FilterOptions {
|
|
12
|
-
|
|
12
|
+
orgIds: string[];
|
|
13
13
|
teamIds: string[];
|
|
14
14
|
languages: string[];
|
|
15
15
|
statuses: SubmissionStatus[];
|
|
@@ -50,7 +50,7 @@ const enableFilterButton = computed(() => {
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
const filterOptions = ref<FilterOptions>({
|
|
53
|
-
|
|
53
|
+
orgIds: [],
|
|
54
54
|
teamIds: [],
|
|
55
55
|
languages: [],
|
|
56
56
|
statuses: [],
|
|
@@ -59,8 +59,8 @@ const filterOptions = ref<FilterOptions>({
|
|
|
59
59
|
const orgOptions = computed(() => {
|
|
60
60
|
const res = rank.value.organizations.map((o) => {
|
|
61
61
|
return {
|
|
62
|
-
value: o,
|
|
63
|
-
text: o,
|
|
62
|
+
value: o.id,
|
|
63
|
+
text: o.name.getOrDefault(lang.value),
|
|
64
64
|
};
|
|
65
65
|
});
|
|
66
66
|
|
|
@@ -78,9 +78,10 @@ function orgOnSelect(selectedItems: Array<SelectOptionItem>, lastSelectItem: Sel
|
|
|
78
78
|
const teamsOptions = computed(() => {
|
|
79
79
|
const res = rank.value.originTeams.map((t) => {
|
|
80
80
|
const teamName = t.name.getOrDefault(lang.value);
|
|
81
|
+
const orgName = t.organization?.name.getOrDefault(lang.value);
|
|
81
82
|
return {
|
|
82
83
|
value: t.id,
|
|
83
|
-
text:
|
|
84
|
+
text: orgName ? `${teamName} - ${orgName}` : teamName,
|
|
84
85
|
};
|
|
85
86
|
});
|
|
86
87
|
|
|
@@ -146,7 +147,7 @@ const submissions = computed(() => {
|
|
|
146
147
|
return ss.filter((s) => {
|
|
147
148
|
const o = filterOptions.value;
|
|
148
149
|
|
|
149
|
-
if (o.
|
|
150
|
+
if (o.orgIds.length === 0
|
|
150
151
|
&& o.teamIds.length === 0
|
|
151
152
|
&& o.languages.length === 0
|
|
152
153
|
&& o.statuses.length === 0
|
|
@@ -162,10 +163,10 @@ const submissions = computed(() => {
|
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
|
|
165
|
-
if (o.
|
|
166
|
+
if (o.orgIds.length > 0) {
|
|
166
167
|
const team = rank.value.teamsMap.get(s.teamId);
|
|
167
|
-
for (const n of o.
|
|
168
|
-
if (n === team?.organization) {
|
|
168
|
+
for (const n of o.orgIds) {
|
|
169
|
+
if (n === team?.organization?.id) {
|
|
169
170
|
return true;
|
|
170
171
|
}
|
|
171
172
|
}
|
|
@@ -193,13 +194,13 @@ const submissions = computed(() => {
|
|
|
193
194
|
|
|
194
195
|
function onFilter() {
|
|
195
196
|
const newFilterOptions: FilterOptions = {
|
|
196
|
-
|
|
197
|
+
orgIds: [],
|
|
197
198
|
teamIds: [],
|
|
198
199
|
languages: [],
|
|
199
200
|
statuses: [],
|
|
200
201
|
};
|
|
201
202
|
|
|
202
|
-
newFilterOptions.
|
|
203
|
+
newFilterOptions.orgIds = orgSelectedItems.value.map(o => o.value);
|
|
203
204
|
newFilterOptions.teamIds = teamsSelectedItems.value.map(t => t.value);
|
|
204
205
|
newFilterOptions.languages = languageSelectedItems.value.map(l => l.value);
|
|
205
206
|
newFilterOptions.statuses = statusSelectedItems.value.map(s => s.value as SubmissionStatus);
|
|
@@ -464,7 +465,7 @@ function closeVideoModal() {
|
|
|
464
465
|
v-if="rank.contest.organization"
|
|
465
466
|
class="whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"
|
|
466
467
|
>
|
|
467
|
-
{{ rank.teamsMap.get(s.teamId)?.organization }}
|
|
468
|
+
{{ rank.teamsMap.get(s.teamId)?.organization?.name.getOrDefault(lang) }}
|
|
468
469
|
</td>
|
|
469
470
|
|
|
470
471
|
<td class="whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white">
|
|
@@ -36,8 +36,8 @@ const team = computed(() => props.team);
|
|
|
36
36
|
const headerTitle = computed(() => {
|
|
37
37
|
let res = "";
|
|
38
38
|
|
|
39
|
-
if (rank.value.contest.organization && team.value.organization
|
|
40
|
-
res += `${team.value.organization} - `;
|
|
39
|
+
if (rank.value.contest.organization && !!team.value.organization) {
|
|
40
|
+
res += `${team.value.organization.name.getOrDefault(lang.value)} - `;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
res += `${team.value.name.getOrDefault(lang.value)}`;
|
|
@@ -92,7 +92,7 @@ const tableRows = computed(() => {
|
|
|
92
92
|
const rows = [
|
|
93
93
|
{ label: t("team_info.rank"), value: team.value.rank, show: true },
|
|
94
94
|
{ label: t("team_info.team_name"), value: team.value.name.getOrDefault(lang.value), show: true },
|
|
95
|
-
{ label: t("team_info.organization"), value: team.value.organization, show: !!team.value.organization },
|
|
95
|
+
{ label: t("team_info.organization"), value: team.value.organization?.name.getOrDefault(lang.value), show: !!team.value.organization },
|
|
96
96
|
{ label: t("team_info.group"), value: groupNames.value, show: team.value.group.length > 0 },
|
|
97
97
|
{ label: t("team_info.members"), value: team.value.membersToString(lang.value), show: team.value.members.length > 0 },
|
|
98
98
|
{ label: t("team_info.coaches"), value: team.value.coachesToString(lang.value), show: team.value.coaches.length > 0 },
|
|
@@ -105,18 +105,18 @@ function isRenderByVisible() {
|
|
|
105
105
|
>
|
|
106
106
|
<div flex>
|
|
107
107
|
<div
|
|
108
|
-
float-left pl-2
|
|
108
|
+
float-left pl-2
|
|
109
109
|
>
|
|
110
110
|
<div
|
|
111
|
-
v-if="team.
|
|
111
|
+
v-if="!!team.organization && team.isFirstRankOfOrganization"
|
|
112
112
|
>
|
|
113
|
-
{{ team.
|
|
113
|
+
{{ team.organization.rank }}
|
|
114
114
|
</div>
|
|
115
115
|
</div>
|
|
116
116
|
<div
|
|
117
117
|
flex-1
|
|
118
118
|
>
|
|
119
|
-
{{ team.organization }}
|
|
119
|
+
{{ team.organization?.name.getOrDefault(lang) }}
|
|
120
120
|
</div>
|
|
121
121
|
<div float-right />
|
|
122
122
|
</div>
|
package/src/components.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ declare module 'vue' {
|
|
|
50
50
|
ReactionVideoModal: typeof import('./components/board/ReactionVideoModal.vue')['default']
|
|
51
51
|
Resolver: typeof import('./components/Resolver.vue')['default']
|
|
52
52
|
ResolverTeamRow: typeof import('./components/ResolverTeamRow.vue')['default']
|
|
53
|
-
RightArrowIcon: typeof import('./components/
|
|
53
|
+
RightArrowIcon: typeof import('./components/common/RightArrowIcon.vue')['default']
|
|
54
54
|
RouterLink: typeof import('vue-router')['RouterLink']
|
|
55
55
|
RouterView: typeof import('vue-router')['RouterView']
|
|
56
56
|
SearchInput: typeof import('./components/SearchInput.vue')['default']
|
|
@@ -61,7 +61,7 @@ declare module 'vue' {
|
|
|
61
61
|
SubmissionsTable: typeof import('./components/board/SubmissionsTable.vue')['default']
|
|
62
62
|
SubmissionsTableModal: typeof import('./components/board/SubmissionsTableModal.vue')['default']
|
|
63
63
|
SubmitHeatMap: typeof import('./components/board/SubmitHeatMap.vue')['default']
|
|
64
|
-
TablePagination: typeof import('./components/
|
|
64
|
+
TablePagination: typeof import('./components/common/TablePagination.vue')['default']
|
|
65
65
|
TeamModal: typeof import('./components/board/TeamModal.vue')['default']
|
|
66
66
|
TeamOverview: typeof import('./components/board/TeamOverview.vue')['default']
|
|
67
67
|
TeamProblemBlock: typeof import('./components/board/TeamProblemBlock.vue')['default']
|
package/src/typed-router.d.ts
CHANGED
|
@@ -20,15 +20,12 @@ declare module 'vue-router/auto-routes' {
|
|
|
20
20
|
export interface RouteNamedMap {
|
|
21
21
|
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
|
|
22
22
|
'/[...all]': RouteRecordInfo<'/[...all]', '/:all(.*)', { all: ParamValue<true> }, { all: ParamValue<false> }>,
|
|
23
|
-
'/about': RouteRecordInfo<'/about', '/about', Record<never, never>, Record<never, never>>,
|
|
24
23
|
'/balloon/': RouteRecordInfo<'/balloon/', '/balloon', Record<never, never>, Record<never, never>>,
|
|
25
|
-
'/board': RouteRecordInfo<'/board', '/board', Record<never, never>, Record<never, never>>,
|
|
24
|
+
'/board/': RouteRecordInfo<'/board/', '/board', Record<never, never>, Record<never, never>>,
|
|
26
25
|
'/countdown/': RouteRecordInfo<'/countdown/', '/countdown', Record<never, never>, Record<never, never>>,
|
|
27
|
-
'/hi/[name]': RouteRecordInfo<'/hi/[name]', '/hi/:name', { name: ParamValue<true> }, { name: ParamValue<false> }>,
|
|
28
26
|
'/rating/': RouteRecordInfo<'/rating/', '/rating', Record<never, never>, Record<never, never>>,
|
|
29
27
|
'/rating/[...all]': RouteRecordInfo<'/rating/[...all]', '/rating/:all(.*)', { all: ParamValue<true> }, { all: ParamValue<false> }>,
|
|
30
28
|
'/resolver/': RouteRecordInfo<'/resolver/', '/resolver', Record<never, never>, Record<never, never>>,
|
|
31
|
-
'/test': RouteRecordInfo<'/test', '/test', Record<never, never>, Record<never, never>>,
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
/**
|
|
@@ -50,26 +47,18 @@ declare module 'vue-router/auto-routes' {
|
|
|
50
47
|
routes: '/[...all]'
|
|
51
48
|
views: never
|
|
52
49
|
}
|
|
53
|
-
'src/pages/about.md': {
|
|
54
|
-
routes: '/about'
|
|
55
|
-
views: never
|
|
56
|
-
}
|
|
57
50
|
'src/pages/balloon/index.vue': {
|
|
58
51
|
routes: '/balloon/'
|
|
59
52
|
views: never
|
|
60
53
|
}
|
|
61
|
-
'src/pages/board.vue': {
|
|
62
|
-
routes: '/board'
|
|
54
|
+
'src/pages/board/index.vue': {
|
|
55
|
+
routes: '/board/'
|
|
63
56
|
views: never
|
|
64
57
|
}
|
|
65
58
|
'src/pages/countdown/index.vue': {
|
|
66
59
|
routes: '/countdown/'
|
|
67
60
|
views: never
|
|
68
61
|
}
|
|
69
|
-
'src/pages/hi/[name].vue': {
|
|
70
|
-
routes: '/hi/[name]'
|
|
71
|
-
views: never
|
|
72
|
-
}
|
|
73
62
|
'src/pages/rating/index.vue': {
|
|
74
63
|
routes: '/rating/'
|
|
75
64
|
views: never
|
|
@@ -82,10 +71,6 @@ declare module 'vue-router/auto-routes' {
|
|
|
82
71
|
routes: '/resolver/'
|
|
83
72
|
views: never
|
|
84
73
|
}
|
|
85
|
-
'src/pages/test.vue': {
|
|
86
|
-
routes: '/test'
|
|
87
|
-
views: never
|
|
88
|
-
}
|
|
89
74
|
}
|
|
90
75
|
|
|
91
76
|
/**
|
package/vite.config.ts
CHANGED
|
@@ -16,7 +16,6 @@ import { VueRouterAutoImports } from "unplugin-vue-router";
|
|
|
16
16
|
import VueRouter from "unplugin-vue-router/vite";
|
|
17
17
|
import { defineConfig } from "vite";
|
|
18
18
|
import { createHtmlPlugin } from "vite-plugin-html";
|
|
19
|
-
import { VitePWA } from "vite-plugin-pwa";
|
|
20
19
|
import VueDevTools from "vite-plugin-vue-devtools";
|
|
21
20
|
import Layouts from "vite-plugin-vue-layouts";
|
|
22
21
|
import WebfontDownload from "vite-plugin-webfont-dl";
|
|
@@ -120,35 +119,6 @@ export default defineConfig({
|
|
|
120
119
|
},
|
|
121
120
|
}),
|
|
122
121
|
|
|
123
|
-
// https://github.com/antfu/vite-plugin-pwa
|
|
124
|
-
VitePWA({
|
|
125
|
-
registerType: "autoUpdate",
|
|
126
|
-
includeAssets: ["favicon.svg", "safari-pinned-tab.svg"],
|
|
127
|
-
manifest: {
|
|
128
|
-
name: "Board",
|
|
129
|
-
short_name: "Board",
|
|
130
|
-
theme_color: "#ffffff",
|
|
131
|
-
icons: [
|
|
132
|
-
{
|
|
133
|
-
src: "/balloon2-192x192.png",
|
|
134
|
-
sizes: "192x192",
|
|
135
|
-
type: "image/png",
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
src: "/balloon2-512x512.png",
|
|
139
|
-
sizes: "512x512",
|
|
140
|
-
type: "image/png",
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
src: "/balloon2-512x512.png",
|
|
144
|
-
sizes: "512x512",
|
|
145
|
-
type: "image/png",
|
|
146
|
-
purpose: "any maskable",
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
},
|
|
150
|
-
}),
|
|
151
|
-
|
|
152
122
|
// https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n
|
|
153
123
|
VueI18n({
|
|
154
124
|
runtimeOnly: true,
|
|
@@ -199,7 +169,7 @@ export default defineConfig({
|
|
|
199
169
|
|
|
200
170
|
ssr: {
|
|
201
171
|
// TODO: workaround until they support native ESM
|
|
202
|
-
noExternal: [
|
|
172
|
+
noExternal: [/vue-i18n/],
|
|
203
173
|
},
|
|
204
174
|
|
|
205
175
|
server: {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as C,f as i,m as c,p as N,u as D,c as l,o as s,q as j,h as e,n as F,b as o,K as B,k as d,A as O,C as V,F as z,E as I,G as R,s as U}from"./index-DpqeUvzf.js";import{B as w}from"./constant-BHMGs8HW.js";import{c as A,a as q,B as G,R as K}from"./rank-DEv6bmyV.js";import{c as M}from"./query-Cp6RMzQO.js";import{u as Q}from"./useQueryBoardData-Dj_9ByYT.js";const X={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":""},H={class:"resolver-team-name",truncate:"","overflow-hidden":""},J={"w-32":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},P=C({__name:"BalloonBlock",props:{index:null,balloon:null},setup(p){const f=p,b=i(()=>f.index),n=i(()=>f.balloon),v=c(null),k=N(v),{locale:_}=D(),a=i(()=>_.value);function x(t){return[t.location,t.organization,t.name.getOrDefault(a.value)].filter(y=>y).join(" - ")}const u=i(()=>n.value.problem.balloonColor);return(t,m)=>(s(),l("div",{ref_key:"el",ref:v,"h-24":""},[e(k)?(s(),l("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:F([e(b)%2===0?"bg-resolver-bg-0":"bg-resolver-bg-1"])},[o("div",{"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":"",style:B({backgroundColor:e(u).background_color})},[o("div",{style:B({color:e(u).color})},d(e(n).problem.label),5)],4),o("div",X,[o("div",H,d(x(e(n).team)),1),m[0]||(m[0]=o("div",{flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},null,-1))]),o("div",J,d(e(n).submission.timestampToMinute),1)],2)):j("",!0)],512))}}),W={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},Y={key:0},Z={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},ee={key:0},oe={key:1},se={flex:"","flex-col":"","justify-between":""},ie=C({__name:"Balloon",props:{dataSourceUrl:null},setup(p){const f=p,b=O(w),{t:n,locale:v}=D(),k=i(()=>v.value),_=c(!1),a=c({}),x=c([]),u=c([]),t=c({}),m=U();function y(){const h=new K(a.value,x.value,u.value);h.buildBalloons(),t.value=h}const{data:r,isError:S,error:T}=Q(f.dataSourceUrl,m);V(r,async()=>{r.value===null||r.value===void 0||(a.value=M(r.value?.contest),b.value=`${a.value.name.getOrDefault(k.value)} | ${w}`,x.value=A(r.value?.teams),u.value=q(r.value?.submissions,a.value),y(),_.value=!0)},{immediate:!0});const $=i(()=>t.value.balloons.sort(G.compare).reverse().slice(0,256));return(h,te)=>{const E=P;return s(),l("div",W,[e(_)?(s(),l("div",oe,[o("div",se,[(s(!0),l(z,null,I(e($),(g,L)=>(s(),R(E,{key:g.key,index:L,balloon:g},null,8,["index","balloon"]))),128))])])):(s(),l("div",Y,[o("div",Z,[o("div",null,d(e(n)("common.loading"))+"... ",1),e(S)?(s(),l("div",ee,d(e(T)),1)):j("",!0)])]))])}}});export{ie as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as u,j as A}from"./query-Cp6RMzQO.js";import{d as F,f as B,m as n,W as G,D as V,c as v,o as g,b as c,K as D,n as E,h as x,q as I,F as X,k}from"./index-DpqeUvzf.js";import{c as j,g as q}from"./dayjs-CWFDEEjq.js";import{_ as C}from"./_plugin-vue_export-helper-DlAUqK2U.js";function ae(s,e){return s?.url?!e||s.url.startsWith("http")?s.url:`${e}/${s.url}`:s?.base64?`data:image/${s.type??"png"};base64,${s.base64}`:""}const H=F({__name:"Progress",props:{width:null,state:null,needScroll:{type:Boolean},rank:null,rankOptions:null,elapsedTime:null},emits:["update:rank-options"],setup(s,{emit:e}){const t=s,M=e,h=B({get(){return t.rankOptions},set(l){M("update:rank-options",l)}}),N=B(()=>{switch(t.state){case u.PENDING:return"am-progress-bar-secondary";case u.RUNNING:return"am-progress-bar-success";case u.FROZEN:return"am-progress-bar-danger";case u.FINISHED:return"am-progress-bar-primary";case u.PAUSED:return"am-progress-bar-danger"}return""}),r=n(!1),S=n(!1),m=n(0),_=n(t.width),T=n(0),d=A(),o=n(null),L=n(null),p=n(null),W=n(null),R=n(null);function U(l){S.value=!0;const f=l.clientX-p.value.offsetLeft,b=w=>{if(!S.value)return;r.value=!0;let a=w.clientX-f;a=Math.max(a,0),a=Math.min(a,o.value.offsetWidth-p.value.offsetWidth);const $=o.value.offsetWidth*Number.parseInt(L.value.style?.width)*.01;a>=$&&(a=$,r.value=!1);let i=0;a>0&&(i=Math.round((a+p.value.offsetWidth)/o.value.offsetWidth*1e4)),i>1e4&&(i=1e4),i===1e4&&(r.value=!1),window.getSelection()?.removeAllRanges(),m.value=i,T.value=a,_.value=i*.01},y=()=>{document.removeEventListener("mouseup",y),document.removeEventListener("mousemove",b),S.value=!1,r.value===!0?(d.value=m.value,h.value?.setWidth(m.value,t.rank.contest)):(d.value=void 0,h.value?.disableFilterSubmissionByTimestamp())};document.addEventListener("mousemove",b),document.addEventListener("mouseup",y)}function z(){const l=t.rank.contest.getStartTime(),f=t.rank.contest.getEndTime(),b=f.unix()-l.unix(),y=Math.floor(b*_.value*.01),w=j(),a=Math.max(0,Math.min(w.unix(),f.unix())-l.unix());return q(Math.min(y,a))}function O(){return r.value===!0?z():t.elapsedTime}function P(){return r.value===!0?`${Math.max(0,T.value)}px`:`max(calc(0%), min(calc(${t.width}%), calc(100% - 10px)))`}return G(()=>{t.needScroll===!0&&(o.value.onmouseenter=()=>{W.value.classList.add("in")},o.value.onmouseleave=()=>{W.value.classList.remove("in")}),d.value!==-1?(r.value=!0,m.value=Math.max(0,Math.min(1e4,d.value)),_.value=m.value*.01,T.value=_.value*.01*o.value.offsetWidth-p.value.offsetWidth,h.value?.setWidth(d.value,t.rank.contest)):h.value?.disableFilterSubmissionByTimestamp()}),V(()=>{}),(l,f)=>(g(),v("div",{ref_key:"scroll",ref:o,class:"am-progress am-progress-striped am-active","w-full":"",style:{position:"relative"}},[c("div",{ref_key:"mask",ref:L,class:E(["am-progress-bar",[x(N)]]),style:D({width:`${t.width}%`})},[t.needScroll?(g(),v(X,{key:0},[c("div",{ref_key:"tooltip",ref:W,class:"tooltip tooltip-top",style:D({marginLeft:"-32px",bottom:"22px",left:P()})},[c("div",{ref_key:"tooltipInner",ref:R,class:"tooltip-inner"},k(O()),513)],4),c("div",{ref_key:"bar",ref:p,class:E(["am-progress-bar am-progress-cursor am-progress-scroll-size z-99",[x(N)]]),style:D({left:P()}),onMousedown:U},null,38)],64)):I("",!0)],6)],512))}}),ne=C(H,[["__scopeId","data-v-4607820e"]]),J={flex:"","flex-row":"","items-center":"","justify-center":""},K={key:0,"ml-2":""},Q={key:1,"ml-2":""},Z=F({__name:"ContestStateBadge",props:{state:null,pendingTime:null,pausedTime:null},setup(s){const e=s;return(t,M)=>(g(),v("div",J,[c("div",{class:E(["label",e.state])},null,2),c("div",null,k(e.state),1),e.pendingTime&&e.state===x(u).PENDING?(g(),v("div",K,k(e.pendingTime),1)):I("",!0),e.pausedTime&&e.state===x(u).PAUSED?(g(),v("div",Q,k(e.pausedTime),1)):I("",!0)]))}}),re=C(Z,[["__scopeId","data-v-68586c4d"]]);export{re as _,ne as a,ae as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as C,h as y}from"./query-Cp6RMzQO.js";import{d as S,u as k,f as N,A as w,m as l,C as T,c as o,o as n,h as t,b as a,q as D,k as c,n as d,s as E}from"./index-DpqeUvzf.js";import{c as u}from"./constant-BHMGs8HW.js";import{u as I}from"./useQueryBoardData-Dj_9ByYT.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";const U={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},O={key:0},b={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},j={key:0},F={key:1},L={flex:"","flex-col":"","items-center":"","justify-center":"","font-mono":""},P={key:0},V={key:1},$=S({__name:"Countdown",props:{dataSourceUrl:null},setup(_){const m=_,{t:f,locale:v}=k(),p=N(()=>v.value),g=w(u),s=E(),e=l({}),i=l(!1),{data:r,isError:h,error:x}=I(m.dataSourceUrl,s);return T(r,async()=>{r.value===null||r.value===void 0||(e.value=C(r.value?.contest),g.value=`${e.value.name.getOrDefault(p.value)} | ${u}`,i.value=!0)},{immediate:!0}),(q,z)=>(n(),o("div",U,[t(i)?(n(),o("div",F,[a("div",L,[a("div",{"mt-20":"","text-6xl":"",class:d([t(e).getContestState(t(s)).toString()])},c(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(y).PENDING?(n(),o("div",P,c(t(e).getContestPendingTime(t(s))),1)):(n(),o("div",V,c(t(e).getContestElapsedTime(t(s))),1))],2)])])):(n(),o("div",O,[a("div",b,[a("div",null,c(t(f)("common.loading"))+"... ",1),t(h)?(n(),o("div",j,c(t(x)),1)):D("",!0)])]))]))}}),H=B($,[["__scopeId","data-v-22f76880"]]);export{H as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-BKJ3GgGT.js";import{d as f,u as _,m as h,g as b,H as v,c as S,q as g,h as a,o as x,b as t,a as y,a2 as U,z as V,k as l}from"./index-DpqeUvzf.js";import{b as k}from"./query-Cp6RMzQO.js";const w={key:0,class:"flex flex-col items-center"},D={"w-128":""},I=["disabled"],u="Data Source URL",K=f({__name:"DataSourceInput",setup(R){const{t:r}=_(),s=k(),e=h(s.value),c=b(),d=v();function n(){d.push(`${c.fullPath}/?data-source=${e.value.trim()}`)}return(B,o)=>{const i=p;return a(s).length===0?(x(),S("div",w,[t("div",D,[y(i,{modelValue:a(e),"onUpdate:modelValue":o[0]||(o[0]=m=>V(e)?e.value=m:null),"w-full":"",placeholder:u,autocomplete:"false",onKeydown:U(n,["enter"])},null,8,["modelValue"]),t("label",{class:"hidden",for:"input"},l(u))]),o[1]||(o[1]=t("div",{"py-2":""},null,-1)),t("div",null,[t("button",{"m-3":"","text-sm":"",btn:"",disabled:a(e).length===0,onClick:n},l(a(r)("button.go")),9,I)])])):g("",!0)}}});export{K as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as u}from"./Tooltip.vue_vue_type_script_setup_true_lang-Dyb2RnsU.js";import{G as m,A as f,a as _,C as p,D as T,b as A}from"./constant-BHMGs8HW.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as v,o as y,b as e,a as i,w as n,j as l,r as S,h as r,k as s}from"./index-DpqeUvzf.js";const x={},R={"mt-8":"","py-4":"","md:py-8":"","lg:py-10":"","w-full":"",flex:"","justify-center":"","items-center":""},g={"text-center":"","w-full":""},D={"mb-6":"","w-full":"",flex:"","flex-wrap":"","items-center":"","justify-center":"","text-gray-900":"","dark:text-white":""},I={"mr-4":"","md:mr-6":""},N=["href"],h={flex:"","justify-center":"","items-start":"","flex-col":""},C={"mr-4":"","md:mr-6":""},G={flex:"","justify-center":"","items-start":"","flex-col":""},O={"text-sm":"","text-gray-500":"","sm:text-center":"","dark:text-gray-400":"","w-full":""};function b(o,t){const a=S("RouterLink"),d=u;return y(),v("footer",R,[e("div",g,[i(a,{flex:"","items-center":"","justify-center":"","text-2xl":"","font-semibold":"","text-gray-900":"","dark:text-white":"",to:"/"},{default:n(()=>[...t[0]||(t[0]=[e("div",{"i-ion-balloon-sharp":"","mr-4":"","h-8":""},null,-1),l(" Get more balloons ",-1)])]),_:1}),t[6]||(t[6]=e("p",{"my-6":"","text-gray-500":"","dark:text-gray-400":"","w-full":"",flex:"","justify-center":""}," The ICPC Series Competition Leaderboard Visualization Engine. ",-1)),e("ul",D,[e("li",null,[i(a,{to:"/","mr-4":"","md:mr-6":"","hover:underline":""},{default:n(()=>[...t[1]||(t[1]=[l(" Home ",-1)])]),_:1})]),e("li",null,[e("div",I,[i(d,null,{popper:n(()=>[e("div",h,[e("div",null,"Tag: "+s("APP_VERSION"in o?o.APP_VERSION:r(f)),1),e("div",null,"Sha: "+s("GITHUB_SHA"in o?o.GITHUB_SHA:r(_)),1)])]),default:n(()=>[e("a",{href:"GITHUB_URL"in o?o.GITHUB_URL:r(m),"hover:underline":"",rel:"noreferrer",target:"_blank",title:"GitHub"}," GitHub ",8,N)]),_:1})])]),e("li",null,[e("div",C,[i(d,null,{popper:n(()=>[e("div",G,[e("div",null,"CDN Host: "+s("CDN_HOST"in o?o.CDN_HOST:r(p)),1),e("div",null,"DATA Host: "+s("DATA_HOST"in o?o.DATA_HOST:r(T)),1),e("div",null,"Data Region: "+s("DATA_REGION"in o?o.DATA_REGION:r(A)),1)])]),default:n(()=>[t[2]||(t[2]=e("a",{href:"mailto:hi@dup4.com","hover:underline":""}," Contact ",-1))]),_:1})])])]),e("span",O,[t[4]||(t[4]=l("© 2020-PRESENT ",-1)),i(a,{to:"/","hover:underline":""},{default:n(()=>[...t[3]||(t[3]=[l("XCPCIO™",-1)])]),_:1}),t[5]||(t[5]=l(". All Rights Reserved.",-1))])])])}const P=H(x,[["render",b]]);export{P as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as m,u as c,e as k,f as h,g as C,c as _,o as w,n as s,b as t,h as e,a as L,r as H,w as I,t as B,i as O,l as G}from"./index-DpqeUvzf.js";import{G as R,X as U}from"./constant-BHMGs8HW.js";import{_ as T}from"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"right","print:op0":""},E=["title"],P=["title"],X=["href"],y=["href"],z=m({__name:"NavBar",props:{width:null},setup(u){const i=u,{t:l,locale:r}=c(),{y:d}=k(),p=C();function g(){window.scrollTo({top:0,behavior:"smooth"})}async function b(){const n=O,o=n[(n.indexOf(r.value)+1)%n.length];await G(o),r.value=o}const f=h(()=>p.fullPath.startsWith("/rating")?"/rating":"/");return(n,o)=>{const v=H("RouterLink");return w(),_("header",{class:s(["header z-40",[i?.width??""]])},[t("button",{title:"Scroll to top",fixed:"","bottom-6":"","right-6":"","z-100":"","h-10":"","w-10":"","rounded-full":"",transition:"","duration-300":"","print:hidden":"","hover-bg-hex-8883":"","hover:op100":"",class:s(e(d)>300?"op30":"op0! pointer-events-none"),onClick:o[0]||(o[0]=a=>g())},[...o[3]||(o[3]=[t("div",{"i-ri-arrow-up-line":""},null,-1)])],2),t("nav",{class:s(["nav",[i?.width?"":"fixed"]]),"text-xl":""},[o[9]||(o[9]=t("div",{class:"spacer"},null,-1)),t("div",x,[L(v,{"icon-btn":"",title:e(l)("button.home"),to:e(f),focusable:"false"},{default:I(()=>[...o[4]||(o[4]=[t("div",{"i-ion-balloon-sharp":""},null,-1)])]),_:1},8,["title","to"]),t("a",{"icon-btn":"",title:e(l)("button.toggle_langs"),onClick:o[1]||(o[1]=a=>b())},[...o[5]||(o[5]=[t("div",{"i-carbon-language":""},null,-1)])],8,E),t("a",{"icon-btn":"",title:e(l)("button.toggle_dark"),onClick:o[2]||(o[2]=a=>("toggleDark"in n?n.toggleDark:e(B))())},[...o[6]||(o[6]=[t("div",{i:"carbon-sun dark:carbon-moon"},null,-1)])],8,P),t("a",{"icon-btn":"",rel:"noreferrer",href:"GITHUB_URL"in n?n.GITHUB_URL:e(R),target:"_blank",title:"GitHub"},[...o[7]||(o[7]=[t("div",{"i-carbon-logo-github":""},null,-1)])],8,X),t("a",{"icon-btn":"",rel:"noreferrer",href:"XCPCIO_HOME"in n?n.XCPCIO_HOME:e(U),target:"_blank",title:"GitHub"},[...o[8]||(o[8]=[t("div",{"i-simple-icons-githubsponsors":""},null,-1)])],8,y)])],2)],2)}}}),$=T(z,[["__scopeId","data-v-f4512469"]]);export{$ as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as r,v as s,az as u,h as p,c as i,o as d,y as m,z as c}from"./index-DpqeUvzf.js";import{_}from"./use-vmodel-CgA-6ZIs.js";const x=["type","text"],g=r({__name:"TheInput",props:{textAlign:null,textType:null,modelValue:null},emits:["update:modelValue"],setup(o){const t=o,{modelValue:e}=_("modelValue");return(l,n)=>s((d(),i("input",m({id:"input","onUpdate:modelValue":n[0]||(n[0]=a=>c(e)?e.value=a:null)},l.$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,x)),[[u,p(e)]])}});export{g as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as k,H as h,u as b,r as R,c,o as t,b as m,a as i,k as p,h as o,w as $,j as v,g as N,G as a,q as T}from"./index-DpqeUvzf.js";import{_ as V}from"./Countdown-pWjZd9nn.js";import{_ as G}from"./Balloon.vue_vue_type_script_setup_true_lang-CtCuouAQ.js";import{_ as S}from"./Resolver-Q8DKPT27.js";import{_ as A}from"./Board-gTyMhGu_.js";import{a as D}from"./query-Cp6RMzQO.js";import{b as f}from"./route-block-B_A1xBdJ.js";import"./constant-BHMGs8HW.js";import"./useQueryBoardData-Dj_9ByYT.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./rank-DEv6bmyV.js";import"./dayjs-CWFDEEjq.js";import"./person-B1AH3WbL.js";import"./pagination-DIQw6Eni.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-Dyb2RnsU.js";import"./TheInput.vue_vue_type_script_setup_true_lang-BKJ3GgGT.js";import"./use-vmodel-CgA-6ZIs.js";import"./ContestStateBadge-CB8_hsLw.js";const E=k({__name:"GoBack",setup(y){const u=h(),{t:s}=b();return(x,r)=>{const e=R("RouterLink");return t(),c("div",null,[m("div",{class:"m-3 text-sm btn",onClick:r[0]||(r[0]=n=>o(u).back())},p(o(s)("button.back")),1),i(e,{class:"m-3 text-sm btn",to:"/"},{default:$(()=>[v(p(o(s)("button.home")),1)]),_:1})])}}}),F={key:0},L={key:1,class:"flex flex-col items-center"},j={key:2},q=k({__name:"[...all]",setup(y){const{t:u}=b(),s=N(),r=!["camp","icpc","ccpc","provincial-contest"].some(_=>s.fullPath.startsWith(`/${_}`)),e=D(),n=window.DATA_SOURCE;return(_,l)=>{const d=A,B=S,C=G,w=V,g=E;return o(n)?(t(),c("div",F,[o(e)==="board"?(t(),a(d,{key:0,"data-source-url":o(n)},null,8,["data-source-url"])):o(e)==="resolver"?(t(),a(B,{key:1,"data-source-url":o(n)},null,8,["data-source-url"])):o(e)==="balloon"?(t(),a(C,{key:2,"data-source-url":o(n)},null,8,["data-source-url"])):o(e)==="countdown"?(t(),a(w,{key:3,"data-source-url":o(n)},null,8,["data-source-url"])):T("",!0)])):r?(t(),c("div",L,[l[0]||(l[0]=m("div",{"text-4xl":""},[m("div",{"i-carbon-warning":""})],-1)),v(" "+p(o(u)("not-found"))+" ",1),i(g)])):(t(),c("div",j,[i(d)]))}}});typeof f=="function"&&f(q);export{q as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d,H as f,u as _,a0 as k,r as x,c as r,o as i,b as e,q as b,k as n,h as t,F as h,E as y,a as v,w as N,j as w}from"./index-DpqeUvzf.js";import{u as C}from"./user-CecgtJR8.js";const V={"w-full":"",flex:"","flex-col":"","justify-center":"","items-center":""},g={"text-sm":"","opacity-75":""},B={key:0,"mt-4":"","text-sm":""},E={"opacity-75":""},F=d({__name:"[name]",props:{name:null},setup(c){const u=c,m=f(),l=C(),{t:o}=_();return k(()=>{l.setNewName(u.name)}),(L,s)=>{const p=x("RouterLink");return i(),r("div",V,[s[1]||(s[1]=e("div",{"text-4xl":""},[e("div",{"i-carbon-pedestrian":"","inline-block":""})],-1)),e("p",null,n(t(o)("intro.hi",{name:u.name})),1),e("p",g,[e("em",null,n(t(o)("intro.dynamic-route")),1)]),t(l).otherNames.length?(i(),r("p",B,[e("span",E,n(t(o)("intro.aka"))+":",1),e("ul",null,[(i(!0),r(h,null,y(t(l).otherNames,a=>(i(),r("li",{key:a},[v(p,{to:`/hi/${a}`,replace:""},{default:N(()=>[w(n(a),1)]),_:2},1032,["to"])]))),128))])])):b("",!0),e("div",null,[e("button",{m:"3 t6","text-sm":"",btn:"",onClick:s[0]||(s[0]=a=>t(m).back())},n(t(o)("button.back")),1)])])}}});export{F as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{I as a,c as e,o as n,b as s,J as l}from"./index-DpqeUvzf.js";const o={class:"prose prose-sm m-auto text-left"},d="About",g=[{property:"og:title",content:"About"},{name:"twitter:title",content:"About"}],u={__name:"about",setup(h,{expose:i}){return i({frontmatter:{title:"About",meta:[{property:"og:title",content:"About"},{name:"twitter:title",content:"About"}]}}),a({title:"About",meta:[{property:"og:title",content:"About"},{name:"twitter:title",content:"About"}]}),(r,t)=>(n(),e("div",o,[...t[0]||(t[0]=[s("div",{class:"text-center"},[s("div",{"i-carbon-dicom-overlay":"",class:"text-4xl -mb-6 m-auto"}),s("h3",null,"About")],-1),l(`<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 class="shiki shiki-themes vitesse-light vitesse-dark" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;" tabindex="0"><code class="language-js"><span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">// syntax highlighting example</span></span>
|
|
2
|
-
<span class="line"><span style="--shiki-light:#AB5959;--shiki-dark:#CB7676;">function</span><span style="--shiki-light:#59873A;--shiki-dark:#80A665;"> board</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">()</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> {</span></span>
|
|
3
|
-
<span class="line"><span style="--shiki-light:#AB5959;--shiki-dark:#CB7676;"> const</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> foo</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> =</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> "</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">bar</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">"</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">;</span></span>
|
|
4
|
-
<span class="line"><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> console</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">.</span><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">log</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">(</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;">foo</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">);</span></span>
|
|
5
|
-
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">}</span></span></code></pre><p>Check out the <a href="https://github.com/xcpcio/xcpcio" target="_blank" rel="noopener">GitHub repo</a> for more details.</p>`,3)])]))}};export{u as default,g as meta,d as title};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i}from"./Board-gTyMhGu_.js";import{_ as u}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-_B3NQY48.js";import{b as f}from"./query-Cp6RMzQO.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-DpqeUvzf.js";import{b as c}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./pagination-DIQw6Eni.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-Dyb2RnsU.js";import"./TheInput.vue_vue_type_script_setup_true_lang-BKJ3GgGT.js";import"./use-vmodel-CgA-6ZIs.js";import"./rank-DEv6bmyV.js";import"./dayjs-CWFDEEjq.js";import"./person-B1AH3WbL.js";import"./ContestStateBadge-CB8_hsLw.js";import"./constant-BHMGs8HW.js";import"./useQueryBoardData-Dj_9ByYT.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
|
-
import{_ as r}from"./Footer-8QvUWvz2.js";import{_ as s}from"./NavBar-CGIuv3BJ.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-DpqeUvzf.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-Dyb2RnsU.js";import"./constant-BHMGs8HW.js";const l={},u={"py-2":"","text-gray-700":"","dark:text-gray-200":""};function d(f,x){const e=s,t=p("RouterView"),n=r;return _(),c(i,null,[o(e,{width:"sm:w-[1280px] xl:w-screen"}),m("main",u,[o(t),o(n,{class:"sm:w-[1280px] xl:w-screen"})])],64)}const k=a(l,[["render",d]]);export{k as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as t}from"./index-DpqeUvzf.js";const a="0.72.0",T="https://github.com/xcpcio/xcpcio",c="bf47f01bbe",I="https://xcpcio.com",r="Board - XCPCIO",_="Rating - XCPCIO",O="Balloon - XCPCIO",C="Resolver - XCPCIO",e="Countdown - XCPCIO",i=t(()=>window?window.CDN_HOST:""),o=t(()=>window?window.DATA_HOST:""),A=t(()=>o.value.replace("/data/","/rating-data/")),d=t(()=>window?window.DATA_REGION:"");export{a as A,O as B,i as C,o as D,T as G,A as R,r as T,I as X,c as a,d as b,e as c,_ as d,C as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as B}from"./index-DpqeUvzf.js";class X{constructor(){this.texts=new Map}get(y){return this.texts.get(y)}getOrDefault(y){return(y?this.texts.get(y):void 0)||(this.fallbackLang?this.texts.get(this.fallbackLang):void 0)||this.fallback||""}set(y,m){this.texts.set(y,m)}has(y){return this.texts.has(y)}static fromI18NStringSet(y){const m=new X;if(m.fallback=y.fallback,m.fallbackLang=y.fallback_lang,y.texts)for(const[f,T]of Object.entries(y.texts))m.set(f,T);return m}static fromIText(y){if(typeof y=="string"){const m=new X;return m.fallback=y,m}return X.fromI18NStringSet(y)}toI18NStringSet(){const y={};if(this.fallback!==void 0&&(y.fallback=this.fallback),this.fallbackLang!==void 0&&(y.fallback_lang=this.fallbackLang),this.texts.size>0){y.texts={};for(const[m,f]of this.texts.entries())y.texts[m]=f}return y}}var K={exports:{}},pt=K.exports,ut;function gt(){return ut||(ut=1,(function(_,y){(function(m,f){_.exports=f()})(pt,(function(){var m=1e3,f=6e4,T=36e5,O="millisecond",x="second",a="minute",v="hour",l="day",H="week",Y="month",D="quarter",w="year",$="date",s="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(o){var n=["th","st","nd","rd"],e=o%100;return"["+o+(n[(e-20)%10]||n[e]||n[0])+"]"}},k=function(o,n,e){var u=String(o);return!u||u.length>=n?o:""+Array(n+1-u.length).join(e)+o},C={s:k,z:function(o){var n=-o.utcOffset(),e=Math.abs(n),u=Math.floor(e/60),r=e%60;return(n<=0?"+":"-")+k(u,2,"0")+":"+k(r,2,"0")},m:function o(n,e){if(n.date()<e.date())return-o(e,n);var u=12*(e.year()-n.year())+(e.month()-n.month()),r=n.clone().add(u,Y),p=e-r<0,g=n.clone().add(u+(p?-1:1),Y);return+(-(u+(e-r)/(p?r-g:g-r))||0)},a:function(o){return o<0?Math.ceil(o)||0:Math.floor(o)},p:function(o){return{M:Y,y:w,w:H,d:l,D:$,h:v,m:a,s:x,ms:O,Q:D}[o]||String(o||"").toLowerCase().replace(/s$/,"")},u:function(o){return o===void 0}},b="en",h={};h[b]=A;var i="$isDayjsObject",t=function(o){return o instanceof L||!(!o||!o[i])},M=function o(n,e,u){var r;if(!n)return b;if(typeof n=="string"){var p=n.toLowerCase();h[p]&&(r=p),e&&(h[p]=e,r=p);var g=n.split("-");if(!r&&g.length>1)return o(g[0])}else{var W=n.name;h[W]=n,r=W}return!u&&r&&(b=r),r||!u&&b},d=function(o,n){if(t(o))return o.clone();var e=typeof n=="object"?n:{};return e.date=o,e.args=arguments,new L(e)},c=C;c.l=M,c.i=t,c.w=function(o,n){return d(o,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var L=(function(){function o(e){this.$L=M(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[i]=!0}var n=o.prototype;return n.parse=function(e){this.$d=(function(u){var r=u.date,p=u.utc;if(r===null)return new Date(NaN);if(c.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var g=r.match(S);if(g){var W=g[2]-1||0,I=(g[7]||"0").substring(0,3);return p?new Date(Date.UTC(g[1],W,g[3]||1,g[4]||0,g[5]||0,g[6]||0,I)):new Date(g[1],W,g[3]||1,g[4]||0,g[5]||0,g[6]||0,I)}}return new Date(r)})(e),this.init()},n.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},n.$utils=function(){return c},n.isValid=function(){return this.$d.toString()!==s},n.isSame=function(e,u){var r=d(e);return this.startOf(u)<=r&&r<=this.endOf(u)},n.isAfter=function(e,u){return d(e)<this.startOf(u)},n.isBefore=function(e,u){return this.endOf(u)<d(e)},n.$g=function(e,u,r){return c.u(e)?this[u]:this.set(r,e)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(e,u){var r=this,p=!!c.u(u)||u,g=c.p(e),W=function(G,j){var E=c.w(r.$u?Date.UTC(r.$y,j,G):new Date(r.$y,j,G),r);return p?E:E.endOf(l)},I=function(G,j){return c.w(r.toDate()[G].apply(r.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(j)),r)},N=this.$W,U=this.$M,F=this.$D,P="set"+(this.$u?"UTC":"");switch(g){case w:return p?W(1,0):W(31,11);case Y:return p?W(1,U):W(0,U+1);case H:var R=this.$locale().weekStart||0,J=(N<R?N+7:N)-R;return W(p?F-J:F+(6-J),U);case l:case $:return I(P+"Hours",0);case v:return I(P+"Minutes",1);case a:return I(P+"Seconds",2);case x:return I(P+"Milliseconds",3);default:return this.clone()}},n.endOf=function(e){return this.startOf(e,!1)},n.$set=function(e,u){var r,p=c.p(e),g="set"+(this.$u?"UTC":""),W=(r={},r[l]=g+"Date",r[$]=g+"Date",r[Y]=g+"Month",r[w]=g+"FullYear",r[v]=g+"Hours",r[a]=g+"Minutes",r[x]=g+"Seconds",r[O]=g+"Milliseconds",r)[p],I=p===l?this.$D+(u-this.$W):u;if(p===Y||p===w){var N=this.clone().set($,1);N.$d[W](I),N.init(),this.$d=N.set($,Math.min(this.$D,N.daysInMonth())).$d}else W&&this.$d[W](I);return this.init(),this},n.set=function(e,u){return this.clone().$set(e,u)},n.get=function(e){return this[c.p(e)]()},n.add=function(e,u){var r,p=this;e=Number(e);var g=c.p(u),W=function(U){var F=d(p);return c.w(F.date(F.date()+Math.round(U*e)),p)};if(g===Y)return this.set(Y,this.$M+e);if(g===w)return this.set(w,this.$y+e);if(g===l)return W(1);if(g===H)return W(7);var I=(r={},r[a]=f,r[v]=T,r[x]=m,r)[g]||1,N=this.$d.getTime()+e*I;return c.w(N,this)},n.subtract=function(e,u){return this.add(-1*e,u)},n.format=function(e){var u=this,r=this.$locale();if(!this.isValid())return r.invalidDate||s;var p=e||"YYYY-MM-DDTHH:mm:ssZ",g=c.z(this),W=this.$H,I=this.$m,N=this.$M,U=r.weekdays,F=r.months,P=r.meridiem,R=function(j,E,V,Q){return j&&(j[E]||j(u,p))||V[E].slice(0,Q)},J=function(j){return c.s(W%12||12,j,"0")},G=P||function(j,E,V){var Q=j<12?"AM":"PM";return V?Q.toLowerCase():Q};return p.replace(z,(function(j,E){return E||(function(V){switch(V){case"YY":return String(u.$y).slice(-2);case"YYYY":return c.s(u.$y,4,"0");case"M":return N+1;case"MM":return c.s(N+1,2,"0");case"MMM":return R(r.monthsShort,N,F,3);case"MMMM":return R(F,N);case"D":return u.$D;case"DD":return c.s(u.$D,2,"0");case"d":return String(u.$W);case"dd":return R(r.weekdaysMin,u.$W,U,2);case"ddd":return R(r.weekdaysShort,u.$W,U,3);case"dddd":return U[u.$W];case"H":return String(W);case"HH":return c.s(W,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return G(W,I,!0);case"A":return G(W,I,!1);case"m":return String(I);case"mm":return c.s(I,2,"0");case"s":return String(u.$s);case"ss":return c.s(u.$s,2,"0");case"SSS":return c.s(u.$ms,3,"0");case"Z":return g}return null})(j)||g.replace(":","")}))},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(e,u,r){var p,g=this,W=c.p(u),I=d(e),N=(I.utcOffset()-this.utcOffset())*f,U=this-I,F=function(){return c.m(g,I)};switch(W){case w:p=F()/12;break;case Y:p=F();break;case D:p=F()/3;break;case H:p=(U-N)/6048e5;break;case l:p=(U-N)/864e5;break;case v:p=U/T;break;case a:p=U/f;break;case x:p=U/m;break;default:p=U}return r?p:c.a(p)},n.daysInMonth=function(){return this.endOf(Y).$D},n.$locale=function(){return h[this.$L]},n.locale=function(e,u){if(!e)return this.$L;var r=this.clone(),p=M(e,u,!0);return p&&(r.$L=p),r},n.clone=function(){return c.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},o})(),q=L.prototype;return d.prototype=q,[["$ms",O],["$s",x],["$m",a],["$H",v],["$W",l],["$M",Y],["$y",w],["$D",$]].forEach((function(o){q[o[1]]=function(n){return this.$g(n,o[0],o[1])}})),d.extend=function(o,n){return o.$i||(o(n,L,d),o.$i=!0),d},d.locale=M,d.isDayjs=t,d.unix=function(o){return d(1e3*o)},d.en=h[b],d.Ls=h,d.p={},d}))})(K)),K.exports}var Mt=gt();const Z=B(Mt);var tt={exports:{}},xt=tt.exports,ft;function yt(){return ft||(ft=1,(function(_,y){(function(m,f){_.exports=f()})(xt,(function(){return function(m,f){var T=f.prototype,O=T.format;T.format=function(x){var a=this,v=this.$locale();if(!this.isValid())return O.bind(this)(x);var l=this.$utils(),H=(x||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(Y){switch(Y){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return v.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return v.ordinal(a.week(),"W");case"w":case"ww":return l.s(a.week(),Y==="w"?1:2,"0");case"W":case"WW":return l.s(a.isoWeek(),Y==="W"?1:2,"0");case"k":case"kk":return l.s(String(a.$H===0?24:a.$H),Y==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return Y}}));return O.bind(this)(H)}}}))})(tt)),tt.exports}var St=yt();const Dt=B(St);var et={exports:{}},Ot=et.exports,ct;function wt(){return ct||(ct=1,(function(_,y){(function(m,f){_.exports=f()})(Ot,(function(){var m,f,T=1e3,O=6e4,x=36e5,a=864e5,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=31536e6,H=2628e6,Y=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,D={years:l,months:H,days:a,hours:x,minutes:O,seconds:T,milliseconds:1,weeks:6048e5},w=function(h){return h instanceof C},$=function(h,i,t){return new C(h,t,i.$l)},s=function(h){return f.p(h)+"s"},S=function(h){return h<0},z=function(h){return S(h)?Math.ceil(h):Math.floor(h)},A=function(h){return Math.abs(h)},k=function(h,i){return h?S(h)?{negative:!0,format:""+A(h)+i}:{negative:!1,format:""+h+i}:{negative:!1,format:""}},C=(function(){function h(t,M,d){var c=this;if(this.$d={},this.$l=d,t===void 0&&(this.$ms=0,this.parseFromMilliseconds()),M)return $(t*D[s(M)],this);if(typeof t=="number")return this.$ms=t,this.parseFromMilliseconds(),this;if(typeof t=="object")return Object.keys(t).forEach((function(o){c.$d[s(o)]=t[o]})),this.calMilliseconds(),this;if(typeof t=="string"){var L=t.match(Y);if(L){var q=L.slice(2).map((function(o){return o!=null?Number(o):0}));return this.$d.years=q[0],this.$d.months=q[1],this.$d.weeks=q[2],this.$d.days=q[3],this.$d.hours=q[4],this.$d.minutes=q[5],this.$d.seconds=q[6],this.calMilliseconds(),this}}return this}var i=h.prototype;return i.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(M,d){return M+(t.$d[d]||0)*D[d]}),0)},i.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=z(t/l),t%=l,this.$d.months=z(t/H),t%=H,this.$d.days=z(t/a),t%=a,this.$d.hours=z(t/x),t%=x,this.$d.minutes=z(t/O),t%=O,this.$d.seconds=z(t/T),t%=T,this.$d.milliseconds=t},i.toISOString=function(){var t=k(this.$d.years,"Y"),M=k(this.$d.months,"M"),d=+this.$d.days||0;this.$d.weeks&&(d+=7*this.$d.weeks);var c=k(d,"D"),L=k(this.$d.hours,"H"),q=k(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var n=k(o,"S"),e=t.negative||M.negative||c.negative||L.negative||q.negative||n.negative,u=L.format||q.format||n.format?"T":"",r=(e?"-":"")+"P"+t.format+M.format+c.format+u+L.format+q.format+n.format;return r==="P"||r==="-P"?"P0D":r},i.toJSON=function(){return this.toISOString()},i.format=function(t){var M=t||"YYYY-MM-DDTHH:mm:ss",d={Y:this.$d.years,YY:f.s(this.$d.years,2,"0"),YYYY:f.s(this.$d.years,4,"0"),M:this.$d.months,MM:f.s(this.$d.months,2,"0"),D:this.$d.days,DD:f.s(this.$d.days,2,"0"),H:this.$d.hours,HH:f.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:f.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:f.s(this.$d.seconds,2,"0"),SSS:f.s(this.$d.milliseconds,3,"0")};return M.replace(v,(function(c,L){return L||String(d[c])}))},i.as=function(t){return this.$ms/D[s(t)]},i.get=function(t){var M=this.$ms,d=s(t);return d==="milliseconds"?M%=1e3:M=d==="weeks"?z(M/D[d]):this.$d[d],M||0},i.add=function(t,M,d){var c;return c=M?t*D[s(M)]:w(t)?t.$ms:$(t,this).$ms,$(this.$ms+c*(d?-1:1),this)},i.subtract=function(t,M){return this.add(t,M,!0)},i.locale=function(t){var M=this.clone();return M.$l=t,M},i.clone=function(){return $(this.$ms,this)},i.humanize=function(t){return m().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},i.valueOf=function(){return this.asMilliseconds()},i.milliseconds=function(){return this.get("milliseconds")},i.asMilliseconds=function(){return this.as("milliseconds")},i.seconds=function(){return this.get("seconds")},i.asSeconds=function(){return this.as("seconds")},i.minutes=function(){return this.get("minutes")},i.asMinutes=function(){return this.as("minutes")},i.hours=function(){return this.get("hours")},i.asHours=function(){return this.as("hours")},i.days=function(){return this.get("days")},i.asDays=function(){return this.as("days")},i.weeks=function(){return this.get("weeks")},i.asWeeks=function(){return this.as("weeks")},i.months=function(){return this.get("months")},i.asMonths=function(){return this.as("months")},i.years=function(){return this.get("years")},i.asYears=function(){return this.as("years")},h})(),b=function(h,i,t){return h.add(i.years()*t,"y").add(i.months()*t,"M").add(i.days()*t,"d").add(i.hours()*t,"h").add(i.minutes()*t,"m").add(i.seconds()*t,"s").add(i.milliseconds()*t,"ms")};return function(h,i,t){m=t,f=t().$utils(),t.duration=function(c,L){var q=t.locale();return $(c,{$l:q},L)},t.isDuration=w;var M=i.prototype.add,d=i.prototype.subtract;i.prototype.add=function(c,L){return w(c)?b(this,c,1):M.bind(this)(c,L)},i.prototype.subtract=function(c,L){return w(c)?b(this,c,-1):d.bind(this)(c,L)}}}))})(et)),et.exports}var bt=wt();const kt=B(bt);var rt={exports:{}},Tt=rt.exports,ht;function Yt(){return ht||(ht=1,(function(_,y){(function(m,f){_.exports=f()})(Tt,(function(){return function(m,f){f.prototype.isSameOrAfter=function(T,O){return this.isSame(T,O)||this.isAfter(T,O)}}}))})(rt)),rt.exports}var zt=Yt();const Ht=B(zt);var nt={exports:{}},_t=nt.exports,dt;function Wt(){return dt||(dt=1,(function(_,y){(function(m,f){_.exports=f()})(_t,(function(){return function(m,f){f.prototype.isSameOrBefore=function(T,O){return this.isSame(T,O)||this.isBefore(T,O)}}}))})(nt)),nt.exports}var At=Wt();const Ct=B(At);var st={exports:{}},It=st.exports,lt;function Lt(){return lt||(lt=1,(function(_,y){(function(m,f){_.exports=f()})(It,(function(){return function(m,f,T){var O=function(x,a){if(!a||!a.length||a.length===1&&!a[0]||a.length===1&&Array.isArray(a[0])&&!a[0].length)return null;var v;a.length===1&&a[0].length>0&&(a=a[0]),v=(a=a.filter((function(H){return H})))[0];for(var l=1;l<a.length;l+=1)a[l].isValid()&&!a[l][x](v)||(v=a[l]);return v};T.max=function(){var x=[].slice.call(arguments,0);return O("isAfter",x)},T.min=function(){var x=[].slice.call(arguments,0);return O("isBefore",x)}}}))})(st)),st.exports}var Nt=Lt();const qt=B(Nt);var it={exports:{}},Ut=it.exports,mt;function jt(){return mt||(mt=1,(function(_,y){(function(m,f){_.exports=f()})(Ut,(function(){return function(m,f,T){m=m||{};var O=f.prototype,x={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(l,H,Y,D){return O.fromToBase(l,H,Y,D)}T.en.relativeTime=x,O.fromToBase=function(l,H,Y,D,w){for(var $,s,S,z=Y.$locale().relativeTime||x,A=m.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],k=A.length,C=0;C<k;C+=1){var b=A[C];b.d&&($=D?T(l).diff(Y,b.d,!0):Y.diff(l,b.d,!0));var h=(m.rounding||Math.round)(Math.abs($));if(S=$>0,h<=b.r||!b.r){h<=1&&C>0&&(b=A[C-1]);var i=z[b.l];w&&(h=w(""+h)),s=typeof i=="string"?i.replace("%d",h):i(h,H,b.l,S);break}}if(H)return s;var t=S?z.future:z.past;return typeof t=="function"?t(s):t.replace("%s",s)},O.to=function(l,H){return a(l,H,this,!0)},O.from=function(l,H){return a(l,H,this)};var v=function(l){return l.$u?T.utc():T()};O.toNow=function(l){return this.to(v(this),l)},O.fromNow=function(l){return this.from(v(this),l)}}}))})(it)),it.exports}var Ft=jt();const Zt=B(Ft);var at={exports:{}},Bt=at.exports,$t;function Et(){return $t||($t=1,(function(_,y){(function(m,f){_.exports=f()})(Bt,(function(){var m={year:0,month:1,day:2,hour:3,minute:4,second:5},f={};return function(T,O,x){var a,v=function(D,w,$){$===void 0&&($={});var s=new Date(D),S=(function(z,A){A===void 0&&(A={});var k=A.timeZoneName||"short",C=z+"|"+k,b=f[C];return b||(b=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:z,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:k}),f[C]=b),b})(w,$);return S.formatToParts(s)},l=function(D,w){for(var $=v(D,w),s=[],S=0;S<$.length;S+=1){var z=$[S],A=z.type,k=z.value,C=m[A];C>=0&&(s[C]=parseInt(k,10))}var b=s[3],h=b===24?0:b,i=s[0]+"-"+s[1]+"-"+s[2]+" "+h+":"+s[4]+":"+s[5]+":000",t=+D;return(x.utc(i).valueOf()-(t-=t%1e3))/6e4},H=O.prototype;H.tz=function(D,w){D===void 0&&(D=a);var $,s=this.utcOffset(),S=this.toDate(),z=S.toLocaleString("en-US",{timeZone:D}),A=Math.round((S-new Date(z))/1e3/60),k=15*-Math.round(S.getTimezoneOffset()/15)-A;if(!Number(k))$=this.utcOffset(0,w);else if($=x(z,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(k,!0),w){var C=$.utcOffset();$=$.add(s-C,"minute")}return $.$x.$timezone=D,$},H.offsetName=function(D){var w=this.$x.$timezone||x.tz.guess(),$=v(this.valueOf(),w,{timeZoneName:D}).find((function(s){return s.type.toLowerCase()==="timezonename"}));return $&&$.value};var Y=H.startOf;H.startOf=function(D,w){if(!this.$x||!this.$x.$timezone)return Y.call(this,D,w);var $=x(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return Y.call($,D,w).tz(this.$x.$timezone,!0)},x.tz=function(D,w,$){var s=$&&w,S=$||w||a,z=l(+x(),S);if(typeof D!="string")return x(D).tz(S);var A=(function(h,i,t){var M=h-60*i*1e3,d=l(M,t);if(i===d)return[M,i];var c=l(M-=60*(d-i)*1e3,t);return d===c?[M,d]:[h-60*Math.min(d,c)*1e3,Math.max(d,c)]})(x.utc(D,s).valueOf(),z,S),k=A[0],C=A[1],b=x(k).utcOffset(C);return b.$x.$timezone=S,b},x.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},x.tz.setDefault=function(D){a=D}}}))})(at)),at.exports}var Rt=Et();const Gt=B(Rt);var ot={exports:{}},Pt=ot.exports,vt;function Jt(){return vt||(vt=1,(function(_,y){(function(m,f){_.exports=f()})(Pt,(function(){var m="minute",f=/[+-]\d\d(?::?\d\d)?/g,T=/([+-]|\d\d)/g;return function(O,x,a){var v=x.prototype;a.utc=function(s){var S={date:s,utc:!0,args:arguments};return new x(S)},v.utc=function(s){var S=a(this.toDate(),{locale:this.$L,utc:!0});return s?S.add(this.utcOffset(),m):S},v.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var l=v.parse;v.parse=function(s){s.utc&&(this.$u=!0),this.$utils().u(s.$offset)||(this.$offset=s.$offset),l.call(this,s)};var H=v.init;v.init=function(){if(this.$u){var s=this.$d;this.$y=s.getUTCFullYear(),this.$M=s.getUTCMonth(),this.$D=s.getUTCDate(),this.$W=s.getUTCDay(),this.$H=s.getUTCHours(),this.$m=s.getUTCMinutes(),this.$s=s.getUTCSeconds(),this.$ms=s.getUTCMilliseconds()}else H.call(this)};var Y=v.utcOffset;v.utcOffset=function(s,S){var z=this.$utils().u;if(z(s))return this.$u?0:z(this.$offset)?Y.call(this):this.$offset;if(typeof s=="string"&&(s=(function(b){b===void 0&&(b="");var h=b.match(f);if(!h)return null;var i=(""+h[0]).match(T)||["-",0,0],t=i[0],M=60*+i[1]+ +i[2];return M===0?0:t==="+"?M:-M})(s),s===null))return this;var A=Math.abs(s)<=16?60*s:s;if(A===0)return this.utc(S);var k=this.clone();if(S)return k.$offset=A,k.$u=!1,k;var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(k=this.local().add(A+C,m)).$offset=A,k.$x.$localOffset=C,k};var D=v.format;v.format=function(s){var S=s||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return D.call(this,S)},v.valueOf=function(){var s=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*s},v.isUTC=function(){return!!this.$u},v.toISOString=function(){return this.toDate().toISOString()},v.toString=function(){return this.toDate().toUTCString()};var w=v.toDate;v.toDate=function(s){return s==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():w.call(this)};var $=v.diff;v.diff=function(s,S,z){if(s&&this.$u===s.$u)return $.call(this,s,S,z);var A=this.local(),k=a(s).local();return $.call(A,k,S,z)}}}))})(ot)),ot.exports}var Vt=Jt();const Qt=B(Vt);Z.extend(kt);Z.extend(Qt);Z.extend(Gt);Z.extend(Dt);Z.extend(Ct);Z.extend(Ht);Z.extend(qt);Z.extend(Zt);function Kt(_=void 0){return _===void 0?Z():typeof _=="number"&&String(_).length===10?Z.unix(_):Z(_)}function te(_){const y=O=>O<10?`0${O}`:String(O),m=Math.floor(_/3600),f=Math.floor(_%3600/60),T=_%60;return[y(m),y(f),y(T)].join(":")}export{X as I,Kt as c,Z as d,te as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as r}from"./Footer-8QvUWvz2.js";import{_}from"./NavBar-CGIuv3BJ.js";import{_ as a}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c,o as s,a as o,b as m,r as p,F as i}from"./index-DpqeUvzf.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-Dyb2RnsU.js";import"./constant-BHMGs8HW.js";const u={},f={"py-10":"","text-gray-700":"","dark:text-gray-200":""};function l(d,g){const e=_,t=p("RouterView"),n=r;return s(),c(i,null,[o(e),m("main",f,[o(t),o(n)])],64)}const N=a(u,[["render",l]]);export{N as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as n}from"./Footer-8QvUWvz2.js";import{_ as a}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as s,o as c,a as e,b as m,r as _}from"./index-DpqeUvzf.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-Dyb2RnsU.js";import"./constant-BHMGs8HW.js";const p={},i={"px-4":"","py-10":"",text:"center gray-700 dark:gray-200"};function u(d,o){const t=_("RouterView"),r=n;return c(),s("main",i,[e(t),e(r),o[0]||(o[0]=m("div",{"mx-auto":"","mt-5":"","text-center":"","text-sm":"","opacity-50":""}," [Home Layout] ",-1))])}const g=a(p,[["render",u]]);export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as u}from"./Balloon.vue_vue_type_script_setup_true_lang-CtCuouAQ.js";import{_ as l}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-_B3NQY48.js";import{b as d}from"./query-Cp6RMzQO.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-DpqeUvzf.js";import{b as c}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./constant-BHMGs8HW.js";import"./rank-DEv6bmyV.js";import"./dayjs-CWFDEEjq.js";import"./person-B1AH3WbL.js";import"./useQueryBoardData-Dj_9ByYT.js";import"./TheInput.vue_vue_type_script_setup_true_lang-BKJ3GgGT.js";import"./use-vmodel-CgA-6ZIs.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 p}from"./Countdown-pWjZd9nn.js";import{_ as d}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-_B3NQY48.js";import{b as f}from"./query-Cp6RMzQO.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-DpqeUvzf.js";import{b as a}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./constant-BHMGs8HW.js";import"./useQueryBoardData-Dj_9ByYT.js";import"./TheInput.vue_vue_type_script_setup_true_lang-BKJ3GgGT.js";import"./use-vmodel-CgA-6ZIs.js";import"./dayjs-CWFDEEjq.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
|
-
import{_ as u}from"./Resolver-Q8DKPT27.js";import{_ as l}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-_B3NQY48.js";import{b as d}from"./query-Cp6RMzQO.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-DpqeUvzf.js";import{b as a}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./rank-DEv6bmyV.js";import"./dayjs-CWFDEEjq.js";import"./person-B1AH3WbL.js";import"./constant-BHMGs8HW.js";import"./useQueryBoardData-Dj_9ByYT.js";import"./TheInput.vue_vue_type_script_setup_true_lang-BKJ3GgGT.js";import"./use-vmodel-CgA-6ZIs.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};
|