From 28bf77af84fef634ad749d5018bb0415ef112d18 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 7 Nov 2016 19:12:26 +0100 Subject: [PATCH] Home styling and small bugfixes --- .../Identity/LazyClientStore.cs | 2 +- .../Identity/MyIdentityOptions.cs | 8 ++++--- src/Squidex/app/app.component.ts | 2 +- .../internal/apps/apps-page.component.html | 2 +- .../layout/apps-menu.component.html | 4 ++-- .../layout/apps-menu.component.scss | 1 + .../layout/profile-menu.component.html | 2 +- .../layout/profile-menu.component.scss | 1 + .../layout/profile-menu.component.ts | 15 ++++++++---- .../public/home-page.component.html | 13 +++++++++- .../public/home-page.component.scss | 24 +++++++++++++++++++ .../components/public/home-page.component.ts | 3 ++- .../framework/angular/modal-view.directive.ts | 4 ++++ .../app/shared/services/auth.service.ts | 4 ++-- src/Squidex/app/theme/_mixins.scss | 9 +++++++ src/Squidex/app/vendor.ts | 8 ++++--- 16 files changed, 82 insertions(+), 20 deletions(-) create mode 100644 src/Squidex/app/components/public/home-page.component.scss diff --git a/src/Squidex/Configurations/Identity/LazyClientStore.cs b/src/Squidex/Configurations/Identity/LazyClientStore.cs index 8f0f8a740..bf63b5843 100644 --- a/src/Squidex/Configurations/Identity/LazyClientStore.cs +++ b/src/Squidex/Configurations/Identity/LazyClientStore.cs @@ -53,7 +53,7 @@ namespace Squidex.Configurations.Identity }, PostLogoutRedirectUris = new List { - options.BuildUrl("logout") + options.BuildUrl("logout", false) }, AllowAccessTokensViaBrowser = true, AllowedGrantTypes = GrantTypes.Implicit, diff --git a/src/Squidex/Configurations/Identity/MyIdentityOptions.cs b/src/Squidex/Configurations/Identity/MyIdentityOptions.cs index 388545327..b208ba835 100644 --- a/src/Squidex/Configurations/Identity/MyIdentityOptions.cs +++ b/src/Squidex/Configurations/Identity/MyIdentityOptions.cs @@ -24,12 +24,14 @@ namespace Squidex.Configurations.Identity public bool RequiresHttps { get; set; } - public string BuildUrl(string path) + public string BuildUrl(string path, bool trailingSlash = true) { var url = $"{BaseUrl.TrimEnd('/')}/{path.Trim('/')}"; - if (url.IndexOf("?", StringComparison.OrdinalIgnoreCase) < 0 && - url.IndexOf(";", StringComparison.OrdinalIgnoreCase) < 0) { + if (trailingSlash && + url.IndexOf("?", StringComparison.OrdinalIgnoreCase) < 0 && + url.IndexOf(";", StringComparison.OrdinalIgnoreCase) < 0) + { url = url + "/"; } diff --git a/src/Squidex/app/app.component.ts b/src/Squidex/app/app.component.ts index 41e92bfa4..981364036 100644 --- a/src/Squidex/app/app.component.ts +++ b/src/Squidex/app/app.component.ts @@ -11,6 +11,6 @@ import * as Ng2 from '@angular/core'; selector: 'sqx-app', template }) -export class AppComponent { +export class AppComponent { public isLoaded = false; } \ No newline at end of file diff --git a/src/Squidex/app/components/internal/apps/apps-page.component.html b/src/Squidex/app/components/internal/apps/apps-page.component.html index 60cd45af8..7838bbda2 100644 --- a/src/Squidex/app/components/internal/apps/apps-page.component.html +++ b/src/Squidex/app/components/internal/apps/apps-page.component.html @@ -6,7 +6,7 @@ -