diff --git a/src/SwashbucklerDiary.Maui/Layout/MainLayout.razor.cs b/src/SwashbucklerDiary.Maui/Layout/MainLayout.razor.cs index 772a61fc..55d35961 100644 --- a/src/SwashbucklerDiary.Maui/Layout/MainLayout.razor.cs +++ b/src/SwashbucklerDiary.Maui/Layout/MainLayout.razor.cs @@ -52,14 +52,14 @@ protected override void OnDispose() #else private async Task CheckForUpdates() { - bool notPrompt = SettingService.Get(Setting.UpdateNotPrompt); + bool notPrompt = SettingService.Get(it => it.UpdateNotPrompt); if (notPrompt) { return; } string key = "LastAutoCheckForUpdatesTime"; - DateTime dateTime = await SettingService.Get(key, DateTime.MinValue); + DateTime dateTime = await SettingService.GetAsync(key, DateTime.MinValue); if (dateTime != DateTime.MinValue && (DateTime.Now - dateTime).TotalHours < 24) { return; diff --git a/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/en-US.md b/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/en-US.md index 8de1180a..a01c4614 100644 --- a/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/en-US.md +++ b/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/en-US.md @@ -1,13 +1,73 @@ # Update Announcement +[toc] + +Ladies and gentlemen, happy Mid Autumn Festival (although a few days later than expected) + +Received donations from several individuals, 从摩到诺, **恒, 嗯… Thank you very much (if you want to leave a special nickname, such as your favorite animal milk drink, you can leave a note when donating). [direct jump](sponsor) + +There are quite a few updates in this issue, theoretically there should be a better experience, but there are also many changes. If there are any bugs, please provide timely feedback. See you later. + +## New addition + +* Support receiving shared content (text, images, etc.) (Android and Windows only) +* Support scheme startup or redirection (Android and Windows only) [Direct redirection](urlScheme) +* The web supports the return key to return to the previous page or close pop ups +* Support redirecting to internal links, such as [mine](mine) +* Support jumping to other diaries (simply copy the diary link) +* Add first line indentation option [direct jump](diarySetting) +* Add code line number option [direct jump](diarySetting) +* Support `[toc]` syntax for inserting directories +* Reading page tags can be clicked and redirected +* Donation List [direct jump](sponsor?tabs=sponsorList) +* Support pasting and dragging to add media files +* Read diary page keyword highlight search +* Merge selected date journals +* Add task list delete line option [direct jump](diarySetting) +* Search for tag selection pop-up and location selection pop-up +* Add diary card tag option [direct jump](diarCardSetting) +* Add undo and redo buttons to the toolbar +* Return to Top Button +* Add list indentation and anti indentation buttons to the toolbar +* Double click on the reading diary page to enter the editing diary +* Add the option to hide text when selecting weather and mood icons [direct jump](diarySetting) +* The refresh button for web error pages can force a refresh +* Other information (weather, mood, location) display switch [direct jump](diarySetting) +* Adding media files supports multiple selections +* Add time format to diary cards +* Support importing MD +* Add search criteria to diary search + ## Repair -* Markdown footnote cannot be used -* Markdown rendering, quick return may cause exceptions -* Possible configuration failures when WebDAV already has a folder +* Navigation error after clicking on footnote +* The message bar may appear in the wrong position +* Repeatedly inserting update notifications during web updates +* The input box clear button will not trigger an update +* Prompt that the image does not exist when saving or sharing +* Web version Firefox browser, unable to select when editing diary entries +* When editing a diary, there is no content and the diary has not been deleted +* IOS/macOS client cannot load iframe internally +* A small amount of content may be lost when saving a diary +* Collapse caused by soft keyboard retraction +* MacOS 15 client content is blank +* After the screen size increases, the menu occasionally fails to pop up +* IOS/macOS client cannot export diary +* The file selector of some Android client systems pops up multiple times +* Android client audio file selector has limited options for selecting content ## Optimization -* Diary card scrolling lag -* Number of tags rendering logic -* When returning to the media file browsing page, the scrolling position is more accurate \ No newline at end of file +* Cancel the display of the filing number on the web end +* Left and right sliding stutter +* Optimize navigation +* Change the position of the mobile message bar to above +* Hide the rendering of code blocks during editing +* Input box style +* Start in dark mode for faster theme switching +* Right click on the diary card to open the menu +* Location of calendar page buttons +* Web update prompt style +* Update the color scheme in light color mode +* Loading of tabs +* Web error pages support i18n \ No newline at end of file diff --git a/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/version.json b/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/version.json index 10656e30..8044cda0 100644 --- a/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/version.json +++ b/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/version.json @@ -1 +1 @@ -"0.91.6" +"1.2.0" diff --git a/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/zh-CN.md b/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/zh-CN.md index 3bf4c615..79b9015d 100644 --- a/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/zh-CN.md +++ b/src/SwashbucklerDiary.Rcl/wwwroot/docs/update-instruction/zh-CN.md @@ -1,13 +1,73 @@ # 更新公告 +[toc] + +各位侠客们,中秋快乐 (虽然比预期的迟了几天) + +收到 从摩到诺、**恒、嗯… 几位侠客的捐助,特别感谢(如果想留下比较特别的昵称,比如最爱喝兽奶,可以在捐助的时候备注上)[直接跳转](sponsor) + +本期更新内容还挺多的,理论上来说应该能有更好的体验,不过改动的地方也挺多,有什么bug大家及时反馈,回见。 + +## 新增 + +* 支持接收来自分享的内容(文本、图片等)(仅限Android和Windows) +* 支持scheme启动或跳转(仅限Android和Windows) [直接跳转](urlScheme) +* web端支持返回键返回上一页或关闭弹窗 +* 支持跳转到内部链接,例如 [mine](mine) +* 支持跳转到其它日记(复制日记链接即可) +* 增加首行缩进选项 [直接跳转](diarySetting) +* 增加代码行号选项 [直接跳转](diarySetting) +* 支持`[toc]`语法插入目录 +* 阅读页标签可以点击并跳转 +* 捐赠列表 [直接跳转](sponsor?tabs=sponsorList) +* 支持粘贴、拖拽添加媒体文件 +* 阅读日记页面关键词高亮搜索 +* 合并选中日期日记 +* 增加任务列表删除线选项 [直接跳转](diarySetting) +* 选择标签弹窗和选择位置弹窗的搜索 +* 增加日记卡片标签选项 [直接跳转](diaryCardSetting) +* 工具栏增加撤销与重做按钮 +* 回到顶部按钮 +* 工具栏增加列表缩进与反缩进按钮 +* 阅读日记页面双击进入编辑日记 +* 增加天气图标、心情图标选择时隐藏文本选项 [直接跳转](diarySetting) +* web端错误页面刷新按钮可以强制刷新 +* 其他信息(天气、心情、位置)显示开关 [直接跳转](diarySetting) +* 添加媒体文件支持多选 +* 日记卡片增加时间格式 +* 支持导入md +* 日记搜索增加搜索条件 + ## 修复 -* Markdown脚注无法使用 -* Markdown渲染,快速返回可能出现异常 -* WebDAV已存在文件夹时,可能出现的配置失败 +* 点击脚注后的导航错误 +* 消息条可能出现在错误的位置 +* web端更新时重复插入更新公告 +* 输入框清除按钮不会触发更新 +* 图片保存或分享时提示图片不存在 +* web端火狐浏览器,编辑日记时无法选中 +* 编辑日记时无内容未删除日记 +* iOS/macOS客户端无法在内部加载iframe +* 保存日记时可能丢失小部分内容 +* 软键盘收放导致的崩溃 +* macOS 15客户端内容空白 +* 屏幕尺寸变大后,菜单偶尔无法弹出 +* iOS/macOS客户端无法导出日记 +* 安卓客户端某些系统的文件选择器多次弹出 +* 安卓客户端音频文件选择器可选内容较少 ## 优化 -* 日记卡片滚动卡顿 -* 标签数量渲染逻辑 -* 返回媒体文件浏览页面时,滚动位置更准确 \ No newline at end of file +* web端取消显示备案号 +* 左右滑动卡顿 +* 优化导航 +* 移动端消息条位置改为上方 +* 编辑时隐藏代码块的渲染 +* 输入框样式 +* 深色模式时启动,主题的切换更快 +* 日记卡片右键可以打开菜单 +* 日历页面按钮的位置 +* web端更新提示样式 +* 更新浅色模式下的配色 +* 标签页的加载 +* web端错误页面支持i18n \ No newline at end of file diff --git a/src/SwashbucklerDiary.Rcl/wwwroot/json/sponsor/sponsor-list.json b/src/SwashbucklerDiary.Rcl/wwwroot/json/sponsor/sponsor-list.json index e46bcca8..ba6853e9 100644 --- a/src/SwashbucklerDiary.Rcl/wwwroot/json/sponsor/sponsor-list.json +++ b/src/SwashbucklerDiary.Rcl/wwwroot/json/sponsor/sponsor-list.json @@ -2,5 +2,7 @@ "墨子赋", "***欣", "闲野", - "从摩到诺" + "从摩到诺", + "**恒", + "嗯..." ] \ No newline at end of file