Skip to content

Commit 996e6e4

Browse files
feat(firstMile): nodejs wizard - install dependencies (#4297)
1 parent 991d6eb commit 996e6e4

File tree

9 files changed

+46
-12
lines changed

9 files changed

+46
-12
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import React, {PureComponent} from 'react'
2+
import CodeSnippet from 'src/shared/components/CodeSnippet'
3+
import {SafeBlankLink} from 'src/utils/SafeBlankLink'
4+
5+
import {event} from 'src/cloud/utils/reporting'
6+
7+
export class InstallDependencies extends PureComponent {
8+
private logCopyCodeSnippet = () => {
9+
event('firstMile.nodeJSWizard.installDependencies.code.copied')
10+
}
11+
render() {
12+
return (
13+
<>
14+
<h1>Install Dependencies</h1>
15+
<p>
16+
First, you need to install the{' '}
17+
<code style={{color: '#B7B8FF'}}>@influxdata/influxdb-client</code>{' '}
18+
module. Run the command below in your terminal.
19+
</p>
20+
<CodeSnippet
21+
text="npm install --save @influxdata/influxdb-client"
22+
onCopy={this.logCopyCodeSnippet}
23+
/>
24+
<p style={{fontStyle: 'italic'}}>
25+
You’ll need to have{' '}
26+
<SafeBlankLink href="https://nodejs.org/download/release/latest-v14.x/">
27+
Node.js v14 LTS
28+
</SafeBlankLink>{' '}
29+
or higher installed.
30+
</p>
31+
</>
32+
)
33+
}
34+
}

src/homepageExperience/containers/NodejsWizard.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import {
99
SubwayNav,
1010
} from '@influxdata/clockface'
1111

12-
import {InstallDependencies} from 'src/homepageExperience/components/steps/InstallDependencies'
12+
import {InstallDependencies} from 'src/homepageExperience/components/steps/nodejs/InstallDependencies'
1313
import {Overview} from 'src/homepageExperience/components/steps/Overview'
1414
import {CreateToken} from 'src/homepageExperience/components/steps/CreateToken'
15-
import {InitalizeClient} from 'src/homepageExperience/components/steps/InitalizeClient'
16-
import {WriteData} from 'src/homepageExperience/components/steps/WriteData'
17-
import {ExecuteQuery} from 'src/homepageExperience/components/steps/ExecuteQuery'
18-
import {Finish} from 'src/homepageExperience/components/steps/Finish'
19-
import {ExecuteAggregateQuery} from 'src/homepageExperience/components/steps/ExecuteAggregateQuery'
15+
import {InitalizeClient} from 'src/homepageExperience/components/steps/python/InitalizeClient'
16+
import {WriteData} from 'src/homepageExperience/components/steps/python/WriteData'
17+
import {ExecuteQuery} from 'src/homepageExperience/components/steps/python/ExecuteQuery'
18+
import {Finish} from 'src/homepageExperience/components/steps/python/Finish'
19+
import {ExecuteAggregateQuery} from 'src/homepageExperience/components/steps/python/ExecuteAggregateQuery'
2020

2121
import {NodejsIcon} from 'src/homepageExperience/components/HomepageIcons'
2222

src/homepageExperience/containers/PythonWizard.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import {
99
SubwayNav,
1010
} from '@influxdata/clockface'
1111

12-
import {InstallDependencies} from 'src/homepageExperience/components/steps/InstallDependencies'
12+
import {InstallDependencies} from 'src/homepageExperience/components/steps/python/InstallDependencies'
1313
import {Overview} from 'src/homepageExperience/components/steps/Overview'
1414
import {CreateToken} from 'src/homepageExperience/components/steps/CreateToken'
15-
import {InitalizeClient} from 'src/homepageExperience/components/steps/InitalizeClient'
16-
import {WriteData} from 'src/homepageExperience/components/steps/WriteData'
17-
import {ExecuteQuery} from 'src/homepageExperience/components/steps/ExecuteQuery'
18-
import {Finish} from 'src/homepageExperience/components/steps/Finish'
19-
import {ExecuteAggregateQuery} from 'src/homepageExperience/components/steps/ExecuteAggregateQuery'
15+
import {InitalizeClient} from 'src/homepageExperience/components/steps/python/InitalizeClient'
16+
import {WriteData} from 'src/homepageExperience/components/steps/python/WriteData'
17+
import {ExecuteQuery} from 'src/homepageExperience/components/steps/python/ExecuteQuery'
18+
import {Finish} from 'src/homepageExperience/components/steps/python/Finish'
19+
import {ExecuteAggregateQuery} from 'src/homepageExperience/components/steps/python/ExecuteAggregateQuery'
2020

2121
import {PythonIcon} from 'src/homepageExperience/components/HomepageIcons'
2222

0 commit comments

Comments
 (0)