mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +02:00

* use auto generated schemas * go version bump and dependencies upgrade * clarify some error messages --------- Co-authored-by: yusing <yusing@6uo.me>
36 lines
696 B
TypeScript
36 lines
696 B
TypeScript
import { URL } from "../types";
|
|
|
|
/**
|
|
* @additionalProperties false
|
|
*/
|
|
export type HomepageConfig = {
|
|
/** Whether show in dashboard
|
|
*
|
|
* @default true
|
|
*/
|
|
show?: boolean;
|
|
/* Display name on dashboard */
|
|
name?: string;
|
|
/* Display icon on dashboard */
|
|
icon?: URL | WalkxcodeIcon | TargetRelativeIconPath;
|
|
/* App description */
|
|
description?: string;
|
|
/* Override url */
|
|
url?: URL;
|
|
/* App category */
|
|
category?: string;
|
|
/* Widget config */
|
|
widget_config?: {
|
|
[key: string]: any;
|
|
};
|
|
};
|
|
|
|
/**
|
|
* @pattern ^(png|svg|webp)\\/[\\w\\d\\-_]+\\.\\1$
|
|
*/
|
|
export type WalkxcodeIcon = string;
|
|
|
|
/**
|
|
* @pattern ^@target/.+$
|
|
*/
|
|
export type TargetRelativeIconPath = string;
|