From 20068cb83a48ce94d1d85d1f5cc4aadb97b64283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Thu, 22 Feb 2024 09:01:33 +0100 Subject: [PATCH] 0.1.6 --- .gitignore | 1 - back/resolvers/core/Event.ts | 4 +- front/App.vue | 7 + front/components/core/EventList.vue | 48 +- .../core/OpenApiEditUndefObject.vue | 2 +- front/components/navigation/MainMenu.vue | 13 +- front/components/navigation/MainMenuLinks.vue | 6 +- front/index.ts | 2 + front/libs/fluxcd/custom.ts | 8 +- .../automation/fluxcd/automationDashboard.vue | 331 ---- front/pages/install/vynil/DistribView.vue | 91 +- front/pages/install/vynil/InstallView.vue | 1549 ++++++++++------- .../pages/install/vynil/installDashboard.vue | 29 +- front/routes/interfaces.ts | 1 + front/stores/navigation.ts | 33 +- front/style/app.sass | 1 + package.json | 5 +- utils/gen.ts | 11 +- utils/generator/config.ts | 72 +- utils/generator/front/grp.pages.list.vue.hbs | 8 +- utils/generator/front/grp.routes.ts.hbs | 7 +- .../front/obj.components.list.vue.hbs | 6 +- .../front/obj.components.meta.vue.hbs | 2 +- .../front/obj.components.view.vue.hbs | 4 +- utils/generator/front/obj.pages.edit.vue.hbs | 4 +- utils/generator/front/obj.pages.view.vue.hbs | 11 +- utils/generator/front/tmpl.customs.k8s.hbs | 2 +- .../generator/front/tmpl.name.fields.vue.hbs | 2 +- .../front/tmpl.status.fields.vue.hbs | 6 +- utils/generator/utils.ts | 9 +- yarn.lock | 5 + 31 files changed, 1204 insertions(+), 1076 deletions(-) delete mode 100644 front/pages/automation/fluxcd/automationDashboard.vue diff --git a/.gitignore b/.gitignore index ac4d150..75e801b 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,6 @@ !/front/libs/*/custom.ts !/front/libs/core/* /front/pages/**/*.vue -!/front/pages/automation/fluxcd/automationDashboard.vue !/front/pages/install/vynil/DistribView.vue !/front/pages/install/vynil/InstallView.vue !/front/pages/install/vynil/InstallEdit.vue diff --git a/back/resolvers/core/Event.ts b/back/resolvers/core/Event.ts index 683e3c1..6a60ff1 100644 --- a/back/resolvers/core/Event.ts +++ b/back/resolvers/core/Event.ts @@ -23,7 +23,7 @@ export const lists = { if (lst==undefined) { try { const res = await k8sApi.listEventForAllNamespaces() - lst = ((res as object)['body']['items'] as Array) + lst = ((res as object)['body']['items'] as Array).sort((a,b) => new Date(a['metadata']['creationTimestamp'])n['metadata']['name']).map(async (ns)=>{ return (await k8sApi.listNamespacedEvent(ns)).body.items - }))).flat().filter((v)=>v!=null) + }))).flat().filter((v)=>v!=null).sort((a,b) => new Date((a['metadata'] as object)['creationTimestamp'])typeof parent != 'object' || parent==null || ( o['involvedObject']!=undefined && o['involvedObject']['name'] == parent['metadata']['name'] && o['involvedObject']['namespace'] == parent['metadata']['namespace'] diff --git a/front/App.vue b/front/App.vue index 112dfa2..47d773a 100644 --- a/front/App.vue +++ b/front/App.vue @@ -1,6 +1,8 @@