This commit is contained in:
parent
d584ee2c03
commit
56ff5670dd
@ -1,12 +1,13 @@
|
|||||||
$Published: "0";
|
$UnderConstruction: "0";
|
||||||
$Rejected: "1";
|
$Submitted: "1";
|
||||||
$Publishing: "2";
|
$ChangesRequested: "2";
|
||||||
$Validated: "3";
|
$Accepted: "3";
|
||||||
$Validating: "4";
|
$Validating: "4";
|
||||||
$Accepted: "5";
|
$Validated: "5";
|
||||||
$ChangesRequested: "6";
|
$Uploading: "6";
|
||||||
$Submitted: "7";
|
$Uploaded: "7";
|
||||||
$UnderConstruction: "8";
|
$Rejected: "8";
|
||||||
|
$Released: "9";
|
||||||
|
|
||||||
.review-status {
|
.review-status {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
@ -16,7 +17,7 @@ $UnderConstruction: "8";
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
&[data-review-status="#{$Published}"] {
|
&[data-review-status="#{$Released}"] {
|
||||||
background-color: orange;
|
background-color: orange;
|
||||||
p {
|
p {
|
||||||
color: white;
|
color: white;
|
||||||
@ -28,7 +29,13 @@ $UnderConstruction: "8";
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&[data-review-status="#{$Publishing}"] {
|
&[data-review-status="#{$Uploading}"] {
|
||||||
|
background-color: orange;
|
||||||
|
p {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&[data-review-status="#{$Uploaded}"] {
|
||||||
background-color: orange;
|
background-color: orange;
|
||||||
p {
|
p {
|
||||||
color: white;
|
color: white;
|
||||||
@ -70,4 +77,4 @@ $UnderConstruction: "8";
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,6 @@ function TitleAndComments(stats: CreatorAndReviewStatus) {
|
|||||||
<main className="review-info">
|
<main className="review-info">
|
||||||
<div>
|
<div>
|
||||||
<h1>{stats.name}</h1>
|
<h1>{stats.name}</h1>
|
||||||
{/* TODO: Fix review status, I think its displaying the wrong information idk */}
|
|
||||||
<aside data-review-status={stats.review} className="review-status">
|
<aside data-review-status={stats.review} className="review-status">
|
||||||
<p>{Review}</p>
|
<p>{Review}</p>
|
||||||
</aside>
|
</aside>
|
||||||
@ -97,4 +96,4 @@ export default function SubmissionInfoPage() {
|
|||||||
</main>
|
</main>
|
||||||
</Webpage>
|
</Webpage>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
const enum SubmissionStatus {
|
const enum SubmissionStatus {
|
||||||
Published,
|
UnderConstruction = 0,
|
||||||
Rejected,
|
Submitted = 1,
|
||||||
Publishing,
|
ChangesRequested = 2,
|
||||||
Validated,
|
Accepted = 3,
|
||||||
Validating,
|
Validating = 4,
|
||||||
Accepted,
|
Validated = 5,
|
||||||
ChangesRequested,
|
Uploading = 6,
|
||||||
Submitted,
|
Uploaded = 7,
|
||||||
UnderConstruction
|
Rejected = 8,
|
||||||
|
Released = 9,
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SubmissionInfo {
|
interface SubmissionInfo {
|
||||||
@ -26,12 +27,14 @@ interface SubmissionInfo {
|
|||||||
|
|
||||||
function SubmissionStatusToString(submission_status: SubmissionStatus): string {
|
function SubmissionStatusToString(submission_status: SubmissionStatus): string {
|
||||||
switch (submission_status) {
|
switch (submission_status) {
|
||||||
case SubmissionStatus.Published:
|
case SubmissionStatus.Released:
|
||||||
return "PUBLISHED"
|
return "RELEASED"
|
||||||
case SubmissionStatus.Rejected:
|
case SubmissionStatus.Rejected:
|
||||||
return "REJECTED"
|
return "REJECTED"
|
||||||
case SubmissionStatus.Publishing:
|
case SubmissionStatus.Uploading:
|
||||||
return "PUBLISHING"
|
return "UPLOADING"
|
||||||
|
case SubmissionStatus.Uploaded:
|
||||||
|
return "UPLOADED"
|
||||||
case SubmissionStatus.Validated:
|
case SubmissionStatus.Validated:
|
||||||
return "VALIDATED"
|
return "VALIDATED"
|
||||||
case SubmissionStatus.Validating:
|
case SubmissionStatus.Validating:
|
||||||
@ -53,4 +56,4 @@ export {
|
|||||||
SubmissionStatus,
|
SubmissionStatus,
|
||||||
SubmissionStatusToString,
|
SubmissionStatusToString,
|
||||||
type SubmissionInfo
|
type SubmissionInfo
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user