updating nostr-sdk js to 0.13.0, update nostr-login

This commit is contained in:
Believethehype 2024-04-12 17:49:10 +02:00
parent 661a235aec
commit d53450b68f
3 changed files with 8 additions and 9 deletions

View File

@ -12,15 +12,15 @@
},
"dependencies": {
"@getalby/sdk": "^3.4.0",
"@rust-nostr/nostr-sdk": "^0.12.0",
"@rust-nostr/nostr-sdk": "^0.13.0",
"@vuepic/vue-datepicker": "^7.4.1",
"@vueuse/core": "^10.7.2",
"bech32": "^2.0.0",
"bootstrap": "^5.3.2",
"daisyui": "^4.6.0",
"mini-toastr": "^0.8.1",
"nostr-login": "^1.0.17",
"nostr-tools": "^2.1.9",
"nostr-login": "^1.1.0",
"nostr-tools": "^2.4.0",
"vue": "^3.4.15",
"vue-notifications": "^1.0.2",
"vue3-easy-data-table": "^1.5.47",

View File

@ -141,7 +141,7 @@
<h3 className="card-title">Login</h3>
<p>Use a Browser Nip07 Extension like getalby, nos2x or nsec.app, a nsec or ncryptsec or use Amber on Android to sign-in</p>
<button className="btn" @click="sign_in_nip07()">Browser Extension</button>
<button className="btn" @click="sign_in_nostr_login()">Nostr Login</button>
<!-- <button className="btn" @click="sign_in_nostr_login()">Nostr Login</button> -->
<template v-if="supports_android_signer">
<button className="btn" @click="sign_in_amber()">Amber Sign in</button>
@ -313,12 +313,12 @@ export default {
},
async sign_in_nostr_login() {
await initNostrLogin({/*options*/})
await initNostrLogin({bunkers: 'nsec.app,highlighter.com'})
// launch signup screen
if (!localStorage.getItem('__nostrlogin_nip46')){
await launchNostrLoginDialog({
/*startScreen: 'signup'*/
bunkers: 'nsec.app,highlighter.com'
})
}
@ -340,7 +340,6 @@ export default {
}
const pubkey = await nip07_signer.getPublicKey();
console.log(pubkey.toBech32())
await client.connect();
@ -864,7 +863,7 @@ export default {
dbclient = new ClientBuilder().signer(signer).database(await db).build()
await dbclient.addRelay("wss://relay.damus.io");
// await dbclient.addRelay( "wss://purplepag.es");
await dbclient.addRelay( "wss://purplepag.es");
await dbclient.connect()
store.commit('set_dbclient', dbclient)

View File

@ -103,7 +103,7 @@ async function generate_feed(id) {
let requestid;
// for now we only want to use encrypted events for subscribed dvms (might change later, also we dont encrypt on amber because decryption and update doesnt work)
if(current_dvm.encryptionSupported && current_dvm.nip88 && current_dvm.nip88.hasActiveSubscription && localStorage.getItem('nostr-key-method') !== 'android-signer' ){
if(current_dvm.encryptionSupported && current_dvm.nip88 && current_dvm.nip88.hasActiveSubscription && localStorage.getItem('nostr-key-method') !== 'android-signer' && localStorage.getItem('nostr-key-method') !== 'nostr-login'){
let tags_str = []
for (let tag of tags){