mirror of
https://github.com/long2icc/sonicnote-sync.git
synced 2026-07-22 07:45:14 +00:00
feat: 更新版本至1.1.3,优化同步时间显示格式,更新下载链接和版本信息
This commit is contained in:
parent
955d3c1cc4
commit
4f44ca0659
8 changed files with 18 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "sonicnote-sync",
|
||||
"name": "SonicNote Sync",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Sync recordings from SonicNote to Obsidian as Markdown files",
|
||||
"author": "EasyLinkIn",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "sonicnote-sync",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"description": "Sync recordings from SonicNote to Obsidian as Markdown files",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -133,10 +133,10 @@
|
|||
<body>
|
||||
|
||||
<header class="header">
|
||||
<div class="version">v1.1.2</div>
|
||||
<div class="version">v1.1.3</div>
|
||||
<h1>SonicNote Sync</h1>
|
||||
<p>将 SonicNote 妙记的录音、转录、总结同步到 Obsidian,以 Markdown 文件管理。</p>
|
||||
<a class="download-btn" href="sonicnote-sync-v1.1.2.zip" download>
|
||||
<a class="download-btn" href="sonicnote-sync-v1.1.3.zip" download>
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
|
||||
下载插件
|
||||
</a>
|
||||
|
|
@ -146,11 +146,19 @@
|
|||
|
||||
<div class="card">
|
||||
<h2>更新记录</h2>
|
||||
<h3>v1.1.3</h3>
|
||||
<ul>
|
||||
<li>同步时间显示跟随系统时区</li>
|
||||
</ul>
|
||||
<h3>v1.1.2</h3>
|
||||
<ul>
|
||||
<li>已同步的录音不会被覆盖更新,删除文件后重新同步即可获取最新内容</li>
|
||||
<li>唯一例外:录音尚未生成总结时文件名为原始名称(如 Note-xxx.mp3),生成总结标题后再次同步会自动覆盖并重命名为总结标题</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>已同步的录音不会被覆盖更新,删除文件后重新同步即可获取最新内容</li>
|
||||
<li>唯一例外:录音尚未生成总结时文件名为原始名称(如 Note-xxx.mp3),生成总结标题后再次同步会自动覆盖并重命名为总结标题</li>
|
||||
</ul>
|
||||
<h3>v1.1.0</h3>
|
||||
<ul>
|
||||
<li>修复录音进行中重复创建文件的问题</li>
|
||||
|
|
@ -172,7 +180,7 @@
|
|||
<div class="card">
|
||||
<h2>安装</h2>
|
||||
<ol>
|
||||
<li>点击上方按钮下载 <span class="inline-code">sonicnote-sync-v1.1.2.zip</span></li>
|
||||
<li>点击上方按钮下载 <span class="inline-code">sonicnote-sync-v1.1.3.zip</span></li>
|
||||
<li>解压 zip 文件,得到以下文件:
|
||||
<ul style="margin-top:4px;">
|
||||
<li><span class="inline-code">main.js</span></li>
|
||||
|
|
|
|||
Binary file not shown.
BIN
release/sonicnote-sync-v1.1.3.zip
Normal file
BIN
release/sonicnote-sync-v1.1.3.zip
Normal file
Binary file not shown.
|
|
@ -113,7 +113,7 @@ export default class SonicNoteSyncPlugin extends Plugin {
|
|||
private updateStatusBar() {
|
||||
if (this.api.isAuthenticated()) {
|
||||
const lastSync = this.settings.lastSyncTime
|
||||
? `上次同步: ${this.settings.lastSyncTime.substring(0, 16).replace('T', ' ')}`
|
||||
? `上次同步: ${this.settings.lastSyncTime}`
|
||||
: '未同步';
|
||||
this.statusBarEl.setText(`SonicNote: ${lastSync}`);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ export class SyncService {
|
|||
}
|
||||
|
||||
// 5. Update last sync time
|
||||
const now = new Date().toISOString();
|
||||
const now = new Date().toLocaleString('zh-CN', { hour12: false }).replace(/\//g, '-');
|
||||
settings.lastSyncTime = now;
|
||||
await this.saveSettings();
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ export class SyncService {
|
|||
}
|
||||
|
||||
private async processRecording(recording: Recording, localIndex: Map<string, LocalFileInfo>, settings: SonicNotePluginSettings): Promise<void> {
|
||||
const syncTime = new Date().toISOString();
|
||||
const syncTime = new Date().toLocaleString('zh-CN', { hour12: false }).replace(/\//g, '-');
|
||||
|
||||
const local = localIndex.get(recording.audioId);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"1.0.0": "0.15.0",
|
||||
"1.1.0": "0.15.0",
|
||||
"1.1.2": "0.15.0"
|
||||
"1.1.2": "0.15.0",
|
||||
"1.1.3": "0.15.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue