slight ui changes
This commit is contained in:
2
kiszolgalo/.gitignore
vendored
2
kiszolgalo/.gitignore
vendored
@@ -3,6 +3,8 @@ build/
|
|||||||
!gradle/wrapper/gradle-wrapper.jar
|
!gradle/wrapper/gradle-wrapper.jar
|
||||||
!**/src/main/**/build/
|
!**/src/main/**/build/
|
||||||
!**/src/test/**/build/
|
!**/src/test/**/build/
|
||||||
|
.env
|
||||||
|
*.env
|
||||||
|
|
||||||
### IntelliJ IDEA ###
|
### IntelliJ IDEA ###
|
||||||
.idea/modules.xml
|
.idea/modules.xml
|
||||||
|
|||||||
@@ -1,6 +1,18 @@
|
|||||||
services:
|
services:
|
||||||
backup-scheduler:
|
web:
|
||||||
image: kotlin:latest
|
build: .
|
||||||
container_name: "bs"
|
container_name: "scottgpt"
|
||||||
ports:
|
env_file: .env
|
||||||
- "8080:80"
|
volumes:
|
||||||
|
- ./src/main/resources:/srv/src
|
||||||
|
networks:
|
||||||
|
- traefik
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.scottgpt.rule=Host(`ai.sc0tt.org`)"
|
||||||
|
- "traefik.http.services.scottgpt.loadbalancer.server.port=8080"
|
||||||
|
- "traefik.http.routers.scottgpt.tls.certresolver=myresolver"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik:
|
||||||
|
external: true
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
async function open_message(id)
|
async function open_message(id)
|
||||||
{
|
{
|
||||||
answid = id;
|
answid = id;
|
||||||
|
|
||||||
var url = 'admin/api/all_messages/' + id;
|
var url = 'admin/api/all_messages/' + id;
|
||||||
|
|
||||||
fetch(url)
|
fetch(url)
|
||||||
@@ -57,13 +58,23 @@
|
|||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
|
||||||
document.getElementById("messages").innerHTML = '<footer> <div class="textbox"><input class="text_input" name="valami" type="text" id="promptText" placeholder="answ"><button class="send_button" onclick="send_data()">send</button><button class="send_button" onclick="open_message(' + answid + ')">reload</button></div></footer>' + data;
|
document.getElementById("messages").innerHTML = '<footer> <div class="textbox"><input class="text_input" name="valami" type="text" id="promptText" placeholder="answ"><button class="send_button" id="send-button" onclick="send_data()">send</button><button class="send_button" onclick="open_message(' + answid + ')">reload</button></div></footer>' + data;
|
||||||
|
|
||||||
|
var input = document.getElementById("promptText");
|
||||||
|
input.addEventListener("keypress", function(event) {
|
||||||
|
if (event.key === "Enter") {
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
document.getElementById("send-button").click();
|
||||||
|
}
|
||||||
|
});
|
||||||
console.log(data.body)
|
console.log(data.body)
|
||||||
})
|
})
|
||||||
.catch(error => {x0
|
.catch(error => {x0
|
||||||
console.error('Error:', error);
|
console.error('Error:', error);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function send_data()
|
async function send_data()
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<div class="textbox">
|
<div class="textbox">
|
||||||
<input class="text_input" name="valami" type="text" id="promptText" placeholder="Kérdezz az OSI modellről... vagy idk...">
|
<input class="text_input" name="valami" type="text" id="promptText" placeholder="Kérdezz az OSI modellről... vagy idk...">
|
||||||
<button class="send_button" onclick="send_data()">send</button>
|
<button id="send-button" class="send_button" onclick="send_data()">send</button>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
@@ -49,6 +49,15 @@
|
|||||||
<script>
|
<script>
|
||||||
let id;
|
let id;
|
||||||
|
|
||||||
|
var input = document.getElementById("promptText");
|
||||||
|
input.addEventListener("keypress", function(event) {
|
||||||
|
if (event.key === "Enter") {
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
document.getElementById("send-button").click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
function genZ() {
|
function genZ() {
|
||||||
var x = document.getElementById("funniez");
|
var x = document.getElementById("funniez");
|
||||||
|
|||||||
Reference in New Issue
Block a user