Skip to content

Commit

Permalink
Merge branch 'main' into alp/support_html_in_gfm
Browse files Browse the repository at this point in the history
  • Loading branch information
alpetric authored Jan 8, 2025
2 parents 28dc881 + 4c8c90e commit 88f7538
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "windmill-components",
"version": "1.444.0",
"version": "1.444.2",
"scripts": {
"dev": "vite dev",
"build": "vite build",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/components/runs/RunsFilter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@

<span class="text-xs absolute -top-4"
>Label <Tooltip
>Labels are string values in the array at the result field 'wm_labels' to easily
filter them</Tooltip
><a href="https://www.windmill.dev/docs/core_concepts/monitor_past_and_future_runs#jobs-labels" target="_blank">Job Labels</a> are string values in the array at the result field 'wm_labels' to easily
filter them.</Tooltip
></span
>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import CopyableCodeBlock from '$lib/components/details/CopyableCodeBlock.svelte'
import { bash } from 'svelte-highlight/languages'
import { HttpTriggerService } from '$lib/gen'
import { page } from '$app/stores'
// import { page } from '$app/stores'
import { isCloudHosted } from '$lib/cloud'
import { base } from '$lib/base'
import type { CaptureInfo } from './CaptureSection.svelte'
Expand Down Expand Up @@ -59,7 +59,7 @@
}
function getHttpRoute(route_path: string | undefined) {
return `${$page.url.origin}${base}/api/r/${
return `${location.origin}${base}/api/r/${
isCloudHosted() ? $workspaceStore + '/' : ''
}${route_path}`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import { typescript } from 'svelte-highlight/languages'
import ClipboardPanel from '../details/ClipboardPanel.svelte'
import { copyToClipboard } from '$lib/utils'
import { page } from '$app/stores'
// import { page } from '$app/stores'
import { base } from '$lib/base'
import TriggerTokens from './TriggerTokens.svelte'
import { workspaceStore, userStore } from '$lib/stores'
Expand Down Expand Up @@ -54,7 +54,7 @@
$: webhooks = isFlow ? computeFlowWebhooks(path) : computeScriptWebhooks(hash, path)
function computeScriptWebhooks(hash: string | undefined, path: string) {
let webhookBase = `${$page.url.origin}${base}/api/w/${$workspaceStore}/jobs`
let webhookBase = `${location.origin}${base}/api/w/${$workspaceStore}/jobs`
return {
async: {
hash: `${webhookBase}/run/h/${hash}`,
Expand All @@ -69,7 +69,7 @@
}
function computeFlowWebhooks(path: string) {
let webhooksBase = `${$page.url.origin}${base}/api/w/${$workspaceStore}/jobs`
let webhooksBase = `${location.origin}${base}/api/w/${$workspaceStore}/jobs`
let urlAsync = `${webhooksBase}/run/f/${path}`
let urlSync = `${webhooksBase}/run_wait_result/f/${path}`
Expand Down Expand Up @@ -158,7 +158,7 @@ function waitForJobCompletion(UUID) {
return new Promise(async (resolve, reject) => {
try {
const endpoint = \`${
$page.url.origin
location.origin
}/api/w/${$workspaceStore}/jobs_u/completed/get_result_maybe/\${UUID}\`;
const checkResponse = await fetch(endpoint, {
method: 'GET',
Expand Down Expand Up @@ -186,7 +186,7 @@ function waitForJobCompletion(UUID) {
return `${mainFunction}\n\n${triggerJobFunction}\n\n${waitForJobCompletionFunction}`
}
let captureUrl = `${$page.url.origin}/api/w/${$workspaceStore}/capture_u/webhook/${
let captureUrl = `${location.origin}/api/w/${$workspaceStore}/capture_u/webhook/${
isFlow ? 'flow' : 'script'
}/${path}`
Expand All @@ -211,7 +211,7 @@ ${
webhookType === 'sync'
? 'echo -E $RESULT | jq'
: `
URL="${$page.url.origin}/api/w/${$workspaceStore}/jobs_u/completed/get_result_maybe/$UUID"
URL="${location.origin}/api/w/${$workspaceStore}/jobs_u/completed/get_result_maybe/$UUID"
while true; do
curl -s -H "Authorization: Bearer $TOKEN" $URL -o res.json
COMPLETED=$(cat res.json | jq .completed)
Expand Down

0 comments on commit 88f7538

Please sign in to comment.