2017-10-14 23:31:44 -04:00
|
|
|
<!DOCTYPE html>
|
2019-01-13 21:16:51 +01:00
|
|
|
<html lang="en">
|
2018-12-23 10:57:40 +01:00
|
|
|
<head>
|
2017-10-15 19:10:36 -04:00
|
|
|
<meta charset="utf-8">
|
2019-12-03 19:31:58 +01:00
|
|
|
<link rel="shortcut icon" href="favicon.ico">
|
2017-12-26 12:55:40 -05:00
|
|
|
<title>Trilium Notes</title>
|
2018-12-23 10:57:40 +01:00
|
|
|
</head>
|
2019-01-13 21:27:32 +01:00
|
|
|
<body class="desktop theme-<%= theme %>" style="--main-font-size: <%= mainFontSize %>%; --tree-font-size: <%= treeFontSize %>%; --detail-font-size: <%= detailFontSize %>%;">
|
2019-04-15 21:30:26 +02:00
|
|
|
<noscript>Trilium requires JavaScript to be enabled.</noscript>
|
2019-10-17 20:03:05 +02:00
|
|
|
|
|
|
|
<div id="toast-container" class="d-flex flex-column justify-content-center align-items-center"></div>
|
|
|
|
|
2019-12-23 19:45:59 +01:00
|
|
|
<div id="container" style="display: none;">
|
2019-12-30 19:46:48 +01:00
|
|
|
<div id="topbar">
|
2019-12-23 21:05:47 +01:00
|
|
|
<div id="global-menu-wrapper">
|
2019-02-09 19:17:16 +01:00
|
|
|
<div class="dropdown" id="global-menu">
|
|
|
|
<button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm dropdown-toggle">
|
2019-11-02 12:17:00 +01:00
|
|
|
<span class="bx bx-menu"></span>
|
2019-02-09 19:17:16 +01:00
|
|
|
Menu
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
|
|
<a class="dropdown-item" id="options-button">
|
2019-11-02 12:17:00 +01:00
|
|
|
<span class="bx bx-slider"></span>
|
2019-02-09 19:17:16 +01:00
|
|
|
Options
|
|
|
|
</a>
|
2017-10-29 11:22:41 -04:00
|
|
|
|
2019-02-09 19:17:16 +01:00
|
|
|
<a class="dropdown-item" id="sync-now-button" title="Trigger sync">
|
2019-11-02 12:17:00 +01:00
|
|
|
<span class="bx bx-recycle"></span>
|
2019-02-09 19:17:16 +01:00
|
|
|
Sync (<span id="outstanding-syncs-count">0</span>)
|
|
|
|
</a>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2019-02-09 19:25:55 +01:00
|
|
|
<a class="dropdown-item" id="open-dev-tools-button">
|
2019-11-02 12:17:00 +01:00
|
|
|
<span class="bx bx-terminal"></span>
|
2019-02-09 19:25:55 +01:00
|
|
|
Open Dev Tools
|
2019-11-22 22:35:59 +01:00
|
|
|
<kbd data-kb-action="OpenDevTools"></kbd>
|
2019-02-09 19:25:55 +01:00
|
|
|
</a>
|
|
|
|
|
2019-04-14 13:51:21 +02:00
|
|
|
<a class="dropdown-item" id="open-sql-console-button">
|
2019-11-02 12:17:00 +01:00
|
|
|
<span class="bx bx-data"></span>
|
2019-04-14 13:51:21 +02:00
|
|
|
Open SQL Console
|
2019-11-22 22:35:59 +01:00
|
|
|
<kbd data-kb-action="ShowSQLConsole"></kbd>
|
2019-04-14 13:51:21 +02:00
|
|
|
</a>
|
|
|
|
|
2019-12-05 21:25:36 +01:00
|
|
|
<a class="dropdown-item" id="show-backend-log-button">
|
|
|
|
<span class="bx bx-empty"></span>
|
|
|
|
Show backend log
|
|
|
|
<kbd data-kb-action="ShowBackendLog"></kbd>
|
|
|
|
</a>
|
|
|
|
|
2019-04-14 12:48:50 +02:00
|
|
|
<a class="dropdown-item" id="reload-frontend-button" title="Reload can help with some visual glitches without restarting the whole app.">
|
2019-11-02 12:17:00 +01:00
|
|
|
<span class="bx bx-empty"></span>
|
2019-04-14 12:48:50 +02:00
|
|
|
Reload frontend
|
2019-11-22 22:35:59 +01:00
|
|
|
<kbd data-kb-action="ReloadFrontendApp"></kbd>
|
2019-11-19 23:33:07 +01:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<a class="dropdown-item" id="toggle-zen-mode-button">
|
|
|
|
<span class="bx bx-empty"></span>
|
|
|
|
Toggle Zen mode
|
2019-11-22 22:35:59 +01:00
|
|
|
<kbd data-kb-action="ToggleZenMode"></kbd>
|
2019-04-14 12:48:50 +02:00
|
|
|
</a>
|
|
|
|
|
2019-04-28 21:59:29 +02:00
|
|
|
<a class="dropdown-item" id="toggle-fullscreen-button">
|
2019-11-02 12:17:00 +01:00
|
|
|
<span class="bx bx-empty"></span>
|
2019-04-28 21:59:29 +02:00
|
|
|
Toggle fullscreen
|
2019-11-22 22:35:59 +01:00
|
|
|
<kbd data-kb-action="ToggleFullscreen"></kbd>
|
2019-04-28 21:59:29 +02:00
|
|
|
</a>
|
|
|
|
|
2019-04-14 13:51:21 +02:00
|
|
|
<a class="dropdown-item" id="show-help-button">
|
2019-11-02 12:17:00 +01:00
|
|
|
<span class="bx bx-info-circle"></span>
|
2019-04-14 13:51:21 +02:00
|
|
|
Show Help
|
2019-11-22 22:35:59 +01:00
|
|
|
<kbd data-kb-action="ShowHelp"></kbd>
|
2019-02-10 10:38:18 +01:00
|
|
|
</a>
|
|
|
|
|
2019-03-24 23:01:33 +01:00
|
|
|
<a class="dropdown-item" id="show-about-dialog-button">
|
2019-11-02 12:17:00 +01:00
|
|
|
<span class="bx bx-empty"></span>
|
2019-03-24 23:01:33 +01:00
|
|
|
About Trilium Notes
|
|
|
|
</a>
|
|
|
|
|
2019-02-09 19:17:16 +01:00
|
|
|
<a class="dropdown-item" id="logout-button">
|
2019-11-02 12:17:00 +01:00
|
|
|
<span class="bx bx-log-out"></span>
|
2019-02-09 19:17:16 +01:00
|
|
|
Logout
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-15 19:10:36 -04:00
|
|
|
</div>
|
2019-12-23 13:34:54 +01:00
|
|
|
|
2019-12-29 20:48:24 +01:00
|
|
|
<div class="note-tab-row">
|
2019-12-23 13:34:54 +01:00
|
|
|
<div class="note-tab-row-content"></div>
|
|
|
|
</div>
|
|
|
|
|
2019-12-23 13:46:26 +01:00
|
|
|
<div id="title-bar-buttons" style="display: none;">
|
2019-12-23 13:34:54 +01:00
|
|
|
<button class="btn icon-action bx bx-minus" id="minimize-btn"></button>
|
|
|
|
<button class="btn icon-action bx bx-checkbox" id="maximize-btn"></button>
|
|
|
|
<button class="btn icon-action bx bx-x" id="close-btn"></button>
|
|
|
|
</div>
|
2018-12-23 10:57:40 +01:00
|
|
|
</div>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2019-12-30 19:46:48 +01:00
|
|
|
<div id="toolbar" class="hide-in-zen-mode">
|
2019-12-23 11:52:45 +01:00
|
|
|
<div id="history-navigation" style="display: none;">
|
|
|
|
<a id="history-back-button" title="Go to previous note." class="icon-action bx bx-left-arrow-circle"></a>
|
|
|
|
|
|
|
|
<a id="history-forward-button" title="Go to next note." class="icon-action bx bx-right-arrow-circle"></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="flex-grow: 100; display: flex;">
|
|
|
|
<button class="btn btn-sm" id="jump-to-note-dialog-button" data-kb-action="JumpToNote">
|
|
|
|
<span class="bx bx-crosshair"></span>
|
|
|
|
Jump to note
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button class="btn btn-sm" id="recent-changes-button" data-kb-action="ShowRecentChanges">
|
|
|
|
<span class="bx bx-history"></span>
|
|
|
|
|
|
|
|
Recent changes
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button class="btn btn-sm"
|
|
|
|
id="enter-protected-session-button"
|
|
|
|
title="Enter protected session to be able to find and view protected notes">
|
|
|
|
<span class="bx bx-log-in"></span>
|
|
|
|
|
|
|
|
Enter protected session
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button class="btn btn-sm"
|
|
|
|
id="leave-protected-session-button"
|
|
|
|
title="Leave protected session so that protected notes are not accessible any more."
|
|
|
|
style="display: none;">
|
|
|
|
<span class="bx bx-log-out"></span>
|
|
|
|
|
|
|
|
Leave protected session
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="plugin-buttons">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<div style="display: flex; height: 100%;">
|
|
|
|
<div id="left-pane" class="hide-in-zen-mode">
|
|
|
|
<div id="global-buttons">
|
|
|
|
<a id="create-top-level-note-button" title="Create new top level note" class="icon-action bx bx-folder-plus"></a>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<a id="collapse-tree-button" title="Collapse note tree" data-kb-action="CollapseTree" class="icon-action bx bx-layer-minus"></a>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<a id="scroll-to-active-note-button" title="Scroll to active note" data-kb-action="ScrollToActiveNote" class="icon-action bx bx-crosshair"></a>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<a id="toggle-search-button" title="Search in notes" data-kb-action="SearchNotes" class="icon-action bx bx-search"></a>
|
|
|
|
</div>
|
2018-02-26 00:07:43 -05:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<div id="search-box">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<input name="search-text" id="search-text" class="form-control"
|
|
|
|
placeholder="Search text, labels" autocomplete="off">
|
2018-06-04 23:21:45 -04:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<div class="input-group-append">
|
|
|
|
<button id="do-search-button" class="btn btn-sm icon-button bx bx-search" title="Search (enter)"></button>
|
|
|
|
</div>
|
2019-03-29 23:24:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-06-04 23:21:45 -04:00
|
|
|
|
2018-06-07 19:50:16 -04:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<div style="display: flex; align-items: center; justify-content: space-evenly; flex-wrap: wrap;">
|
|
|
|
<button id="save-search-button" class="btn btn-sm"
|
|
|
|
title="This will create new saved search note under active note.">
|
|
|
|
<span class="bx bx-save"></span> Save search</button>
|
2018-06-07 19:50:16 -04:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<button id="close-search-button" class="btn btn-sm"><span class="bx bx-x"></span> Close search</button>
|
|
|
|
</div>
|
2018-12-23 10:57:40 +01:00
|
|
|
</div>
|
2018-03-13 20:02:00 -04:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<div id="search-results">
|
|
|
|
<strong>Search results:</strong>
|
2018-03-13 20:02:00 -04:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<ul id="search-results-inner"></ul>
|
|
|
|
</div>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<div id="tree"></div>
|
2018-11-08 10:11:00 +01:00
|
|
|
|
2019-12-23 08:52:57 +01:00
|
|
|
<div class="dropdown-menu dropdown-menu-sm" id="context-menu-container"></div>
|
|
|
|
</div>
|
2017-11-21 20:04:06 -05:00
|
|
|
|
2019-12-23 15:50:24 +01:00
|
|
|
<% include center.ejs %>
|
|
|
|
|
|
|
|
<% include sidebar.ejs %>
|
2019-12-23 08:52:57 +01:00
|
|
|
</div>
|
2018-12-23 10:57:40 +01:00
|
|
|
|
2019-03-24 23:01:33 +01:00
|
|
|
<% include dialogs/about.ejs %>
|
2018-12-23 10:57:40 +01:00
|
|
|
<% include dialogs/add_link.ejs %>
|
|
|
|
<% include dialogs/attributes.ejs %>
|
|
|
|
<% include dialogs/branch_prefix.ejs %>
|
|
|
|
<% include dialogs/export.ejs %>
|
2019-02-10 14:33:13 +01:00
|
|
|
<% include dialogs/import.ejs %>
|
2018-12-23 10:57:40 +01:00
|
|
|
<% include dialogs/jump_to_note.ejs %>
|
|
|
|
<% include dialogs/markdown_import.ejs %>
|
|
|
|
<% include dialogs/note_revisions.ejs %>
|
|
|
|
<% include dialogs/note_source.ejs %>
|
|
|
|
<% include dialogs/options.ejs %>
|
|
|
|
<% include dialogs/protected_session_password.ejs %>
|
|
|
|
<% include dialogs/recent_changes.ejs %>
|
|
|
|
<% include dialogs/sql_console.ejs %>
|
|
|
|
<% include dialogs/info.ejs %>
|
|
|
|
<% include dialogs/prompt.ejs %>
|
|
|
|
<% include dialogs/confirm.ejs %>
|
2019-02-10 10:38:18 +01:00
|
|
|
<% include dialogs/help.ejs %>
|
2019-02-14 20:56:33 +01:00
|
|
|
<% include dialogs/note_info.ejs %>
|
2019-06-02 15:35:57 +02:00
|
|
|
<% include dialogs/link_map.ejs %>
|
2019-11-05 23:11:25 +01:00
|
|
|
<% include dialogs/clone_to.ejs %>
|
2019-11-11 22:57:51 +01:00
|
|
|
<% include dialogs/move_to.ejs %>
|
2019-12-05 21:25:36 +01:00
|
|
|
<% include dialogs/backend_log.ejs %>
|
2019-12-29 23:46:40 +01:00
|
|
|
<% include dialogs/include_note.ejs %>
|
2018-12-23 10:57:40 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
window.baseApiUrl = 'api/';
|
2018-12-24 10:10:36 +01:00
|
|
|
window.device = "desktop";
|
2018-12-23 10:57:40 +01:00
|
|
|
window.glob = {
|
|
|
|
activeDialog: null,
|
|
|
|
sourceId: '<%= sourceId %>',
|
|
|
|
maxSyncIdAtLoad: <%= maxSyncIdAtLoad %>,
|
2019-03-24 22:41:53 +01:00
|
|
|
instanceName: '<%= instanceName %>',
|
2019-12-29 23:46:40 +01:00
|
|
|
csrfToken: '<%= csrfToken %>',
|
|
|
|
isDev: '<%= isDev %>'
|
2018-12-23 10:57:40 +01:00
|
|
|
};
|
2019-01-27 17:01:37 +01:00
|
|
|
window.appCssNoteIds = <%- JSON.stringify(appCssNoteIds) %>;
|
2018-12-23 10:57:40 +01:00
|
|
|
</script>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2018-12-23 10:57:40 +01:00
|
|
|
<!-- Required for correct loading of scripts in Electron -->
|
|
|
|
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
|
2017-10-20 23:43:20 -04:00
|
|
|
|
2018-12-23 10:57:40 +01:00
|
|
|
<script src="libraries/jquery.min.js"></script>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2018-12-23 10:57:40 +01:00
|
|
|
<link href="libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<script src="libraries/bootstrap/js/bootstrap.bundle.min.js"></script>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2018-12-23 10:57:40 +01:00
|
|
|
<!-- Include Fancytree skin and library -->
|
|
|
|
<link href="libraries/fancytree/skin-win8/ui.fancytree.css" rel="stylesheet">
|
2019-06-16 09:44:23 +02:00
|
|
|
<script src="libraries/fancytree/jquery.fancytree-all-deps.js"></script>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2018-12-23 10:57:40 +01:00
|
|
|
<script src="libraries/jquery.hotkeys.js"></script>
|
|
|
|
<script src="libraries/jquery.fancytree.hotkeys.js"></script>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2018-12-23 10:57:40 +01:00
|
|
|
<script src="libraries/autocomplete.jquery.min.js"></script>
|
2018-11-07 00:23:50 +01:00
|
|
|
|
2019-03-13 22:43:59 +01:00
|
|
|
<script src="libraries/dayjs.min.js"></script>
|
|
|
|
|
2019-12-23 11:52:45 +01:00
|
|
|
<script src="libraries/split.min.js"></script>
|
|
|
|
|
2019-05-01 08:57:44 +02:00
|
|
|
<link href="stylesheets/themes.css" rel="stylesheet">
|
2018-12-23 10:57:40 +01:00
|
|
|
<link href="stylesheets/style.css" rel="stylesheet">
|
2018-12-28 19:47:02 +01:00
|
|
|
<link href="stylesheets/desktop.css" rel="stylesheet">
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2018-12-29 10:04:59 +01:00
|
|
|
<script src="javascripts/desktop.js" crossorigin type="module"></script>
|
2018-03-24 11:18:46 -04:00
|
|
|
|
2019-11-02 12:17:00 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="libraries/boxicons/css/boxicons.min.css">
|
2018-11-09 11:57:52 +01:00
|
|
|
|
2018-12-23 10:57:40 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
// we hide container initally because otherwise it is rendered first without CSS and then flickers into
|
|
|
|
// final form which is pretty ugly.
|
|
|
|
$("#container").show();
|
|
|
|
</script>
|
|
|
|
</body>
|
2018-12-01 23:15:36 +01:00
|
|
|
</html>
|