Merge branch 'master' of https://gitlab.forthrd.io/Pakin/supra-app into dev
This commit is contained in:
commit
d60a9af6cb
7 changed files with 124 additions and 71 deletions
|
|
@ -83,12 +83,12 @@
|
|||
errors: []
|
||||
});
|
||||
|
||||
handleIncomingMessages(
|
||||
JSON.stringify({
|
||||
type: 'chat',
|
||||
payload: `${new Date().toLocaleTimeString()}: ${get(authStore)?.displayName} has connected to ${boxid}`
|
||||
})
|
||||
);
|
||||
// handleIncomingMessages(
|
||||
// JSON.stringify({
|
||||
// type: 'chat',
|
||||
// payload: `${new Date().toLocaleTimeString()}: ${get(authStore)?.displayName} has connected to ${boxid}`
|
||||
// })
|
||||
// );
|
||||
} else {
|
||||
machineStatus = 'Instance lost, try disconnect and re-connect again';
|
||||
toast.error('Unexpected Error');
|
||||
|
|
@ -221,12 +221,12 @@
|
|||
|
||||
connectDeviceOk = false;
|
||||
|
||||
handleIncomingMessages(
|
||||
JSON.stringify({
|
||||
type: 'chat',
|
||||
payload: `${new Date().toLocaleTimeString()}: ${get(authStore)?.displayName} has disconnected!`
|
||||
})
|
||||
);
|
||||
// handleIncomingMessages(
|
||||
// JSON.stringify({
|
||||
// type: 'chat',
|
||||
// payload: `${new Date().toLocaleTimeString()}: ${get(authStore)?.displayName} has disconnected!`
|
||||
// })
|
||||
// );
|
||||
}
|
||||
|
||||
function checkDeviceConnection() {
|
||||
|
|
|
|||
|
|
@ -59,16 +59,16 @@ async function handleAdbPayload(raw_payload: string) {
|
|||
}
|
||||
|
||||
if (raw_payload.startsWith('save_recipe_machine')) {
|
||||
handleIncomingMessages(
|
||||
JSON.stringify({
|
||||
type: 'ui_action',
|
||||
payload: {
|
||||
action: uiAction,
|
||||
from: 'brew',
|
||||
ref: `${pd}.${action}`
|
||||
}
|
||||
})
|
||||
);
|
||||
// handleIncomingMessages(
|
||||
// JSON.stringify({
|
||||
// type: 'ui_action',
|
||||
// payload: {
|
||||
// action: uiAction,
|
||||
// from: 'brew',
|
||||
// ref: `${pd}.${action}`
|
||||
// }
|
||||
// })
|
||||
// );
|
||||
}
|
||||
} else if (raw_payload.startsWith('state')) {
|
||||
let res = raw_payload.split('/');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue