From 3b746fef13f88eec07f4d94973d5683230c99f56 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Fri, 20 May 2022 11:55:20 +0200 Subject: [PATCH] uiuiui --- zero.Api/ApiApplicationResolverHandler.cs | 19 +++++++++++-------- zero.Backoffice.UI/app/axios.config.ts | 2 +- .../app/components/ui-thumbnail.vue | 11 +++++++++-- .../app/modules/applications/store.ts | 2 ++ zero.Backoffice.UI/app/modules/pages/page.vue | 2 +- .../pages/partials/overview-actions.vue | 2 +- .../app/schemas/list/list-column.ts | 2 +- zero.Backoffice.UI/app/services/request.ts | 2 +- zero.Core/Models/Results/UrlsResult.cs | 10 ++++++++-- 9 files changed, 35 insertions(+), 17 deletions(-) diff --git a/zero.Api/ApiApplicationResolverHandler.cs b/zero.Api/ApiApplicationResolverHandler.cs index 9af07680..232c3ee2 100644 --- a/zero.Api/ApiApplicationResolverHandler.cs +++ b/zero.Api/ApiApplicationResolverHandler.cs @@ -22,15 +22,18 @@ public class ApiApplicationResolverHandler : IBackofficeApplicationResolverHandl return false; } - string appKey = context.Request.Path.Value.Substring(path.Length).TrimStart('/').Split('/').ElementAtOrDefault(1); + resolved = applications.FirstOrDefault(); + return resolved != null; - if (appKey.HasValue()) - { - resolved = applications.FirstOrDefault(x => x.Alias == appKey); - return resolved != null; - } + //string appKey = context.Request.Path.Value.Substring(path.Length).TrimStart('/').Split('/').ElementAtOrDefault(1); - resolved = null; - return false; + //if (appKey.HasValue()) + //{ + // resolved = applications.FirstOrDefault(x => x.Alias == appKey); + // return resolved != null; + //} + + //resolved = null; + //return false; } } \ No newline at end of file diff --git a/zero.Backoffice.UI/app/axios.config.ts b/zero.Backoffice.UI/app/axios.config.ts index 11442fb8..dd6cfc86 100644 --- a/zero.Backoffice.UI/app/axios.config.ts +++ b/zero.Backoffice.UI/app/axios.config.ts @@ -68,7 +68,7 @@ Axios.interceptors.request.use(config => } let locationQuery = Qs.parse(location.search.substring(1)); - let appKey = 'hofbauer'; + let appKey = 'system'; // set app key to system when required if (config.params['zero.system'] === true || locationQuery['zero.shared'] === "true") diff --git a/zero.Backoffice.UI/app/components/ui-thumbnail.vue b/zero.Backoffice.UI/app/components/ui-thumbnail.vue index a6ba9ba0..495c18dd 100644 --- a/zero.Backoffice.UI/app/components/ui-thumbnail.vue +++ b/zero.Backoffice.UI/app/components/ui-thumbnail.vue @@ -7,6 +7,7 @@