-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat&lint: add event ui & fix lint error.
- Loading branch information
1 parent
da060a0
commit e8f812f
Showing
21 changed files
with
286 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export interface EventProblemCore { | ||
psid: string; // problem/{psid} | ||
hint: string; | ||
} | ||
|
||
// Core use / compress verison / for db. | ||
export interface EventTaskCore { | ||
title: string; | ||
id: string; | ||
description: string; | ||
list: EventProblemCore[]; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { EventTaskCore } from '../declare/event'; | ||
|
||
|
||
|
||
//TODO | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
export function parseCode(code: string): EventTaskCore[] { | ||
return []; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ProblemScore } from './score'; | ||
|
||
export interface EventProblem { | ||
psid: string; // problem/{psid} | ||
hint: string; | ||
title: string; | ||
score?: ProblemScore; | ||
} | ||
|
||
/* | ||
* Standard Format / Universal Format. | ||
* 标准格式 / 全局传输格式 | ||
* */ | ||
export interface EventTask { | ||
id: string; // Event task id | ||
title: string; // Event string | ||
description: string; // Event description. | ||
list: EventProblem[]; // EventProblem, concern order. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type ProblemScore = 'ac' | 'wa' | 'no'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,12 @@ | ||
import { Problem } from 'rmjac-declare/problem'; | ||
import { fetch } from '../interfaces/data'; | ||
|
||
interface RegisterProp { | ||
email: string; | ||
username: string; | ||
password: string; | ||
gender: string; | ||
} | ||
|
||
interface LoginProp { | ||
email: string; | ||
password: string; | ||
} | ||
|
||
interface Response { | ||
interface ResponseProblem { | ||
status: 'success' | 'error'; | ||
msg?: string; | ||
type?: string; | ||
data?: unknown; | ||
param?: string; | ||
data?: Problem; | ||
} | ||
|
||
export async function handleProblem(pid: string): Promise<any> { | ||
export async function handleProblem(pid: string): Promise<ResponseProblem> { | ||
const data = await fetch('problem', 'view', { pid }); | ||
return data; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.