further public apps improvements

This commit is contained in:
Ruben Fiszel
2023-01-02 19:02:40 +01:00
parent 8f8853a065
commit a9588f4d94
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,6 @@ pub fn workspaced_service() -> Router {
.route("/completed/get_result/:id", get(get_completed_job_result))
.route("/completed/delete/:id", post(delete_completed_job))
.route("/flow/resume/:id", post(resume_suspended_flow_as_owner))
.route("/getupdate/:id", get(get_job_update))
.route(
"/job_signature/:job_id/:resume_id",
get(create_job_signature),
@@ -95,6 +94,7 @@ pub fn global_service() -> Router {
get(get_suspended_job_flow),
)
.route("/get/:id", get(get_job))
.route("/getupdate/:id", get(get_job_update))
}
async fn get_result_by_id(
@@ -63,7 +63,10 @@
console.log(staticInputs)
return [`rawscript/${hex}`, staticInputs]
} else if (c.componentInput.runnable?.type == 'runnableByPath') {
return [c.componentInput.runnable.path, staticInputs]
return [
`${c.componentInput.runnable.runType}/${c.componentInput.runnable.path}`,
staticInputs
]
}
}
return []
@@ -7,6 +7,7 @@
import { Skeleton } from '$lib/components/common'
import { WindmillIcon } from '$lib/components/icons'
import { AppService, AppWithLastVersion, GlobalUserInfo, UserService } from '$lib/gen'
import github from 'svelte-highlight/styles/github'
import { writable } from 'svelte/store'
let app: AppWithLastVersion | undefined = undefined
@@ -32,6 +33,10 @@
const breakpoint = writable<EditorBreakpoint>('lg')
</script>
<svelte:head>
{@html github}
</svelte:head>
<div class="z-50 text-xs fixed bottom-1 right-2 ">
<a href="https://windmill.dev" class="whitespace-nowrap text-gray-500 inline-flex items-center"
>Powered by &nbsp;<WindmillIcon />&nbsp;Windmill</a