diff --git a/frontend/package-lock.json b/frontend/package-lock.json index b039f159a5..eb38c52c94 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -33,7 +33,6 @@ "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^4.0.0", "flowbite": "^1.5.3", - "flowbite-svelte": "^0.27.8", "openapi-typescript-codegen": "^0.23.0", "path-browserify": "^1.0.1", "postcss": "^8.4.18", @@ -1352,12 +1351,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/classnames": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", - "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==", - "dev": true - }, "node_modules/cli-boxes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz", @@ -2734,21 +2727,6 @@ "mini-svg-data-uri": "^1.4.3" } }, - "node_modules/flowbite-svelte": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/flowbite-svelte/-/flowbite-svelte-0.27.8.tgz", - "integrity": "sha512-yUOBTL+ViiXqHyUMREH/MdTzkuDOuaGrE/3f9NG4fymqVdrT3LLKYoZzlpQ8mW8Vt9uhyvd1w5tzcoydKuORJA==", - "dev": true, - "dependencies": { - "@popperjs/core": "^2.11.6", - "classnames": "^2.3.2", - "flowbite": "^1.5.3" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/fraction.js": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", @@ -7484,12 +7462,6 @@ "readdirp": "~3.6.0" } }, - "classnames": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", - "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==", - "dev": true - }, "cli-boxes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz", @@ -8447,17 +8419,6 @@ "mini-svg-data-uri": "^1.4.3" } }, - "flowbite-svelte": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/flowbite-svelte/-/flowbite-svelte-0.27.8.tgz", - "integrity": "sha512-yUOBTL+ViiXqHyUMREH/MdTzkuDOuaGrE/3f9NG4fymqVdrT3LLKYoZzlpQ8mW8Vt9uhyvd1w5tzcoydKuORJA==", - "dev": true, - "requires": { - "@popperjs/core": "^2.11.6", - "classnames": "^2.3.2", - "flowbite": "^1.5.3" - } - }, "fraction.js": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index 193ed29740..308c072549 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -30,7 +30,6 @@ "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^4.0.0", "flowbite": "^1.5.3", - "flowbite-svelte": "^0.27.8", "openapi-typescript-codegen": "^0.23.0", "path-browserify": "^1.0.1", "postcss": "^8.4.18", diff --git a/frontend/src/lib/components/FlowStatusViewer.svelte b/frontend/src/lib/components/FlowStatusViewer.svelte index 41f6ddd71e..add15e0dcc 100644 --- a/frontend/src/lib/components/FlowStatusViewer.svelte +++ b/frontend/src/lib/components/FlowStatusViewer.svelte @@ -3,12 +3,12 @@ import { workspaceStore } from '$lib/stores' import FlowJobResult from './FlowJobResult.svelte' import FlowPreviewStatus from './preview/FlowPreviewStatus.svelte' - import { Button } from 'flowbite-svelte' import Icon from 'svelte-awesome' import { faChevronDown, faChevronUp } from '@fortawesome/free-solid-svg-icons' import { createEventDispatcher } from 'svelte' import { onDestroy } from 'svelte' import { flowStateStore } from './flows/flowState' + import Button from './common/button/Button.svelte' const dispatch = createEventDispatcher() @@ -73,8 +73,9 @@ {#each flowJobIds.flowJobs as loopJobId, j} - - - - - - - + changeStep(e.detail.index + 1)} + disabled={pathError != ''} + > + / + {script.path}
{#if step != 3} + {/each} +
diff --git a/frontend/src/lib/components/common/index.ts b/frontend/src/lib/components/common/index.ts index 3ba31977e9..f0631c05d1 100644 --- a/frontend/src/lib/components/common/index.ts +++ b/frontend/src/lib/components/common/index.ts @@ -16,6 +16,7 @@ export { default as TabContent } from './tabs/TabContent.svelte' export { default as Tabs } from './tabs/Tabs.svelte' export { default as ToggleButton } from './toggleButton/ToggleButton.svelte' export { default as ToggleButtonGroup } from './toggleButton/ToggleButtonGroup.svelte' +export { default as Breadcrumb } from './breadcrumb/Breadcrumb.svelte' export * from './alert/model' export * from './badge/model' diff --git a/frontend/src/lib/components/flows/content/CopyFirstStepSchema.svelte b/frontend/src/lib/components/flows/content/CopyFirstStepSchema.svelte index dfa800e855..ae933572af 100644 --- a/frontend/src/lib/components/flows/content/CopyFirstStepSchema.svelte +++ b/frontend/src/lib/components/flows/content/CopyFirstStepSchema.svelte @@ -1,5 +1,5 @@ @@ -9,6 +9,7 @@ size="xs" disabled={$flowStore.value.modules.length === 0 || isEmptyFlowModule($flowStore.value.modules[0])} on:click={copyFirstStepSchema} + variant="border" > Copy from first step schema diff --git a/frontend/src/lib/components/flows/content/FlowSettings.svelte b/frontend/src/lib/components/flows/content/FlowSettings.svelte index c13e1591be..1ea612d528 100644 --- a/frontend/src/lib/components/flows/content/FlowSettings.svelte +++ b/frontend/src/lib/components/flows/content/FlowSettings.svelte @@ -9,7 +9,7 @@ import FlowCard from '../common/FlowCard.svelte' import FlowSchedules from './FlowSchedules.svelte' import SvelteMarkdown from 'svelte-markdown' - import { Toggle } from 'flowbite-svelte' + import Toggle from '$lib/components/Toggle.svelte' export let initialPath: string @@ -26,9 +26,8 @@
- Flow permissions depend on their path. Select the group all + Flow permissions depend on their path. Select the group + all to share your flow, and user to keep it private. docs
@@ -75,7 +74,7 @@
- + Same Worker + import Button from '$lib/components/common/button/Button.svelte' import type { IconDefinition } from '@fortawesome/free-brands-svg-icons' - import { Button } from 'flowbite-svelte' import Icon from 'svelte-awesome' export let disabled: boolean = false @@ -9,7 +9,17 @@ export let iconColor: string - diff --git a/frontend/src/routes/groups.svelte b/frontend/src/routes/groups.svelte index 4744c7d77e..b31fcad638 100644 --- a/frontend/src/routes/groups.svelte +++ b/frontend/src/routes/groups.svelte @@ -20,8 +20,7 @@ import TableCustom from '$lib/components/TableCustom.svelte' import { userStore, workspaceStore } from '$lib/stores' import { faEdit, faPlus, faShare } from '@fortawesome/free-solid-svg-icons' - import { Alert } from 'flowbite-svelte' - import { Button } from '$lib/components/common' + import { Alert, Button } from '$lib/components/common' type GroupW = Group & { canWrite: boolean } @@ -83,12 +82,9 @@ - -

Groups are a team or enterprise feature - Unlimited during beta

-

- Groups are a team or enterprise feature and the feature might be significantly different after - beta in the community edition -

+ + Groups are a team or enterprise feature and the feature might be significantly different after + beta in the community edition
@@ -101,20 +97,21 @@ {#each groups as { name, summary, extra_perms, canWrite }} - + { groupModal.openModal(name) - }}>{name} + }} + >{name} +
{summary ?? ''} - + + /> + {/each} diff --git a/frontend/src/routes/workers.svelte b/frontend/src/routes/workers.svelte index 6fe54087b3..4e3cca84ba 100644 --- a/frontend/src/routes/workers.svelte +++ b/frontend/src/routes/workers.svelte @@ -8,11 +8,11 @@