-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add no devices modal and update installation guides
Introduced a "No Device Modal" to provide an initial guide for users with no devices. Updated the technical guide with new sections for NodeJS Vanilla Agent, Dockerized Agent, and troubleshooting information. Adjusted various components for better Ansible playbook and Docker connection test handling.
- Loading branch information
SquirrelDevelopper
committed
Oct 14, 2024
1 parent
b5b47fb
commit 418c105
Showing
16 changed files
with
449 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
client/src/components/NewDeviceModal/SwitchConnexionMethod.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { SwapOutlined, SwitcherOutlined } from '@ant-design/icons'; | ||
import { Alert, Button, Space, Typography } from 'antd'; | ||
import React from 'react'; | ||
|
||
const SwitchConnexionMethod = () => { | ||
const [showDetails, setShowDetails] = React.useState(false); | ||
|
||
return ( | ||
<Alert | ||
style={{ marginTop: 15 }} | ||
message={'Encountering problems?'} | ||
description={ | ||
showDetails ? ( | ||
<Space direction={'vertical'}> | ||
<Typography.Text> | ||
Try switching to the classic Ansible SSH connexion method instead | ||
of paramiko (not available when using a passphrase protected key). | ||
</Typography.Text> | ||
<Typography.Text> | ||
SSH → Show advanced → Connection Method → *SSH* | ||
</Typography.Text> | ||
<Typography.Link | ||
href={ | ||
'https://squirrelserversmanager.io/docs/technical-guide/troubleshoot' | ||
} | ||
target={'_blank'} | ||
> | ||
[More details] | ||
</Typography.Link> | ||
</Space> | ||
) : undefined | ||
} | ||
action={ | ||
showDetails ? undefined : ( | ||
<Button size="small" onClick={() => setShowDetails(true)}> | ||
Details | ||
</Button> | ||
) | ||
} | ||
showIcon | ||
/> | ||
); | ||
}; | ||
|
||
export default SwitchConnexionMethod; |
Oops, something went wrong.