first commit

This commit is contained in:
Sas Andy
2025-02-11 16:39:53 +07:00
commit 9a67dfeb84
7 changed files with 3993 additions and 0 deletions

63
setup.html Normal file
View File

@@ -0,0 +1,63 @@
<!DOCTYPE html>
<html>
<head>
<title>Setup Domain</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
}
input {
width: 100%;
padding: 8px;
margin-bottom: 10px;
}
button {
padding: 10px 20px;
background-color: #4caf50;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="form-group">
<label for="domain">Domain (tanpa https://)</label>
<input
type="text"
id="domain"
placeholder="Contoh: devcpone.aplikasi.web.id"
/>
</div>
<div class="form-group">
<label for="port">Port WebSocket</label>
<input type="text" id="port" value="9099" />
</div>
<button onclick="submitDomain()">Simpan</button>
<script>
const { ipcRenderer } = require("electron");
function submitDomain() {
const domain = document.getElementById("domain").value;
const port = document.getElementById("port").value;
if (domain) {
ipcRenderer.send("submit-domain", domain, port);
} else {
alert("Mohon masukkan domain");
}
}
</script>
</body>
</html>