diff --git a/Gruntfile.js b/Gruntfile.js
index b16e00f..12dbc30 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -7,6 +7,9 @@ module.exports = grunt => {
default: ["dist/"],
},
copy: {
+ css: {
+ files: [{expand: true, cwd: "src/main/", src: "**/*.css", dest: "dist/", flatten: true}]
+ },
db: {
files: [{expand: true, cwd: "src/main/", src: "**/.*.db", dest: "dist/", flatten: true}]
},
@@ -19,12 +22,12 @@ module.exports = grunt => {
},
focus: {
dev: {
- include: ["html", "js", "php"],
+ include: ["css", "html", "js", "php"],
},
},
replace: {
dev: {
- src: ["./dist/*.html", "./dist/*.js"],
+ src: ["./dist/**/*.html", "./dist/**/*.js"],
replacements: [
{
from: "%%VERSION_NUMBER%%",
@@ -45,6 +48,10 @@ module.exports = grunt => {
},
},
watch: {
+ css: {
+ files: ["src/main/**/*.css"],
+ tasks: ["copy:css"],
+ },
html: {
files: ["src/main/**/*.html"],
tasks: ["copy:html"],
@@ -98,6 +105,7 @@ module.exports = grunt => {
// Pre
"clean",
// Copy files
+ "copy:css",
"copy:db",
"copy:html",
"copy:php",
@@ -110,6 +118,7 @@ module.exports = grunt => {
// Pre
"clean",
// Copy files
+ "copy:css",
"copy:db",
"copy:html",
"copy:php",
diff --git a/package-lock.json b/package-lock.json
index 5869eaf..17441a3 100644
Binary files a/package-lock.json and b/package-lock.json differ
diff --git a/package.json b/package.json
index 8ebe1f3..3c8c04f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "random-fo76",
- "version": "1.0.15",
+ "version": "1.0.16",
"description": "Random Fallout 76 record.",
"author": "Felix W. Dekker",
"browser": "dist/bundle.js",
@@ -16,7 +16,7 @@
"deploy": "grunt deploy"
},
"devDependencies": {
- "grunt": "^1.3.0",
+ "grunt": "^1.4.0",
"grunt-cli": "^1.4.2",
"grunt-contrib-clean": "^2.0.0",
"grunt-contrib-copy": "^1.0.0",
@@ -24,7 +24,7 @@
"grunt-focus": "^1.0.0",
"grunt-text-replace": "^0.4.0",
"grunt-webpack": "^4.0.3",
- "webpack": "^5.33.2",
+ "webpack": "^5.36.0",
"webpack-cli": "^4.6.0"
}
}
diff --git a/src/main/css/main.css b/src/main/css/main.css
new file mode 100644
index 0000000..930bbb1
--- /dev/null
+++ b/src/main/css/main.css
@@ -0,0 +1,7 @@
+table#metadata {
+ max-width: 300px;
+}
+
+.error {
+ color: red;
+}
diff --git a/src/main/index.html b/src/main/index.html
index 97306cd..7e5c319 100644
--- a/src/main/index.html
+++ b/src/main/index.html
@@ -12,27 +12,29 @@
+
+
-
+