Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.0.7 #142

Merged
merged 2 commits into from
Nov 11, 2024
Merged

0.0.7 #142

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions downstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ const downstreamName = 'Connectivity Link';

const upstreamDocumentation = 'https://docs.kuadrant.io';
const upstreamReleaseNotes = 'https://github.com/Kuadrant/kuadrant-operator/releases';
const upstreamQuickStarts =
'https://docs.kuadrant.io/latest/kuadrant-operator/doc/user-guides/secure-protect-connect/';
const upstreamHighlights = 'https://kuadrant.io/blog/';

const downstreamDocumentation =
'https://docs.redhat.com/en/documentation/red_hat_connectivity_link/1.0';
const downstreamReleaseNotes =
'https://docs.kuadrant.io/html-single/release_notes_for_connectivity_link_1.0/index';
const downstreamQuickStarts =
'https://docs.redhat.com/latest/red-hat-connectivity-link/doc/user-guides/secure-protect-connect/'; // Example
const downstreamHighlights = 'https://connectivity-link.io/blog/'; // Example
'https://docs.redhat.com/html-single/release_notes_for_connectivity_link_1.0/index';

const isUpstream = process.argv.includes('--upstream');

Expand All @@ -32,10 +26,6 @@ const docsLinkToReplace = isUpstream ? downstreamDocumentation : upstreamDocumen
const docsLinkToInsert = isUpstream ? upstreamDocumentation : downstreamDocumentation;
const releaseNotesToReplace = isUpstream ? downstreamReleaseNotes : upstreamReleaseNotes;
const releaseNotesToInsert = isUpstream ? upstreamReleaseNotes : downstreamReleaseNotes;
const quickStartsToReplace = isUpstream ? downstreamQuickStarts : upstreamQuickStarts;
const quickStartsToInsert = isUpstream ? upstreamQuickStarts : downstreamQuickStarts;
const highlightsToReplace = isUpstream ? downstreamHighlights : upstreamHighlights;
const highlightsToInsert = isUpstream ? upstreamHighlights : downstreamHighlights;

function updateJsonValues(filePath, searchValue, replaceValue) {
try {
Expand Down Expand Up @@ -90,8 +80,6 @@ console.log(`Updating constants.links.ts to ${isUpstream ? 'upstream' : 'downstr
updateFileContent(constantsPath, [
{ searchValue: docsLinkToReplace, replaceValue: docsLinkToInsert },
{ searchValue: releaseNotesToReplace, replaceValue: releaseNotesToInsert },
{ searchValue: quickStartsToReplace, replaceValue: quickStartsToInsert },
{ searchValue: highlightsToReplace, replaceValue: highlightsToInsert },
]);

console.log('Update complete!');
3 changes: 0 additions & 3 deletions locales/en/plugin__kuadrant-console-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"Getting started resources": "Getting started resources",
"Health Check": "Health Check",
"Hide for session": "Hide for session",
"highlights": "highlights",
"HTTPRoute API Target Reference": "HTTPRoute API Target Reference",
"Issuer": "Issuer",
"Issuer API Target Reference": "Issuer API Target Reference",
Expand Down Expand Up @@ -119,9 +118,7 @@
"Unique name of the DNS Policy": "Unique name of the DNS Policy",
"Unique name of the TLSPolicy.": "Unique name of the TLSPolicy.",
"Unit": "Unit",
"View all quick starts": "View all quick starts",
"View Documentation": "View Documentation",
"Visit the blog": "Visit the blog",
"Weight value to apply to weighted endpoints default: 120": "Weight value to apply to weighted endpoints default: 120",
"YAML View": "YAML View",
"You can view and create HTTPRoutes": "You can view and create HTTPRoutes"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kuadrant-console-plugin",
"version": "0.0.3",
"version": "0.0.7",
"description": "Kuadrant OpenShift Console plugin",
"private": true,
"license": "Apache-2.0",
Expand Down Expand Up @@ -72,7 +72,7 @@
},
"consolePlugin": {
"name": "kuadrant-console-plugin",
"version": "0.0.3",
"version": "0.0.7",
"displayName": "Kuadrant OpenShift Console Plugin",
"description": "Kuadrant OpenShift Console Plugin",
"exposedModules": {
Expand Down
28 changes: 0 additions & 28 deletions src/components/KuadrantOverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,6 @@ const KuadrantOverviewPage: React.FC = () => {
{t('View Documentation')} <ExternalLinkAltIcon />
</Text>
</StackItem>
<StackItem>
<Text
component="a"
href={EXTERNAL_LINKS.quickStarts}
className="kuadrant-dashboard-resource-link"
>
{t('View all quick starts')} <ExternalLinkAltIcon />
</Text>
</StackItem>
</Stack>
</FlexItem>
<Divider orientation={{ default: 'vertical' }} />
Expand All @@ -250,16 +241,6 @@ const KuadrantOverviewPage: React.FC = () => {
)}
</Text>
<Stack hasGutter className="pf-u-mt-md">
<StackItem>
<Text
target="_blank"
component="a"
href="#"
className="kuadrant-dashboard-resource-link"
>
{t('Kuadrant')} {t('highlights')} <ExternalLinkAltIcon />
</Text>
</StackItem>
<StackItem>
<Text
target="_blank"
Expand All @@ -270,15 +251,6 @@ const KuadrantOverviewPage: React.FC = () => {
{t('Kuadrant')} {t('Release Notes')} <ExternalLinkAltIcon />
</Text>
</StackItem>
<StackItem>
<Text
component="a"
href={EXTERNAL_LINKS.blog}
className="kuadrant-dashboard-resource-link"
>
{t('Visit the blog')} <ExternalLinkAltIcon />
</Text>
</StackItem>
</Stack>
</FlexItem>
<Divider orientation={{ default: 'vertical' }} />
Expand Down
Loading