From 42bddf34599816a69f73c80cf18b6038b8de13b3 Mon Sep 17 00:00:00 2001 From: yashsinghcodes Date: Thu, 30 May 2024 13:03:41 +0000 Subject: [PATCH 1/3] fix for workflow topbar links --- frontend/src/views/AngularWorkflow.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index 423095f9..2275b47e 100755 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -14936,7 +14936,6 @@ const AngularWorkflow = (defaultprops) => { right: 0, left: isMobile ? 20 : leftBarSize + 20, top: isMobile ? 30 : appBarSize + 20, - pointerEvents: "none", } @@ -14957,7 +14956,6 @@ const AngularWorkflow = (defaultprops) => {
Date: Thu, 30 May 2024 13:04:41 +0000 Subject: [PATCH 2/3] parse video links in the markdown to video --- frontend/src/views/Docs.jsx | 40 ++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/Docs.jsx b/frontend/src/views/Docs.jsx index fdf0744c..6c412080 100755 --- a/frontend/src/views/Docs.jsx +++ b/frontend/src/views/Docs.jsx @@ -102,6 +102,35 @@ export const CopyToClipboard = (props) => { ) } +export const Paragrah = (props) => { + const element = React.createElement( + `p`, + {}, + props.children, + ) + + if (props.children[0] != undefined) { + if(typeof props.children[0] === "string") { + if (props.children[0].includes('.mp4')) { + return ( +
+ +
+ ) + } + } + } + + + return ( +
+ {element} +
+ ) +} + export const OuterLink = (props) => { if (props.href.includes("http") || props.href.includes("mailto")) { return ( @@ -581,8 +610,8 @@ const Docs = (defaultprops) => { position: "sticky", top: 50, paddingTop: "0.25em", - minHeight: "93vh", - maxHeight: "93vh", + minHeight: "95vh", + maxHeight: "95vh", overflowX: "hidden", overflowY: "auto", zIndex: 1000, @@ -901,7 +930,7 @@ const Docs = (defaultprops) => {
Tutorial - Dive in. Hands-on is the best approach to see how Shuffle can transform your security operations. Our set of tutorials and videos teach you how to build your skills. Check out the getting started section to give it a go! + Dive in. Hands-on is the best approach to see how Shuffle can transform your security operations. Our set of tutorials and videos teach you how to build your skills. Check out the getting started section to give it a go! Why Shuffle? @@ -940,7 +969,8 @@ const Docs = (defaultprops) => { h4: Heading, h5: Heading, h6: Heading, - a: OuterLink, + a: OuterLink, + p: Paragrah, } @@ -1188,7 +1218,7 @@ const Docs = (defaultprops) => { // Padding and zIndex etc set because of footer in cloud. const loadedCheck = ( -
+
{postDataBrowser} {postDataMobile}
From 53cc0c691a5ed54e8d124fd5f0f5f7465055f68c Mon Sep 17 00:00:00 2001 From: yashsinghcodes Date: Thu, 30 May 2024 13:08:56 +0000 Subject: [PATCH 3/3] fixed the link for getting-started --- frontend/src/views/Docs.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Docs.jsx b/frontend/src/views/Docs.jsx index 6c412080..565f051f 100755 --- a/frontend/src/views/Docs.jsx +++ b/frontend/src/views/Docs.jsx @@ -930,7 +930,7 @@ const Docs = (defaultprops) => {
Tutorial - Dive in. Hands-on is the best approach to see how Shuffle can transform your security operations. Our set of tutorials and videos teach you how to build your skills. Check out the getting started section to give it a go! + Dive in. Hands-on is the best approach to see how Shuffle can transform your security operations. Our set of tutorials and videos teach you how to build your skills. Check out the getting started section to give it a go! Why Shuffle?