vault backup: 2025-03-07 22:32:33

This commit is contained in:
SeedList
2025-03-07 22:32:33 +08:00
12 changed files with 268 additions and 11 deletions

5
.obsidian/app.json vendored
View File

@ -5,5 +5,10 @@
"strictLineBreaks": true, "strictLineBreaks": true,
"useMarkdownLinks": true, "useMarkdownLinks": true,
"showLineNumber": false, "showLineNumber": false,
<<<<<<< HEAD
"trashOption": "local" "trashOption": "local"
=======
"trashOption": "local",
"alwaysUpdateLinks": true
>>>>>>> origin/main
} }

View File

@ -1,5 +1,10 @@
{ {
"nativeMenus": true, "nativeMenus": true,
"cssTheme": "ITS Theme", "cssTheme": "ITS Theme",
<<<<<<< HEAD
"accentColor": "" "accentColor": ""
=======
"accentColor": "",
"theme": "obsidian"
>>>>>>> origin/main
} }

View File

@ -3,8 +3,15 @@
"nuke-orphans", "nuke-orphans",
"hidden-folder-obsidian", "hidden-folder-obsidian",
"update-relative-links", "update-relative-links",
<<<<<<< HEAD
"easy-typing-obsidian", "easy-typing-obsidian",
"file-explorer-note-count", "file-explorer-note-count",
"obsidian-git", "obsidian-git",
"better-export-pdf" "better-export-pdf"
=======
"better-export-pdf",
"easy-typing-obsidian",
"file-explorer-note-count",
"obsidian-git"
>>>>>>> origin/main
] ]

View File

@ -32,6 +32,10 @@
"repelStrength": 10, "repelStrength": 10,
"linkStrength": 1, "linkStrength": 1,
"linkDistance": 250, "linkDistance": 250,
<<<<<<< HEAD
"scale": 0.535979599622594, "scale": 0.535979599622594,
=======
"scale": 0.7514342322277586,
>>>>>>> origin/main
"close": true "close": true
} }

View File

