mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
server-esm: Remove two more straightforward imports
This commit is contained in:
parent
a8fd3be133
commit
efdae79c10
@ -1,4 +1,4 @@
|
||||
const log = require('./log');
|
||||
import log from "./log";
|
||||
|
||||
const NOTE_TITLE_CHANGED = "NOTE_TITLE_CHANGED";
|
||||
const ENTER_PROTECTED_SESSION = "ENTER_PROTECTED_SESSION";
|
||||
|
@ -1,13 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
import crypto from "crypto";
|
||||
const randtoken = require('rand-token').generator({source: 'crypto'});
|
||||
import { generator } from "rand-token";
|
||||
import unescape from "unescape";
|
||||
import escape from "escape-html";
|
||||
import sanitize from "sanitize-filename";
|
||||
import mimeTypes from "mime-types";
|
||||
import path from "path";
|
||||
|
||||
const randtoken = generator({source: 'crypto'});
|
||||
|
||||
function newEntityId() {
|
||||
return randomString(12);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user