diff --git a/demo.html b/demo.html new file mode 100644 index 0000000..0150aa7 --- /dev/null +++ b/demo.html @@ -0,0 +1,18 @@ + + + +Demo page + + + + +

Svelte embedding demo

+ +

Below, we have inserted a script tag that should + renter a Svelte component upon loading this page.

+ + + +

This text will come after the embedded content.

+ + diff --git a/package-lock.json b/package-lock.json index edc4b95..ca24074 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nostri.chat", - "version": "0.0.1", + "version": "0.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "nostri.chat", - "version": "0.0.1", + "version": "0.1.1", "dependencies": { "@nostr-connect/connect": "^0.2.3", "@rollup/plugin-commonjs": "^24.0.1", @@ -4465,13 +4465,14 @@ } }, "node_modules/vite": { - "version": "4.0.4", - "license": "MIT", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.1.4.tgz", + "integrity": "sha512-3knk/HsbSTKEin43zHu7jTwYWv81f8kgAL99G5NWBcA1LKvtvcVAC4JjBH1arBunO9kQka+1oGbrMKOjk4ZrBg==", "dependencies": { - "esbuild": "^0.16.3", - "postcss": "^8.4.20", + "esbuild": "^0.16.14", + "postcss": "^8.4.21", "resolve": "^1.22.1", - "rollup": "^3.7.0" + "rollup": "^3.10.0" }, "bin": { "vite": "bin/vite.js" @@ -7543,13 +7544,15 @@ "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==" }, "vite": { - "version": "4.0.4", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.1.4.tgz", + "integrity": "sha512-3knk/HsbSTKEin43zHu7jTwYWv81f8kgAL99G5NWBcA1LKvtvcVAC4JjBH1arBunO9kQka+1oGbrMKOjk4ZrBg==", "requires": { - "esbuild": "^0.16.3", + "esbuild": "^0.16.14", "fsevents": "~2.3.2", - "postcss": "^8.4.20", + "postcss": "^8.4.21", "resolve": "^1.22.1", - "rollup": "^3.7.0" + "rollup": "^3.10.0" }, "dependencies": { "rollup": { diff --git a/package.json b/package.json index e4ce35b..ad528be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nostri.chat", - "version": "0.0.1", + "version": "0.1.1", "scripts": { "dev": "vite dev", "build": "svelte-kit sync && svelte-package", diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 0e7895b..d6022ef 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -5,7 +5,7 @@ let chatStarted; let chatType = 'GLOBAL'; let websiteOwnerPubkey = 'fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52'; - let chatTags = ['nostrica']; + let chatTags = ['bitcoin']; let chatReferenceTags = []; const relays = [ 'wss://relay.f7z.io', @@ -24,7 +24,7 @@ - Nostri.chat -- A NOSTR chat widget you control + Nostri.chat / A NOSTR chat widget you control @@ -264,13 +264,13 @@ "> <script src="https://nostri.chat/public/bundle.js" - <!-- YOUR PUBKEY IN HEX FORMAT --> + // YOUR PUBKEY IN HEX FORMAT data-website-owner-pubkey="YOUR_PUBKEY" - <!-- THE TYPE OF CHAT YOU WANT: GLOBAL or DMs --> + // THE TYPE OF CHAT YOU WANT: GLOBAL or DMs data-chat-type="GLOBAL" - <!-- If you use GLOBAL you can choose set a comma-separated list of hashtags--> - data-chat-tags="#nostrica,#bitcoin" - <!-- Relays you'd like to use --> + // If you use GLOBAL you can choose set a comma-separated list of hashtags + data-chat-tags="nostrica,bitcoin" + // Relays you'd like to use, change this this as you wish data-relays="wss://relay.f7z.io,wss://nos.lol,wss://relay.nostr.info,wss://nostr-pub.wellorder.net,wss://relay.current.fyi,wss://relay.nostr.band" ></script> <link rel="stylesheet" href="https://nostri.chat/public/bundle.css">