small nit BASE_URL

This commit is contained in:
Ruben Fiszel
2024-07-22 19:38:05 +02:00
parent d7b5796fd8
commit 09a372488e
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -168,7 +168,7 @@
console.error('Could not persist redirection to local storage', e)
}
}
window.location.href = base + '/api/oauth/login/' + provider
window.location.href = base + 'api/oauth/login/' + provider
}
$: error && sendUserToast(error, true)
@@ -184,11 +184,11 @@
function pathInAppMode(pathname: string | undefined): boolean {
if (!pathname) return false
return (
pathname.startsWith(base + '/apps') ||
pathname.startsWith(base + '/flows/add') ||
pathname.startsWith(base + '/flows/edit') ||
pathname.startsWith(base + '/scripts/add') ||
pathname.startsWith(base + '/scripts/edit')
pathname.startsWith(base + 'apps') ||
pathname.startsWith(base + 'flows/add') ||
pathname.startsWith(base + 'flows/edit') ||
pathname.startsWith(base + 'scripts/add') ||
pathname.startsWith(base + 'scripts/edit')
)
}
afterNavigate((n) => {
@@ -205,7 +205,7 @@
}
}
let devOnly = $page.url.pathname.startsWith(base + '/scripts/dev')
let devOnly = $page.url.pathname.startsWith(base + 'scripts/dev')
async function loadCopilot(workspace: string) {
workspacedOpenai.init(workspace)
@@ -424,7 +424,7 @@
icon: List,
href:
base +
'/runs/?schedule_path=' +
'runs/?schedule_path=' +
path +
'&show_schedules=true&show_future_jobs=true'
},
@@ -82,7 +82,7 @@
$: noWorkspaces = $superadmin && nonAdminWorkspaces.length == 0
async function getCreateWorkspaceRequireSuperadmin() {
const r = await fetch(base + '/api/workspaces/create_workspace_require_superadmin')
const r = await fetch(base + 'api/workspaces/create_workspace_require_superadmin')
const t = await r.text()
createWorkspace = t != 'true'
}
@@ -43,7 +43,7 @@
<button {disabled} on:click={appConnect?.next}>
<img
class="h-10 w-auto object-contain"
src={darkMode ? base + '/google_signin_dark.png' : base + '/google_signin_light.png'}
src={darkMode ? base + 'google_signin_dark.png' : base + 'google_signin_light.png'}
alt="Google sign-in"
/>
</button>