Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4acdee6e3 | ||
|
|
10bf9b3d30 | ||
|
|
be0a753945 | ||
|
|
bb0d611b21 | ||
|
|
847f5cc970 | ||
|
|
75d4ee8f9a | ||
|
|
d0272adb51 |
@@ -4,8 +4,6 @@
|
|||||||
name: .NET
|
name: .NET
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ "master" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user