Skip to content

Commit

Permalink
Rename pages to page to fix refresh issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oceania2018 committed Jan 10, 2024
1 parent 8e023b0 commit 7d84897
Show file tree
Hide file tree
Showing 31 changed files with 22 additions and 22 deletions.
16 changes: 8 additions & 8 deletions src/lib/common/data/Layoutmenudata.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Navdata = [
{
"icon": "bx bx-home-circle",
"label": "Dashboard",
"link": "/dashboard"
"link": "/page/dashboard"
},
{
label: 'Agent',
Expand All @@ -11,17 +11,17 @@ const Navdata = [
{
"icon": "bx bx-map-pin",
"label": "Router",
"link": "/agent/router"
"link": "/page/agent/router"
},
{
"icon": "bx bx-task",
"label": "Evaluator",
"link": "/agent/evaluator"
"link": "/page/agent/evaluator"
},
{
"icon": "bx bx-bot",
"label": "Agents",
"link": "/agent"
"link": "/page/agent"
},
{
label: 'Conversation',
Expand All @@ -30,7 +30,7 @@ const Navdata = [
{
"icon": "bx bx-conversation",
"label": "Conversations",
"link": "/conversation"
"link": "/page/conversation"
},
{
label: 'RAG',
Expand All @@ -39,7 +39,7 @@ const Navdata = [
{
"icon": "bx bx-book-open",
"label": "Knowledge Base",
"link": "/knowledge-base"
"link": "/page/knowledge-base"
},
{
label: 'System',
Expand All @@ -48,12 +48,12 @@ const Navdata = [
{
"icon": "bx bx-plug",
"label": "Plugins",
"link": "/plugin"
"link": "/page/plugin"
},
{
"icon": "bx bx-cog",
"label": "Settings",
"link": "/setting"
"link": "/page/setting"
}
]

Expand Down
2 changes: 1 addition & 1 deletion src/routes/(authentication)/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
isOpen = true;
msg = 'Authentication success';
status = 'success';
goto('/dashboard');
goto('/page/dashboard');
});
}
</script>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<div class="flex-grow-1 overflow-hidden">
<h5 class="text-truncate font-size-15">
<Link href= "/agent/{agent.id}" class="text-dark">
<Link href= "/page/agent/{agent.id}" class="text-dark">
{agent.name}
</Link>
</h5>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<td>
<ul class="list-unstyled hstack gap-1 mb-0">
<li data-bs-toggle="tooltip" data-bs-placement="top" title="View Detail">
<Link href="/conversation/{conv.id}" class="btn btn-sm btn-soft-primary">
<Link href="/page/conversation/{conv.id}" class="btn btn-sm btn-soft-primary">
<i class="mdi mdi-eye-outline" />
</Link>
</li>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{/if}
<span class="badge rounded-1 badge-soft-info">Public</span>
</div>
<div class="mt-4 hstack gap-2">
<div class="mt-2 hstack pt-2 gap-2 border-top">
<a href="/plugin/{item.id}" class="btn btn-soft-success btn-sm">Settings</a>
<a href="#" class="btn btn-soft-warning btn-sm">Disable</a>
</div>
Expand Down
20 changes: 10 additions & 10 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ const config = {
"/register",
"/login",
"/recoverpw",
"/dashboard",
"/agent",
"/agent/router",
"/agent/evaluator",
"/agent/[agentId]",
"/conversation",
"/conversation/[conversationId]",
"/page/dashboard",
"/page/agent",
"/page/agent/router",
"/page/agent/evaluator",
"/page/agent/[agentId]",
"/page/conversation",
"/page/conversation/[conversationId]",
"/page/knowledge-base",
"/page/plugin",
"/page/plugin/[pluginId]",
"/chat",
"/chat/[agentId]",
"/chat/[agentId]/[conversationId]",
"/knowledge-base",
"/plugin",
"/plugin/[pluginId]"
]
}
},
Expand Down

0 comments on commit 7d84897

Please sign in to comment.