mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 08:18:41 +00:00
feat(remote_judger/luogu): show remote problem basic info in result
This commit is contained in:
parent
1842b22ae1
commit
d4bdef8d42
@ -9,4 +9,5 @@ COPY . .
|
|||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
ENV LANG=C.UTF-8 TZ="Asia/Shanghai"
|
||||||
CMD [ "node", "--experimental-specifier-resolution=node", "dist/entrypoint.js" ]
|
CMD [ "node", "--experimental-specifier-resolution=node", "dist/entrypoint.js" ]
|
||||||
|
@ -462,7 +462,9 @@ export default class LibreojProvider implements IBasicProvider {
|
|||||||
'<div class="border-bottom p-3">' +
|
'<div class="border-bottom p-3">' +
|
||||||
`<p><b>Problem:</b> #${body.meta.problem.displayId}. ${body.meta.problemTitle}</p>` +
|
`<p><b>Problem:</b> #${body.meta.problem.displayId}. ${body.meta.problemTitle}</p>` +
|
||||||
`<p><b>Remote submission:</b> <a href="https://loj.ac/s/${id}" target="_blank">${id}</a></p>` +
|
`<p><b>Remote submission:</b> <a href="https://loj.ac/s/${id}" target="_blank">${id}</a></p>` +
|
||||||
`<p><b>Remote submit time:</b> ${body.meta.submitTime}</p>` +
|
`<p><b>Remote submit time:</b> ${new Date(
|
||||||
|
body.meta.submitTime
|
||||||
|
).toLocaleString('zh-CN')}</p>` +
|
||||||
`<p><b>Remote account:</b> <a href="https://loj.ac/user/${body.meta.submitter.id}" target="_blank">${body.meta.submitter.username}</a></p>` +
|
`<p><b>Remote account:</b> <a href="https://loj.ac/user/${body.meta.submitter.id}" target="_blank">${body.meta.submitter.username}</a></p>` +
|
||||||
`<p class="mb-0"><b>Verdict:</b> ${status}</p>` +
|
`<p class="mb-0"><b>Verdict:</b> ${status}</p>` +
|
||||||
'</div>';
|
'</div>';
|
||||||
|
@ -294,7 +294,16 @@ export default class LuoguProvider implements IBasicProvider {
|
|||||||
const status = STATUS_MAP[data.status];
|
const status = STATUS_MAP[data.status];
|
||||||
let details = '';
|
let details = '';
|
||||||
|
|
||||||
details += `<info-block>REMOTE_SUBMISSION_ID = ${id}\nVERDICT = ${status}</info-block>`;
|
details +=
|
||||||
|
'<div class="border-bottom p-3">' +
|
||||||
|
`<p><b>Problem:</b> ${data.problem.pid} ${data.problem.title}</p>` +
|
||||||
|
`<p><b>Remote submission:</b> <a href="https://www.luogu.com.cn/record/${id}" target="_blank">R${id}</a></p>` +
|
||||||
|
`<p><b>Remote submit time:</b> ${new Date(
|
||||||
|
data.submitTime * 1000
|
||||||
|
).toLocaleString('zh-CN')}</p>` +
|
||||||
|
`<p><b>Remote account:</b> <a href="https://www.luogu.com.cn/user/${data.user.uid}" target="_blank">${data.user.name}</a></p>` +
|
||||||
|
`<p class="mb-0"><b>Verdict:</b> ${status}</p>` +
|
||||||
|
'</div>';
|
||||||
|
|
||||||
if (data.detail.judgeResult.subtasks.length === 1) {
|
if (data.detail.judgeResult.subtasks.length === 1) {
|
||||||
details += Object.entries(
|
details += Object.entries(
|
||||||
|
Loading…
Reference in New Issue
Block a user