mirror of
https://github.com/ChrispyBacon-dev/DockFlare.git
synced 2026-05-02 13:41:01 +00:00
webmail - bugfixes and improvements, read / unread logic, refresh to 20s, race condition fixes..
This commit is contained in:
parent
35b449a478
commit
17c2741f41
10 changed files with 240 additions and 116 deletions
53
webmail/src/types/mail.ts
Normal file
53
webmail/src/types/mail.ts
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
export interface Mailbox {
|
||||
address: string
|
||||
display_name: string
|
||||
}
|
||||
|
||||
export interface Folder {
|
||||
id: number
|
||||
name: string
|
||||
system_folder: boolean
|
||||
color: string | null
|
||||
unread_count: number
|
||||
total_count: number
|
||||
}
|
||||
|
||||
export interface Attachment {
|
||||
id: string
|
||||
filename: string
|
||||
content_type: string
|
||||
size: number
|
||||
}
|
||||
|
||||
export interface Message {
|
||||
id: string
|
||||
mailbox_address: string
|
||||
folder_id: number
|
||||
message_id: string | null
|
||||
from_name: string | null
|
||||
from_address: string
|
||||
to_addresses: string
|
||||
cc_addresses: string
|
||||
subject: string | null
|
||||
text_body: string | null
|
||||
html_body: string | null
|
||||
received_at: string | null
|
||||
sent_at: string | null
|
||||
is_read: 0 | 1
|
||||
is_starred: 0 | 1
|
||||
is_draft: boolean
|
||||
attachments?: Attachment[]
|
||||
}
|
||||
|
||||
export interface Toast {
|
||||
message: string
|
||||
type: 'error' | 'success' | 'info'
|
||||
}
|
||||
|
||||
export interface ComposeDefaults {
|
||||
to?: string
|
||||
subject?: string
|
||||
body?: string
|
||||
quotedHtml?: string
|
||||
draftId?: number
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue