diff options
author | Dessalines <tyhou13@gmx.com> | 2020-04-10 16:55:57 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-04-10 16:55:57 -0400 |
commit | bb287cbd076940bd09f6afb61b642370d020f91e (patch) | |
tree | f3fe3afa29b6445fbb2232a8c5a9133b8d691a91 /ui/src/interfaces.ts | |
parent | ed264aba3c12243352f68c2de6a5f21f23778bd0 (diff) |
Adding an admin settings page.
- Fixes #620
- Adding a UserListing component. Fixes #627
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r-- | ui/src/interfaces.ts | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index 0eeeac06..b77ccac6 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -43,6 +43,8 @@ export enum UserOperation { GetPrivateMessages, UserJoin, GetComments, + GetSiteConfig, + SaveSiteConfig, } export enum CommentSortType { @@ -102,7 +104,6 @@ export interface UserView { avatar?: string; email?: string; matrix_user_id?: string; - fedi_name: string; published: string; number_of_posts: number; post_score: number; @@ -699,6 +700,19 @@ export interface SiteForm { auth?: string; } +export interface GetSiteConfig { + auth?: string; +} + +export interface GetSiteConfigResponse { + config_hjson: string; +} + +export interface SiteConfigForm { + config_hjson: string; + auth?: string; +} + export interface GetSiteResponse { site: Site; admins: Array<UserView>; @@ -846,7 +860,8 @@ export type MessageType = | PasswordChangeForm | PrivateMessageForm | EditPrivateMessageForm - | GetPrivateMessagesForm; + | GetPrivateMessagesForm + | SiteConfigForm; type ResponseType = | SiteResponse @@ -868,7 +883,8 @@ type ResponseType = | BanUserResponse | AddAdminResponse | PrivateMessageResponse - | PrivateMessagesResponse; + | PrivateMessagesResponse + | GetSiteConfigResponse; export interface WebSocketResponse { op: UserOperation; |