change toast position and update worklog
This commit is contained in:
parent
5e98a20d7a
commit
acce82ac91
@ -3,6 +3,7 @@
|
||||
|
||||
_ntr_
|
||||
* can't reset password without knowing password =\
|
||||
* hard reload client on version change
|
||||
|
||||
* audio
|
||||
* animation effects
|
||||
|
||||
@ -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')}
|
||||
/>
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user