@qnote/q-ai-note 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/app.js +8 -0
- package/dist/web/index.html +2 -0
- package/package.json +1 -1
package/dist/web/app.js
CHANGED
|
@@ -3691,6 +3691,9 @@ async function initApp() {
|
|
|
3691
3691
|
};
|
|
3692
3692
|
document.getElementById('import-sandbox-dialog')?.addEventListener('submit', importSandboxByLink);
|
|
3693
3693
|
document.getElementById('confirm-import-sandbox-btn')?.addEventListener('click', importSandboxByLink);
|
|
3694
|
+
document.getElementById('refresh-sandboxes-btn')?.addEventListener('click', async () => {
|
|
3695
|
+
await loadSandboxes();
|
|
3696
|
+
});
|
|
3694
3697
|
|
|
3695
3698
|
document.getElementById('add-item-btn')?.addEventListener('click', () => {
|
|
3696
3699
|
if (state.readonly) return;
|
|
@@ -3712,6 +3715,11 @@ async function initApp() {
|
|
|
3712
3715
|
applySandboxLayoutHeight();
|
|
3713
3716
|
});
|
|
3714
3717
|
|
|
3718
|
+
document.getElementById('refresh-sandbox-detail-btn')?.addEventListener('click', async () => {
|
|
3719
|
+
if (!state.currentSandbox?.id) return;
|
|
3720
|
+
await loadSandbox(state.currentSandbox.id);
|
|
3721
|
+
});
|
|
3722
|
+
|
|
3715
3723
|
document.getElementById('toggle-sandbox-fullscreen-btn')?.addEventListener('click', async () => {
|
|
3716
3724
|
await toggleSandboxFullscreen();
|
|
3717
3725
|
applySandboxFullscreenState();
|
package/dist/web/index.html
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
<option value="name_asc">名称(A -> Z)</option>
|
|
54
54
|
</select>
|
|
55
55
|
</label>
|
|
56
|
+
<button class="btn btn-secondary" id="refresh-sandboxes-btn" type="button">刷新</button>
|
|
56
57
|
<button class="btn btn-primary" id="add-sandbox-btn">+ 新建沙盘</button>
|
|
57
58
|
<button class="btn btn-secondary" id="import-sandbox-btn">复制笔记</button>
|
|
58
59
|
</div>
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
<h2 id="sandbox-title">沙盘</h2>
|
|
64
65
|
<div class="summary-strip" id="sandbox-overview"></div>
|
|
65
66
|
<div class="action-strip">
|
|
67
|
+
<button class="btn btn-secondary btn-sm" id="refresh-sandbox-detail-btn" type="button">刷新</button>
|
|
66
68
|
<button class="btn btn-secondary btn-sm" id="generate-insight-btn">智能总结</button>
|
|
67
69
|
<button class="btn btn-secondary btn-sm" id="generate-report-btn">生成汇报</button>
|
|
68
70
|
<button class="btn btn-secondary btn-sm" id="export-sandbox-markdown-btn">导出Markdown</button>
|