Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foaas",
"version": "20260316-a33ab98",
"version": "20260316-fd2c3ec",
"description": "Fuck Off As A Service",
"main": "lib/server.js",
"scripts": {
Expand Down
18 changes: 17 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@
<script src="https://cdn.jsdelivr.net/npm/dompurify/dist/purify.min.js"></script>
<script>
$(function(){
// Fetch version
$.ajax({
url: '/version',
headers: { 'Accept': 'text/plain' },
dataType: 'text',
success: function(data) {
// Extract version number from response like "Version 20260316-a33ab98 FOAAS"
var version = data.split('\n')[0].replace('Version ', '').replace(' FOAAS', '').trim();
$('#version').text('v' + version);
},
error: function(_, status, err) {
console.error('Version fetch error:', err);
}
});

// Fetch operations table
$.ajax({
url: '/fucks',
dataType: 'html',
Expand Down Expand Up @@ -44,7 +60,7 @@
<div class="hero-unit">
<h1>FOAAS</h1>
<h2>Fuck Off As A Service</h2>
<p><em>v2.4.0</em></p>
<p><em id="version">Loading...</em></p>
</div>
</div>
<div class="container">
Expand Down
Loading