mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-12 07:01:31 +08:00
added status text to the initial loading screen
This commit is contained in:
parent
ec04272e99
commit
d81c232d85
3 changed files with 11 additions and 3 deletions
|
|
@ -31,6 +31,7 @@ export function toggleFilterDebug() {
|
|||
|
||||
export async function getDataAndInit() {
|
||||
try {
|
||||
$(".pageLoading .text").text("Downloading user data...");
|
||||
console.log("getting account data");
|
||||
await DB.initSnapshot();
|
||||
} catch (e) {
|
||||
|
|
@ -133,6 +134,7 @@ export async function getDataAndInit() {
|
|||
}
|
||||
// if($(".pageAccount").hasClass('active')) update();
|
||||
// if ($(".pageLogin").hasClass("active")) UI.changePage("account");
|
||||
$(".pageLoading .text").text("Applying settings...");
|
||||
if (!UpdateConfig.changedBeforeDb) {
|
||||
//config didnt change before db loaded
|
||||
if (Config.localStorageConfig === null) {
|
||||
|
|
|
|||
|
|
@ -180,9 +180,12 @@ key {
|
|||
display: grid;
|
||||
justify-content: center;
|
||||
.preloader {
|
||||
font-size: 2rem;
|
||||
text-align: center;
|
||||
justify-self: center;
|
||||
color: var(--main-color);
|
||||
.icon {
|
||||
font-size: 2rem;
|
||||
color: var(--main-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1056,7 +1056,10 @@
|
|||
<div id="middle">
|
||||
<div class="page pageLoading hidden">
|
||||
<div class="preloader">
|
||||
<i class="fas fa-fw fa-spin fa-circle-notch"></i>
|
||||
<div class="icon">
|
||||
<i class="fas fa-fw fa-spin fa-circle-notch"></i>
|
||||
</div>
|
||||
<div class="text">Authenticating...</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page pageTest hidden">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue