Merge branch 'master' into fix/isolated-vm-tests

This commit is contained in:
Michael Drury 2024-02-23 10:09:38 +00:00 committed by GitHub
commit 0b0599e873
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
158 changed files with 852 additions and 224 deletions

View File

@ -1,5 +1,5 @@
{
"version": "2.20.6",
"version": "2.20.10",
"npmClient": "yarn",
"packages": [
"packages/*",

View File

@ -22,7 +22,7 @@
"nx-cloud": "16.0.5",
"prettier": "2.8.8",
"prettier-plugin-svelte": "^2.3.0",
"svelte": "3.49.0",
"svelte": "^4.2.10",
"svelte-eslint-parser": "^0.33.1",
"typescript": "5.2.2",
"yargs": "^17.7.2"

@ -1 +1 @@
Subproject commit 4384bc742ca22fb1e9bf91843e65ae929daf17e2
Subproject commit ab324e35d855012bd0f49caa53c6dd765223c6fa

View File

@ -1,12 +1,12 @@
import Joi, { ObjectSchema } from "joi"
import { BBContext } from "@budibase/types"
import Joi from "joi"
import { Ctx } from "@budibase/types"
function validate(
schema: Joi.ObjectSchema | Joi.ArraySchema,
property: string
) {
// Return a Koa middleware function
return (ctx: BBContext, next: any) => {
return (ctx: Ctx, next: any) => {
if (!schema) {
return next()
}
@ -30,7 +30,6 @@ function validate(
const { error } = schema.validate(params)
if (error) {
ctx.throw(400, `Invalid ${property} - ${error.message}`)
return
}
return next()
}

View File

@ -58,7 +58,7 @@ export const useCloudFree = () => {
// FEATURES
const useFeature = (feature: Feature) => {
const license = cloneDeep(UNLIMITED_LICENSE)
const license = cloneDeep(getCachedLicense() || UNLIMITED_LICENSE)
const opts: UseLicenseOpts = {
features: [feature],
}

View File

@ -24,8 +24,7 @@
"rollup": "^2.45.2",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-svelte": "^7.1.0",
"rollup-plugin-terser": "^7.0.2",
"svelte": "3.49.0"
"rollup-plugin-terser": "^7.0.2"
},
"keywords": [
"svelte"

View File

@ -41,6 +41,7 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<span
class="btn-wrap"
on:mouseover={() => (showTooltip = true)}

View File

@ -33,6 +33,8 @@
setContext("actionMenu", { show, hide })
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div use:getAnchor on:click={openMenu}>
<slot name="control" />
</div>

View File

@ -13,6 +13,8 @@
export let hoverable = false
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<span
on:click
class="spectrum-Label"

View File

@ -123,6 +123,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
bind:this={preview}
class="preview size--{size || 'M'}"
@ -137,6 +139,8 @@
/>
</div>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<Popover bind:this={dropdown} anchor={preview} maxHeight={320} {offset} {align}>
<Layout paddingX="XL" paddingY="L">
<div class="container">

View File

@ -15,6 +15,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="property-group-container">
{#if name}
<div class="property-group-name" on:click={onHeaderClick}>

View File

@ -36,6 +36,8 @@
})
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
bind:this={ref}
class="fancy-field"

View File

@ -35,6 +35,7 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="spectrum-InputGroup"
class:is-focused={open || focus}

View File

@ -193,6 +193,8 @@
aria-required="false"
aria-haspopup="true"
>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
on:click={flatpickr?.open}
class="spectrum-Textfield spectrum-InputGroup-textfield"
@ -230,6 +232,7 @@
</Flatpickr>
{/key}
{#if open}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="overlay" on:mousedown|self={flatpickr?.close} />
{/if}

View File

@ -137,6 +137,9 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div class="container" class:compact>
{#if selectedImage}
{#if gallery}

View File

@ -96,6 +96,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="spectrum-InputGroup">
<div
class:is-disabled={disabled || hbsValue.length}

View File

@ -50,6 +50,8 @@
on:change={handleFile}
/>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="field">
{#if value}
<div class="file-view">

View File

@ -110,6 +110,7 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="spectrum-InputGroup" class:is-disabled={disabled}>
<div
class="spectrum-Textfield spectrum-InputGroup-textfield"

View File

@ -146,6 +146,7 @@
<use xlink:href="#spectrum-css-icon-Chevron100" />
</svg>
</button>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<Popover
anchor={customAnchor ? customAnchor : button}
align={align || "left"}

View File

@ -104,6 +104,7 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="spectrum-InputGroup" class:is-disabled={disabled}>
<div
class="spectrum-Textfield spectrum-InputGroup-textfield"

View File

@ -24,6 +24,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="icon"
on:mouseover={() => (showTooltip = true)}

View File

@ -58,6 +58,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="container">
<div class="preview size--{size || 'M'}" on:click={() => (open = true)}>
<div

View File

@ -10,6 +10,8 @@
let showTooltip = false
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="icon-side-nav-item"
class:active

View File

@ -17,6 +17,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div>
<Input readonly {value} {label} />
<div class="icon" on:click={() => copyToClipboard(value)}>

View File

@ -15,6 +15,8 @@
$: initials = avatar ? title?.[0] : null
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="list-item" class:hoverable on:click>
<div class="left">
{#if icon}

View File

@ -33,6 +33,7 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<li
on:click|preventDefault={disabled ? null : onClick}
class="spectrum-Menu-item"

View File

@ -14,6 +14,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div on:click={increment}>
Click me
{remaining}

View File

@ -100,6 +100,7 @@
-->
<Portal target=".modal-container">
{#if visible}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="spectrum-Underlay is-open" on:mousedown|self={cancel}>
<div
class="background"

View File

@ -81,6 +81,8 @@
})
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div>
<div
class="actions"

View File

@ -10,6 +10,8 @@
export let hasNextPage = true
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<nav class="spectrum-Pagination spectrum-Pagination--explicit">
<div
href="#"

View File

@ -78,6 +78,7 @@
</script>
{#if open}
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<Portal {target}>
<div
tabindex="0"

View File

@ -40,6 +40,8 @@
export let overBackground
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
on:click
class:spectrum-ProgressCircle--indeterminate={value == null}

View File

@ -13,6 +13,8 @@
export let badge = ""
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<li
class="spectrum-SideNav-item"
class:is-selected={selected}

View File

@ -22,6 +22,8 @@
export let hoverable = false
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
on:click
class="spectrum-StatusLight spectrum-StatusLight--size{size}"

View File

@ -19,6 +19,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div on:click|stopPropagation={onClick}>
<Icon size="S" name="Copy" />
</div>

View File

@ -303,6 +303,8 @@
</script>
{#key fields?.length}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="wrapper"
class:wrapper--quiet={quiet}

View File

@ -48,6 +48,9 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div
{id}
bind:this={tab_internal}

View File

@ -90,6 +90,7 @@
onDestroy(hide)
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
bind:this={wrapper}
class="abs-tooltip"

View File

@ -9,6 +9,7 @@
let showTooltip = false
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class:container={!!tooltip}>
<slot />
{#if tooltip}

View File

@ -86,14 +86,13 @@
"@rollup/plugin-replace": "^5.0.3",
"@roxi/routify": "2.18.12",
"@sveltejs/vite-plugin-svelte": "1.4.0",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/svelte": "^3.2.2",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/svelte": "^4.1.0",
"babel-jest": "^29.6.2",
"identity-obj-proxy": "^3.0.0",
"jest": "29.7.0",
"jsdom": "^21.1.1",
"ncp": "^2.0.0",
"svelte": "^3.49.0",
"svelte-jester": "^1.3.2",
"vite": "^4.5.0",
"vite-plugin-static-copy": "^0.17.0",

View File

@ -110,6 +110,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<ModalContent
title="Add automation step"
confirmText="Save"

View File

@ -46,6 +46,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="header" class:scrolling>
<div class="header-left">
<UndoRedoControl store={automationHistoryStore} />

View File

@ -103,6 +103,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class={`block ${block.type} hoverable`} class:selected on:click={() => {}}>
{#if loopBlock}
<div class="blockSection">

View File

@ -93,6 +93,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class:typing={typing && !automationNameError}
class:typing-error={automationNameError}

View File

@ -46,6 +46,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<ModalContent
title="Create Automation"
confirmText="Save"

View File

@ -65,6 +65,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="root">
<div class="spacer" />
{#each fieldsArray as field}

View File

@ -757,6 +757,8 @@
/>
</Modal>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<ConfirmDialog
bind:this={confirmDeleteDialog}
okText="Delete Column"

View File

@ -32,6 +32,7 @@ vi.mock("svelte", async () => {
},
createEventDispatcher: vi.fn(),
onDestroy: vi.fn(),
tick: vi.fn(),
}
})

View File

@ -6,6 +6,8 @@
export let indented
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class:indented class:selected on:click class={className}>
<i class={icon} />
<span>{title}</span>

View File

@ -237,6 +237,8 @@
</script>
<svelte:window on:keydown={onKeyDown} />
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<ModalContent
size="L"
showCancelButton={false}

View File

@ -8,6 +8,8 @@
$: actionDefined = typeof action === "function"
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="dash-card">
<div class="dash-card-header" class:active={actionDefined} on:click={action}>
<span class="dash-card-title">

View File

@ -1,3 +1,5 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="dropdown-container" on:click>
<slot />
</div>

View File

@ -5,6 +5,7 @@
export let disabled = false
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="dropdown-item" class:disabled on:click {...$$restProps}>
{#if icon}<i class={icon} />{/if}
<div class="content">

View File

@ -11,6 +11,8 @@
let modal
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="editable-icon">
<div class="hover" on:click={modal.show}>
<Icon name="Edit" {size} color="var(--spectrum-global-color-gray-600)" />

View File

@ -1,3 +1,5 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<svg
on:click
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 566 B

View File

@ -39,6 +39,7 @@
<svelte:window on:keydown={onKeyDown} />
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="header" class:search>
<input
readonly={!search}

View File

@ -60,6 +60,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="nav-item"
class:hovering

View File

@ -103,6 +103,9 @@
</Popover>
</span>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions-->
<Layout noPadding gap="S">
{#if selectedCategory}
<div class="sub-section-back">

View File

@ -57,6 +57,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="control" class:disabled>
<Combobox
{label}

View File

@ -60,6 +60,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="control" class:disabled>
<Input
{label}

View File

@ -125,6 +125,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="control" class:disabled>
{#if !isValid(value)}
<Input

View File

@ -35,6 +35,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="control">
<Input
{label}

View File

@ -149,6 +149,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="action-top-nav">
<div class="action-buttons">
{#if updateAvailable && $isOnlyUser}

View File

@ -22,6 +22,8 @@
$: customTitleContent = $$slots["panel-title-content"]
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="panel"
class:wide

View File

@ -249,6 +249,9 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions-->
<DrawerContent>
<Layout noPadding gap="S" slot="sidebar">
{#if showAvailableActions || !actions?.length}

View File

@ -94,6 +94,8 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="button-configuration">
{#if buttonCount}
<DraggableList

View File

@ -85,6 +85,7 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<DrawerContent>
<div class="container">
<Layout noPadding gap="S">

View File

@ -16,6 +16,7 @@
<Heading size="XS">{heading}</Heading>
</div>
{/if}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<ul class="spectrum-Menu" role="listbox">
{#each dataSet as data}
<li

View File

@ -80,6 +80,9 @@
}
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions-->
<ul
class="list-wrap"
use:dndzone={{

View File

@ -8,6 +8,8 @@
$: useIcon = !!icon
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="flatbutton" class:selected on:click={() => onClick(value || text)}>
{#if useIcon}
<i class={icon} />

View File

@ -116,11 +116,14 @@
$: pagerText = `Page ${currentPage} of ${totalPages}`
</script>
a11y-click-events-have-key-events
<div bind:this={buttonAnchor}>
<ActionButton on:click={dropdown.show}>
{displayValue}
</ActionButton>
</div>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<Popover bind:this={dropdown} on:open={setSelectedUI} anchor={buttonAnchor}>
<div class="container">
<div class="search-area">

View File

@ -60,6 +60,7 @@
let authConfigId
let dynamicVariables, addVariableModal, varBinding, globalDynamicBindings
let restBindings = getRestBindings()
let nestedSchemaFields = {}
$: staticVariables = datasource?.config?.staticVariables || {}
@ -160,6 +161,7 @@
newQuery.fields.authConfigId = authConfigId
newQuery.fields.disabledHeaders = restUtils.flipHeaderState(enabledHeaders)
newQuery.schema = schema || {}
newQuery.nestedSchemaFields = nestedSchemaFields || {}
return newQuery
}
@ -238,6 +240,7 @@
}
}
schema = response.schema
nestedSchemaFields = response.nestedSchemaFields
notifications.success("Request sent successfully")
}
} catch (error) {

View File

@ -5,6 +5,8 @@
export let disabled = false
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="side-nav-item">
{#if url}
<a class="text" on:click href={url} class:active class:disabled>

View File

@ -39,6 +39,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="container">
<Layout gap="S">
<div class="header">

View File

@ -38,6 +38,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="app-row"
on:click={lockedAction || handleDefaultClick}

View File

@ -58,6 +58,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<ModalContent title="Edit Icon" confirmText="Save" onConfirm={save}>
<div class="scrollable-icons">
<div class="title-spacing">

View File

@ -539,6 +539,8 @@
<svelte:window on:keydown={handleKeyDown} />
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
transition:fly={{ x: 400, duration: 260 }}
id="builder-side-panel-container"

View File

@ -24,6 +24,8 @@
})
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="preview-overlay"
transition:fade={{ duration: 260 }}

View File

@ -6,6 +6,8 @@
export let disabled
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div on:click class:disabled class="option">
<div class="header">
<div class="icon">

View File

@ -54,6 +54,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="button" on:click>
<div class="left">
{#if datasource.source !== IntegrationTypes.REST}

View File

@ -27,6 +27,8 @@
<CreateTableModal />
</Modal>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<section>
<Layout>
<Layout gap="XS" noPadding>

View File

@ -25,6 +25,8 @@
<CreateTableModal />
</Modal>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<section>
<Layout>
<Layout gap="XS" noPadding>

View File

@ -149,6 +149,7 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<DrawerContent>
<div class="container">
<Layout noPadding>

View File

@ -45,6 +45,7 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<DrawerContent>
<div class="container">
<Layout noPadding gap="S">

View File

@ -12,6 +12,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="container">
{#each Constants.Themes as theme}
<div

View File

@ -219,6 +219,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="container" transition:fly|local={{ x: 260, duration: 300 }}>
<Panel
title="Add component"

View File

@ -236,6 +236,8 @@
})
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="component-container">
{#if loading}
<div class="center">

View File

@ -63,6 +63,7 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
on:scroll
bind:this={scrollRef}

View File

@ -86,6 +86,8 @@
const hover = hoverStore.hover
</script>
<!-- svelte-ignore a11y-no-noninteractive-element-interactions-->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<ul>
{#each filteredComponents || [] as component, index (component._id)}
{@const opened = isOpen(component, $selectedComponentPath, openNodes)}

View File

@ -45,6 +45,8 @@
const hover = hoverStore.hover
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="components">
<div class="header" class:scrolling>
<Body size="S">Components</Body>

View File

@ -16,6 +16,7 @@
: `Requires ${role?.name} access`
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="container"
on:mouseover={() => (showTooltip = true)}

View File

@ -7,6 +7,8 @@
$: icon = datasource.type === "viewV2" ? "Remove" : "Table"
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="data-source-entry" class:selected on:click>
<Icon name={icon} color="var(--spectrum-global-color-gray-600)" />
{datasource.label}

View File

@ -14,6 +14,8 @@
$: hasScreens = $screenStore.screens?.length
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="page">
<CreationPage
showClose={!!onClose}

View File

@ -10,13 +10,18 @@
$redirect("../")
}
if ($admin?.checklist?.branding) {
if ($admin?.cloud && $admin?.checklist?.branding) {
let url = new URL(window.location.href)
let hostname = url.hostname
let parts = hostname.split(".")
let tenantId = parts[0]
let newTenantId = parts[0]
let domain = parts.slice(-2).join(".")
CookieUtils.setCookie("tenantId", tenantId, domain)
let existingTenantId = CookieUtils.getCookie("tenantId")
if (!existingTenantId || existingTenantId !== newTenantId) {
CookieUtils.setCookie("tenantId", newTenantId, domain)
}
}
if (

View File

@ -44,6 +44,8 @@
})
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<TestimonialPage enabled={$organisation.testimonialsEnabled}>
<Layout gap="S" noPadding>
<img alt="logo" src={$organisation.logoUrl || Logo} />

View File

@ -4,6 +4,8 @@
import { organisation } from "stores/portal"
</script>
<!-- svelte-ignore a11y-no-noninteractive-element-interactions-->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<img
src={$organisation.logoUrl || Logo}
alt="Budibase Logo"

View File

@ -15,6 +15,8 @@
const close = () => dispatch("close")
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
{#if visible}
<div
class="mobile-nav-underlay"
@ -22,6 +24,8 @@
on:click={close}
/>
{/if}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="mobile-nav" class:visible>
<Layout noPadding gap="M">
<div on:click={close}>

View File

@ -351,6 +351,8 @@
</LockedFeature>
{#if selectedLog}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
id="side-panel"
class:wide={wideSidePanel}

View File

@ -29,6 +29,8 @@
}
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="row" on:click={() => detailsModal.show()}>
<div class="title">
<div class="name">

View File

@ -145,6 +145,8 @@
})
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
{#if providers.google}
<Divider />
<Layout gap="XS" noPadding>

Some files were not shown because too many files have changed in this diff Show More