-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3229 from ever-co/stage
Release
- Loading branch information
Showing
50 changed files
with
1,571 additions
and
421 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
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
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
18 changes: 18 additions & 0 deletions
18
apps/server-web/src/renderer/components/svgs/CheckIcon.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,18 @@ | ||
const CheckIcon = ({ className }: { className?: string }) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
strokeWidth={1} | ||
stroke="currentColor" | ||
className="size-6" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
d="m4.5 12.75 6 6 9-13.5" | ||
/> | ||
</svg> | ||
); | ||
|
||
export default CheckIcon; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { useState } from 'react'; | ||
import AdvancedSetting from './setup/AdvancedSetting'; | ||
import Landing from './setup/Landing'; | ||
import CheckIcon from '../components/svgs/CheckIcon'; | ||
const steps: number[] = [1, 2]; | ||
const SetupPage = () => { | ||
const [currentStep, setCurrentStep] = useState<number>(1); | ||
|
||
const letsGo = () => { | ||
setCurrentStep(2); | ||
}; | ||
|
||
const goBack = () => { | ||
setCurrentStep(1); | ||
}; | ||
|
||
return ( | ||
<div className="min-h-screen flex flex-col bg-gray-50 dark:bg-gray-900 text-white px-4"> | ||
<div className="flex w-full justify-center mb-8 mt-8"> | ||
<div className="flex items-center"> | ||
<div | ||
className={`w-10 h-10 flex justify-center items-center rounded-full ${currentStep === 1 ? 'bg-purple-600' : 'bg-purple-600'}`} | ||
> | ||
{currentStep === 1 ? 1 : <CheckIcon />} | ||
</div> | ||
<div className="h-1 w-96 bg-purple-600"></div> | ||
<div className="w-10 h-10 flex justify-center items-center rounded-full bg-purple-600"> | ||
<span>2</span> | ||
</div> | ||
</div> | ||
</div> | ||
{currentStep === 1 ? ( | ||
<Landing nextAction={letsGo} /> | ||
) : ( | ||
<AdvancedSetting back={goBack} /> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default SetupPage; |
Oops, something went wrong.