Added version number to About/Support pane
This commit is contained in:
parent
488d54493a
commit
2b3e471f96
@ -74,7 +74,8 @@ module.exports = function (grunt) {
|
|||||||
"* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" +
|
"* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" +
|
||||||
"* See the License for the specific language governing permissions and\n" +
|
"* See the License for the specific language governing permissions and\n" +
|
||||||
"* limitations under the License.\n" +
|
"* limitations under the License.\n" +
|
||||||
"*/\n";
|
"*/\n",
|
||||||
|
pkg = grunt.file.readJSON("package.json");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compiles a production build of CyberChef into a single, portable web page.
|
* Compiles a production build of CyberChef into a single, portable web page.
|
||||||
@ -239,7 +240,8 @@ module.exports = function (grunt) {
|
|||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
filename: "index.html",
|
filename: "index.html",
|
||||||
template: "./src/web/html/index.html",
|
template: "./src/web/html/index.html",
|
||||||
compileTime: compileTime
|
compileTime: compileTime,
|
||||||
|
version: pkg.version,
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
watch: true
|
watch: true
|
||||||
@ -265,6 +267,7 @@ module.exports = function (grunt) {
|
|||||||
filename: "index.html",
|
filename: "index.html",
|
||||||
template: "./src/web/html/index.html",
|
template: "./src/web/html/index.html",
|
||||||
compileTime: compileTime,
|
compileTime: compileTime,
|
||||||
|
version: pkg.version,
|
||||||
minify: {
|
minify: {
|
||||||
removeComments: true,
|
removeComments: true,
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
@ -276,6 +279,7 @@ module.exports = function (grunt) {
|
|||||||
filename: "cyberchef.htm",
|
filename: "cyberchef.htm",
|
||||||
template: "./src/web/html/index.html",
|
template: "./src/web/html/index.html",
|
||||||
compileTime: compileTime,
|
compileTime: compileTime,
|
||||||
|
version: pkg.version,
|
||||||
inline: true,
|
inline: true,
|
||||||
minify: {
|
minify: {
|
||||||
removeComments: true,
|
removeComments: true,
|
||||||
|
@ -298,7 +298,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<img aria-hidden="true" class="about-img-left" src="<%- require('../static/images/cyberchef-128x128.png') %>" alt="CyberChef Logo"/>
|
<img aria-hidden="true" class="about-img-left" src="<%- require('../static/images/cyberchef-128x128.png') %>" alt="CyberChef Logo"/>
|
||||||
<p class="subtext">Compile time: <%= htmlWebpackPlugin.options.compileTime %></p>
|
<p class="subtext">
|
||||||
|
Version <%= htmlWebpackPlugin.options.version %><br>
|
||||||
|
Compile time: <%= htmlWebpackPlugin.options.compileTime %>
|
||||||
|
</p>
|
||||||
<p>© Crown Copyright 2016.</p>
|
<p>© Crown Copyright 2016.</p>
|
||||||
<p>Licenced under the Apache Licence, Version 2.0.</p>
|
<p>Licenced under the Apache Licence, Version 2.0.</p>
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user