diff --git a/src/app/myspace/pages/index.page.tsx b/src/app/myspace/pages/index.page.tsx
new file mode 100644
index 00000000..7d1e0b71
--- /dev/null
+++ b/src/app/myspace/pages/index.page.tsx
@@ -0,0 +1,3 @@
+export default function Page() {
+ return <>>;
+}
diff --git a/src/app/newsfeed/_default.page.tsx b/src/app/newsfeed/_default.page.tsx
deleted file mode 100644
index 7a0967d9..00000000
--- a/src/app/newsfeed/_default.page.tsx
+++ /dev/null
@@ -1 +0,0 @@
-export { LayoutNewsfeed as Layout } from './layout';
diff --git a/src/app/newsfeed/components/form.tsx b/src/app/newsfeed/components/form.tsx
deleted file mode 100644
index 039ed796..00000000
--- a/src/app/newsfeed/components/form.tsx
+++ /dev/null
@@ -1,74 +0,0 @@
-import { ImagePicker } from '@lume/shared/form/imagePicker';
-import { RelayContext } from '@lume/shared/relayProvider';
-import { WRITEONLY_RELAYS } from '@lume/stores/constants';
-import { noteContentAtom } from '@lume/stores/note';
-import { dateToUnix } from '@lume/utils/getDate';
-import { useActiveAccount } from '@lume/utils/hooks/useActiveAccount';
-
-import { useAtom } from 'jotai';
-import { useResetAtom } from 'jotai/utils';
-import { getEventHash, signEvent } from 'nostr-tools';
-import { useContext } from 'react';
-
-export default function NoteForm() {
- const pool: any = useContext(RelayContext);
- const { account, isLoading, isError } = useActiveAccount();
- const [value, setValue] = useAtom(noteContentAtom);
- const resetValue = useResetAtom(noteContentAtom);
-
- const submitEvent = () => {
- if (!isLoading && !isError && account) {
- const event: any = {
- content: value,
- created_at: dateToUnix(),
- kind: 1,
- pubkey: account.pubkey,
- tags: [],
- };
- event.id = getEventHash(event);
- event.sig = signEvent(event, account.privkey);
-
- // publish note
- pool.publish(event, WRITEONLY_RELAYS);
- // reset form
- resetValue();
- // send notification
- // sendNotification('Note has been published successfully');
- } else {
- console.log('Cannot publish note');
- }
- };
-
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
diff --git a/src/app/newsfeed/layout.tsx b/src/app/newsfeed/layout.tsx
deleted file mode 100644
index bb0a7235..00000000
--- a/src/app/newsfeed/layout.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import AppHeader from '@lume/shared/appHeader';
-import MultiAccounts from '@lume/shared/multiAccounts';
-import Navigation from '@lume/shared/navigation';
-
-export function LayoutNewsfeed({ children }: { children: React.ReactNode }) {
- return (
-
- );
-}
diff --git a/src/app/newsfeed/pages/circle/index.page.tsx b/src/app/newsfeed/pages/circle/index.page.tsx
deleted file mode 100644
index 19f887f9..00000000
--- a/src/app/newsfeed/pages/circle/index.page.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-export function Page() {
- return (
-
-
-
Sorry, this feature under development, it will come in the next version
-
-
- );
-}
diff --git a/src/app/newsfeed/pages/following/index.page.tsx b/src/app/newsfeed/pages/following/index.page.tsx
deleted file mode 100644
index 562678cd..00000000
--- a/src/app/newsfeed/pages/following/index.page.tsx
+++ /dev/null
@@ -1,105 +0,0 @@
-import NoteForm from '@lume/app/newsfeed/components/form';
-import NoteBase from '@lume/app/note/components/base';
-import { Placeholder } from '@lume/app/note/components/placeholder';
-import { NoteQuoteRepost } from '@lume/app/note/components/quoteRepost';
-import { hasNewerNoteAtom } from '@lume/stores/note';
-import { getNotes } from '@lume/utils/storage';
-
-import { useInfiniteQuery } from '@tanstack/react-query';
-import { useVirtualizer } from '@tanstack/react-virtual';
-import { useAtom } from 'jotai';
-import { useEffect, useRef } from 'react';
-
-const ITEM_PER_PAGE = 10;
-const TIME = Math.floor(Date.now() / 1000);
-
-export function Page() {
- const [hasNewerNote] = useAtom(hasNewerNoteAtom);
-
- const { status, error, data, fetchNextPage, hasNextPage, isFetching, isFetchingNextPage }: any = useInfiniteQuery({
- queryKey: ['following'],
- queryFn: async ({ pageParam = 0 }) => {
- return await getNotes(TIME, ITEM_PER_PAGE, pageParam);
- },
- getNextPageParam: (lastPage) => lastPage.nextCursor,
- });
-
- const allRows = data ? data.pages.flatMap((d: { data: any }) => d.data) : [];
- const parentRef = useRef();
-
- const rowVirtualizer = useVirtualizer({
- count: hasNextPage ? allRows.length + 1 : allRows.length,
- getScrollElement: () => parentRef.current,
- estimateSize: () => 400,
- overscan: 5,
- });
-
- const itemsVirtualizer = rowVirtualizer.getVirtualItems();
-
- useEffect(() => {
- const [lastItem] = [...rowVirtualizer.getVirtualItems()].reverse();
-
- if (!lastItem) {
- return;
- }
-
- if (lastItem.index >= allRows.length - 1 && hasNextPage && !isFetchingNextPage) {
- fetchNextPage();
- }
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [fetchNextPage, allRows.length, rowVirtualizer.getVirtualItems()]);
-
- return (
-
- {hasNewerNote && (
-
-
-
- )}
- {status === 'loading' ? (
-
- ) : status === 'error' ? (
-
{error.message}
- ) : (
-
-
-
-
- {rowVirtualizer.getVirtualItems().map((virtualRow) => {
- const note = allRows[virtualRow.index];
- if (note) {
- if (note.kind === 1) {
- return (
-
-
-
- );
- } else {
- return (
-
-
-
- );
- }
- }
- })}
-
-
-
- )}
-
{isFetching && !isFetchingNextPage ? 'Background Updating...' : null}
-
- );
-}
diff --git a/src/app/threads/pages/index.page.tsx b/src/app/threads/pages/index.page.tsx
new file mode 100644
index 00000000..7d1e0b71
--- /dev/null
+++ b/src/app/threads/pages/index.page.tsx
@@ -0,0 +1,3 @@
+export default function Page() {
+ return <>>;
+}
diff --git a/src/shared/appHeader.tsx b/src/shared/appHeader.tsx
index 7a1e6042..be5d5b87 100644
--- a/src/shared/appHeader.tsx
+++ b/src/shared/appHeader.tsx
@@ -2,16 +2,7 @@ import ArrowLeftIcon from '@lume/shared/icons/arrowLeft';
import ArrowRightIcon from '@lume/shared/icons/arrowRight';
import RefreshIcon from '@lume/shared/icons/refresh';
-import useSWR from 'swr';
-
-const fetcher = async () => {
- const { platform } = await import('@tauri-apps/api/os');
- return await platform();
-};
-
export default function AppHeader() {
- const { data: platform } = useSWR('platform', fetcher);
-
const goBack = () => {
window.history.back();
};
@@ -26,28 +17,38 @@ export default function AppHeader() {
return (
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
);
diff --git a/src/shared/navigation.tsx b/src/shared/navigation.tsx
index 0bec15a2..3faaa39a 100644
--- a/src/shared/navigation.tsx
+++ b/src/shared/navigation.tsx
@@ -18,7 +18,7 @@ export default function Navigation() {