diff --git a/web/src/pages/providers/ldap/LDAPProviderViewPage.ts b/web/src/pages/providers/ldap/LDAPProviderViewPage.ts index 265185d27..444b89ed5 100644 --- a/web/src/pages/providers/ldap/LDAPProviderViewPage.ts +++ b/web/src/pages/providers/ldap/LDAPProviderViewPage.ts @@ -76,8 +76,7 @@ export class LDAPProviderViewPage extends LitElement { if (!this.provider) { return html``; } - return html` - ${this.provider?.assignedApplicationName + return html` ${this.provider?.assignedApplicationName ? html`` : html`
${t`Warning: Provider is not used by an Application.`} @@ -87,90 +86,91 @@ export class LDAPProviderViewPage extends LitElement { ${t`Warning: Provider is not used by any Outpost.`}
` : html``} -
-
-
-
-
-
-
-
- ${t`Name`} -
-
-
- ${this.provider.name} -
-
-
-
-
- ${t`Assigned to application`} -
-
-
- -
-
-
-
-
- ${t`Base DN`} -
-
-
- ${this.provider.baseDn} -
-
-
-
-
- -
-
-
-
- - +
+
+
+
+ + +
- -
-
`; + + `; } } diff --git a/web/src/pages/providers/oauth2/OAuth2ProviderViewPage.ts b/web/src/pages/providers/oauth2/OAuth2ProviderViewPage.ts index 734e98c48..c331616d6 100644 --- a/web/src/pages/providers/oauth2/OAuth2ProviderViewPage.ts +++ b/web/src/pages/providers/oauth2/OAuth2ProviderViewPage.ts @@ -85,233 +85,234 @@ export class OAuth2ProviderViewPage extends LitElement { if (!this.provider) { return html``; } - return html` - ${this.provider?.assignedApplicationName + return html` ${this.provider?.assignedApplicationName ? html`` : html`
${t`Warning: Provider is not used by an Application.`} -
`} -
-
-
-
-
-
-
-
- ${t`Name`} -
-
-
- ${this.provider.name} -
-
-
-
-
- ${t`Assigned to application`} -
-
-
- -
-
-
-
-
- ${t`Client type`} -
-
-
- ${convertToTitle(this.provider.clientType || "")} -
-
-
-
-
- ${t`Client ID`} -
-
-
- ${this.provider.clientId} -
-
-
-
-
- ${t`Redirect URIs`} -
-
-
- ${this.provider.redirectUris} -
-
-
-
-
- `} +
+
+
+
+
+
+
+
+ ${t`Name`} +
+
+
+ ${this.provider.name} +
+
+
+
+
+ ${t`Assigned to application`} +
+
+
+ +
+
+
+
+
+ ${t`Client type`} +
+
+
+ ${convertToTitle( + this.provider.clientType || "", + )} +
+
+
+
+
+ ${t`Client ID`} +
+
+
+ ${this.provider.clientId} +
+
+
+
+
+ ${t`Redirect URIs`} +
+
+
+ ${this.provider.redirectUris} +
+
+
+
+
+
-
-
-
-
-
- - +
+
+
+
+ + +
- -
-
-
-
-
-
-
-
-
-
-
-
`; + + `; } } diff --git a/web/src/pages/providers/proxy/ProxyProviderViewPage.ts b/web/src/pages/providers/proxy/ProxyProviderViewPage.ts index a6f0fcd0d..95d84c333 100644 --- a/web/src/pages/providers/proxy/ProxyProviderViewPage.ts +++ b/web/src/pages/providers/proxy/ProxyProviderViewPage.ts @@ -73,8 +73,7 @@ export class ProxyProviderViewPage extends LitElement { if (!this.provider) { return html``; } - return html` - ${this.provider?.assignedApplicationName + return html` ${this.provider?.assignedApplicationName ? html`` : html`
${t`Warning: Provider is not used by an Application.`} @@ -84,165 +83,166 @@ export class ProxyProviderViewPage extends LitElement { ${t`Warning: Provider is not used by any Outpost.`}
` : html``} -
-
-
-
-
-
-
-
- ${t`Name`} -
-
-
- ${this.provider.name} -
-
-
-
-
- ${t`Assigned to application`} -
-
-
- -
-
-
-
-
- ${t`Internal Host`} -
-
-
- ${this.provider.internalHost} -
-
-
-
-
- ${t`External Host`} -
-
-
- ${this.provider.externalHost} -
-
-
-
-
- ${t`Basic-Auth`} -
-
-
- ${this.provider.basicAuthEnabled - ? html` -   ${t`Yes`}` - : html` -   ${t`No`}`} -
-
-
-
-
- ${t`Mode`} -
-
-
- ${convertToTitle(this.provider.mode || "")} -
-
-
-
+ +
+
+
+
+
+
+
+
+ ${t`Name`} +
+
+
+ ${this.provider.name} +
+
+
+
+
+ ${t`Assigned to application`} +
+
+
+ +
+
+
+
+
+ ${t`Internal Host`} +
+
+
+ ${this.provider.internalHost} +
+
+
+
+
+ ${t`External Host`} +
+
+
+ ${this.provider.externalHost} +
+
+
+
+
+ ${t`Basic-Auth`} +
+
+
+ ${this.provider.basicAuthEnabled + ? html` +   ${t`Yes`}` + : html` +   ${t`No`}`} +
+
+
+
+
+ ${t`Mode`} +
+
+
+ ${convertToTitle(this.provider.mode || "")} +
+
+
+
+
+
- +
+
+
${t`Protocol Settings`}
+
+
+
+
+ ${t`Allowed Redirect URIs`} +
+
+
+ ${this.provider.redirectUris} +
+
+
+
+
-
-
-
${t`Protocol Settings`}
-
-
-
-
- ${t`Allowed Redirect URIs`} -
-
-
- ${this.provider.redirectUris} -
-
-
-
-
+
+
+
+
+ +
-
-
-
-
-
- - -
-
-
-
`; + + `; } } diff --git a/web/src/pages/providers/saml/SAMLProviderViewPage.ts b/web/src/pages/providers/saml/SAMLProviderViewPage.ts index 7a7c3a535..41ad022dc 100644 --- a/web/src/pages/providers/saml/SAMLProviderViewPage.ts +++ b/web/src/pages/providers/saml/SAMLProviderViewPage.ts @@ -79,168 +79,167 @@ export class SAMLProviderViewPage extends LitElement { if (!this.provider) { return html``; } - return html` - ${this.provider?.assignedApplicationName + return html` ${this.provider?.assignedApplicationName ? html`` : html`
${t`Warning: Provider is not used by an Application.`} -
`} -
-
-
-
-
-
-
-
- ${t`Name`} -
-
-
- ${this.provider.name} -
-
-
-
-
- ${t`Assigned to application`} -
-
-
- -
-
-
-
-
- ${t`ACS URL`} -
-
-
- ${this.provider.acsUrl} -
-
-
-
-
- ${t`Audience`} -
-
-
- ${this.provider.audience || "-"} -
-
-
-
-
- ${t`Issuer`} -
-
-
- ${this.provider.issuer} -
-
-
-
-
- `} +
+
+
+
+
+
+
+
+ ${t`Name`} +
+
+
+ ${this.provider.name} +
+
+
+
+
+ ${t`Assigned to application`} +
+
+
+ +
+
+
+
+
+ ${t`ACS URL`} +
+
+
+ ${this.provider.acsUrl} +
+
+
+
+
+ ${t`Audience`} +
+
+
+ ${this.provider.audience || "-"} +
+
+
+
+
+ ${t`Issuer`} +
+
+
+ ${this.provider.issuer} +
+
+
+
+
+
-
-
-
-
-
- - +
+
+
+
+ + +
- -
- ${this.provider.assignedApplicationName - ? html`
-
-
-
-
- ${until( - new ProvidersApi(DEFAULT_CONFIG) - .providersSamlMetadataRetrieve({ - id: this.provider.pk || 0, - }) - .then((m) => { - return html``; - }), - )} -
-
+ ${this.provider.assignedApplicationName + ? html`
+
+
+
+
+ ${until( + new ProvidersApi(DEFAULT_CONFIG) + .providersSamlMetadataRetrieve({ + id: this.provider.pk || 0, + }) + .then((m) => { + return html``; + }), + )} +
+
- -
` - : html``} -
`; + ` + : html``} + `; } }