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

Commit 8fb67c9

Browse files
committed
server-esm: Normalize quotes in require imports
1 parent 971c147 commit 8fb67c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+114
-114
lines changed

electron.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
"use strict";
22

3-
import electron = require("electron");
4-
import sqlInit = require("./src/services/sql_init");
5-
import appIconService = require("./src/services/app_icon");
6-
import windowService = require("./src/services/window");
7-
import tray = require("./src/services/tray");
3+
import electron = require('electron');
4+
import sqlInit = require('./src/services/sql_init');
5+
import appIconService = require('./src/services/app_icon');
6+
import windowService = require('./src/services/window');
7+
import tray = require('./src/services/tray');
88

99
// Adds debug features like hotkeys for triggering dev tools and reload
10-
require("electron-debug")();
10+
require('electron-debug')();
1111

1212
appIconService.installLocalAppIcon();
1313

14-
require("electron-dl")({ saveAs: true });
14+
require('electron-dl')({ saveAs: true });
1515

1616
// needed for excalidraw export https://github.com/zadam/trilium/issues/4271
1717
electron.app.commandLine.appendSwitch(
@@ -60,4 +60,4 @@ electron.app.on("will-quit", () => {
6060
// this is to disable electron warning spam in the dev console (local development only)
6161
process.env["ELECTRON_DISABLE_SECURITY_WARNINGS"] = "true";
6262

63-
require("./src/www.js");
63+
require('./src/www.js');

spec/etapi/app_info.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import etapi = require("../support/etapi");
1+
import etapi = require('../support/etapi');
22

33
etapi.describeEtapi("app_info", () => {
44
it("get", async () => {

spec/etapi/backup.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import etapi = require("../support/etapi");
1+
import etapi = require('../support/etapi');
22

33
etapi.describeEtapi("backup", () => {
44
it("create", async () => {

spec/etapi/import.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import etapi = require("../support/etapi");
2-
import fs = require("fs");
3-
import path = require("path");
1+
import etapi = require('../support/etapi');
2+
import fs = require('fs');
3+
import path = require('path');
44

55
etapi.describeEtapi("import", () => {
66
// temporarily skip this test since test-export.zip is missing

spec/etapi/notes.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import crypto = require("crypto");
2-
import etapi = require("../support/etapi");
1+
import crypto = require('crypto');
2+
import etapi = require('../support/etapi');
33

44
etapi.describeEtapi("notes", () => {
55
it("create", async () => {

spec/search/becca_mocking.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import BNote = require("../../src/becca/entities/bnote");
2-
import BBranch = require("../../src/becca/entities/bbranch");
3-
import BAttribute = require("../../src/becca/entities/battribute");
4-
import becca = require("../../src/becca/becca");
5-
import randtoken = require("rand-token");
6-
import SearchResult = require("../../src/services/search/search_result");
1+
import BNote = require('../../src/becca/entities/bnote');
2+
import BBranch = require('../../src/becca/entities/bbranch');
3+
import BAttribute = require('../../src/becca/entities/battribute');
4+
import becca = require('../../src/becca/becca');
5+
import randtoken = require('rand-token');
6+
import SearchResult = require('../../src/services/search/search_result');
77
import { NoteType } from "../../src/becca/entities/rows";
88
randtoken.generator({ source: "crypto" });
99

spec/search/lexer.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import lex = require("../../src/services/search/services/lex");
1+
import lex = require('../../src/services/search/services/lex');
22

33
describe("Lexer fulltext", () => {
44
it("simple lexing", () => {

spec/search/search.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import BBranch = require('../../src/becca/entities/bbranch');
44
import SearchContext = require('../../src/services/search/search_context');
55
import dateUtils = require('../../src/services/date_utils');
66
import becca = require('../../src/becca/becca');
7-
// const { NoteBuilder, findNoteByTitle, note } = require("./becca_mocking");
7+
// const { NoteBuilder, findNoteByTitle, note } = require('./becca_mocking');
88
import becca_mocking = require('./becca_mocking');
99

1010
describe('Search', () => {

spec/support/etapi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import child_process = require("child_process");
2-
import kill = require("tree-kill");
1+
import child_process = require('child_process');
2+
import kill = require('tree-kill');
33

44
let etapiAuthToken: string | undefined;
55

src/becca/entities/bblob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import AbstractBeccaEntity = require("./abstract_becca_entity");
1+
import AbstractBeccaEntity = require('./abstract_becca_entity');
22
import { BlobRow } from "./rows";
33

44
// TODO: Why this does not extend the abstract becca?

0 commit comments

Comments
 (0)