Skip to content

Commit d9d0fac

Browse files
authored
Merge branch 'master' into feat/news-source-url
2 parents 17dcc52 + c477b4a commit d9d0fac

21 files changed

Lines changed: 1031 additions & 213 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ alt="Learn Layer5" align="left" />
176176
</div>
177177
<br />
178178
<ul>
179-
<li>Find us on Twitter: <a href="https://x.com/layer5">@layer5</a>, <a href="https://x.com/mesheryio">@mesheryio</a>, and <a href="https://x.com/kanvas-new">@kanvas-new</a>.</li>
179+
<li>Find us on Twitter: <a href="https://x.com/layer5">@layer5</a>, <a href="https://x.com/mesheryio">@mesheryio</a>, and <a href="https://x.com/kanvas_new">@kanvas-new</a>.</li>
180180
<li>Visit us on LinkedIn: <a href="https://www.linkedin.com/company/layer5">Layer5</a>, <a href="https://www.linkedin.com/showcase/meshery/">Meshery</a>, and <a href="https://www.linkedin.com/showcase/kanvas-new">Kanvas</a>.</li>
181181
<li>Subscribe on <a href="https://www.youtube.com/Layer5io?sub_confirmation=1">Layer5 Youtube</a>, <a href="https://www.youtube.com/@mesheryio?sub_confirmation=1">Meshery Youtube</a></li>
182182
</ul>

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@emotion/is-prop-valid": "^1.4.0",
3131
"@emotion/react": "^11.14.0",
3232
"@emotion/styled": "^11.14.1",
33-
"@fullcalendar/core": "^6.1.19",
33+
"@fullcalendar/core": "^6.1.20",
3434
"@fullcalendar/daygrid": "^6.1.19",
3535
"@fullcalendar/google-calendar": "^6.1.19",
3636
"@fullcalendar/interaction": "^6.1.19",
@@ -126,7 +126,7 @@
126126
"@babel/core": "^7.28.5",
127127
"@babel/eslint-parser": "^7.28.5",
128128
"@eslint/eslintrc": "^3.3.3",
129-
"@eslint/js": "^9.39.1",
129+
"@eslint/js": "^9.39.2",
130130
"babel-plugin-module-resolver": "^5.0.0",
131131
"baseline-browser-mapping": "^2.8.32",
132132
"cpx": "^1.5.0",
@@ -140,8 +140,8 @@
140140
"gatsby-plugin-eslint": "^4.0.4",
141141
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.32",
142142
"gh-pages": "^6.0.0",
143-
"globals": "^16.5.0",
144-
"husky": "^8.0.3",
143+
"globals": "^17.0.0",
144+
"husky": "^9.1.7",
145145
"rimraf": "^6.1.2",
146146
"webpack-cli": "^6.0.1"
147147
}
-6.75 KB
Binary file not shown.

src/collections/integrations/couchbase-operator/icons/components/couchbase-encryption-key/icons/color/couchbase-encryption-key-color.svg

Lines changed: 1 addition & 0 deletions
Loading

src/collections/integrations/couchbase-operator/icons/components/couchbase-encryption-key/icons/white/couchbase-encryption-key-white.svg

Lines changed: 1 addition & 0 deletions
Loading

