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_ _ntr_
* can't reset password without knowing password =\ * can't reset password without knowing password =\
* hard reload client on version change
* audio * audio
* animation effects * animation effects

View File

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

View File

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

View File

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