diff --git a/apps/desktop/package.json b/apps/desktop/package.json index d7173132..7dcea3e7 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,6 +1,5 @@ { "name": "lume", - "description": "the communication app", "private": true, "version": "3.0.0", "scripts": { @@ -22,7 +21,6 @@ "@lume/ui": "workspace:^", "@lume/utils": "workspace:^", "@nostr-dev-kit/ndk": "^2.3.2", - "@nostr-fetch/adapter-ndk": "^0.14.1", "@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-alert-dialog": "^1.0.5", "@radix-ui/react-avatar": "^1.0.4", @@ -32,7 +30,6 @@ "@radix-ui/react-hover-card": "^1.0.7", "@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-switch": "^1.0.3", - "@radix-ui/react-toolbar": "^1.0.4", "@radix-ui/react-tooltip": "^1.0.7", "@tanstack/react-query": "^5.17.0", "@tauri-apps/api": "2.0.0-alpha.13", @@ -48,25 +45,8 @@ "@tauri-apps/plugin-sql": "2.0.0-alpha.5", "@tauri-apps/plugin-updater": "2.0.0-alpha.5", "@tauri-apps/plugin-upload": "2.0.0-alpha.5", - "@tiptap/extension-character-count": "^2.1.13", - "@tiptap/extension-document": "^2.1.13", - "@tiptap/extension-image": "^2.1.13", - "@tiptap/extension-mention": "^2.1.13", - "@tiptap/extension-paragraph": "^2.1.13", - "@tiptap/extension-placeholder": "^2.1.13", - "@tiptap/extension-text": "^2.1.13", - "@tiptap/pm": "^2.1.13", - "@tiptap/react": "^2.1.13", - "@tiptap/starter-kit": "^2.1.13", - "@tiptap/suggestion": "^2.1.13", "@vidstack/react": "^1.9.8", - "clsx": "^2.1.0", - "dayjs": "^1.11.10", "framer-motion": "^10.16.16", - "html-to-text": "^9.0.5", - "light-bolt11-decoder": "^3.0.0", - "lru-cache": "^10.1.0", - "markdown-to-jsx": "^7.4.0", "minidenticons": "^4.2.0", "nanoid": "^5.0.4", "nostr-fetch": "^0.14.1", @@ -76,20 +56,15 @@ "react-currency-input-field": "^3.6.14", "react-dom": "^18.2.0", "react-hook-form": "^7.49.2", - "react-hotkeys-hook": "^4.4.1", "react-router-dom": "^6.21.1", - "react-string-replace": "^1.1.1", "smol-toml": "^1.1.3", "sonner": "^1.3.1", - "tippy.js": "^6.3.7", - "tiptap-markdown": "^0.8.8", "virtua": "^0.18.1" }, "devDependencies": { "@lume/tailwindcss": "workspace:^", "@lume/tsconfig": "workspace:^", "@lume/types": "workspace:^", - "@types/html-to-text": "^9.0.4", "@types/node": "^20.10.6", "@types/react": "^18.2.46", "@types/react-dom": "^18.2.18", @@ -99,8 +74,9 @@ "encoding": "^0.1.13", "postcss": "^8.4.32", "tailwind-merge": "^1.14.0", + "tailwindcss": "^3.4.0", "typescript": "^5.3.3", - "vite": "^4.5.1", + "vite": "^5.0.10", "vite-tsconfig-paths": "^4.2.3" } } diff --git a/apps/desktop/postcss.config.js b/apps/desktop/postcss.config.js index e873f1a4..b0c1e3b5 100644 --- a/apps/desktop/postcss.config.js +++ b/apps/desktop/postcss.config.js @@ -1,6 +1,5 @@ module.exports = { plugins: { tailwindcss: {}, - autoprefixer: {}, }, }; diff --git a/apps/desktop/public/heading.png b/apps/desktop/public/heading.png index d68bfe18..50335ce1 100644 Binary files a/apps/desktop/public/heading.png and b/apps/desktop/public/heading.png differ diff --git a/apps/desktop/public/heading@2x.png b/apps/desktop/public/heading@2x.png index 9696e0ea..72aa9d52 100644 Binary files a/apps/desktop/public/heading@2x.png and b/apps/desktop/public/heading@2x.png differ diff --git a/apps/desktop/src/app.css b/apps/desktop/src/app.css index db27fba9..59607fd6 100644 --- a/apps/desktop/src/app.css +++ b/apps/desktop/src/app.css @@ -14,7 +14,7 @@ } .prose :where(iframe):not(:where([class~='not-prose'] *)) { - @apply mx-auto aspect-video h-auto w-full; + @apply w-full h-auto mx-auto aspect-video; } } @@ -42,11 +42,3 @@ input::-ms-clear { .border { background-clip: padding-box; } - -.ProseMirror p.is-empty::before { - @apply pointer-events-none float-left h-0 text-neutral-600 content-[attr(data-placeholder)] dark:text-neutral-400; -} - -.ProseMirror img.ProseMirror-selectednode { - @apply outline-blue-500; -} diff --git a/apps/desktop/src/app.tsx b/apps/desktop/src/app.tsx index e9fb1049..baf2d279 100644 --- a/apps/desktop/src/app.tsx +++ b/apps/desktop/src/app.tsx @@ -1,12 +1,6 @@ import { useStorage } from "@lume/ark"; import { LoaderIcon } from "@lume/icons"; -import { - AppLayout, - AuthLayout, - ComposerLayout, - HomeLayout, - SettingsLayout, -} from "@lume/ui"; +import { AppLayout, AuthLayout, HomeLayout, SettingsLayout } from "@lume/ui"; import { fetch } from "@tauri-apps/plugin-http"; import { RouterProvider, @@ -70,44 +64,6 @@ export default function App() { return { Component: RelayScreen }; }, }, - { - path: "new", - element: , - children: [ - { - index: true, - async lazy() { - const { NewPostScreen } = await import("./routes/new/post"); - return { Component: NewPostScreen }; - }, - }, - { - path: "article", - async lazy() { - const { NewArticleScreen } = await import( - "./routes/new/article" - ); - return { Component: NewArticleScreen }; - }, - }, - { - path: "file", - async lazy() { - const { NewFileScreen } = await import("./routes/new/file"); - return { Component: NewFileScreen }; - }, - }, - { - path: "privkey", - async lazy() { - const { NewPrivkeyScreen } = await import( - "./routes/new/privkey" - ); - return { Component: NewPrivkeyScreen }; - }, - }, - ], - }, { path: "settings", element: , @@ -304,8 +260,8 @@ export default function App() { - +
+
} future={{ v7_startTransition: true }} diff --git a/apps/desktop/src/routes/home/index.tsx b/apps/desktop/src/routes/home/index.tsx index 85f81399..6d040a56 100644 --- a/apps/desktop/src/routes/home/index.tsx +++ b/apps/desktop/src/routes/home/index.tsx @@ -84,7 +84,7 @@ export function HomeScreen() { {columns.map((column) => renderItem(column))}
-
+
-
-
- {summary.open ? ( -
-
-
-