diff --git a/src/browser/images/aura-logo-inverted.svg b/src/browser/images/aura-logo-inverted.svg deleted file mode 100644 index 6346e711d33..00000000000 --- a/src/browser/images/aura-logo-inverted.svg +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/browser/images/aura-logo.svg b/src/browser/images/aura-logo.svg deleted file mode 100644 index 4b76d6803eb..00000000000 --- a/src/browser/images/aura-logo.svg +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/browser/modules/ClickToCode/__snapshots__/index.test.tsx.snap b/src/browser/modules/ClickToCode/__snapshots__/index.test.tsx.snap index b501d34f746..3d74c9f79a6 100644 --- a/src/browser/modules/ClickToCode/__snapshots__/index.test.tsx.snap +++ b/src/browser/modules/ClickToCode/__snapshots__/index.test.tsx.snap @@ -5,7 +5,7 @@ exports[`ClickToCode does not render if no children 1`] = `
`; exports[`ClickToCode renders all children 1`] = `
@@ -20,7 +20,7 @@ exports[`ClickToCode renders all children 1`] = ` exports[`ClickToCode renders children as code if no code is provided 1`] = `
hellohi! @@ -30,7 +30,7 @@ exports[`ClickToCode renders children as code if no code is provided 1`] = ` exports[`ClickToCode renders code as the code when code is available 1`] = `
hello diff --git a/src/browser/modules/Stream/CypherFrame/__snapshots__/CodeView.test.tsx.snap b/src/browser/modules/Stream/CypherFrame/__snapshots__/CodeView.test.tsx.snap index 6f973c0580a..ff53807fc68 100644 --- a/src/browser/modules/Stream/CypherFrame/__snapshots__/CodeView.test.tsx.snap +++ b/src/browser/modules/Stream/CypherFrame/__snapshots__/CodeView.test.tsx.snap @@ -6,7 +6,7 @@ exports[`CodeViews CodeStatusbar displays no statusBarMessage 1`] = ` class="sc-jlyJG dMPRjC" >
@@ -18,7 +18,7 @@ exports[`CodeViews CodeStatusbar displays statusBarMessage 1`] = ` class="sc-jlyJG dMPRjC" >
Started streaming 1 records after 5 ms and completed after 10 ms.
diff --git a/src/browser/modules/Stream/CypherFrame/__snapshots__/ErrorsView.test.tsx.snap b/src/browser/modules/Stream/CypherFrame/__snapshots__/ErrorsView.test.tsx.snap index 2e5be2429e0..9c181e6a3ff 100644 --- a/src/browser/modules/Stream/CypherFrame/__snapshots__/ErrorsView.test.tsx.snap +++ b/src/browser/modules/Stream/CypherFrame/__snapshots__/ErrorsView.test.tsx.snap @@ -10,7 +10,7 @@ exports[`ErrorsViews ErrorsStatusbar displays error 1`] = ` title="Test.Error: Test error description" > Test.Error: Test error description @@ -61,7 +61,7 @@ exports[`ErrorsViews ErrorsView displays procedure link if unknown procedure 1`] class="sc-hXRMBi iQncAP" >  List available procedures diff --git a/src/browser/modules/Stream/CypherFrame/__snapshots__/VisualizationView.test.tsx.snap b/src/browser/modules/Stream/CypherFrame/__snapshots__/VisualizationView.test.tsx.snap index 702ee1ebe66..81b0df096d9 100644 --- a/src/browser/modules/Stream/CypherFrame/__snapshots__/VisualizationView.test.tsx.snap +++ b/src/browser/modules/Stream/CypherFrame/__snapshots__/VisualizationView.test.tsx.snap @@ -5,7 +5,7 @@ exports[`Visualization renders 1`] = `
`; exports[`Visualization renders with result and escapes any HTML 1`] = `
@@ -145,7 +145,7 @@ exports[`Visualization renders with result and escapes any HTML 1`] = ` class="sc-cvbbAY cqXpvD zoom-out" > diff --git a/src/browser/modules/Stream/CypherFrame/__snapshots__/relatable-view.test.tsx.snap b/src/browser/modules/Stream/CypherFrame/__snapshots__/relatable-view.test.tsx.snap index 2bc63581ee4..4e60b1b98e1 100644 --- a/src/browser/modules/Stream/CypherFrame/__snapshots__/relatable-view.test.tsx.snap +++ b/src/browser/modules/Stream/CypherFrame/__snapshots__/relatable-view.test.tsx.snap @@ -6,7 +6,7 @@ exports[`RelatableViews RelatableView displays bodyMessage if no rows 1`] = ` class="sc-Rmtcm keiynT" >
(no changes, no records)
@@ -17,7 +17,7 @@ exports[`RelatableViews RelatableView displays bodyMessage if no rows 1`] = ` exports[`RelatableViews RelatableView does not display bodyMessage if rows, and escapes HTML 1`] = `
"String with HTML <strong>in</strong> it" @@ -92,7 +92,7 @@ exports[`RelatableViews TableStatusbar displays no statusBarMessage 1`] = ` class="sc-Rmtcm keiynT" >
@@ -104,7 +104,7 @@ exports[`RelatableViews TableStatusbar displays statusBarMessage 1`] = ` class="sc-Rmtcm keiynT" >
Started streaming 1 records after 5 ms and completed after 10 ms.
diff --git a/src/browser/modules/Stream/PlayFrame.tsx b/src/browser/modules/Stream/PlayFrame.tsx index 49985ae9387..2bb42f2f2cf 100644 --- a/src/browser/modules/Stream/PlayFrame.tsx +++ b/src/browser/modules/Stream/PlayFrame.tsx @@ -18,7 +18,7 @@ * along with this program. If not, see . */ -import React, { useContext, useEffect, useState } from 'react' +import React, { useEffect, useState } from 'react' import { withBus } from 'react-suber' import { fetchGuideFromAllowlistAction } from 'shared/modules/commands/commandsDuck' @@ -38,36 +38,6 @@ import { } from 'browser-components/icons/Icons' import { splitMdxSlides } from '../Docs/MDX/splitMdx' import { LAST_GUIDE_SLIDE } from 'shared/modules/udc/udcDuck' -import { connect } from 'react-redux' -import { GlobalState } from 'shared/globalState' -import { inCloudEnv } from 'shared/modules/app/appDuck' -import { getEdition, isEnterprise } from 'shared/modules/dbMeta/dbMetaDuck' -import { PromotionContainer, AuraPromoLink } from './styled' -import { ThemeContext } from 'styled-components' -import { DARK_THEME } from 'shared/modules/settings/settingsDuck' - -const AuraPromotion = () => { - const theme = useContext(ThemeContext) - const isDarkTheme = theme.name === DARK_THEME - - return ( - - - Sign up - - for a free Neo4j cloud instance with - Neo4j - - ) -} const { play: { chapters } @@ -80,7 +50,7 @@ const checkHtmlForSlides = (html: any) => { return !!slides.length } -export function PlayFrame({ stack, bus, showPromotion }: any): JSX.Element { +export function PlayFrame({ stack, bus }: any): JSX.Element { const [stackIndex, setStackIndex] = useState(0) const [atSlideStart, setAtSlideStart] = useState(null) const [atSlideEnd, setAtSlideEnd] = useState(null) @@ -105,8 +75,7 @@ export function PlayFrame({ stack, bus, showPromotion }: any): JSX.Element { currentFrame, bus, onSlide, - shouldUseSlidePointer, - showPromotion + shouldUseSlidePointer ) if (stillMounted) { setInitialPlay(false) @@ -119,7 +88,7 @@ export function PlayFrame({ stack, bus, showPromotion }: any): JSX.Element { stillMounted = false } // The full dependency array causes a re-run which switches to slide 1 - }, [bus, currentFrame, showPromotion]) + }, [bus, currentFrame]) const { guide, aside, hasCarousel, isRemote } = guideObj @@ -189,8 +158,7 @@ function generateContent( stackFrame: any, bus: any, onSlide: any, - shouldUseSlidePointer: any, - showPromotion = false + shouldUseSlidePointer: any ): any { // Not found if (stackFrame.response && stackFrame.response.status === 404) { @@ -274,25 +242,13 @@ function generateContent( // Check if content exists locally if (isPlayChapter(guideName)) { const { content, title, subtitle, slides = null } = chapters[guideName] - - const isPlayStart = stackFrame.cmd.trim() === ':play start' - const updatedContent = - isPlayStart && showPromotion ? ( - <> - {content} - - - ) : ( - content - ) - return { guide: ( ({ - showPromotion: - getEdition(state) !== null && !isEnterprise(state) && !inCloudEnv(state) -}) - -export default connect(mapStateToProps)(withBus(PlayFrame)) +export default withBus(PlayFrame) diff --git a/src/browser/modules/Stream/__snapshots__/SchemaFrame.test.tsx.snap b/src/browser/modules/Stream/__snapshots__/SchemaFrame.test.tsx.snap index 49f28da9660..5b6d2f19ad4 100644 --- a/src/browser/modules/Stream/__snapshots__/SchemaFrame.test.tsx.snap +++ b/src/browser/modules/Stream/__snapshots__/SchemaFrame.test.tsx.snap @@ -10,13 +10,13 @@ exports[`SchemaFrame renders empty 1`] = ` class="sc-dqBHgY eVMXHH" > @@ -24,10 +24,10 @@ exports[`SchemaFrame renders empty 1`] = ` @@ -35,13 +35,13 @@ exports[`SchemaFrame renders empty 1`] = `
Indexes
None
@@ -49,10 +49,10 @@ exports[`SchemaFrame renders empty 1`] = ` @@ -92,43 +92,43 @@ exports[`SchemaFrame renders empty for Neo4j >= 4.0 1`] = ` class="sc-dqBHgY eVMXHH" >
Constraints
None
@@ -136,42 +136,42 @@ exports[`SchemaFrame renders empty for Neo4j >= 4.0 1`] = `
Index Name Type Uniqueness EntityType LabelsOrTypes Properties State
None
@@ -179,10 +179,10 @@ exports[`SchemaFrame renders empty for Neo4j >= 4.0 1`] = ` @@ -222,13 +222,13 @@ exports[`SchemaFrame renders results for Neo4j < 4.0 1`] = ` class="sc-dqBHgY eVMXHH" >
Constraints
None
@@ -236,10 +236,10 @@ exports[`SchemaFrame renders results for Neo4j < 4.0 1`] = ` @@ -247,13 +247,13 @@ exports[`SchemaFrame renders results for Neo4j < 4.0 1`] = `
Indexes
ON :Movie(released) ONLINE
@@ -261,10 +261,10 @@ exports[`SchemaFrame renders results for Neo4j < 4.0 1`] = ` diff --git a/src/browser/modules/Stream/styled.tsx b/src/browser/modules/Stream/styled.tsx index c9a7db1c9ad..120857297f5 100644 --- a/src/browser/modules/Stream/styled.tsx +++ b/src/browser/modules/Stream/styled.tsx @@ -376,17 +376,3 @@ export const AnimationContainer = styled.div` margin-top: 10px; animation: ${rollDownAnimation} 0.4s ease-in; ` - -export const PromotionContainer = styled.div` - display: flex; - align-items: center; - font-size: 14px; - margin-top: 20px; - justify-content: center; -` - -export const AuraPromoLink = styled.a` - cursor: pointer; - text-decoration: none; - margin-right: 5px; -`
Constraints
ON ( book:Book ) ASSERT book.isbn IS UNIQUE