style: 统一代码格式并修复样式问题
- 移除 env.d.ts 和 vite.config.ts 中多余的空行 - 修复 package.json 和 tsconfig.json 的换行符问题 - 标准化对象字面量和函数参数中的尾部逗号 - 将登录图标样式从 max-width 改为明确的 width 和 height - 压缩 index.html 中 favicon 链接的格式 - 简化 admin.ts 中函数参数的类型声明格式
This commit is contained in:
@@ -174,7 +174,7 @@ export function updateComment(data: {
|
||||
postSlug: data.postSlug,
|
||||
content: data.contentText,
|
||||
status: data.status,
|
||||
priority: data.priority
|
||||
priority: data.priority,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -323,10 +323,7 @@ export function fetchFeatureSettings(): Promise<FeatureSettingsResponse> {
|
||||
return get<FeatureSettingsResponse>('/admin/settings/features');
|
||||
}
|
||||
|
||||
export function saveFeatureSettings(data: {
|
||||
enableCommentLike?: boolean;
|
||||
enableArticleLike?: boolean;
|
||||
}): Promise<{ message: string }> {
|
||||
export function saveFeatureSettings(data: { enableCommentLike?: boolean; enableArticleLike?: boolean }): Promise<{ message: string }> {
|
||||
return put<{ message: string }>('/admin/settings/features', data);
|
||||
}
|
||||
|
||||
@@ -340,11 +337,7 @@ export function fetchTelegramSettings(): Promise<TelegramSettingsResponse> {
|
||||
return get<TelegramSettingsResponse>('/admin/settings/telegram');
|
||||
}
|
||||
|
||||
export function saveTelegramSettings(data: {
|
||||
botToken?: string;
|
||||
chatId?: string;
|
||||
notifyEnabled?: boolean;
|
||||
}): Promise<{ message: string }> {
|
||||
export function saveTelegramSettings(data: { botToken?: string; chatId?: string; notifyEnabled?: boolean }): Promise<{ message: string }> {
|
||||
return put<{ message: string }>('/admin/settings/telegram', data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user