Skip to content

Commit 3a62861

Browse files
committed
Refactor default layout for improved code consistency and readability
1 parent 2d608eb commit 3a62861

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/layouts/default.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ import { IdentityState } from '~/composables'
8383
import { useIdentityStateStore } from '~/stores/identityState'
8484
import { useIdentityAffectationStore } from '~/stores/identityAffectation'
8585
import { useMenu } from '~/composables'
86-
import ReconnectingEventSource from "reconnecting-eventsource";
86+
import ReconnectingEventSource from 'reconnecting-eventsource'
8787
8888
const identityStateStore = useIdentityStateStore()
8989
@@ -94,7 +94,6 @@ let orchestratorVersion = ref<object | null>(null)
9494
let appManagerVersion = ref<object | null>(null)
9595
let daemonVersion = ref<object | null>(null)
9696
97-
9897
onMounted(async () => {
9998
if (process.env.NODE_ENV === 'development') {
10099
orchestratorVersion.value = { currentVersion: '0.0.0-dev', lastVersion: '0.0.0-dev', updateAvailable: false }
@@ -136,9 +135,9 @@ onMounted(async () => {
136135
daemonVersion.value = daemonVersionRes.value?.data
137136
})
138137
139-
const esUrl = new URL(window.location.origin + "/api/core/backends/sse")
140-
esUrl.searchParams.append("id", '' + auth.user?._id)
141-
esUrl.searchParams.append("key", '' + auth.user?.sseToken)
138+
const esUrl = new URL(window.location.origin + '/api/core/backends/sse')
139+
esUrl.searchParams.append('id', '' + auth.user?._id)
140+
esUrl.searchParams.append('key', '' + auth.user?.sseToken)
142141
var es = new ReconnectingEventSource(esUrl)
143142
144143
// console.log('identityStateStore.getProcessingCount', identityStateStore.getProcessingCount)
@@ -184,7 +183,6 @@ async function onmessage(event) {
184183
}
185184
break
186185
}
187-
188186
} catch (e) {
189187
console.error(e)
190188
}

0 commit comments

Comments
 (0)