84 Commits

Author SHA1 Message Date
25982b1541 优化样式文件,统一使用 CSS 变量以提高可维护性,增强按钮和通知的可见性,添加过渡效果,确保在不同主题下的兼容性。 2025-06-20 21:04:52 +08:00
48609ce681 1.0.18 1.0.18 2025-04-03 17:08:08 +08:00
2f32fca358 更新 fetchCategories 方法,添加 include_subcategories 参数以获取子分类信息 2025-04-03 17:07:51 +08:00
9c6157625a 更新 README.md,移除冗余的表达优化说明 2025-03-24 21:01:27 +08:00
71267c53f1 1.0.17 1.0.17 2025-03-19 13:16:30 +08:00
0c97380a32 新增跳过一级标题选项,优化发布到 Discourse 的内容处理
- 在配置中添加 skipH1 字段,默认为 false
- 更新发布逻辑,支持根据设置跳过 Markdown 中的 H1 标题
- 添加相应的国际化支持,包括英文和中文描述
2025-03-19 13:16:11 +08:00
57863bb962 1.0.16 1.0.16 2025-03-10 20:09:24 +08:00
d6221a4f91 新增主题信息获取功能,完善 Discourse 同步机制
- 在 DiscourseAPI 中添加 fetchTopicInfo 和 fetchTopicTags 方法
- 更新发布流程,支持从 Discourse 同步最新标签和分类信息
- 在更新帖子时自动获取并同步 Discourse 上的标签和分类
- 扩展 Front Matter,新增 discourse_category_id 和 discourse_category 字段
- 优化更新逻辑,确保本地文件与 Discourse 内容保持一致
2025-03-10 20:09:08 +08:00
53d30650b5 1.0.15 1.0.15 2025-03-10 19:54:00 +08:00
862c42da61 重构标签处理逻辑,移除配置中的固定标签设置
- 从配置中删除 selectedTags 字段
- 在 ActiveFile 接口中新增 tags 属性
- 调整标签处理流程,从文件的 Front Matter 获取标签
- 更新发布和更新帖子时的标签处理方式
- 优化标签选择和保存机制
2025-03-10 19:53:32 +08:00
cc1e06ec5c 重构插件架构,解耦主要功能模块
- 将主类拆分为多个专注的模块,如 DiscourseAPI、EmbedHandler
- 重命名主类为 PublishToDiscourse,提高语义清晰度
- 抽取通用工具函数到独立模块
- 优化代码结构,提高可维护性和可读性
- 调整 Front Matter 处理和嵌入内容处理逻辑
2025-03-10 19:33:50 +08:00
310be30030 1.0.14 1.0.14 2025-03-07 21:55:15 +08:00
08ad35babe 回退图片部分正则表达式, 保留activefile修改 2025-03-07 21:54:58 +08:00
836c9d9661 1.0.13 2025-03-07 21:34:52 +08:00
9152aa5d60 1.0.12 1.0.12 2025-03-07 15:23:54 +08:00
d3b678fc81 修复 activeFile 处理逻辑,增强文件选择和模态框稳定性
- 在打开类别模态框前确保 activeFile 正确初始化
- 添加对未选择文件场景的错误处理
- 在类别选择模态框中增加 activeFile 存在性检查
- 提升插件在不同文件选择状态下的健壮性
2025-03-07 15:23:28 +08:00
9ca83b1d15 1.0.11 1.0.11 2025-03-07 07:10:29 +08:00
502196429a 添加 API 密钥测试功能
- 在设置页面新增"测试连接"按钮
- 实现 testApiKey 方法验证 Discourse API 凭据
- 添加连接测试的成功和失败消息处理
- 更新中英文国际化文案支持新功能
2025-03-07 07:10:02 +08:00
6338c736ca 1.0.10 1.0.10 2025-03-06 21:52:25 +08:00
ce8b608b8c 优化帖子更新逻辑,支持同时更新帖子内容和主题信息
- 分离帖子内容和主题更新流程
- 添加对主题标题和标签的单独更新支持
- 改进错误处理和响应处理机制
- 在标签选择模态框中添加更新时的标签初始化
2025-03-06 21:52:07 +08:00
049162579c 1.0.9 1.0.9 2025-03-01 20:50:32 +08:00
2c952865c2 更新赞助链接并添加中英文对照说明 2025-03-01 20:50:16 +08:00
4534eccf0d Merge branch 'mcerv-sci-support-embedded-notes' 2025-03-01 20:31:58 +08:00
mcerv-sci
54d1b95660 Adding a routine that expands all embedded linked notes into the content variable using a recursive approach 2025-02-24 18:00:55 +01:00
30434e1fcc 1.0.8 1.0.8 2025-02-16 16:53:26 +08:00
wood chen
6240b15a6e
Update README.md 2025-02-16 16:52:12 +08:00
29dd480242 Add "Open in Discourse" feature
- Implement command to open published Discourse post directly from Obsidian
- Update frontmatter to store topic ID and Discourse URL
- Add internationalization support for new feature
- Update README with new keyboard shortcut instructions
2025-02-16 16:51:19 +08:00
ac7efabc98 1.0.7 1.0.7 2025-02-05 13:30:33 +08:00
898496007f Use frontmatter title as post title when available
- Modify post title generation to prefer frontmatter title
- Fallback to filename if no frontmatter title is present
2025-02-05 13:29:57 +08:00
8f31ae8f96 1.0.6 1.0.6 2025-02-03 23:07:37 +08:00
f27ada6a4e Add internationalization (i18n) support
- Introduced i18n framework with translation support
- Updated config, main, and styles files to use translation keys
- Implemented dynamic locale setting based on Obsidian's language
- Replaced hardcoded Chinese strings with translatable keys
- Added locale change event listener to update translations dynamically
2025-02-03 23:07:04 +08:00
9d64d31947 1.0.5 1.0.5 2025-01-24 17:10:23 +08:00
ce2d944ee6 Enhance DiscourseSyncPlugin with tag management features
- Updated styles for modal and form areas to improve layout and usability.
- Added support for selecting and managing tags in the DiscourseSync settings.
- Implemented fetching of available tags from the Discourse API.
- Enhanced the category selection modal to include tag selection functionality.
- Updated settings interface to store selected tags.
- Improved error handling and user feedback during tag operations.
2025-01-24 17:09:58 +08:00
efbb0a5c9c 1.0.4 1.0.4 2025-01-24 00:15:48 +08:00
95e541e1a7 实现更新帖子的功能 2025-01-24 00:14:34 +08:00
c4513b5abc 1.0.3 1.0.3 2025-01-23 23:46:41 +08:00
7cab38dc9a Downgrade version to 1.0.2 in manifest.json and versions.json, removing the entry for 1.0.4. 2025-01-23 23:45:40 +08:00
38c3c4b2f8 Downgrade version to 1.0.2 in package.json 2025-01-23 23:44:37 +08:00
b619eb312a 1.0.4 2025-01-23 23:43:33 +08:00
97fa7a69e4 Update version to 1.0.3 in package.json 2025-01-23 23:43:19 +08:00
edc6b47c12 1.0.1 2025-01-23 23:40:45 +08:00
0a685b2463 Update version to 1.0.2 in manifest.json and add corresponding entry in versions.json 1.0.2 2025-01-23 23:33:17 +08:00
65444caad1 Remove unused style.css file and update release workflow to reference styles.css instead of style.css. Enhance error handling in postTopic method to provide detailed feedback on publishing errors in DiscourseSyncPlugin. 2025-01-23 23:21:53 +08:00
wood chen
f7c532d686
Update README.md 2025-01-16 01:42:49 +08:00
3acc0dc2f4 Enhance GitHub Actions workflow by adding write permissions for contents in release.yml 1.0.1 2025-01-16 01:35:04 +08:00
097f23a67e Update version to 1.0.1 in manifest.json and add version entry in versions.json 2025-01-09 12:49:33 +08:00
59e287bce9 Update manifest.json funding URL, remove unnecessary console logs, and clean up UI elements in DiscourseSyncPlugin. 2025-01-09 12:48:19 +08:00
wood chen
85bf0877ed
Update README.md 2025-01-08 15:56:41 +08:00
14e448c37a Remove unused styles.css file to streamline the plugin and reduce unnecessary assets. 2024-12-22 20:06:50 +08:00
b37e4bdcb5 fix 2024-12-22 20:01:35 +08:00