-
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 2c22405
Showing
13 changed files
with
99 additions
and
117 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React, { ReactNode } from 'react' | ||
import styles from './styles.module.scss' | ||
import { Panels } from '../shared/Panels' | ||
|
||
interface CodePanelsProps { | ||
codeBlocks: { title: string; children: ReactNode }[] | ||
} | ||
|
||
export const CodePanels: React.FC<CodePanelsProps> = ({ codeBlocks }) => ( | ||
<Panels panels={codeBlocks} className={styles.codePanels} /> | ||
) |
This file was deleted.
Oops, something went wrong.
21 changes: 11 additions & 10 deletions
21
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 { | ||
.codePanels { | ||
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 { StoragePanels } from './StoragePanels' | ||
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 /> | ||
<StoragePanels /> | ||
</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 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 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' | ||
|
||
const storageTypes = [ | ||
{ | ||
children: <AmazonS3 />, | ||
title: 'Amazon S3' | ||
}, | ||
{ | ||
children: <GoogleCloudStorage />, | ||
title: 'Google Cloud Storage' | ||
}, | ||
{ | ||
children: <AzureBlobStorage />, | ||
title: 'Azure Blob Storage' | ||
}, | ||
{ | ||
children: <OtherStorageTypes />, | ||
title: 'Other' | ||
} | ||
] | ||
|
||
export const StoragePanels: React.FC = () => ( | ||
<Panels panels={storageTypes} className={styles.storagePanels} /> | ||
) |
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
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> | ||
) | ||
} |