-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into chore-extended-cache-log
- Loading branch information
Showing
141 changed files
with
2,487 additions
and
1,233 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
20 changes: 20 additions & 0 deletions
20
docs/docs-new/components/mdx/Banners/CommunitySupportedDriver.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,20 @@ | ||
import { WarningBox } from "@/components/mdx/AlertBox/AlertBox"; | ||
import { Link } from "@/components/overrides/Anchor/Link"; | ||
|
||
export interface CommunitySupportedDriverProps { | ||
dataSource: string; | ||
} | ||
|
||
export const CommunitySupportedDriver = ({ | ||
dataSource, | ||
}: CommunitySupportedDriverProps) => { | ||
return ( | ||
<WarningBox> | ||
The driver for {dataSource} is{" "} | ||
<Link href="/product/configuration/data-sources#driver-support"> | ||
community-supported | ||
</Link>{" "} | ||
and is not supported by Cube or the vendor. | ||
</WarningBox> | ||
); | ||
}; |
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,25 @@ | ||
import cn from 'classnames' | ||
import type { ComponentProps, ReactElement } from 'react' | ||
|
||
export const Code = ({ | ||
children, | ||
className, | ||
...props | ||
}: ComponentProps<'code'>): ReactElement => { | ||
const hasLineNumbers = 'data-line-numbers' in props | ||
return ( | ||
<code | ||
className={cn( | ||
'nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black break-all nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]', | ||
'dark:nx-border-white/10 dark:nx-bg-white/10 ', | ||
hasLineNumbers && '[counter-reset:line]', | ||
className | ||
)} | ||
// always show code blocks in ltr | ||
dir="ltr" | ||
{...props} | ||
> | ||
{children} | ||
</code> | ||
) | ||
} |
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
Oops, something went wrong.