diff options
author | Dessalines <happydooby@gmail.com> | 2019-08-11 20:55:09 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-08-11 20:55:09 -0700 |
commit | 3246d5d670d0d5e10310a90c6fd81a7dc9e97e54 (patch) | |
tree | 60bdf51e980fa9abe6fe9f1bae39373452afb155 /ui/src/interfaces.ts | |
parent | c2cb36bfa4bd8e55fbdbde51bd9fbfd2554ccfa4 (diff) |
nsfw mostly done, except for settings page.
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r-- | ui/src/interfaces.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index 59f4ba1c..7078ccac 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -22,6 +22,7 @@ export interface User { id: number; iss: string; username: string; + show_nsfw: boolean; } export interface UserView { @@ -53,6 +54,7 @@ export interface Community { creator_id: number; removed: boolean; deleted: boolean; + nsfw: boolean; published: string; updated?: string; creator_name: string; @@ -74,11 +76,14 @@ export interface Post { removed: boolean; deleted: boolean; locked: boolean; + nsfw: boolean; published: string; updated?: string; creator_name: string; community_name: string; community_removed: boolean; + community_deleted: boolean; + community_nsfw: boolean; number_of_comments: number; score: number; upvotes: number; @@ -334,6 +339,7 @@ export interface RegisterForm { password: string; password_verify: string; admin: boolean; + show_nsfw: boolean; } export interface LoginResponse { @@ -351,6 +357,7 @@ export interface CommunityForm { edit_id?: number; removed?: boolean; deleted?: boolean; + nsfw: boolean; reason?: string; expires?: number; auth?: string; @@ -396,6 +403,7 @@ export interface PostForm { creator_id: number; removed?: boolean; deleted?: boolean; + nsfw: boolean; locked?: boolean; reason?: string; auth: string; |