-
Notifications
You must be signed in to change notification settings - Fork 285
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 #2960 from ClickHouse/issue_2916
tags for cloud supported + private preview
- Loading branch information
Showing
13 changed files
with
83 additions
and
7 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
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,24 @@ | ||
import React from "react" | ||
import styles from "./styles.module.css" | ||
|
||
const Icon = () => { | ||
return ( | ||
<div className={styles.privatePreviewIcon} style={{marginRight: '8px', marginTop: '4px'}}> | ||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M5.33301 6.66667V4.66667V4.66667C5.33301 3.194 6.52701 2 7.99967 2V2C9.47234 2 10.6663 3.194 10.6663 4.66667V4.66667V6.66667" stroke="#FEFFC2" stroke-linecap="round" stroke-linejoin="round"/> | ||
<path d="M8.00033 9.33337V11.3334" stroke="#FEFFC2" stroke-linecap="round" stroke-linejoin="round"/> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.333 14H4.66634C3.92967 14 3.33301 13.4033 3.33301 12.6666V7.99996C3.33301 7.26329 3.92967 6.66663 4.66634 6.66663H11.333C12.0697 6.66663 12.6663 7.26329 12.6663 7.99996V12.6666C12.6663 13.4033 12.0697 14 11.333 14Z" stroke="#FEFFC2" stroke-linecap="round" stroke-linejoin="round"/> | ||
</svg> | ||
</div> | ||
) | ||
} | ||
|
||
const PrivatePreviewBadge = () => { | ||
return ( | ||
<div classes className={styles.privatePreviewBadge}> | ||
<Icon />{'Private preview in ClickHouse Cloud'} | ||
</div> | ||
) | ||
} | ||
|
||
export default PrivatePreviewBadge |
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,25 @@ | ||
.privatePreviewBadge { | ||
background-color: #DCE4B8; | ||
color: #4F2B00; | ||
border-radius: 16px; | ||
margin-top: 15px; | ||
margin-bottom: 15px; | ||
display: flex; | ||
align-items: center; | ||
padding: 5px 12px; | ||
display: inline-flex; | ||
margin-right: 5px; | ||
} | ||
|
||
[data-theme='dark'] .privatePreviewBadge { | ||
background-color: #3C4601; | ||
color: #FEFFC2; | ||
} | ||
|
||
.privatePreviewIcon svg path { | ||
stroke: #4F2B00; | ||
} | ||
|
||
[data-theme='dark'] .privatePreviewIcon svg path { | ||
stroke: #FEFFC2; | ||
} |