Skip to content

Commit 0690e9a

Browse files
authored
Merge branch 'layer5io:master' into fix-homepage-banner-responsive
2 parents 8eed8bb + 907af22 commit 0690e9a

30 files changed

Lines changed: 8795 additions & 4609 deletions

File tree

gatsby-config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,12 @@ module.exports = {
628628
policy: [{ userAgent: "*", allow: "/" }],
629629
},
630630
},
631+
{
632+
resolve: "gatsby-plugin-purgecss",
633+
options: {
634+
printRejected: true,
635+
}
636+
},
631637
"gatsby-plugin-meta-redirect",
632638
// make sure this is always the last one
633639
],

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"gatsby-plugin-meta-redirect": "github:layer5labs/gatsby-plugin-meta-redirect",
6969
"gatsby-plugin-netlify": "^5.1.1",
7070
"gatsby-plugin-preload-fonts": "^4.11.0",
71+
"gatsby-plugin-purgecss": "^6.2.1",
7172
"gatsby-plugin-robots-txt": "^1.8.0",
7273
"gatsby-plugin-sharp": "^5.11.0",
7374
"gatsby-plugin-sitemap": "^6.11.0",
@@ -113,7 +114,7 @@
113114
"simple-react-lightbox": "^3.6.9-0",
114115
"slick-carousel": "^1.8.1",
115116
"styled-components": "^6.1.14",
116-
"swiper": "^11.1.15",
117+
"swiper": "^12.0.2",
117118
"url": "^0.11.3",
118119
"webpack-filter-warnings-plugin": "^1.2.1",
119120
"xstate": "^5.13.0"
Binary file not shown.

src/collections/events/2025/hacktoberfest-2025/index.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { Grid2 } from "@sistent/sistent";
1616
import hacktoberfest2025 from "./layer5-hacktoberfest2025-badge.png";
1717
import hacktoberfestFirstPR from "./hacktoberfest-layer5-first-pr.webp";
1818
import hacktoberfestOpenArms from "./hacktoberfest-layer5-open-arms.webp";
19-
import hacktoberfestTheme from "./hacktoberfest-meshery-theme.webp";
2019

2120
<p>
2221
<Link to="/programs/hacktoberfest">Hacktoberfest</Link> is just around the
@@ -114,11 +113,6 @@ import hacktoberfestTheme from "./hacktoberfest-meshery-theme.webp";
114113
Eti Ijeoma
115114
</Link>
116115
</li>
117-
<li>
118-
<Link to="/community/members/darshan-narasimha">
119-
Darshan Narasimha
120-
</Link>
121-
</li>
122116
</ul>
123117
</div>
124118
</Grid2>
@@ -137,9 +131,3 @@ import hacktoberfestTheme from "./hacktoberfest-meshery-theme.webp";
137131
</div>
138132
</Grid2>
139133
</Grid2>
140-
141-
<img
142-
src={hacktoberfestTheme}
143-
style={{ width: "775px", maxWidth: "100%", height: "auto", display: "block", margin: "0 auto 30px auto" }}
144-
alt="Hacktoberfest Meshery Theme"
145-
/>
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

src/collections/integrations/aws-cloudwatch-controller/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ components: [
3232
"colorIcon": "icons/components/metric-stream/icons/color/metric-stream-color.svg",
3333
"whiteIcon": "icons/components/metric-stream/icons/white/metric-stream-white.svg",
3434
"description": "",
35+
},
36+
{
37+
"name": "dashboard",
38+
"colorIcon": "icons/components/dashboard/icons/color/dashboard-color.svg",
39+
"whiteIcon": "icons/components/dashboard/icons/white/dashboard-white.svg",
40+
"description": "",
3541
}]
3642
featureList: [
3743
"Provides you with data and actionable insights to monitor your applications, respond to system-wide performance changes, and optimize resource utilization.",

src/components/CopyValue/index.js

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
import React, { useCallback, useState } from "react";
2+
import { copyToClipboard } from "../CodeBlock/copy-to-clipboard";
3+
import { Box, CustomTooltip } from "@sistent/sistent";
4+
5+
const CopyValue = ({ copyValue }) => {
6+
const [copyState, setCopyState] = useState({
7+
isCopied: false
8+
});
9+
10+
const handleCopy = useCallback(async () => {
11+
await copyToClipboard(copyValue);
12+
13+
setCopyState({
14+
isCopied: true,
15+
});
16+
17+
setTimeout(() => {
18+
setCopyState({
19+
isCopied: false,
20+
});
21+
}, 2000);
22+
}, [copyValue]);
23+
24+
25+
const getTooltipTitle = () => {
26+
if (copyState.isCopied) {
27+
return "Copied";
28+
}
29+
return "Click to copy to clipboard";
30+
};
31+
32+
return (
33+
<CustomTooltip
34+
title={getTooltipTitle()}
35+
enterDelay={600}
36+
leaveDelay={100}
37+
placement="right"
38+
>
39+
<Box
40+
component="button"
41+
role="button"
42+
tabIndex={0}
43+
aria-label={`Copy ${copyValue} to clipboard`}
44+
sx={{
45+
display: "inline-flex",
46+
alignItems: "center",
47+
cursor: "pointer",
48+
padding: "4px 8px",
49+
borderRadius: "4px",
50+
background: "transparent",
51+
fontFamily: "monospace",
52+
fontSize: "0.875rem",
53+
color: (theme) => theme.palette.text.primary,
54+
transition: "all 0.2s ease-in-out",
55+
outline: "none",
56+
border: "2px solid",
57+
width: "fit-content",
58+
minWidth: "200px",
59+
borderColor: "transparent",
60+
boxShadow: "none",
61+
"&:hover, &:focus, &:active": {
62+
backgroundColor: (theme) => theme.palette.action.hover,
63+
boxShadow: "none",
64+
},
65+
"&:focus, &:active": {
66+
borderColor: (theme) => theme.palette.primary.main,
67+
boxShadow: "none",
68+
},
69+
...(copyState.isCopied && {
70+
borderColor: (theme) => theme.palette.primary.main,
71+
backgroundColor: (theme) => theme.palette.action.hover,
72+
}),
73+
}}
74+
onClick={handleCopy}
75+
>
76+
<span>{copyValue}</span>
77+
</Box>
78+
</CustomTooltip>
79+
);
80+
};
81+
82+
export default CopyValue;

src/components/Pricing/PricingAddons/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,12 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, currency, enterpr
539539
<TextField
540540
type="number"
541541
value={enterpriseUsers}
542-
onChange={(e) => setEnterpriseUsers(parseInt(e.target.value, 10))}
543-
inputProps={{ min: 1, style: { textAlign: "center" } }}
542+
onChange={(e) => {
543+
const val = parseInt(e.target.value, 10);
544+
if (isNaN(val) || (val >= 1 && val <= 2500)) {
545+
setEnterpriseUsers(val);
546+
}
547+
}}
544548
sx={boxStyles.enterpriseUserInput}
545549
/>
546550
</Box>

0 commit comments

Comments
 (0)