Skip to content

Commit 76b215e

Browse files
author
Jicheng Lu
committed
refine embeded page
1 parent c3ddbdd commit 76b215e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/routes/page/agent/reporting/[reportType]/+page.svelte renamed to src/routes/page/agent/[theme]/[themeType]/+page.svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
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';
@@ -8,11 +10,11 @@
810
let label = '';
911
</script>
1012

11-
<HeadTitle title="{$_(label || 'Reporting')}" addOn="Reporting" />
12-
<Breadcrumb title="{$_('Agent')}" pagetitle="{$_(label || 'Reporting')}" />
13+
<HeadTitle title="{$_(label || 'Theme')}" addOn={`${lodash.capitalize($page.params.theme || '')}`} />
14+
<Breadcrumb title="{$_('Agent')}" pagetitle="{$_(label || 'Theme')}" />
1315

1416
<EmbeddingPage
15-
htmlTagId="agent-reporting-content"
16-
slugName="reportType"
17+
htmlTagId="agent-theme-content"
18+
slugName="themeType"
1719
bind:label={label}
1820
/>

svelte.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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/[theme]/[themeType]",
5858
"/page/instruction/testing",
5959
"/page/instruction/log",
6060
"/page/conversation",

0 commit comments

Comments
 (0)