Skip to content

Commit

Permalink
Merge pull request #157 from Kuadrant/154-blank-target
Browse files Browse the repository at this point in the history
add blank target, remove some broken links
  • Loading branch information
openshift-merge-bot[bot] authored Nov 14, 2024
2 parents 1816d20 + 9aa3a97 commit e4c86e5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
3 changes: 0 additions & 3 deletions locales/en/plugin__kuadrant-console-plugin.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"Add a new Gateway": "Add a new Gateway",
"Add Limit": "Add Limit",
"All Policies": "All Policies",
"All references for the resource have been resolved.": "All references for the resource have been resolved.",
"API Designer": "API Designer",
"APIs / HTTPRoutes": "APIs / HTTPRoutes",
"Auth": "Auth",
"AuthPolicy": "AuthPolicy",
Expand All @@ -21,7 +19,6 @@
"Create DNS Policy": "Create DNS Policy",
"Create Gateway": "Create Gateway",
"Create HTTPRoute": "Create HTTPRoute",
"Create Policies in": "Create Policies in",
"Create Policy": "Create Policy",
"Create RateLimit Policy": "Create RateLimit Policy",
"Create TLS Policy": "Create TLS Policy",
Expand Down
30 changes: 2 additions & 28 deletions src/components/KuadrantOverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
GlobeIcon,
ReplicatorIcon,
OptimizeIcon,
ArrowRightIcon,
ExternalLinkAltIcon,
EllipsisVIcon,
} from '@patternfly/react-icons';
Expand Down Expand Up @@ -202,29 +201,12 @@ const KuadrantOverviewPage: React.FC = () => {
)}
</Text>
<Stack hasGutter className="pf-u-mt-sm">
<StackItem>
<Text
component="a"
href={INTERNAL_LINKS.createPolicies}
className="kuadrant-dashboard-resource-link"
>
{t('Create Policies in')} {t('Kuadrant')} <ArrowRightIcon />
</Text>
</StackItem>
<StackItem>
<Text
component="a"
href={INTERNAL_LINKS.addNewGateway(activeNamespace)}
className="kuadrant-dashboard-resource-link"
>
{t('Add a new Gateway')} <ArrowRightIcon />
</Text>
</StackItem>
<StackItem>
<Text
component="a"
href={EXTERNAL_LINKS.documentation}
className="kuadrant-dashboard-resource-link"
target="_blank"
>
{t('View Documentation')} <ExternalLinkAltIcon />
</Text>
Expand Down Expand Up @@ -265,20 +247,12 @@ const KuadrantOverviewPage: React.FC = () => {
)}
</Text>
<Stack hasGutter className="pf-u-mt-md">
<StackItem>
<Text
component="a"
href={INTERNAL_LINKS.apiDesigner}
className="kuadrant-dashboard-resource-link"
>
{t('API Designer')} <ExternalLinkAltIcon />
</Text>
</StackItem>
<StackItem>
<Text
component="a"
href={INTERNAL_LINKS.observabilitySetup}
className="kuadrant-dashboard-resource-link"
target="_blank"
>
Observability for {t('Kuadrant')} <ExternalLinkAltIcon />
</Text>
Expand Down
1 change: 0 additions & 1 deletion src/constants/links.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Internal Links
export const INTERNAL_LINKS = {
createPolicies: '/kuadrant/all-namespaces/policies',
apiDesigner: 'https://www.apicur.io/studio/',
addNewGateway: (namespace: string) =>
`/k8s/ns/${
namespace === '#ALL_NS#' ? 'default' : namespace
Expand Down

0 comments on commit e4c86e5

Please sign in to comment.