update
This commit is contained in:
parent
f65474a8ed
commit
842a0d4703
11 changed files with 43284 additions and 104 deletions
6316
package-lock.json
generated
6316
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -25,6 +25,7 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nostr-connect/connect": "^0.2.3",
|
"@nostr-connect/connect": "^0.2.3",
|
||||||
|
"@nostr-dev-kit/ndk": "^0.3.32",
|
||||||
"@rollup/plugin-commonjs": "^24.0.1",
|
"@rollup/plugin-commonjs": "^24.0.1",
|
||||||
"@rollup/plugin-json": "^6.0.0",
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
"@rollup/plugin-typescript": "^11.0.0",
|
"@rollup/plugin-typescript": "^11.0.0",
|
||||||
|
|
@ -36,7 +37,7 @@
|
||||||
"light-bolt11-decoder": "^3.0.0",
|
"light-bolt11-decoder": "^3.0.0",
|
||||||
"nostr": "^0.2.7",
|
"nostr": "^0.2.7",
|
||||||
"nostr-dev-kit": "file:../../nostr/ndk/nostr-dev-kit",
|
"nostr-dev-kit": "file:../../nostr/ndk/nostr-dev-kit",
|
||||||
"nostr-tools": "^1.2.1",
|
"nostr-tools": "^1.11.1",
|
||||||
"rollup-plugin-css-only": "^4.3.0",
|
"rollup-plugin-css-only": "^4.3.0",
|
||||||
"rollup-plugin-esformatter": "^3.0.0",
|
"rollup-plugin-esformatter": "^3.0.0",
|
||||||
"rollup-plugin-livereload": "^2.0.5",
|
"rollup-plugin-livereload": "^2.0.5",
|
||||||
|
|
|
||||||
6
public/bundle.css
Normal file
6
public/bundle.css
Normal file
File diff suppressed because one or more lines are too long
15092
public/bundle.js
Normal file
15092
public/bundle.js
Normal file
File diff suppressed because it is too large
Load diff
1
public/bundle.js.map
Normal file
1
public/bundle.js.map
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,14 +1,13 @@
|
||||||
<script>
|
<script>
|
||||||
export let icon, amount, amountDisplay, event, mobilePR;
|
export let icon, amount, amountDisplay, event, mobilePR;
|
||||||
import { zappingMessage } from './lib/store';
|
import { zappingMessage } from './lib/store';
|
||||||
import NDK, { NDKEvent, NDKNip07Signer } from 'nostr-dev-kit';
|
import NDK, { NDKEvent, NDKNip07Signer } from '@nostr-dev-kit/ndk';
|
||||||
import { requestProvider } from 'webln';
|
import { requestProvider } from 'webln';
|
||||||
|
|
||||||
let hover = false;
|
let hover = false;
|
||||||
|
|
||||||
async function zap() {
|
async function zap() {
|
||||||
const signer = new NDKNip07Signer();
|
const signer = new NDKNip07Signer();
|
||||||
const pubkey = await signer.configure(window);
|
|
||||||
const ndk = new NDK({ explicitRelayUrls: ['wss://nos.lol', 'wss://relay.nostr.band', 'wss://relay.damus.io', 'wss://nostr.mom', 'wss://no.str.cr'] });
|
const ndk = new NDK({ explicitRelayUrls: ['wss://nos.lol', 'wss://relay.nostr.band', 'wss://relay.damus.io', 'wss://nostr.mom', 'wss://no.str.cr'] });
|
||||||
ndk.signer = signer;
|
ndk.signer = signer;
|
||||||
await ndk.connect();
|
await ndk.connect();
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { createEventDispatcher } from 'svelte';
|
||||||
import EventEmitter from 'events';
|
import EventEmitter from 'events';
|
||||||
import * as uuid from 'uuid';
|
import * as uuid from 'uuid';
|
||||||
import debug from 'debug';
|
import debug from 'debug';
|
||||||
import { NDKEvent, zapInvoiceFromEvent } from 'nostr-dev-kit';
|
import { NDKEvent, zapInvoiceFromEvent } from '@nostr-dev-kit/ndk';
|
||||||
|
|
||||||
const log = new debug('nostr:adapter');
|
const log = new debug('nostr:adapter');
|
||||||
const profilesLog = new debug('nostr:adapter:profiles');
|
const profilesLog = new debug('nostr:adapter:profiles');
|
||||||
|
|
|
||||||
BIN
static/favicon.png
Normal file
BIN
static/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
6
static/public/bundle.css
Normal file
6
static/public/bundle.css
Normal file
File diff suppressed because one or more lines are too long
21958
static/public/bundle.js
Normal file
21958
static/public/bundle.js
Normal file
File diff suppressed because it is too large
Load diff
1
static/public/bundle.js.map
Normal file
1
static/public/bundle.js.map
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue