-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36bd10b
commit f6c5d69
Showing
12 changed files
with
92 additions
and
118 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
25 changes: 14 additions & 11 deletions
25
webview/src/setup/components/experiments/DvcLiveExamples.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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@import '../../../shared/variables'; | ||
|
||
.codeSlider { | ||
.dvcLiveExamples { | ||
margin-top: 40px; | ||
|
||
vscode-panels { | ||
|
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import React from 'react' | ||
import { StorageSlider } from './StorageSlider' | ||
import { SupportedStorage } from './SupportedStorage' | ||
import { EmptyState } from '../../../shared/components/emptyState/EmptyState' | ||
import { FocusDvcSection } from '../shared/FocusDvcSection' | ||
|
||
export const DvcUninitialized: React.FC<{}> = () => ( | ||
<EmptyState isFullScreen={false}> | ||
<h1>DVC is not initialized</h1> | ||
<FocusDvcSection /> | ||
<StorageSlider /> | ||
<SupportedStorage /> | ||
</EmptyState> | ||
) |
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 was deleted.
Oops, something went wrong.
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,31 @@ | ||
import React from 'react' | ||
import styles from './styles.module.scss' | ||
import { AmazonS3 } from './AmazonS3' | ||
import { GoogleCloudStorage } from './GoogleCloudStorage' | ||
import { AzureBlobStorage } from './AzureBlobStorage' | ||
import { OtherStorageTypes } from './OtherStorageTypes' | ||
import { Panels } from '../shared/Panels' | ||
|
||
export const SupportedStorage: React.FC = () => ( | ||
<Panels | ||
panels={[ | ||
{ | ||
children: <AmazonS3 />, | ||
title: 'Amazon S3' | ||
}, | ||
{ | ||
children: <GoogleCloudStorage />, | ||
title: 'Google Cloud Storage' | ||
}, | ||
{ | ||
children: <AzureBlobStorage />, | ||
title: 'Azure Blob Storage' | ||
}, | ||
{ | ||
children: <OtherStorageTypes />, | ||
title: 'Other' | ||
} | ||
]} | ||
className={styles.supportedStorage} | ||
/> | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { | ||
VSCodePanelTab, | ||
VSCodePanelView, | ||
VSCodePanels | ||
} from '@vscode/webview-ui-toolkit/react' | ||
import React, { ReactNode } from 'react' | ||
|
||
interface PanelProps { | ||
panels: { title: string; children: ReactNode }[] | ||
className: string | ||
} | ||
|
||
export const Panels: React.FC<PanelProps> = ({ className, panels }) => { | ||
return ( | ||
<div className={className}> | ||
<VSCodePanels> | ||
{panels.map(panel => ( | ||
<VSCodePanelTab key={`tab-${panel.title}`}> | ||
{panel.title} | ||
</VSCodePanelTab> | ||
))} | ||
{panels.map(panel => ( | ||
<VSCodePanelView key={`view-${panel.title}`}> | ||
{panel.children} | ||
</VSCodePanelView> | ||
))} | ||
</VSCodePanels> | ||
</div> | ||
) | ||
} |