mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-15 08:49:59 +02:00
Show the cert status on the frontend
This commit is contained in:
@@ -399,7 +399,7 @@ function AuthPageSettings({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{build !== "oss" && (build === "enterprise" ||
|
{(build === "enterprise" ||
|
||||||
!isPaidUser(
|
!isPaidUser(
|
||||||
tierMatrix.loginPageDomain
|
tierMatrix.loginPageDomain
|
||||||
)) &&
|
)) &&
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
type LauncherAccessFields
|
type LauncherAccessFields
|
||||||
} from "@app/lib/launcherResourceAccess";
|
} from "@app/lib/launcherResourceAccess";
|
||||||
import type { PrivateResourceMode } from "@app/lib/privateResourceForm";
|
import type { PrivateResourceMode } from "@app/lib/privateResourceForm";
|
||||||
import { build } from "@server/build";
|
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
|
||||||
type SiteResourceInfoInput = {
|
type SiteResourceInfoInput = {
|
||||||
@@ -121,8 +120,7 @@ export function PrivateResourceInfoSections({
|
|||||||
(siteResource.mode === "http" || siteResource.mode === "inference") &&
|
(siteResource.mode === "http" || siteResource.mode === "inference") &&
|
||||||
siteResource.ssl &&
|
siteResource.ssl &&
|
||||||
siteResource.domainId &&
|
siteResource.domainId &&
|
||||||
siteResource.fullDomain &&
|
siteResource.fullDomain
|
||||||
build != "oss"
|
|
||||||
);
|
);
|
||||||
const showPortRestrictions =
|
const showPortRestrictions =
|
||||||
isPanel &&
|
isPanel &&
|
||||||
|
|||||||
@@ -429,7 +429,6 @@ export default function PrivateResourcesTable({
|
|||||||
const fullDomain = resourceRow.fullDomain;
|
const fullDomain = resourceRow.fullDomain;
|
||||||
const url = `${resourceRow.ssl ? "https" : "http"}://${fullDomain}`;
|
const url = `${resourceRow.ssl ? "https" : "http"}://${fullDomain}`;
|
||||||
const did =
|
const did =
|
||||||
build !== "oss" &&
|
|
||||||
resourceRow.ssl &&
|
resourceRow.ssl &&
|
||||||
domainId != null &&
|
domainId != null &&
|
||||||
domainId !== "" &&
|
domainId !== "" &&
|
||||||
|
|||||||
@@ -468,7 +468,6 @@ export default function PublicResourcesTable({
|
|||||||
const domainId = resourceRow.domainId;
|
const domainId = resourceRow.domainId;
|
||||||
const certHostname = resourceRow.fullDomain;
|
const certHostname = resourceRow.fullDomain;
|
||||||
const showHttpsCertIndicator =
|
const showHttpsCertIndicator =
|
||||||
build !== "oss" &&
|
|
||||||
resourceRow.ssl &&
|
resourceRow.ssl &&
|
||||||
certHostname != null &&
|
certHostname != null &&
|
||||||
certHostname !== "";
|
certHostname !== "";
|
||||||
|
|||||||
@@ -40,8 +40,7 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) {
|
|||||||
const showCertificate = !!(
|
const showCertificate = !!(
|
||||||
isDomainResource &&
|
isDomainResource &&
|
||||||
resource.domainId &&
|
resource.domainId &&
|
||||||
resource.fullDomain &&
|
resource.fullDomain
|
||||||
build != "oss"
|
|
||||||
);
|
);
|
||||||
const showType = !!(isDomainResource && resource.mode);
|
const showType = !!(isDomainResource && resource.mode);
|
||||||
const showAuth = resource.mode !== "inference";
|
const showAuth = resource.mode !== "inference";
|
||||||
|
|||||||
Reference in New Issue
Block a user