mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
222 lines
8.6 KiB
Plaintext
222 lines
8.6 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link rel="shortcut icon" href="favicon.ico">
|
|
<title>Trilium Notes</title>
|
|
</head>
|
|
<body class="desktop theme-<%= theme %>" style="--main-font-size: <%= mainFontSize %>%; --tree-font-size: <%= treeFontSize %>%; --detail-font-size: <%= detailFontSize %>%;">
|
|
<noscript>Trilium requires JavaScript to be enabled.</noscript>
|
|
|
|
<div id="toast-container" class="d-flex flex-column justify-content-center align-items-center"></div>
|
|
|
|
<div id="container" style="display: none;">
|
|
<div id="tab-pane">
|
|
<div id="global-menu-wrapper">
|
|
<div class="dropdown" id="global-menu">
|
|
<button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm dropdown-toggle">
|
|
<span class="bx bx-menu"></span>
|
|
Menu
|
|
<span class="caret"></span>
|
|
</button>
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
<a class="dropdown-item" id="options-button">
|
|
<span class="bx bx-slider"></span>
|
|
Options
|
|
</a>
|
|
|
|
<a class="dropdown-item" id="sync-now-button" title="Trigger sync">
|
|
<span class="bx bx-recycle"></span>
|
|
Sync (<span id="outstanding-syncs-count">0</span>)
|
|
</a>
|
|
|
|
<a class="dropdown-item" id="open-dev-tools-button">
|
|
<span class="bx bx-terminal"></span>
|
|
Open Dev Tools
|
|
<kbd data-kb-action="OpenDevTools"></kbd>
|
|
</a>
|
|
|
|
<a class="dropdown-item" id="open-sql-console-button">
|
|
<span class="bx bx-data"></span>
|
|
Open SQL Console
|
|
<kbd data-kb-action="ShowSQLConsole"></kbd>
|
|
</a>
|
|
|
|
<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>
|
|
|
|
<a class="dropdown-item" id="reload-frontend-button" title="Reload can help with some visual glitches without restarting the whole app.">
|
|
<span class="bx bx-empty"></span>
|
|
Reload frontend
|
|
<kbd data-kb-action="ReloadFrontendApp"></kbd>
|
|
</a>
|
|
|
|
<a class="dropdown-item" id="toggle-zen-mode-button">
|
|
<span class="bx bx-empty"></span>
|
|
Toggle Zen mode
|
|
<kbd data-kb-action="ToggleZenMode"></kbd>
|
|
</a>
|
|
|
|
<a class="dropdown-item" id="toggle-fullscreen-button">
|
|
<span class="bx bx-empty"></span>
|
|
Toggle fullscreen
|
|
<kbd data-kb-action="ToggleFullscreen"></kbd>
|
|
</a>
|
|
|
|
<a class="dropdown-item" id="show-help-button">
|
|
<span class="bx bx-info-circle"></span>
|
|
Show Help
|
|
<kbd data-kb-action="ShowHelp"></kbd>
|
|
</a>
|
|
|
|
<a class="dropdown-item" id="show-about-dialog-button">
|
|
<span class="bx bx-empty"></span>
|
|
About Trilium Notes
|
|
</a>
|
|
|
|
<a class="dropdown-item" id="logout-button">
|
|
<span class="bx bx-log-out"></span>
|
|
Logout
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="title-bar-buttons" style="display: none;">
|
|
<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>
|
|
</div>
|
|
|
|
<div id="top-pane" class="hide-in-zen-mode">
|
|
<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>
|
|
|
|
<div style="display: flex; flex-grow: 1; flex-shrink: 1; min-height: 0;">
|
|
<div id="left-pane" class="hide-in-zen-mode"></div>
|
|
|
|
<div id="center-pane"></div>
|
|
|
|
<% include sidebar.ejs %>
|
|
</div>
|
|
|
|
<div class="dropdown-menu dropdown-menu-sm" id="context-menu-container"></div>
|
|
|
|
<% include dialogs/about.ejs %>
|
|
<% include dialogs/add_link.ejs %>
|
|
<% include dialogs/attributes.ejs %>
|
|
<% include dialogs/branch_prefix.ejs %>
|
|
<% include dialogs/export.ejs %>
|
|
<% include dialogs/import.ejs %>
|
|
<% 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 %>
|
|
<% include dialogs/help.ejs %>
|
|
<% include dialogs/note_info.ejs %>
|
|
<% include dialogs/link_map.ejs %>
|
|
<% include dialogs/clone_to.ejs %>
|
|
<% include dialogs/move_to.ejs %>
|
|
<% include dialogs/backend_log.ejs %>
|
|
<% include dialogs/include_note.ejs %>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
window.baseApiUrl = 'api/';
|
|
window.device = "desktop";
|
|
window.glob = {
|
|
activeDialog: null,
|
|
sourceId: '<%= sourceId %>',
|
|
maxSyncIdAtLoad: <%= maxSyncIdAtLoad %>,
|
|
instanceName: '<%= instanceName %>',
|
|
csrfToken: '<%= csrfToken %>',
|
|
isDev: '<%= isDev %>'
|
|
};
|
|
window.appCssNoteIds = <%- JSON.stringify(appCssNoteIds) %>;
|
|
</script>
|
|
|
|
<!-- Required for correct loading of scripts in Electron -->
|
|
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
|
|
|
|
<script src="libraries/jquery.min.js"></script>
|
|
|
|
<link href="libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
<script src="libraries/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
|
|
<!-- Include Fancytree skin and library -->
|
|
<link href="libraries/fancytree/skin-win8/ui.fancytree.css" rel="stylesheet">
|
|
<script src="libraries/fancytree/jquery.fancytree-all-deps.js"></script>
|
|
|
|
<script src="libraries/jquery.hotkeys.js"></script>
|
|
<script src="libraries/jquery.fancytree.hotkeys.js"></script>
|
|
|
|
<script src="libraries/autocomplete.jquery.min.js"></script>
|
|
|
|
<script src="libraries/dayjs.min.js"></script>
|
|
|
|
<script src="libraries/split.min.js"></script>
|
|
|
|
<link href="stylesheets/themes.css" rel="stylesheet">
|
|
<link href="stylesheets/style.css" rel="stylesheet">
|
|
<link href="stylesheets/desktop.css" rel="stylesheet">
|
|
|
|
<script src="javascripts/desktop.js" crossorigin type="module"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="libraries/boxicons/css/boxicons.min.css">
|
|
|
|
<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>
|
|
</html>
|