mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	server-esm: Remove two more straightforward imports
This commit is contained in:
		@@ -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);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user