mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-03 11:07:00 -04:00
(nuxt) migrate loading template when SSR is disabled
This commit is contained in:
parent
c555a8468b
commit
5d9a63bc14
@ -59,8 +59,8 @@
|
|||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-indent: -9999em;
|
text-indent: -9999em;
|
||||||
border: .5rem solid <%= options.color2 %>;
|
border: .5rem solid transparent;
|
||||||
border-left: .5rem solid <%= options.color %>;
|
border-left: .5rem solid #C71585;
|
||||||
-webkit-transform: translateZ(0);
|
-webkit-transform: translateZ(0);
|
||||||
-ms-transform: translateZ(0);
|
-ms-transform: translateZ(0);
|
||||||
transform: translateZ(0);
|
transform: translateZ(0);
|
||||||
@ -104,12 +104,15 @@
|
|||||||
<script>
|
<script>
|
||||||
window.addEventListener('error', (e) => {
|
window.addEventListener('error', (e) => {
|
||||||
const l = document.getElementById('loading');
|
const l = document.getElementById('loading');
|
||||||
|
if (!l) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
l.classList.add('error');
|
l.classList.add('error');
|
||||||
const p = document.createElement("p");
|
const p = document.createElement("p");
|
||||||
p.innerHTML = `
|
p.innerHTML = `
|
||||||
Apologies, there has been some error while loading the page.
|
Apologies, there has been some error while loading the page.
|
||||||
Please try to <a href="https://www.wikihow.com/Clear-Your-Browser%27s-Cache">clear your cache</a>
|
Please try to <a href="https://www.wikihow.com/Clear-Your-Browser%27s-Cache">clear your cache</a>
|
||||||
and if the problem persists, reach to us via contact@pronouns.page attaching the following error message:
|
and if the problem persists, reach to us via technical@pronouns.page attaching the following error message:
|
||||||
`;
|
`;
|
||||||
l.appendChild(p);
|
l.appendChild(p);
|
||||||
const q = document.createElement("pre");
|
const q = document.createElement("pre");
|
||||||
@ -118,4 +121,4 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="loading" aria-live="polite" role="status"><div><%= options.loading %></div></div>
|
<div id="loading" aria-live="polite" role="status"><div>Loading…</div></div>
|
@ -560,7 +560,4 @@ exports.randomFillSync = randomFillSync`],
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
loadingIndicator: {
|
|
||||||
name: 'views/loading.html',
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user