mirror of
https://github.com/woodchen-ink/obsidian-publish-to-discourse.git
synced 2025-07-18 05:42:05 +08:00
- 从配置中删除 selectedTags 字段 - 在 ActiveFile 接口中新增 tags 属性 - 调整标签处理流程,从文件的 Front Matter 获取标签 - 更新发布和更新帖子时的标签处理方式 - 优化标签选择和保存机制
15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
import { DiscourseSyncSettings } from './config';
|
|
|
|
export interface ActiveFile {
|
|
name: string;
|
|
content: string;
|
|
postId?: number;
|
|
tags?: string[];
|
|
}
|
|
|
|
export interface PluginInterface {
|
|
settings: DiscourseSyncSettings;
|
|
activeFile: ActiveFile;
|
|
saveSettings(): Promise<void>;
|
|
publishTopic(): Promise<{ success: boolean; error?: string }>;
|
|
}
|