Merge branch 'develop' into feature/MFA

This commit is contained in:
Jin 2025-03-29 11:23:38 +01:00
commit ed58be1578
6 changed files with 8137 additions and 8130 deletions

View File

@ -9,7 +9,7 @@
"pOsGYCXsbNQG"
],
"title": "User Guide",
"notePosition": 130,
"notePosition": 1,
"prefix": null,
"isExpanded": false,
"type": "text",

View File

@ -143,13 +143,14 @@ async function exportData(format: "html" | "markdown", outputPath: string) {
}
}
await cleanUpMeta();
await cleanUpMeta(outputPath);
}
async function cleanUpMeta() {
const metaPath = path.join(markdownPath, "!!!meta.json");
async function cleanUpMeta(outputPath: string) {
const metaPath = path.join(outputPath, "!!!meta.json");
const meta = JSON.parse(await fs.readFile(metaPath, "utf-8")) as NoteMetaFile;
for (const file of meta.files) {
file.notePosition = 1;
traverse(file);
}

8
package-lock.json generated
View File

@ -144,7 +144,7 @@
"@types/react": "18.3.20",
"@types/react-dom": "18.3.5",
"@types/safe-compare": "1.1.2",
"@types/sanitize-html": "2.13.0",
"@types/sanitize-html": "2.15.0",
"@types/sax": "1.2.7",
"@types/serve-favicon": "2.5.7",
"@types/session-file-store": "1.2.5",
@ -5386,9 +5386,9 @@
"license": "MIT"
},
"node_modules/@types/sanitize-html": {
"version": "2.13.0",
"resolved": "https://registry.npmjs.org/@types/sanitize-html/-/sanitize-html-2.13.0.tgz",
"integrity": "sha512-X31WxbvW9TjIhZZNyNBZ/p5ax4ti7qsNDBDEnH4zAgmEh35YnFD1UiS6z9Cd34kKm0LslFW0KPmTQzu/oGtsqQ==",
"version": "2.15.0",
"resolved": "https://registry.npmjs.org/@types/sanitize-html/-/sanitize-html-2.15.0.tgz",
"integrity": "sha512-71Z6PbYsVKfp4i6Jvr37s5ql6if1Q/iJQT80NbaSi7uGaG8CqBMXP0pk/EsURAOuGdk5IJCd/vnzKrR7S3Txsw==",
"dev": true,
"license": "MIT",
"dependencies": {

View File

@ -200,7 +200,7 @@
"@types/react": "18.3.20",
"@types/react-dom": "18.3.5",
"@types/safe-compare": "1.1.2",
"@types/sanitize-html": "2.13.0",
"@types/sanitize-html": "2.15.0",
"@types/sax": "1.2.7",
"@types/serve-favicon": "2.5.7",
"@types/session-file-store": "1.2.5",

View File

@ -9,9 +9,9 @@
"pOsGYCXsbNQG"
],
"title": "User Guide",
"notePosition": 130,
"notePosition": 1,
"prefix": null,
"isExpanded": true,
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [],
@ -4064,7 +4064,7 @@
"title": "Note Types",
"notePosition": 100,
"prefix": null,
"isExpanded": true,
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [
@ -5170,7 +5170,7 @@
"title": "Book",
"notePosition": 120,
"prefix": null,
"isExpanded": true,
"isExpanded": false,
"type": "text",
"mime": "text/markdown",
"attributes": [
@ -8106,15 +8106,21 @@
},
{
"noImport": true,
"dataFileName": "navigation.html"
"dataFileName": "navigation.html",
"notePosition": 1,
"isExpanded": false
},
{
"noImport": true,
"dataFileName": "index.html"
"dataFileName": "index.html",
"notePosition": 1,
"isExpanded": false
},
{
"noImport": true,
"dataFileName": "style.css"
"dataFileName": "style.css",
"notePosition": 1,
"isExpanded": false
}
]
}

View File

@ -76,8 +76,8 @@
the <code>#monthPattern</code> attribute, much like <code>#datePattern</code>.
The options are:</p>
<ul>
<li><code>{isoMonth}</code> results in an ISO 8061 formatted month (e.g.
"2025-03" for March 2025)</li>
<li><code>{isoMonth}</code> results in an ISO 8061 formatted month (e.g. "2025-03"
for March 2025)</li>
<li><code>{monthNumberPadded}</code> results in a number like <code>09</code> for
September, and <code>11</code> for November</li>
<li><code>{month}</code> results in the full month name (e.g. <code>September</code> or <code>October</code>)</li>