mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
feat: send status to the frontend
This commit is contained in:
1 parent
622d64dd45
commit
039da53bbe
5 files changed
+8
-46
No files matched your search
@@ -95,10 +95,6 @@ function newResponse(response) {
|
||||
store.session.status = response.status
|
||||
}
|
||||
|
||||
function updateStatus(status) {
|
||||
store.session.status = status
|
||||
}
|
||||
|
||||
export function useTerminal() {
|
||||
return term
|
||||
}
|
||||
@@ -137,18 +133,9 @@ function setup() {
|
||||
socket.on('graph', (event) => {
|
||||
updateGraph(event)
|
||||
})
|
||||
// socket.on('hints', (event) => {
|
||||
// updateHints(event)
|
||||
// })
|
||||
// socket.on('tasks', (tasks) => {
|
||||
// setTasks(tasks)
|
||||
// })
|
||||
socket.on('response', (response) => {
|
||||
newResponse(response)
|
||||
})
|
||||
socket.on('status', (event) => {
|
||||
updateStatus(event)
|
||||
})
|
||||
}
|
||||
|
||||
setup()
|
||||
|
||||
Reference in new issue
Block a user