From bac70b19ece0d5e53d257b747b5c216b18d292b1 Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Sat, 19 Aug 2023 15:27:10 +0700 Subject: [PATCH] polish --- .github/workflows/main.yml | 7 +-- src/app.tsx | 7 --- src/app/auth/unlock.tsx | 18 +++--- src/app/error.tsx | 4 +- .../components/userProfile.tsx} | 7 ++- src/app/space/components/widgets/thread.tsx | 4 +- .../components/widgets}/trendingNotes.tsx | 19 ++++-- .../components/widgets/trendingProfile.tsx} | 24 +++++--- src/app/space/components/widgets/user.tsx | 15 +++-- src/app/space/index.tsx | 2 +- src/app/trending/index.tsx | 11 ---- src/libs/storage/instance.ts | 17 +++--- src/shared/composer/composer.tsx | 6 +- src/shared/image.tsx | 11 ++-- src/shared/navigation.tsx | 59 ++++--------------- src/shared/notes/replies/list.tsx | 14 +++-- src/shared/notification/modal.tsx | 7 ++- src/shared/user.tsx | 2 +- src/stores/widgets.tsx | 2 +- src/utils/hooks/useEvent.tsx | 23 +++++--- 20 files changed, 117 insertions(+), 142 deletions(-) rename src/app/{trending/components/profile.tsx => space/components/userProfile.tsx} (97%) rename src/app/{trending/components => space/components/widgets}/trendingNotes.tsx (69%) rename src/app/{trending/components/trendingProfiles.tsx => space/components/widgets/trendingProfile.tsx} (61%) delete mode 100644 src/app/trending/index.tsx diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 28115141..bd088712 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,5 @@ name: 'publish' -on: - push: - branches: - - main +on: workflow_dispatch env: CARGO_INCREMENTAL: 0 @@ -27,7 +24,7 @@ jobs: - name: setup node uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - uses: dtolnay/rust-toolchain@stable with: targets: aarch64-apple-darwin diff --git a/src/app.tsx b/src/app.tsx index ba371246..cf9c760b 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -54,13 +54,6 @@ const router = createBrowserRouter([ return { Component: SpaceScreen }; }, }, - { - path: 'trending', - async lazy() { - const { TrendingScreen } = await import('@app/trending'); - return { Component: TrendingScreen }; - }, - }, { path: 'events/:id', async lazy() { diff --git a/src/app/auth/unlock.tsx b/src/app/auth/unlock.tsx index 6d0f1926..9338c1ea 100644 --- a/src/app/auth/unlock.tsx +++ b/src/app/auth/unlock.tsx @@ -74,17 +74,17 @@ export function UnlockScreen() {