@@ -45,17 +44,19 @@ onClickOutside(target, ()=>emit('modal-close'))
.modal-mask {
+ max-height: 100%;
+ overflow-y: scroll;
position: fixed;
z-index: 9998;
top: 0;
left: 0;
width: 100%;
- height: 100%;
+
background-color: rgba(0, 0, 0, 0.5);
}
.modal-container {
@apply bg-base-200;
- width: 600px;
+
margin: 15% auto;
padding: 20px 30px;
border-radius: 2px;
diff --git a/ui/noogle/src/components/RecommendationGeneration.vue b/ui/noogle/src/components/RecommendationGeneration.vue
index 5329547..63a2aaa 100644
--- a/ui/noogle/src/components/RecommendationGeneration.vue
+++ b/ui/noogle/src/components/RecommendationGeneration.vue
@@ -22,7 +22,7 @@ import {data} from "autoprefixer";
import {requestProvider} from "webln";
import Newnote from "@/components/Newnote.vue";
import SummarizationGeneration from "@/components/SummarizationGeneration.vue"
-import {post_note, schedule, copyurl, copyinvoice, sleep, getEvents, get_user_infos, nextInput, getEventsOriginalOrder} from "../components/helper/Helper.vue"
+import {post_note, schedule, copyurl, copyinvoice, sleep, getEvents, get_user_infos, nextInput, createBolt11Lud16, getEventsOriginalOrder} from "../components/helper/Helper.vue"
import amberSignerService from "./android-signer/AndroidSigner";
import StringUtil from "@/components/helper/string.ts";
@@ -63,7 +63,7 @@ async function generate_feed() {
res = await amberSignerService.signEvent(draft)
await client.sendEvent(Event.fromJson(JSON.stringify(res)))
requestid = res.id;
- res = res.id;
+
}
else {
@@ -82,8 +82,9 @@ async function generate_feed() {
store.commit('set_current_request_id_recommendation', requestid)
if (!store.state.recommendationehasEventListener){
- listen()
store.commit('set_recommendationEventListener', true)
+ listen()
+
}
else{
console.log("Already has event listener")
@@ -105,18 +106,22 @@ async function listen() {
const handle = {
// Handle event
handleEvent: async (relayUrl, event) => {
- if (store.state.recommendationehasEventListener === false){
+ /* if (store.state.recommendationehasEventListener === false){
return true
- }
+ }*/
//const dvmname = getNamefromId(event.author.toHex())
- console.log("Received new event from", relayUrl);
- console.log(event.asJson())
+ console.log("Received new event from", relayUrl);
+ //console.log(event.asJson())
let resonsetorequest = false
- sleep(1000).then(async () => {
+ sleep(0).then(async () => {
for (let tag in event.tags) {
if (event.tags[tag].asVec()[0] === "e") {
- if (event.tags[tag].asVec()[1] === store.state.requestidRecommendation) {
+ console.log(event.tags[tag].asVec()[1])
+ let test = store.state.requestidRecommendation
+ console.log(test)
+ if (event.tags[tag].asVec()[1] === test) {
resonsetorequest = true
+ console.log("YES")
}
}
@@ -156,8 +161,6 @@ async function listen() {
else{
let profiles = await get_user_infos([event.author])
let created = 0
- let current
- console.log("NUM KIND0 FOUND " + profiles.length)
if (profiles.length > 0){
// for (const profile of profiles){
console.log(profiles[0].profile)
@@ -389,7 +392,7 @@ const submitHandler = async () => {
-
+
Summarize Results
@@ -413,12 +416,11 @@ const submitHandler = async () => {
-->
-