-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 ag--assertion-v2-quality-governance-tab
- Loading branch information
Showing
81 changed files
with
4,433 additions
and
1,049 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { useEffect } from 'react'; | ||
|
||
export const useCommandS = (onPress: () => void) => { | ||
useEffect(() => { | ||
const handleKeyDown = (event: KeyboardEvent) => { | ||
if (event.metaKey && event.key === 's') { | ||
event.preventDefault(); | ||
onPress(); | ||
} | ||
}; | ||
window.addEventListener('keydown', handleKeyDown); | ||
return () => { | ||
window.removeEventListener('keydown', handleKeyDown); | ||
}; | ||
}, [onPress]); | ||
}; |
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
30 changes: 30 additions & 0 deletions
30
docs-website/src/learn/_components/LearnItemCard/index.jsx
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 clsx from "clsx"; | ||
import Link from "@docusaurus/Link"; | ||
import { useBlogPost } from "@docusaurus/theme-common/internal"; | ||
import styles from "./styles.module.scss"; | ||
|
||
export default function LearnItemCard() { | ||
const { metadata } = useBlogPost(); | ||
const { permalink, title, description, formattedDate, frontMatter } = metadata; | ||
return ( | ||
<div className={clsx("col col--4", styles.featureCol)}> | ||
<Link to={permalink} className={clsx("card", styles.card)}> | ||
{frontMatter?.image ? ( | ||
<div className={styles.card_image}> | ||
<img src={frontMatter?.image} alt={title} /> | ||
</div> | ||
) : ( | ||
<div className={clsx("card__header", styles.featureHeader)}> | ||
<h2>{title}</h2> | ||
</div> | ||
)} | ||
<div className={clsx("card__body", styles.featureBody)}> | ||
<div>{description}</div> | ||
</div> | ||
|
||
<div className={clsx(styles.card_date)}>Published on {formattedDate}</div> | ||
</Link> | ||
</div> | ||
); | ||
} |
53 changes: 53 additions & 0 deletions
53
docs-website/src/learn/_components/LearnItemCard/styles.module.scss
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,53 @@ | ||
.featureCol { | ||
display: flex; | ||
} | ||
|
||
.card_date { | ||
padding: 1rem 2rem; | ||
font-size: 0.8rem; | ||
font-style: italic; | ||
color: gray; | ||
margin-top: auto; | ||
} | ||
|
||
.card_feature { | ||
font-size: 2rem; | ||
font-weight: 700; | ||
} | ||
|
||
.card { | ||
color: var(--ifm-text-color); | ||
text-decoration: none !important; | ||
padding: 0rem; | ||
margin-bottom: 2rem; | ||
align-self: stretch; | ||
flex-grow: 1; | ||
&:hover { | ||
border-color: var(--ifm-color-primary); | ||
} | ||
hr { | ||
margin: 0; | ||
} | ||
} | ||
|
||
.featureHeader { | ||
h2 { | ||
margin-bottom: 1rem !important; | ||
font-size: 1.25rem; | ||
} | ||
padding: 1rem 2rem; | ||
} | ||
|
||
.featureBody { | ||
padding: 0 2rem; | ||
} | ||
|
||
.card_image { | ||
margin: 0; | ||
margin-bottom: 0.5rem; | ||
|
||
img { | ||
width: 100%; | ||
height: auto; | ||
} | ||
} |
Oops, something went wrong.