|
|
@ -4,17 +4,17 @@ |
|
|
|
<script src="https://cdnjs.loli.net/ajax/libs/textfit/2.3.1/textFit.min.js"></script> |
|
|
|
<script src="https://cdnjs.loli.net/ajax/libs/textfit/2.3.1/textFit.min.js"></script> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
const submissionUrl = <%- JSON.stringify(displayConfig.inContest ? |
|
|
|
const submissionUrl = <%- JSON.stringify(displayConfig.inContest ? |
|
|
|
syzoj.utils.makeUrl(['contest', 'submission', 'VanDarkholme']) : |
|
|
|
syzoj.utils.makeUrl(['contest', 'submission', 'VanDarkholme']) : |
|
|
|
syzoj.utils.makeUrl(['submission', 'VanDarkholme'])) %>; |
|
|
|
syzoj.utils.makeUrl(['submission', 'VanDarkholme'])) %>; |
|
|
|
const problemUrl = <%- JSON.stringify(displayConfig.inContest ? |
|
|
|
const problemUrl = <%- JSON.stringify(displayConfig.inContest ? |
|
|
|
syzoj.utils.makeUrl(['contest', contest.id, 'problem', 'VanDarkholme']) : |
|
|
|
syzoj.utils.makeUrl(['contest', contest.id, 'problem', 'VanDarkholme']) : |
|
|
|
syzoj.utils.makeUrl(['problem', 'VanDarkholme'])) %>; |
|
|
|
syzoj.utils.makeUrl(['problem', 'VanDarkholme'])) %>; |
|
|
|
const userUrl = <%- JSON.stringify(syzoj.utils.makeUrl(['user', 'VanDarkholme'])) %>; |
|
|
|
const userUrl = <%- JSON.stringify(syzoj.utils.makeUrl(['user', 'VanDarkholme'])) %>; |
|
|
|
|
|
|
|
|
|
|
|
Vue.component('submission-item', { |
|
|
|
Vue.component('submission-item', { |
|
|
|
template: '#submissionItemTemplate', |
|
|
|
template: '#submissionItemTemplate', |
|
|
|
props: ['data', 'config', 'showRejudge'], |
|
|
|
props: ['data', 'config', 'showRejudge', 'progress'], |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
statusString() { |
|
|
|
statusString() { |
|
|
|
const data = this.data; |
|
|
|
const data = this.data; |
|
|
@ -57,9 +57,9 @@ Vue.component('submission-item', { |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
<td ref="problemLabel"><a ref="problemLabelTextFit" style="width: 230px; height: 22px; display: block; margin: 0 auto; line-height: 22px;" :href="problemLink"><b>#{{ config.inContest ? alpha(data.info.problemId) : data.info.problemId }}.</b> {{ data.info.problemName }}</a></td> |
|
|
|
<td ref="problemLabel"><a ref="problemLabelTextFit" style="width: 230px; height: 22px; display: block; margin: 0 auto; line-height: 22px;" :href="problemLink"><b>#{{ config.inContest ? alpha(data.info.problemId) : data.info.problemId }}.</b> {{ data.info.problemName }}</a></td> |
|
|
|
<% if (active === 'submissions') { %> |
|
|
|
<% if (active === 'submissions') { %> |
|
|
|
<td><a :href="submissionLink"><b><status-label :status="statusString"></status-label></b></a></td> |
|
|
|
<td><a :href="submissionLink"><b><status-label :status="statusString" :progress="progress"></status-label></b></a></td> |
|
|
|
<% } else { %> |
|
|
|
<% } else { %> |
|
|
|
<td><b><status-label :status="statusString"></status-label></b></td> |
|
|
|
<td><b><status-label :status="statusString" :progress="progress"></status-label></b></td> |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="data.result"> |
|
|
|
<template v-if="data.result"> |
|
|
|