Skip to content

Commit

Permalink
[Fix] Fix missing Alert
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Jul 18, 2021
1 parent 8fc0d2e commit c38ab92
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/pages/oj/views/submission/SubmissionDetails.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<Row type="flex" justify="space-around">
<Col :span="20" id="status">
<Alert :type="status.type" showIcon>
<Alert :type="status.color" showIcon>
<span class="title">{{$t('m.' + status.statusName.replace(/ /g, "_"))}}</span>
<div slot="desc" class="content">
<template v-if="isCE">
Expand Down
24 changes: 12 additions & 12 deletions src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,70 +2,70 @@ export const JUDGE_STATUS = {
'-2': {
name: 'Compile Error',
short: 'CE',
color: 'yellow',
color: 'warning',
type: 'warning'
},
'-1': {
name: 'Wrong Answer',
short: 'WA',
color: 'red',
color: 'error',
type: 'error'
},
'0': {
name: 'Accepted',
short: 'AC',
color: 'green',
color: 'success',
type: 'success'
},
'1': {
name: 'Time Limit Exceeded',
short: 'TLE',
color: 'red',
color: 'error',
type: 'error'
},
'2': {
name: 'Time Limit Exceeded',
short: 'TLE',
color: 'red',
color: 'error',
type: 'error'
},
'3': {
name: 'Memory Limit Exceeded',
short: 'MLE',
color: 'red',
color: 'error',
type: 'error'
},
'4': {
name: 'Runtime Error',
short: 'RE',
color: 'red',
color: 'error',
type: 'error'
},
'5': {
name: 'System Error',
short: 'SE',
color: 'red',
color: 'error',
type: 'error'
},
'6': {
name: 'Pending',
color: 'yellow',
color: 'warning',
type: 'warning'
},
'7': {
name: 'Judging',
color: 'blue',
color: 'info',
type: 'primary'
},
'8': {
name: 'Partial Accepted',
short: 'PAC',
color: 'blue',
color: 'info',
type: 'primary'
},
'9': {
name: 'Submitting',
color: 'yellow',
color: 'warning',
type: 'warning'
}
}
Expand Down

0 comments on commit c38ab92

Please sign in to comment.