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">
|
2024-02-14 07:21:31 +01:00
|
|
|
<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest">
|
2024-07-14 21:20:42 +03:00
|
|
|
<title>TriliumNext Notes</title>
|
2018-12-23 10:57:40 +01:00
|
|
|
</head>
|
2024-12-05 20:34:55 +02:00
|
|
|
<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %> <%= hasNativeTitleBar ? 'native-titlebar' : '' %>">
|
2024-09-08 18:55:11 +03:00
|
|
|
<noscript><%= t("javascript-required") %></noscript>
|
2019-10-17 20:03:05 +02:00
|
|
|
|
2020-05-21 09:42:25 +02:00
|
|
|
<script>
|
|
|
|
// hide body to reduce flickering on the startup. This is done through JS and not CSS to not hide <noscript>
|
|
|
|
document.getElementsByTagName("body")[0].style.display = "none";
|
|
|
|
</script>
|
|
|
|
|
2019-10-17 20:03:05 +02:00
|
|
|
<div id="toast-container" class="d-flex flex-column justify-content-center align-items-center"></div>
|
|
|
|
|
2020-02-06 21:16:02 +01:00
|
|
|
<div class="dropdown-menu dropdown-menu-sm" id="context-menu-container"></div>
|
|
|
|
|
2018-12-23 10:57:40 +01:00
|
|
|
<script type="text/javascript">
|
2021-12-24 22:18:05 +01:00
|
|
|
global = globalThis; /* fixes https://github.com/webpack/webpack/issues/10035 */
|
|
|
|
|
2018-12-23 10:57:40 +01:00
|
|
|
window.glob = {
|
2023-05-03 22:49:24 +02:00
|
|
|
device: "desktop",
|
|
|
|
baseApiUrl: 'api/',
|
2018-12-23 10:57:40 +01:00
|
|
|
activeDialog: null,
|
2020-08-02 23:27:48 +02:00
|
|
|
maxEntityChangeIdAtLoad: <%= maxEntityChangeIdAtLoad %>,
|
2021-03-21 22:43:41 +01:00
|
|
|
maxEntityChangeSyncIdAtLoad: <%= maxEntityChangeSyncIdAtLoad %>,
|
2019-03-24 22:41:53 +01:00
|
|
|
instanceName: '<%= instanceName %>',
|
2019-12-29 23:46:40 +01:00
|
|
|
csrfToken: '<%= csrfToken %>',
|
2020-04-25 23:52:13 +02:00
|
|
|
isDev: <%= isDev %>,
|
|
|
|
appCssNoteIds: <%- JSON.stringify(appCssNoteIds) %>,
|
2021-02-07 21:27:09 +01:00
|
|
|
isMainWindow: <%= isMainWindow %>,
|
2021-05-07 22:23:49 +02:00
|
|
|
isProtectedSessionAvailable: <%= isProtectedSessionAvailable %>,
|
2022-10-26 23:50:54 +02:00
|
|
|
triliumVersion: "<%= triliumVersion %>",
|
2022-12-24 13:57:42 +01:00
|
|
|
assetPath: "<%= assetPath %>",
|
2022-12-25 11:58:24 +01:00
|
|
|
appPath: "<%= appPath %>",
|
2024-12-06 22:12:27 +02:00
|
|
|
platform: "<%= platform %>",
|
|
|
|
hasNativeTitleBar: "<%= hasNativeTitleBar %>",
|
2022-12-24 13:57:42 +01:00
|
|
|
TRILIUM_SAFE_MODE: <%= !!process.env.TRILIUM_SAFE_MODE %>
|
2018-12-23 10:57:40 +01:00
|
|
|
};
|
|
|
|
</script>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2021-10-31 21:55:11 +01:00
|
|
|
<style>
|
|
|
|
.note-split {
|
|
|
|
max-width: <%= maxContentWidth %>px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
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
|
|
|
|
2023-11-22 20:11:41 +01:00
|
|
|
<script src="<%= assetPath %>/node_modules/jquery/dist/jquery.min.js"></script>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2024-08-11 01:59:50 +02:00
|
|
|
<link href="<%= assetPath %>/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<script src="<%= assetPath %>/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2021-05-23 20:26:54 +02:00
|
|
|
<!-- Include Fancytree library and skip -->
|
2022-10-26 23:50:54 +02:00
|
|
|
<link href="<%= assetPath %>/stylesheets/tree.css" rel="stylesheet">
|
2024-08-11 01:59:50 +02:00
|
|
|
<script src="<%= assetPath %>/node_modules/jquery.fancytree/dist/jquery.fancytree-all-deps.min.js"></script>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2023-11-22 20:15:21 +01:00
|
|
|
<script src="<%= assetPath %>/node_modules/jquery-hotkeys/jquery-hotkeys.js"></script>
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2024-08-12 17:41:33 +02:00
|
|
|
<script src="<%= assetPath %>/node_modules/autocomplete.js/dist/autocomplete.jquery.min.js"></script>
|
2018-11-07 00:23:50 +01:00
|
|
|
|
2023-11-22 19:58:54 +01:00
|
|
|
<script src="<%= assetPath %>/node_modules/dayjs/dayjs.min.js"></script>
|
2019-03-13 22:43:59 +01:00
|
|
|
|
2023-11-22 20:26:20 +01:00
|
|
|
<script src="<%= assetPath %>/node_modules/split.js/dist/split.min.js"></script>
|
2019-12-23 11:52:45 +01:00
|
|
|
|
2022-10-26 23:50:54 +02:00
|
|
|
<link href="<%= assetPath %>/stylesheets/ckeditor-theme.css" rel="stylesheet">
|
2021-09-27 21:01:56 +02:00
|
|
|
<link href="api/fonts" rel="stylesheet">
|
2022-10-26 23:50:54 +02:00
|
|
|
<link href="<%= assetPath %>/stylesheets/theme-light.css" rel="stylesheet">
|
2021-09-26 15:24:37 +02:00
|
|
|
|
|
|
|
<% if (themeCssUrl) { %>
|
|
|
|
<link href="<%= themeCssUrl %>" rel="stylesheet">
|
|
|
|
<% } %>
|
|
|
|
|
2022-10-26 23:50:54 +02:00
|
|
|
<link href="<%= assetPath %>/stylesheets/style.css" rel="stylesheet">
|
2017-10-15 19:10:36 -04:00
|
|
|
|
2020-05-21 09:42:25 +02:00
|
|
|
<script>
|
|
|
|
$("body").show();
|
|
|
|
</script>
|
|
|
|
|
2022-12-25 11:58:24 +01:00
|
|
|
<script src="<%= appPath %>/desktop.js" crossorigin type="module"></script>
|
2018-03-24 11:18:46 -04:00
|
|
|
|
2023-11-22 20:06:44 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="<%= assetPath %>/node_modules/boxicons/css/boxicons.min.css">
|
2018-11-09 11:57:52 +01:00
|
|
|
|
2024-12-04 22:57:03 +02:00
|
|
|
</>
|
2018-12-01 23:15:36 +01:00
|
|
|
</html>
|