File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
routes/page/agent/[embed]/[embedType] Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 3737 showBubbleMsg = false ;
3838 receivedMsg = ' ' ;
3939 }, receivedMsg? .length > 200 ? 8000 : 3000 );
40+ } else if (e .data .action == ChatAction .NewWindow && e .data .url ) {
41+ window .open (e .data .url , ' _blank' );
4042 }
4143 };
4244
Original file line number Diff line number Diff line change @@ -167,7 +167,8 @@ const chatAction = {
167167 Logout : 'logout' ,
168168 Chat : 'chat' ,
169169 NewChat : 'new-chat' ,
170- ReceiveNotification : 'receive-notification'
170+ ReceiveNotification : 'receive-notification' ,
171+ NewWindow : 'new-window'
171172} ;
172173export const ChatAction = Object . freeze ( chatAction ) ;
173174
Original file line number Diff line number Diff line change 11<script >
22 import { _ } from ' svelte-i18n' ;
3+ import { page } from ' $app/stores' ;
4+ import lodash from ' lodash' ;
35 import HeadTitle from " $lib/common/HeadTitle.svelte" ;
46 import Breadcrumb from ' $lib/common/Breadcrumb.svelte' ;
57 import EmbeddingPage from ' $lib/common/embedding/EmbeddingPage.svelte' ;
810 let label = ' ' ;
911 </script >
1012
11- <HeadTitle title =" {$_ (label || ' Reporting ' )}" addOn =" Reporting " />
12- <Breadcrumb title =" {$_ (' Agent' )}" pagetitle =" {$_ (label || ' Reporting ' )}" />
13+ <HeadTitle title =" {$_ (label || ' Agent ' )}" addOn ={ ` ${ lodash . capitalize ( $page . params . embed || ' ' )} ` } />
14+ <Breadcrumb title =" {$_ (' Agent' )}" pagetitle =" {$_ (label || ' Agent ' )}" />
1315
1416<EmbeddingPage
15- htmlTagId =" agent-reporting -content"
16- slugName =" reportType "
17+ htmlTagId =" agent-embed -content"
18+ slugName =" embedType "
1719 bind:label ={label }
1820/>
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ const config = {
5151 "/page/agent/router" ,
5252 "/page/agent/evaluator" ,
5353 "/page/agent/code-scripts" ,
54- "/page/agent/reporting/[reportType]" ,
5554 "/page/agent/[agentId]" ,
5655 "/page/agent/[agentId]/build" ,
5756 "/page/agent/[agentId]/train" ,
57+ "/page/agent/[embed]/[embedType]" ,
5858 "/page/instruction/testing" ,
5959 "/page/instruction/log" ,
6060 "/page/conversation" ,
You can’t perform that action at this time.
0 commit comments