Reorganised some routing logic. Added separate views for SPAs and reorganised static folders to be globally accessible, so that the separate views can access the right folder. Language can be permanently changed for account.

This commit is contained in:
Daniel Ledda
2020-05-24 11:33:25 +02:00
parent 83844588df
commit 3a7e7de3d4
17 changed files with 1447 additions and 3537 deletions

22
views/gameIndex.ejs Executable file
View File

@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href=<%= rootUrl + "/static/favicon.ico" %> />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Score dice games with K A D I"
/>
<link rel="manifest" href=<%= rootUrl + "/static/game/manifest.json" %> />
<title>K A D I - Digital Dice</title>
</head>
<body>
<div id="root"></div>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<script src=<%= rootUrl + "/static/game/bundle.js" %>></script>
</body>
</html>