-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): exclude external libs in getSourceFiles
- Loading branch information
Showing
10 changed files
with
213 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Code of Conduct | ||
|
||
As a community of developers, we strive to create a friendly, safe, and welcoming environment for | ||
all, regardless of experience level, gender, gender identity and expression, sexual orientation, | ||
disability, personal appearance, body size, race, ethnicity, age, religion, or nationality. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment include: | ||
|
||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior include: | ||
|
||
- The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
- Trolling, insulting/derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others' private information, such as a physical or electronic address, without explicit | ||
permission | ||
- Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are | ||
expected to take appropriate and fair corrective action in response to any instances of unacceptable | ||
behavior. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces when an individual is | ||
representing the project or its community. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting | ||
the project team at [[email protected]](mailto:[email protected]) . All complaints will be reviewed | ||
and investigated and will result in a response that is deemed necessary and appropriate to the | ||
circumstances. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the | ||
[Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at | ||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. |
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 |
---|---|---|
@@ -1,25 +1,20 @@ | ||
import Link from 'next/link' | ||
import Link from 'next/link'; | ||
|
||
export default function NotFound() { | ||
return ( | ||
<div className="min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pl-8 lg:pr-0 xl:px-16"> | ||
<div className="flex h-full flex-col items-center justify-center text-center"> | ||
<p className="font-display text-sm font-medium text-slate-900 dark:text-white"> | ||
404 | ||
</p> | ||
<p className="font-display text-sm font-medium text-slate-900 dark:text-white">404</p> | ||
<h1 className="mt-3 font-display text-3xl tracking-tight text-slate-900 dark:text-white"> | ||
Page not found | ||
</h1> | ||
<p className="mt-2 text-sm text-slate-500 dark:text-slate-400"> | ||
Sorry, we couldn’t find the page you’re looking for. | ||
</p> | ||
<Link | ||
href="/" | ||
className="mt-8 text-sm font-medium text-slate-900 dark:text-white" | ||
> | ||
<Link href="/" className="mt-8 text-sm font-medium text-slate-900 dark:text-white"> | ||
Go back home | ||
</Link> | ||
</div> | ||
</div> | ||
) | ||
); | ||
} |
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,11 +1,11 @@ | ||
'use client' | ||
'use client'; | ||
|
||
import { ThemeProvider } from 'next-themes' | ||
import { ThemeProvider } from 'next-themes'; | ||
|
||
export function Providers({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<ThemeProvider attribute="class" disableTransitionOnChange> | ||
{children} | ||
</ThemeProvider> | ||
) | ||
); | ||
} |
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,30 +1,26 @@ | ||
import Link from 'next/link' | ||
import clsx from 'clsx' | ||
import clsx from 'clsx'; | ||
import Link from 'next/link'; | ||
|
||
const variantStyles = { | ||
primary: | ||
'rounded-full bg-sky-300 py-2 px-4 text-sm font-semibold text-slate-900 hover:bg-sky-200 focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sky-300/50 active:bg-sky-500', | ||
secondary: | ||
'rounded-full bg-slate-800 py-2 px-4 text-sm font-medium text-white hover:bg-slate-700 focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/50 active:text-slate-400', | ||
} | ||
}; | ||
|
||
type ButtonProps = { | ||
variant?: keyof typeof variantStyles | ||
variant?: keyof typeof variantStyles; | ||
} & ( | ||
| React.ComponentPropsWithoutRef<typeof Link> | ||
| (React.ComponentPropsWithoutRef<'button'> & { href?: undefined }) | ||
) | ||
); | ||
|
||
export function Button({ | ||
variant = 'primary', | ||
className, | ||
...props | ||
}: ButtonProps) { | ||
className = clsx(variantStyles[variant], className) | ||
export function Button({ variant = 'primary', className, ...props }: ButtonProps) { | ||
className = clsx(variantStyles[variant], className); | ||
|
||
return typeof props.href === 'undefined' ? ( | ||
<button className={className} {...props} /> | ||
) : ( | ||
<Link className={className} {...props} /> | ||
) | ||
); | ||
} |
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