-
-
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.
- Loading branch information
Showing
51 changed files
with
42,934 additions
and
263 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ tmp/* | |
*.env* | ||
!.env.example | ||
|
||
wrangler.toml | ||
wrangler*.toml | ||
.wrangler | ||
*.vars | ||
|
||
|
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,3 +1,3 @@ | ||
nodejs 20.10.0 | ||
nodejs 22.2.0 | ||
pnpm 9.1.2 | ||
protoc 25.0 |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,59 @@ | ||
--- | ||
// import {Status} from 'src/generated/google/rpc/status_pb' | ||
// import {Code} from 'src/generated/google/rpc/code_pb' | ||
// import {FormSubmit} from 'src/generated/auth_pb' | ||
import AlertError from '@components/AlertError.astro' | ||
import AlertSuccess from '@components/AlertSuccess.astro' | ||
// export interface Props { | ||
// flash: Status | FormSubmit | undefined | ||
// } | ||
import {cn} from '@/lib/utils' | ||
export interface Props { | ||
flash: string | undefined | ||
class?: string | ||
} | ||
// const {flash} = Astro.props | ||
const {flash} = Astro.props | ||
const cls = Astro.props.class | ||
--- | ||
|
||
{ | ||
/* <> | ||
{flash?.code === Code.OK && flash.message && <AlertSuccess message={flash.message} />} | ||
{typeof flash?.code === 'number' && flash?.code !== Code.OK && <AlertError error={flash?.message} />} | ||
</> */ | ||
flash && ( | ||
<div | ||
role='alert' | ||
class={cn( | ||
'relative w-full rounded-lg border border-destructive/50 p-4 text-destructive dark:border-destructive [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-destructive [&>svg~*]:pl-7', | ||
cls | ||
)} | ||
> | ||
<> | ||
<svg | ||
xmlns='http://www.w3.org/2000/svg' | ||
width='24' | ||
height='24' | ||
viewBox='0 0 24 24' | ||
fill='none' | ||
stroke='currentColor' | ||
stroke-width='2' | ||
stroke-linecap='round' | ||
stroke-linejoin='round' | ||
class='lucide lucide-circle-alert h-4 w-4' | ||
> | ||
<> | ||
<circle | ||
cx='12' | ||
cy='12' | ||
r='10' | ||
/> | ||
<line | ||
x1='12' | ||
x2='12' | ||
y1='8' | ||
y2='12' | ||
/> | ||
<line | ||
x1='12' | ||
x2='12.01' | ||
y1='16' | ||
y2='16' | ||
/> | ||
</> | ||
</svg> | ||
<h5 class='mb-1 font-medium leading-none tracking-tight'>Error</h5> | ||
<div class='text-sm [&_p]:leading-relaxed'>{flash}</div> | ||
</> | ||
</div> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
export interface Props { | ||
class: string | ||
} | ||
const {class: cls, ...rest} = Astro.props | ||
--- | ||
|
||
<svg | ||
class={`animate-spin ${cls || ''}`} | ||
xmlns='http://www.w3.org/2000/svg' | ||
fill='none' | ||
view-box='0 0 24 24' | ||
width='24' | ||
height='24' | ||
{...rest} | ||
> | ||
<circle | ||
class='opacity-25' | ||
cx='12' | ||
cy='12' | ||
r='10' | ||
stroke='currentColor' | ||
stroke-width='4' | ||
></circle> | ||
<path | ||
class='opacity-75' | ||
fill='currentColor' | ||
d='M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z' | ||
></path> | ||
</svg> |
Oops, something went wrong.