2024-11-19 00:20:31 +08:00
|
|
|
import { Configuration } from "contracts/generalContract";
|
2024-11-11 13:45:02 +08:00
|
|
|
export interface ThemeConfig {
|
2024-11-22 13:13:04 +08:00
|
|
|
name: string;
|
|
|
|
displayName: string;
|
|
|
|
icon?: string;
|
|
|
|
version: string;
|
|
|
|
description?: string;
|
|
|
|
author?: string;
|
|
|
|
templates: Map<string, ThemeTemplate>;
|
|
|
|
globalSettings?: {
|
|
|
|
layout?: string;
|
|
|
|
css?: string;
|
|
|
|
};
|
|
|
|
configuration: Configuration;
|
|
|
|
routes: {
|
|
|
|
index: string;
|
|
|
|
post: string;
|
|
|
|
tag: string;
|
|
|
|
category: string;
|
|
|
|
error: string;
|
|
|
|
loding: string;
|
|
|
|
page: Map<string, string>;
|
|
|
|
};
|
2024-11-11 19:31:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ThemeTemplate {
|
2024-11-22 13:13:04 +08:00
|
|
|
path: string;
|
|
|
|
name: string;
|
|
|
|
description?: string;
|
2024-11-11 19:31:40 +08:00
|
|
|
}
|