prometheus + load-testing
This commit is contained in:
@@ -13,7 +13,7 @@ import { redirect } from "next/navigation";
|
||||
import { ListInput } from "_components/ui/List";
|
||||
|
||||
export const KeywordForm = ({ keyword }: { keyword?: Keyword }) => {
|
||||
const form = useForm<z.infer<typeof KeywordOptionalDefaultsSchema>>({
|
||||
const form = useForm({
|
||||
resolver: zodResolver(KeywordOptionalDefaultsSchema),
|
||||
defaultValues: keyword,
|
||||
});
|
||||
@@ -36,9 +36,7 @@ export const KeywordForm = ({ keyword }: { keyword?: Keyword }) => {
|
||||
<FileText className="w-5 h-5" /> Allgemeines
|
||||
</h2>
|
||||
<label className="form-control w-full ">
|
||||
<span className="label-text text-lg flex items-center gap-2">
|
||||
Kategorie
|
||||
</span>
|
||||
<span className="label-text text-lg flex items-center gap-2">Kategorie</span>
|
||||
<select
|
||||
className="input-sm select select-bordered select-sm w-full"
|
||||
{...form.register("category")}
|
||||
@@ -50,12 +48,7 @@ export const KeywordForm = ({ keyword }: { keyword?: Keyword }) => {
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
<Input
|
||||
form={form}
|
||||
label="Abkürzung"
|
||||
name="abreviation"
|
||||
className="input-sm"
|
||||
/>
|
||||
<Input form={form} label="Abkürzung" name="abreviation" className="input-sm" />
|
||||
<Input
|
||||
form={form}
|
||||
label="Name"
|
||||
@@ -82,11 +75,7 @@ export const KeywordForm = ({ keyword }: { keyword?: Keyword }) => {
|
||||
<div className="card bg-base-200 shadow-xl col-span-6">
|
||||
<div className="card-body ">
|
||||
<div className="flex w-full gap-4">
|
||||
<Button
|
||||
isLoading={loading}
|
||||
type="submit"
|
||||
className="btn btn-primary flex-1"
|
||||
>
|
||||
<Button isLoading={loading} type="submit" className="btn btn-primary flex-1">
|
||||
Speichern
|
||||
</Button>
|
||||
{keyword && (
|
||||
|
||||
@@ -12,7 +12,7 @@ import { Button } from "../../../../_components/ui/Button";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export const StationForm = ({ station }: { station?: Station }) => {
|
||||
const form = useForm<z.infer<typeof StationOptionalDefaultsSchema>>({
|
||||
const form = useForm({
|
||||
resolver: zodResolver(StationOptionalDefaultsSchema),
|
||||
defaultValues: station,
|
||||
});
|
||||
|
||||
@@ -10,50 +10,50 @@
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@eslint/eslintrc": "^3",
|
||||
"@hookform/resolvers": "^5.0.1",
|
||||
"@eslint/eslintrc": "^3.3.1",
|
||||
"@hookform/resolvers": "^5.1.1",
|
||||
"@next-auth/prisma-adapter": "^1.0.7",
|
||||
"@radix-ui/react-icons": "^1.3.2",
|
||||
"@repo/db": "workspace:*",
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/shared-components": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@tailwindcss/postcss": "^4.1.8",
|
||||
"@tanstack/react-query": "^5.79.2",
|
||||
"@tailwindcss/postcss": "^4.1.11",
|
||||
"@tanstack/react-query": "^5.81.5",
|
||||
"@tanstack/react-table": "^8.21.3",
|
||||
"@types/bcryptjs": "^3.0.0",
|
||||
"@types/jsonwebtoken": "^9.0.9",
|
||||
"@types/node": "^22.15.29",
|
||||
"@types/react": "^19.1.6",
|
||||
"@types/react-dom": "^19.1.5",
|
||||
"@types/jsonwebtoken": "^9.0.10",
|
||||
"@types/node": "^22.15.34",
|
||||
"@types/react": "^19.1.8",
|
||||
"@types/react-dom": "^19.1.6",
|
||||
"@uiw/react-md-editor": "^4.0.7",
|
||||
"axios": "^1.9.0",
|
||||
"axios": "^1.10.0",
|
||||
"bcryptjs": "^3.0.2",
|
||||
"clsx": "^2.1.1",
|
||||
"daisyui": "^5.0.43",
|
||||
"date-fns": "^4.1.0",
|
||||
"eslint": "^9.15.0",
|
||||
"eslint-config-next": "^15.3.3",
|
||||
"eslint": "^9.30.0",
|
||||
"eslint-config-next": "^15.3.4",
|
||||
"i": "^0.3.7",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"lodash": "^4.17.21",
|
||||
"lucide-react": "^0.511.0",
|
||||
"next": "^15.3.3",
|
||||
"next": "^15.3.4",
|
||||
"next-auth": "^4.24.11",
|
||||
"next-remove-imports": "^1.0.12",
|
||||
"npm": "^11.4.1",
|
||||
"postcss": "^8.5.4",
|
||||
"npm": "^11.4.2",
|
||||
"postcss": "^8.5.6",
|
||||
"react": "^19.1.0",
|
||||
"react-datepicker": "^8.4.0",
|
||||
"react-day-picker": "^9.7.0",
|
||||
"react-dom": "^19.1.0",
|
||||
"react-error-boundary": "^6.0.0",
|
||||
"react-hook-form": "^7.56.4",
|
||||
"react-hook-form": "^7.59.0",
|
||||
"react-hot-toast": "^2.5.2",
|
||||
"react-select": "^5.10.1",
|
||||
"tailwind-merge": "^3.3.0",
|
||||
"tailwindcss": "^4.1.8",
|
||||
"tailwind-merge": "^3.3.1",
|
||||
"tailwindcss": "^4.1.11",
|
||||
"typescript": "^5.8.3",
|
||||
"zod": "^3.25.46"
|
||||
"zod": "^3.25.67",
|
||||
"zustand": "^5.0.6"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user