From 7196c2cf1ea84f65fdd1b02ebf7e9f3683fa9404 Mon Sep 17 00:00:00 2001 From: tianma Date: Tue, 30 Jun 2026 15:31:51 +0800 Subject: [PATCH] Open Evernote guide in separate route tab --- apps/web/src/app/App.tsx | 3 ++- apps/web/src/components/SettingsPane.tsx | 12 +++++++++++- apps/web/src/lib/routes.ts | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 apps/web/src/lib/routes.ts diff --git a/apps/web/src/app/App.tsx b/apps/web/src/app/App.tsx index e9986007..84f788c4 100644 --- a/apps/web/src/app/App.tsx +++ b/apps/web/src/app/App.tsx @@ -2,6 +2,7 @@ import { lazy, Suspense, useEffect } from "react"; import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; import { Navigate, Route, Routes, useNavigate } from "react-router"; import { api } from "@/lib/api"; +import { EVERNOTE_MIGRATION_PATH } from "@/lib/routes"; import type { AuthSession } from "@edgeever/shared"; const EvernoteImportGuidePane = lazy(() => @@ -111,7 +112,7 @@ const AuthenticatedWorkspace = () => { export const App = () => ( - } /> + } /> } /> } /> } /> diff --git a/apps/web/src/components/SettingsPane.tsx b/apps/web/src/components/SettingsPane.tsx index 8993b880..9618e0d5 100644 --- a/apps/web/src/components/SettingsPane.tsx +++ b/apps/web/src/components/SettingsPane.tsx @@ -9,6 +9,7 @@ import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from import { Input } from "@/components/ui/input"; import { Switch } from "@/components/ui/switch"; import { api } from "@/lib/api"; +import { EVERNOTE_MIGRATION_PATH } from "@/lib/routes"; import { cn, formatDateTime } from "@/lib/utils"; import { AppConfirmDialog } from "./dialogs/ConfirmDialogs"; @@ -135,7 +136,16 @@ const EvernoteImportGuideCard = () => ( 导入印象笔记