Prettier
This commit is contained in:
parent
4d27ff1dc0
commit
92f411bf77
|
@ -1,6 +1,6 @@
|
|||
import { newid } from "./utils"
|
||||
import * as events from "./events"
|
||||
import { StaticDatabases , doWithDB } from "./db"
|
||||
import { StaticDatabases, doWithDB } from "./db"
|
||||
import { Installation, IdentityType, Database } from "@budibase/types"
|
||||
import * as context from "./context"
|
||||
import semver from "semver"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import Button from "../Button/Button.svelte"
|
||||
import Body from "../Typography/Body.svelte"
|
||||
import Heading from "../Typography/Heading.svelte"
|
||||
import { setContext , createEventDispatcher } from "svelte"
|
||||
import { setContext, createEventDispatcher } from "svelte"
|
||||
import { generate } from "shortid"
|
||||
|
||||
export let title
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
import "@spectrum-css/popover/dist/index-vars.css"
|
||||
import Portal from "svelte-portal"
|
||||
import { createEventDispatcher , getContext } from "svelte"
|
||||
import { createEventDispatcher, getContext } from "svelte"
|
||||
import positionDropdown from "../Actions/position_dropdown"
|
||||
import clickOutside from "../Actions/click_outside"
|
||||
import { fly } from "svelte/transition"
|
||||
|
|
|
@ -4,7 +4,7 @@ import { getTemporalStore } from "./store/temporal"
|
|||
import { getThemeStore } from "./store/theme"
|
||||
import { getUserStore } from "./store/users"
|
||||
import { getDeploymentStore } from "./store/deployments"
|
||||
import { derived, writable , get } from "svelte/store"
|
||||
import { derived, writable, get } from "svelte/store"
|
||||
import { findComponent, findComponentPath } from "./componentUtils"
|
||||
import { RoleUtils } from "@budibase/frontend-core"
|
||||
import { createHistoryStore } from "builderStore/store/history"
|
||||
|
|
|
@ -7,8 +7,8 @@ import {
|
|||
} from "builderStore"
|
||||
import { datasources, tables } from "stores/backend"
|
||||
import { get } from "svelte/store"
|
||||
import { auth , apps } from "stores/portal"
|
||||
import { SocketEvent, BuilderSocketEvent , helpers } from "@budibase/shared-core"
|
||||
import { auth, apps } from "stores/portal"
|
||||
import { SocketEvent, BuilderSocketEvent, helpers } from "@budibase/shared-core"
|
||||
import { notifications } from "@budibase/bbui"
|
||||
|
||||
export const createBuilderWebsocket = appId => {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<script>
|
||||
import { automationStore } from "builderStore"
|
||||
import { notifications ,
|
||||
import {
|
||||
notifications,
|
||||
Input,
|
||||
InlineAlert,
|
||||
ModalContent,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
EditorModes,
|
||||
} from "components/common/CodeEditor"
|
||||
import FilterDrawer from "components/design/settings/controls/FilterEditor/FilterDrawer.svelte"
|
||||
import { LuceneUtils , Utils } from "@budibase/frontend-core"
|
||||
import { LuceneUtils, Utils } from "@budibase/frontend-core"
|
||||
import {
|
||||
getSchemaForDatasourcePlus,
|
||||
getEnvironmentBindings,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { Icon, notifications , ModalContent } from "@budibase/bbui"
|
||||
import { Icon, notifications, ModalContent } from "@budibase/bbui"
|
||||
import { automationStore, selectedAutomation } from "builderStore"
|
||||
import WebhookDisplay from "./WebhookDisplay.svelte"
|
||||
import { onMount, onDestroy } from "svelte"
|
||||
|
|
|
@ -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 { tables, roles } from "stores/backend"
|
||||
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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
import { get } from "svelte/store"
|
||||
import { datasources, integrations } from "stores/backend"
|
||||
import { notifications , Input, ModalContent, Modal } from "@budibase/bbui"
|
||||
import { notifications, Input, ModalContent, Modal } from "@budibase/bbui"
|
||||
import { integrationForDatasource } from "stores/selectors"
|
||||
|
||||
let error = ""
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
import { goto } from "@roxi/routify"
|
||||
import { datasources } from "stores/backend"
|
||||
import { notifications , ActionMenu, MenuItem, Icon } from "@budibase/bbui"
|
||||
import { notifications, ActionMenu, MenuItem, Icon } from "@budibase/bbui"
|
||||
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
||||
import UpdateDatasourceModal from "components/backend/DatasourceNavigator/modals/UpdateDatasourceModal.svelte"
|
||||
import { BUDIBASE_DATASOURCE_TYPE } from "constants/backend"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 { tables, datasources } from "stores/backend"
|
||||
import {
|
||||
notifications,
|
||||
Input,
|
||||
Label,
|
||||
ModalContent,
|
||||
Layout,
|
||||
} from "@budibase/bbui"
|
||||
import TableDataImport from "../TableDataImport.svelte"
|
||||
import {
|
||||
BUDIBASE_INTERNAL_DB_ID,
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
Heading,
|
||||
Icon,
|
||||
} from "@budibase/bbui"
|
||||
import { createEventDispatcher, onMount , getContext } from "svelte"
|
||||
import { createEventDispatcher, onMount, getContext } from "svelte"
|
||||
import {
|
||||
isValid,
|
||||
decodeJSBinding,
|
||||
encodeJSBinding,
|
||||
convertToJS } from "@budibase/string-templates"
|
||||
convertToJS,
|
||||
} from "@budibase/string-templates"
|
||||
import {
|
||||
readableToRuntimeBinding,
|
||||
runtimeToReadableBinding,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { ActionButton, Button, Drawer , notifications } from "@budibase/bbui"
|
||||
import { ActionButton, Button, Drawer, notifications } from "@budibase/bbui"
|
||||
import { createEventDispatcher } from "svelte"
|
||||
import ButtonActionDrawer from "./ButtonActionDrawer.svelte"
|
||||
import { cloneDeep } from "lodash/fp"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import { dndzone } from "svelte-dnd-action"
|
||||
import { createEventDispatcher , setContext } from "svelte"
|
||||
import { createEventDispatcher, setContext } from "svelte"
|
||||
import { generate } from "shortid"
|
||||
import { writable, get } from "svelte/store"
|
||||
import DragHandle from "./drag-handle.svelte"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { Icon, Popover, Layout } from "@budibase/bbui"
|
||||
import { store } from "builderStore"
|
||||
import { cloneDeep } from "lodash/fp"
|
||||
import { createEventDispatcher , getContext } from "svelte"
|
||||
import { createEventDispatcher, getContext } from "svelte"
|
||||
import ComponentSettingsSection from "../../../../pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ComponentSettingsSection.svelte"
|
||||
|
||||
export let anchor
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
getBindableProperties,
|
||||
getComponentBindableProperties,
|
||||
} from "builderStore/dataBinding"
|
||||
import { currentAsset , store, selectedScreen } from "builderStore"
|
||||
import { currentAsset, store, selectedScreen } from "builderStore"
|
||||
import DraggableList from "../DraggableList/DraggableList.svelte"
|
||||
import { createEventDispatcher } from "svelte"
|
||||
import FieldSetting from "./FieldSetting.svelte"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { ModalContent , Select } from "@budibase/bbui"
|
||||
import { ModalContent, Select } from "@budibase/bbui"
|
||||
import { themeStore } from "builderStore"
|
||||
import { Constants } from "@budibase/frontend-core"
|
||||
</script>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import { Heading, Body, Layout, Button, Modal } from "@budibase/bbui"
|
||||
import { automationStore, selectedAutomation , store } from "builderStore"
|
||||
import { automationStore, selectedAutomation, store } from "builderStore"
|
||||
import AutomationPanel from "components/automation/AutomationPanel/AutomationPanel.svelte"
|
||||
import CreateAutomationModal from "components/automation/AutomationPanel/CreateAutomationModal.svelte"
|
||||
import CreateWebhookModal from "components/automation/Shared/CreateWebhookModal.svelte"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { Modal, keepOpen , notifications } from "@budibase/bbui"
|
||||
import { Modal, keepOpen, notifications } from "@budibase/bbui"
|
||||
import { goto } from "@roxi/routify"
|
||||
import { IntegrationTypes } from "constants/backend"
|
||||
import GoogleAuthPrompt from "./GoogleAuthPrompt.svelte"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { Table, Modal, Layout, ActionButton , Helpers } from "@budibase/bbui"
|
||||
import { Table, Modal, Layout, ActionButton, Helpers } from "@budibase/bbui"
|
||||
import AuthTypeRenderer from "./AuthTypeRenderer.svelte"
|
||||
import RestAuthenticationModal from "./RestAuthenticationModal.svelte"
|
||||
import { createEventDispatcher } from "svelte"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import DesignSection from "./DesignSection.svelte"
|
||||
import CustomStylesSection from "./CustomStylesSection.svelte"
|
||||
import ConditionalUISection from "./ConditionalUISection.svelte"
|
||||
import { notifications , ActionButton } from "@budibase/bbui"
|
||||
import { notifications, ActionButton } from "@budibase/bbui"
|
||||
|
||||
import {
|
||||
getBindableProperties,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<script>
|
||||
import { get } from "svelte/store"
|
||||
import { Helpers ,
|
||||
import {
|
||||
Helpers,
|
||||
Input,
|
||||
Checkbox,
|
||||
Banner,
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<script>
|
||||
import { store, userSelectedResourceMap ,
|
||||
import {
|
||||
store,
|
||||
userSelectedResourceMap,
|
||||
selectedComponentPath,
|
||||
selectedComponent,
|
||||
selectedScreen,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
import { store, selectedScreen, userSelectedResourceMap } from "builderStore"
|
||||
import NavItem from "components/common/NavItem.svelte"
|
||||
import ComponentTree from "./ComponentTree.svelte"
|
||||
import { dndStore , DropPosition } from "./dndStore.js"
|
||||
import { dndStore, DropPosition } from "./dndStore.js"
|
||||
import ScreenslotDropdownMenu from "./ScreenslotDropdownMenu.svelte"
|
||||
import DNDPositionIndicator from "./DNDPositionIndicator.svelte"
|
||||
import ComponentKeyHandler from "./ComponentKeyHandler.svelte"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import { StatusLight } from "@budibase/bbui"
|
||||
import { RoleUtils , Constants } from "@budibase/frontend-core"
|
||||
import { RoleUtils, Constants } from "@budibase/frontend-core"
|
||||
import { roles } from "stores/backend"
|
||||
import { capitalise } from "helpers"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import { Select } from "@budibase/bbui"
|
||||
import { getContext , onDestroy } from "svelte"
|
||||
import { getContext, onDestroy } from "svelte"
|
||||
import dayjs from "dayjs"
|
||||
import utc from "dayjs/plugin/utc"
|
||||
|
||||
|
|
|
@ -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,5 +1,5 @@
|
|||
<script>
|
||||
import { getContext , onDestroy } from "svelte"
|
||||
import { getContext, onDestroy } from "svelte"
|
||||
import { Table } from "@budibase/bbui"
|
||||
import SlotRenderer from "./SlotRenderer.svelte"
|
||||
import { canBeSortColumn } from "@budibase/shared-core"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { onMount , getContext } from "svelte"
|
||||
import { onMount, getContext } from "svelte"
|
||||
import { Dropzone } from "@budibase/bbui"
|
||||
|
||||
export let value
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import { GutterWidth } from "../lib/constants"
|
||||
import { getContext , createEventDispatcher } from "svelte"
|
||||
import { getContext, createEventDispatcher } from "svelte"
|
||||
import { Checkbox, Icon } from "@budibase/bbui"
|
||||
import GridCell from "./GridCell.svelte"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
import GridScrollWrapper from "./GridScrollWrapper.svelte"
|
||||
import DataCell from "../cells/DataCell.svelte"
|
||||
import { fade } from "svelte/transition"
|
||||
import { GutterWidth , NewRowID } from "../lib/constants"
|
||||
import { GutterWidth, NewRowID } from "../lib/constants"
|
||||
import GutterCell from "../cells/GutterCell.svelte"
|
||||
import KeyboardShortcut from "./KeyboardShortcut.svelte"
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit ea48ab72f99d50a01c7b7afd37fdb73efbc15641
|
||||
Subproject commit 0fcc284eaad4020be4a1410452b31a2966cf1989
|
|
@ -1,4 +1,4 @@
|
|||
import { events , context } from "@budibase/backend-core"
|
||||
import { events, context } from "@budibase/backend-core"
|
||||
import { AnalyticsPingRequest, App, PingSource } from "@budibase/types"
|
||||
import { DocumentType, isDevAppID } from "../../db/utils"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
import { deleteEntityMetadata } from "../../utilities"
|
||||
import { MetadataTypes } from "../../constants"
|
||||
import { setTestFlag, clearTestFlag } from "../../utilities/redis"
|
||||
import { context, cache, events , db as dbCore } from "@budibase/backend-core"
|
||||
import { context, cache, events, db as dbCore } from "@budibase/backend-core"
|
||||
import { automations, features } from "@budibase/pro"
|
||||
import {
|
||||
App,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { DocumentType } from "../../db/utils"
|
||||
import { App, Plugin , UserCtx } from "@budibase/types"
|
||||
import { App, Plugin, UserCtx } from "@budibase/types"
|
||||
import { db as dbCore, context, tenancy } from "@budibase/backend-core"
|
||||
import { getComponentLibraryManifest } from "../../utilities/fileSystem"
|
||||
|
||||
|
|
|
@ -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") {
|
||||
|
|
|
@ -5,10 +5,10 @@ import {
|
|||
AutoFieldSubTypes,
|
||||
FieldTypes,
|
||||
GOOGLE_SHEETS_PRIMARY_KEY,
|
||||
|
||||
USERS_TABLE_SCHEMA,
|
||||
SwitchableTypes,
|
||||
CanSwitchTypes} from "../../../constants"
|
||||
CanSwitchTypes,
|
||||
} from "../../../constants"
|
||||
import {
|
||||
inputProcessing,
|
||||
cleanupAttachments,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as rowController from "../../../controllers/row"
|
||||
import * as appController from "../../../controllers/application"
|
||||
import { AppStatus } from "../../../../db/utils"
|
||||
import { roles, tenancy, context , db } from "@budibase/backend-core"
|
||||
import { roles, tenancy, context, db } from "@budibase/backend-core"
|
||||
import env from "../../../../environment"
|
||||
import Nano from "@budibase/nano"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import emitter from "../events/index"
|
||||
import { getAutomationParams , isDevAppID } from "../db/utils"
|
||||
import { getAutomationParams, isDevAppID } from "../db/utils"
|
||||
import { coerce } from "../utilities/rowProcessor"
|
||||
import { definitions } from "./triggerInfo"
|
||||
// need this to call directly, so we can get a response
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Knex, knex } from "knex"
|
||||
import { db as dbCore } from "@budibase/backend-core"
|
||||
import { QueryOptions } from "../../definitions/datasource"
|
||||
import { isIsoDateString, SqlClient , isValidFilter } from "../utils"
|
||||
import { isIsoDateString, SqlClient, isValidFilter } from "../utils"
|
||||
import SqlTableQueryBuilder from "./sqlTable"
|
||||
import {
|
||||
Operation,
|
||||
|
|
|
@ -8,7 +8,8 @@ import {
|
|||
accounts,
|
||||
db as dbUtils,
|
||||
} from "@budibase/backend-core"
|
||||
import { QuotaUsage ,
|
||||
import {
|
||||
QuotaUsage,
|
||||
CloudAccount,
|
||||
App,
|
||||
TenantBackfillSucceededEvent,
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
import { db as dbCore, encryption, objectStore } from "@budibase/backend-core"
|
||||
import { Database, Row ,
|
||||
import {
|
||||
Database,
|
||||
Row,
|
||||
Automation,
|
||||
AutomationTriggerStepId,
|
||||
RowAttachment,
|
||||
|
|
|
@ -8,7 +8,7 @@ import { context, cache, auth } from "@budibase/backend-core"
|
|||
import { getGlobalIDFromUserMetadataID } from "../db/utils"
|
||||
import sdk from "../sdk"
|
||||
import { cloneDeep } from "lodash/fp"
|
||||
import { SourceName , Query } from "@budibase/types"
|
||||
import { SourceName, Query } from "@budibase/types"
|
||||
|
||||
import { isSQL } from "../integrations/utils"
|
||||
import { interpolateSQL } from "../integrations/queries/sql"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Server , Socket } from "socket.io"
|
||||
import { Server, Socket } from "socket.io"
|
||||
import http from "http"
|
||||
import Koa from "koa"
|
||||
import { userAgent } from "koa-useragent"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import fetch, { Response , HeadersInit } from "node-fetch"
|
||||
import fetch, { Response, HeadersInit } from "node-fetch"
|
||||
import env from "../../environment"
|
||||
import { State } from "../../types"
|
||||
import { Header } from "@budibase/backend-core"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { CreateRowParams, Row, SearchInputParams , State } from "../../../types"
|
||||
import { CreateRowParams, Row, SearchInputParams, State } from "../../../types"
|
||||
import { HeadersInit, Response } from "node-fetch"
|
||||
import BudibasePublicAPIClient from "../BudibasePublicAPIClient"
|
||||
import * as fixtures from "../../fixtures"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Application } from "../types"
|
||||
import { Layout , Screen } from "@budibase/types"
|
||||
import { Layout, Screen } from "@budibase/types"
|
||||
// Create type for getAppPackage response
|
||||
export interface AppPackageResponse {
|
||||
application: Partial<Application>
|
||||
|
|
Loading…
Reference in New Issue