Use new template system
This commit is contained in:
parent
8faeca268b
commit
e18f1187c1
|
@ -54,7 +54,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.
15
package.json
15
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "simplify-fractions",
|
"name": "simplify-fractions",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"description": "Simple web tool for simplifying fractions",
|
"description": "Simple web tool for simplifying fractions",
|
||||||
"author": "Felix W. Dekker",
|
"author": "Felix W. Dekker",
|
||||||
"browser": "dist/bundle.js",
|
"browser": "dist/bundle.js",
|
||||||
|
@ -16,22 +16,21 @@
|
||||||
"deploy": "grunt deploy"
|
"deploy": "grunt deploy"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fwdekker/template": "^0.0.24",
|
"katex": "^0.13.2"
|
||||||
"katex": "^0.13.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"css-loader": "^5.2.0",
|
"css-loader": "^5.2.2",
|
||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"grunt": "^1.3.0",
|
"grunt": "^1.3.0",
|
||||||
"grunt-cli": "^1.4.1",
|
"grunt-cli": "^1.4.2",
|
||||||
"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.3",
|
||||||
"style-loader": "^2.0.0",
|
"style-loader": "^2.0.0",
|
||||||
"webpack": "^5.28.0",
|
"webpack": "^5.33.2",
|
||||||
"webpack-cli": "^4.5.0"
|
"webpack-cli": "^4.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,14 +11,15 @@
|
||||||
<title>Simplify fractions | FWDekker</title>
|
<title>Simplify fractions | FWDekker</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 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 style="display: none;">
|
<main style="display: none;">
|
||||||
<div id="nav"></div>
|
<div id="nav"></div>
|
||||||
|
@ -46,6 +47,8 @@
|
||||||
<div id="footer"></div>
|
<div id="footer"></div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<script src="https://static.fwdekker.com/lib/template/1.x.x/bundle.js" crossorigin="anonymous"></script>
|
||||||
|
<!--suppress HtmlUnknownTarget -->
|
||||||
<script src="bundle.js?v=%%VERSION_NUMBER%%"></script>
|
<script src="bundle.js?v=%%VERSION_NUMBER%%"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import {$, doAfterLoad, footer, header, nav, showPage} from "@fwdekker/template";
|
// noinspection JSUnresolvedVariable
|
||||||
|
const {$, doAfterLoad, footer, header, nav, showPage} = window.fwdekker;
|
||||||
import katex from "katex";
|
import katex from "katex";
|
||||||
import "katex/dist/katex.min.css";
|
import "katex/dist/katex.min.css";
|
||||||
|
|
||||||
|
@ -104,11 +105,6 @@ doAfterLoad(() => {
|
||||||
description: "Simple web tool for simplifying fractions"
|
description: "Simple web tool for simplifying fractions"
|
||||||
}));
|
}));
|
||||||
$("#footer").appendChild(footer({
|
$("#footer").appendChild(footer({
|
||||||
author: "Felix W. Dekker",
|
|
||||||
authorURL: "https://fwdekker.com/",
|
|
||||||
license: "MIT License",
|
|
||||||
licenseURL: "https://git.fwdekker.com/FWDekker/simplify-fractions/src/branch/master/LICENSE",
|
|
||||||
vcs: "git",
|
|
||||||
vcsURL: "https://git.fwdekker.com/FWDekker/simplify-fractions/",
|
vcsURL: "https://git.fwdekker.com/FWDekker/simplify-fractions/",
|
||||||
version: "v%%VERSION_NUMBER%%"
|
version: "v%%VERSION_NUMBER%%"
|
||||||
}));
|
}));
|
Loading…
Reference in New Issue