Move proxy and client to public and private

This commit is contained in:
Owen
2026-05-31 17:30:31 -07:00
parent b99e9a6468
commit 08a2923cfc
25 changed files with 53 additions and 81 deletions

View File

@@ -406,7 +406,7 @@ export default function HealthChecksTable({
}
return (
<Link
href={`/${orgId}/settings/resources/proxy/${r.resourceNiceId}`}
href={`/${orgId}/settings/resources/public/${r.resourceNiceId}`}
>
<Button variant="outline" size="sm">
{r.resourceName}
@@ -627,7 +627,7 @@ export default function HealthChecksTable({
</DropdownMenu>
{r.resourceId && r.resourceName && r.resourceNiceId ? (
<Link
href={`/${orgId}/settings/resources/proxy/${r.resourceNiceId}`}
href={`/${orgId}/settings/resources/public/${r.resourceNiceId}`}
>
<Button variant="outline" disabled={!isPaid}>
{t("edit")}

View File

@@ -609,7 +609,7 @@ export default function ProxyResourcesTable({
<DropdownMenuContent align="end">
<Link
className="block w-full"
href={`/${resourceRow.orgId}/settings/resources/proxy/${resourceRow.nice}`}
href={`/${resourceRow.orgId}/settings/resources/public/${resourceRow.nice}`}
>
<DropdownMenuItem>
{t("viewSettings")}
@@ -628,7 +628,7 @@ export default function ProxyResourcesTable({
</DropdownMenuContent>
</DropdownMenu>
<Link
href={`/${resourceRow.orgId}/settings/resources/proxy/${resourceRow.nice}`}
href={`/${resourceRow.orgId}/settings/resources/public/${resourceRow.nice}`}
>
<Button variant={"outline"}>
{t("edit")}
@@ -744,7 +744,9 @@ export default function ProxyResourcesTable({
onPaginationChange={handlePaginationChange}
onAdd={() =>
startNavigation(() =>
router.push(`/${orgId}/settings/resources/proxy/create`)
router.push(
`/${orgId}/settings/resources/public/create`
)
)
}
addButtonText={t("resourceAdd")}

View File

@@ -145,7 +145,7 @@ export default function ShareLinksTable({
const r = row.original;
return (
<Link
href={`/${orgId}/settings/resources/proxy/${r.resourceNiceId}`}
href={`/${orgId}/settings/resources/public/${r.resourceNiceId}`}
>
<Button variant="outline" size="sm">
{r.resourceName}
@@ -328,9 +328,7 @@ export default function ShareLinksTable({
onConfirm={async () =>
deleteSharelink(selectedLink.accessTokenId)
}
string={
selectedLink.title || selectedLink.resourceName
}
string={selectedLink.title || selectedLink.resourceName}
title={t("shareDelete")}
/>
)}

View File

@@ -421,15 +421,15 @@ export default function SiteResourcesOverview({
publicList.length === 0 &&
privateList.length === 0;
const publicViewAllHref = `/${orgId}/settings/resources/proxy?siteId=${siteId}`;
const privateViewAllHref = `/${orgId}/settings/resources/client?siteId=${siteId}`;
const publicViewAllHref = `/${orgId}/settings/resources/public?siteId=${siteId}`;
const privateViewAllHref = `/${orgId}/settings/resources/private?siteId=${siteId}`;
const publicRows = publicList.map((r) => ({
key: r.resourceId,
meta: <PublicResourceMeta resource={r} />,
name: r.name,
access: <PublicAccessMethod resource={r} />,
editHref: `/${orgId}/settings/resources/proxy/${r.niceId}`
editHref: `/${orgId}/settings/resources/public/${r.niceId}`
}));
const privateRows = privateList.map((row) => {
@@ -442,7 +442,7 @@ export default function SiteResourcesOverview({
meta: <PrivateResourceMeta row={row} />,
name: row.name,
access: <PrivateAccessMethod row={row} />,
editHref: `/${orgId}/settings/resources/client?${qs.toString()}`
editHref: `/${orgId}/settings/resources/private?${qs.toString()}`
};
});

View File

@@ -506,7 +506,7 @@ export default function SitesTable({
</Link>
<Link
className="block w-full"
href={`/${siteRow.orgId}/settings/resources/proxy?siteId=${siteRow.id}`}
href={`/${siteRow.orgId}/settings/resources/public?siteId=${siteRow.id}`}
>
<DropdownMenuItem>
{t("sitesTableViewPublicResources")}
@@ -514,7 +514,7 @@ export default function SitesTable({
</Link>
<Link
className="block w-full"
href={`/${siteRow.orgId}/settings/resources/client?siteId=${siteRow.id}`}
href={`/${siteRow.orgId}/settings/resources/private?siteId=${siteRow.id}`}
>
<DropdownMenuItem>
{t(