Skip to content

Commit 08f3d04

Browse files
authored
Merge pull request #36 from hchen2020/main
add base url.
2 parents 2e9d447 + a2df611 commit 08f3d04

File tree

22 files changed

+70
-48
lines changed

22 files changed

+70
-48
lines changed

.env

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Public
22
PUBLIC_SERVICE_URL=https://botsharp.azurewebsites.net
33
PUBLIC_LIVECHAT_HOST=https://victorious-moss-007e11310.4.azurestaticapps.net
4-
PUBLIC_LIVECHAT_ENTRY_ICON=/images/users/bot.png
5-
PUBLIC_HOME_IMAGE=/images/megamenu-img.png
4+
PUBLIC_LIVECHAT_ENTRY_ICON=images/users/bot.png
5+
PUBLIC_HOME_IMAGE=images/megamenu-img.png
66
PUBLIC_HOME_SLOGAN=A central workspace for building, testing and evaluating your AI Agents.
7-
PUBLIC_LOGO_URL=/images/logo.png
8-
PUBLIC_LOGIN_IMAGE=/images/profile-img.png
9-
PUBLIC_FAVICON_URL=/icons/favicon.ico
7+
PUBLIC_LOGO_URL=images/logo.png
8+
PUBLIC_LOGIN_IMAGE=images/profile-img.png
9+
PUBLIC_FAVICON_URL=icons/favicon.ico
1010
PUBLIC_BRAND_NAME=BotSharp
1111
PUBLIC_ADMIN_USERNAME=admin@gmail.com
1212
PUBLIC_ADMIN_PASSWORD=123456

src/app.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4+
<base href="/" />
45
<meta charset="utf-8" />
56
<!--<link rel="icon" href="%sveltekit.assets%/icons/favicon.ico" />-->
67
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1" />

src/lib/common/LanguageDropdown.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<Dropdown {isOpen} toggle={() => (isOpen = !isOpen)} class="d-inline-block">
3030
<DropdownToggle class="btn header-item" tag="button" color="">
3131
<img
32-
src='/images/flags/us.jpg'
32+
src='images/flags/us.jpg'
3333
alt="Samply"
3434
height="16"
3535
/>

src/lib/common/ProfileDropdown.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
class="btn header-item waves-effect"
2222
id="page-header-user-dropdown"
2323
>
24-
<img class="rounded-circle header-profile-user" src='/images/users/user-dummy.jpg' alt="Header Avatar" />
24+
<img class="rounded-circle header-profile-user" src='images/users/user-dummy.jpg' alt="Header Avatar" />
2525
<span class="d-none d-xl-inline-block ms-1" key="t-fullname">{user?.full_name}</span>
2626
<i class="mdi mdi-chevron-down d-none d-xl-inline-block" />
2727
</DropdownToggle>
2828
<DropdownMenu end>
2929
<!-- item-->
30-
<DropdownItem href="/page/user/me"
30+
<DropdownItem href="page/user/me"
3131
><i class="bx bx-user font-size-16 align-middle me-1" />
3232
<span>Profile</span>
3333
</DropdownItem>

src/lib/common/data/languages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const languages = [
22
{
33
label: "English",
4-
flag: '/images/flags/us.jpg',
4+
flag: 'images/flags/us.jpg',
55
value: 'en'
66
},
77
{
88
label: "Chinese",
9-
flag: '/images/flags/china.png',
9+
flag: 'images/flags/china.png',
1010
value: 'zh'
1111
},
1212
]

src/lib/common/errors/error-500.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<Row class="justify-content-center">
2929
<Col md="8" xl="6">
3030
<div>
31-
<img src='/images/error-img.png' alt="" class="img-fluid" />
31+
<img src='images/error-img.png' alt="" class="img-fluid" />
3232
</div>
3333
</Col>
3434
</Row>

src/routes/(authentication)/recoverpw/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</div>
2222
</Col>
2323
<Col xs={5} class="align-self-end">
24-
<img src='/images/profile-img.png' alt="" class="img-fluid" />
24+
<img src='images/profile-img.png' alt="" class="img-fluid" />
2525
</Col>
2626
</Row>
2727
</div>

src/routes/(authentication)/register/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</div>
7171
</Col>
7272
<Col class="col-5 align-self-end">
73-
<img src='/images/profile-img.png' alt="" class="img-fluid" />
73+
<img src='images/profile-img.png' alt="" class="img-fluid" />
7474
</Col>
7575
</Row>
7676
</div>

src/routes/chat/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<Col>
5454
<p class="section-subtitle text-muted text-center pt-4 font-secondary">Select a bot you want to start chatting with and click the Start button.</p>
5555
<div class="d-flex justify-content-center">
56-
<a href="/chat/{agentId}" class="btn btn-primary">
56+
<a href="chat/{agentId}" class="btn btn-primary">
5757
<i class="mdi mdi-chat" />
5858
<span>Start Conversation</span>
5959
</a>

src/routes/chat/[agentId]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<span class="sr-only">Loading...</span>
5050
</div>
5151
<h3>Initializing a conversation, wait a moment please...</h3>
52-
<a href={`/chat/${agentId}/${conversationId}`}>Click here if the browser doesn't redirect correctly.</a>
52+
<a href={`chat/${agentId}/${conversationId}`}>Click here if the browser doesn't redirect correctly.</a>
5353
</Col>
5454
</Row>
5555
</Container>

0 commit comments

Comments
 (0)