Use new template system
This commit is contained in:
parent
95c07d3db6
commit
0bacdf1c7c
|
@ -50,7 +50,7 @@ module.exports = grunt => {
|
||||||
},
|
},
|
||||||
webpack: {
|
webpack: {
|
||||||
options: {
|
options: {
|
||||||
entry: "./src/main/js/Main.js",
|
entry: "./src/main/js/main.js",
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "privacy-policy",
|
"name": "privacy-policy",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"description": "The privacy policy of my website",
|
"description": "The privacy policy of my website",
|
||||||
"author": "Felix W. Dekker",
|
"author": "Felix W. Dekker",
|
||||||
"browser": "dist/bundle.js",
|
"browser": "dist/bundle.js",
|
||||||
|
@ -15,9 +15,6 @@
|
||||||
"dev:server": "grunt dev:server",
|
"dev:server": "grunt dev:server",
|
||||||
"deploy": "grunt deploy"
|
"deploy": "grunt deploy"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
|
||||||
"@fwdekker/template": "^0.0.25"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "^1.3.0",
|
"grunt": "^1.3.0",
|
||||||
"grunt-cli": "^1.4.2",
|
"grunt-cli": "^1.4.2",
|
||||||
|
@ -27,7 +24,7 @@
|
||||||
"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": "^5.32.0",
|
"webpack": "^5.33.2",
|
||||||
"webpack-cli": "^4.6.0"
|
"webpack-cli": "^4.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,14 +10,15 @@
|
||||||
|
|
||||||
<title>Privacy policy</title>
|
<title>Privacy policy</title>
|
||||||
<link rel="stylesheet" href="https://static.fwdekker.com/fonts/roboto.css" crossorigin="anonymous" />
|
<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" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>
|
<noscript>
|
||||||
<span style="color: red; font-weight: bold;">
|
<p style="color: red; font-weight: bold;">
|
||||||
This website does not function fully if JavaScript is disabled.
|
This website does not function if JavaScript is disabled.
|
||||||
Please check the <a href="https://www.enable-javascript.com/">
|
Please check the <a href="https://www.enable-javascript.com/">
|
||||||
instructions on how to enable JavaScript in your web browser</a>.
|
instructions on how to enable JavaScript in your web browser</a>.
|
||||||
</span>
|
</p>
|
||||||
</noscript>
|
</noscript>
|
||||||
<main> <!-- Do not hide without JavaScript -->
|
<main> <!-- Do not hide without JavaScript -->
|
||||||
<div id="nav"></div>
|
<div id="nav"></div>
|
||||||
|
@ -66,6 +67,7 @@
|
||||||
|
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
|
<script src="https://static.fwdekker.com/lib/template/1.x.x/bundle.js" crossorigin="anonymous"></script>
|
||||||
<!--suppress HtmlUnknownTarget -->
|
<!--suppress HtmlUnknownTarget -->
|
||||||
<script src="bundle.js?v=%%VERSION_NUMBER%%"></script>
|
<script src="bundle.js?v=%%VERSION_NUMBER%%"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
import {$, doAfterLoad, footer, header, nav, showPage} from "@fwdekker/template";
|
// noinspection JSUnresolvedVariable
|
||||||
|
const {$, doAfterLoad, footer, header, nav, showPage} = window.fwdekker;
|
||||||
|
|
||||||
|
|
||||||
doAfterLoad(() => {
|
doAfterLoad(() => {
|
||||||
$("#nav").appendChild(nav("/Privacy/"));
|
$("#nav").appendChild(nav("/Privacy/"));
|
||||||
$("#header").appendChild(header({title: "Privacy policy"}));
|
$("#header").appendChild(header({title: "Privacy policy"}));
|
||||||
$("#footer").appendChild(footer({
|
$("#footer").appendChild(footer({
|
||||||
author: "Felix W. Dekker",
|
|
||||||
authorURL: "https://fwdekker.com/",
|
|
||||||
license: "MIT License",
|
|
||||||
licenseURL: "https://git.fwdekker.com/FWDekker/privacy-policy/src/branch/master/LICENSE",
|
|
||||||
vcs: "git",
|
|
||||||
vcsURL: "https://git.fwdekker.com/FWDekker/privacy-policy/",
|
vcsURL: "https://git.fwdekker.com/FWDekker/privacy-policy/",
|
||||||
version: "v%%VERSION_NUMBER%%",
|
version: "v%%VERSION_NUMBER%%",
|
||||||
privacyPolicyURL: null
|
privacyPolicyURL: null
|
Loading…
Reference in New Issue