Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 55ce7aa

Browse files
committed
Merge remote-tracking branch 'origin/develop' into test_simplify-data-dir
2 parents 0ccf917 + f36ec9b commit 55ce7aa

23 files changed

+95
-489
lines changed

db/demo.zip

-1.89 KB
Binary file not shown.

dump-db/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 17 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@
6161
"@mermaid-js/layout-elk": "0.1.7",
6262
"@mind-elixir/node-menu": "1.0.3",
6363
"@triliumnext/express-partial-content": "1.0.1",
64-
"@types/react-dom": "18.3.1",
64+
"@types/react-dom": "18.3.5",
6565
"archiver": "7.0.1",
6666
"async-mutex": "0.5.0",
6767
"autocomplete.js": "0.38.1",
6868
"axios": "1.7.9",
69-
"better-sqlite3": "11.8.0",
69+
"better-sqlite3": "11.8.1",
7070
"bootstrap": "5.3.3",
7171
"boxicons": "2.1.4",
7272
"cheerio": "1.0.0",
@@ -176,7 +176,7 @@
176176
"@types/mime-types": "2.1.4",
177177
"@types/multer": "1.4.12",
178178
"@types/node": "22.10.7",
179-
"@types/react": "18.3.1",
179+
"@types/react": "18.3.18",
180180
"@types/safe-compare": "1.1.2",
181181
"@types/sanitize-html": "2.13.0",
182182
"@types/sax": "1.2.7",

spec/etapi/notes.spec.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.

src/becca/entities/bnote.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,9 @@ class BNote extends AbstractBeccaEntity<BNote> {
15281528
}
15291529

15301530
isLaunchBarConfig() {
1531-
return this.type === "launcher" || ["_lbRoot", "_lbAvailableLaunchers", "_lbVisibleLaunchers"].includes(this.noteId);
1531+
return this.type === "launcher"
1532+
|| ["_lbRoot", "_lbAvailableLaunchers", "_lbVisibleLaunchers"].includes(this.noteId)
1533+
|| ["_lbMobileRoot", "_lbMobileAvailableLaunchers", "_lbMobileVisibleLaunchers"].includes(this.noteId);
15321534
}
15331535

15341536
isOptions() {

src/public/app/menus/launcher_context_menu.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export default class LauncherContextMenu implements SelectMenuItemEventListener<
3434

3535
const isVisibleRoot = note?.noteId === "_lbVisibleLaunchers";
3636
const isAvailableRoot = note?.noteId === "_lbAvailableLaunchers";
37-
const isVisibleItem = parentNoteId === "_lbVisibleLaunchers";
38-
const isAvailableItem = parentNoteId === "_lbAvailableLaunchers";
37+
const isVisibleItem = (parentNoteId === "_lbVisibleLaunchers" || parentNoteId === "_lbMobileVisibleLaunchers");
38+
const isAvailableItem = (parentNoteId === "_lbAvailableLaunchers" || parentNoteId === "_lbMobileAvailableLaunchers");
3939
const isItem = isVisibleItem || isAvailableItem;
4040
const canBeDeleted = !note?.noteId.startsWith("_"); // fixed notes can't be deleted
4141
const canBeReset = !canBeDeleted && note?.isLaunchBarConfig();

spec-es6/attribute_parser.spec.ts renamed to src/public/app/services/attribute_parser.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect } from "vitest";
2-
import attributeParser from "../src/public/app/services/attribute_parser.ts";
2+
import attributeParser from "./attribute_parser.js";
33

44

55
describe("Lexing", () => {
@@ -41,7 +41,9 @@ describe("Lexing", () => {
4141
});
4242

4343
describe.todo("Parser", () => {
44+
/* #TODO
4445
it("simple label", () => {
46+
4547
const attrs = attributeParser.parse(["#token"].map((t: any) => ({ text: t })));
4648
4749
expect(attrs.length).toEqual(1);
@@ -85,6 +87,7 @@ describe.todo("Parser", () => {
8587
expect(attrs[0].name).toEqual("token");
8688
expect(attrs[0].value).toEqual("NFi2gL4xtPxM");
8789
});
90+
*/
8891
});
8992

9093
describe("error cases", () => {

src/public/app/services/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ function dynamicRequire(moduleName: string) {
308308
if (typeof __non_webpack_require__ !== "undefined") {
309309
return __non_webpack_require__(moduleName);
310310
} else {
311-
return require(moduleName);
311+
// explicitly pass as string and not as expression to suppress webpack warning
312+
// 'Critical dependency: the request of a dependency is an expression'
313+
return require(`${moduleName}`);
312314
}
313315
}
314316

0 commit comments

Comments
 (0)