diff --git a/apps/desktop2/public/heading-en.png b/apps/desktop2/public/heading-en.png deleted file mode 100644 index fb740945..00000000 Binary files a/apps/desktop2/public/heading-en.png and /dev/null differ diff --git a/apps/desktop2/public/heading-en@2x.png b/apps/desktop2/public/heading-en@2x.png deleted file mode 100644 index 802c679b..00000000 Binary files a/apps/desktop2/public/heading-en@2x.png and /dev/null differ diff --git a/apps/desktop2/public/heading-fr.png b/apps/desktop2/public/heading-fr.png deleted file mode 100644 index 9a1cf82a..00000000 Binary files a/apps/desktop2/public/heading-fr.png and /dev/null differ diff --git a/apps/desktop2/public/heading-fr@2x.png b/apps/desktop2/public/heading-fr@2x.png deleted file mode 100644 index 16bf43fd..00000000 Binary files a/apps/desktop2/public/heading-fr@2x.png and /dev/null differ diff --git a/apps/desktop2/public/heading-ja.png b/apps/desktop2/public/heading-ja.png deleted file mode 100644 index 19134a08..00000000 Binary files a/apps/desktop2/public/heading-ja.png and /dev/null differ diff --git a/apps/desktop2/public/heading-ja@2x.png b/apps/desktop2/public/heading-ja@2x.png deleted file mode 100644 index 606cb59c..00000000 Binary files a/apps/desktop2/public/heading-ja@2x.png and /dev/null differ diff --git a/apps/desktop2/public/icon.jpeg b/apps/desktop2/public/icon.jpeg new file mode 100644 index 00000000..cf1fea19 Binary files /dev/null and b/apps/desktop2/public/icon.jpeg differ diff --git a/apps/desktop2/public/lock-screen.jpg b/apps/desktop2/public/lock-screen.jpg deleted file mode 100644 index d65317bd..00000000 Binary files a/apps/desktop2/public/lock-screen.jpg and /dev/null differ diff --git a/apps/desktop2/public/lock-screen@2x.jpg b/apps/desktop2/public/lock-screen@2x.jpg deleted file mode 100644 index 922f81ad..00000000 Binary files a/apps/desktop2/public/lock-screen@2x.jpg and /dev/null differ diff --git a/apps/desktop2/public/waifu.png b/apps/desktop2/public/waifu.png deleted file mode 100644 index 833949c3..00000000 Binary files a/apps/desktop2/public/waifu.png and /dev/null differ diff --git a/apps/desktop2/public/waifu@2x.png b/apps/desktop2/public/waifu@2x.png deleted file mode 100644 index 484ef2c9..00000000 Binary files a/apps/desktop2/public/waifu@2x.png and /dev/null differ diff --git a/apps/desktop2/src/routes/group.tsx b/apps/desktop2/src/routes/group.tsx index 255a1e77..f41bc5ea 100644 --- a/apps/desktop2/src/routes/group.tsx +++ b/apps/desktop2/src/routes/group.tsx @@ -21,7 +21,7 @@ export const Route = createFileRoute("/group")({ beforeLoad: async ({ search }) => { const key = `lume_group_${search.label}`; const groups = (await NostrQuery.getNstore(key)) as string[]; - const settings = await NostrAccount.getAccounts(); + const settings = await NostrQuery.getSettings(); if (!groups?.length) { throw redirect({ diff --git a/apps/desktop2/src/routes/index.tsx b/apps/desktop2/src/routes/index.tsx index f57a96a3..25f52b12 100644 --- a/apps/desktop2/src/routes/index.tsx +++ b/apps/desktop2/src/routes/index.tsx @@ -4,25 +4,22 @@ import { User } from "@/components/user"; import { checkForAppUpdates } from "@lume/utils"; import { Link } from "@tanstack/react-router"; import { createFileRoute, redirect } from "@tanstack/react-router"; -import { invoke } from "@tauri-apps/api/core"; import { useState } from "react"; import { toast } from "sonner"; import { NostrAccount } from "@lume/system"; export const Route = createFileRoute("/")({ beforeLoad: async () => { + await checkForAppUpdates(true); // check for app updates const accounts = await NostrAccount.getAccounts(); if (accounts.length < 1) { throw redirect({ - to: "/landing/", + to: "/landing", replace: true, }); } - await checkForAppUpdates(true); // check for app updates - await invoke("run_notification", { accounts }); // Run notification service - return { accounts }; }, component: Screen, @@ -65,14 +62,16 @@ function Screen() { return (
Add
+Add
- {t("welcome.title")} -
-