rm api info + login/register systemd

This commit is contained in:
Lain Iwakura 2025-06-16 01:02:22 +03:00
parent 53d15e1a04
commit 602811599d
No known key found for this signature in database
GPG Key ID: C7C18257F2ADC6F8
2 changed files with 1 additions and 52 deletions

View File

@ -54,7 +54,6 @@ try {
<div class="header"> <div class="header">
<h1>Text0Nly</h1> <h1>Text0Nly</h1>
<div class="header-buttons"> <div class="header-buttons">
<a href="#" onclick="showApiInfo()">API Info</a>
<a href="register.php">Register</a> <a href="register.php">Register</a>
</div> </div>
</div> </div>
@ -90,36 +89,7 @@ try {
</div> </div>
</div> </div>
<div id="apiModal" class="modal">
<div class="modal-content">
<span class="close" onclick="hideApiInfo()">&times;</span>
<h2>Message API</h2>
<div class="api-info">
<pre>curl -X POST http://localhost/api.php -H "Content-Type: application/json" -d '{
"username": "name",
"message": "text",
"signature": "pgp_signature",
"encrypted": true
}'</pre>
</div>
</div>
</div>
<script> <script>
function showApiInfo() {
document.getElementById('apiModal').style.display = 'block';
}
function hideApiInfo() {
document.getElementById('apiModal').style.display = 'none';
}
window.onclick = function(event) {
if (event.target == document.getElementById('apiModal')) {
hideApiInfo();
}
}
setInterval(() => { setInterval(() => {
fetch(window.location.href) fetch(window.location.href)
.then(response => response.text()) .then(response => response.text())

View File

@ -106,25 +106,4 @@ button {
gap: 6px; gap: 6px;
} }
.api-info pre { .api-info, .api-info pre, .modal, .modal-content, .close { display: none !important; }
font-family: monospace;
font-size: 1em;
background: #f8f8f8;
padding: 10px;
margin: 0;
border: 1px solid #eee;
overflow-x: auto;
}
.modal-content {
background: #fff;
padding: 18px;
max-width: 600px;
margin: 40px auto;
}
.close {
font-size: 1.5em;
cursor: pointer;
color: #888;
}