Author SHA1 Message Date
jheaps b4acdee6e3 Fix auto ip updates 2025-09-19 16:29:44 -06:00
jheaps 10bf9b3d30 Bring debug.js back (I don't remember killing it) 2025-09-19 16:09:47 -06:00
jheaps be0a753945 remove button to show off github actions 2025-09-02 11:18:44 -06:00
jheaps bb0d611b21 aewpoifhjp 2025-09-02 11:14:49 -06:00
jheaps 847f5cc970 Update button sizing 2025-08-29 16:30:18 -06:00
jheaps 75d4ee8f9a Update button text 2025-08-29 16:28:35 -06:00
jheaps d0272adb51 stop running build twice after push 2025-08-29 16:27:37 -06:00
5 changed files with 29 additions and 8 deletions
-2
View File
@@ -4,8 +4,6 @@
name: .NET name: .NET
on: on:
push:
branches: [ "master" ]
pull_request: pull_request:
branches: [ "master" ] branches: [ "master" ]
+1 -1
View File
@@ -50,7 +50,7 @@
Play Chess Play Chess
</button> </button>
<button id="ChessDemo" class="demoButton" onclick="window.location.href='/particles'"> <button id="ChessDemo" class="demoButton" onclick="window.location.href='/particles'">
Life Particle Simulator
</button> </button>
<button id="MoreFiller" class="demoButton"> <button id="MoreFiller" class="demoButton">
More coming soon... More coming soon...
@@ -1,4 +1,7 @@
namespace JoshHeaps.Net.Services.Implementations; using System.Text.Json;
using System.Text.Json.Serialization;
namespace JoshHeaps.Net.Services.Implementations;
public class AutoIpUpdateService( public class AutoIpUpdateService(
IConfiguration config, IConfiguration config,
@@ -99,7 +102,11 @@ public class AutoIpUpdateService(
} }
} }
record AAAARecord(string Comment, string Content, string Name, string Id); record AAAARecord(
[property: JsonPropertyName("comment")] string Comment,
[property: JsonPropertyName("content")] string Content,
[property: JsonPropertyName("name")] string Name,
[property: JsonPropertyName("id")] string Id);
record RecordList(List<AAAARecord> Result); record RecordList([property: JsonPropertyName("result")] List<AAAARecord> Result);
} }
+2 -2
View File
@@ -55,8 +55,8 @@
text-align: center; text-align: center;
border: none; border: none;
border-radius: 5vw; border-radius: 5vw;
width: 25vw; width: 20vw;
height: 10vw; height: 8vw;
font-size: 2vw; font-size: 2vw;
background-color: rgb(104, 255, 0, 0.39); background-color: rgb(104, 255, 0, 0.39);
cursor: pointer; cursor: pointer;
+16
View File
@@ -0,0 +1,16 @@
document.addEventListener('DOMContentLoaded', () => {
getIpStatus();
});
async function getIpStatus() {
try {
const res = await fetch(`/api/debug/IpCheck`);
if (!res.ok) throw new Error("API failed");
const text = await res.text();
console.log(text);
document.querySelector('#IsIpChecking').textContent = text;
} catch (err) {
console.error("Error in api:", err);
}
}