feat: use .ts instead of .yaml for configurations

This commit is contained in:
saicaca
2023-10-23 17:45:07 +08:00
parent 9f213d525f
commit 1ae4a8eee9
23 changed files with 4259 additions and 375 deletions

View File

@@ -1,40 +0,0 @@
// @ts-ignore
import _config from '../../fuwari.config.yml';
interface FuwariConfig {
title: string;
menu: {
[key: string]: string;
};
lang: string;
appearance: {
hue: number;
};
favicon: string;
banner: {
enable: boolean;
url: string;
position: string;
onAllPages: boolean;
};
sidebar: {
widgets: {
normal: string | string[];
sticky: string | string[];
};
};
profile: {
avatar: string;
author: string;
subtitle: string;
links: {
name: string;
icon: string;
url: string;
}[];
}
}
const config: FuwariConfig = _config;
export const getConfig = () => config;