revert: accidental changes after merge

This commit is contained in:
Elian Doran 2025-01-31 09:41:53 +02:00
parent c6bbc284aa
commit 0dd91ad737
No known key found for this signature in database
6 changed files with 26 additions and 21 deletions

26
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "trilium", "name": "trilium",
"version": "0.91.4-beta", "version": "0.91.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "trilium", "name": "trilium",
"version": "0.91.4-beta", "version": "0.91.5",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"dependencies": { "dependencies": {
"@braintree/sanitize-url": "7.1.1", "@braintree/sanitize-url": "7.1.1",
@ -86,7 +86,7 @@
"sanitize-filename": "1.6.3", "sanitize-filename": "1.6.3",
"sanitize-html": "2.14.0", "sanitize-html": "2.14.0",
"sax": "1.4.1", "sax": "1.4.1",
"semver": "7.6.3", "semver": "7.7.0",
"serve-favicon": "2.5.0", "serve-favicon": "2.5.0",
"session-file-store": "1.5.0", "session-file-store": "1.5.0",
"source-map-support": "0.5.21", "source-map-support": "0.5.21",
@ -152,7 +152,7 @@
"@types/yargs": "17.0.33", "@types/yargs": "17.0.33",
"@vitest/coverage-v8": "3.0.4", "@vitest/coverage-v8": "3.0.4",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"electron": "34.0.1", "electron": "34.0.2",
"esm": "3.2.25", "esm": "3.2.25",
"jasmine": "5.5.0", "jasmine": "5.5.0",
"jsdoc": "4.0.4", "jsdoc": "4.0.4",
@ -7646,9 +7646,9 @@
} }
}, },
"node_modules/electron": { "node_modules/electron": {
"version": "34.0.1", "version": "34.0.2",
"resolved": "https://registry.npmjs.org/electron/-/electron-34.0.1.tgz", "resolved": "https://registry.npmjs.org/electron/-/electron-34.0.2.tgz",
"integrity": "sha512-aArw5tAM80i3CKwEREnyZSM1SkARf5Jd1yBMTIdOL4pB1M+p/oDeyWSFI9Dl+vujyfJKiK4SS5+j19wna1onMw==", "integrity": "sha512-u3F+DSUlg9NaGS+9qnYmSRN8VjAnc3LJDDk1ye1uISJnh4gjG76y3681qLowsPMx4obvCP2eBINnmbLo0yT5WA==",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -8162,9 +8162,9 @@
} }
}, },
"node_modules/electron/node_modules/@types/node": { "node_modules/electron/node_modules/@types/node": {
"version": "20.17.14", "version": "20.17.16",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.14.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.16.tgz",
"integrity": "sha512-w6qdYetNL5KRBiSClK/KWai+2IMEJuAj+EujKCumalFOwXtvOXaEan9AuwcRID2IcOIAWSIfR495hBtgKlx2zg==", "integrity": "sha512-vOTpLduLkZXePLxHiHsBLp98mHGnl8RptV4YAO3HfKO5UHjDvySGbxKtpYfy8Sx5+WKcgc45qNreJJRVM3L6mw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"undici-types": "~6.19.2" "undici-types": "~6.19.2"
@ -14724,9 +14724,9 @@
} }
}, },
"node_modules/semver": { "node_modules/semver": {
"version": "7.6.3", "version": "7.7.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.0.tgz",
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "integrity": "sha512-DrfFnPzblFmNrIZzg5RzHegbiRWg7KMR7btwi2yjHwx06zsUbO5g613sVwEV7FTwmzJu+Io0lJe2GJ3LxqpvBQ==",
"license": "ISC", "license": "ISC",
"bin": { "bin": {
"semver": "bin/semver.js" "semver": "bin/semver.js"

View File

@ -2,7 +2,7 @@
"name": "trilium", "name": "trilium",
"productName": "TriliumNext Notes", "productName": "TriliumNext Notes",
"description": "Build your personal knowledge base with TriliumNext Notes", "description": "Build your personal knowledge base with TriliumNext Notes",
"version": "0.91.4-beta", "version": "0.91.5",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"main": "./dist/electron-main.js", "main": "./dist/electron-main.js",
"author": { "author": {
@ -131,7 +131,7 @@
"sanitize-filename": "1.6.3", "sanitize-filename": "1.6.3",
"sanitize-html": "2.14.0", "sanitize-html": "2.14.0",
"sax": "1.4.1", "sax": "1.4.1",
"semver": "7.6.3", "semver": "7.7.0",
"serve-favicon": "2.5.0", "serve-favicon": "2.5.0",
"session-file-store": "1.5.0", "session-file-store": "1.5.0",
"source-map-support": "0.5.21", "source-map-support": "0.5.21",
@ -194,7 +194,7 @@
"@types/yargs": "17.0.33", "@types/yargs": "17.0.33",
"@vitest/coverage-v8": "3.0.4", "@vitest/coverage-v8": "3.0.4",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"electron": "34.0.1", "electron": "34.0.2",
"esm": "3.2.25", "esm": "3.2.25",
"jasmine": "5.5.0", "jasmine": "5.5.0",
"jsdoc": "4.0.4", "jsdoc": "4.0.4",

View File

@ -119,10 +119,8 @@ export default class ClassicEditorToolbar extends NoteContextAwareWidget {
#adjustPosition() { #adjustPosition() {
let bottom = window.innerHeight - (window.visualViewport?.height || 0); let bottom = window.innerHeight - (window.visualViewport?.height || 0);
if (bottom === 0) { // When the keyboard is not visible, align it to the launcher bar instead.
// The keyboard is not visible, align it to the launcher bar instead. bottom = Math.max(bottom, document.getElementById("mobile-bottom-bar")?.offsetHeight || 0);
bottom = document.getElementById("mobile-bottom-bar")?.offsetHeight || 0;
}
this.$widget.css("bottom", `${bottom}px`); this.$widget.css("bottom", `${bottom}px`);
} }

View File

@ -4,6 +4,7 @@ import assetPath from "../services/asset_path.js";
import shareRoot from "./share_root.js"; import shareRoot from "./share_root.js";
import escapeHtml from "escape-html"; import escapeHtml from "escape-html";
import type SNote from "./shaca/entities/snote.js"; import type SNote from "./shaca/entities/snote.js";
import { t } from "i18next";
/** /**
* Represents the output of the content renderer. * Represents the output of the content renderer.
@ -43,7 +44,7 @@ function getContent(note: SNote) {
} else if (note.type === "book") { } else if (note.type === "book") {
result.isEmpty = true; result.isEmpty = true;
} else { } else {
result.content = "<p>This note type cannot be displayed.</p>"; result.content = `<p>${t("content_renderer.note-cannot-be-displayed")}</p>`;
} }
return result; return result;

View File

@ -250,5 +250,8 @@
"backend_log": { "backend_log": {
"log-does-not-exist": "The backend log file '{{ fileName }}' does not exist (yet).", "log-does-not-exist": "The backend log file '{{ fileName }}' does not exist (yet).",
"reading-log-failed": "Reading the backend log file '{{ fileName }}' failed." "reading-log-failed": "Reading the backend log file '{{ fileName }}' failed."
},
"content_renderer": {
"note-cannot-be-displayed": "This note type cannot be displayed."
} }
} }

View File

@ -251,5 +251,8 @@
}, },
"geo-map": { "geo-map": {
"create-child-note-instruction": "Clic pe hartă pentru a crea o nouă notiță la acea poziție sau apăsați Escape pentru a renunța." "create-child-note-instruction": "Clic pe hartă pentru a crea o nouă notiță la acea poziție sau apăsați Escape pentru a renunța."
},
"content_renderer": {
"note-cannot-be-displayed": "Acest tip de notiță nu poate fi afișat."
} }
} }