11<template lang="pug">
2- q-layout
2+ q-layout( view = "hHh LpR lff" style = "margin-top: -1px;" )
33 sesame-appbar( @closeDrawer ="drawer = !drawer" @syncing ="syncing" )
44 q-drawer.flex ( v-model ="drawer" side ="left" : mini= "true" bordered persistent )
55 template( #mini )
@@ -20,19 +20,46 @@ q-layout
2020 q-separator
2121 q-page-container
2222 nuxt-page
23- q-dialog( seamless v-model ="eventSeamless" position ="bottom" )
23+ //- q-dialog(seamless v-model="eventSeamless" position="bottom")
2424 q-card(style="width: 350px")
2525 q-linear-progress(:value="eventSeamlessProgress" color="amber-9")
2626 q-card-section.row.items-center.no-wrap
2727 q-circular-progress.q-mr-md(indeterminate size="42px" color="amber-9")
28- //- pre(v-html="JSON.stringify(eventSeamlessCurrentJobs, null, 2)")
2928 div
3029 .text-weight-bold.q-px-md.text-center
3130 | Synchronisation en cours
3231 q-badge(color="amber-10") {{ eventSeamlessCurrent }}/{{ eventSeamlessTotal }}
33- //- .text-grey Fitz & The Tantrums
3432 q-space
3533 q-btn(flat round icon="mdi-close" v-close-popup)
34+ q-footer( :class ="$q.dark.isActive ? 'bg-dark' : 'bg-white'" bordered )
35+ q-bar( :class ="$q.dark.isActive ? 'bg-dark' : 'bg-white text-black'" )
36+ span
37+ small AppManager
38+ small( v-text ="'v' + orchestratorVersion.currentVersion" )
39+ small.bold /
40+ span.q-mr-sm
41+ small Orchestrator
42+ small( v-text ="'v' + appManagerVersion.currentVersion" )
43+ q-btn.q-px-xs (
44+ v-show ="!appManagerVersion.updateAvailable"
45+ flat stretch icon ="mdi-alert-box" color ="amber-9"
46+ href ="https://github.com/Libertech-FR/sesame-app-manager/releases" target ="_blank"
47+ ) App Manager
48+ q-tooltip.text-body2.bg-amber-9
49+ | MAJ disponible (
50+ span( v-text ="appManagerVersion.lastVersion" )
51+ | )
52+ q-btn.q-px-xs (
53+ v-show ="!orchestratorVersion.updateAvailable"
54+ flat stretch icon ="mdi-alert-box" color ="amber-9"
55+ href ="https://github.com/Libertech-FR/sesame-orchestrator/releases" target ="_blank"
56+ ) Orchestrator
57+ q-tooltip.text-body2.bg-amber-9
58+ | MAJ disponible (
59+ span( v-text ="orchestratorVersion.lastVersion" )
60+ | )
61+ q-space
62+ q-btn.q-px-sm ( flat stretch icon ="mdi-help" href ="https://libertech-fr.github.io/sesame-doc/" target ="_blank" )
3663</template >
3764
3865<script lang="ts" setup>
@@ -47,6 +74,17 @@ const identityStateStore = useIdentityStateStore()
4774
4875const auth = useAuth ()
4976const config = useAppConfig ()
77+
78+ const { data : orchestratorVersionRes } = await useHttp <any >(' /get-update/sesame-orchestrator' )
79+ const { data : appManagerVersionRes } = await useHttp <any >(' /get-update/sesame-app-manager' , {
80+ query: {
81+ current: config .appManagerVersion || ' 0.0.0' ,
82+ },
83+ })
84+
85+ const orchestratorVersion = orchestratorVersionRes .value ?.data
86+ const appManagerVersion = appManagerVersionRes .value ?.data
87+
5088const esUrl = new URL (config .baseUrl + " /core/backends/sse" )
5189esUrl .searchParams .append (" key" , ' ' + auth .user ?.sseToken )
5290var es = new ReconnectingEventSource (esUrl )
@@ -133,7 +171,7 @@ function logout() {
133171
134172<style >
135173.q-page-container {
136- height : 100vh !important ;
174+ /* height: 100vh !important; */
137175 width : 100% !important ;
138176}
139177 </style >
0 commit comments