mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-13 13:00:55 +02:00
fixes
This commit is contained in:
parent
f095542f64
commit
1f4f7cd5ac
@ -218,7 +218,7 @@ def build_example_subscription(name, identifier, admin_config):
|
|||||||
nip89info = {
|
nip89info = {
|
||||||
"name": name,
|
"name": name,
|
||||||
"image": "https://image.nostr.build/b29b6ec4bf9b6184f69d33cb44862db0d90a2dd9a506532e7ba5698af7d36210.jpg",
|
"image": "https://image.nostr.build/b29b6ec4bf9b6184f69d33cb44862db0d90a2dd9a506532e7ba5698af7d36210.jpg",
|
||||||
"about": "I show notes that are currently popular, just like the free DVM, I'm also used for testing subscriptions. (beta)",
|
"about": "I show notes that are currently popular all over Nostr. I'm also used for testing subscriptions.",
|
||||||
"lud16": dvm_config.LN_ADDRESS,
|
"lud16": dvm_config.LN_ADDRESS,
|
||||||
"encryptionSupported": True,
|
"encryptionSupported": True,
|
||||||
"cashuAccepted": True,
|
"cashuAccepted": True,
|
||||||
@ -250,7 +250,7 @@ def build_example_subscription(name, identifier, admin_config):
|
|||||||
nip88config.PAYMENT_VERIFIER_PUBKEY = "5b5c045ecdf66fb540bdf2049fe0ef7f1a566fa427a4fe50d400a011b65a3a7e"
|
nip88config.PAYMENT_VERIFIER_PUBKEY = "5b5c045ecdf66fb540bdf2049fe0ef7f1a566fa427a4fe50d400a011b65a3a7e"
|
||||||
|
|
||||||
admin_config.UPDATE_PROFILE = False
|
admin_config.UPDATE_PROFILE = False
|
||||||
admin_config.REBROADCAST_NIP89 = False
|
admin_config.REBROADCAST_NIP89 = True
|
||||||
admin_config.REBROADCAST_NIP88 = False
|
admin_config.REBROADCAST_NIP88 = False
|
||||||
|
|
||||||
# admin_config.FETCH_NIP88 = True
|
# admin_config.FETCH_NIP88 = True
|
||||||
|
@ -216,8 +216,8 @@ def build_example(name, identifier, admin_config):
|
|||||||
# Add NIP89
|
# Add NIP89
|
||||||
nip89info = {
|
nip89info = {
|
||||||
"name": name,
|
"name": name,
|
||||||
"image": "https://image.nostr.build/b29b6ec4bf9b6184f69d33cb44862db0d90a2dd9a506532e7ba5698af7d36210.jpg",
|
"image": "https://image.nostr.build/d92652a6a07677e051d647dcf9f0f59e265299b3335a939d008183a911513f4a.jpg",
|
||||||
"about": "I show notes that are currently popular among people you follow",
|
"about": "I show notes that are currently popular from people you follow",
|
||||||
"lud16": dvm_config.LN_ADDRESS,
|
"lud16": dvm_config.LN_ADDRESS,
|
||||||
"encryptionSupported": True,
|
"encryptionSupported": True,
|
||||||
"cashuAccepted": True,
|
"cashuAccepted": True,
|
||||||
|
@ -38,6 +38,15 @@ let dvms =[]
|
|||||||
let hasmultipleinputs = false
|
let hasmultipleinputs = false
|
||||||
|
|
||||||
async function generate_image(message) {
|
async function generate_image(message) {
|
||||||
|
if (!store.state.imagehasEventListener){
|
||||||
|
store.commit('set_imagehasEventListener', true)
|
||||||
|
listen()
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
console.log("Already has event listener")
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (message === undefined){
|
if (message === undefined){
|
||||||
message = "A purple Ostrich"
|
message = "A purple Ostrich"
|
||||||
@ -95,14 +104,7 @@ async function generate_image(message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
store.commit('set_current_request_id_image', requestid)
|
store.commit('set_current_request_id_image', requestid)
|
||||||
if (!store.state.imagehasEventListener){
|
|
||||||
store.commit('set_imagehasEventListener', true)
|
|
||||||
listen()
|
|
||||||
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
console.log("Already has event listener")
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
@ -75,6 +75,16 @@ async function generate_feed(id) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
if (!store.state.recommendationehasEventListener){
|
||||||
|
store.commit('set_recommendationEventListener', true)
|
||||||
|
listen()
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
console.log("Already has event listener")
|
||||||
|
}
|
||||||
|
|
||||||
let client = store.state.client
|
let client = store.state.client
|
||||||
//console.log(dvms.find(i => i.id === id).encryptionSupported)
|
//console.log(dvms.find(i => i.id === id).encryptionSupported)
|
||||||
|
|
||||||
@ -185,14 +195,7 @@ async function generate_feed(id) {
|
|||||||
|
|
||||||
|
|
||||||
store.commit('set_current_request_id_recommendation', requestid)
|
store.commit('set_current_request_id_recommendation', requestid)
|
||||||
if (!store.state.recommendationehasEventListener){
|
|
||||||
store.commit('set_recommendationEventListener', true)
|
|
||||||
listen()
|
|
||||||
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
console.log("Already has event listener")
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
@ -966,7 +969,7 @@ const submitHandler = async () => {
|
|||||||
:key="dvm.id">
|
:key="dvm.id">
|
||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
<div className="playeauthor-wrapper">
|
<div className="playeauthor-wrapper">
|
||||||
<figure className="w-20">
|
<figure className="w-28">
|
||||||
<img className="avatar" v-if="dvm.image" :src="dvm.image" alt="DVM Picture" />
|
<img className="avatar" v-if="dvm.image" :src="dvm.image" alt="DVM Picture" />
|
||||||
<img class="avatar" v-else src="@/assets/nostr-purple.svg" />
|
<img class="avatar" v-else src="@/assets/nostr-purple.svg" />
|
||||||
</figure>
|
</figure>
|
||||||
@ -1325,7 +1328,7 @@ h3 {
|
|||||||
|
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
margin-right: 10px;
|
margin-right: auto;
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
|
@ -60,6 +60,15 @@ onMounted(async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
async function send_search_request(msg) {
|
async function send_search_request(msg) {
|
||||||
|
|
||||||
|
if (!store.state.hasEventListener){
|
||||||
|
store.commit('set_hasEventListener', true)
|
||||||
|
listen()
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
console.log("Already has event listener")
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
if (msg === undefined){
|
if (msg === undefined){
|
||||||
msg = "Nostr"
|
msg = "Nostr"
|
||||||
@ -154,14 +163,7 @@ async function send_search_request(msg) {
|
|||||||
store.commit('set_current_request_id_search', requestid)
|
store.commit('set_current_request_id_search', requestid)
|
||||||
store.commit('set_current_request_profile_id_search', requestid_profile)
|
store.commit('set_current_request_profile_id_search', requestid_profile)
|
||||||
|
|
||||||
if (!store.state.hasEventListener){
|
|
||||||
store.commit('set_hasEventListener', true)
|
|
||||||
listen()
|
|
||||||
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
console.log("Already has event listener")
|
|
||||||
}
|
|
||||||
console.log(res)
|
console.log(res)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
@ -33,7 +33,14 @@ import index from "vuex";
|
|||||||
|
|
||||||
let dvms =[]
|
let dvms =[]
|
||||||
async function summarizefeed(eventids) {
|
async function summarizefeed(eventids) {
|
||||||
|
if (!store.state.summarizationhasEventListener){
|
||||||
|
store.commit('set_summariarizationEventListener', true)
|
||||||
|
listen()
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
console.log("Already has event listener")
|
||||||
|
}
|
||||||
let sortedIds = eventids.sort(function(a,b) {return (a.index > b.index) ? 1 : ((b.index > a.index) ? -1 : 0);} );
|
let sortedIds = eventids.sort(function(a,b) {return (a.index > b.index) ? 1 : ((b.index > a.index) ? -1 : 0);} );
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -89,14 +96,7 @@ let sortedIds = eventids.sort(function(a,b) {return (a.index > b.index) ? 1 : ((
|
|||||||
}
|
}
|
||||||
|
|
||||||
store.commit('set_current_request_id_summarization', requestid)
|
store.commit('set_current_request_id_summarization', requestid)
|
||||||
if (!store.state.summarizationhasEventListener){
|
|
||||||
store.commit('set_summariarizationEventListener', true)
|
|
||||||
listen()
|
|
||||||
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
console.log("Already has event listener")
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user