From 9c42710f9bb3b527b939e10d0dbb15eebc84c4ca Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 22 Nov 2019 09:46:19 +0100 Subject: [PATCH] add github link to home screens --- package.json | 2 +- src/ui/web/css/main.css | 4 ++++ src/ui/web/general/html.js | 2 +- src/ui/web/login/LoginView.js | 3 ++- src/ui/web/login/SessionPickerView.js | 3 ++- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index b0706552..e33038a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "brawl-chat", - "version": "0.0.11", + "version": "0.0.12", "description": "A javascript matrix client prototype, trying to minize RAM usage by offloading as much as possible to IndexedDB", "main": "index.js", "directories": { diff --git a/src/ui/web/css/main.css b/src/ui/web/css/main.css index 354e7aea..1ba316a7 100644 --- a/src/ui/web/css/main.css +++ b/src/ui/web/css/main.css @@ -60,6 +60,10 @@ body { padding: 0.4em; } +a { + color: white; +} + .form > div { margin: 0.4em 0; } diff --git a/src/ui/web/general/html.js b/src/ui/web/general/html.js index a5488b2b..9bea640f 100644 --- a/src/ui/web/general/html.js +++ b/src/ui/web/general/html.js @@ -68,7 +68,7 @@ export function text(str) { } export const TAG_NAMES = [ - "ol", "ul", "li", "div", "h1", "h2", "h3", "h4", "h5", "h6", + "a", "ol", "ul", "li", "div", "h1", "h2", "h3", "h4", "h5", "h6", "p", "strong", "em", "span", "img", "section", "main", "article", "aside", "pre", "button", "time", "input", "textarea"]; diff --git a/src/ui/web/login/LoginView.js b/src/ui/web/login/LoginView.js index 1285020c..3e0ce617 100644 --- a/src/ui/web/login/LoginView.js +++ b/src/ui/web/login/LoginView.js @@ -19,7 +19,8 @@ export default class LoginView extends TemplateView { onClick: () => vm.login(username.value, password.value, homeserver.value), disabled: vm => vm.loading }, "Log In")), - t.div(t.button({onClick: () => vm.cancel()}, ["Pick an existing session"])) + t.div(t.button({onClick: () => vm.cancel()}, ["Pick an existing session"])), + t.p(t.a({href: "https://github.com/bwindels/brawl-chat"}, ["Brawl on Github"])) ]); } } diff --git a/src/ui/web/login/SessionPickerView.js b/src/ui/web/login/SessionPickerView.js index c52aed31..36c72598 100644 --- a/src/ui/web/login/SessionPickerView.js +++ b/src/ui/web/login/SessionPickerView.js @@ -62,7 +62,8 @@ export default class SessionPickerView extends TemplateView { t.h1(["Pick a session"]), this._sessionList.mount(), t.p(t.button({onClick: () => this.viewModel.cancel()}, ["Log in to a new session instead"])), - t.p(t.button({onClick: () => this.viewModel.import(prompt("JSON"))}, ["Import Session JSON"])) + t.p(t.button({onClick: () => this.viewModel.import(prompt("JSON"))}, ["Import Session JSON"])), + t.p(t.a({href: "https://github.com/bwindels/brawl-chat"}, ["Brawl on Github"])) ]); }