2018-03-26 07:49:33 +08:00
|
|
|
import addLinkDialog from '../dialogs/add_link.js';
|
|
|
|
import jumpToNoteDialog from '../dialogs/jump_to_note.js';
|
2018-03-26 01:02:39 +08:00
|
|
|
import labelsDialog from '../dialogs/labels.js';
|
2018-03-26 07:49:33 +08:00
|
|
|
import noteRevisionsDialog from '../dialogs/note_history.js';
|
|
|
|
import noteSourceDialog from '../dialogs/note_source.js';
|
|
|
|
import recentChangesDialog from '../dialogs/recent_changes.js';
|
|
|
|
import recentNotesDialog from '../dialogs/recent_notes.js';
|
|
|
|
import settingsDialog from '../dialogs/settings.js';
|
|
|
|
import sqlConsoleDialog from '../dialogs/sql_console.js';
|
2018-03-24 23:18:46 +08:00
|
|
|
|
2018-03-25 23:09:17 +08:00
|
|
|
import cloning from './cloning.js';
|
|
|
|
import contextMenu from './context_menu.js';
|
|
|
|
import dragAndDropSetup from './drag_and_drop.js';
|
|
|
|
import exportService from './export.js';
|
|
|
|
import link from './link.js';
|
|
|
|
import messaging from './messaging.js';
|
2018-03-26 01:02:39 +08:00
|
|
|
import noteDetail from './note_detail.js';
|
2018-03-25 23:09:17 +08:00
|
|
|
import noteType from './note_type.js';
|
|
|
|
import protected_session from './protected_session.js';
|
2018-03-26 07:49:33 +08:00
|
|
|
import searchTreeService from './search_tree.js';
|
2018-03-25 23:09:17 +08:00
|
|
|
import ScriptApi from './script_api.js';
|
|
|
|
import ScriptContext from './script_context.js';
|
|
|
|
import sync from './sync.js';
|
2018-03-26 07:49:33 +08:00
|
|
|
import treeService from './tree.js';
|
2018-03-25 23:09:17 +08:00
|
|
|
import treeChanges from './tree_changes.js';
|
|
|
|
import treeUtils from './tree_utils.js';
|
|
|
|
import utils from './utils.js';
|
|
|
|
|
|
|
|
import './init.js';
|
2018-03-24 23:18:46 +08:00
|
|
|
|
2018-03-26 07:49:33 +08:00
|
|
|
utils.bindShortcut('ctrl+l', addLinkDialog.showDialog);
|
|
|
|
|
|
|
|
$("#jump-to-note-button").click(jumpToNoteDialog.showDialog);
|
|
|
|
utils.bindShortcut('ctrl+j', jumpToNoteDialog.showDialog);
|
|
|
|
|
|
|
|
$("#show-history-button").click(noteRevisionsDialog.showCurrentNoteHistory);
|
|
|
|
|
|
|
|
$("#show-source-button").click(noteSourceDialog.showDialog);
|
|
|
|
utils.bindShortcut('ctrl+u', noteSourceDialog.showDialog);
|
|
|
|
|
|
|
|
$("#recent-changes-button").click(recentChangesDialog.showDialog);
|
|
|
|
|
|
|
|
$("#recent-notes-button").click(recentNotesDialog.showDialog);
|
|
|
|
utils.bindShortcut('ctrl+e', recentNotesDialog.showDialog);
|
|
|
|
|
|
|
|
$("#toggle-search-button").click(searchTreeService.toggleSearch);
|
|
|
|
utils.bindShortcut('ctrl+s', searchTreeService.toggleSearch);
|
|
|
|
|
|
|
|
$(".show-labels-button").click(labelsDialog.showDialog);
|
|
|
|
utils.bindShortcut('alt+l', labelsDialog.showDialog);
|
2018-03-24 23:18:46 +08:00
|
|
|
|
2018-03-26 07:49:33 +08:00
|
|
|
$("#settings-button").click(settingsDialog.showDialog);
|
2018-03-24 23:18:46 +08:00
|
|
|
|
2018-03-26 07:49:33 +08:00
|
|
|
utils.bindShortcut('alt+o', sqlConsoleDialog.showDialog);
|