summary refs log tree commit diff
path: root/v2/screen/login.ts
diff options
context:
space:
mode:
Diffstat (limited to 'v2/screen/login.ts')
-rw-r--r--v2/screen/login.ts55
1 files changed, 0 insertions, 55 deletions
diff --git a/v2/screen/login.ts b/v2/screen/login.ts
deleted file mode 100644
index bc39655..0000000
--- a/v2/screen/login.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import { ElemType } from "../screenbuilder.ts";
-import { Screen } from "../screen.ts";
-import * as client from "../client.ts"
-import { build } from "../screenbuilder.ts";
-import HomeScreen from "./home.ts";
-
-export default {
-    elements: [
-        {
-            type: ElemType.TextElem,
-            id: 'username-label',
-            data: ["Username: \n"]
-        },
-        {
-            type: ElemType.InputElem,
-            id: 'username-input',
-            data: [false]
-        },
-        {
-            type: ElemType.BR,
-            id: 'naoiuou'
-        },
-        {
-            type: ElemType.TextElem,
-            id: 'password-label',
-            data: ["Password: \n"]
-        },
-        {
-            type: ElemType.InputElem,
-            id: 'password-input',
-            data: [true]
-        },
-        {
-            type: ElemType.BR,
-            id: 'faij0ifsj'
-        },
-        {
-            type: ElemType.ButtonElem,
-            id: 'done-btn',
-            data: ["Done", async function (this: Screen) {
-                client.setScreen(this)
-                this.off()
-                this.logs.push(`clicked button`)
-                console.clear()
-                console.log("logging in...")
-                //@ts-ignore
-                await client.login(this.elements.get("username-input").value, this.elements.get("password-input").value)
-                build(HomeScreen);
-                client
-            }]
-        }
-    ],
-    focus: "username-input",
-    name: 'login'
-}
\ No newline at end of file