prettier 4 tabwidth

This commit is contained in:
mrfry 2022-12-10 15:34:54 +01:00
parent 00ec614f1d
commit 96b413a365
42 changed files with 7034 additions and 6905 deletions

View file

@ -26,136 +26,136 @@ import http from 'http'
import https from 'https'
export interface QuestionData {
type: string
date?: Date | number
images?: Array<string>
hashedImages?: Array<string>
possibleAnswers?: Array<{
type: string
val: string
selectedByUser?: boolean
}>
base64?: string[]
date?: Date | number
images?: Array<string>
hashedImages?: Array<string>
possibleAnswers?: Array<{
type: string
val: string
selectedByUser?: boolean
}>
base64?: string[]
}
export interface Question {
Q: string
A: string
data: QuestionData
cache?: {
Q: Array<string>
A: Array<string>
}
Q: string
A: string
data: QuestionData
cache?: {
Q: Array<string>
A: Array<string>
}
}
export interface Subject {
Name: string
Questions: Array<Question>
Name: string
Questions: Array<Question>
}
export interface DataFile {
path: string
name: string
locked?: Boolean
overwrites?: Array<{
subjName: string
overwriteFromDate: number
}>
shouldSearch:
| string
| {
path: string
name: string
locked?: Boolean
overwrites?: Array<{
subjName: string
overwriteFromDate: number
}>
shouldSearch:
| string
| {
location?: {
val: string
}
}
shouldSave: {
location?: {
val: string
val: string
}
version?: {
compare: string
val: string
}
}
shouldSave: {
location?: {
val: string
}
version?: {
compare: string
val: string
}
}
}
export interface QuestionDb extends DataFile {
data: Array<Subject>
index: number
data: Array<Subject>
index: number
}
export interface User {
id: number
pw: string
created: Date
id: number
pw: string
created: Date
}
export interface User {
id: number
pw: string
pwRequestCount: number
avaiblePWRequests: number
loginCount: number
createdBy: number
id: number
pw: string
pwRequestCount: number
avaiblePWRequests: number
loginCount: number
createdBy: number
}
export interface Request<T = any> extends express.Request {
body: T
cookies: any
session: {
user?: User
sessionID?: string
isException?: boolean
}
files: any
query: { [key: string]: string }
body: T
cookies: any
session: {
user?: User
sessionID?: string
isException?: boolean
}
files: any
query: { [key: string]: string }
}
export interface SubmoduleData {
app: express.Application
url: string
publicdirs: Array<string>
userDB?: Database
nextdir?: string
moduleSpecificData?: any
httpServer: http.Server
httpsServer: https.Server
app: express.Application
url: string
publicdirs: Array<string>
userDB?: Database
nextdir?: string
moduleSpecificData?: any
httpServer: http.Server
httpsServer: https.Server
}
export interface QuestionFromScript {
questions: Array<Question>
testUrl: string
subj: string
questions: Array<Question>
testUrl: string
subj: string
}
export interface DbSearchResult {
message?: string
recievedData?: string
question: Question
result: SearchResultQuestion[]
success: boolean
message?: string
recievedData?: string
question: Question
result: SearchResultQuestion[]
success: boolean
}
export interface RegisteredUserEntry {
cid: string
version: string
installSource: string
date: string
userAgent: string
loginDate?: string
uid?: number
cid: string
version: string
installSource: string
date: string
userAgent: string
loginDate?: string
uid?: number
}
export interface Submodule {
dailyAction?: () => void
load?: () => void
dailyAction?: () => void
load?: () => void
}
export interface ModuleType {
app: express.Application
dailyAction?: Function
app: express.Application
dailyAction?: Function
}
export interface Socket extends SocketIoSocket {
user: User
user: User
}