mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 12:08:03 +08:00
added a progress screen for setup of a new document
This commit is contained in:
parent
c4e5b35187
commit
5a6ab68144
2 changed files with 57 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue