You've already forked AstralRinth
forked from didirus/AstralRinth
Redesign report form and prevent duplicate reports (#3211)
* Redesign report form and prevent duplicate reports * Fix lint * Add malware evidence notice to report form * Fix lint
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export const BASE62_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
|
||||
export type Base62Char = (typeof BASE62_CHARS)[number]
|
||||
|
||||
export type ModrinthId = `${Base62Char}`[]
|
||||
export type ModrinthId = string
|
||||
|
||||
export type Environment = 'required' | 'optional' | 'unsupported' | 'unknown'
|
||||
|
||||
@@ -241,3 +241,15 @@ export interface TeamMember {
|
||||
payouts_split: number
|
||||
ordering: number
|
||||
}
|
||||
|
||||
export type Report = {
|
||||
id: ModrinthId
|
||||
item_id: ModrinthId
|
||||
item_type: 'project' | 'version' | 'user'
|
||||
report_type: string
|
||||
reporter: ModrinthId
|
||||
thread_id: ModrinthId
|
||||
closed: boolean
|
||||
created: string
|
||||
body: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user