mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
27 lines
685 B
TypeScript
27 lines
685 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;
|
|
};
|
|
};
|
|
/** Walkxcode icon
|
|
*
|
|
* @pattern ^(png|svg|webp)\/[\w\d\-_]+\.\1
|
|
* @type string
|
|
*/
|
|
export type WalkxcodeIcon = string & {};
|
|
export type ExternalIcon = `@${"selfhst" | "walkxcode"}/${string}.${string}`;
|
|
export type TargetRelativeIconPath = `@target/${string}` | `/${string}`;
|