Add Goatcounter and relocate some resources

This commit is contained in:
Florine W. Dekker 2021-04-22 12:57:23 +02:00
parent 0182f732e1
commit c908afeb42
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
3 changed files with 12 additions and 13 deletions

View File

@ -8,18 +8,18 @@ module.exports = grunt => {
},
copy: {
db: {
files: [{expand: true, cwd: "src/main/", src: "**/.*.db", dest: "dist/"}]
files: [{expand: true, cwd: "src/main/", src: "**/.*.db", dest: "dist/", flatten: true}]
},
html: {
files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/"}]
files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/", flatten: true}]
},
php: {
files: [{expand: true, cwd: "src/main/", src: "**/*.php", dest: "dist/"}]
files: [{expand: true, cwd: "src/main/", src: "**/*.php", dest: "dist/", flatten: true}]
},
},
focus: {
dev: {
include: ["html", "js", "link", "php"],
include: ["html", "js", "php"],
},
},
replace: {
@ -53,10 +53,6 @@ module.exports = grunt => {
files: ["src/main/**/*.js"],
tasks: ["webpack:dev", "replace:dev"],
},
link: {
files: ["node_modules/@fwdekker/*/dist/**"],
tasks: ["webpack:dev", "replace:dev"],
},
php: {
files: ["src/main/**/*.php"],
tasks: ["copy:php"],

View File

@ -1,6 +1,6 @@
{
"name": "random-fo76",
"version": "1.0.14",
"version": "1.0.15",
"description": "Random Fallout 76 record.",
"author": "Felix W. Dekker",
"browser": "dist/bundle.js",

View File

@ -10,12 +10,16 @@
<title>Random Fallout 76 record</title>
<link rel="stylesheet" href="https://static.fwdekker.com/fonts/roboto.css" crossorigin="anonymous" />
<link rel="stylesheet" href="https://static.fwdekker.com/lib/template/1.x.x/bundle.css" crossorigin="anonymous" />
<link rel="stylesheet" href="https://static.fwdekker.com/fonts/roboto/roboto.css" />
<link rel="stylesheet" href="https://static.fwdekker.com/lib/template/2.x.x/template.css" />
<script async src="https://stats.fwdekker.com/count.js"
data-goatcounter="https://stats.fwdekker.com/count"></script>
</head>
<body>
<noscript>
<p style="color: red; font-weight: bold;">
<img src="https://stats.fwdekker.com/count?p=/tools/random-fo76/" alt="Counting pixel" />
This website does not function if JavaScript is disabled.
Please check the <a href="https://www.enable-javascript.com/">
instructions on how to enable JavaScript in your web browser</a>.
@ -26,7 +30,6 @@
<div id="contents">
<div id="header"></div>
<!-- Metadata -->
<section class="container">
<table style="max-width: 300px;">
@ -61,7 +64,7 @@
<div id="footer"></div>
</main>
<script src="https://static.fwdekker.com/lib/template/1.x.x/bundle.js" crossorigin="anonymous"></script>
<script src="https://static.fwdekker.com/lib/template/2.x.x/template.js"></script>
<!--suppress HtmlUnknownTarget -->
<script src="bundle.js?v=%%VERSION_NUMBER%%"></script>
</body>