This commit is contained in:
Adria Navarro 2023-11-20 16:19:31 +01:00
parent 4d27ff1dc0
commit 92f411bf77
61 changed files with 208 additions and 108 deletions

View File

@ -1,5 +1,11 @@
import { BuiltinPermissionID, PermissionLevel } from "./permissions"
import { prefixRoleID, getRoleParams, DocumentType, SEPARATOR , doWithDB } from "../db"
import {
prefixRoleID,
getRoleParams,
DocumentType,
SEPARATOR,
doWithDB,
} from "../db"
import { getAppDB } from "../context"
import { Screen, Role as RoleDoc } from "@budibase/types"
import cloneDeep from "lodash/fp/cloneDeep"

View File

@ -1,5 +1,9 @@
<script>
import { automationStore, selectedAutomation , automationHistoryStore } from "builderStore"
import {
automationStore,
selectedAutomation,
automationHistoryStore,
} from "builderStore"
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
import FlowItem from "./FlowItem.svelte"
import TestDataModal from "./TestDataModal.svelte"

View File

@ -1,6 +1,7 @@
<script>
import { automationStore } from "builderStore"
import { notifications ,
import {
notifications,
Input,
InlineAlert,
ModalContent,

View File

@ -1,6 +1,12 @@
<script>
import { automationStore } from "builderStore"
import { notifications , Icon, Input, ModalContent, Modal } from "@budibase/bbui"
import {
notifications,
Icon,
Input,
ModalContent,
Modal,
} from "@budibase/bbui"
export let automation
export let onCancel = undefined

View File

@ -1,7 +1,13 @@
<script>
import { createEventDispatcher } from "svelte"
import { tables, roles } from "stores/backend"
import { notifications , keepOpen, ModalContent, Select, Link } from "@budibase/bbui"
import {
notifications,
keepOpen,
ModalContent,
Select,
Link,
} from "@budibase/bbui"
import RowFieldControl from "../RowFieldControl.svelte"
import { API } from "api"
import ErrorsBox from "components/common/ErrorsBox.svelte"

View File

@ -1,5 +1,12 @@
<script>
import { keepOpen, ModalContent, Select, Input, Button , notifications } from "@budibase/bbui"
import {
keepOpen,
ModalContent,
Select,
Input,
Button,
notifications,
} from "@budibase/bbui"
import { onMount } from "svelte"
import { API } from "api"
import ErrorsBox from "components/common/ErrorsBox.svelte"

View File

@ -1,5 +1,8 @@
<script>
import { RelationshipType , PrettyRelationshipDefinitions } from "constants/backend"
import {
RelationshipType,
PrettyRelationshipDefinitions,
} from "constants/backend"
import {
keepOpen,
Button,
@ -8,7 +11,8 @@
Select,
Detail,
Body,
Helpers } from "@budibase/bbui"
Helpers,
} from "@budibase/bbui"
import { tables } from "stores/backend"
import { RelationshipErrorChecker } from "./relationshipErrors"
import { onMount } from "svelte"

View File

@ -1,7 +1,13 @@
<script>
import { goto, url } from "@roxi/routify"
import { tables, datasources } from "stores/backend"
import { notifications , Input, Label, ModalContent, Layout } from "@budibase/bbui"
import {
notifications,
Input,
Label,
ModalContent,
Layout,
} from "@budibase/bbui"
import TableDataImport from "../TableDataImport.svelte"
import {
BUDIBASE_INTERNAL_DB_ID,

View File

@ -14,7 +14,8 @@
isValid,
decodeJSBinding,
encodeJSBinding,
convertToJS } from "@budibase/string-templates"
convertToJS,
} from "@budibase/string-templates"
import {
readableToRuntimeBinding,
runtimeToReadableBinding,

View File

@ -24,7 +24,9 @@
queries as queriesStore,
viewsV2 as viewsV2Store,
views as viewsStore,
datasources, integrations } from "stores/backend"
datasources,
integrations,
} from "stores/backend"
import BindingBuilder from "components/integration/QueryBindingBuilder.svelte"
import IntegrationQueryEditor from "components/integration/index.svelte"
import { makePropSafe as safe } from "@budibase/string-templates"

View File

@ -1,5 +1,13 @@
<script>
import { Button, Heading, notifications, Layout, Body , FancyForm, FancyInput } from "@budibase/bbui"
import {
Button,
Heading,
notifications,
Layout,
Body,
FancyForm,
FancyInput,
} from "@budibase/bbui"
import { goto } from "@roxi/routify"
import { API } from "api"
import { admin, auth } from "stores/portal"

View File

