mirror of
https://github.com/LalleSX/4chan-XZ.git
synced 2025-10-07 07:22:37 +02:00
added fcx and tegaki to globals window
This commit is contained in:
parent
4969e3de7c
commit
1a990ef6ec
@ -5,57 +5,63 @@ import type SimpleDict from "../classes/SimpleDict"
|
|||||||
import type Thread from "../classes/Thread"
|
import type Thread from "../classes/Thread"
|
||||||
import type SWTinyboard from "../site/SW.tinyboard"
|
import type SWTinyboard from "../site/SW.tinyboard"
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface Window {
|
||||||
|
Tegaki: any
|
||||||
|
FCX: any
|
||||||
|
}
|
||||||
|
}
|
||||||
// interfaces might be incomplete
|
// interfaces might be incomplete
|
||||||
export interface BoardConfig {
|
export interface BoardConfig {
|
||||||
board: string
|
board: string
|
||||||
bump_limit: number
|
bump_limit: number
|
||||||
cooldowns: {
|
cooldowns: {
|
||||||
threads: number,
|
threads: number,
|
||||||
replies: number,
|
replies: number,
|
||||||
images: number,
|
images: number,
|
||||||
}
|
}
|
||||||
custom_spoilers: 1 | 0,
|
custom_spoilers: 1 | 0,
|
||||||
image_limit: number,
|
image_limit: number,
|
||||||
is_archived: 1 | 0,
|
is_archived: 1 | 0,
|
||||||
max_comment_chars: number
|
max_comment_chars: number
|
||||||
max_filesize: number
|
max_filesize: number
|
||||||
max_webm_duration: number
|
max_webm_duration: number
|
||||||
max_webm_filesize: number
|
max_webm_filesize: number
|
||||||
meta_description: string,
|
meta_description: string,
|
||||||
pages: number,
|
pages: number,
|
||||||
per_page: number,
|
per_page: number,
|
||||||
spoilers: number,
|
spoilers: number,
|
||||||
title: string
|
title: string
|
||||||
ws_board: 1 | 0
|
ws_board: 1 | 0
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Board {
|
export interface Board {
|
||||||
ID: string,
|
ID: string,
|
||||||
boardID: string,
|
boardID: string,
|
||||||
siteID: string,
|
siteID: string,
|
||||||
config: BoardConfig,
|
config: BoardConfig,
|
||||||
posts: SimpleDict<Post>,
|
posts: SimpleDict<Post>,
|
||||||
threads: SimpleDict<Thread>,
|
threads: SimpleDict<Thread>,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Conf = Object.create(null)
|
export const Conf = Object.create(null)
|
||||||
|
|
||||||
export const g: {
|
export const g: {
|
||||||
VERSION: string,
|
VERSION: string,
|
||||||
NAMESPACE: string,
|
NAMESPACE: string,
|
||||||
sites: (typeof SWTinyboard)[],
|
sites: (typeof SWTinyboard)[],
|
||||||
boards: Board[],
|
boards: Board[],
|
||||||
posts?: SimpleDict<Post>,
|
posts?: SimpleDict<Post>,
|
||||||
threads?: SimpleDict<Thread>
|
threads?: SimpleDict<Thread>
|
||||||
THREADID?: number,
|
THREADID?: number,
|
||||||
SITE?: typeof SWTinyboard,
|
SITE?: typeof SWTinyboard,
|
||||||
BOARD?: Board,
|
BOARD?: Board,
|
||||||
VIEW?: string,
|
VIEW?: string,
|
||||||
} = {
|
} = {
|
||||||
VERSION: version.version,
|
VERSION: version.version,
|
||||||
NAMESPACE: meta.name,
|
NAMESPACE: meta.name,
|
||||||
sites: Object.create(null),
|
sites: Object.create(null),
|
||||||
boards: Object.create(null)
|
boards: Object.create(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const E = (function () {
|
export const E = (function () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user