src/collections/integrations/couchbase-operator/index.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@ components: [
104104
"colorIcon": "icons/components/couchbase-user/icons/color/couchbase-user-color.svg",
105105
"whiteIcon": "icons/components/couchbase-user/icons/white/couchbase-user-white.svg",
106106
"description": "",
107+
},
108+
{
109+
"name": "couchbase-encryption-key",
110+
"colorIcon": "icons/components/couchbase-encryption-key/icons/color/couchbase-encryption-key-color.svg",
111+
"whiteIcon": "icons/components/couchbase-encryption-key/icons/white/couchbase-encryption-key-white.svg",
112+
"description": "",
113+
},
114+
{
115+
"name": "couchbase-encryption-key",
116+
"colorIcon": "icons/components/couchbase-encryption-key/icons/color/couchbase-encryption-key-color.svg",
117+
"whiteIcon": "icons/components/couchbase-encryption-key/icons/white/couchbase-encryption-key-white.svg",
118+
"description": "",
107119
}]
108120
featureList: [
109121
"Automates Couchbase cluster deployment",
22.2 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Himani Sahu
3+
position: Contributor
4+
image_path: ./himani-sahu.webp
5+
github: Siddhi-sahu
6+
linkedin: himani-sahu-922a2a303
7+
twitter: HimaniSahu67644
8+
layer5: 337a7dd1-2d26-48d6-bb28-26922e16d30d
9+
location: Noida, India
10+
bio: Hi! I’m Himani Sahu. When I’m not coding, I read and practice yoga.
11+
status: Active
12+
published: true
13+
---

src/components/Related-Posts/index.js

Lines changed: 56 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,77 @@
1-
import React from "react";
1+
import React, {useLayoutEffect, useState, useRef} from "react";
22
import { Link } from "gatsby";
33
import { IoIosArrowRoundForward } from "@react-icons/all-files/io/IoIosArrowRoundForward";
44
import Card from "../Card";
55
import RelatedPostsWrapper from "./relatedPosts.style";
66
import { Col } from "../../reusecore/Layout";
77
import Slider from "react-slick";
8-
import useHasMounted from "../../utils/useHasMounted";
98

109
const RelatedPosts = props => {
10+
const [isClient, setIsClient] = useState(false);
11+
const [slidesToShowState, setSlidesToShowState] = useState(null);
12+
const sliderRef = useRef(null);
1113

1214
const { postType , relatedPosts , mainHead , lastCardHead , linkToAllItems } = props;
1315

14-
const hasMounted = useHasMounted();
16+
const computeSlides = () => {
17+
const w = typeof window !== "undefined" ? (window.innerWidth || document.documentElement.clientWidth) : 1200;
18+
if (w <= 600) return 1;
19+
if (w <= 800) return 1.5;
20+
if (w <= 1024) return 2;
21+
if (w <= 1200) return 3;
22+
return 3;
23+
};
24+
25+
useLayoutEffect(() => {
26+
setIsClient(true);
27+
setSlidesToShowState(computeSlides());
28+
29+
let resizeTimeout = null;
30+
const onResizeDebounced = () => {
31+
clearTimeout(resizeTimeout);
32+
resizeTimeout = setTimeout(() => {
33+
const slides = computeSlides();
34+
setSlidesToShowState((prev) => {
35+
if (prev !== slides) return slides;
36+
return prev;
37+
});
38+
if (sliderRef.current && sliderRef.current.innerSlider && typeof sliderRef.current.innerSlider.onWindowResized === "function") {
39+
sliderRef.current.innerSlider.onWindowResized();
40+
}
41+
}, 100);
42+
};
43+
44+
window.addEventListener("resize", onResizeDebounced);
45+
window.addEventListener("load", onResizeDebounced);
46+
47+
return () => {
48+
window.removeEventListener("resize", onResizeDebounced);
49+
window.removeEventListener("load", onResizeDebounced);
50+
clearTimeout(resizeTimeout);
51+
};
52+
}, []);
53+
54+
const settings = {
55+
dots: slidesToShowState < 2,
56+
arrows: slidesToShowState >= 2,
57+
infinite: false,
58+
speed: 500,
59+
slidesToShow: slidesToShowState,
60+
slidesToScroll: 1,
61+
swipe: true,
62+
swipeToSlide: true,
63+
touchThreshold: 10,
64+
};
65+
1566

1667
return (
1768
<RelatedPostsWrapper>
1869
<div className="widgets-title">
1970
<h3>{mainHead}</h3>
2071
</div>
2172
{
22-
hasMounted &&
23-
<Slider
24-
dots= { window.innerWidth < 992 }
25-
arrows={ window.innerWidth >= 992 }
26-
infinite= {false}
27-
speed= "500"
28-
slidesToShow= {window.innerWidth <= 720 ? 1 : window.innerWidth <= 991 ? 2 : 3}
29-
slidesToScroll= {1}
30-
swipe={true}
31-
swipeToSlide={true}
32-
touchThreshold={10}
33-
>
73+
isClient &&
74+
<Slider{...settings} ref={sliderRef} key={`review-slider-${slidesToShowState}`}>
3475
{
3576
postType === "blogs" ? relatedPosts.map((item) => {
3677
const post = item.post || item;

0 commit comments

Comments
 (0)