@ -1,5 +1,9 @@
{ {
<<<<<<< HEAD
"showTitle": true, "showTitle": true,
=======
"showTitle": false,
>>>>>>> origin/main
"maxLevel": "6", "maxLevel": "6",
"displayHeader": true, "displayHeader": true,
"displayFooter": true, "displayFooter": true,

View File

@ -19928,6 +19928,12 @@ function copyAttributes(node, attributes) {
node.setAttribute(attr.name, attr.value); node.setAttribute(attr.name, attr.value);
}); });
} }
<<<<<<< HEAD
=======
function isNumber(str) {
return !isNaN(parseFloat(str));
}
>>>>>>> origin/main
// src/pdf.ts // src/pdf.ts
async function getDestPosition(pdfDoc) { async function getDestPosition(pdfDoc) {
@ -20154,27 +20160,51 @@ function setMetadata(pdfDoc, { title, author, keywords, subject, creator, create
pdfDoc.setModificationDate(new Date(updated_at != null ? updated_at : /* @__PURE__ */ new Date())); pdfDoc.setModificationDate(new Date(updated_at != null ? updated_at : /* @__PURE__ */ new Date()));
} }
async function exportToPDF(outputFile, config, w, { doc, frontMatter }) { async function exportToPDF(outputFile, config, w, { doc, frontMatter }) {
<<<<<<< HEAD
var _a, _b, _c, _d, _e, _f, _g, _h, _i; var _a, _b, _c, _d, _e, _f, _g, _h, _i;
=======
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
>>>>>>> origin/main
console.log("output pdf:", outputFile); console.log("output pdf:", outputFile);
let pageSize = config["pageSize"]; let pageSize = config["pageSize"];
if (config["pageSize"] == "Custom" && config["pageWidth"] && config["pageHeight"]) { if (config["pageSize"] == "Custom" && config["pageWidth"] && config["pageHeight"]) {
pageSize = { pageSize = {
<<<<<<< HEAD
width: parseFloat((_a = config["pageWidth"]) != null ? _a : "0") / 25.4, width: parseFloat((_a = config["pageWidth"]) != null ? _a : "0") / 25.4,
height: parseFloat((_b = config["pageHeight"]) != null ? _b : "0") / 25.4 height: parseFloat((_b = config["pageHeight"]) != null ? _b : "0") / 25.4
}; };
} }
=======
width: parseFloat((_a = config["pageWidth"]) != null ? _a : "210") / 25.4,
height: parseFloat((_b = config["pageHeight"]) != null ? _b : "297") / 25.4
};
}
let scale2 = (_c = config == null ? void 0 : config["scale"]) != null ? _c : 100;
if (scale2 > 200 || scale2 < 10) {
scale2 = 100;
}
>>>>>>> origin/main
const printOptions = { const printOptions = {
landscape: config == null ? void 0 : config["landscape"], landscape: config == null ? void 0 : config["landscape"],
printBackground: config == null ? void 0 : config["printBackground"], printBackground: config == null ? void 0 : config["printBackground"],
generateTaggedPDF: config == null ? void 0 : config["generateTaggedPDF"], generateTaggedPDF: config == null ? void 0 : config["generateTaggedPDF"],
pageSize, pageSize,
<<<<<<< HEAD
scale: config["scale"] / 100, scale: config["scale"] / 100,
=======
scale: scale2 / 100,
>>>>>>> origin/main
margins: { margins: {
marginType: "default" marginType: "default"
}, },
displayHeaderFooter: config["displayHeader"] || config["displayFooter"], displayHeaderFooter: config["displayHeader"] || config["displayFooter"],
<<<<<<< HEAD
headerTemplate: config["displayHeader"] ? (_c = frontMatter == null ? void 0 : frontMatter["headerTemplate"]) != null ? _c : config["headerTemplate"] : "<span></span>", headerTemplate: config["displayHeader"] ? (_c = frontMatter == null ? void 0 : frontMatter["headerTemplate"]) != null ? _c : config["headerTemplate"] : "<span></span>",
footerTemplate: config["displayFooter"] ? (_d = frontMatter == null ? void 0 : frontMatter["footerTemplate"]) != null ? _d : config["footerTemplate"] : "<span></span>" footerTemplate: config["displayFooter"] ? (_d = frontMatter == null ? void 0 : frontMatter["footerTemplate"]) != null ? _d : config["footerTemplate"] : "<span></span>"
=======
headerTemplate: config["displayHeader"] ? (_d = frontMatter == null ? void 0 : frontMatter["headerTemplate"]) != null ? _d : config["headerTemplate"] : "<span></span>",
footerTemplate: config["displayFooter"] ? (_e = frontMatter == null ? void 0 : frontMatter["footerTemplate"]) != null ? _e : config["footerTemplate"] : "<span></span>"
>>>>>>> origin/main
}; };
if (config.marginType == "0") { if (config.marginType == "0") {
printOptions["margins"] = { printOptions["margins"] = {
@ -20199,10 +20229,17 @@ async function exportToPDF(outputFile, config, w, { doc, frontMatter }) {
} else if (config.marginType == "3") { } else if (config.marginType == "3") {
printOptions["margins"] = { printOptions["margins"] = {
marginType: "custom", marginType: "custom",
<<<<<<< HEAD
top: parseFloat((_e = config["marginTop"]) != null ? _e : "0") / 25.4, top: parseFloat((_e = config["marginTop"]) != null ? _e : "0") / 25.4,
bottom: parseFloat((_f = config["marginBottom"]) != null ? _f : "0") / 25.4, bottom: parseFloat((_f = config["marginBottom"]) != null ? _f : "0") / 25.4,
left: parseFloat((_g = config["marginLeft"]) != null ? _g : "0") / 25.4, left: parseFloat((_g = config["marginLeft"]) != null ? _g : "0") / 25.4,
right: parseFloat((_h = config["marginRight"]) != null ? _h : "0") / 25.4 right: parseFloat((_h = config["marginRight"]) != null ? _h : "0") / 25.4
=======
top: parseFloat((_f = config["marginTop"]) != null ? _f : "0") / 25.4,
bottom: parseFloat((_g = config["marginBottom"]) != null ? _g : "0") / 25.4,
left: parseFloat((_h = config["marginLeft"]) != null ? _h : "0") / 25.4,
right: parseFloat((_i = config["marginRight"]) != null ? _i : "0") / 25.4
>>>>>>> origin/main
}; };
} }
try { try {
@ -20211,7 +20248,11 @@ async function exportToPDF(outputFile, config, w, { doc, frontMatter }) {
headings: getHeadingTree(doc), headings: getHeadingTree(doc),
frontMatter, frontMatter,
displayMetadata: config == null ? void 0 : config.displayMetadata, displayMetadata: config == null ? void 0 : config.displayMetadata,
<<<<<<< HEAD
maxLevel: parseInt((_i = config == null ? void 0 : config.maxLevel) != null ? _i : "6") maxLevel: parseInt((_i = config == null ? void 0 : config.maxLevel) != null ? _i : "6")
=======
maxLevel: parseInt((_j = config == null ? void 0 : config.maxLevel) != null ? _j : "6")
>>>>>>> origin/main
}); });
await fs.writeFile(outputFile, data); await fs.writeFile(outputFile, data);
if (config.open) { if (config.open) {
@ -20308,6 +20349,14 @@ body {
break-after: auto; break-after: auto;
} }
} }
<<<<<<< HEAD
=======
img.__canvas__ {
width: 100% !important;
height: 100% !important;
}
>>>>>>> origin/main
`; `;
function getPatchStyle() { function getPatchStyle() {
return [CSS_PATCH, ...getPrintStyle()]; return [CSS_PATCH, ...getPrintStyle()];
@ -20760,8 +20809,12 @@ ${px2mm(width)}\xD7${px2mm(height)}mm`;
await this.appendWebviews(el); await this.appendWebviews(el);
this.togglePrintSize(); this.togglePrintSize();
}); });
<<<<<<< HEAD
const contentEl = wrapper.createDiv(); const contentEl = wrapper.createDiv();
contentEl.setAttribute("style", "width:320px;margin-left:16px;"); contentEl.setAttribute("style", "width:320px;margin-left:16px;");
=======
const contentEl = wrapper.createDiv({ attr: { class: "setting-wrapper" } });
>>>>>>> origin/main
contentEl.addEventListener("keyup", (event) => { contentEl.addEventListener("keyup", (event) => {
if (event.key === "Enter") { if (event.key === "Enter") {
handleExport(); handleExport();
@ -20769,8 +20822,20 @@ ${px2mm(width)}\xD7${px2mm(height)}mm`;
}); });
this.generateForm(contentEl); this.generateForm(contentEl);
const handleExport = async () => { const handleExport = async () => {
<<<<<<< HEAD
this.plugin.settings.prevConfig = this.config; this.plugin.settings.prevConfig = this.config;
await this.plugin.saveSettings(); await this.plugin.saveSettings();
=======
var _a2, _b2;
this.plugin.settings.prevConfig = this.config;
await this.plugin.saveSettings();
if (this.config["pageSize"] == "Custom") {
if (!isNumber((_a2 = this.config["pageWidth"]) != null ? _a2 : "") || !isNumber((_b2 = this.config["pageHeight"]) != null ? _b2 : "")) {
alert("When the page size is Custom, the Width/Height cannot be empty.");
return;
}
}
>>>>>>> origin/main
if (this.multiplePdf) { if (this.multiplePdf) {
const outputPath = await getOutputPath(title); const outputPath = await getOutputPath(title);
console.log("output:", outputPath); console.log("output:", outputPath);

View File

@ -1,7 +1,11 @@
{ {
"id": "better-export-pdf", "id": "better-export-pdf",
"name": "Better Export PDF", "name": "Better Export PDF",
<<<<<<< HEAD
"version": "1.10.0", "version": "1.10.0",
=======
"version": "1.10.2",
>>>>>>> origin/main
"minAppVersion": "0.15.0", "minAppVersion": "0.15.0",
"description": "Export your notes to PDF, support export preview, add bookmarks outline and header/footer.", "description": "Export your notes to PDF, support export preview, add bookmarks outline and header/footer.",
"author": "l1xnan", "author": "l1xnan",

View File

@ -50,3 +50,15 @@
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
<<<<<<< HEAD
=======
#better-export-pdf .setting-wrapper {
width: 320px;
margin-left: 16px;
}
#better-export-pdf .setting-wrapper .setting-item[hidden] {
display: none;
}
>>>>>>> origin/main

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,13 @@
{ {
"id": "consistent-attachments-and-links", "id": "consistent-attachments-and-links",
"name": "Consistent Attachments and Links", "name": "Consistent Attachments and Links",
<<<<<<< HEAD
"version": "3.24.1", "version": "3.24.1",
"minAppVersion": "1.7.7", "minAppVersion": "1.7.7",
=======
"version": "3.24.13",
"minAppVersion": "1.8.7",
>>>>>>> origin/main
"description": "This plugin ensures the consistency of attachments and links", "description": "This plugin ensures the consistency of attachments and links",
"author": "Dmitry Savosh", "author": "Dmitry Savosh",
"authorUrl": "https://github.com/dy-sh/", "authorUrl": "https://github.com/dy-sh/",

View File

@ -4,17 +4,17 @@
"type": "split", "type": "split",
"children": [ "children": [
{ {
"id": "d46c0c3913940846", "id": "778ccfc777c4e0ee",
"type": "tabs", "type": "tabs",
"children": [ "children": [
{ {
"id": "c42cf36058a8bc53", "id": "eb16dc01c4ff50b2",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "graph", "type": "empty",
"state": {}, "state": {},
"icon": "lucide-git-fork", "icon": "lucide-file",
"title": "关系图谱" "title": "新标签页"
} }
} }
] ]
@ -141,11 +141,12 @@
"title": "21.项目类权限详解 的出链列表" "title": "21.项目类权限详解 的出链列表"
} }
} }
] ],
"currentTab": 1
} }
], ],
"direction": "horizontal", "direction": "horizontal",
"width": 200 "width": 565.5
}, },
"left-ribbon": { "left-ribbon": {
"hiddenItems": { "hiddenItems": {
@ -157,13 +158,13 @@
"hidden-folder-obsidian:显示文件夹": false "hidden-folder-obsidian:显示文件夹": false
} }
}, },
"active": "c42cf36058a8bc53", "active": "27878581586f2143",
"lastOpenFiles": [ "lastOpenFiles": [
"SanPinPLM/相关操作/1.EDM/3.文档命名唯一性设置.md",
"conflict-files-obsidian-git.md",
"SanPinPLM/相关操作/0.SETOUT/10.数据库安装.md", "SanPinPLM/相关操作/0.SETOUT/10.数据库安装.md",
"SanPinPLM/相关操作/1.EDM/5.文件生命周期.md", "SanPinPLM/相关操作/1.EDM/5.文件生命周期.md",
"SanPinPLM/相关操作/1.EDM/3.文档命名唯一性设置.md",
"SanPinPLM/相关操作/1.EDM/60.CAD接口使用.md", "SanPinPLM/相关操作/1.EDM/60.CAD接口使用.md",
"conflict-files-obsidian-git.md",
"SanPinPLM/相关操作/2.PDM/assets/Pasted image 20250301222528.png", "SanPinPLM/相关操作/2.PDM/assets/Pasted image 20250301222528.png",
"SanPinPLM/相关操作/1.EDM/assets/Pasted image 20250302101643.png", "SanPinPLM/相关操作/1.EDM/assets/Pasted image 20250302101643.png",
"SanPinPLM/相关操作/1.EDM/assets/Pasted image 20250302101157.png", "SanPinPLM/相关操作/1.EDM/assets/Pasted image 20250302101157.png",

View File

@ -1,6 +1,6 @@
# 接口安装 # 接口安装
接口安装前记得 **关闭AutoCAD** 接口安装前记得 **关闭AutoCAD** 软件,以免出现意外状况
右键客户端,选择以 **以管理员身份运行** 右键客户端,选择以 **以管理员身份运行**