mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
added a progress screen for setup of a new document
This commit is contained in:
parent
c4e5b35187
commit
5a6ab68144
@ -75,6 +75,8 @@ function SetupModel() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.step('new-document-in-progress');
|
||||||
|
|
||||||
// not using server.js because it loads too many dependencies
|
// not using server.js because it loads too many dependencies
|
||||||
$.post('api/setup/new-document', {
|
$.post('api/setup/new-document', {
|
||||||
username: username,
|
username: username,
|
||||||
|
@ -4,6 +4,44 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
<title>Setup</title>
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>Trilium requires JavaScript to be enabled.</noscript>
|
<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>
|
<button type="button" data-bind="click: finish" class="btn btn-primary">Finish setup</button>
|
||||||
</div>
|
</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'">
|
<div data-bind="visible: step() == 'sync-from-desktop'">
|
||||||
<h2>Sync from Desktop</h2>
|
<h2>Sync from Desktop</h2>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user