raw app improvements

This commit is contained in:
Ruben Fiszel
2026-01-20 08:37:15 +00:00
parent c143e78d7f
commit bb22fcb3a4
6 changed files with 47 additions and 5 deletions
@@ -162,6 +162,9 @@
sendUserToast(`App hasn't been loaded yet`, true)
return
}
if (!policy.execution_mode) {
policy.execution_mode = 'publisher'
}
await computeTriggerables()
try {
const { js, css } = await getBundle()
@@ -266,6 +269,9 @@
}
const { js, css } = await getBundle()
await computeTriggerables()
if (!policy.execution_mode) {
policy.execution_mode = 'publisher'
}
await AppService.updateAppRaw({
workspace: $workspaceStore!,
path: appPath!,
@@ -4,7 +4,7 @@
import { base } from '$lib/base'
import CenteredModal from '$lib/components/CenteredModal.svelte'
import { Button } from '$lib/components/common'
import { workspaceStore } from '$lib/stores'
import { userStore, workspaceStore } from '$lib/stores'
let port = Number($page.url.searchParams.get('port'))
let host: string = $page.url.searchParams.get('host') || 'localhost'
@@ -12,9 +12,11 @@
port = port == 0 || Number.isNaN(port) ? 80 : port
async function authorizeToken(): Promise<void> {
const username = $userStore?.username
const label = username ? `cli-${username}` : 'cli'
const newToken = await UserService.createToken({
requestBody: {
label: 'External tool token',
label,
expiration: undefined
}
})