mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-23 02:23:31 +07:00
Fix #4 Added version with app name.
This commit is contained in:
parent
f2458d2466
commit
f78bdd9eff
@ -9,7 +9,7 @@
|
|||||||
<script src="./node_modules/uikit/dist/js/uikit-icons.min.js"></script>
|
<script src="./node_modules/uikit/dist/js/uikit-icons.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="uk-animation-fade">
|
<body class="uk-animation-fade">
|
||||||
<h1>Ryzen Controller</h1>
|
<h1>Ryzen Controller <span id="version" class="uk-badge"></span></h1>
|
||||||
|
|
||||||
<ul uk-switcher uk-tab uk-sticky class="uk-background-default">
|
<ul uk-switcher uk-tab uk-sticky class="uk-background-default">
|
||||||
<li><a href="#">Controller</a></li>
|
<li><a href="#">Controller</a></li>
|
||||||
|
@ -4,6 +4,7 @@ ready(function(){
|
|||||||
checkForAdminRights();
|
checkForAdminRights();
|
||||||
preFillSettings();
|
preFillSettings();
|
||||||
loadLatestUsedSettings();
|
loadLatestUsedSettings();
|
||||||
|
displayVersion();
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -205,3 +205,8 @@ function registerEventListenerForSettingsInput() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function displayVersion() {
|
||||||
|
const pjson = require('./package.json');
|
||||||
|
document.getElementById('version').innerHTML = `v${pjson.version}`;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user