From 0be733cb96496551762b8f8f2d97b7d2c96ccf67 Mon Sep 17 00:00:00 2001 From: Harshvardhan Parmar Date: Sat, 29 Jul 2023 10:45:57 +0530 Subject: [PATCH] Dashboard 1.1 (#165) * Google Java Format * removed unnecessary code from htmx-demo --------- Co-authored-by: github-actions <> --- Examples/htmx-ui-demo/DashboardApp.java | 6 ------ Examples/htmx-ui-demo/index.html | 3 --- 2 files changed, 9 deletions(-) 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

- - -