Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Oct 18, 2024
1 parent c135508 commit a4508c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
21 changes: 10 additions & 11 deletions resources/template/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<base href="<%= appPrefix %>" />
<link href="favicon.ico" rel="icon">
<style>
.loadmask {
position: fixed;
Expand All @@ -12,10 +13,6 @@
transform: -moz-translate(-50%, -50%);
transform: -ms-translate(-50%, -50%);
z-index: 999;
/* Keeping this for future reference */
/* opacity: 0;
animation: heartBeat 2s ease-in-out infinite; */
}
.loadmask-hidden {
Expand Down Expand Up @@ -58,6 +55,12 @@
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="loadmask" class="loadmask">
<img src="loading-placeholder.png" id="loadmask-image">
<span id="loading-text">
Loading, please wait…
</span>
</div>
<script src="./gis-client-config.js"></script>
<script>
if (!window.clientConfig) {
Expand All @@ -67,7 +70,8 @@
</script>
<script>
const regex = /\applicationId=(\d+)/;
const appId = location.search.match(regex)[1];
const appIdCand = location.search.match(regex);
let appId = appIdCand ? appIdCand[1] : null;
let logoPath = './shogun_spinner.gif';
if (appId) {
logoPath = localStorage.getItem(`SHOGun_Logo_Path_${appId}`);
Expand All @@ -78,12 +82,7 @@
loadingImageElement.src = logoPath;
}
</script>
<div id="loadmask" class="loadmask">
<img src="loading-placeholder.png" id="loadmask-image">
<span id="loading-text">
Loading, please wait…
</span>
</div>

<div id="app" class="app"></div>
</body>
</html>
1 change: 0 additions & 1 deletion rspack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ module.exports = {
templateParameters: {
appPrefix: process.env.HTML_BASE_URL ?? ''
},
favicon: path.join(__dirname, 'resources', 'public', 'favicon.ico'),
meta: {
charset: 'utf-8',
viewport: 'user-scalable=no, width=device-width, initial-scale=1, shrink-to-fit=no'
Expand Down

0 comments on commit a4508c3

Please sign in to comment.