summaryrefslogtreecommitdiffstats
path: root/ui/src/interfaces.ts
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-03-22 18:42:57 -0700
committerDessalines <happydooby@gmail.com>2019-03-22 18:42:57 -0700
commitc438f0fef15febed0e365a9d412bf3a3394bed1c (patch)
tree070d5ba322226acd5fe0d0a7757cb936462ab2ff /ui/src/interfaces.ts
parentd52c16c123851e5ee8b5a6ee8c106615dab5081c (diff)
Adding login and Register
- Login and Register mostly working. - Starting to work on creating communities.
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r--ui/src/interfaces.ts24
1 files changed, 21 insertions, 3 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts
index c1550cc1..da5c415b 100644
--- a/ui/src/interfaces.ts
+++ b/ui/src/interfaces.ts
@@ -1,7 +1,17 @@
-export interface LoginForm {
+export enum UserOperation {
+ Login, Register, CreateCommunity
+}
+
+export interface User {
+ id: number
username: string;
+}
+
+export interface LoginForm {
+ username_or_email: string;
password: string;
}
+
export interface RegisterForm {
username: string;
email?: string;
@@ -9,6 +19,14 @@ export interface RegisterForm {
password_verify: string;
}
-export enum UserOperation {
- Login, Register
+export interface CommunityForm {
+ name: string;
+ updated?: number
+}
+
+export interface PostForm {
+ name: string;
+ url: string;
+ attributed_to: string;
+ updated?: number
}