mirror of
https://github.com/Wolvan/poll.horse.git
synced 2024-11-22 04:58:00 +01:00
Add version of software to footer
The version also includes a link to the github repo tag of that version's release build.
This commit is contained in:
parent
ab151cb732
commit
ce2601642b
5 changed files with 16 additions and 4 deletions
|
@ -56,7 +56,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{{ FOOTER_LINKS }}
|
{{ FOOTER_LINKS }}
|
||||||
</ul>
|
</ul>
|
||||||
<div class="copyright">{{ FOOTER_COPYRIGHT }}</div>
|
<div class="copyright"><a href="https://github.com/Wolvan/poll.horse/releases/tag/v{{ SYSTEM_VERSION }}">v{{ SYSTEM_VERSION }}</a> {{ FOOTER_COPYRIGHT }}</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -54,7 +54,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{{ FOOTER_LINKS }}
|
{{ FOOTER_LINKS }}
|
||||||
</ul>
|
</ul>
|
||||||
<div class="copyright">{{ FOOTER_COPYRIGHT }}</div>
|
<div class="copyright"><a href="https://github.com/Wolvan/poll.horse/releases/tag/v{{ SYSTEM_VERSION }}">v{{ SYSTEM_VERSION }}</a> {{ FOOTER_COPYRIGHT }}</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -43,7 +43,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{{ FOOTER_LINKS }}
|
{{ FOOTER_LINKS }}
|
||||||
</ul>
|
</ul>
|
||||||
<div class="copyright">{{ FOOTER_COPYRIGHT }}</div>
|
<div class="copyright"><a href="https://github.com/Wolvan/poll.horse/releases/tag/v{{ SYSTEM_VERSION }}">v{{ SYSTEM_VERSION }}</a> {{ FOOTER_COPYRIGHT }}</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -248,4 +248,8 @@ footer .copyright {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
footer .copyright a {
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
/* #endregion Footer */
|
/* #endregion Footer */
|
|
@ -61,7 +61,15 @@ const defaultReplacements = {
|
||||||
<li><a href="https://github.com/Wolvan/poll.horse" target="_blank">Github Repo</a></li>
|
<li><a href="https://github.com/Wolvan/poll.horse" target="_blank">Github Repo</a></li>
|
||||||
<li><a href="https://www.mppp.horse/" target="_blank">/mppp/ - Mass Production plushies</a></li>
|
<li><a href="https://www.mppp.horse/" target="_blank">/mppp/ - Mass Production plushies</a></li>
|
||||||
<li><a href="https://www.pon3.stream/" target="_blank">Pon3.Stream</a></li>
|
<li><a href="https://www.pon3.stream/" target="_blank">Pon3.Stream</a></li>
|
||||||
`
|
`,
|
||||||
|
"SYSTEM_VERSION": ((): string => {
|
||||||
|
try {
|
||||||
|
const packageJson = JSON.parse(fs.readFileSync(resolve(__dirname, "../package.json"), "utf8"));
|
||||||
|
return packageJson.version;
|
||||||
|
} catch (error) {
|
||||||
|
return "0.0.0";
|
||||||
|
}
|
||||||
|
})()
|
||||||
};
|
};
|
||||||
class Defaults2RenderTransform extends MinificationTransform {
|
class Defaults2RenderTransform extends MinificationTransform {
|
||||||
constructor(replacements = {}) {
|
constructor(replacements = {}) {
|
||||||
|
|
Loading…
Reference in a new issue