diff --git a/Examples/htmx-ui-demo/DashboardApp.java b/Examples/htmx-ui-demo/DashboardApp.java index cf4e6b6c6..e5042f243 100644 --- a/Examples/htmx-ui-demo/DashboardApp.java +++ b/Examples/htmx-ui-demo/DashboardApp.java @@ -52,23 +52,18 @@ public RedisEnv redisEnv() { } private StringBuilder currentContent; - public List messages = new ArrayList<>(); - private String Url = "http://localhost:8080/v1/examples/wiki-summary?query="; @GetMapping public String index(Model model) { - addChat(); addAttributeForIndex(model); return "index"; } @PostMapping public String sendMessage(@ModelAttribute("item") MessageItem messageItem, Model model) { - System.out.println(messageItem); messages.add(messageItem); - System.out.println(messages); return "redirect:/"; } @@ -96,7 +91,6 @@ private void addAttributeForIndex(Model model) { @GetMapping("/responce") public String reply(Model model) { - System.out.println("reply"); currentContent = new StringBuilder(); MessageItem messageItem = new MessageItem("", true); model.addAttribute("item", messageItem); diff --git a/Examples/htmx-ui-demo/index.html b/Examples/htmx-ui-demo/index.html index d6e9ebaa5..97b71f140 100644 --- a/Examples/htmx-ui-demo/index.html +++ b/Examples/htmx-ui-demo/index.html @@ -151,9 +151,6 @@

Chat

- - -