mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
22 lines
645 B
TypeScript
22 lines
645 B
TypeScript
import { URL } from "../types";
|
|
/**
|
|
* @additionalProperties false
|
|
*/
|
|
export type HomepageConfig = {
|
|
/** Whether show in dashboard
|
|
*
|
|
* @default true
|
|
*/
|
|
show?: boolean;
|
|
name?: string;
|
|
icon?: URL | WalkxcodeIcon | ExternalIcon | TargetRelativeIconPath;
|
|
description?: string;
|
|
url?: URL;
|
|
category?: string;
|
|
widget_config?: {
|
|
[key: string]: any;
|
|
};
|
|
};
|
|
export type WalkxcodeIcon = `${"png" | "svg" | "webp"}/${string}/${string}.${string}`;
|
|
export type ExternalIcon = `@${"selfhst" | "walkxcode"}/${string}.${string}`;
|
|
export type TargetRelativeIconPath = `@target/${string}` | `/${string}`;
|