update register form
This commit is contained in:
parent
fe2d757b50
commit
df61e7bd9c
8 changed files with 1337 additions and 434 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -5,6 +5,8 @@ const store = require("./utils/store");
|
|||
const { launchSession, endSession } = require("./session");
|
||||
const { backgroundMitt, ipcEmit } = require("./utils/emitter");
|
||||
|
||||
store.set('account', "1234");
|
||||
|
||||
async function login(_e, creds)
|
||||
{
|
||||
const { error, data } = await post("/auth", creds);
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ const App =
|
|||
}
|
||||
|
||||
window.mainApi.on("set-account", (value, reason) => {
|
||||
console.log(value, reason);
|
||||
if (reason) alert(reason);
|
||||
account.value = value;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ const SmartForm =
|
|||
logsEl.style.color = "green";
|
||||
logsEl.innerText = props.modifier;
|
||||
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
|
||||
Vue.onMounted(() => {
|
||||
|
||||
|
|
|
|||
|
|
@ -26,12 +26,12 @@ const Login =
|
|||
placeholder: 'Password'
|
||||
},
|
||||
{
|
||||
name: 'repassword',
|
||||
name: 'name',
|
||||
value: null,
|
||||
placeholder: 'Re-Password'
|
||||
placeholder: 'Name'
|
||||
}]"
|
||||
:channel="'auth'"
|
||||
:modifier="'Login or re-enter password to register.'"
|
||||
:modifier="'Login or enter name to register.'"
|
||||
/>
|
||||
|
||||
</div>`
|
||||
|
|
|
|||
|
|
@ -52,10 +52,6 @@ const Messenger = {
|
|||
window.mainApi.send("messenger");
|
||||
});
|
||||
|
||||
Vue.onUnmounted(() => {
|
||||
messages.value = [];
|
||||
});
|
||||
|
||||
const search = (id) => messages.value.find(m => m.id == id);
|
||||
|
||||
return { person, messages, onDrop };
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -27,8 +27,6 @@ function handleMessageQueue()
|
|||
{
|
||||
const update = messageQueue.shift();
|
||||
|
||||
console.log(util.inspect(update, false, null, true /* enable colors */));
|
||||
|
||||
if (update)
|
||||
{
|
||||
if (update.person)
|
||||
|
|
@ -75,6 +73,7 @@ function endSession()
|
|||
clearInterval(processContentId);
|
||||
// terminateAudio();
|
||||
disconnectFromPlatform();
|
||||
ui = null;
|
||||
}
|
||||
|
||||
ipcMain.on("messenger", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue