Signed-off-by: Florian Bouillon <f.bouillon@aptatio.com>
This commit is contained in:
parent
5da7cf2faa
commit
f6adff52f2
@ -1,13 +1,15 @@
|
|||||||
---
|
---
|
||||||
import { objectOmit } from '@dzeio/object-util'
|
import { objectOmit } from '@dzeio/object-util'
|
||||||
|
|
||||||
interface Props extends Omit<astroHTML.JSX.ButtonHTMLAttributes | astroHTML.JSX.AnchorHTMLAttributes, 'type'> {
|
export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {
|
||||||
type?: 'outline' | 'ghost'
|
outline?: boolean
|
||||||
|
ghost?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const classes = [
|
const classes = [
|
||||||
"button",
|
"button",
|
||||||
Astro.props.type,
|
{outline: Astro.props.outline},
|
||||||
|
{ghost: Astro.props.ghost},
|
||||||
Astro.props.class
|
Astro.props.class
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ export interface Props {
|
|||||||
</a>
|
</a>
|
||||||
{objectMap(Astro.props.left ?? {}, (path, text) => (
|
{objectMap(Astro.props.left ?? {}, (path, text) => (
|
||||||
<div>
|
<div>
|
||||||
<Button type='ghost' href={path}>
|
<Button ghost href={path}>
|
||||||
{text}
|
{text}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
@ -28,7 +28,7 @@ export interface Props {
|
|||||||
<div class="inline-flex gap-6 items-center">
|
<div class="inline-flex gap-6 items-center">
|
||||||
{objectMap(Astro.props.right ?? {}, (path, text) => (
|
{objectMap(Astro.props.right ?? {}, (path, text) => (
|
||||||
<div>
|
<div>
|
||||||
<Button type='ghost' href={path}>
|
<Button ghost href={path}>
|
||||||
{text}
|
{text}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import { defineMiddleware } from "astro/middleware"
|
import { defineMiddleware } from "astro/middleware"
|
||||||
import { buildRFC7807 } from '../libs/RFCs/RFC7807'
|
|
||||||
import ResponseBuilder from '../libs/ResponseBuilder'
|
|
||||||
|
|
||||||
// `context` and `next` are automatically typed
|
// `context` and `next` are automatically typed
|
||||||
export default defineMiddleware(async ({ request }, next) => {
|
export default defineMiddleware(async ({ request }, next) => {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import type { APIRoute } from 'astro'
|
import type { APIRoute } from 'astro'
|
||||||
import ResponseBuilder from '../../libs/ResponseBuilder'
|
import ResponseBuilder from 'libs/ResponseBuilder'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plausible proxy
|
* Plausible proxy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user