diff --git a/pages/share.tsx b/pages/launch.tsx similarity index 86% rename from pages/share.tsx rename to pages/launch.tsx index 6a3c5a799..136fe9958 100644 --- a/pages/share.tsx +++ b/pages/launch.tsx @@ -11,9 +11,7 @@ import { AppLayout } from '~/common/layout/AppLayout'; import { asValidURL } from '~/common/util/urlUtils'; -function LogoProgress(props: { - showProgress: boolean -}) { +function LogoProgress(props: { showProgress: boolean }) { return (null); const [intentText, setIntentText] = React.useState(null); @@ -140,12 +147,12 @@ function AppShare() { /** * This page will be invoked on mobile when sharing Text/URLs/Files from other APPs - * Example URL: https://get.big-agi.com/share?title=This+Title&text=https%3A%2F%2Fexample.com%2Fapp%2Fpath + * Example URL: https://get.big-agi.com/launch?title=This+Title&text=https%3A%2F%2Fexample.com%2Fapp%2Fpath */ -export default function SharePage() { +export default function LaunchPage() { return ( - + ); } \ No newline at end of file diff --git a/public/manifest.json b/public/manifest.json index d8c7f493a..8f0400359 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -25,7 +25,7 @@ } ], "share_target": { - "action": "/share", + "action": "/launch", "method": "GET", "enctype": "application/x-www-form-urlencoded", "params": { diff --git a/src/apps/chat/components/composer/Composer.tsx b/src/apps/chat/components/composer/Composer.tsx index c46b16ea7..05701cf08 100644 --- a/src/apps/chat/components/composer/Composer.tsx +++ b/src/apps/chat/components/composer/Composer.tsx @@ -188,7 +188,7 @@ export function Composer(props: { }, shallow); const { chatLLMId, chatLLM } = useChatLLM(); - // Effect: load initial text if queued up (e.g. by /share) + // Effect: load initial text if queued up (e.g. by /launch) React.useEffect(() => { if (startupText) { setStartupText(null); diff --git a/src/common/layout/AppBarSwitcherItem.tsx b/src/common/layout/AppBarSwitcherItem.tsx index 847e1ad93..262134707 100644 --- a/src/common/layout/AppBarSwitcherItem.tsx +++ b/src/common/layout/AppBarSwitcherItem.tsx @@ -12,7 +12,7 @@ import { setLayoutMenuAnchor } from './store-applayout'; // routes for the quick switcher menu item -type ContainedAppType = 'chat' | /*'data' |*/ 'news' /*| 'share'*/; +type ContainedAppType = 'chat' | /*'data' |*/ 'news'; const AppItems: ContainedAppType[] = ['chat', 'news']; @@ -25,10 +25,6 @@ const AppRouteMap: { [key in ContainedAppType]: { name: string, route: string } // name: 'Data', // route: '/data', // }, - // 'share': { - // name: 'Share', - // route: '/share', - // }, 'news': { name: 'News', route: '/news',