Skip to content

Commit

Permalink
Add single line installer command for Mac and Linux (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini authored Apr 4, 2023
1 parent 444e9ec commit 7a29dac
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/components/addpeer/AddPeerPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const AddPeerPopup: React.FC<Props> = ({
const items: TabsProps['items'] = [
{
key: "1",
label: <span><Icon component={LinuxSVG}/>Ubuntu</span>,
label: <span><Icon component={LinuxSVG}/>Linux</span>,
children: <UbuntuTab/>,
},
{
Expand Down
33 changes: 18 additions & 15 deletions src/components/addpeer/MacTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import TabSteps from "./TabSteps";
import {StepCommand} from "./types"
import {formatNetBirdUP} from "./common"
import {Collapse} from "antd";
import SyntaxHighlighter from "react-syntax-highlighter";
const { Panel } = Collapse;

const {Text} = Typography;
Expand Down Expand Up @@ -79,31 +80,33 @@ export const LinuxTab = () => {
])

return (
/*<div style={{marginTop: 10}}>
<div style={{marginTop: 10}}>
<Text style={{fontWeight: "bold"}}>
Install on macOS
Install with one command
</Text>
<div style={{fontSize: ".85em", marginTop: 5, marginBottom: 25}}>
<SyntaxHighlighter language="bash">
curl -fsSL https://pkgs.netbird.io/install.sh | sh
</SyntaxHighlighter>
</div>
<Text style={{fontWeight: "bold"}}>
Or install manually with HomeBrew
</Text>
<div style={{marginTop: 5}}>
<TabSteps stepsItems={quickSteps}/>
<TabSteps stepsItems={steps}/>
</div>
<Collapse style={{marginLeft: -15}} bordered={false}>
<Panel header={<Text style={{fontWeight: "bold"}}>
Or install manually with Homebrew
</Text>} key="1">
<div style={{marginTop: 5}}>
<TabSteps stepsItems={steps}/>
</div>
</Panel>
</Collapse>
</div>*/
<div style={{marginTop: 10}}>
</div>
/*<div style={{marginTop: 5}}>
<TabSteps stepsItems={quickSteps}/>
</div>*/
/*<div style={{marginTop: 10}}>
<Text style={{fontWeight: "bold"}}>
Install on macOS with Homebrew
</Text>
<div style={{marginTop: 5}}>
<TabSteps stepsItems={steps}/>
</div>
</div>
</div>*/
)
}

Expand Down
11 changes: 4 additions & 7 deletions src/components/addpeer/UbuntuTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,16 @@ export const UbuntuTab = () => {

return (
<div style={{marginTop: 10}}>
{/*<Text style={{fontWeight: "bold"}}>
<Text style={{fontWeight: "bold"}}>
Install with one command
</Text>
<div style={{fontSize: ".85em", marginTop: 5, marginBottom: 25}}>
<SyntaxHighlighter language="bash">
curl -fsSL https://netbird.io/install.sh | sh
curl -fsSL https://pkgs.netbird.io/install.sh | sh
</SyntaxHighlighter>
</div>*/}
{/*<Text style={{fontWeight: "bold"}}>*/}
{/* Or install manually*/}
{/*</Text>*/}
</div>
<Text style={{fontWeight: "bold"}}>
Install on Ubuntu
Or install manually on Ubuntu
</Text>
<div style={{marginTop: 5}}>
<TabSteps stepsItems={steps}/>
Expand Down

0 comments on commit 7a29dac

Please sign in to comment.