change toast position and update worklog

This commit is contained in:
ntr 2020-01-12 17:38:37 +10:00
parent 5e98a20d7a
commit acce82ac91
4 changed files with 9 additions and 6 deletions

View File

@ -3,6 +3,7 @@
_ntr_
* can't reset password without knowing password =\
* hard reload client on version change
* audio
* animation effects

View File

@ -51,10 +51,11 @@ function Login(args) {
<label for="username">Username</label>
<input
class="login-input"
type="email"
type="text"
placeholder="username"
tabIndex={1}
value={name}
autocomplete="username"
onInput={linkState(this, 'name')}
/>
<label for="password">Password</label>
@ -63,6 +64,7 @@ function Login(args) {
type="password"
placeholder="password"
tabIndex={2}
autocomplete="current-password"
value={password}
onInput={linkState(this, 'password')}
/>

View File

@ -12,7 +12,7 @@ function errorToast(err) {
return toast.error({
title: 'BEEP BOOP',
message: err,
position: 'topRight',
position: 'bottomLeft',
});
}
@ -341,7 +341,7 @@ function createSocket(events) {
function onOpen() {
toast.info({
message: 'connected',
position: 'topRight',
position: 'bottomLeft',
});
sendPing();
@ -360,7 +360,7 @@ function createSocket(events) {
console.error('WebSocket closed', event);
toast.warning({
message: 'disconnected',
position: 'topRight',
position: 'bottomLeft',
});
return setTimeout(connect, 5000);
}

View File

@ -208,7 +208,7 @@ function postData(url = '/', data = {}) {
function errorToast(message) {
toast.error({
position: 'topRight',
position: 'bottomLeft',
drag: false,
close: false,
message,
@ -217,7 +217,7 @@ function errorToast(message) {
function infoToast(message) {
toast.info({
position: 'topRight',
position: 'bottomLeft',
drag: false,
close: false,
message,