mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-20 17:46:37 +00:00
Compare commits
3 Commits
private-si
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56e25d01ae | ||
|
|
991fed93ee | ||
|
|
26ab63d0e4 |
@@ -175,7 +175,7 @@
|
|||||||
"resourceHTTPDescription": "Proxy requests over HTTPS using a fully qualified domain name.",
|
"resourceHTTPDescription": "Proxy requests over HTTPS using a fully qualified domain name.",
|
||||||
"resourceRaw": "Raw TCP/UDP Resource",
|
"resourceRaw": "Raw TCP/UDP Resource",
|
||||||
"resourceRawDescription": "Proxy requests over raw TCP/UDP using a port number.",
|
"resourceRawDescription": "Proxy requests over raw TCP/UDP using a port number.",
|
||||||
"resourceRawDescriptionCloud": "Proxy requests over raw TCP/UDP using a port number. REQUIRES THE USE OF A REMOTE NODE.",
|
"resourceRawDescriptionCloud": "Proxy requests over raw TCP/UDP using a port number. Requires sites to connect to a remote node.",
|
||||||
"resourceCreate": "Create Resource",
|
"resourceCreate": "Create Resource",
|
||||||
"resourceCreateDescription": "Follow the steps below to create a new resource",
|
"resourceCreateDescription": "Follow the steps below to create a new resource",
|
||||||
"resourceSeeAll": "See All Resources",
|
"resourceSeeAll": "See All Resources",
|
||||||
@@ -1427,6 +1427,7 @@
|
|||||||
"domainPickerNamespace": "Namespace: {namespace}",
|
"domainPickerNamespace": "Namespace: {namespace}",
|
||||||
"domainPickerShowMore": "Show More",
|
"domainPickerShowMore": "Show More",
|
||||||
"regionSelectorTitle": "Select Region",
|
"regionSelectorTitle": "Select Region",
|
||||||
|
"domainPickerRemoteExitNodeWarning": "Provided domains are not supported when sites connect to remote exit nodes. For resources to be available on remote nodes, use a custom domain instead.",
|
||||||
"regionSelectorInfo": "Selecting a region helps us provide better performance for your location. You do not have to be in the same region as your server.",
|
"regionSelectorInfo": "Selecting a region helps us provide better performance for your location. You do not have to be in the same region as your server.",
|
||||||
"regionSelectorPlaceholder": "Choose a region",
|
"regionSelectorPlaceholder": "Choose a region",
|
||||||
"regionSelectorComingSoon": "Coming Soon",
|
"regionSelectorComingSoon": "Coming Soon",
|
||||||
|
|||||||
@@ -1109,6 +1109,9 @@ export default function Page() {
|
|||||||
<SettingsSectionBody>
|
<SettingsSectionBody>
|
||||||
<DomainPicker
|
<DomainPicker
|
||||||
orgId={orgId as string}
|
orgId={orgId as string}
|
||||||
|
warnOnProvidedDomain={
|
||||||
|
remoteExitNodes.length >= 1
|
||||||
|
}
|
||||||
onDomainChange={(res) => {
|
onDomainChange={(res) => {
|
||||||
if (!res) return;
|
if (!res) return;
|
||||||
|
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ interface DomainPickerProps {
|
|||||||
defaultFullDomain?: string | null;
|
defaultFullDomain?: string | null;
|
||||||
defaultSubdomain?: string | null;
|
defaultSubdomain?: string | null;
|
||||||
defaultDomainId?: string | null;
|
defaultDomainId?: string | null;
|
||||||
|
warnOnProvidedDomain?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function DomainPicker({
|
export default function DomainPicker({
|
||||||
@@ -88,7 +89,8 @@ export default function DomainPicker({
|
|||||||
hideFreeDomain = false,
|
hideFreeDomain = false,
|
||||||
defaultSubdomain,
|
defaultSubdomain,
|
||||||
defaultFullDomain,
|
defaultFullDomain,
|
||||||
defaultDomainId
|
defaultDomainId,
|
||||||
|
warnOnProvidedDomain = false
|
||||||
}: DomainPickerProps) {
|
}: DomainPickerProps) {
|
||||||
const { env } = useEnvContext();
|
const { env } = useEnvContext();
|
||||||
const api = createApiClient({ env });
|
const api = createApiClient({ env });
|
||||||
@@ -689,6 +691,14 @@ export default function DomainPicker({
|
|||||||
|
|
||||||
{showProvidedDomainSearch && (
|
{showProvidedDomainSearch && (
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
|
{warnOnProvidedDomain && (
|
||||||
|
<Alert variant="warning">
|
||||||
|
<AlertCircle className="h-4 w-4" />
|
||||||
|
<AlertDescription>
|
||||||
|
{t("domainPickerRemoteExitNodeWarning")}
|
||||||
|
</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
)}
|
||||||
{isChecking && (
|
{isChecking && (
|
||||||
<div className="flex items-center justify-center p-8">
|
<div className="flex items-center justify-center p-8">
|
||||||
<div className="flex items-center space-x-2 text-sm text-muted-foreground">
|
<div className="flex items-center space-x-2 text-sm text-muted-foreground">
|
||||||
|
|||||||
Reference in New Issue
Block a user