2024-07-11 06:20:51 -04:00
|
|
|
export type MentionValue = {
|
|
|
|
key: string,
|
|
|
|
value: string,
|
|
|
|
name: string,
|
|
|
|
fullname: string,
|
|
|
|
avatar: string,
|
|
|
|
}
|
|
|
|
|
|
|
|
export type Config = {
|
|
|
|
appUrl: string,
|
|
|
|
appSubUrl: string,
|
|
|
|
assetVersionEncoded: string,
|
|
|
|
assetUrlPrefix: string,
|
|
|
|
runModeIsProd: boolean,
|
|
|
|
customEmojis: Record<string, string>,
|
|
|
|
csrfToken: string,
|
|
|
|
pageData: Record<string, any>,
|
|
|
|
notificationSettings: Record<string, any>,
|
|
|
|
enableTimeTracking: boolean,
|
|
|
|
mentionValues?: MentionValue[],
|
|
|
|
mermaidMaxSourceCharacters: number,
|
|
|
|
i18n: Record<string, string>,
|
|
|
|
}
|
2024-07-25 19:31:24 -04:00
|
|
|
|
|
|
|
export type Intent = 'error' | 'warning' | 'info';
|
|
|
|
|
|
|
|
export type RequestData = string | FormData | URLSearchParams;
|
|
|
|
|
|
|
|
export type RequestOpts = {
|
|
|
|
data?: RequestData,
|
|
|
|
} & RequestInit;
|
2024-08-28 12:32:38 -04:00
|
|
|
|
|
|
|
export type IssueData = {
|
|
|
|
owner: string,
|
|
|
|
repo: string,
|
|
|
|
type: string,
|
|
|
|
index: string,
|
|
|
|
}
|