mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 08:50:56 +01:00
* feat(spotlight): add search settings link * feat(search-engine): add to manage pages * feat(spotlight): add children option for external search engines * chore: revert search settings * fix: deepsource issue * fix: inconsistent breadcrum placement * chore: address pull request feedback
16 lines
364 B
TypeScript
16 lines
364 B
TypeScript
import { z } from "zod";
|
|
|
|
const manageAppSchema = z.object({
|
|
name: z.string().min(1).max(64),
|
|
description: z.string().max(512).nullable(),
|
|
iconUrl: z.string().min(1),
|
|
href: z.string().nullable(),
|
|
});
|
|
|
|
const editAppSchema = manageAppSchema.and(z.object({ id: z.string() }));
|
|
|
|
export const appSchemas = {
|
|
manage: manageAppSchema,
|
|
edit: editAppSchema,
|
|
};
|