mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
server-esm: Change simple local import statements
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { JSDOM } from "jsdom";
|
||||
import shaca = require('./shaca/shaca');
|
||||
import assetPath = require('../services/asset_path');
|
||||
import shareRoot = require('./share_root');
|
||||
import shaca from "./shaca/shaca.js";
|
||||
import assetPath from "../services/asset_path.js";
|
||||
import shareRoot from "./share_root.js";
|
||||
import escapeHtml = require('escape-html');
|
||||
import SNote = require('./shaca/entities/snote');
|
||||
import SNote from "./shaca/entities/snote.js";
|
||||
|
||||
interface Result {
|
||||
header: string;
|
||||
|
||||
@@ -3,18 +3,18 @@ import ejs = require('ejs');
|
||||
|
||||
import type { Request, Response, Router } from "express";
|
||||
|
||||
import shaca = require('./shaca/shaca');
|
||||
import shacaLoader = require('./shaca/shaca_loader');
|
||||
import shareRoot = require('./share_root');
|
||||
import contentRenderer = require('./content_renderer');
|
||||
import assetPath = require('../services/asset_path');
|
||||
import appPath = require('../services/app_path');
|
||||
import searchService = require('../services/search/services/search');
|
||||
import SearchContext = require('../services/search/search_context');
|
||||
import log = require('../services/log');
|
||||
import SNote = require('./shaca/entities/snote');
|
||||
import SBranch = require('./shaca/entities/sbranch');
|
||||
import SAttachment = require('./shaca/entities/sattachment');
|
||||
import shaca from "./shaca/shaca.js";
|
||||
import shacaLoader from "./shaca/shaca_loader.js";
|
||||
import shareRoot from "./share_root.js";
|
||||
import contentRenderer from "./content_renderer.js";
|
||||
import assetPath from "../services/asset_path.js";
|
||||
import appPath from "../services/app_path.js";
|
||||
import searchService from "../services/search/services/search.js";
|
||||
import SearchContext from "../services/search/search_context.js";
|
||||
import log from "../services/log.js";
|
||||
import SNote from "./shaca/entities/snote.js";
|
||||
import SBranch from "./shaca/entities/sbranch.js";
|
||||
import SAttachment from "./shaca/entities/sattachment.js";
|
||||
|
||||
function getSharedSubTreeRoot(note: SNote): { note?: SNote; branch?: SBranch } {
|
||||
if (note.noteId === shareRoot.SHARE_ROOT_NOTE_ID) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
import sql = require('../../sql');
|
||||
import utils = require('../../../services/utils');
|
||||
import AbstractShacaEntity = require('./abstract_shaca_entity');
|
||||
import SNote = require('./snote');
|
||||
import sql from "../../sql.js";
|
||||
import utils from "../../../services/utils.js";
|
||||
import AbstractShacaEntity from "./abstract_shaca_entity.js";
|
||||
import SNote from "./snote.js";
|
||||
import { Blob } from '../../../services/blob-interface';
|
||||
import { SAttachmentRow } from './rows';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
import { SAttributeRow } from "./rows";
|
||||
import SNote = require('./snote');
|
||||
import SNote from "./snote.js";
|
||||
|
||||
const AbstractShacaEntity = require('./abstract_shaca_entity');
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
import AbstractShacaEntity = require('./abstract_shaca_entity');
|
||||
import AbstractShacaEntity from "./abstract_shaca_entity.js";
|
||||
import { SBranchRow } from './rows';
|
||||
import SNote = require('./snote');
|
||||
import SNote from "./snote.js";
|
||||
|
||||
class SBranch extends AbstractShacaEntity {
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
import sql = require('../../sql');
|
||||
import utils = require('../../../services/utils');
|
||||
import AbstractShacaEntity = require('./abstract_shaca_entity');
|
||||
import sql from "../../sql.js";
|
||||
import utils from "../../../services/utils.js";
|
||||
import AbstractShacaEntity from "./abstract_shaca_entity.js";
|
||||
import escape = require('escape-html');
|
||||
import { Blob } from '../../../services/blob-interface';
|
||||
import SAttachment = require('./sattachment');
|
||||
import SAttribute = require('./sattribute');
|
||||
import SBranch = require('./sbranch');
|
||||
import SAttachment from "./sattachment.js";
|
||||
import SAttribute from "./sattribute.js";
|
||||
import SBranch from "./sbranch.js";
|
||||
import { SNoteRow } from './rows';
|
||||
|
||||
const LABEL = 'label';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import SAttachment = require('./entities/sattachment');
|
||||
import SAttribute = require('./entities/sattribute');
|
||||
import SBranch = require('./entities/sbranch');
|
||||
import SNote = require('./entities/snote');
|
||||
import SAttachment from "./entities/sattachment.js";
|
||||
import SAttribute from "./entities/sattribute.js";
|
||||
import SBranch from "./entities/sbranch.js";
|
||||
import SNote from "./entities/snote.js";
|
||||
|
||||
export default class Shaca {
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
import sql = require('../sql');
|
||||
import shaca = require('./shaca');
|
||||
import log = require('../../services/log');
|
||||
import SNote = require('./entities/snote');
|
||||
import SBranch = require('./entities/sbranch');
|
||||
import SAttribute = require('./entities/sattribute');
|
||||
import SAttachment = require('./entities/sattachment');
|
||||
import shareRoot = require('../share_root');
|
||||
import eventService = require('../../services/events');
|
||||
import sql from "../sql.js";
|
||||
import shaca from "./shaca.js";
|
||||
import log from "../../services/log.js";
|
||||
import SNote from "./entities/snote.js";
|
||||
import SBranch from "./entities/sbranch.js";
|
||||
import SAttribute from "./entities/sattribute.js";
|
||||
import SAttachment from "./entities/sattachment.js";
|
||||
import shareRoot from "../share_root.js";
|
||||
import eventService from "../../services/events.js";
|
||||
import { SAttachmentRow, SAttributeRow, SBranchRow, SNoteRow } from './entities/rows';
|
||||
|
||||
function load() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
import Database = require('better-sqlite3');
|
||||
import dataDir = require('../services/data_dir');
|
||||
import dataDir from "../services/data_dir.js";
|
||||
|
||||
const dbConnection = new Database(dataDir.DOCUMENT_PATH, { readonly: true });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user