Update dependencies, use local fonts

This commit is contained in:
Florine W. Dekker 2021-03-26 03:51:28 +01:00
parent 21974c0b22
commit 82619f02ec
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
5 changed files with 9 additions and 11 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -1,6 +1,6 @@
{ {
"name": "random-fo76", "name": "random-fo76",
"version": "1.0.12", "version": "1.0.13",
"description": "Random Fallout 76 record.", "description": "Random Fallout 76 record.",
"author": "Felix W. Dekker", "author": "Felix W. Dekker",
"browser": "dist/bundle.js", "browser": "dist/bundle.js",
@ -16,18 +16,18 @@
"deploy": "grunt deploy" "deploy": "grunt deploy"
}, },
"dependencies": { "dependencies": {
"@fwdekker/template": "^0.0.21" "@fwdekker/template": "^0.0.24"
}, },
"devDependencies": { "devDependencies": {
"grunt": "^1.3.0", "grunt": "^1.3.0",
"grunt-cli": "^1.3.2", "grunt-cli": "^1.4.1",
"grunt-contrib-clean": "^2.0.0", "grunt-contrib-clean": "^2.0.0",
"grunt-contrib-copy": "^1.0.0", "grunt-contrib-copy": "^1.0.0",
"grunt-contrib-watch": "^1.1.0", "grunt-contrib-watch": "^1.1.0",
"grunt-focus": "^1.0.0", "grunt-focus": "^1.0.0",
"grunt-text-replace": "^0.4.0", "grunt-text-replace": "^0.4.0",
"grunt-webpack": "^4.0.2", "grunt-webpack": "^4.0.2",
"webpack": "^4.44.2", "webpack": "^5.28.0",
"webpack-cli": "^3.3.12" "webpack-cli": "^4.5.0"
} }
} }

View File

@ -44,8 +44,7 @@ switch ($action) {
$stmt->bindValue($i + 1, $signature); $stmt->bindValue($i + 1, $signature);
$results = $stmt->execute(); $results = $stmt->execute();
while ($row = $results->fetchArray(SQLITE3_ASSOC)) print(json_encode($results->fetchArray(SQLITE3_ASSOC)));
print(json_encode($row));
break; break;
default: default:
print("null"); print("null");

View File

@ -10,8 +10,7 @@
<title>Random Fallout 76 record</title> <title>Random Fallout 76 record</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic" <link rel="stylesheet" href="https://static.fwdekker.com/fonts/roboto.css" crossorigin="anonymous" />
crossorigin="anonymous" />
</head> </head>
<body> <body>
<noscript> <noscript>

View File

@ -1,4 +1,4 @@
import {$, doAfterLoad, footer, header, nav} from "@fwdekker/template"; import {$, doAfterLoad, footer, header, nav, showPage} from "@fwdekker/template";
const storageKey = "/tools/random-fo76//selected-signatures"; const storageKey = "/tools/random-fo76//selected-signatures";
@ -180,7 +180,7 @@ doAfterLoad(() => {
vcsURL: "https://git.fwdekker.com/FWDekker/random-fo76/", vcsURL: "https://git.fwdekker.com/FWDekker/random-fo76/",
version: "v%%VERSION_NUMBER%%" version: "v%%VERSION_NUMBER%%"
})); }));
$("main").style.display = null; showPage();
}); });
// Load page from API // Load page from API