From efc89c01cb8975e2e76e0964d91120d60e585a7d Mon Sep 17 00:00:00 2001 From: Believethehype Date: Fri, 2 Feb 2024 11:23:58 +0100 Subject: [PATCH] some cleanup --- nostr_dvm/tasks/advanced_search.py | 2 +- ui/noogle/src/components/ImageGeneration.vue | 3 +- ui/noogle/src/components/Newnote.vue | 34 +++++++++++ ui/noogle/src/components/Nip89.vue | 4 ++ ui/noogle/src/components/Nip89view.vue | 60 ++++++-------------- ui/noogle/src/components/Search.vue | 4 +- 6 files changed, 60 insertions(+), 47 deletions(-) diff --git a/nostr_dvm/tasks/advanced_search.py b/nostr_dvm/tasks/advanced_search.py index 02da7d9..fa3a693 100644 --- a/nostr_dvm/tasks/advanced_search.py +++ b/nostr_dvm/tasks/advanced_search.py @@ -138,7 +138,7 @@ class AdvancedSearch(DVMTaskInterface): for event in events: e_tag = Tag.parse(["e", event.id().to_hex()]) - print(e_tag.as_vec()) + #print(e_tag.as_vec()) result_list.append(e_tag.as_vec()) return json.dumps(result_list) diff --git a/ui/noogle/src/components/ImageGeneration.vue b/ui/noogle/src/components/ImageGeneration.vue index 2229d18..8e7b7c5 100644 --- a/ui/noogle/src/components/ImageGeneration.vue +++ b/ui/noogle/src/components/ImageGeneration.vue @@ -338,6 +338,7 @@ import ModalComponent from "../components/Newnote.vue"; const isModalOpened = ref(false); const modalcontent = ref(""); + const openModal = result => { isModalOpened.value = true; modalcontent.value = result @@ -347,7 +348,7 @@ const closeModal = () => { }; const submitHandler = async () => { - console.log("hello") + await post_note(modalcontent) } diff --git a/ui/noogle/src/components/Newnote.vue b/ui/noogle/src/components/Newnote.vue index 3dc2cf4..18a8943 100644 --- a/ui/noogle/src/components/Newnote.vue +++ b/ui/noogle/src/components/Newnote.vue @@ -1,6 +1,8 @@