From 59d4b4edddedbc44181f8b81e5dd4acf07358866 Mon Sep 17 00:00:00 2001 From: Dan <96779452+cromelex@users.noreply.github.com> Date: Wed, 7 May 2025 20:44:30 +0100 Subject: [PATCH 1/5] fix(analytics): Umami tracking pageviews properly Update componentResources.ts to fix umami SPA tracking (#1967) Update componentResources.ts to fix umami analytics when SPA is enabled in Quartz --- quartz/plugins/emitters/componentResources.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/quartz/plugins/emitters/componentResources.ts b/quartz/plugins/emitters/componentResources.ts index 92794ef..1bb2938 100644 --- a/quartz/plugins/emitters/componentResources.ts +++ b/quartz/plugins/emitters/componentResources.ts @@ -128,14 +128,8 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso const umamiScript = document.createElement("script"); umamiScript.src = "${cfg.analytics.host ?? "https://analytics.umami.is"}/script.js"; umamiScript.setAttribute("data-website-id", "${cfg.analytics.websiteId}"); - umamiScript.setAttribute("data-auto-track", "false"); + umamiScript.setAttribute("data-auto-track", "true"); umamiScript.defer = true; - umamiScript.onload = () => { - umami.track(); - document.addEventListener("nav", () => { - umami.track(); - }); - }; document.head.appendChild(umamiScript); `) From 0b348a053241d31245e5aa7176f47b2ae4719dfd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 7 May 2025 12:46:23 -0700 Subject: [PATCH 2/5] chore(deps): bump the production-dependencies group with 7 updates (#1964) Bumps the production-dependencies group with 7 updates: | Package | From | To | | --- | --- | --- | | [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom) | `1.6.13` | `1.7.0` | | @myriaddreamin/rehype-typst | `0.5.4` | `0.6.0` | | [pixi.js](https://github.com/pixijs/pixijs) | `8.9.1` | `8.9.2` | | [pretty-bytes](https://github.com/sindresorhus/pretty-bytes) | `6.1.1` | `7.0.0` | | [ws](https://github.com/websockets/ws) | `8.18.1` | `8.18.2` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.15.3` | `22.15.7` | | [tsx](https://github.com/privatenumber/tsx) | `4.19.3` | `4.19.4` | Updates `@floating-ui/dom` from 1.6.13 to 1.7.0 - [Release notes](https://github.com/floating-ui/floating-ui/releases) - [Changelog](https://github.com/floating-ui/floating-ui/blob/master/packages/dom/CHANGELOG.md) - [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.7.0/packages/dom) Updates `@myriaddreamin/rehype-typst` from 0.5.4 to 0.6.0 Updates `pixi.js` from 8.9.1 to 8.9.2 - [Release notes](https://github.com/pixijs/pixijs/releases) - [Commits](https://github.com/pixijs/pixijs/compare/v8.9.1...v8.9.2) Updates `pretty-bytes` from 6.1.1 to 7.0.0 - [Release notes](https://github.com/sindresorhus/pretty-bytes/releases) - [Commits](https://github.com/sindresorhus/pretty-bytes/compare/v6.1.1...v7.0.0) Updates `ws` from 8.18.1 to 8.18.2 - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/8.18.1...8.18.2) Updates `@types/node` from 22.15.3 to 22.15.7 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `tsx` from 4.19.3 to 4.19.4 - [Release notes](https://github.com/privatenumber/tsx/releases) - [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs) - [Commits](https://github.com/privatenumber/tsx/compare/v4.19.3...v4.19.4) --- updated-dependencies: - dependency-name: "@floating-ui/dom" dependency-version: 1.7.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: "@myriaddreamin/rehype-typst" dependency-version: 0.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: pixi.js dependency-version: 8.9.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: pretty-bytes dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: production-dependencies - dependency-name: ws dependency-version: 8.18.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: "@types/node" dependency-version: 22.15.7 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: tsx dependency-version: 4.19.4 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 183 +++++++++++++++++++++++++--------------------- package.json | 14 ++-- 2 files changed, 107 insertions(+), 90 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0c9943f..53c3bb4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,8 @@ "license": "MIT", "dependencies": { "@clack/prompts": "^0.10.1", - "@floating-ui/dom": "^1.6.13", - "@myriaddreamin/rehype-typst": "^0.5.4", + "@floating-ui/dom": "^1.7.0", + "@myriaddreamin/rehype-typst": "^0.6.0", "@napi-rs/simple-git": "0.1.19", "@tweenjs/tween.js": "^25.0.0", "@webgpu/types": "^0.1.60", @@ -37,10 +37,10 @@ "mdast-util-to-string": "^4.0.0", "micromorph": "^0.4.5", "minimatch": "^10.0.1", - "pixi.js": "^8.9.1", + "pixi.js": "^8.9.2", "preact": "^10.26.5", "preact-render-to-string": "^6.5.13", - "pretty-bytes": "^6.1.1", + "pretty-bytes": "^7.0.0", "pretty-time": "^1.1.0", "reading-time": "^1.5.0", "rehype-autolink-headings": "^7.1.0", @@ -71,7 +71,7 @@ "unist-util-visit": "^5.0.0", "vfile": "^6.0.3", "workerpool": "^9.2.0", - "ws": "^8.18.1", + "ws": "^8.18.2", "yargs": "^17.7.2" }, "bin": { @@ -81,14 +81,14 @@ "@types/d3": "^7.4.3", "@types/hast": "^3.0.4", "@types/js-yaml": "^4.0.9", - "@types/node": "^22.15.3", + "@types/node": "^22.15.7", "@types/pretty-time": "^1.1.5", "@types/source-map-support": "^0.5.10", "@types/ws": "^8.18.1", "@types/yargs": "^17.0.33", "esbuild": "^0.25.3", "prettier": "^3.5.3", - "tsx": "^4.19.3", + "tsx": "^4.19.4", "typescript": "^5.8.3" }, "engines": { @@ -610,26 +610,29 @@ } }, "node_modules/@floating-ui/core": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.0.tgz", - "integrity": "sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.0.tgz", + "integrity": "sha512-FRdBLykrPPA6P76GGGqlex/e7fbe0F1ykgxHYNXQsH/iTEtjMj/f9bpY5oQqbjt5VgZvgz/uKXbGuROijh3VLA==", + "license": "MIT", "dependencies": { - "@floating-ui/utils": "^0.2.1" + "@floating-ui/utils": "^0.2.9" } }, "node_modules/@floating-ui/dom": { - "version": "1.6.13", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.13.tgz", - "integrity": "sha512-umqzocjDgNRGTuO7Q8CU32dkHkECqI8ZdMZ5Swb6QAM0t5rnlrN3lGo1hdpscRd3WS8T6DKYK4ephgIH9iRh3w==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.0.tgz", + "integrity": "sha512-lGTor4VlXcesUMh1cupTUTDoCxMb0V6bm3CnxHzQcw8Eaf1jQbgQX4i02fYgT0vJ82tb5MZ4CZk1LRGkktJCzg==", + "license": "MIT", "dependencies": { - "@floating-ui/core": "^1.6.0", + "@floating-ui/core": "^1.7.0", "@floating-ui/utils": "^0.2.9" } }, "node_modules/@floating-ui/utils": { "version": "0.2.9", "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.9.tgz", - "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==" + "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==", + "license": "MIT" }, "node_modules/@img/sharp-darwin-arm64": { "version": "0.34.1", @@ -1025,11 +1028,12 @@ } }, "node_modules/@myriaddreamin/rehype-typst": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/rehype-typst/-/rehype-typst-0.5.4.tgz", - "integrity": "sha512-6NJ0Ddom+X1jTTO1qlwB7ArLuZBg18m+fTqd3HWpkxAUhHAoemd2oF3ATwBIM0uF9gzG9d523D4o7b+jXCaBUQ==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/rehype-typst/-/rehype-typst-0.6.0.tgz", + "integrity": "sha512-WQpr2j7OYtyc2Q1WOqi1wzYrBaeuAWT1Cn1Ki6VPsKoWH7O86/+zKOqltdgMpYdkav1uXYs3RfO5Ir8h0WkZyQ==", + "license": "MIT", "dependencies": { - "@myriaddreamin/typst-ts-node-compiler": "^0.5.4", + "@myriaddreamin/typst-ts-node-compiler": "^0.6.0", "@types/hast": "^3.0.0", "@types/katex": "^0.16.0", "hast-util-from-html-isomorphic": "^2.0.0", @@ -1040,33 +1044,35 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler/-/typst-ts-node-compiler-0.5.4.tgz", - "integrity": "sha512-WAOUjOD+S2S3X/2X33PxDYn0XJ4ydqboxluIdFWU8yOlzn3K8CwoRN/GAbMA13vJTbZQMzjX3VmhMavFWeRtVA==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler/-/typst-ts-node-compiler-0.6.0.tgz", + "integrity": "sha512-C40MzRKZ8pDWzrS7VOtTypGyFaHTuZFFx3o/uQ6ryS2GqZkK3vGox4lIpR7ct11UHiAjQNR3LFQ5WjQ7P3niBQ==", + "license": "Apache-2.0", "engines": { "node": ">= 10" }, "optionalDependencies": { - "@myriaddreamin/typst-ts-node-compiler-android-arm-eabi": "0.5.4", - "@myriaddreamin/typst-ts-node-compiler-android-arm64": "0.5.4", - "@myriaddreamin/typst-ts-node-compiler-darwin-arm64": "0.5.4", - "@myriaddreamin/typst-ts-node-compiler-darwin-x64": "0.5.4", - "@myriaddreamin/typst-ts-node-compiler-linux-arm-gnueabihf": "0.5.4", - "@myriaddreamin/typst-ts-node-compiler-linux-arm64-gnu": "0.5.4", - "@myriaddreamin/typst-ts-node-compiler-linux-arm64-musl": "0.5.4", - "@myriaddreamin/typst-ts-node-compiler-linux-x64-gnu": "0.5.4", - "@myriaddreamin/typst-ts-node-compiler-linux-x64-musl": "0.5.4", - "@myriaddreamin/typst-ts-node-compiler-win32-arm64-msvc": "0.5.4", - "@myriaddreamin/typst-ts-node-compiler-win32-x64-msvc": "0.5.4" + "@myriaddreamin/typst-ts-node-compiler-android-arm-eabi": "0.6.0", + "@myriaddreamin/typst-ts-node-compiler-android-arm64": "0.6.0", + "@myriaddreamin/typst-ts-node-compiler-darwin-arm64": "0.6.0", + "@myriaddreamin/typst-ts-node-compiler-darwin-x64": "0.6.0", + "@myriaddreamin/typst-ts-node-compiler-linux-arm-gnueabihf": "0.6.0", + "@myriaddreamin/typst-ts-node-compiler-linux-arm64-gnu": "0.6.0", + "@myriaddreamin/typst-ts-node-compiler-linux-arm64-musl": "0.6.0", + "@myriaddreamin/typst-ts-node-compiler-linux-x64-gnu": "0.6.0", + "@myriaddreamin/typst-ts-node-compiler-linux-x64-musl": "0.6.0", + "@myriaddreamin/typst-ts-node-compiler-win32-arm64-msvc": "0.6.0", + "@myriaddreamin/typst-ts-node-compiler-win32-x64-msvc": "0.6.0" } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-android-arm-eabi": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-android-arm-eabi/-/typst-ts-node-compiler-android-arm-eabi-0.5.4.tgz", - "integrity": "sha512-jptHQK/GN7RCDI4FkGKrec3x3YKFogIw1kpMFYYscoOEntEF4MGJs2FM3vR3bLXGSAR54WlPI6dXPKCYuzVSOg==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-android-arm-eabi/-/typst-ts-node-compiler-android-arm-eabi-0.6.0.tgz", + "integrity": "sha512-Gfrf9Fky5iYtutGWYwqRC4gvllK1p1q6YELCbycI47NCFptONI++3dfub4PixWRn9m8NrmaNFIBQSyLHWsvbLw==", "cpu": [ "arm" ], + "license": "Apache-2.0", "optional": true, "os": [ "android" @@ -1076,12 +1082,13 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-android-arm64": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-android-arm64/-/typst-ts-node-compiler-android-arm64-0.5.4.tgz", - "integrity": "sha512-xOt+07nYDu3KiOWPnl62es+rThKYRdbOWQPY4hcFqqC5VRTfZZXUBRKdsG+W8qu0gJ513VLmW9HVlkv2PHTW0Q==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-android-arm64/-/typst-ts-node-compiler-android-arm64-0.6.0.tgz", + "integrity": "sha512-EzO6W4xELC6at30hSkkOp5BveszwCmTWceu0PMh6lPxeQF1vnjxUK60MLFfJ40zb1TOXsj4l2pbdBoGqLznC1g==", "cpu": [ "arm64" ], + "license": "Apache-2.0", "optional": true, "os": [ "android" @@ -1091,12 +1098,13 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-darwin-arm64": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-darwin-arm64/-/typst-ts-node-compiler-darwin-arm64-0.5.4.tgz", - "integrity": "sha512-mtuIjL4KptMhy+rJY0pUv8s8kzFFYKFDyhDQIndsi7P9jYtIUkjJqhg3rXmMUcbVJEEFlaUJ+I+wFQbDuddSlg==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-darwin-arm64/-/typst-ts-node-compiler-darwin-arm64-0.6.0.tgz", + "integrity": "sha512-8tR1GqFr+q4rNZm8z0230eF7eRCVCSaUefDw1+Qw8EnDPIvwEP8bT0/u2YqHmxthfVfs1msV8hDpRKVeBa6E3g==", "cpu": [ "arm64" ], + "license": "Apache-2.0", "optional": true, "os": [ "darwin" @@ -1106,12 +1114,13 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-darwin-x64": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-darwin-x64/-/typst-ts-node-compiler-darwin-x64-0.5.4.tgz", - "integrity": "sha512-rP8ghx3+vCE0vVat6POYNEkXsjXQn1iyy3pPfLTFtSgQRoJoPJJnDB+tkToCiTZQwvo9aFyrY0LOyH8mpm+BYQ==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-darwin-x64/-/typst-ts-node-compiler-darwin-x64-0.6.0.tgz", + "integrity": "sha512-eytv5ifNvhux9naqEb+4pu1Z4ghQBWiybP4lT/aB44I9H5xjmtYQxiKwNBz54am6RLiMcyLpw/xFdeB13bsdWA==", "cpu": [ "x64" ], + "license": "Apache-2.0", "optional": true, "os": [ "darwin" @@ -1121,12 +1130,13 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-linux-arm-gnueabihf": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-linux-arm-gnueabihf/-/typst-ts-node-compiler-linux-arm-gnueabihf-0.5.4.tgz", - "integrity": "sha512-boM8bVPRL/Ekff51urc3HiY2oKVdL2x36MnHgurAown3iK4OMa0JPDGkxpnuRKbDQEZDXQB1xljVGLaAqqecCg==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-linux-arm-gnueabihf/-/typst-ts-node-compiler-linux-arm-gnueabihf-0.6.0.tgz", + "integrity": "sha512-b20do+PmbsYq07QlTW8uLU3MaoAm6DSCx1IrCEAlUpNH+/29x51Rvyq5JeRrYVOtkR6BxPzyhCM79r5jOkewbQ==", "cpu": [ "arm" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" @@ -1136,12 +1146,13 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-linux-arm64-gnu": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-linux-arm64-gnu/-/typst-ts-node-compiler-linux-arm64-gnu-0.5.4.tgz", - "integrity": "sha512-DIYH2WXyzeh+0sicGXICm8E/0P5ZAmbCIcGt9sgqXNe2YI/JjXoRDLLm1xN0Y5HD3fiCb/pRTRoeXFpp0u/Fjg==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-linux-arm64-gnu/-/typst-ts-node-compiler-linux-arm64-gnu-0.6.0.tgz", + "integrity": "sha512-AM92MVfEbISYvIA8NwPl2l78nOZIh5er5qQ/NZw2kx4YgTKgklJINEPHXm/aAk7PcpX7G10P45D/xGd5KpX9HQ==", "cpu": [ "arm64" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" @@ -1151,12 +1162,13 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-linux-arm64-musl": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-linux-arm64-musl/-/typst-ts-node-compiler-linux-arm64-musl-0.5.4.tgz", - "integrity": "sha512-KNjhfEgPaVaN+0hJ97UKY72jtpMFTA4dnP4iEoB6VX2dunVrbTJbCpjG8Sfml4HJYt0H4gYKsa4LqQzgqFJ6eQ==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-linux-arm64-musl/-/typst-ts-node-compiler-linux-arm64-musl-0.6.0.tgz", + "integrity": "sha512-nSokVjKQR0ZH7Jub53q7he89+m72RSbL97exSedkB4OdZAi9tAxGFIgceGJuN5AC+DiNtMmqsPwlJiERUjgPhQ==", "cpu": [ "arm64" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" @@ -1166,12 +1178,13 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-linux-x64-gnu": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-linux-x64-gnu/-/typst-ts-node-compiler-linux-x64-gnu-0.5.4.tgz", - "integrity": "sha512-iqYx3UFrrN0E8bg+NuvTptP2FndJNtt7tlU6Dsh6vjaay5IaBLIAtn9Yf9dPzsqWzHE3nwTq0yjoLfLEtY4a3w==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-linux-x64-gnu/-/typst-ts-node-compiler-linux-x64-gnu-0.6.0.tgz", + "integrity": "sha512-3Y2ORiYuCTzQkiHSCHWiGuzTBbNvHTB2lCr3DDsZdvTZ2LZMifPwwICN26X3tlnt6GyC3o/ejZBcMnfNqYbdCw==", "cpu": [ "x64" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" @@ -1181,12 +1194,13 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-linux-x64-musl": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-linux-x64-musl/-/typst-ts-node-compiler-linux-x64-musl-0.5.4.tgz", - "integrity": "sha512-ROleNG0SD50+FoYJQA/9sai0FzNMh94ZAUVbSJFz474olJHSYQ8xqdIiGlpFA6XXPG6TKBedzbDUVYVXWFI+NQ==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-linux-x64-musl/-/typst-ts-node-compiler-linux-x64-musl-0.6.0.tgz", + "integrity": "sha512-b+kTb4vI0sFTkPtIAUE+UqjhZ4kTiAkh4F/2QKnFitAsURlLcRwTcMc9NJm6SXwW1OM0nPj1IGTfUOFpqLOIPQ==", "cpu": [ "x64" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" @@ -1196,12 +1210,13 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-win32-arm64-msvc": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-win32-arm64-msvc/-/typst-ts-node-compiler-win32-arm64-msvc-0.5.4.tgz", - "integrity": "sha512-Ihh40WW2cB0TUUMfJEOoH5MzQXmPSZc0OcAWMHj8A5Rr4pNNAr1gcJTeB6UHazoRQ8uQG5hg3CqCFydAIbXKfQ==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-win32-arm64-msvc/-/typst-ts-node-compiler-win32-arm64-msvc-0.6.0.tgz", + "integrity": "sha512-04omIPrXSsRKu4XDhj1WZ9uMjdcFcejBGzyOEV351HVDqg5kxgDB32iG3oLySLrzEcbi9WwI5Si46WrW0wh4mA==", "cpu": [ "arm64" ], + "license": "Apache-2.0", "optional": true, "os": [ "win32" @@ -1211,12 +1226,13 @@ } }, "node_modules/@myriaddreamin/typst-ts-node-compiler-win32-x64-msvc": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-win32-x64-msvc/-/typst-ts-node-compiler-win32-x64-msvc-0.5.4.tgz", - "integrity": "sha512-umEuUW6mn68JTueWr4LHsIUN8Bxs1aGyJdHVMy4br1g7MPqkoR0e8rVreTNulKaDx1+4lFdceWa1Uu7Yu0g9Ag==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@myriaddreamin/typst-ts-node-compiler-win32-x64-msvc/-/typst-ts-node-compiler-win32-x64-msvc-0.6.0.tgz", + "integrity": "sha512-w5UEmXSZ+Eg7Y04EzjgqeHUo7P8bNz9S1c4CUfLrbfZvbTmYNjA0WeqZJ3+tV03BSVxiPiVhrfo95sLqKISNrg==", "cpu": [ "x64" ], + "license": "Apache-2.0", "optional": true, "os": [ "win32" @@ -1942,9 +1958,9 @@ } }, "node_modules/@types/node": { - "version": "22.15.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.3.tgz", - "integrity": "sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==", + "version": "22.15.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.7.tgz", + "integrity": "sha512-3hieEH05p8cnASknk8cYV71K2Vqmn4Nv8gjvRc5N3XbMlBS4wPwsmsw5bcHw6ISL36vVFuAhElcQCf7Ir4bR0w==", "dev": true, "license": "MIT", "dependencies": { @@ -5521,9 +5537,9 @@ } }, "node_modules/pixi.js": { - "version": "8.9.1", - "resolved": "https://registry.npmjs.org/pixi.js/-/pixi.js-8.9.1.tgz", - "integrity": "sha512-2vF5Yu9WC/83ly2tCGkjb+ZGnrr+vlKtZezmD0AmJEQoYZO5nL94806l+PVcJBKW6qrF0YHtbh0ubb6CB7/8Rg==", + "version": "8.9.2", + "resolved": "https://registry.npmjs.org/pixi.js/-/pixi.js-8.9.2.tgz", + "integrity": "sha512-oLFBkOOA/O6OpT5T8o05AxgZB9x9yWNzEQ+WTNZZFoCvfU2GdT4sFTjpVFuHQzgZPmAm/1IFhKdNiXVnlL8PRw==", "license": "MIT", "dependencies": { "@pixi/colord": "^2.9.6", @@ -5579,11 +5595,12 @@ } }, "node_modules/pretty-bytes": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-6.1.1.tgz", - "integrity": "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-7.0.0.tgz", + "integrity": "sha512-U5otLYPR3L0SVjHGrkEUx5mf7MxV2ceXeE7VwWPk+hyzC5drNohsOGNPDZqxCqyX1lkbEN4kl1LiI8QFd7r0ZA==", + "license": "MIT", "engines": { - "node": "^14.13.1 || >=16.0.0" + "node": ">=20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -7009,9 +7026,9 @@ "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/tsx": { - "version": "4.19.3", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.3.tgz", - "integrity": "sha512-4H8vUNGNjQ4V2EOoGw005+c+dGuPSnhpPBPHBtsZdGZBk/iJb4kguGlPWaZTZ3q5nMtFOEsY0nRDlh9PJyd6SQ==", + "version": "4.19.4", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.4.tgz", + "integrity": "sha512-gK5GVzDkJK1SI1zwHf32Mqxf2tSJkNx+eYcNly5+nHvWqXUJYUkWBQtKauoESz3ymezAI++ZwT855x5p5eop+Q==", "dev": true, "license": "MIT", "dependencies": { @@ -7422,9 +7439,9 @@ } }, "node_modules/ws": { - "version": "8.18.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.1.tgz", - "integrity": "sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w==", + "version": "8.18.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.2.tgz", + "integrity": "sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ==", "license": "MIT", "engines": { "node": ">=10.0.0" diff --git a/package.json b/package.json index b137cc7..0ed675f 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ }, "dependencies": { "@clack/prompts": "^0.10.1", - "@floating-ui/dom": "^1.6.13", - "@myriaddreamin/rehype-typst": "^0.5.4", + "@floating-ui/dom": "^1.7.0", + "@myriaddreamin/rehype-typst": "^0.6.0", "@napi-rs/simple-git": "0.1.19", "@tweenjs/tween.js": "^25.0.0", "@webgpu/types": "^0.1.60", @@ -63,10 +63,10 @@ "mdast-util-to-string": "^4.0.0", "micromorph": "^0.4.5", "minimatch": "^10.0.1", - "pixi.js": "^8.9.1", + "pixi.js": "^8.9.2", "preact": "^10.26.5", "preact-render-to-string": "^6.5.13", - "pretty-bytes": "^6.1.1", + "pretty-bytes": "^7.0.0", "pretty-time": "^1.1.0", "reading-time": "^1.5.0", "rehype-autolink-headings": "^7.1.0", @@ -97,21 +97,21 @@ "unist-util-visit": "^5.0.0", "vfile": "^6.0.3", "workerpool": "^9.2.0", - "ws": "^8.18.1", + "ws": "^8.18.2", "yargs": "^17.7.2" }, "devDependencies": { "@types/d3": "^7.4.3", "@types/hast": "^3.0.4", "@types/js-yaml": "^4.0.9", - "@types/node": "^22.15.3", + "@types/node": "^22.15.7", "@types/pretty-time": "^1.1.5", "@types/source-map-support": "^0.5.10", "@types/ws": "^8.18.1", "@types/yargs": "^17.0.33", "esbuild": "^0.25.3", "prettier": "^3.5.3", - "tsx": "^4.19.3", + "tsx": "^4.19.4", "typescript": "^5.8.3" } } From c33f96e572d7fd4e15d24f9f527fc9f39aebbaa7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 7 May 2025 12:46:39 -0700 Subject: [PATCH 3/5] chore(deps): bump sigstore/cosign-installer in the ci-dependencies group (#1953) Bumps the ci-dependencies group with 1 update: [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer). Updates `sigstore/cosign-installer` from 3.8.1 to 3.8.2 - [Release notes](https://github.com/sigstore/cosign-installer/releases) - [Commits](https://github.com/sigstore/cosign-installer/compare/v3.8.1...v3.8.2) --- updated-dependencies: - dependency-name: sigstore/cosign-installer dependency-version: 3.8.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: ci-dependencies ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/docker-build-push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-push.yaml b/.github/workflows/docker-build-push.yaml index af79ead..ee7efa7 100644 --- a/.github/workflows/docker-build-push.yaml +++ b/.github/workflows/docker-build-push.yaml @@ -37,7 +37,7 @@ jobs: network=host - name: Install cosign if: github.event_name != 'pull_request' - uses: sigstore/cosign-installer@v3.8.1 + uses: sigstore/cosign-installer@v3.8.2 - name: Login to GitHub Container Registry uses: docker/login-action@v3 if: github.event_name != 'pull_request' From e98d97a271857efe14e6f15d8971d452b2d1a2d5 Mon Sep 17 00:00:00 2001 From: Felix Nie Date: Thu, 8 May 2025 03:56:18 +0800 Subject: [PATCH 4/5] feat(i18n): readermode translations and icon (#1961) * fix(readermode): Translations and a new icon for ReaderMode * Formatted * Replaced icon --- quartz/components/ReaderMode.tsx | 22 ++++++++++++++-------- quartz/components/styles/readermode.scss | 1 + quartz/i18n/locales/ar-SA.ts | 3 +++ quartz/i18n/locales/ca-ES.ts | 3 +++ quartz/i18n/locales/cs-CZ.ts | 3 +++ quartz/i18n/locales/de-DE.ts | 7 +++++-- quartz/i18n/locales/definition.ts | 3 +++ quartz/i18n/locales/en-GB.ts | 3 +++ quartz/i18n/locales/en-US.ts | 3 +++ quartz/i18n/locales/es-ES.ts | 3 +++ quartz/i18n/locales/fa-IR.ts | 3 +++ quartz/i18n/locales/fi-FI.ts | 3 +++ quartz/i18n/locales/fr-FR.ts | 3 +++ quartz/i18n/locales/hu-HU.ts | 3 +++ quartz/i18n/locales/it-IT.ts | 3 +++ quartz/i18n/locales/ja-JP.ts | 3 +++ quartz/i18n/locales/ko-KR.ts | 3 +++ quartz/i18n/locales/lt-LT.ts | 3 +++ quartz/i18n/locales/nb-NO.ts | 3 +++ quartz/i18n/locales/nl-NL.ts | 3 +++ quartz/i18n/locales/pl-PL.ts | 3 +++ quartz/i18n/locales/pt-BR.ts | 3 +++ quartz/i18n/locales/ro-RO.ts | 3 +++ quartz/i18n/locales/ru-RU.ts | 3 +++ quartz/i18n/locales/th-TH.ts | 3 +++ quartz/i18n/locales/tr-TR.ts | 3 +++ quartz/i18n/locales/uk-UA.ts | 3 +++ quartz/i18n/locales/vi-VN.ts | 3 +++ quartz/i18n/locales/zh-CN.ts | 3 +++ quartz/i18n/locales/zh-TW.ts | 3 +++ 30 files changed, 101 insertions(+), 10 deletions(-) diff --git a/quartz/components/ReaderMode.tsx b/quartz/components/ReaderMode.tsx index dac4053..4b3165e 100644 --- a/quartz/components/ReaderMode.tsx +++ b/quartz/components/ReaderMode.tsx @@ -2,25 +2,31 @@ import readerModeScript from "./scripts/readermode.inline" import styles from "./styles/readermode.scss" import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" +import { i18n } from "../i18n" import { classNames } from "../util/lang" -const ReaderMode: QuartzComponent = ({ displayClass }: QuartzComponentProps) => { +const ReaderMode: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => { return ( ) diff --git a/quartz/components/styles/readermode.scss b/quartz/components/styles/readermode.scss index 7d5de77..79332c3 100644 --- a/quartz/components/styles/readermode.scss +++ b/quartz/components/styles/readermode.scss @@ -15,6 +15,7 @@ width: 20px; height: 20px; top: calc(50% - 10px); + fill: var(--darkgray); stroke: var(--darkgray); transition: opacity 0.1s ease; } diff --git a/quartz/i18n/locales/ar-SA.ts b/quartz/i18n/locales/ar-SA.ts index 8463e2f..a1979de 100644 --- a/quartz/i18n/locales/ar-SA.ts +++ b/quartz/i18n/locales/ar-SA.ts @@ -32,6 +32,9 @@ export default { explorer: { title: "المستعرض", }, + readerMode: { + title: "وضع القارئ", + }, footer: { createdWith: "أُنشئ باستخدام", }, diff --git a/quartz/i18n/locales/ca-ES.ts b/quartz/i18n/locales/ca-ES.ts index aadbd41..1483d9c 100644 --- a/quartz/i18n/locales/ca-ES.ts +++ b/quartz/i18n/locales/ca-ES.ts @@ -29,6 +29,9 @@ export default { lightMode: "Mode clar", darkMode: "Mode fosc", }, + readerMode: { + title: "Mode lector", + }, explorer: { title: "Explorador", }, diff --git a/quartz/i18n/locales/cs-CZ.ts b/quartz/i18n/locales/cs-CZ.ts index bf089d1..87f1996 100644 --- a/quartz/i18n/locales/cs-CZ.ts +++ b/quartz/i18n/locales/cs-CZ.ts @@ -29,6 +29,9 @@ export default { lightMode: "Světlý režim", darkMode: "Tmavý režim", }, + readerMode: { + title: "Režim čtečky", + }, explorer: { title: "Procházet", }, diff --git a/quartz/i18n/locales/de-DE.ts b/quartz/i18n/locales/de-DE.ts index 023d4be..85a7353 100644 --- a/quartz/i18n/locales/de-DE.ts +++ b/quartz/i18n/locales/de-DE.ts @@ -26,8 +26,11 @@ export default { noBacklinksFound: "Keine Backlinks gefunden", }, themeToggle: { - lightMode: "Light Mode", - darkMode: "Dark Mode", + lightMode: "Heller Modus", + darkMode: "Dunkler Modus", + }, + readerMode: { + title: "Lesemodus", }, explorer: { title: "Explorer", diff --git a/quartz/i18n/locales/definition.ts b/quartz/i18n/locales/definition.ts index 25a8cd7..ee1649a 100644 --- a/quartz/i18n/locales/definition.ts +++ b/quartz/i18n/locales/definition.ts @@ -31,6 +31,9 @@ export interface Translation { lightMode: string darkMode: string } + readerMode: { + title: string + } explorer: { title: string } diff --git a/quartz/i18n/locales/en-GB.ts b/quartz/i18n/locales/en-GB.ts index 5388b03..80e52bf 100644 --- a/quartz/i18n/locales/en-GB.ts +++ b/quartz/i18n/locales/en-GB.ts @@ -29,6 +29,9 @@ export default { lightMode: "Light mode", darkMode: "Dark mode", }, + readerMode: { + title: "Reader mode", + }, explorer: { title: "Explorer", }, diff --git a/quartz/i18n/locales/en-US.ts b/quartz/i18n/locales/en-US.ts index 22cf31e..e1111e9 100644 --- a/quartz/i18n/locales/en-US.ts +++ b/quartz/i18n/locales/en-US.ts @@ -29,6 +29,9 @@ export default { lightMode: "Light mode", darkMode: "Dark mode", }, + readerMode: { + title: "Reader mode", + }, explorer: { title: "Explorer", }, diff --git a/quartz/i18n/locales/es-ES.ts b/quartz/i18n/locales/es-ES.ts index c4a57aa..b7e425e 100644 --- a/quartz/i18n/locales/es-ES.ts +++ b/quartz/i18n/locales/es-ES.ts @@ -29,6 +29,9 @@ export default { lightMode: "Modo claro", darkMode: "Modo oscuro", }, + readerMode: { + title: "Modo lector", + }, explorer: { title: "Explorador", }, diff --git a/quartz/i18n/locales/fa-IR.ts b/quartz/i18n/locales/fa-IR.ts index 5bfef5a..0300174 100644 --- a/quartz/i18n/locales/fa-IR.ts +++ b/quartz/i18n/locales/fa-IR.ts @@ -29,6 +29,9 @@ export default { lightMode: "حالت روشن", darkMode: "حالت تاریک", }, + readerMode: { + title: "حالت خواندن", + }, explorer: { title: "مطالب", }, diff --git a/quartz/i18n/locales/fi-FI.ts b/quartz/i18n/locales/fi-FI.ts index f173afa..19e102a 100644 --- a/quartz/i18n/locales/fi-FI.ts +++ b/quartz/i18n/locales/fi-FI.ts @@ -29,6 +29,9 @@ export default { lightMode: "Vaalea tila", darkMode: "Tumma tila", }, + readerMode: { + title: "Lukijatila", + }, explorer: { title: "Selain", }, diff --git a/quartz/i18n/locales/fr-FR.ts b/quartz/i18n/locales/fr-FR.ts index ef43fa8..f6df309 100644 --- a/quartz/i18n/locales/fr-FR.ts +++ b/quartz/i18n/locales/fr-FR.ts @@ -29,6 +29,9 @@ export default { lightMode: "Mode clair", darkMode: "Mode sombre", }, + readerMode: { + title: "Mode lecture", + }, explorer: { title: "Explorateur", }, diff --git a/quartz/i18n/locales/hu-HU.ts b/quartz/i18n/locales/hu-HU.ts index 066b777..2a4f077 100644 --- a/quartz/i18n/locales/hu-HU.ts +++ b/quartz/i18n/locales/hu-HU.ts @@ -29,6 +29,9 @@ export default { lightMode: "Világos mód", darkMode: "Sötét mód", }, + readerMode: { + title: "Olvasó mód", + }, explorer: { title: "Fájlböngésző", }, diff --git a/quartz/i18n/locales/it-IT.ts b/quartz/i18n/locales/it-IT.ts index c8c5973..be25bb6 100644 --- a/quartz/i18n/locales/it-IT.ts +++ b/quartz/i18n/locales/it-IT.ts @@ -29,6 +29,9 @@ export default { lightMode: "Tema chiaro", darkMode: "Tema scuro", }, + readerMode: { + title: "Modalità lettura", + }, explorer: { title: "Esplora", }, diff --git a/quartz/i18n/locales/ja-JP.ts b/quartz/i18n/locales/ja-JP.ts index 9581b5e..3c30124 100644 --- a/quartz/i18n/locales/ja-JP.ts +++ b/quartz/i18n/locales/ja-JP.ts @@ -29,6 +29,9 @@ export default { lightMode: "ライトモード", darkMode: "ダークモード", }, + readerMode: { + title: "リーダーモード", + }, explorer: { title: "エクスプローラー", }, diff --git a/quartz/i18n/locales/ko-KR.ts b/quartz/i18n/locales/ko-KR.ts index 9be08d9..1bca096 100644 --- a/quartz/i18n/locales/ko-KR.ts +++ b/quartz/i18n/locales/ko-KR.ts @@ -29,6 +29,9 @@ export default { lightMode: "라이트 모드", darkMode: "다크 모드", }, + readerMode: { + title: "리더 모드", + }, explorer: { title: "탐색기", }, diff --git a/quartz/i18n/locales/lt-LT.ts b/quartz/i18n/locales/lt-LT.ts index d48e593..690960c 100644 --- a/quartz/i18n/locales/lt-LT.ts +++ b/quartz/i18n/locales/lt-LT.ts @@ -29,6 +29,9 @@ export default { lightMode: "Šviesus Režimas", darkMode: "Tamsus Režimas", }, + readerMode: { + title: "Modalità lettore", + }, explorer: { title: "Naršyklė", }, diff --git a/quartz/i18n/locales/nb-NO.ts b/quartz/i18n/locales/nb-NO.ts index 5823b19..0e41522 100644 --- a/quartz/i18n/locales/nb-NO.ts +++ b/quartz/i18n/locales/nb-NO.ts @@ -29,6 +29,9 @@ export default { lightMode: "Lys modus", darkMode: "Mørk modus", }, + readerMode: { + title: "Læsemodus", + }, explorer: { title: "Utforsker", }, diff --git a/quartz/i18n/locales/nl-NL.ts b/quartz/i18n/locales/nl-NL.ts index ccbafa7..8ab3b07 100644 --- a/quartz/i18n/locales/nl-NL.ts +++ b/quartz/i18n/locales/nl-NL.ts @@ -29,6 +29,9 @@ export default { lightMode: "Lichte modus", darkMode: "Donkere modus", }, + readerMode: { + title: "Leesmodus", + }, explorer: { title: "Verkenner", }, diff --git a/quartz/i18n/locales/pl-PL.ts b/quartz/i18n/locales/pl-PL.ts index 7fa0cd4..11033e3 100644 --- a/quartz/i18n/locales/pl-PL.ts +++ b/quartz/i18n/locales/pl-PL.ts @@ -29,6 +29,9 @@ export default { lightMode: "Trzyb jasny", darkMode: "Tryb ciemny", }, + readerMode: { + title: "Tryb czytania", + }, explorer: { title: "Przeglądaj", }, diff --git a/quartz/i18n/locales/pt-BR.ts b/quartz/i18n/locales/pt-BR.ts index c7b6bfb..e431d8e 100644 --- a/quartz/i18n/locales/pt-BR.ts +++ b/quartz/i18n/locales/pt-BR.ts @@ -29,6 +29,9 @@ export default { lightMode: "Tema claro", darkMode: "Tema escuro", }, + readerMode: { + title: "Modo leitor", + }, explorer: { title: "Explorador", }, diff --git a/quartz/i18n/locales/ro-RO.ts b/quartz/i18n/locales/ro-RO.ts index 2de1c8c..007d901 100644 --- a/quartz/i18n/locales/ro-RO.ts +++ b/quartz/i18n/locales/ro-RO.ts @@ -29,6 +29,9 @@ export default { lightMode: "Modul luminos", darkMode: "Modul întunecat", }, + readerMode: { + title: "Modul de citire", + }, explorer: { title: "Explorator", }, diff --git a/quartz/i18n/locales/ru-RU.ts b/quartz/i18n/locales/ru-RU.ts index 18e0817..5534d14 100644 --- a/quartz/i18n/locales/ru-RU.ts +++ b/quartz/i18n/locales/ru-RU.ts @@ -29,6 +29,9 @@ export default { lightMode: "Светлый режим", darkMode: "Тёмный режим", }, + readerMode: { + title: "Режим чтения", + }, explorer: { title: "Проводник", }, diff --git a/quartz/i18n/locales/th-TH.ts b/quartz/i18n/locales/th-TH.ts index 4ea8486..0730131 100644 --- a/quartz/i18n/locales/th-TH.ts +++ b/quartz/i18n/locales/th-TH.ts @@ -29,6 +29,9 @@ export default { lightMode: "โหมดสว่าง", darkMode: "โหมดมืด", }, + readerMode: { + title: "โหมดอ่าน", + }, explorer: { title: "รายการหน้า", }, diff --git a/quartz/i18n/locales/tr-TR.ts b/quartz/i18n/locales/tr-TR.ts index a3805d1..9c2d6d4 100644 --- a/quartz/i18n/locales/tr-TR.ts +++ b/quartz/i18n/locales/tr-TR.ts @@ -29,6 +29,9 @@ export default { lightMode: "Açık mod", darkMode: "Koyu mod", }, + readerMode: { + title: "Okuma modu", + }, explorer: { title: "Gezgin", }, diff --git a/quartz/i18n/locales/uk-UA.ts b/quartz/i18n/locales/uk-UA.ts index 469de4f..ac2a248 100644 --- a/quartz/i18n/locales/uk-UA.ts +++ b/quartz/i18n/locales/uk-UA.ts @@ -29,6 +29,9 @@ export default { lightMode: "Світлий режим", darkMode: "Темний режим", }, + readerMode: { + title: "Режим читання", + }, explorer: { title: "Провідник", }, diff --git a/quartz/i18n/locales/vi-VN.ts b/quartz/i18n/locales/vi-VN.ts index 39a8fbc..26a58a5 100644 --- a/quartz/i18n/locales/vi-VN.ts +++ b/quartz/i18n/locales/vi-VN.ts @@ -29,6 +29,9 @@ export default { lightMode: "Sáng", darkMode: "Tối", }, + readerMode: { + title: "Chế độ đọc", + }, explorer: { title: "Trong bài này", }, diff --git a/quartz/i18n/locales/zh-CN.ts b/quartz/i18n/locales/zh-CN.ts index b710db5..09951bb 100644 --- a/quartz/i18n/locales/zh-CN.ts +++ b/quartz/i18n/locales/zh-CN.ts @@ -29,6 +29,9 @@ export default { lightMode: "亮色模式", darkMode: "暗色模式", }, + readerMode: { + title: "阅读模式", + }, explorer: { title: "探索", }, diff --git a/quartz/i18n/locales/zh-TW.ts b/quartz/i18n/locales/zh-TW.ts index f0db0bf..4e784c0 100644 --- a/quartz/i18n/locales/zh-TW.ts +++ b/quartz/i18n/locales/zh-TW.ts @@ -29,6 +29,9 @@ export default { lightMode: "亮色模式", darkMode: "暗色模式", }, + readerMode: { + title: "閱讀模式", + }, explorer: { title: "探索", }, From fec0a62b74e45acfe28861ee6eddf493a2be5f74 Mon Sep 17 00:00:00 2001 From: Emile Bangma Date: Mon, 19 May 2025 07:58:05 +0200 Subject: [PATCH 5/5] fix(ofm): allow wikilink alias to be empty (#1984) This is in line with Obsidian's behavior. --- quartz/plugins/transformers/ofm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index e958027..ef59179 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -113,9 +113,9 @@ export const arrowRegex = new RegExp(/(-{1,2}>|={1,2}>|<-{1,2}|<={1,2})/g) // \[\[ -> open brace // ([^\[\]\|\#]+) -> one or more non-special characters ([,],|, or #) (name) // (#[^\[\]\|\#]+)? -> # then one or more non-special characters (heading link) -// (\\?\|[^\[\]\#]+)? -> optional escape \ then | then one or more non-special characters (alias) +// (\\?\|[^\[\]\#]+)? -> optional escape \ then | then zero or more non-special characters (alias) export const wikilinkRegex = new RegExp( - /!?\[\[([^\[\]\|\#\\]+)?(#+[^\[\]\|\#\\]+)?(\\?\|[^\[\]\#]+)?\]\]/g, + /!?\[\[([^\[\]\|\#\\]+)?(#+[^\[\]\|\#\\]+)?(\\?\|[^\[\]\#]*)?\]\]/g, ) // ^\|([^\n])+\|\n(\|) -> matches the header row