diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e252ddc..8301fa8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,7 +75,7 @@ jobs: run: |- git clone --depth 1 --branch ${{ github.ref_name }} https://git.v0l.io/Kieran/snort_android.git mkdir -p snort_android/app/src/main/assets/ - cp packages/app/build/* snort_android/app/src/main/assets/ + cp -r packages/app/build/* snort_android/app/src/main/assets/ - name: Build AAB working-directory: snort_android diff --git a/.prettierignore b/.prettierignore index 9b4632da..312750b0 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,4 +4,5 @@ build/ .github/ transifex.yml dist/ -src-tauri/ \ No newline at end of file +src-tauri/ +target/ \ No newline at end of file diff --git a/packages/app/CHANGELOG.md b/packages/app/CHANGELOG.md index 0c0e55fd..6212ae15 100644 --- a/packages/app/CHANGELOG.md +++ b/packages/app/CHANGELOG.md @@ -1,3 +1,55 @@ +# v0.1.23 + +## Added + +- DeepL translate api (Automatic for PRO subscribers) +- Add nostr:nprofile1qqsydl97xpj74udw0qg5vkfyujyjxd3l706jd0t0w0turp93d0vvungfgfewr to contributors +- Proxy LN address type enabled on Nostr Address settings pages +- Infinite scrol on notifications page +- Default 0.5% ZapPool rate for Snort donation address +- Collect relay metrics in `@snort/system` for better relay selection algo in Outbox Model (NIP-65) +- New sign up / login flow! + - Topics / Mute words on sign up for easier onboarding +- Drag & Drop for uploads on note creator - nostr:nprofile1qqs8tchhwf5smv3r2g0vkswz58c837uu456x59m3dh380gtrhqzydeqz4wlka +- Mixin topics (hashtags) into timeline feed +- Language specific trending posts +- Show following info for hashtags +- Sync preferences to network (`NIP-78` support) +- Trending hashtags page +- Note creator hashtag input +- Top trending hashtags on note creator +- Social Graph - nostr:nprofile1qqsy2ga7trfetvd3j65m3jptqw9k39wtq2mg85xz2w542p5dhg06e5qpr9mhxue69uhhyetvv9ujuumwdae8gtnnda3kjctv9uh8am0r +- New users relay list based off "close" relays +- `NIP-96` support for nostr native image/file uploaders +- Write replies/reactions to `p` tagged users read relays (Outbox model) +- Sync joined public chats (`NIP-28`) using `PublicChatList` kind `10_005` + +## Changed + +- Read/Write relays only on kind `10_002` (NIP-65) +- Removed `nostr.watch` code for adding new users to random relays +- Render kind `10_002` on profile relays tab +- `@snort/system` using eventemitter3 for triggering events +- Use latest `NIP-51` spec (Bookmarks/Interests/`NIP-28` PublicChatList) +- `nreq` support (Demo) +- Write profile/relays to blasters +- `@snort/system` automated outbox model (automatic fetching of relay metadata) + +## Fixes + +- Upgrade ephermal connection to non-ephemeral +- Remove relay tag from zaps (Some zap services dont support it) +- Fix zap parsing for goals +- Remove extra chars from quoted events to fix loading (`'s` etc) +- CSS Fixes for profile card on light theme +- Zap counting on replacable events +- `NIP-28` chats loading +- Overflowing modal UI +- Live stream widget layout with long titles +- Notifications marker has returned from its long slumber + +--- + # v0.1.22 ## Fixes diff --git a/packages/app/package.json b/packages/app/package.json index eaf19e7d..307a012a 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -1,6 +1,6 @@ { "name": "@snort/app", - "version": "0.1.22", + "version": "0.1.23", "dependencies": { "@cashu/cashu-ts": "^0.6.1", "@lightninglabs/lnc-web": "^0.2.3-alpha", @@ -35,7 +35,6 @@ "react-router-dom": "^6.5.0", "react-tag-input-component": "^2.0.2", "react-textarea-autosize": "^8.4.0", - "react-twitter-embed": "^4.0.4", "recharts": "^2.8.0", "three": "^0.157.0", "use-long-press": "^3.2.0", diff --git a/packages/app/src/Const.ts b/packages/app/src/Const.ts index 904ccc34..5a87d6f3 100644 --- a/packages/app/src/Const.ts +++ b/packages/app/src/Const.ts @@ -93,11 +93,6 @@ export const InvoiceRegex = /(lnbc\w+)/i; export const YoutubeUrlRegex = /(?:https?:\/\/)?(?:www|m\.)?(?:youtu\.be\/|youtube\.com\/(?:live\/|shorts\/|embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})/; -/** - * Tweet Regex - */ -export const TweetUrlRegex = /https?:\/\/twitter\.com\/(?:#!\/)?(\w+)\/status(?:es)?\/(\d+)/; - /** * Hashtag regex */ diff --git a/packages/app/src/Element/Event/Note.tsx b/packages/app/src/Element/Event/Note.tsx index 0437023f..775c01ed 100644 --- a/packages/app/src/Element/Event/Note.tsx +++ b/packages/app/src/Element/Event/Note.tsx @@ -51,7 +51,7 @@ export default function Note(props: NoteProps) { if (ev.kind === EventKind.ZapstrTrack) { return ; } - if (ev.kind === EventKind.CategorizedPeople || ev.kind === EventKind.ContactList) { + if (ev.kind === EventKind.FollowSet || ev.kind === EventKind.ContactList) { return ; } if (ev.kind === EventKind.LiveEvent) { diff --git a/packages/app/src/Element/HyperText.tsx b/packages/app/src/Element/HyperText.tsx index 4d7e4fd2..bbe4a67b 100644 --- a/packages/app/src/Element/HyperText.tsx +++ b/packages/app/src/Element/HyperText.tsx @@ -1,8 +1,5 @@ -// import { TwitterTweetEmbed } from "react-twitter-embed"; - import { YoutubeUrlRegex, - //TweetUrlRegex, TidalRegex, SoundCloudRegex, MixCloudRegex, @@ -37,7 +34,6 @@ export default function HyperText({ link, depth, showLinkPreview, children }: Hy try { const url = new URL(a); const youtubeId = YoutubeUrlRegex.test(a) && RegExp.$1; - //const tweetId = TweetUrlRegex.test(a) && RegExp.$2; const tidalId = TidalRegex.test(a) && RegExp.$1; const soundcloundId = SoundCloudRegex.test(a) && RegExp.$1; const mixcloudId = MixCloudRegex.test(a) && RegExp.$1; @@ -46,13 +42,8 @@ export default function HyperText({ link, depth, showLinkPreview, children }: Hy const isAppleMusicLink = AppleMusicRegex.test(a); const isNostrNestsLink = NostrNestsRegex.test(a); const isWavlakeLink = WavlakeRegex.test(a); - /*if (tweetId) { // tmp disabled, react-twitter-embed causes "require is not defined" error - return ( -
- -
- ); - } else*/ if (youtubeId) { + + if (youtubeId) { return (