add github link to home screens

This commit is contained in:
Bruno Windels 2019-11-22 09:46:19 +01:00
parent 8a55778c32
commit 9c42710f9b
5 changed files with 10 additions and 4 deletions

View File

@ -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": {

View File

@ -60,6 +60,10 @@ body {
padding: 0.4em;
}
a {
color: white;
}
.form > div {
margin: 0.4em 0;
}

View File

@ -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"];

View File

@ -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"]))
]);
}
}

View File

@ -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"]))
]);
}