From d2bc7970908d04560dc07e647216dfdc85696007 Mon Sep 17 00:00:00 2001 From: Alexander Trost Date: Sun, 13 Oct 2024 17:13:25 +0200 Subject: [PATCH] feat: start work on implementing centrum timings logic Signed-off-by: Alexander Trost --- app/store/centrum.ts | 1 + gen/go/proto/services/centrum/state/settings.go | 4 +++- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/store/centrum.ts b/app/store/centrum.ts index 33b835fea..b8d6c9e99 100644 --- a/app/store/centrum.ts +++ b/app/store/centrum.ts @@ -95,6 +95,7 @@ export const useCentrumStore = defineStore('centrum', { this.settings.job = settings.job; this.settings.mode = settings.mode; this.settings.fallbackMode = settings.fallbackMode; + this.settings.timings = settings.timings; } else { this.settings = settings; } diff --git a/gen/go/proto/services/centrum/state/settings.go b/gen/go/proto/services/centrum/state/settings.go index 096a68118..cfd64f2e6 100644 --- a/gen/go/proto/services/centrum/state/settings.go +++ b/gen/go/proto/services/centrum/state/settings.go @@ -16,7 +16,9 @@ func (s *State) GetSettings(ctx context.Context, job string) *centrum.Settings { FallbackMode: centrum.CentrumMode_CENTRUM_MODE_MANUAL, PredefinedStatus: ¢rum.PredefinedStatus{}, Timings: ¢rum.Timings{ - DispatchMaxWait: 900, + DispatchMaxWait: 900, + RequireUnit: false, + RequireUnitReminderSeconds: 180, }, } }) diff --git a/package.json b/package.json index 926998a7b..9fa652274 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "google-protobuf": "3.21.4", "grpc-web": "1.5.0", "howler": "2.2.4", - "jodit": "4.2.27", + "jodit": "4.2.32", "jodit-vue": "3.1.0", "leaflet": "1.9.4", "leaflet-contextmenu": "1.4.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d16a3385e..abd7ff385 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,8 +72,8 @@ importers: specifier: 2.2.4 version: 2.2.4 jodit: - specifier: 4.2.27 - version: 4.2.27 + specifier: 4.2.32 + version: 4.2.32 jodit-vue: specifier: 3.1.0 version: 3.1.0 @@ -4149,8 +4149,8 @@ packages: jodit@3.24.9: resolution: {integrity: sha512-t2d73v7GFbGI08ZzdCTwrzi8ZtoOG4icGzD6IIN2e+ghlpUKYxcHZ/Rmy6/mc6055172z+tv7QSr9BcOz6IOFQ==} - jodit@4.2.27: - resolution: {integrity: sha512-cqqeunB3HMElnocVhs5Qq2bhgpMIT2vKQPBpKcOTWKvX6GJ0GYAIneMEf43lphJuo+119CvBE8YgljD5iTfsAQ==} + jodit@4.2.32: + resolution: {integrity: sha512-tBz6hoPDKEOKPRZn9iqIFr7pEz2HRoXShvVKILp8o9LCCl7WeSCdHusqTyrSfNcpNBY5tDdRiJRywgeV6eu8cQ==} js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -11015,7 +11015,7 @@ snapshots: autobind-decorator: 2.4.0 core-js: 3.38.1 - jodit@4.2.27: + jodit@4.2.32: dependencies: autobind-decorator: 2.4.0