vault backup: 2025-08-26 23:01:44

This commit is contained in:
CrazyJasonwell committed 2025-08-26 23:01:44 +08:00
1 parent b87cba540c
commit 290c8483e8
18 files changed
+12402 -49

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+12
View File
@@ -0,0 +1,12 @@
{
"onlyOfficeServerPort": 3480,
"jwtSecret": "sIQDBApCLBgr2yZQsHJve07bHi4iZDv7",
"localServerAddress": "192.168.1.181",
"htmlServerPort": 0,
"callbackServerPort": 0,
"useRequestToken": true,
"useSystemSaveAs": false,
"hideDownloadAs": true,
"promptNameOnCreate": true,
"restrictToLocalhost": false
}
+59
View File
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>OnlyOffice Embedded Editor</title>
<style>
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; }
#placeholder { width: 100%; height: 100%; }
</style>
</head>
<body>
<div id="placeholder"></div>
<script>
// Host injects a script that defines init payload
(function() {
function boot() {
if (!window.__OO_INIT__) { return setTimeout(boot, 50); }
const { apiScriptUrl, buildConfig, bridge } = window.__OO_INIT__;
const script = document.createElement('script');
script.src = apiScriptUrl;
script.onload = function() {
try {
const cfg = buildConfig();
// Wire events into both config.events and editorConfig.events for compatibility
cfg.events = cfg.events || {};
cfg.editorConfig = cfg.editorConfig || {};
cfg.editorConfig.events = cfg.editorConfig.events || {};
const ev = {
onAppReady: function() { bridge('onlyoffice-app-ready', {}); },
onDocumentStateChange: function(e){ bridge('onlyoffice-dirty-state', { isDirty: !!(e && e.data) }); },
onDocumentContentChanged: function(){ bridge('onlyoffice-dirty-state', { isDirty: true }); },
onDownloadAs: function(e){ bridge('onlyoffice-save-as', e && e.data || {}); },
onRequestSaveAs: function(e){ bridge('onlyoffice-save-as', e && e.data || {}); },
onRequestCreateNew: function(e){ bridge('onlyoffice-create-new', e && e.data || {}); }
};
Object.assign(cfg.events, ev);
Object.assign(cfg.editorConfig.events, ev);
window.docEditor = new window.DocsAPI.DocEditor('placeholder', cfg);
console.log('[embedded-editor] initialized');
// Messages from /api/* pages
window.addEventListener('message', function(ev){
if (!ev || !ev.data) return;
if (ev.data.type === 'onlyoffice-save-as') bridge('onlyoffice-save-as', ev.data.data || {});
if (ev.data.type === 'onlyoffice-create-new') bridge('onlyoffice-create-new', ev.data || {});
});
} catch (err) {
console.error('[embedded-editor] init error', err);
}
};
script.onerror = function(){ console.error('[embedded-editor] failed to load API', apiScriptUrl); };
document.head.appendChild(script);
}
boot();
})();
</script>
</body>
</html>
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
{
"id": "onlyoffice",
"name": "OnlyOffice",
"version": "1.0.0",
"minAppVersion": "0.15.0",
"description": "Edit DOCX files using OnlyOffice Document Server",
"author": "Jan Sansdtröm",
"authorUrl": "https://github.com/yourusername",
"isDesktopOnly": true
}
+1 -1
View File
@@ -34,7 +34,7 @@
"contentTemplate": "# {{{title}}}\n\n{{{description}}}\n\n{{{article_title}}} //文章内容标题\n{{{content}}} //文章正文\n\n\n[Read in Cubox]({{{cubox_url}}}) \n[Read Original]({{{url}}}) \n\n---\n\n{{#highlights.length}}\n## Annotations \n\n{{#highlights}}\n> {{{text}}} \n\n{{#note}}\n{{{note}}}\n{{/note}}\n[Link️]({{{cubox_url}}}) \n\n{{/highlights}}\n{{/highlights.length}}",
"highlightInContent": true,
"dateFormat": "yyyy-MM-dd",
"lastSyncTime": 1756217339834,
"lastSyncTime": 1756219139631,
"lastSyncCardId": "7358083230366436785",
"lastCardUpdateTime": "2025-08-21T13:52:28.950+0800",
"syncing": false
+8 -8
View File
@@ -4,10 +4,18 @@
"basename": "2025-08-26",
"path": "01-工作日记/2025-08-26.md"
},
{
"basename": "Start",
"path": "08-Inbox/Office/Start.pptx"
},
{
"basename": "数据备份方案",
"path": "03-学习笔记/数据备份方案.md"
},
{
"basename": "Start",
"path": "08-Inbox/Office/Start.docx"
},
{
"basename": "2025-08-25",
"path": "01-工作日记/2025-08-25.md"
@@ -191,14 +199,6 @@
{
"basename": "软件下载安装",
"path": "90-学习教程/99-黑曜石玩家指南/1-obsidian入门/软件下载安装.md"
},
{
"basename": "每周定期汇总小结",
"path": "90-学习教程/99-黑曜石玩家指南/1-obsidian入门/每周定期汇总小结.md"
},
{
"basename": "开箱写日志",
"path": "90-学习教程/99-黑曜石玩家指南/1-obsidian入门/开箱写日志.md"
}
],
"omittedPaths": [],
+1 -1
View File
@@ -18,6 +18,6 @@
"01-工作日记/2025-08-24.md": "b82a4f49459f0b3dd8f8b4b2411fc2c682fea28f69b72d5c2cdf28ecac49cfd4",
"01-工作日记/2025-08-25.md": "2c6441d63702944db046c5637e0db95a969a26abc661ebd500662acfbf1e3a22",
"60-Imports/63-WuCai/2025/08/Plex重大变更:无论使用自己还是别人的媒体服务器远程播放都必须付费 – 蓝点网.md": "7a61c7330f970a8283cc70a0511e8b43bd6a160fc65e42fb2bee5f46668c752f",
"01-工作日记/2025-08-26.md": "21a60c32fb116a5e9fa4ce0c36735214b885c22c661a0a1130f67692d847d272"
"01-工作日记/2025-08-26.md": "95ef1aaf127c499d538809bb85054c191268e360119c7c716505a73dc5a6c51b"
}
}