Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
added a progress screen for setup of a new document
zadam5a6ab68144b3
diff --git a/src/public/javascripts/setup.js b/src/public/javascripts/setup.jsindex 65542cc47d..b87e3faedf 100644--- a/src/public/javascripts/setup.js+++ b/src/public/javascripts/setup.js@@ -75,6 +75,8 @@ function SetupModel() {return;}+ this.step('new-document-in-progress');+// not using server.js because it loads too many dependencies$.post('api/setup/new-document', {username: username,diff --git a/src/views/setup.ejs b/src/views/setup.ejsindex 896a4ec7fb..6ce94650d4 100644--- a/src/views/setup.ejs+++ b/src/views/setup.ejs@@ -4,6 +4,44 @@<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><title>Setup</title>++ <style>+ .lds-ring {+ display: inline-block;+ position: relative;+ width: 60px;+ height: 60px;+ }+ .lds-ring div {+ box-sizing: border-box;+ display: block;+ position: absolute;+ width: 48px;+ height: 48px;+ margin: 8px;+ border: 6px solid black;+ border-radius: 50%;+ animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;+ border-color: black transparent transparent transparent;+ }+ .lds-ring div:nth-child(1) {+ animation-delay: -0.45s;+ }+ .lds-ring div:nth-child(2) {+ animation-delay: -0.3s;+ }+ .lds-ring div:nth-child(3) {+ animation-delay: -0.15s;+ }+ @keyframes lds-ring {+ 0% {+ transform: rotate(0deg);+ }+ 100% {+ transform: rotate(360deg);+ }+ }+ </style></head><body><noscript>Trilium requires JavaScript to be enabled.</noscript>@@ -77,6 +115,23 @@<button type="button" data-bind="click: finish" class="btn btn-primary">Finish setup</button></div>+ <div data-bind="visible: step() == 'new-document-in-progress'">+ <h2>Document initialization in progress</h2>++ <div style="display: flex; justify-content: flex-start; margin-top: 20px;">+ <div class="lds-ring" style="margin-right: 20px;">+ <div></div>+ <div></div>+ <div></div>+ <div></div>+ </div>++ <div style="line-height: 50px;">+ <p>You will be shortly redirected to the application.</p>+ </div>+ </div>+ </div>+<div data-bind="visible: step() == 'sync-from-desktop'"><h2>Sync from Desktop</h2>