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

Commit 35d11cc

Browse files
committed
server-esm: Change simple local import statements
1 parent 8fb67c9 commit 35d11cc

File tree

184 files changed

+1026
-1026
lines changed

Some content is hidden

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

184 files changed

+1026
-1026
lines changed

electron.ts

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

33
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');
4+
import sqlInit from "./src/services/sql_init.js";
5+
import appIconService from "./src/services/app_icon.js";
6+
import windowService from "./src/services/window.js";
7+
import tray from "./src/services/tray.js";
88

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

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 from "../support/etapi.js";
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 from "../support/etapi.js";
22

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

spec/etapi/import.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 from "../support/etapi.js";
22
import fs = require('fs');
33
import path = require('path');
44

spec/etapi/notes.spec.ts

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

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

spec/search/becca_mocking.ts

Lines changed: 5 additions & 5 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');
1+
import BNote from "../../src/becca/entities/bnote.js";
2+
import BBranch from "../../src/becca/entities/bbranch.js";
3+
import BAttribute from "../../src/becca/entities/battribute.js";
4+
import becca from "../../src/becca/becca.js";
55
import randtoken = require('rand-token');
6-
import SearchResult = require('../../src/services/search/search_result');
6+
import SearchResult from "../../src/services/search/search_result.js";
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 from "../../src/services/search/services/lex.js";
22

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

spec/search/parser.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// There are many issues with the types of the parser e.g. "parse" function returns "Expression"
33
// but we access properties like "subExpressions" which is not defined in the "Expression" class.
44

5-
import Expression = require('../../src/services/search/expressions/expression');
6-
import SearchContext = require('../../src/services/search/search_context');
7-
import parse = require('../../src/services/search/services/parse');
5+
import Expression from "../../src/services/search/expressions/expression.js";
6+
import SearchContext from "../../src/services/search/search_context.js";
7+
import parse from "../../src/services/search/services/parse.js";
88

99
function tokens(toks: Array<string>, cur = 0): Array<any> {
1010
return toks.map((arg) => {

spec/search/search.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import searchService = require('../../src/services/search/services/search');
2-
import BNote = require('../../src/becca/entities/bnote');
3-
import BBranch = require('../../src/becca/entities/bbranch');
4-
import SearchContext = require('../../src/services/search/search_context');
5-
import dateUtils = require('../../src/services/date_utils');
6-
import becca = require('../../src/becca/becca');
1+
import searchService from "../../src/services/search/services/search.js";
2+
import BNote from "../../src/becca/entities/bnote.js";
3+
import BBranch from "../../src/becca/entities/bbranch.js";
4+
import SearchContext from "../../src/services/search/search_context.js";
5+
import dateUtils from "../../src/services/date_utils.js";
6+
import becca from "../../src/becca/becca.js";
77
// const { NoteBuilder, findNoteByTitle, note } = require('./becca_mocking');
8-
import becca_mocking = require('./becca_mocking');
8+
import becca_mocking from "./becca_mocking.js";
99

1010
describe('Search', () => {
1111
let rootNote: any;

spec/search/value_extractor.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import becca_mocking = require('./becca_mocking');
2-
import ValueExtractor = require('../../src/services/search/value_extractor');
3-
import becca = require('../../src/becca/becca');
4-
import SearchContext = require('../../src/services/search/search_context');
1+
import becca_mocking from "./becca_mocking.js";
2+
import ValueExtractor from "../../src/services/search/value_extractor.js";
3+
import becca from "../../src/becca/becca.js";
4+
import SearchContext from "../../src/services/search/search_context.js";
55

66
const dsc = new SearchContext();
77

0 commit comments

Comments
 (0)