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

update links to point to cloud.layer5.io #808

Merged
merged 3 commits into from
Nov 13, 2024
Merged
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
1 change: 1 addition & 0 deletions src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export const KEPPEL_GREEN_FILL = '#00B39F';
export const CARIBBEAN_GREEN_FILL = '#00D3A9';
export const DEFAULT_STROKE = '#000';
export const DEFAULT_STROKE_WIDTH = '2';
export const CLOUD_URL = 'https://cloud.layer5.io';
3 changes: 2 additions & 1 deletion src/custom/CatalogDetail/ChallengesSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useState } from 'react';
import { Link, ListItemIcon } from '../../base';
import { CLOUD_URL } from '../../constants/constants';
import { ChallengesIcon } from '../../icons';
import { useTheme } from '../../theme';
import CollapsibleSection from './CollapsibleSection';
Expand Down Expand Up @@ -29,7 +30,7 @@ const ChallengesSection: React.FC<ChallengesSectionProps> = ({ filteredAcademyDa

const renderChallengeItem = (item: string, index: number) => (
<Link
href={`https://meshery.layer5.io/academy/challenges/${slugify('' + item)}`}
href={`${CLOUD_URL}/academy/challenges/${slugify('' + item)}`}
target="_blank"
rel="noopener noreferrer"
style={{ textDecoration: 'none', color: 'inherit' }}
Expand Down
3 changes: 2 additions & 1 deletion src/custom/CatalogDetail/LearningSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from 'react';
import { Link, ListItemIcon } from '../../base';
import { CLOUD_URL } from '../../constants/constants';
import { LearningIcon } from '../../icons';
import { useTheme } from '../../theme';
import CollapsibleSection from './CollapsibleSection';
Expand Down Expand Up @@ -29,7 +30,7 @@ const LearningSection: React.FC<LearningSectionProps> = ({ filteredAcademyData }

const renderLearningItem = (item: string, index: number) => (
<Link
href={`https://meshery.layer5.io/academy/learning-paths/${slugify('' + item)}`}
href={`${CLOUD_URL}/academy/learning-paths/${slugify('' + item)}`}
target="_blank"
rel="noopener noreferrer"
style={{ textDecoration: 'none', color: 'inherit' }}
Expand Down
3 changes: 2 additions & 1 deletion src/custom/CatalogDetail/UserInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Avatar } from '../../base';
import { CLOUD_URL } from '../../constants/constants';
import { Pattern } from '../CustomCatalog/CustomCard';
import { getVersion } from '../CustomCatalog/Helper';
import { formatDate } from './helper';
Expand Down Expand Up @@ -32,7 +33,7 @@ const UserInfo: React.FC<UserInfoProps> = ({ details, showVersion = true, userPr
}}
/>
<RedirectLink
href={`https://meshery.layer5.io/user/${details?.user_id}`}
href={`${CLOUD_URL}/user/${details?.user_id}`}
target="_blank"
rel="noopener noreferrer"
>
Expand Down
Loading