From 68543b12eee09b038b750251d092afea28b37747 Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 30 Jan 2024 12:07:50 +0000 Subject: [PATCH] Removed test file --- .../tests/sample-component-response.js | 297 ------------------ 1 file changed, 297 deletions(-) delete mode 100644 packages/builder/src/stores/builder/tests/sample-component-response.js diff --git a/packages/builder/src/stores/builder/tests/sample-component-response.js b/packages/builder/src/stores/builder/tests/sample-component-response.js deleted file mode 100644 index 9c310a078a..0000000000 --- a/packages/builder/src/stores/builder/tests/sample-component-response.js +++ /dev/null @@ -1,297 +0,0 @@ -let resp = { - features: { - spectrumThemes: true, - intelligentLoading: true, - deviceAwareness: true, - state: true, - customThemes: true, - devicePreview: true, - messagePassing: true, - rowSelection: true, - continueIfAction: true, - showNotificationAction: true, - sidePanel: true, - }, - "@budibase/standard-components/layout": { - component: "@budibase/standard-components/layout", - name: "Layout", - description: "This component is specific only to layouts", - icon: "Sandbox", - hasChildren: true, - styles: ["padding", "background"], - settings: [ - { - type: "text", - label: "Logo URL", - key: "logoUrl", - }, - { - type: "text", - label: "Title", - key: "title", - }, - { - type: "select", - label: "Navigation", - key: "navigation", - options: ["Top", "Left", "None"], - defaultValue: "Top", - }, - { - type: "select", - label: "Width", - key: "width", - options: ["Small", "Medium", "Large", "Max"], - defaultValue: "Large", - }, - { - type: "navigation", - label: "Links", - key: "links", - }, - { - type: "boolean", - label: "Hide title", - key: "hideTitle", - defaultValue: false, - }, - { - type: "boolean", - label: "Hide logo", - key: "hideLogo", - defaultValue: false, - }, - { - type: "boolean", - label: "Sticky header", - key: "sticky", - defaultValue: false, - }, - ], - }, - "@budibase/standard-components/container": { - component: "@budibase/standard-components/container", - name: "Container", - description: "This component contains things within itself", - icon: "Selection", - hasChildren: true, - size: { - width: 400, - height: 200, - }, - styles: ["padding", "size", "background", "border", "shadow"], - settings: [ - { - type: "select", - label: "Direction", - key: "direction", - showInBar: true, - barStyle: "buttons", - options: [ - { - label: "Column", - value: "column", - barIcon: "ViewColumn", - barTitle: "Column layout", - }, - { - label: "Row", - value: "row", - barIcon: "ViewRow", - barTitle: "Row layout", - }, - ], - defaultValue: "column", - }, - { - type: "select", - label: "Horiz. align", - key: "hAlign", - showInBar: true, - barStyle: "buttons", - options: [ - { - label: "Left", - value: "left", - barIcon: "AlignLeft", - barTitle: "Align left", - }, - { - label: "Center", - value: "center", - barIcon: "AlignCenter", - barTitle: "Align center", - }, - { - label: "Right", - value: "right", - barIcon: "AlignRight", - barTitle: "Align right", - }, - { - label: "Stretch", - value: "stretch", - barIcon: "MoveLeftRight", - barTitle: "Align stretched horizontally", - }, - ], - defaultValue: "stretch", - }, - { - type: "select", - label: "Vert. align", - key: "vAlign", - showInBar: true, - barStyle: "buttons", - options: [ - { - label: "Top", - value: "top", - barIcon: "AlignTop", - barTitle: "Align top", - }, - { - label: "Middle", - value: "middle", - barIcon: "AlignMiddle", - barTitle: "Align middle", - }, - { - label: "Bottom", - value: "bottom", - barIcon: "AlignBottom", - barTitle: "Align bottom", - }, - { - label: "Stretch", - value: "stretch", - barIcon: "MoveUpDown", - barTitle: "Align stretched vertically", - }, - ], - defaultValue: "top", - }, - { - type: "select", - label: "Size", - key: "size", - showInBar: true, - barStyle: "buttons", - options: [ - { - label: "Shrink", - value: "shrink", - barIcon: "Minimize", - barTitle: "Shrink container", - }, - { - label: "Grow", - value: "grow", - barIcon: "Maximize", - barTitle: "Grow container", - }, - ], - defaultValue: "shrink", - }, - { - type: "select", - label: "Gap", - key: "gap", - showInBar: true, - barStyle: "picker", - options: [ - { - label: "None", - value: "N", - }, - { - label: "Small", - value: "S", - }, - { - label: "Medium", - value: "M", - }, - { - label: "Large", - value: "L", - }, - ], - defaultValue: "M", - }, - { - type: "boolean", - label: "Wrap", - key: "wrap", - showInBar: true, - barIcon: "ModernGridView", - barTitle: "Wrap", - }, - { - type: "event", - label: "On click", - key: "onClick", - }, - ], - }, - "plugin/bb-video-plugin-updated": { - component: "plugin/bb-video-plugin-updated", - name: "bb-video-plugin-updated", - friendlyName: "bb-video", - description: "Budibase video plugin with VTT and playlist support", - icon: "VideoOutline", - settings: [ - { - type: "text", - key: "videoUrl", - label: "Video URL", - }, - { - type: "text", - key: "thumbnailPath", - label: "Thumbnail URL", - }, - { - type: "text", - key: "videoTitle", - label: "Title", - }, - { - type: "text", - key: "subtitleTracks", - label: "Subtitle Tracks", - }, - { - type: "text", - key: "chapterTracks", - label: "Chapter Tracks", - }, - { - type: "text", - key: "audioTracks", - label: "Audio Tracks", - }, - { - type: "boolean", - key: "controlsEnabled", - label: "Controls Enabled", - }, - { - type: "boolean", - key: "preload", - label: "Preload Video", - }, - { - type: "event", - label: "On Time Update", - key: "onTimeUpdate", - context: [ - { - label: "Current Play Time", - key: "videoSeconds", - }, - ], - }, - ], - }, -}