mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
renamed "messagingService" to "ws"
This commit is contained in:
@@ -5,7 +5,7 @@ const dateNoteService = require('../../services/date_notes');
|
||||
const dateUtils = require('../../services/date_utils');
|
||||
const imageService = require('../../services/image');
|
||||
const appInfo = require('../../services/app_info');
|
||||
const messagingService = require('../../services/messaging');
|
||||
const ws = require('../../services/ws.js');
|
||||
const log = require('../../services/log');
|
||||
const utils = require('../../services/utils');
|
||||
const path = require('path');
|
||||
@@ -102,7 +102,7 @@ async function addImagesToNote(images, note, content) {
|
||||
|
||||
async function openNote(req) {
|
||||
if (utils.isElectron()) {
|
||||
messagingService.sendMessageToAllClients({
|
||||
ws.sendMessageToAllClients({
|
||||
type: 'open-note',
|
||||
noteId: req.params.noteId
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@ const tarExportService = require('../../services/export/tar');
|
||||
const singleExportService = require('../../services/export/single');
|
||||
const opmlExportService = require('../../services/export/opml');
|
||||
const repository = require("../../services/repository");
|
||||
const messagingService = require("../../services/messaging");
|
||||
const ws = require("../../services/ws.js");
|
||||
const log = require("../../services/log");
|
||||
|
||||
class ExportContext {
|
||||
@@ -23,7 +23,7 @@ class ExportContext {
|
||||
if (Date.now() - this.lastSentCountTs >= 500) {
|
||||
this.lastSentCountTs = Date.now();
|
||||
|
||||
await messagingService.sendMessageToAllClients({
|
||||
await ws.sendMessageToAllClients({
|
||||
exportId: this.exportId,
|
||||
type: 'export-progress-count',
|
||||
progressCount: this.progressCount
|
||||
@@ -32,7 +32,7 @@ class ExportContext {
|
||||
}
|
||||
|
||||
async exportFinished() {
|
||||
await messagingService.sendMessageToAllClients({
|
||||
await ws.sendMessageToAllClients({
|
||||
exportId: this.exportId,
|
||||
type: 'export-finished'
|
||||
});
|
||||
@@ -40,7 +40,7 @@ class ExportContext {
|
||||
|
||||
// must remaing non-static
|
||||
async reportError(message) {
|
||||
await messagingService.sendMessageToAllClients({
|
||||
await ws.sendMessageToAllClients({
|
||||
type: 'export-error',
|
||||
message: message
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user