import cloning from './services/cloning.js'; import contextMenu from './services/tree_context_menu.js'; import link from './services/link.js'; import ws from './services/ws.js'; import noteDetailService from './services/note_detail.js'; import noteType from './services/note_type.js'; import protectedSessionService from './services/protected_session.js'; import protectedSessionHolder from './services/protected_session_holder.js'; import searchNotesService from './services/search_notes.js'; import FrontendScriptApi from './services/frontend_script_api.js'; import ScriptContext from './services/script_context.js'; import sync from './services/sync.js'; import treeService from './services/tree.js'; import treeChanges from './services/branches.js'; import treeUtils from './services/tree_utils.js'; import utils from './services/utils.js'; import server from './services/server.js'; import entrypoints from './services/entrypoints.js'; import noteTooltipService from './services/note_tooltip.js'; import bundle from "./services/bundle.js"; import treeCache from "./services/tree_cache.js"; import libraryLoader from "./services/library_loader.js"; import hoistedNoteService from './services/hoisted_note.js'; import noteTypeService from './services/note_type.js'; import linkService from './services/link.js'; import noteAutocompleteService from './services/note_autocomplete.js'; import macInit from './services/mac_init.js'; import cssLoader from './services/css_loader.js'; import dateNoteService from './services/date_notes.js'; import sidebarService from './services/sidebar.js'; import importService from './services/import.js'; import keyboardActionService from "./services/keyboard_actions.js"; import splitService from "./services/split.js"; import optionService from "./services/options.js"; import noteContentRenderer from "./services/note_content_renderer.js"; import appContext from "./services/app_context.js"; window.glob.isDesktop = utils.isDesktop; window.glob.isMobile = utils.isMobile; // required for CKEditor image upload plugin window.glob.getActiveNode = treeService.getActiveNode; window.glob.getHeaders = server.getHeaders; window.glob.showAddLinkDialog = () => import('./dialogs/add_link.js').then(d => d.showDialog()); window.glob.showIncludeNoteDialog = cb => import('./dialogs/include_note.js').then(d => d.showDialog(cb)); window.glob.loadIncludedNote = async (noteId, el) => { const note = await treeCache.getNote(noteId); if (note) { $(el).empty().append($("