@ -1,6 +1,7 @@
<script>
import { get } from "svelte/store"
import { Helpers ,
import {
Helpers,
Input,
Checkbox,
Banner,

View File

@ -1,5 +1,7 @@
<script>
import { store, userSelectedResourceMap ,
import {
store,
userSelectedResourceMap,
selectedComponentPath,
selectedComponent,
selectedScreen,

View File

@ -6,7 +6,9 @@
Body,
Heading,
Icon,
FancyForm, FancyInput } from "@budibase/bbui"
FancyForm,
FancyInput,
} from "@budibase/bbui"
import { organisation, auth } from "stores/portal"
import Logo from "assets/bb-emblem.svg"
import { onMount } from "svelte"

View File

@ -8,7 +8,9 @@
Layout,
notifications,
Link,
FancyForm, FancyInput } from "@budibase/bbui"
FancyForm,
FancyInput,
} from "@budibase/bbui"
import { goto } from "@roxi/routify"
import { auth, organisation, oidc, admin } from "stores/portal"
import GoogleButton from "./_components/GoogleButton.svelte"

View File

@ -1,5 +1,13 @@
<script>
import { Body, Button, Heading, Layout, notifications , FancyForm, FancyInput } from "@budibase/bbui"
import {
Body,
Button,
Heading,
Layout,
notifications,
FancyForm,
FancyInput,
} from "@budibase/bbui"
import { goto, params } from "@roxi/routify"
import { auth, organisation } from "stores/portal"
import Logo from "assets/bb-emblem.svg"

View File

@ -1,5 +1,13 @@
<script>
import { Layout, Heading, Body, Button, notifications , FancyForm, FancyInput } from "@budibase/bbui"
import {
Layout,
Heading,
Body,
Button,
notifications,
FancyForm,
FancyInput,
} from "@budibase/bbui"
import { goto, params } from "@roxi/routify"
import { users, organisation, auth } from "stores/portal"
import Logo from "assets/bb-emblem.svg"

View File

@ -1,5 +1,10 @@
import { Command } from "../structures/Command"
import { CommandWord, AnalyticsEvent, InitType , GENERATED_USER_EMAIL } from "../constants"
import {
CommandWord,
AnalyticsEvent,
InitType,
GENERATED_USER_EMAIL,
} from "../constants"
import { getSkeleton, fleshOutSkeleton } from "./skeleton"
import * as questions from "../questions"
import fs from "fs"

View File

@ -1,5 +1,13 @@
<script>
import { ModalContent, Modal, Icon, ActionButton , Input, Button, StatusLight } from "@budibase/bbui"
import {
ModalContent,
Modal,
Icon,
ActionButton,
Input,
Button,
StatusLight,
} from "@budibase/bbui"
import { Html5Qrcode } from "html5-qrcode"
import { createEventDispatcher } from "svelte"

@ -1 +1 @@
Subproject commit ea48ab72f99d50a01c7b7afd37fdb73efbc15641
Subproject commit 0fcc284eaad4020be4a1410452b31a2966cf1989

View File

@ -4,7 +4,13 @@ import { checkSlashesInUrl } from "../../utilities"
import { request } from "../../utilities/workerRequests"
import { clearLock as redisClearLock } from "../../utilities/redis"
import { DocumentType } from "../../db/utils"
import { context, env as envCore , events, db as dbCore, cache } from "@budibase/backend-core"
import {
context,
env as envCore,
events,
db as dbCore,
cache,
} from "@budibase/backend-core"
import { App } from "@budibase/types"
async function redirect(ctx: any, method: string, path: string = "global") {

View File

@ -5,10 +5,10 @@ import {
AutoFieldSubTypes,
FieldTypes,
GOOGLE_SHEETS_PRIMARY_KEY,
USERS_TABLE_SCHEMA,
SwitchableTypes,
CanSwitchTypes} from "../../../constants"
CanSwitchTypes,
} from "../../../constants"
import {
inputProcessing,
cleanupAttachments,

View File

@ -8,7 +8,8 @@ import {
accounts,
db as dbUtils,
} from "@budibase/backend-core"
import { QuotaUsage ,
import {
QuotaUsage,
CloudAccount,
App,
TenantBackfillSucceededEvent,

View File

@ -1,5 +1,7 @@
import { db as dbCore, encryption, objectStore } from "@budibase/backend-core"
import { Database, Row ,
import {
Database,
Row,
Automation,
AutomationTriggerStepId,
RowAttachment,

View File

@ -1,5 +1,9 @@
import * as linkRows from "../../db/linkedRows"
import { FieldTypes, AutoFieldSubTypes , ObjectStoreBuckets } from "../../constants"
import {
FieldTypes,
AutoFieldSubTypes,
ObjectStoreBuckets,
} from "../../constants"
import { processFormulas, fixAutoColumnSubType } from "./utils"
import {
context,