Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
* read blossom blobs from https://nstore.nostrver.se mediaserver
* wip: upload a blob to https://nstore.nostrver.se
* wip: publish a checkin event on a place (kind 13811) to wss://khatru.nostrver.se
* connecting with the Alby extension lacks fetching my profile with NDK
  • Loading branch information
Sebastix committed May 3, 2024
1 parent 221bc8c commit ac930b2
Show file tree
Hide file tree
Showing 14 changed files with 328 additions and 75 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,27 @@ Get familiar with designing for Nostr: https://nostrdesign.org
## Roadmap
- [x] State management: add NDK store with [Pinia](https://nuxt.com/modules/pinia)
- [ ] Global feed example
- [ ] Personal feed example with content from your following
- [ ] Personal feed example with content from the npubs you follow
- [x] Integrate [vite-pwa-nuxt](https://nuxt.com/modules/vite-pwa-nuxt)
- [x] Integrate [TailwindCSS](https://nuxt.com/modules/tailwindcss)
- [x] Add layout / page [transitions](https://nuxt.com/docs/getting-started/transitions#layout-transitions)
- [x] Add a basic responsive design with a header, navigation, main and footer element
- [ ] State management: add a user store with Pinia
- [x] State management: add a user store with Pinia
- [x] Login with extension [NIP-07](https://nostr-nips.com/nip-07)
- [ ] Login with Wallet Connect [NIP-46](https://nostr-nips.com/nip-46)
- [ ] Relay settings and preferences
- [ ] A basic profile page
- [x] A basic profile page
- [ ] Logout / disconnect
- [ ] Download / backup all your events
- [ ] Kind 1 component short text note
- [ ] Kind 30023 component for long-form content
- [ ] Render identifiers in content fields [NIP-19](https://nostr-nips.com/nip-19)
- [x] Kind 1 component short text note
- [x] Kind 30023 component for long-form content
- [x] Render identifiers in content fields [NIP-19](https://nostr-nips.com/nip-19)
- [ ] Zap example
- [ ] Implement a form of state management which can be shared through Nostr events (kind 30078)
- [ ] Implement push notifications with the Push API

## PWA config
* https://dev.to/karmasakshi/make-your-pwas-look-handsome-on-ios-1o08
*

## Deployment

Expand Down Expand Up @@ -75,7 +74,8 @@ Pubkey: `npub1qe3e5wrvnsgpggtkytxteaqfprz0rgxr8c3l34kk3a9t7e2l3acslezefe`
Handle: `sebastian@sebastix.dev`

## License
`GPL-2.0` GNU General Public License v2.0
See LICENSE.txt
https://unlicense.org

## Donations / funding

Expand Down
1 change: 1 addition & 0 deletions components/Feed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
}
onMounted(async() => {
NdkStore.setOutboxModel(true)
await NdkStore.initNdk()
await NdkStore.ndk.connect()
await fetchFeed()
Expand Down
8 changes: 4 additions & 4 deletions components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
try {
if (!UserStore.signedIn) {
await NdkStore.initNdk()
NdkStore.ndk.client = nip07signer
await NdkStore.ndk.connect()
const user = await nip07signer.user()
UserStore.login(user, NdkStore.ndk)
// NdkStore.ndk.signer = nip07signer
// await NdkStore.ndk.connect()
// const user = await nip07signer.user()
// UserStore.login(user, NdkStore.ndk)
}
} catch (e) {
console.log(e)
Expand Down
8 changes: 8 additions & 0 deletions components/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
Places
</span>
</NuxtLink>
<NuxtLink to="/blossom" class="p-2 bg-purple-100 hover:bg-purple-200">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="inline w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776" />
</svg>
<span class="hidden sm:inline">
Blossom
</span>
</NuxtLink>
<NuxtLink to="/zap-example" class="p-2 bg-purple-100 hover:bg-purple-200">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="inline w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z" />
Expand Down
104 changes: 67 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@nostr-dev-kit/ndk": "^2.0.5",
"@pinia/nuxt": "^0.5.1",
"blossom-client-sdk": "^0.5.1",
"marked": "^12.0.1",
"pinia": "^2.1.7"
}
Expand Down

0 comments on commit ac930b2

Please sign in to comment.