Skip to content

Commit fc3daca

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/site/babel/helpers-7.26.10
2 parents 994dc4a + 72d0035 commit fc3daca

File tree

18 files changed

+290
-26
lines changed

18 files changed

+290
-26
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ make build
5050
If you wish to build in watch mode:
5151

5252
```
53-
make watchmode-build
53+
make build-watch
5454
```
5555

5656
To check if your code meets the formatting standards, you can run:

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"@emotion/react": "^11.11.3",
101101
"@emotion/styled": "^11.11.0",
102102
"@layer5/meshery-design-embed": "^0.4.0",
103-
"@layer5/schemas": "^0.0.6-14",
103+
"@layer5/schemas": "^0.0.6-16",
104104
"@mui/material": "^5.15.11",
105105
"@types/mui-datatables": "*",
106106
"billboard.js": "^3.14.3",

src/constants/constants.ts

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export const KEPPEL_GREEN_FILL = '#00B39F';
66
export const CARIBBEAN_GREEN_FILL = '#00D3A9';
77
export const DEFAULT_STROKE = '#000';
88
export const DEFAULT_STROKE_WIDTH = '2';
9-
export const CLOUD_URL = 'https://cloud.layer5.io';
109

1110
export const KANVAS_MODE = {
1211
DESIGNER: 'design',
@@ -28,3 +27,43 @@ export const RESOURCE_TYPE = {
2827
} as const;
2928

3029
export type ResourceType = (typeof RESOURCE_TYPE)[keyof typeof RESOURCE_TYPE];
30+
export interface ICEServer {
31+
urls: string;
32+
username?: string;
33+
credential?: string;
34+
}
35+
36+
/**
37+
* ICE server configuration for WebRTC connections
38+
*/
39+
export const ICE_SERVERS: ICEServer[] = [
40+
{
41+
urls: 'stun:stun.l.google.com:19302'
42+
},
43+
{
44+
urls: 'stun:global.stun.twilio.com:3478'
45+
},
46+
{
47+
urls: 'stun:openrelay.metered.ca:80'
48+
},
49+
{
50+
urls: 'turn:openrelay.metered.ca:80',
51+
username: 'openrelayproject',
52+
credential: 'openrelayproject'
53+
},
54+
{
55+
urls: 'turn:openrelay.metered.ca:443',
56+
username: 'openrelayproject',
57+
credential: 'openrelayproject'
58+
},
59+
{
60+
urls: 'turn:openrelay.metered.ca:443?transport=tcp',
61+
username: 'openrelayproject',
62+
credential: 'openrelayproject'
63+
}
64+
];
65+
66+
export const MESHERY_CLOUD_PROD = 'https://cloud.layer5.io';
67+
export const MESHERY_CLOUD_STAGING = 'staging-cloud.layer5.io';
68+
export const MESHERY_CLOUD_WS_PROD = 'cloud-ws.layer5.io';
69+
export const MESHERY_CLOUD_WS_STAGING = 'staging-cloud-ws.layer5.io:6543';

src/custom/Carousel/style.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const CarouselButton = styled('button')(({ theme }) => ({
66
transform: 'translateY(-50%)',
77
zIndex: '1',
88
background: theme.palette.background.paper,
9+
color: theme.palette.mode === 'dark' ? theme.palette.common.white : theme.palette.common.black,
910
border: 'none',
1011
cursor: 'pointer',
1112
padding: '0.5rem',

src/custom/CatalogDesignTable/AuthorCell.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { Avatar, Box, Grid, Typography } from '../../base';
3-
import { CLOUD_URL } from '../../constants/constants';
3+
import { MESHERY_CLOUD_PROD } from '../../constants/constants';
44
import { PersonIcon } from '../../icons';
55
import { CustomTooltip } from '../CustomTooltip';
66

@@ -44,7 +44,7 @@ const AuthorCell: React.FC<AuthorCellProps> = ({
4444
alt={displayName}
4545
src={avatarUrl}
4646
onClick={() => {
47-
window.open(`${CLOUD_URL}/user/${userId}`, '_blank');
47+
window.open(`${MESHERY_CLOUD_PROD}/user/${userId}`, '_blank');
4848
}}
4949
>
5050
{!avatarUrl && <PersonIcon />}

src/custom/CatalogDetail/ChallengesSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useState } from 'react';
22
import { Link, ListItemIcon } from '../../base';
3-
import { CLOUD_URL } from '../../constants/constants';
3+
import { MESHERY_CLOUD_PROD } from '../../constants/constants';
44
import { ChallengesIcon } from '../../icons';
55
import { useTheme } from '../../theme';
66
import CollapsibleSection from './CollapsibleSection';
@@ -30,7 +30,7 @@ const ChallengesSection: React.FC<ChallengesSectionProps> = ({ filteredAcademyDa
3030

3131
const renderChallengeItem = (item: string, index: number) => (
3232
<Link
33-
href={`${CLOUD_URL}/academy/challenges/${slugify('' + item)}`}
33+
href={`${MESHERY_CLOUD_PROD}/academy/challenges/${slugify('' + item)}`}
3434
target="_blank"
3535
rel="noopener noreferrer"
3636
style={{ textDecoration: 'none', color: 'inherit' }}

src/custom/CatalogDetail/LearningSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useState } from 'react';
22
import { Link, ListItemIcon } from '../../base';
3-
import { CLOUD_URL } from '../../constants/constants';
3+
import { MESHERY_CLOUD_PROD } from '../../constants/constants';
44
import { LearningIcon } from '../../icons';
55
import { useTheme } from '../../theme';
66
import CollapsibleSection from './CollapsibleSection';
@@ -30,7 +30,7 @@ const LearningSection: React.FC<LearningSectionProps> = ({ filteredAcademyData }
3030

3131
const renderLearningItem = (item: string, index: number) => (
3232
<Link
33-
href={`${CLOUD_URL}/academy/learning-paths/${slugify('' + item)}`}
33+
href={`${MESHERY_CLOUD_PROD}/academy/learning-paths/${slugify('' + item)}`}
3434
target="_blank"
3535
rel="noopener noreferrer"
3636
style={{ textDecoration: 'none', color: 'inherit' }}

src/custom/CatalogDetail/UserInfo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Avatar } from '../../base';
2-
import { CLOUD_URL } from '../../constants/constants';
2+
import { MESHERY_CLOUD_PROD } from '../../constants/constants';
33
import { LockIcon, PublicIcon } from '../../icons';
44
import { getFormatDate } from '../../utils';
55
import { Pattern } from '../CustomCatalog/CustomCard';
@@ -44,7 +44,7 @@ const UserInfo: React.FC<UserInfoProps> = ({
4444
}}
4545
/>
4646
<RedirectLink
47-
href={`${CLOUD_URL}/user/${details?.user_id}`}
47+
href={`${MESHERY_CLOUD_PROD}/user/${details?.user_id}`}
4848
target="_blank"
4949
rel="noopener noreferrer"
5050
>

src/custom/CatalogFilterSection/CatalogFilterSidebar.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useCallback, useState } from 'react';
44
import { Box, Drawer, Typography } from '../../base';
55
import { CloseIcon } from '../../icons';
66
import { darkTeal } from '../../theme';
7-
import { SLIGHT_BLUE } from '../../theme/colors/colors';
7+
import { darkModalGradient, lightModalGradient } from '../../theme/colors/colors';
88
import { CloseBtn } from '../Modal';
99
import CatalogFilterSidebarState from './CatalogFilterSidebarState';
1010
import {
@@ -152,7 +152,15 @@ const CatalogFilterSidebar: React.FC<CatalogFilterSidebarProps> = ({
152152
styleProps={appliedStyleProps}
153153
/>
154154
</Box>
155-
<Box sx={{ backgroundColor: SLIGHT_BLUE, height: '5vh' }} />
155+
<Box
156+
sx={{
157+
background:
158+
theme.palette.mode === 'light'
159+
? lightModalGradient.fotter
160+
: darkModalGradient.fotter,
161+
height: '5vh'
162+
}}
163+
/>
156164
</Box>
157165
</Drawer>
158166
</FilterDrawerDiv>

0 commit comments

Comments
 (0)