@prostgles/prostgles 2.3.6-dev.1786548258
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +14 -0
- package/.eslintrc.common.js +71 -0
- package/.gitattributes +2 -0
- package/.github/ISSUE_TEMPLATE/BUG.yml +52 -0
- package/.github/ISSUE_TEMPLATE/CUSTOM.yml +13 -0
- package/.github/ISSUE_TEMPLATE/FEATURE.yml +27 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +9 -0
- package/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/.github/ISSUE_TEMPLATE/custom.md +3 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +5 -0
- package/.github/workflows/docker_test.yml +46 -0
- package/.github/workflows/electron_build_linux.yml +40 -0
- package/.github/workflows/electron_build_macos.yml +36 -0
- package/.github/workflows/electron_build_windows.yml +34 -0
- package/.github/workflows/electron_linux_test.yml +24 -0
- package/.github/workflows/electron_macos_test.yml +25 -0
- package/.github/workflows/linux_test.yml +127 -0
- package/.github/workflows/macos_test.yml +63 -0
- package/.github/workflows/on_release.yml +185 -0
- package/.github/workflows/package_version_increased.yml +66 -0
- package/.github/workflows/publish_release.yml +67 -0
- package/.github/workflows/windows_test.yml +48 -0
- package/.prettierignore +5 -0
- package/.prettierrc +3 -0
- package/.vscode/settings.json +46 -0
- package/CODE_OF_CONDUCT +47 -0
- package/CONTRIBUTING +59 -0
- package/DB.Dockerfile +11 -0
- package/Dockerfile +31 -0
- package/LICENSE +661 -0
- package/PRIVACY +28 -0
- package/README.md +132 -0
- package/SECURITY.md +8 -0
- package/changelog/v1.0.0.md +5 -0
- package/changelog/v2.0.0.md +25 -0
- package/changelog/v2.2.0.md +13 -0
- package/changelog/v2.2.1.md +4 -0
- package/changelog/v2.2.2.md +3 -0
- package/changelog/v2.2.3.md +2 -0
- package/changelog/v2.2.4.md +3 -0
- package/changelog/v2.3.0.md +5 -0
- package/changelog/v2.3.1.md +1 -0
- package/changelog/v2.3.2.md +1 -0
- package/changelog/v2.3.3.md +2 -0
- package/changelog/v2.3.4.md +2 -0
- package/changelog/v2.3.5.md +2 -0
- package/changelog/v2.3.6.md +2 -0
- package/client/build.sh +1 -0
- package/client/eslint.config.mjs +114 -0
- package/client/package-lock.json +16513 -0
- package/client/package.json +108 -0
- package/client/public/manifest.json +12 -0
- package/client/public/robots.txt +3 -0
- package/client/setup-icons.js +59 -0
- package/client/src/App.css +31 -0
- package/client/src/App.tsx +364 -0
- package/client/src/Testing.ts +724 -0
- package/client/src/app/CommandPalette/CommandPalette.css +11 -0
- package/client/src/app/CommandPalette/CommandPalette.tsx +119 -0
- package/client/src/app/CommandPalette/Documentation.css +3 -0
- package/client/src/app/CommandPalette/Documentation.tsx +77 -0
- package/client/src/app/CommandPalette/DynamicComponent.tsx +87 -0
- package/client/src/app/CommandPalette/getDocumentation.ts +175 -0
- package/client/src/app/CommandPalette/getUIDocShortestPath.ts +62 -0
- package/client/src/app/CommandPalette/useCommandPaletteState.tsx +188 -0
- package/client/src/app/CommandPalette/useGoToUI.tsx +147 -0
- package/client/src/app/CommandPalette/useHighlightDocItem.ts +89 -0
- package/client/src/app/CommandPalette/utils.ts +111 -0
- package/client/src/app/UIDocs/UIInstallationUIDoc.ts +43 -0
- package/client/src/app/UIDocs/accountUIDoc.ts +128 -0
- package/client/src/app/UIDocs/commandPaletteUIDoc.ts +40 -0
- package/client/src/app/UIDocs/connection/AIAssistantUIDoc.ts +309 -0
- package/client/src/app/UIDocs/connection/agenticWorkflowsUIDoc.ts +37 -0
- package/client/src/app/UIDocs/connection/config/accessControlUIDoc.ts +44 -0
- package/client/src/app/UIDocs/connection/config/apiUIDoc.ts +95 -0
- package/client/src/app/UIDocs/connection/config/authentication.UIDoc.ts +96 -0
- package/client/src/app/UIDocs/connection/config/backupAndRestoreUIDoc.ts +238 -0
- package/client/src/app/UIDocs/connection/config/fileStorageUIDoc.ts +27 -0
- package/client/src/app/UIDocs/connection/connectionConfigUIDoc.ts +79 -0
- package/client/src/app/UIDocs/connection/dashboard/dashboardContentUIDoc.ts +27 -0
- package/client/src/app/UIDocs/connection/dashboard/dashboardMenuUIDoc.ts +189 -0
- package/client/src/app/UIDocs/connection/dashboard/mapUIDoc.ts +172 -0
- package/client/src/app/UIDocs/connection/dashboard/schemaGraphUIDoc.ts +66 -0
- package/client/src/app/UIDocs/connection/dashboard/serverSideFunctionUIDoc.ts +27 -0
- package/client/src/app/UIDocs/connection/dashboard/sqlEditorUIDoc.ts +284 -0
- package/client/src/app/UIDocs/connection/dashboard/table/addColumnMenuUIDoc.ts +250 -0
- package/client/src/app/UIDocs/connection/dashboard/table/columnMenuUIDoc.ts +123 -0
- package/client/src/app/UIDocs/connection/dashboard/table/paginationUIDoc.ts +56 -0
- package/client/src/app/UIDocs/connection/dashboard/table/smartFilterBarUIDoc.ts +126 -0
- package/client/src/app/UIDocs/connection/dashboard/table/smartFormUIDoc.ts +168 -0
- package/client/src/app/UIDocs/connection/dashboard/table/tableMenuUIDoc.ts +228 -0
- package/client/src/app/UIDocs/connection/dashboard/table/tableUIDoc.ts +90 -0
- package/client/src/app/UIDocs/connection/dashboard/timechartUIDoc.ts +169 -0
- package/client/src/app/UIDocs/connection/dashboardUIDoc.ts +176 -0
- package/client/src/app/UIDocs/connection/getCommonViewHeaderUIDoc.ts +146 -0
- package/client/src/app/UIDocs/connectionsUIDoc.ts +261 -0
- package/client/src/app/UIDocs/desktopInstallation.ts +32 -0
- package/client/src/app/UIDocs/editConnectionUIDoc.ts +131 -0
- package/client/src/app/UIDocs/navbarUIDoc.ts +145 -0
- package/client/src/app/UIDocs/overviewUIDoc.ts +31 -0
- package/client/src/app/UIDocs/serverSettingsUIDoc.ts +64 -0
- package/client/src/app/UIDocs.ts +274 -0
- package/client/src/app/XRealIpSpoofableAlert.tsx +39 -0
- package/client/src/app/domToSVG/SVGif/addSVGifCaption.ts +112 -0
- package/client/src/app/domToSVG/SVGif/addSVGifPointer.ts +59 -0
- package/client/src/app/domToSVG/SVGif/addSVGifTimelineControls.ts +94 -0
- package/client/src/app/domToSVG/SVGif/animations/getSVGifCursorAnimationHandler.ts +162 -0
- package/client/src/app/domToSVG/SVGif/animations/getSVGifCustomAnimation.ts +53 -0
- package/client/src/app/domToSVG/SVGif/animations/getSVGifPropertiesAnimation.ts +50 -0
- package/client/src/app/domToSVG/SVGif/animations/getSVGifTypeAnimation.ts +105 -0
- package/client/src/app/domToSVG/SVGif/animations/getSVGifZoomToAnimation.ts +114 -0
- package/client/src/app/domToSVG/SVGif/compressSVGif.ts +86 -0
- package/client/src/app/domToSVG/SVGif/getSVGif.ts +111 -0
- package/client/src/app/domToSVG/SVGif/getSVGifAnimations.ts +318 -0
- package/client/src/app/domToSVG/SVGif/getSVGifKeyframes.ts +42 -0
- package/client/src/app/domToSVG/SVGif/getSVGifParsedScenes.ts +52 -0
- package/client/src/app/domToSVG/SVGif/getSVGifRevealKeyframes.ts +73 -0
- package/client/src/app/domToSVG/SVGif/getSVGifTargetBBox.ts +36 -0
- package/client/src/app/domToSVG/addFragmentViewBoxes.ts +43 -0
- package/client/src/app/domToSVG/containers/addOverflowClipPath.ts +117 -0
- package/client/src/app/domToSVG/containers/bgAndBorderToSVG.ts +204 -0
- package/client/src/app/domToSVG/containers/deduplicateSVGPaths.ts +128 -0
- package/client/src/app/domToSVG/containers/elementToSVG.ts +231 -0
- package/client/src/app/domToSVG/containers/rectangleToSVG.ts +196 -0
- package/client/src/app/domToSVG/containers/shadowToSVG.ts +52 -0
- package/client/src/app/domToSVG/domToSVG.ts +263 -0
- package/client/src/app/domToSVG/domToSvg2.ts +129 -0
- package/client/src/app/domToSVG/domToThemeAwareSVG.ts +361 -0
- package/client/src/app/domToSVG/getCorrespondingDarkNode.ts +87 -0
- package/client/src/app/domToSVG/graphics/fontIconToSVG.ts +141 -0
- package/client/src/app/domToSVG/graphics/getForeignObject.ts +43 -0
- package/client/src/app/domToSVG/graphics/imgToSVG.ts +140 -0
- package/client/src/app/domToSVG/setThemeForSVGScreenshot.ts +82 -0
- package/client/src/app/domToSVG/text/getTextForSVG.ts +243 -0
- package/client/src/app/domToSVG/text/textToSVG.ts +264 -0
- package/client/src/app/domToSVG/utils/addNewChildren.ts +55 -0
- package/client/src/app/domToSVG/utils/canvasToDataURL.ts +6 -0
- package/client/src/app/domToSVG/utils/copyAnimationStylesToSvg.ts +127 -0
- package/client/src/app/domToSVG/utils/getWhatToRenderOnSVG.ts +218 -0
- package/client/src/app/domToSVG/utils/isElementVisible.ts +144 -0
- package/client/src/app/domToSVG/utils/toFixed.ts +3 -0
- package/client/src/appUtils.ts +135 -0
- package/client/src/components/AlertProvider.tsx +99 -0
- package/client/src/components/Animations.css +207 -0
- package/client/src/components/Animations.tsx +130 -0
- package/client/src/components/Btn.css +235 -0
- package/client/src/components/Btn.tsx +603 -0
- package/client/src/components/ButtonBar.tsx +29 -0
- package/client/src/components/ButtonGroup.tsx +135 -0
- package/client/src/components/Chat/Chat.css +116 -0
- package/client/src/components/Chat/Chat.tsx +200 -0
- package/client/src/components/Chat/ChatFileAttachments/ChatFileAttachments.tsx +126 -0
- package/client/src/components/Chat/ChatMessage.tsx +38 -0
- package/client/src/components/Chat/ChatSendControls.tsx +117 -0
- package/client/src/components/Chat/ChatSpeech/ChatSpeech.tsx +201 -0
- package/client/src/components/Chat/ChatSpeech/ChatSpeechSetup.tsx +75 -0
- package/client/src/components/Chat/ChatSpeech/hooks/SpeechRecorder.ts +295 -0
- package/client/src/components/Chat/ChatSpeech/hooks/renderSpeechAudioLevelsIcon.ts +67 -0
- package/client/src/components/Chat/ChatSpeech/hooks/useSpeechRecorder.ts +59 -0
- package/client/src/components/Chat/ChatSpeech/hooks/useSpeechToTextWeb.ts +125 -0
- package/client/src/components/Chat/ChatSpeech/useChatSpeechSetup.ts +106 -0
- package/client/src/components/Chat/Marked.tsx +258 -0
- package/client/src/components/Chat/MonacoCodeInMarkdown/MarkdownMonacoCodeHeader.tsx +179 -0
- package/client/src/components/Chat/MonacoCodeInMarkdown/MonacoCodeInMarkdown.tsx +162 -0
- package/client/src/components/Chat/MonacoCodeInMarkdown/useOnRunSQL.ts +70 -0
- package/client/src/components/Chat/useChatFileUpload.ts +167 -0
- package/client/src/components/Chat/useChatOnPaste.ts +102 -0
- package/client/src/components/Chat/useChatState.ts +118 -0
- package/client/src/components/Checkbox.css +24 -0
- package/client/src/components/Checkbox.tsx +152 -0
- package/client/src/components/Chip.css +78 -0
- package/client/src/components/Chip.tsx +150 -0
- package/client/src/components/ClickCatch.tsx +49 -0
- package/client/src/components/ClickCatchOverlay.css +7 -0
- package/client/src/components/ClickCatchOverlay.tsx +30 -0
- package/client/src/components/CodeFileBrowser/CodeFileBrowser.tsx +85 -0
- package/client/src/components/CodeFileBrowser/ProjectCodeEditor.tsx +89 -0
- package/client/src/components/CodeFileBrowser/WebAppFileBrowser.tsx +96 -0
- package/client/src/components/CompactTabs/CompactTabs.tsx +101 -0
- package/client/src/components/ConfirmationDialog.tsx +90 -0
- package/client/src/components/CopyToClipboardBtn.tsx +24 -0
- package/client/src/components/DragOverUpload/DragOverUpload.css +36 -0
- package/client/src/components/DragOverUpload/DragOverUpload.tsx +46 -0
- package/client/src/components/DraggableLI.tsx +182 -0
- package/client/src/components/ElectronSearchBar.tsx +335 -0
- package/client/src/components/ErrorComponent.tsx +240 -0
- package/client/src/components/ExpandSection.tsx +55 -0
- package/client/src/components/Expander.tsx +16 -0
- package/client/src/components/FileInput/DropZone.tsx +23 -0
- package/client/src/components/FileInput/FileInput.tsx +363 -0
- package/client/src/components/FileInput/FileInputMedia.tsx +144 -0
- package/client/src/components/FileInput/useFileDropZone.ts +51 -0
- package/client/src/components/FileTree/FILE_EXTENSION_TO_ICON_INFO.ts +687 -0
- package/client/src/components/FileTree/FileIcon.tsx +31 -0
- package/client/src/components/FileTree/FileTree.tsx +147 -0
- package/client/src/components/FileTree/FileTreeCurrentDirectory.tsx +135 -0
- package/client/src/components/FileTree/FileTreeNode.css +12 -0
- package/client/src/components/FileTree/FileTreeNode.tsx +264 -0
- package/client/src/components/FileTree/FileTreeNodeCheckbox.tsx +48 -0
- package/client/src/components/FileTree/FileTreeSearchBar.tsx +121 -0
- package/client/src/components/FileTree/FileTreeSelectedItems.tsx +73 -0
- package/client/src/components/FileTree/FolderIcon.tsx +18 -0
- package/client/src/components/FileTree/fileSystemTreeUtils.ts +15 -0
- package/client/src/components/FileTree/useFileTree.ts +255 -0
- package/client/src/components/FileTree/useFileTreeChecked.ts +158 -0
- package/client/src/components/FlashMessage.tsx +64 -0
- package/client/src/components/Flex.tsx +76 -0
- package/client/src/components/FormField/FormField.css +91 -0
- package/client/src/components/FormField/FormField.tsx +748 -0
- package/client/src/components/FormField/FormFieldCodeEditor.tsx +97 -0
- package/client/src/components/FormField/FormFieldDebounced.tsx +60 -0
- package/client/src/components/FormField/FormFieldSkeleton.tsx +206 -0
- package/client/src/components/FormField/onFormFieldKeyDown.ts +124 -0
- package/client/src/components/FullscreenWrapper/FullscreenWrapper.tsx +154 -0
- package/client/src/components/FullscreenWrapper/useFullscreen.ts +46 -0
- package/client/src/components/HeaderSection.tsx +36 -0
- package/client/src/components/Hotkey.css +12 -0
- package/client/src/components/Hotkey.tsx +26 -0
- package/client/src/components/IFrame/IFrame.tsx +54 -0
- package/client/src/components/Icon/Icon.tsx +138 -0
- package/client/src/components/IconPalette/IconPalette.tsx +194 -0
- package/client/src/components/InfoRow.tsx +64 -0
- package/client/src/components/Input.tsx +63 -0
- package/client/src/components/JSONBSchema/JSONBSchema.tsx +182 -0
- package/client/src/components/JSONBSchema/JSONBSchemaAllowedOptions.tsx +112 -0
- package/client/src/components/JSONBSchema/JSONBSchemaArray.tsx +172 -0
- package/client/src/components/JSONBSchema/JSONBSchemaLookup.tsx +249 -0
- package/client/src/components/JSONBSchema/JSONBSchemaObject.tsx +130 -0
- package/client/src/components/JSONBSchema/JSONBSchemaOneOfType.tsx +155 -0
- package/client/src/components/JSONBSchema/JSONBSchemaPrimitive.tsx +209 -0
- package/client/src/components/JSONBSchema/JSONBSchemaRecord.tsx +78 -0
- package/client/src/components/JSONBSchema/isCompleteJSONB.ts +54 -0
- package/client/src/components/Label.css +10 -0
- package/client/src/components/Label.tsx +152 -0
- package/client/src/components/LabeledRow.tsx +51 -0
- package/client/src/components/List.css +51 -0
- package/client/src/components/List.tsx +170 -0
- package/client/src/components/Loader/Loading.css +141 -0
- package/client/src/components/Loader/Loading.tsx +254 -0
- package/client/src/components/Loader/SpinnerV2.tsx +121 -0
- package/client/src/components/Loader/SpinnerV3.tsx +58 -0
- package/client/src/components/Loader/SpinnerV4.tsx +31 -0
- package/client/src/components/MarkdownWithPlugins/MarkdownWithPlugins.tsx +99 -0
- package/client/src/components/MarkdownWithPlugins/Marked.css +72 -0
- package/client/src/components/MarkdownWithPlugins/preserveDisallowedHtmlAsText.ts +76 -0
- package/client/src/components/MediaViewer/MediaViewer.tsx +252 -0
- package/client/src/components/MediaViewer/MediaViewerContent.tsx +223 -0
- package/client/src/components/MediaViewer/managedTableUtils.ts +99 -0
- package/client/src/components/MenuList.css +3 -0
- package/client/src/components/MenuList.tsx +237 -0
- package/client/src/components/MenuListItem.tsx +126 -0
- package/client/src/components/MonacoEditor/MonacoEditor.tsx +273 -0
- package/client/src/components/MonacoEditor/monacoHackyFixes.ts +56 -0
- package/client/src/components/MonacoEditor/useMonacoEditorAddActions.ts +56 -0
- package/client/src/components/MonacoEditor/useWhyDidYouUpdate.ts +80 -0
- package/client/src/components/MonacoLogs/MonacoLogs.tsx +98 -0
- package/client/src/components/MonacoLogs/MonacoLogsWithFullscreen.tsx +124 -0
- package/client/src/components/MonacoLogs/setAnsiLogContent.ts +163 -0
- package/client/src/components/NavBar/NavBar.css +110 -0
- package/client/src/components/NavBar/NavBar.tsx +152 -0
- package/client/src/components/NavBar/NavBarWrapper.tsx +55 -0
- package/client/src/components/NavBar/useNavBarItems.ts +40 -0
- package/client/src/components/Pan.tsx +63 -0
- package/client/src/components/PdfViewer/PdfViewer.css +58 -0
- package/client/src/components/PdfViewer/PdfViewer.tsx +126 -0
- package/client/src/components/PdfViewer/PdfViewerDoclingTextOverlay.tsx +44 -0
- package/client/src/components/PdfViewer/PdfViewerHeaderControls.tsx +82 -0
- package/client/src/components/PdfViewer/PdfViewerHighlights/PdfViewerHighlights.tsx +146 -0
- package/client/src/components/PdfViewer/PdfViewerHighlights/usePdfViewerHighlights.ts +212 -0
- package/client/src/components/PdfViewer/PdfViewerSearch/PdfViewerSearch.css +21 -0
- package/client/src/components/PdfViewer/PdfViewerSearch/PdfViewerSearch.tsx +323 -0
- package/client/src/components/PdfViewer/PdfViewerWithFileTableContext.tsx +209 -0
- package/client/src/components/PdfViewer/usePdfViewer.ts +215 -0
- package/client/src/components/Popup/Footer.tsx +41 -0
- package/client/src/components/Popup/FooterButtons.tsx +60 -0
- package/client/src/components/Popup/Popup.css +14 -0
- package/client/src/components/Popup/Popup.tsx +469 -0
- package/client/src/components/Popup/PopupHeader.tsx +113 -0
- package/client/src/components/Popup/getPopupPosition.ts +137 -0
- package/client/src/components/Popup/getPopupStyle.ts +57 -0
- package/client/src/components/Popup/popupCheckPosition.ts +280 -0
- package/client/src/components/PopupMenu.tsx +106 -0
- package/client/src/components/PopupMenuList.tsx +36 -0
- package/client/src/components/PostgresInstallationInstructions.tsx +112 -0
- package/client/src/components/ProgressBar.css +29 -0
- package/client/src/components/ProgressBar.tsx +131 -0
- package/client/src/components/QRCodeImage.tsx +57 -0
- package/client/src/components/Scheduler.css +7 -0
- package/client/src/components/Scheduler.tsx +149 -0
- package/client/src/components/ScrollFade/ScrollFade.css +4 -0
- package/client/src/components/ScrollFade/ScrollFade.tsx +177 -0
- package/client/src/components/ScrollFade/useAutoScrollToBottom.ts +31 -0
- package/client/src/components/ScrollFade/useResizeObserver.ts +96 -0
- package/client/src/components/SearchList/SearchInput.tsx +143 -0
- package/client/src/components/SearchList/SearchList.css +37 -0
- package/client/src/components/SearchList/SearchList.tsx +184 -0
- package/client/src/components/SearchList/SearchListContent.tsx +285 -0
- package/client/src/components/SearchList/SearchListItems.tsx +244 -0
- package/client/src/components/SearchList/SearchListRowContent.tsx +46 -0
- package/client/src/components/SearchList/getSearchListMatchAndHighlight.tsx +162 -0
- package/client/src/components/SearchList/hooks/useSearchListItems.tsx +113 -0
- package/client/src/components/SearchList/hooks/useSearchListItemsSorting.tsx +169 -0
- package/client/src/components/SearchList/hooks/useSearchListOnClick.ts +69 -0
- package/client/src/components/SearchList/hooks/useSearchListOnKeyUpDown.ts +128 -0
- package/client/src/components/SearchList/hooks/useSearchListSearch.ts +211 -0
- package/client/src/components/SearchList/searchMatchUtils/getItemSearchRank.ts +74 -0
- package/client/src/components/SearchList/searchMatchUtils/getSearchRanking.ts +18 -0
- package/client/src/components/Section.tsx +159 -0
- package/client/src/components/SegmentedToggle.tsx +57 -0
- package/client/src/components/Select/Select.css +18 -0
- package/client/src/components/Select/Select.tsx +629 -0
- package/client/src/components/Select/SelectTriggerButton.tsx +204 -0
- package/client/src/components/ShorterText.tsx +56 -0
- package/client/src/components/SidePanel.tsx +49 -0
- package/client/src/components/Slider.css +65 -0
- package/client/src/components/Slider.tsx +66 -0
- package/client/src/components/StatusChip.tsx +34 -0
- package/client/src/components/Stepper.tsx +92 -0
- package/client/src/components/Stopwatch.tsx +121 -0
- package/client/src/components/SvgIcon.tsx +181 -0
- package/client/src/components/SwitchToggle.css +136 -0
- package/client/src/components/SwitchToggle.tsx +141 -0
- package/client/src/components/Table/Pagination.tsx +178 -0
- package/client/src/components/Table/Table.css +97 -0
- package/client/src/components/Table/Table.tsx +216 -0
- package/client/src/components/Table/TableBody.tsx +146 -0
- package/client/src/components/Table/TableHeader.tsx +491 -0
- package/client/src/components/Table/TableRow.tsx +164 -0
- package/client/src/components/Table/useVirtualisedRows.ts +160 -0
- package/client/src/components/Tabs.tsx +320 -0
- package/client/src/components/Tooltip.tsx +47 -0
- package/client/src/dashboard/API/zip.ts +151 -0
- package/client/src/dashboard/AccessControl/AccessControl.tsx +164 -0
- package/client/src/dashboard/AccessControl/AccessControlRuleEditor.tsx +373 -0
- package/client/src/dashboard/AccessControl/AccessRuleEditorFooter.tsx +241 -0
- package/client/src/dashboard/AccessControl/AccessRuleSummary.tsx +159 -0
- package/client/src/dashboard/AccessControl/ContextDataSelector.tsx +89 -0
- package/client/src/dashboard/AccessControl/ContextFilter.tsx +161 -0
- package/client/src/dashboard/AccessControl/ExistingAccessRules.tsx +168 -0
- package/client/src/dashboard/AccessControl/Methods/MethodDefinition.tsx +156 -0
- package/client/src/dashboard/AccessControl/Methods/MethodDefinitionEditAsJson.tsx +73 -0
- package/client/src/dashboard/AccessControl/Methods/MethodFunctionDefinition.tsx +97 -0
- package/client/src/dashboard/AccessControl/Methods/ReferencesDefinition.tsx +155 -0
- package/client/src/dashboard/AccessControl/Methods/useCodeEditorTsTypes.ts +152 -0
- package/client/src/dashboard/AccessControl/OptionControllers/DynamicFields.tsx +145 -0
- package/client/src/dashboard/AccessControl/OptionControllers/FieldFilterControl.tsx +193 -0
- package/client/src/dashboard/AccessControl/OptionControllers/FilterControl.tsx +207 -0
- package/client/src/dashboard/AccessControl/PasswordlessSetup.tsx +90 -0
- package/client/src/dashboard/AccessControl/PermissionTypes/PAllTables.tsx +50 -0
- package/client/src/dashboard/AccessControl/PermissionTypes/PCustomTables.tsx +237 -0
- package/client/src/dashboard/AccessControl/PermissionTypes/PRunSQL.tsx +92 -0
- package/client/src/dashboard/AccessControl/PublishedWorkspaceSelector.tsx +290 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/ComparablePGPolicies.tsx +179 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/DeleteRuleControl.tsx +95 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/ExampleComparablePolicy.tsx +112 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/InsertRuleControl.tsx +115 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/RuleToggle.tsx +19 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/SelectRuleControl.tsx +186 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/SyncRuleControl.tsx +130 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/UpdateRuleControl.tsx +207 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/getComparablePGPolicy.ts +130 -0
- package/client/src/dashboard/AccessControl/TableRules/FileTableAccessControlInfo.tsx +161 -0
- package/client/src/dashboard/AccessControl/TableRules/TablePermissionControls.tsx +251 -0
- package/client/src/dashboard/AccessControl/TableRules/TableRulesPopup.tsx +167 -0
- package/client/src/dashboard/AccessControl/TableRules/useLocalTableRulesErrors.ts +27 -0
- package/client/src/dashboard/AccessControl/UserStats.tsx +83 -0
- package/client/src/dashboard/AccessControl/UserSyncConfig.tsx +168 -0
- package/client/src/dashboard/AccessControl/UserTypeSelect.tsx +86 -0
- package/client/src/dashboard/AccessControl/useAccessControlSearchParams.ts +81 -0
- package/client/src/dashboard/AccessControl/useEditedAccessRule.ts +293 -0
- package/client/src/dashboard/AskLLM/AskLLM.tsx +91 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChat.tsx +208 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatHeader.tsx +127 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMChatMessage.tsx +77 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMChatMessageContent.tsx +96 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMChatMessageContentText.tsx +57 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMChatMessageHeader.tsx +129 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMGroupedToolCallsMessage.tsx +122 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMSingleChatMessage.tsx +44 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMToolCallIcon.tsx +12 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/Agent/Agent.tsx +161 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/Agent/AgentGoalToolCall.tsx +59 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgentDefinition.tsx +206 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflow.tsx +242 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowActions.tsx +245 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowActivity/AgenticWorkflowActivity.tsx +225 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowActivity/ToolCall.tsx +137 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowActivity/useAgenticWorkflowActivityItems.ts +70 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowDefinition.tsx +173 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowDetails.tsx +141 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowMessage.tsx +103 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowSchemaDrift.tsx +146 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/ContainerConfigurationEditor.tsx +184 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/McpToolAccess.tsx +156 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/UserInput.tsx +393 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/UserInputColumnValues.tsx +61 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/hooks/useAgenticWorkflowState.ts +50 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/hooks/useUserInput.ts +27 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AskUserQuestions.tsx +249 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/CreateTables.tsx +32 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DockerContainer.tsx +296 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingDocument.d.ts +154 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingDocumentViewer.tsx +98 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingDocumentViewerPage.tsx +42 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingTable.tsx +166 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingText.tsx +99 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingToolUseView.tsx +47 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/ExecuteSQL.tsx +34 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/LoadSuggestedDashboards.tsx +172 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/RequestToolAccess.tsx +272 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/RunCodeInSandbox.tsx +33 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/RunTypescriptInNodejs.tsx +48 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/ToolUseResultError.tsx +29 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/WebSearch/Favicon.tsx +34 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/WebSearch/Markdown.tsx +21 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/WebSearch/WebSearch.tsx +70 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/Webdev/CreateComponentQuickFeedbackPreview.tsx +104 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/DatabaseAccessPermissions.tsx +63 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/HeaderList.tsx +26 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/useJSONBParsedData.ts +16 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/useSendToolUseResult.ts +46 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/useToolUseResultString.ts +27 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/useTypedToolUseResultData.ts +85 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesToolUseMessage.tsx +127 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/InChatToolApprover.tsx +82 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseChatMessage.tsx +109 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseChatMessageBtn.tsx +51 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseChatMessageBtnTextSummary.tsx +45 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseChatMessageJSONData.tsx +132 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseChatMessageResult.tsx +57 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseReRunBtn.tsx +71 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/useToolUseChatMessage.ts +51 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/utils/getToolUseResult.ts +40 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/hooks/useLLMChatMessageGrouper.tsx +168 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/hooks/useLLMChatMessages.tsx +157 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/setChatPrompt.ts +116 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatSettings.tsx +88 -0
- package/client/src/dashboard/AskLLM/Chat/useAskLLMChatSend.ts +111 -0
- package/client/src/dashboard/AskLLM/Chat/useLLMChat.tsx +126 -0
- package/client/src/dashboard/AskLLM/Chat/useLLMSchemaStr.ts +207 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBar.tsx +34 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBarDatabaseAccess.tsx +273 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBarMCPTools.tsx +102 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBarMCPToolsBtn.tsx +167 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBarModelSelector.tsx +238 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBarPromptSelector.tsx +206 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/PromptAndAllowedMcpToolsSchemaPreviews.tsx +85 -0
- package/client/src/dashboard/AskLLM/LLMModelSelector.tsx +270 -0
- package/client/src/dashboard/AskLLM/Setup/AddLLMPromptForm.tsx +33 -0
- package/client/src/dashboard/AskLLM/Setup/AskLLMAccessControl.tsx +246 -0
- package/client/src/dashboard/AskLLM/Setup/LLMProviderSetup.tsx +68 -0
- package/client/src/dashboard/AskLLM/Setup/LLMSetupProvider.tsx +111 -0
- package/client/src/dashboard/AskLLM/Setup/ProstglesSignup.tsx +108 -0
- package/client/src/dashboard/AskLLM/Setup/SetupLLMCredentials.tsx +89 -0
- package/client/src/dashboard/AskLLM/Tools/AskLLMToolApprover.tsx +279 -0
- package/client/src/dashboard/AskLLM/Tools/loadGeneratedWorkspaces/loadGeneratedBarchart.ts +126 -0
- package/client/src/dashboard/AskLLM/Tools/loadGeneratedWorkspaces/loadGeneratedMap.ts +58 -0
- package/client/src/dashboard/AskLLM/Tools/loadGeneratedWorkspaces/loadGeneratedTable.ts +159 -0
- package/client/src/dashboard/AskLLM/Tools/loadGeneratedWorkspaces/loadGeneratedTimechart.ts +78 -0
- package/client/src/dashboard/AskLLM/Tools/loadGeneratedWorkspaces/loadGeneratedWorkspaces.ts +168 -0
- package/client/src/dashboard/AskLLM/Tools/useAskLLMToolApprover.ts +99 -0
- package/client/src/dashboard/AskLLM/useLocalLLM.ts +84 -0
- package/client/src/dashboard/BackupAndRestore/AutomaticBackups.tsx +212 -0
- package/client/src/dashboard/BackupAndRestore/BackupsControls.tsx +291 -0
- package/client/src/dashboard/BackupAndRestore/BackupsInProgress.tsx +98 -0
- package/client/src/dashboard/BackupAndRestore/CloudStorageCredentialSelector.tsx +215 -0
- package/client/src/dashboard/BackupAndRestore/CodeConfirmation.tsx +205 -0
- package/client/src/dashboard/BackupAndRestore/CompletedBackups/DeleteAllBackups.tsx +58 -0
- package/client/src/dashboard/BackupAndRestore/CompletedBackups.tsx +276 -0
- package/client/src/dashboard/BackupAndRestore/DumpLocationOptions.tsx +40 -0
- package/client/src/dashboard/BackupAndRestore/DumpRestoreAlerts.tsx +82 -0
- package/client/src/dashboard/BackupAndRestore/PGDumpOptions.tsx +299 -0
- package/client/src/dashboard/BackupAndRestore/RenderBackupLogs.tsx +48 -0
- package/client/src/dashboard/BackupAndRestore/RenderBackupStatus.tsx +58 -0
- package/client/src/dashboard/BackupAndRestore/Restore/Restore.tsx +205 -0
- package/client/src/dashboard/BackupAndRestore/Restore/RestoreOptions.tsx +148 -0
- package/client/src/dashboard/BackupAndRestore/Restore/useRestoreDatabaseFromFile.ts +73 -0
- package/client/src/dashboard/BackupAndRestore/useBackupsControlsState.ts +39 -0
- package/client/src/dashboard/Charts/CanvasChart.ts +746 -0
- package/client/src/dashboard/Charts/TimeChart/TimeChart.tsx +232 -0
- package/client/src/dashboard/Charts/TimeChart/getBinValueLabels.ts +125 -0
- package/client/src/dashboard/Charts/TimeChart/getCssVariableValue.ts +6 -0
- package/client/src/dashboard/Charts/TimeChart/getTimeAxisTicks.ts +426 -0
- package/client/src/dashboard/Charts/TimeChart/getTimechartBinSize.ts +121 -0
- package/client/src/dashboard/Charts/TimeChart/getTimechartTooltipIntersections.ts +94 -0
- package/client/src/dashboard/Charts/TimeChart/getTimechartTooltipShapes.ts +318 -0
- package/client/src/dashboard/Charts/TimeChart/measureText.ts +34 -0
- package/client/src/dashboard/Charts/TimeChart/onDeltaTimechart.ts +65 -0
- package/client/src/dashboard/Charts/TimeChart/onRenderTimechart.ts +354 -0
- package/client/src/dashboard/Charts/TimeChart/prepareTimechartData.ts +185 -0
- package/client/src/dashboard/Charts/constants.ts +8 -0
- package/client/src/dashboard/Charts/createHiPPICanvas.ts +31 -0
- package/client/src/dashboard/Charts/drawMonotoneXCurve.ts +171 -0
- package/client/src/dashboard/Charts/drawShapes/drawLinkLine.ts +29 -0
- package/client/src/dashboard/Charts/drawShapes/drawShapes.ts +217 -0
- package/client/src/dashboard/Charts/drawShapes/drawShapesOnSVG.ts +481 -0
- package/client/src/dashboard/Charts/drawShapes/findShortestPathAroundRectangles.ts +241 -0
- package/client/src/dashboard/Charts/drawShapes/getLinkLinePoints.ts +124 -0
- package/client/src/dashboard/Charts/drawShapes/getTimechartGradientPeakSections.ts +27 -0
- package/client/src/dashboard/Charts/drawShapes/shortestLinkLineV2.ts +182 -0
- package/client/src/dashboard/Charts/roundRect.ts +42 -0
- package/client/src/dashboard/Charts.tsx +216 -0
- package/client/src/dashboard/CodeEditor/CodeEditor.tsx +288 -0
- package/client/src/dashboard/CodeEditor/CodeEditorWithSaveButton.tsx +208 -0
- package/client/src/dashboard/CodeEditor/registerLogLang.ts +128 -0
- package/client/src/dashboard/CodeEditor/utils/getMonacoJsonSchemas.ts +31 -0
- package/client/src/dashboard/CodeEditor/utils/installGoToDefinition.ts +40 -0
- package/client/src/dashboard/CodeEditor/utils/navigateTo.ts +61 -0
- package/client/src/dashboard/CodeEditor/utils/resolveDefinition..ts +33 -0
- package/client/src/dashboard/CodeEditor/utils/setMonacoErrorMarkers.ts +67 -0
- package/client/src/dashboard/CodeEditor/utils/useSetMonacoJsonSchemas.ts +60 -0
- package/client/src/dashboard/CodeEditor/utils/useSetMonacoTsLibraries.ts +157 -0
- package/client/src/dashboard/CodeExample.tsx +34 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/APICodeExamples.tsx +280 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/APIDetails.tsx +111 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/APIDetailsHttp.tsx +123 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/APIDetailsTokens.tsx +137 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/APIDetailsWs.tsx +98 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/AllowedOriginCheck.tsx +104 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/getApiEndpoint.ts +8 -0
- package/client/src/dashboard/ConnectionConfig/ConnectionConfig.tsx +267 -0
- package/client/src/dashboard/ConnectionConfig/ConnectionConfigSync.tsx +123 -0
- package/client/src/dashboard/ConnectionConfig/ServerSideFunctions.tsx +46 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/WebAppConfig.tsx +90 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/WebAppConfigComponents.tsx +47 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/WebAppConfigFooterActions.tsx +137 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/WebAppConfigSetup.tsx +135 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/hooks/useWebAppConfigActiveSection.ts +12 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/hooks/useWebAppConfigState.ts +76 -0
- package/client/src/dashboard/ConnectionConfig/useConnectionConfigSearchParams.ts +35 -0
- package/client/src/dashboard/ConnectionSelector.tsx +58 -0
- package/client/src/dashboard/Dashboard/CloseSaveSQLPopup.tsx +81 -0
- package/client/src/dashboard/Dashboard/DBS.ts +19 -0
- package/client/src/dashboard/Dashboard/Dashboard.tsx +667 -0
- package/client/src/dashboard/Dashboard/DashboardCenteredLayoutResizer.tsx +56 -0
- package/client/src/dashboard/Dashboard/PALETTE.ts +36 -0
- package/client/src/dashboard/Dashboard/ViewRenderer.tsx +498 -0
- package/client/src/dashboard/Dashboard/addChart.ts +261 -0
- package/client/src/dashboard/Dashboard/addLink.ts +48 -0
- package/client/src/dashboard/Dashboard/addWindow.ts +51 -0
- package/client/src/dashboard/Dashboard/cardLayout.ts +28 -0
- package/client/src/dashboard/Dashboard/cloneWorkspace.ts +102 -0
- package/client/src/dashboard/Dashboard/dashboardUtils.ts +377 -0
- package/client/src/dashboard/Dashboard/debuggingUtils.ts +112 -0
- package/client/src/dashboard/Dashboard/getTables.ts +31 -0
- package/client/src/dashboard/Dashboard/getViewRendererUtils.ts +108 -0
- package/client/src/dashboard/Dashboard/onLinkTable.ts +45 -0
- package/client/src/dashboard/Dashboard/useAddViewToWorkspace.ts +92 -0
- package/client/src/dashboard/DashboardMenu/CreateTable.tsx +307 -0
- package/client/src/dashboard/DashboardMenu/DashboardHotkeys.tsx +38 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenu.tsx +183 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenuContent.tsx +203 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenuHeader.tsx +86 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenuHotkeys.tsx +102 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenuResizer.tsx +68 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenuSettings.tsx +241 -0
- package/client/src/dashboard/DashboardMenu/NewTableMenu.tsx +121 -0
- package/client/src/dashboard/DashboardMenu/SavedAgenticWorkflowsAndContainers.tsx +149 -0
- package/client/src/dashboard/DashboardMenu/SettingsSection.tsx +22 -0
- package/client/src/dashboard/DashboardMenu/TableList.tsx +141 -0
- package/client/src/dashboard/DashboardMenu/useTableSizeInfo.ts +98 -0
- package/client/src/dashboard/DatabaseAccessEditor/DatabaseAccessEditor.tsx +174 -0
- package/client/src/dashboard/DatabaseAccessEditor/DatabaseAccessEditorCustomTables.tsx +149 -0
- package/client/src/dashboard/DatabaseAccessEditor/TableAccessAdvancedOptions.tsx +128 -0
- package/client/src/dashboard/DatabaseAccessEditor/TableAccessAdvancedOptionsMenu.tsx +65 -0
- package/client/src/dashboard/DatabaseAccessEditor/TableAccessDetails.tsx +163 -0
- package/client/src/dashboard/DatabaseAccessEditor/TableAccessEditor.tsx +229 -0
- package/client/src/dashboard/DatabaseAccessEditor/getTableSchemaDriftState.ts +65 -0
- package/client/src/dashboard/DatabaseAccessEditor/useDatabaseAccessEditorTables.tsx +99 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseControl.tsx +139 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseControlRouter.tsx +192 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseTypes/AgeFilter.tsx +148 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseTypes/GeoFilter.tsx +255 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseTypes/ListFilter/ListFilter.tsx +235 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseTypes/ListFilter/fetchListFilterOptions.ts +76 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseTypes/NumberOrDateFilter.tsx +206 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterControl.tsx +157 -0
- package/client/src/dashboard/DetailedFilterControl/FTS_LANGUAGES.ts +35 -0
- package/client/src/dashboard/DetailedFilterControl/FilterWrapper.css +7 -0
- package/client/src/dashboard/DetailedFilterControl/FilterWrapper.tsx +339 -0
- package/client/src/dashboard/DetailedFilterControl/validateFilter.ts +46 -0
- package/client/src/dashboard/Feedback.tsx +145 -0
- package/client/src/dashboard/FileImporter/FileImporter.tsx +770 -0
- package/client/src/dashboard/FileImporter/FileImporterFooter.tsx +100 -0
- package/client/src/dashboard/FileImporter/checkCSVColumnDataTypes.tsx +139 -0
- package/client/src/dashboard/FileImporter/importFile.ts +303 -0
- package/client/src/dashboard/FileImporter/parseCSVFile.ts +123 -0
- package/client/src/dashboard/FileImporter/setFile.ts +251 -0
- package/client/src/dashboard/FileTableControls/CreateFileColumn.tsx +189 -0
- package/client/src/dashboard/FileTableControls/FileColumnConfigControls.tsx +191 -0
- package/client/src/dashboard/FileTableControls/FileColumnConfigEditor.tsx +251 -0
- package/client/src/dashboard/FileTableControls/FileStorageControls.tsx +294 -0
- package/client/src/dashboard/FileTableControls/FileStorageDelete.tsx +106 -0
- package/client/src/dashboard/FileTableControls/FileStorageReferencedTablesConfig.tsx +80 -0
- package/client/src/dashboard/FileTableControls/FileTableConfigControls.tsx +69 -0
- package/client/src/dashboard/FileTableControls/hooks/useFileTableConfigControls.ts +70 -0
- package/client/src/dashboard/FileTableControls/hooks/useSetFileStorage.ts +128 -0
- package/client/src/dashboard/JSONBColumnEditor.tsx +60 -0
- package/client/src/dashboard/LinkMenu.tsx +332 -0
- package/client/src/dashboard/Map/DeckGLFeatureEditor.tsx +645 -0
- package/client/src/dashboard/Map/DeckGLMap.css +45 -0
- package/client/src/dashboard/Map/DeckGLMap.tsx +576 -0
- package/client/src/dashboard/Map/DeckGLWrapped.ts +312 -0
- package/client/src/dashboard/Map/InMapControls.tsx +137 -0
- package/client/src/dashboard/Map/MVTLayerProps.ts +306 -0
- package/client/src/dashboard/Map/fitBounds.ts +63 -0
- package/client/src/dashboard/Map/mapDrawUtils.ts +129 -0
- package/client/src/dashboard/Map/mapUtils.ts +183 -0
- package/client/src/dashboard/RTComp.tsx +165 -0
- package/client/src/dashboard/RenderFilter.tsx +174 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/CommonMatchImports.ts +366 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/KEYWORDS.ts +448 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/MatchCreate.ts +294 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/MatchCreateView.ts +106 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/matchCreateIndex.ts +220 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/matchCreatePolicy.ts +108 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/matchCreateRule.tsx +99 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/matchCreateTable.ts +336 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/matchCreateTrigger.ts +84 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchAlter/MatchAlter.tsx +258 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchAlter/matchAlterPolicy.ts +50 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchAlter/matchAlterTable.ts +325 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchAlter/matchCreateOrAlterUser.tsx +192 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchComment.ts +86 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchCopy.ts +367 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchDrop.ts +161 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchFirst.ts +471 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchGrant.ts +331 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchInsert.tsx +123 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchLast.ts +10 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchPublication.ts +126 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchReassign.ts +35 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchReindex.ts +36 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchSelect.ts +623 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchSet.ts +183 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchSubscription.ts +231 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchUpdate.ts +79 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchVacuum.ts +86 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchWith.ts +222 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MathDelete.ts +18 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/PSQL.ts +136 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/STARTING_KEYWORDS.ts +931 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/TableKWDs.ts +479 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/checkIfInsideDollarFunctionDefinition.ts +88 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/checkIfUnfinishedParenthesis.ts +74 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/getCodeBlock.ts +627 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/getQueryReturnType.ts +274 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/getTableExpressionReturnTypes.ts +243 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/getTabularExpressions.ts +428 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/getTokens.ts +239 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/getExpected.ts +176 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/getJoinSuggestions.ts +193 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/getMatch.ts +62 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/getPGObjects.ts +1270 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/getPrevTokensNoParantheses.ts +234 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/jsonbPathSuggest.ts +188 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/monacoSQLSetup/registerHover.ts +138 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/monacoSQLSetup/registerSuggestions.ts +549 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/suggestColumnLike.ts +251 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/suggestCondition.ts +320 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/suggestFuncArgs.ts +105 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/suggestTableLike.ts +104 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/suggestValue.ts +125 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/withKWDs.ts +507 -0
- package/client/src/dashboard/SQLEditor/SQLEditorSuggestions.ts +1883 -0
- package/client/src/dashboard/SQLEditor/SQLSmartEditor.tsx +124 -0
- package/client/src/dashboard/SQLEditor/SQL_SNIPPETS.ts +43 -0
- package/client/src/dashboard/SQLEditor/W_SQLEditor.css +15 -0
- package/client/src/dashboard/SQLEditor/W_SQLEditor.tsx +746 -0
- package/client/src/dashboard/SQLEditor/addSqlEditorFunctions.ts +74 -0
- package/client/src/dashboard/SQLEditor/defineCustomMonacoSQLTheme.ts +74 -0
- package/client/src/dashboard/SQLEditor/getFormattedSql.ts +154 -0
- package/client/src/dashboard/SQLEditor/registerFunctionSuggestions.ts +175 -0
- package/client/src/dashboard/SQLEditor/utils/scrollToLineIfNeeded.ts +17 -0
- package/client/src/dashboard/SQLEditor/utils/setMonacEditorError.ts +93 -0
- package/client/src/dashboard/SampleSchemas.tsx +50 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/ERDSchema.tsx +175 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/getInitialPlacement.ts +115 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/getInitialPlacementV2.ts +343 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/useCanvasPanZoom.ts +54 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/useDrawHiddenSvgForNativeTextSearch.ts +80 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/useDrawSchemaShapes.ts +242 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/useFetchSchemaForDiagram.ts +276 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/usePanShapes.ts +160 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/useSchemaShapes.ts +352 -0
- package/client/src/dashboard/SchemaGraph/SchemaGraph.tsx +55 -0
- package/client/src/dashboard/SchemaGraph/SchemaGraphControls.tsx +226 -0
- package/client/src/dashboard/SchemaGraph/types.ts +29 -0
- package/client/src/dashboard/SearchAll/SearchAll.tsx +77 -0
- package/client/src/dashboard/SearchAll/SearchAllContent.tsx +63 -0
- package/client/src/dashboard/SearchAll/SearchAllHeader.tsx +71 -0
- package/client/src/dashboard/SearchAll/SearchMatchRow.tsx +103 -0
- package/client/src/dashboard/SearchAll/hooks/useSearchAllState.ts +46 -0
- package/client/src/dashboard/SearchAll/hooks/useSearchListProps.tsx +178 -0
- package/client/src/dashboard/SearchAll/hooks/useSearchTables.tsx +163 -0
- package/client/src/dashboard/SearchAll/hooks/useTablesAndViewsSearchItems.ts +55 -0
- package/client/src/dashboard/SilverGrid/SilverGrid.tsx +531 -0
- package/client/src/dashboard/SilverGrid/SilverGridChild.tsx +403 -0
- package/client/src/dashboard/SilverGrid/SilverGridChildHeader.tsx +235 -0
- package/client/src/dashboard/SilverGrid/SilverGridResizer.tsx +129 -0
- package/client/src/dashboard/SilverGrid/TreeBuilder.ts +261 -0
- package/client/src/dashboard/SmartCard/SmartCard.tsx +218 -0
- package/client/src/dashboard/SmartCard/SmartCardActions.tsx +113 -0
- package/client/src/dashboard/SmartCard/SmartCardColumn.tsx +49 -0
- package/client/src/dashboard/SmartCard/getSelectForFieldConfigs.ts +44 -0
- package/client/src/dashboard/SmartCard/parseFieldConfigs.tsx +165 -0
- package/client/src/dashboard/SmartCard/useFieldConfigParser.ts +55 -0
- package/client/src/dashboard/SmartCard/useSmartCardColumns.ts +46 -0
- package/client/src/dashboard/SmartCardList/SmartCardList.tsx +291 -0
- package/client/src/dashboard/SmartCardList/SmartCardListHeaderControls.tsx +130 -0
- package/client/src/dashboard/SmartCardList/SmartCardListJoinedNewRecords.tsx +97 -0
- package/client/src/dashboard/SmartCardList/useSmartCardListState.ts +273 -0
- package/client/src/dashboard/SmartFilter/AddJoinFilter.tsx +97 -0
- package/client/src/dashboard/SmartFilter/MinimisedFilter.css +13 -0
- package/client/src/dashboard/SmartFilter/MinimisedFilter.tsx +208 -0
- package/client/src/dashboard/SmartFilter/SmartAddFilter.tsx +324 -0
- package/client/src/dashboard/SmartFilter/SmartFilter.tsx +182 -0
- package/client/src/dashboard/SmartFilter/SmartSearch/SmartSearch.css +4 -0
- package/client/src/dashboard/SmartFilter/SmartSearch/SmartSearch.tsx +230 -0
- package/client/src/dashboard/SmartFilter/SmartSearch/getSmartSearchRows.ts +277 -0
- package/client/src/dashboard/SmartFilter/SmartSearch/onSearchItems.tsx +146 -0
- package/client/src/dashboard/SmartFilter/SortByControl.tsx +81 -0
- package/client/src/dashboard/SmartFilter/smartFilterUtils.ts +97 -0
- package/client/src/dashboard/SmartFilterBar/SmartFilterBar.tsx +178 -0
- package/client/src/dashboard/SmartFilterBar/SmartFilterBarFilters.tsx +103 -0
- package/client/src/dashboard/SmartFilterBar/SmartFilterBarRightActions.tsx +212 -0
- package/client/src/dashboard/SmartFilterBar/SmartFilterBarSearch.tsx +115 -0
- package/client/src/dashboard/SmartFilterBar/SmartFilterBarSort.tsx +108 -0
- package/client/src/dashboard/SmartFilterBar/useSmartFilterBarState.ts +100 -0
- package/client/src/dashboard/SmartForm/ChipArrayEditor.tsx +169 -0
- package/client/src/dashboard/SmartForm/InsertButton.tsx +89 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/JoinedRecords.tsx +155 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/JoinedRecordsAddRow.tsx +182 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/JoinedRecordsSection.tsx +168 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/getJoinFilter.ts +31 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/useJoinedRecordsSections.ts +246 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/useJoinedSectionFieldConfigs.tsx +120 -0
- package/client/src/dashboard/SmartForm/SmartForm.tsx +368 -0
- package/client/src/dashboard/SmartForm/SmartFormField/RenderValue/RenderJson.tsx +72 -0
- package/client/src/dashboard/SmartForm/SmartFormField/RenderValue.tsx +294 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormField.tsx +349 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldFileSection.tsx +51 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldForeignKey.tsx +253 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldLinkedData.tsx +207 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldLinkedDataInsert/SmartFormFieldLinkedDataInsert.tsx +165 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldLinkedDataInsert/useSmartFormFieldLinkedDataInsert.tsx +77 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldLinkedDataSearch.tsx +91 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldRightButtons.tsx +110 -0
- package/client/src/dashboard/SmartForm/SmartFormField/ViewMoreSmartCardList.tsx +86 -0
- package/client/src/dashboard/SmartForm/SmartFormField/fetchColumnValueSuggestions.ts +92 -0
- package/client/src/dashboard/SmartForm/SmartFormField/fetchForeignKeyOptions.tsx +348 -0
- package/client/src/dashboard/SmartForm/SmartFormField/fieldUtils.ts +228 -0
- package/client/src/dashboard/SmartForm/SmartFormField/useNestedInsertDefaultData.ts +28 -0
- package/client/src/dashboard/SmartForm/SmartFormField/useSmartFormFieldAsJSON.tsx +87 -0
- package/client/src/dashboard/SmartForm/SmartFormField/useSmartFormFieldOnChange.ts +65 -0
- package/client/src/dashboard/SmartForm/SmartFormFieldList.tsx +190 -0
- package/client/src/dashboard/SmartForm/SmartFormFileSection.tsx +110 -0
- package/client/src/dashboard/SmartForm/SmartFormFooter/SmartFormFooterButtons.tsx +133 -0
- package/client/src/dashboard/SmartForm/SmartFormFooter/useSmartFormActions.ts +265 -0
- package/client/src/dashboard/SmartForm/SmartFormNewRowDataHandler.ts +168 -0
- package/client/src/dashboard/SmartForm/SmartFormPopup/SmartFormPopupWrapper.tsx +92 -0
- package/client/src/dashboard/SmartForm/SmartFormPopup/SmartFormPrevNext.tsx +33 -0
- package/client/src/dashboard/SmartForm/SmartFormPopup/SmartFormViewAsMarkdown.tsx +83 -0
- package/client/src/dashboard/SmartForm/SmartFormPopup/useSmartFormPrevNext.ts +20 -0
- package/client/src/dashboard/SmartForm/SmartFormPopup/useSmartFormSubTitle.ts +44 -0
- package/client/src/dashboard/SmartForm/SmartFormUpperFooter/SmartFormUpperFooter.tsx +198 -0
- package/client/src/dashboard/SmartForm/SmartFormUpperFooter/useActiveJoinedRecordsTab.ts +65 -0
- package/client/src/dashboard/SmartForm/constants.ts +1 -0
- package/client/src/dashboard/SmartForm/useNewRowDataHandler.ts +386 -0
- package/client/src/dashboard/SmartForm/useSmartForm.ts +67 -0
- package/client/src/dashboard/SmartForm/useSmartFormColumns.ts +127 -0
- package/client/src/dashboard/SmartForm/useSmartFormMode.ts +243 -0
- package/client/src/dashboard/SmartSelect.tsx +228 -0
- package/client/src/dashboard/SmartTable.tsx +383 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitor.tsx +41 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorBlockedByPid.tsx +35 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorConnections.tsx +127 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorInfoHeader/StatusMonitorInfoHeader.tsx +122 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorInfoHeader/StatusMonitorInfoHeaderCpu.tsx +122 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorInfoHeader/StatusMonitorInfoHeaderMemory.tsx +21 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorProcList.tsx +292 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorProcListControlsHeader.tsx +85 -0
- package/client/src/dashboard/TableConfig/ProcessLogs.tsx +65 -0
- package/client/src/dashboard/TableConfig/TableConfig.tsx +88 -0
- package/client/src/dashboard/TimeSeries.tsx +29 -0
- package/client/src/dashboard/UserManager.tsx +54 -0
- package/client/src/dashboard/W_Barchart/W_Barchart.tsx +104 -0
- package/client/src/dashboard/W_Barchart/fetchSQLBarchartData.ts +7 -0
- package/client/src/dashboard/W_Barchart/useBarchartData.ts +176 -0
- package/client/src/dashboard/W_Map/OSM/OverpassQuery.tsx +21 -0
- package/client/src/dashboard/W_Map/OSM/fetchOSMCountryBoundary.ts +73 -0
- package/client/src/dashboard/W_Map/OSM/getOSMData.ts +240 -0
- package/client/src/dashboard/W_Map/OSM/osmToGeoJSON.ts +198 -0
- package/client/src/dashboard/W_Map/OSM/osmTypes.ts +1856 -0
- package/client/src/dashboard/W_Map/W_Map.tsx +747 -0
- package/client/src/dashboard/W_Map/W_MapMenu.tsx +188 -0
- package/client/src/dashboard/W_Map/controls/MapBasemapOptions.tsx +268 -0
- package/client/src/dashboard/W_Map/controls/MapInfoSection.tsx +95 -0
- package/client/src/dashboard/W_Map/controls/MapOSMQuery.tsx +174 -0
- package/client/src/dashboard/W_Map/controls/MapOpacityMenu.tsx +60 -0
- package/client/src/dashboard/W_Map/fetchData/fetchMapLayerData.ts +401 -0
- package/client/src/dashboard/W_Map/fetchData/getMapData.ts +161 -0
- package/client/src/dashboard/W_Map/fetchData/getMapDataExtent.ts +86 -0
- package/client/src/dashboard/W_Map/fetchData/getMapLayerQueries.ts +232 -0
- package/client/src/dashboard/W_Map/getMapFeatureStyle.ts +160 -0
- package/client/src/dashboard/W_Map/onMapHover.ts +118 -0
- package/client/src/dashboard/W_Method/FunctionLabel.tsx +24 -0
- package/client/src/dashboard/W_Method/NewMethod.tsx +108 -0
- package/client/src/dashboard/W_Method/PublishedMethods.tsx +218 -0
- package/client/src/dashboard/W_Method/W_Method.tsx +48 -0
- package/client/src/dashboard/W_Method/W_MethodControls.tsx +338 -0
- package/client/src/dashboard/W_Method/W_MethodMenu.tsx +162 -0
- package/client/src/dashboard/W_QuickMenu.tsx +228 -0
- package/client/src/dashboard/W_SQL/CSVRender.tsx +18 -0
- package/client/src/dashboard/W_SQL/CopyResultBtn.tsx +246 -0
- package/client/src/dashboard/W_SQL/MonacoLanguageRegister.ts +701 -0
- package/client/src/dashboard/W_SQL/SQLHotkeys.tsx +23 -0
- package/client/src/dashboard/W_SQL/TestSQL.ts +52 -0
- package/client/src/dashboard/W_SQL/W_SQL.tsx +679 -0
- package/client/src/dashboard/W_SQL/W_SQLBottomBar/W_SQLBottomBar.tsx +484 -0
- package/client/src/dashboard/W_SQL/W_SQLBottomBar/W_SQLBottomBarProcStats.tsx +67 -0
- package/client/src/dashboard/W_SQL/W_SQLMenu.tsx +403 -0
- package/client/src/dashboard/W_SQL/W_SQLResults.tsx +161 -0
- package/client/src/dashboard/W_SQL/customRenderers.tsx +126 -0
- package/client/src/dashboard/W_SQL/demoScripts/createTables.ts +262 -0
- package/client/src/dashboard/W_SQL/demoScripts/mainTestScripts.ts +269 -0
- package/client/src/dashboard/W_SQL/demoScripts/testBugs.ts +596 -0
- package/client/src/dashboard/W_SQL/demoScripts/testMiscAndBugs.ts +61 -0
- package/client/src/dashboard/W_SQL/demoScripts/testSqlCharts.ts +117 -0
- package/client/src/dashboard/W_SQL/getChartableSQL.ts +169 -0
- package/client/src/dashboard/W_SQL/getDemoUtils.ts +260 -0
- package/client/src/dashboard/W_SQL/getSQLResultTableColumns.ts +56 -0
- package/client/src/dashboard/W_SQL/monacoEditorTypes.ts +13 -0
- package/client/src/dashboard/W_SQL/parseExplainResult.ts +99 -0
- package/client/src/dashboard/W_SQL/parseSQLError.ts +55 -0
- package/client/src/dashboard/W_SQL/parseSqlResultCols.ts +96 -0
- package/client/src/dashboard/W_SQL/runSQL/getQueryTotalRowCount.ts +38 -0
- package/client/src/dashboard/W_SQL/runSQL/runSQL.ts +432 -0
- package/client/src/dashboard/W_SQL/runSQLErrorHints.ts +150 -0
- package/client/src/dashboard/W_Table/CardView/CardItem/CardItemBody.tsx +151 -0
- package/client/src/dashboard/W_Table/CardView/CardItem/CardItemHeader.tsx +150 -0
- package/client/src/dashboard/W_Table/CardView/CardItem/CardViewRow.tsx +160 -0
- package/client/src/dashboard/W_Table/CardView/CardView.tsx +87 -0
- package/client/src/dashboard/W_Table/CardView/CardViewColumn.tsx +82 -0
- package/client/src/dashboard/W_Table/CardView/CardViewKanban.tsx +87 -0
- package/client/src/dashboard/W_Table/CardView/DragHeader.tsx +46 -0
- package/client/src/dashboard/W_Table/CardView/constants.ts +1 -0
- package/client/src/dashboard/W_Table/CardView/useCardViewState.ts +50 -0
- package/client/src/dashboard/W_Table/CardView/useDragHeader.ts +280 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AddColumnMenu.tsx +193 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AddComputedColumn/AddComputedColMenu.tsx +650 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AddComputedColumn/FunctionColumnList.tsx +75 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AddComputedColumn/QuickAddComputedColumn.tsx +129 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AddComputedColumn/useAddComputedColumn.ts +175 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/AlterColumn.tsx +421 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/AlterColumnFileOptions.tsx +84 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/ColumnEditor.tsx +229 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/CreateColumn.tsx +150 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/ReferenceEditor.tsx +243 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/alterColumnUtilts.ts +53 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColorPicker.tsx +251 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/ChipStylePalette.tsx +127 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/ColumnDisplayFormat.tsx +116 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/ConditionalCellIconStyleControls.tsx +140 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/ConditionalCellStyleControls.tsx +235 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/NestedColumnRender.tsx +172 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/columnFormatUtils.tsx +330 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnList.tsx +291 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnMenu.tsx +537 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnQuickStats/ColumnQuickStats.tsx +176 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnQuickStats/useColumnQuickStats.ts +169 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnSelect/ColumnSelect.tsx +54 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnSelect/getColumnListItem.tsx +97 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnSortMenu.tsx +146 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnStyleControls/ColumnStyleControls.tsx +258 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnStyleControls/getValueColors.ts +101 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnsMenu.tsx +178 -0
- package/client/src/dashboard/W_Table/ColumnMenu/FunctionSelector/FunctionExtraArguments.tsx +140 -0
- package/client/src/dashboard/W_Table/ColumnMenu/FunctionSelector/FunctionSelector.tsx +89 -0
- package/client/src/dashboard/W_Table/ColumnMenu/FunctionSelector/functions.ts +438 -0
- package/client/src/dashboard/W_Table/ColumnMenu/JoinPathSelectorV2.tsx +212 -0
- package/client/src/dashboard/W_Table/ColumnMenu/LinkedColumn/LinkedColumn.tsx +295 -0
- package/client/src/dashboard/W_Table/ColumnMenu/LinkedColumn/LinkedColumnFooter.tsx +94 -0
- package/client/src/dashboard/W_Table/ColumnMenu/LinkedColumn/LinkedColumnSelect.tsx +160 -0
- package/client/src/dashboard/W_Table/ColumnMenu/NestedTimechartControls.tsx +167 -0
- package/client/src/dashboard/W_Table/ColumnMenu/SummariseColumns.tsx +126 -0
- package/client/src/dashboard/W_Table/ColumnMenu/UpdateColumnGlobalConfig.tsx +69 -0
- package/client/src/dashboard/W_Table/ColumnMenu/getNestedColumnTable.ts +83 -0
- package/client/src/dashboard/W_Table/ColumnMenu/rgba2hex.ts +36 -0
- package/client/src/dashboard/W_Table/JoinPathSelector/JoinPathItem.tsx +133 -0
- package/client/src/dashboard/W_Table/JoinPathSelector/JoinPathSelector.tsx +100 -0
- package/client/src/dashboard/W_Table/JoinPathSelector/getJoinTree.ts +79 -0
- package/client/src/dashboard/W_Table/NodeCountChecker.tsx +58 -0
- package/client/src/dashboard/W_Table/ProstglesTable.css +64 -0
- package/client/src/dashboard/W_Table/QuickFilterGroupsControl.tsx +86 -0
- package/client/src/dashboard/W_Table/RowCard.tsx +102 -0
- package/client/src/dashboard/W_Table/TableMenu/AddChartMenu.tsx +288 -0
- package/client/src/dashboard/W_Table/TableMenu/AutoRefreshMenu.tsx +118 -0
- package/client/src/dashboard/W_Table/TableMenu/TableDisplayOptionsJSON.tsx +71 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu.tsx +365 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_AccessRules.tsx +127 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_Constraints.tsx +140 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_CurrentQuery.tsx +82 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_DisplayOptions.tsx +266 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_Indexes.tsx +179 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_Policies.tsx +197 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_TableInfo.tsx +184 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_Triggers.tsx +199 -0
- package/client/src/dashboard/W_Table/TableMenu/getAndFixWColumnsConfig.tsx +116 -0
- package/client/src/dashboard/W_Table/TableMenu/getChartCols.ts +153 -0
- package/client/src/dashboard/W_Table/TableMenu/getTableMeta.ts +205 -0
- package/client/src/dashboard/W_Table/TooManyColumnsWarning.tsx +72 -0
- package/client/src/dashboard/W_Table/W_Table.tsx +772 -0
- package/client/src/dashboard/W_Table/W_Table_Content.tsx +51 -0
- package/client/src/dashboard/W_Table/colorBlend.ts +75 -0
- package/client/src/dashboard/W_Table/getTableData/getTableData.ts +291 -0
- package/client/src/dashboard/W_Table/getTableData/getTableFilter.ts +66 -0
- package/client/src/dashboard/W_Table/tableUtils/StyledTableColumn.tsx +322 -0
- package/client/src/dashboard/W_Table/tableUtils/getColWInfo.ts +48 -0
- package/client/src/dashboard/W_Table/tableUtils/getColWidth.ts +160 -0
- package/client/src/dashboard/W_Table/tableUtils/getEditColumn.tsx +143 -0
- package/client/src/dashboard/W_Table/tableUtils/getFullColumnConfig.ts +43 -0
- package/client/src/dashboard/W_Table/tableUtils/getJoinPaths.ts +89 -0
- package/client/src/dashboard/W_Table/tableUtils/getRowFilter.ts +114 -0
- package/client/src/dashboard/W_Table/tableUtils/getTableCols.tsx +258 -0
- package/client/src/dashboard/W_Table/tableUtils/getTableDataRequestSignature.ts +32 -0
- package/client/src/dashboard/W_Table/tableUtils/getTableSelect.ts +235 -0
- package/client/src/dashboard/W_Table/tableUtils/kFormatter.ts +12 -0
- package/client/src/dashboard/W_Table/tableUtils/onRenderColumn.tsx +107 -0
- package/client/src/dashboard/W_Table/tableUtils/prepareColsForRender.ts +69 -0
- package/client/src/dashboard/W_Table/tableUtils/tableUtils.ts +298 -0
- package/client/src/dashboard/W_TimeChart/AddTimeChartFilter.tsx +347 -0
- package/client/src/dashboard/W_TimeChart/W_TimeChart.tsx +405 -0
- package/client/src/dashboard/W_TimeChart/W_TimeChartHeaderControls.tsx +140 -0
- package/client/src/dashboard/W_TimeChart/W_TimeChartLayerLegend.tsx +99 -0
- package/client/src/dashboard/W_TimeChart/W_TimeChartMenu.tsx +228 -0
- package/client/src/dashboard/W_TimeChart/fetchData/constants.ts +5 -0
- package/client/src/dashboard/W_TimeChart/fetchData/fetchAndSetTimechartLayerData.ts +141 -0
- package/client/src/dashboard/W_TimeChart/fetchData/fetchTimechartLayer.ts +291 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimeChartData.ts +163 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimeChartLayers.ts +137 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimeChartLayersWithBins.ts +296 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimeChartSelectParams.ts +41 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimeLayerDataSignature.ts +22 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimechartExtentFilter.ts +48 -0
- package/client/src/dashboard/Window/ChildWindowLayout.tsx +149 -0
- package/client/src/dashboard/Window/Window.tsx +322 -0
- package/client/src/dashboard/WindowControls/AddChartLayer.tsx +142 -0
- package/client/src/dashboard/WindowControls/ColorByLegend/ColorByLegend.tsx +256 -0
- package/client/src/dashboard/WindowControls/ColorByLegend/getGroupByValueColor.ts +50 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/DataLayer.tsx +182 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/DataLayerDataSource.tsx +243 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/DataLayerManager.tsx +157 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/LayerColorPicker.tsx +56 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/MapLayerStyling.tsx +192 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/useSortedLayerQueries.ts +34 -0
- package/client/src/dashboard/WindowControls/OSMLayerOptions.tsx +62 -0
- package/client/src/dashboard/WindowControls/SQLChartLayerEditor.tsx +38 -0
- package/client/src/dashboard/WindowControls/TimeChartLayerOptions.tsx +336 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceAddBtn.tsx +104 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceDeleteBtn.tsx +87 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceMenu.css +13 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceMenu.tsx +124 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceMenuDropDown.tsx +178 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceSettings.tsx +99 -0
- package/client/src/dashboard/WorkspaceMenu/useWorkspaces.ts +78 -0
- package/client/src/dashboard/getCrossFilters.ts +251 -0
- package/client/src/dashboard/localSettings.ts +94 -0
- package/client/src/dashboard/setPan.ts +358 -0
- package/client/src/dashboard/shortestPath.ts +137 -0
- package/client/src/demo/AppVideoDemo.tsx +132 -0
- package/client/src/demo/MousePointer.tsx +39 -0
- package/client/src/demo/demoUtils.ts +214 -0
- package/client/src/demo/recordDemoUtils.ts +87 -0
- package/client/src/demo/scripts/AIAssistantDemo.ts +60 -0
- package/client/src/demo/scripts/accessControlDemo.ts +44 -0
- package/client/src/demo/scripts/backupDemo.ts +50 -0
- package/client/src/demo/scripts/dashboardDemo.ts +215 -0
- package/client/src/demo/scripts/fileDemo.ts +24 -0
- package/client/src/demo/scripts/schemaDiagramDemo.ts +13 -0
- package/client/src/demo/scripts/sqlVideoDemo.ts +539 -0
- package/client/src/demo/scripts/videoDemoAccessControlScripts.ts +245 -0
- package/client/src/exports.ts +15 -0
- package/client/src/hooks/createStore.ts +24 -0
- package/client/src/hooks/useDebouncedCallback.ts +27 -0
- package/client/src/hooks/useThrottledCallback.ts +41 -0
- package/client/src/hooks/useTypedSearchParams.ts +81 -0
- package/client/src/i18n/LanguageSelector.tsx +33 -0
- package/client/src/i18n/i18nUtils.ts +187 -0
- package/client/src/i18n/translations/de.json +453 -0
- package/client/src/i18n/translations/es.json +425 -0
- package/client/src/i18n/translations/fr.json +425 -0
- package/client/src/i18n/translations/hi.json +431 -0
- package/client/src/i18n/translations/ru.json +431 -0
- package/client/src/i18n/translations/translations.ts +477 -0
- package/client/src/i18n/translations/zh.json +423 -0
- package/client/src/index.css +57 -0
- package/client/src/index.html.ejs +37 -0
- package/client/src/index.tsx +17 -0
- package/client/src/pages/Account/Account.tsx +150 -0
- package/client/src/pages/Account/ChangePassword.tsx +96 -0
- package/client/src/pages/Account/Sessions.tsx +248 -0
- package/client/src/pages/Account/Setup2FA.tsx +244 -0
- package/client/src/pages/AccountMenu.tsx +146 -0
- package/client/src/pages/Alerts.tsx +182 -0
- package/client/src/pages/AppContextProvider.tsx +26 -0
- package/client/src/pages/ComponentList.tsx +108 -0
- package/client/src/pages/ElectronSetup/ElectronSetup.tsx +122 -0
- package/client/src/pages/ElectronSetup/ElectronSetupStateDB.tsx +141 -0
- package/client/src/pages/ElectronSetup/useElectronSetup.ts +147 -0
- package/client/src/pages/Login/AuthNotifPopup.tsx +37 -0
- package/client/src/pages/Login/Login.tsx +133 -0
- package/client/src/pages/Login/LoginTotpForm.tsx +72 -0
- package/client/src/pages/Login/LoginWithProviders.tsx +62 -0
- package/client/src/pages/Login/SocialIcons.css +4 -0
- package/client/src/pages/Login/SocialIcons.tsx +85 -0
- package/client/src/pages/NewConnection/NewConnectionForm.tsx +572 -0
- package/client/src/pages/NewConnection/NewConnectionFormFields.tsx +314 -0
- package/client/src/pages/NewConnection/NewConnectionFormOptions.tsx +194 -0
- package/client/src/pages/NewConnection/SchemaFilter.tsx +87 -0
- package/client/src/pages/NewConnection/newConnectionUtils.ts +50 -0
- package/client/src/pages/NonHTTPSWarning.tsx +51 -0
- package/client/src/pages/NotFound.tsx +22 -0
- package/client/src/pages/ProjectConnection/PrglContextProvider.tsx +47 -0
- package/client/src/pages/ProjectConnection/ProjectConnection.tsx +110 -0
- package/client/src/pages/ProjectConnection/ProjectConnectionError.tsx +76 -0
- package/client/src/pages/ProjectConnection/useProjectDb.ts +253 -0
- package/client/src/pages/ProjectLogs.tsx +227 -0
- package/client/src/pages/ServerSettings/AuthProvidersSetup/AuthProvidersSetup.tsx +199 -0
- package/client/src/pages/ServerSettings/AuthProvidersSetup/useProviderProps.ts +39 -0
- package/client/src/pages/ServerSettings/EmailAuthSetup.tsx +209 -0
- package/client/src/pages/ServerSettings/EmailAuthSetupIngredients/EmailSMTPAndTemplateSetup.tsx +158 -0
- package/client/src/pages/ServerSettings/EmailAuthSetupIngredients/EmailSMTPSetup.tsx +128 -0
- package/client/src/pages/ServerSettings/EmailAuthSetupIngredients/EmailTemplateSetup.tsx +111 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/McpServerOAuthConfig.tsx +41 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/McpServerOAuthConfigActions.tsx +187 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/McpServerOAuthConfigAuthorizeUrlBtn.tsx +55 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/McpServerOAuthConfigCredentials.tsx +81 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/McpServerOAuthConfigTopControls.tsx +120 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/WebMcpConfig.tsx +162 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/useMcpServerOAuthConfigState.ts +132 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/MCPServerConfigButton.tsx +121 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/MCPServerConfigEditor.tsx +206 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/MCPServerConfigProvider.tsx +67 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/useMCPServerConfigState.tsx +107 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/useMCPServerEnable.ts +131 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerFooterActions/MCPServerFooterActions.tsx +108 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerFooterActions/MCPServerLogs.tsx +46 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerFooterActions/MCPServersInstall.tsx +81 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerHeaderCheckbox.tsx +120 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerTools/MCPServerTools.tsx +95 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerTools/MCPServerToolsGroupToggle.tsx +96 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerTools/useMcpServerIcons.ts +87 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerTools/useMcpToolsSelectOptions.tsx +33 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServers.tsx +140 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServersHeader.tsx +47 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServersToolbar/AddMCPServer.tsx +196 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServersToolbar/MCPServersToolbar.tsx +77 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServersToolbar/useAddMCPServer.ts +253 -0
- package/client/src/pages/ServerSettings/MCPServers/useMCPChatAllowedTools.ts +25 -0
- package/client/src/pages/ServerSettings/MCPServers/useMCPServersListProps.tsx +118 -0
- package/client/src/pages/ServerSettings/OAuthProviderSetup.tsx +258 -0
- package/client/src/pages/ServerSettings/SecuritySettings.tsx +154 -0
- package/client/src/pages/ServerSettings/ServerSettings.tsx +151 -0
- package/client/src/pages/ServerSettings/Services.tsx +231 -0
- package/client/src/pages/ServerSettings/useEditableData.ts +55 -0
- package/client/src/pages/TopControls.tsx +182 -0
- package/client/src/pages/projectUtils.ts +0 -0
- package/client/src/theme/ThemeSelector.tsx +36 -0
- package/client/src/theme/useAppTheme.ts +47 -0
- package/client/src/theme/useSystemTheme.ts +23 -0
- package/client/src/useAppState/PrglCoreContextProvider.tsx +76 -0
- package/client/src/useAppState/useAppState.ts +92 -0
- package/client/src/useAppState/useDBSClient.ts +104 -0
- package/client/src/useAppState/useServerState.ts +62 -0
- package/client/src/useAppState/useUserData.ts +1 -0
- package/client/src/utils/colorUtils.ts +48 -0
- package/client/src/utils/hashCode.ts +52 -0
- package/client/src/utils/utils.ts +207 -0
- package/client/static/favicon-32x32.png +0 -0
- package/client/static/logos/anthropic.svg +3 -0
- package/client/static/logos/google.svg +25 -0
- package/client/static/logos/ollama.svg +7 -0
- package/client/static/logos/openai.svg +2 -0
- package/client/static/logos/openrouter.svg +1 -0
- package/client/static/mcp-oauth-close.js +5 -0
- package/client/static/prostgles-logo.svg +39 -0
- package/client/static/util.css +2024 -0
- package/client/static/v2.svg +25 -0
- package/client/tsconfig.eslint.json +5 -0
- package/client/tsconfig.json +40 -0
- package/client/tslint.json +5 -0
- package/common/DBGeneratedSchema.ts +953 -0
- package/common/DashboardTypes.ts +533 -0
- package/common/KeyObjMap.ts +100 -0
- package/common/OAuthUtils.ts +285 -0
- package/common/authTypesAndConstants.ts +1 -0
- package/common/columnDisplayFormat.schema.ts +211 -0
- package/common/electronInitTypes.ts +56 -0
- package/common/filterUtils.ts +491 -0
- package/common/getJsonSchemaAsTs.ts +335 -0
- package/common/llmUtils.ts +133 -0
- package/common/managedTableSchema.ts +38 -0
- package/common/mcp/databaseAccessSchema.ts +70 -0
- package/common/mcp/db.mcp.schema.ts +280 -0
- package/common/mcp/documents.mcp.schema.ts +45 -0
- package/common/mcp/documentsServiceInputSchema.ts +129 -0
- package/common/mcp/runCodeInSandboxSchema.ts +85 -0
- package/common/mcp/startAgenticWorkflowSchema.ts +180 -0
- package/common/mcp/tableOptionsJsonbSchema.ts +151 -0
- package/common/mcp/tablePermissionsSchema.ts +101 -0
- package/common/mcp/ui.mcp.schema.ts +496 -0
- package/common/mcp/userInputSchema.ts +87 -0
- package/common/mcp/web.mcp.schema.ts +245 -0
- package/common/mcp/webdev.mcp.schema.ts +138 -0
- package/common/mcpUtils.ts +75 -0
- package/common/prostglesApiTypes.ts +551 -0
- package/common/prostglesMcp.ts +35 -0
- package/common/psql_queries.json +657 -0
- package/common/publishUtils.ts +600 -0
- package/common/tsconfig.json +22 -0
- package/common/utils.ts +525 -0
- package/docker-compose.yml +99 -0
- package/docs/01_Overview.md +25 -0
- package/docs/02_Installation_(Docker).md +37 -0
- package/docs/03_Installation_(Desktop_Version).md +27 -0
- package/docs/04_Navigation_bar.md +37 -0
- package/docs/05_Connections.md +108 -0
- package/docs/06_Connection_dashboard.md +58 -0
- package/docs/07_Import_file.md +15 -0
- package/docs/08_Agentic_workflows.md +27 -0
- package/docs/09_Schema_diagram.md +63 -0
- package/docs/10_SQL_editor.md +69 -0
- package/docs/11_Table_view.md +188 -0
- package/docs/12_Map_view.md +56 -0
- package/docs/13_Timechart_view.md +49 -0
- package/docs/14_AI_Assistant.md +64 -0
- package/docs/15_Connection_configuration.md +20 -0
- package/docs/16_Access_control.md +12 -0
- package/docs/17_File_storage.md +8 -0
- package/docs/18_Backup_and_Restore.md +22 -0
- package/docs/19_API.md +20 -0
- package/docs/20_Server_Settings.md +28 -0
- package/docs/21_Account.md +21 -0
- package/docs/22_Command_Palette.md +10 -0
- package/docs/screenshots/table_timechart.dark.svgif.svg +375 -0
- package/docs/screenshots/table_timechart.svgif.svg +1102 -0
- package/docs/screenshots/timechart.dark.svgif.svg +221 -0
- package/docs/screenshots/timechart.svgif.svg +846 -0
- package/e2e/icon512.png +0 -0
- package/e2e/package-lock.json +401 -0
- package/e2e/package.json +31 -0
- package/e2e/playwright.config.js +65 -0
- package/e2e/playwright.config.ts +32 -0
- package/e2e/test-local.sh +5 -0
- package/e2e/tests/Testing.ts +724 -0
- package/e2e/tests/command_palette.spec.ts +114 -0
- package/e2e/tests/configTest/.env.example +10 -0
- package/e2e/tests/configTest/constants.ts +13 -0
- package/e2e/tests/configTest/functions.ts +14 -0
- package/e2e/tests/configTest/index.ts +84 -0
- package/e2e/tests/configTest/package.json +17 -0
- package/e2e/tests/configTest/tsconfig.json +13 -0
- package/e2e/tests/config_deploy.spec.ts +386 -0
- package/e2e/tests/create_docs.spec.ts +231 -0
- package/e2e/tests/create_load_test_users.spec.ts +47 -0
- package/e2e/tests/demo_video.spec.ts +139 -0
- package/e2e/tests/demo_video_setup.spec.ts +118 -0
- package/e2e/tests/fileBrowserGoToPath.ts +53 -0
- package/e2e/tests/load_test.spec.ts +53 -0
- package/e2e/tests/main.spec.ts +3820 -0
- package/e2e/tests/mockSMTPServer.ts +81 -0
- package/e2e/tests/saveDocs.ts +55 -0
- package/e2e/tests/svgScreenshots/SVG_SCREENSHOT_DETAILS.ts +132 -0
- package/e2e/tests/svgScreenshots/account.svgif.ts +14 -0
- package/e2e/tests/svgScreenshots/aiAssistant.svgif.ts +235 -0
- package/e2e/tests/svgScreenshots/aiAssistantAgenticWorkflow.svgif.ts +339 -0
- package/e2e/tests/svgScreenshots/aiAssistantAgenticWorkflowGovApi.svgif.ts +116 -0
- package/e2e/tests/svgScreenshots/backupAndRestore.svgif.ts +143 -0
- package/e2e/tests/svgScreenshots/commandPalette.svgif.ts +69 -0
- package/e2e/tests/svgScreenshots/dashboard.svgif.ts +271 -0
- package/e2e/tests/svgScreenshots/electronSetup.svgif.ts +32 -0
- package/e2e/tests/svgScreenshots/fileImporter.svgif.ts +39 -0
- package/e2e/tests/svgScreenshots/getOverviewSvgifSpecs.svgif.ts +288 -0
- package/e2e/tests/svgScreenshots/map.svgif.ts +50 -0
- package/e2e/tests/svgScreenshots/navbar.svgif.ts +22 -0
- package/e2e/tests/svgScreenshots/newConnection.svgif.ts +26 -0
- package/e2e/tests/svgScreenshots/schemaDiagram.svgif.ts +82 -0
- package/e2e/tests/svgScreenshots/sqlEditor.svgif.ts +348 -0
- package/e2e/tests/svgScreenshots/table.svgif.ts +167 -0
- package/e2e/tests/svgScreenshots/tableTimechart.svgif.ts +507 -0
- package/e2e/tests/svgScreenshots/timechart.svgif.ts +138 -0
- package/e2e/tests/svgScreenshots/utils/constants.ts +23 -0
- package/e2e/tests/svgScreenshots/utils/dedent.ts +9 -0
- package/e2e/tests/svgScreenshots/utils/getFilesFromDir.ts +30 -0
- package/e2e/tests/svgScreenshots/utils/getSceneUtils.ts +200 -0
- package/e2e/tests/svgScreenshots/utils/removeOtherElements.ts +26 -0
- package/e2e/tests/svgScreenshots/utils/saveSVGScreenshot.ts +67 -0
- package/e2e/tests/svgScreenshots/utils/saveSVGifs.ts +74 -0
- package/e2e/tests/svgScreenshots/utils/saveSVGs.ts +61 -0
- package/e2e/tests/svgScreenshots/utils/startScreencast.ts +118 -0
- package/e2e/tests/svgScreenshots/utils/svgScreenshotsCompleteReferenced.ts +98 -0
- package/e2e/tests/svgScreenshots/utils/svgifToWebm.ts +196 -0
- package/e2e/tests/svgScreenshots/utils/typeSendAddScenes.ts +86 -0
- package/e2e/tests/testAskLLM/agenticWorkflowToolUses.ts +294 -0
- package/e2e/tests/testAskLLM/createComponentToolUse.ts +49 -0
- package/e2e/tests/testAskLLM/createReceipts.ts +183 -0
- package/e2e/tests/testAskLLM/getAskUserToolUse.ts +36 -0
- package/e2e/tests/testAskLLM/hello.mp3 +0 -0
- package/e2e/tests/testAskLLM/mcpSandboxToolUse.ts +64 -0
- package/e2e/tests/testAskLLM/mockRemoteMcp/Dockerfile +32 -0
- package/e2e/tests/testAskLLM/mockRemoteMcp/package-lock.json +2120 -0
- package/e2e/tests/testAskLLM/mockRemoteMcp/package.json +20 -0
- package/e2e/tests/testAskLLM/mockRemoteMcp/server.ts +144 -0
- package/e2e/tests/testAskLLM/mockRemoteMcp/start-mock-mcp.sh +93 -0
- package/e2e/tests/testAskLLM/sample.pdf +35 -0
- package/e2e/tests/testAskLLM/sampleToolUseData.ts +1413 -0
- package/e2e/tests/testAskLLM/scenarios/geoQuestion.scenario.ts +110 -0
- package/e2e/tests/testAskLLM/scenarios/hygieneRatingsApi.scenario.ts +62 -0
- package/e2e/tests/testAskLLM/scenarios/receiptImport/receiptImport.scenario.ts +53 -0
- package/e2e/tests/testAskLLM/speechToTextTest.ts +101 -0
- package/e2e/tests/testAskLLM/stringify.ts +1 -0
- package/e2e/tests/testAskLLM/testAskLLM.ts +558 -0
- package/e2e/tests/testAskLLM/utils.ts +34 -0
- package/e2e/tests/tsconfig.json +16 -0
- package/e2e/tests/utils/constants.ts +22 -0
- package/e2e/tests/utils/goTo.ts +87 -0
- package/e2e/tests/utils/isPortFree.ts +19 -0
- package/e2e/tests/utils/utils.ts +1319 -0
- package/e2e/tsconfig.json +5 -0
- package/electron/README.md +34 -0
- package/electron/build.sh +74 -0
- package/electron/e2e-electron/electron.spec.tsx +214 -0
- package/electron/e2e-electron/tsconfig.json +10 -0
- package/electron/forge.config.js +26 -0
- package/electron/getProtocolHandler.ts +41 -0
- package/electron/handleErrors.ts +25 -0
- package/electron/icon512.png +0 -0
- package/electron/image.ico +0 -0
- package/electron/images/generate_from_svg.sh +13 -0
- package/electron/images/icon.ico +0 -0
- package/electron/images/icon512.png +0 -0
- package/electron/images/icon512notpadded.png +0 -0
- package/electron/images/loading-effect.css +43 -0
- package/electron/images/prostgles-logo-rounded.svg +46 -0
- package/electron/images/prostgles-logo.svg +39 -0
- package/electron/images/rounded/256x256.png +0 -0
- package/electron/images/rounded/512.png +0 -0
- package/electron/images/rounded/512x512.png +0 -0
- package/electron/images/rounded/64x64.png +0 -0
- package/electron/images/rounded/icon512.png +0 -0
- package/electron/loadingHTML.ts +70 -0
- package/electron/main.ts +125 -0
- package/electron/mainWindow.ts +155 -0
- package/electron/package-lock.json +3916 -0
- package/electron/package.json +111 -0
- package/electron/playwright.config.ts +17 -0
- package/electron/screenCapture.bat +275 -0
- package/electron/scripts/patch-builder.mjs +25 -0
- package/electron/setContextMenu.ts +56 -0
- package/electron/start.sh +10 -0
- package/electron/test-linux-macos.sh +1 -0
- package/electron/test-linux.sh +2 -0
- package/electron/test-setup.js +8 -0
- package/electron/test-w-debug.sh +1 -0
- package/electron/test.sh +1 -0
- package/electron/tsconfig.json +22 -0
- package/electron/win-inno-setup.ts +100 -0
- package/electron/win.js +3 -0
- package/package.json +33 -0
- package/releases/v1.0.0.md +5 -0
- package/releases/v2.0.0.md +25 -0
- package/releases/v2.2.2.md +13 -0
- package/releases/v2.2.3.md +1 -0
- package/releases/v2.2.4.md +1 -0
- package/releases/v2.2.5.md +1 -0
- package/releases/v2.3.1.md +5 -0
- package/releases/v2.3.5.md +7 -0
- package/scripts/check_release_ready.sh +53 -0
- package/scripts/demo/record-local.sh +13 -0
- package/scripts/demo/split-video.sh +6 -0
- package/scripts/get_version.sh +11 -0
- package/scripts/npm_publish_dev.sh +6 -0
- package/scripts/release.sh +35 -0
- package/scripts/start-dev-electron.sh +14 -0
- package/scripts/start-dev.sh +18 -0
- package/scripts/start-prod.sh +5 -0
- package/scripts/test.sh +62 -0
- package/scripts/update_docker_image_versions.sh +28 -0
- package/server/.vscode/settings.json +3 -0
- package/server/eslint.config.mjs +83 -0
- package/server/licenses.json +3821 -0
- package/server/package-lock.json +7252 -0
- package/server/package.json +84 -0
- package/server/sample_schemas/_crypto.sql +95 -0
- package/server/sample_schemas/cleaning.sql +49 -0
- package/server/sample_schemas/cloud_computing.sql +63 -0
- package/server/sample_schemas/countries.sql +29 -0
- package/server/sample_schemas/crypto/index.ts +3 -0
- package/server/sample_schemas/crypto/onMount.ts +802 -0
- package/server/sample_schemas/crypto/package.json +7 -0
- package/server/sample_schemas/crypto/tableConfig.ts +80 -0
- package/server/sample_schemas/crypto/tsconfig.json +12 -0
- package/server/sample_schemas/crypto/workspaceConfig.ts +261 -0
- package/server/sample_schemas/financial.sql +49 -0
- package/server/sample_schemas/food_delivery/connection.ts +1007 -0
- package/server/sample_schemas/food_delivery/databaseConfig.ts +116 -0
- package/server/sample_schemas/food_delivery/index.ts +8 -0
- package/server/sample_schemas/food_delivery/onInit.sql +1507 -0
- package/server/sample_schemas/food_delivery/onMount.ts +149 -0
- package/server/sample_schemas/food_delivery/package.json +4 -0
- package/server/sample_schemas/food_delivery/tsconfig.json +16 -0
- package/server/sample_schemas/food_delivery/workspaceConfig.ts +53 -0
- package/server/sample_schemas/lodging.sql +48 -0
- package/server/sample_schemas/maps.sql +73 -0
- package/server/sample_schemas/property_management/index.ts +2 -0
- package/server/sample_schemas/property_management/onMount.ts +55 -0
- package/server/sample_schemas/property_management/package.json +4 -0
- package/server/sample_schemas/property_management/tsconfig.json +16 -0
- package/server/sample_schemas/property_management/workspaceConfig.ts +92 -0
- package/server/sample_schemas/sales.sql +51 -0
- package/server/sample_schemas/sample.sql +72 -0
- package/server/sample_schemas/testschema.ts +21 -0
- package/server/sample_schemas/weather/index.ts +1 -0
- package/server/sample_schemas/weather/onMount.ts +284 -0
- package/server/sample_schemas/weather/package.json +4 -0
- package/server/sample_schemas/weather/tsconfig.json +16 -0
- package/server/scripts/preparePackage.mjs +18 -0
- package/server/src/BackupManager/BackupManager.ts +297 -0
- package/server/src/BackupManager/checkAutomaticBackup.ts +143 -0
- package/server/src/BackupManager/getInstalledPrograms.ts +203 -0
- package/server/src/BackupManager/pgDump.ts +242 -0
- package/server/src/BackupManager/pgRestore.ts +238 -0
- package/server/src/BackupManager/pipeFromCommand.ts +94 -0
- package/server/src/BackupManager/pipeToCommand.ts +66 -0
- package/server/src/BackupManager/utils.ts +124 -0
- package/server/src/ConnectionManager/ConnectionManager.ts +613 -0
- package/server/src/ConnectionManager/applyStartupSchemaConfig.ts +95 -0
- package/server/src/ConnectionManager/connectionManagerUtils.ts +164 -0
- package/server/src/ConnectionManager/connectionOnReady.ts +76 -0
- package/server/src/ConnectionManager/dbsConnectionOptions.ts +109 -0
- package/server/src/ConnectionManager/getConnectionAuth.ts +37 -0
- package/server/src/ConnectionManager/getConnectionHttpServer.ts +112 -0
- package/server/src/ConnectionManager/getConnectionPublish.ts +119 -0
- package/server/src/ConnectionManager/getConnectionServerFunctions.ts +108 -0
- package/server/src/ConnectionManager/getConnectionSocketPath.ts +12 -0
- package/server/src/ConnectionManager/getHotReloadConfigs.ts +161 -0
- package/server/src/ConnectionManager/getInitiatedPostgresqlPIDs.ts +84 -0
- package/server/src/ConnectionManager/getSchemaConfig.ts +84 -0
- package/server/src/ConnectionManager/initConnectionManager.ts +147 -0
- package/server/src/ConnectionManager/modifyClientSchema.ts +146 -0
- package/server/src/ConnectionManager/parseTableConfig.ts +231 -0
- package/server/src/ConnectionManager/saveCertificates.ts +68 -0
- package/server/src/ConnectionManager/startConnection.ts +353 -0
- package/server/src/ConnectionManager/startConnectionOnRequestHandler.ts +63 -0
- package/server/src/ConnectionManager/syncSchemaConfig.ts +98 -0
- package/server/src/Logger.ts +150 -0
- package/server/src/McpHub/AnthropicMcpHub/McpHub.ts +144 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/authenticateMcpServer.ts +98 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/connectToRemoteMCPServer.ts +176 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/createMcpOAuthProvider.ts +257 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/getMcpOAuthMetadata.ts +112 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/getRemoteMcpServerParameters.ts +82 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/saveServerInfo.ts +76 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/updateRemoteMcpAuthorizationCode.ts +100 -0
- package/server/src/McpHub/AnthropicMcpHub/McpTypes.ts +189 -0
- package/server/src/McpHub/AnthropicMcpHub/connectToMCPServer.ts +132 -0
- package/server/src/McpHub/AnthropicMcpHub/createMcpServerHandlers.ts +116 -0
- package/server/src/McpHub/AnthropicMcpHub/installMCPServer.ts +195 -0
- package/server/src/McpHub/AnthropicMcpHub/runShellCommand.ts +53 -0
- package/server/src/McpHub/AnthropicMcpHub/startMcpHub.ts +111 -0
- package/server/src/McpHub/DefaultMCPServers/DefaultMCPServers.ts +153 -0
- package/server/src/McpHub/DefaultMCPServers/mcpGithub.ts +968 -0
- package/server/src/McpHub/DockerSandbox/createBridgeInternalDockerNetwork.ts +35 -0
- package/server/src/McpHub/DockerSandbox/createContainer.spec.ts +195 -0
- package/server/src/McpHub/DockerSandbox/createContainer.ts +125 -0
- package/server/src/McpHub/DockerSandbox/dockerMCPServerProxy/dockerContainerAuthRegistry.ts +150 -0
- package/server/src/McpHub/DockerSandbox/dockerMCPServerProxy/dockerMCPServerProxy.ts +395 -0
- package/server/src/McpHub/DockerSandbox/dockerMCPServerProxy/getDockerGatewayIP.ts +27 -0
- package/server/src/McpHub/DockerSandbox/executeDockerCommand.ts +152 -0
- package/server/src/McpHub/DockerSandbox/getContainerLogs.ts +17 -0
- package/server/src/McpHub/DockerSandbox/getDockerRunArgs.ts +114 -0
- package/server/src/McpHub/DockerSandbox/runContainerWithProxyAccess.ts +99 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServerTypes.ts +143 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Db.mcp.ts +281 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Documents.mcp.ts +89 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/createAgenticWorkflow.ts +247 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/assertTablesExistInFutureSchema.ts +14 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/getValidatedMcpServerToolsAllowed.ts +155 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/parseDDLStatements.ts +84 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/quoteIdent.ts +139 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateAgenticWorkflowDefinitions.ts +102 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateDatabaseAccessDefinitions.ts +212 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateUserInput.ts +159 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateUserInputDefinitions.ts +36 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/execution/getVolumesFromUserInput.ts +134 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/execution/startAgenticWorkflowContainer.ts +341 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/createWorkflowExecutionHandlers.ts +155 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/getAgentConfigWithDefaults.ts +96 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/setupOrchestrationToolPermissions.ts +64 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/addInstrumentationToTsLogic.ts +350 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/callWorkflowProxy.ts +99 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/defineAgenticWorkflow.spec.ts +110 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/defineAgenticWorkflow.ts +576 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/defineAgenticWorkflowHandlers.ts +127 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/defineAgenticWorkflowHandlers.types.ts +72 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/definitionHandler.ts +104 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/ensureWorkflowIsExecuted.ts +53 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/getTsLogicSummary.ts +639 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/orchestrationToolHandlers.ts +55 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/tableHandlers.ts +108 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.spec.ts +26 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.ts +225 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getDefineAgenticWorkflowTsWithDbAndMcpTypes.ts +187 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getOrchestrationContainerFiles.ts +31 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getToolTypescriptSchemas.ts +84 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/startAgenticWorkflow.ts +181 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/fetchTools.ts +48 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/runCodeInSandboxContainer.ts +133 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/schemas/getAgenticToolSchemas.ts +55 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/schemas/getContainerToolProxyAccessInstructions.ts +22 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/schemas/getContainerToolSchemas.ts +46 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/schemas/prostglesUiToolSchemas.ts +23 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/schemas/suggestDashboardsToolSchema.ts +26 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/startAgent.ts +166 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/validateCreateDashboards.ts +249 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Ui.mcp.ts +343 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Web/Web.mcp.ts +265 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Web/checkConfigAccess.spec.ts +112 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Web/checkConfigAccess.ts +263 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Web/getDocumentText.ts +34 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/WebDev.mcp.ts +114 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/createComponent.ts +94 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/createComponentQuickFeedbackPreview.ts +53 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/getWebDevChatAndConnection.ts +12 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/searchWebDevFiles.spec.ts +82 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/searchWebDevFiles.ts +118 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/utils.ts +30 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/getClientDBHandlersForChat.ts +46 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/getExistingTablesSchema.ts +230 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers.ts +30 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMcpHub.ts +244 -0
- package/server/src/McpHub/callMCPServerTool.ts +148 -0
- package/server/src/McpHub/getMcpServerParameters.ts +204 -0
- package/server/src/McpHub/insertMcpServerList.ts +49 -0
- package/server/src/McpHub/reloadMcpServerTools.ts +123 -0
- package/server/src/McpHub/testMCPServerConfig.ts +29 -0
- package/server/src/McpHub/utils.ts +1 -0
- package/server/src/ServiceManager/ServiceManager.spec.ts +27 -0
- package/server/src/ServiceManager/ServiceManager.ts +162 -0
- package/server/src/ServiceManager/ServiceManagerTypes.ts +136 -0
- package/server/src/ServiceManager/buildService.ts +138 -0
- package/server/src/ServiceManager/dockerInspect.ts +33 -0
- package/server/src/ServiceManager/enableService.ts +41 -0
- package/server/src/ServiceManager/getDockerBuildHash.ts +57 -0
- package/server/src/ServiceManager/getSelectedConfigEnvs.ts +47 -0
- package/server/src/ServiceManager/getServiceEndpoints.ts +122 -0
- package/server/src/ServiceManager/initialiseServices.ts +56 -0
- package/server/src/ServiceManager/resolveBinary.ts +41 -0
- package/server/src/ServiceManager/services/documents/documents.service.ts +178 -0
- package/server/src/ServiceManager/services/documents/documents.service.types.ts +43 -0
- package/server/src/ServiceManager/services/documents/src/Dockerfile +29 -0
- package/server/src/ServiceManager/services/documents/src/layout_postprocessor.py +707 -0
- package/server/src/ServiceManager/services/documents/src/requirements.txt +3 -0
- package/server/src/ServiceManager/services/frontendDev/frontendDev.service.ts +19 -0
- package/server/src/ServiceManager/services/frontendDev/src/.prettierrc +3 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/.env.development +1 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/Dockerfile +5 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/README.md +6 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/eslint.config.js +27 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/index.html +13 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/package.json +32 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/public/vite.svg +1 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/App.css +42 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/App.tsx +19 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/api/DBGeneratedSchema.d.ts +33 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/api/ProstglesProvider.tsx +61 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/assets/react.svg +1 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/components/SampleComponent/SampleComponent.tsx +11 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/index.css +68 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/main.tsx +23 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/pages/ComponentPreview.tsx +31 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/pages/Home.tsx +36 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/tsconfig.app.json +28 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/tsconfig.json +7 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/tsconfig.node.json +26 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/vite.config.ts +17 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/package.json +24 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/playwright.config.ts +36 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/tests/coverage.ts +67 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/tests/main.spec.ts +21 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/tests/tsconfig.json +13 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/tsconfig.json +13 -0
- package/server/src/ServiceManager/services/frontendDev/src/package.json +15 -0
- package/server/src/ServiceManager/services/frontendDev/src/tsconfig.base.json +32 -0
- package/server/src/ServiceManager/services/speechToText/TRANSCRIBE_OUTPUT_SCHEMA.ts +53 -0
- package/server/src/ServiceManager/services/speechToText/speechToText.service.ts +125 -0
- package/server/src/ServiceManager/services/speechToText/src/Dockerfile +31 -0
- package/server/src/ServiceManager/services/speechToText/src/app.py +115 -0
- package/server/src/ServiceManager/services/speechToText/src/requirements.txt +3 -0
- package/server/src/ServiceManager/services/webSearchSearxng/src/Dockerfile +12 -0
- package/server/src/ServiceManager/services/webSearchSearxng/src/limiter.toml +0 -0
- package/server/src/ServiceManager/services/webSearchSearxng/src/settings.yml +11 -0
- package/server/src/ServiceManager/services/webSearchSearxng/webSearchSearxng.service.ts +36 -0
- package/server/src/ServiceManager/startService.ts +196 -0
- package/server/src/ServiceManager/stopService.ts +23 -0
- package/server/src/ServiceManager/withRetries.ts +19 -0
- package/server/src/authConfig/OAuthProviders/getOAuthLoginProviders.ts +67 -0
- package/server/src/authConfig/OAuthProviders/loginWithProvider.ts +94 -0
- package/server/src/authConfig/authUtils.ts +19 -0
- package/server/src/authConfig/createPasswordlessAdminSessionIfNeeded.ts +86 -0
- package/server/src/authConfig/createPublicUserSessionIfAllowed.ts +48 -0
- package/server/src/authConfig/emailProvider/getEmailAuthProvider.ts +44 -0
- package/server/src/authConfig/emailProvider/getEmailSenderWithMockTest.ts +96 -0
- package/server/src/authConfig/emailProvider/onEmailRegistration.ts +116 -0
- package/server/src/authConfig/getActiveSession.ts +76 -0
- package/server/src/authConfig/getAuth.ts +171 -0
- package/server/src/authConfig/getLogin.ts +206 -0
- package/server/src/authConfig/getUser.ts +108 -0
- package/server/src/authConfig/onMagicLinkOrOTP.ts +171 -0
- package/server/src/authConfig/onUseOrSocketConnected.ts +43 -0
- package/server/src/authConfig/sessionUtils.ts +120 -0
- package/server/src/authConfig/startRateLimitedLoginAttempt.ts +201 -0
- package/server/src/authConfig/subscribeToAuthSetupChanges.ts +144 -0
- package/server/src/authConfig/upsertSession.ts +48 -0
- package/server/src/cli/cli.ts +217 -0
- package/server/src/cli/cliUtils.ts +50 -0
- package/server/src/cloudClients/cloudClients.ts +116 -0
- package/server/src/connectionUtils/getConnectionDetails.ts +76 -0
- package/server/src/connectionUtils/testDBConnection.ts +167 -0
- package/server/src/connectionUtils/validateConnection.ts +114 -0
- package/server/src/createHttpAndIOServers/createHttpServer.ts +147 -0
- package/server/src/createHttpAndIOServers/createIOWebsocketServer.ts +31 -0
- package/server/src/createHttpAndIOServers/getCorsOptions.ts +58 -0
- package/server/src/createHttpAndIOServers/setHttpAppSecurity.ts +124 -0
- package/server/src/electronConfig.ts +223 -0
- package/server/src/envVars.ts +45 -0
- package/server/src/getPSQLQueries.ts +123 -0
- package/server/src/index.ts +273 -0
- package/server/src/init/CSP_DEFAULTS.ts +41 -0
- package/server/src/init/addDevImageProxyRoute.ts +74 -0
- package/server/src/init/cleanupTestDatabases.ts +51 -0
- package/server/src/init/initExpressAndIOServers.ts +127 -0
- package/server/src/init/initUsers.ts +113 -0
- package/server/src/init/insertStateDatabase.ts +72 -0
- package/server/src/init/isRetryableError.ts +50 -0
- package/server/src/init/logOutgoingHttpRequests.ts +15 -0
- package/server/src/init/prostglesOnReady.ts +147 -0
- package/server/src/init/saveTypescriptFilesForProduction.ts +113 -0
- package/server/src/init/setDBSRoutesForElectron.ts +206 -0
- package/server/src/init/startDevHotReloadNotifier.ts +39 -0
- package/server/src/init/startProstgles.ts +220 -0
- package/server/src/init/tryStartProstgles.ts +177 -0
- package/server/src/init/utils.ts +44 -0
- package/server/src/init.sql +1 -0
- package/server/src/methods/getPidStats.ts +336 -0
- package/server/src/methods/getPidStatsFromProc.ts +125 -0
- package/server/src/methods/statusMonitorUtils.ts +148 -0
- package/server/src/publish/getPublishLLM.ts +246 -0
- package/server/src/publish/getPublishLlmChats.ts +73 -0
- package/server/src/publish/publish.ts +398 -0
- package/server/src/schemaConfig.ts +97 -0
- package/server/src/serverFunctions/adminServerFunctions/getAdminServerFunctions.ts +477 -0
- package/server/src/serverFunctions/adminServerFunctions/getAgenticWorkflowFunctions.ts +186 -0
- package/server/src/serverFunctions/adminServerFunctions/getBackupServerFunctions.ts +178 -0
- package/server/src/serverFunctions/adminServerFunctions/getDefineAdminFunction.ts +11 -0
- package/server/src/serverFunctions/adminServerFunctions/getMcpServerFunctions.ts +283 -0
- package/server/src/serverFunctions/adminServerFunctions/getWebAppServerFunctions.ts +228 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/buildWebApp.ts +38 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getReactComponents copy.ts +188 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getReactComponents.ts +287 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getReactRenderTree.ts +180 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getTemplatedWebAppConnection.ts +23 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getValidatedWebAppPath.spec.ts +77 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getValidatedWebAppPath.ts +22 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/readWebAppFiles.ts +45 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/runDockerForWebApp.ts +56 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/testWebApp.ts +30 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/writeWebAppFiles.ts +91 -0
- package/server/src/serverFunctions/applySampleSchema.ts +96 -0
- package/server/src/serverFunctions/askLLM/LLMResponseTypes.ts +315 -0
- package/server/src/serverFunctions/askLLM/agentConstants.ts +42 -0
- package/server/src/serverFunctions/askLLM/askLLM.ts +540 -0
- package/server/src/serverFunctions/askLLM/checkLLMLimit.ts +59 -0
- package/server/src/serverFunctions/askLLM/checkMaxCostLimitForChat.ts +51 -0
- package/server/src/serverFunctions/askLLM/defaultPrompts/base.prompt.ts +26 -0
- package/server/src/serverFunctions/askLLM/defaultPrompts/createAgenticWorkflow.prompt.ts +53 -0
- package/server/src/serverFunctions/askLLM/defaultPrompts/createDashboards.prompt.ts +15 -0
- package/server/src/serverFunctions/askLLM/fetchLLMResponse.ts +105 -0
- package/server/src/serverFunctions/askLLM/getCompactedMessages.ts +101 -0
- package/server/src/serverFunctions/askLLM/getFullPrompt.ts +86 -0
- package/server/src/serverFunctions/askLLM/getLLMRequestBody.ts +368 -0
- package/server/src/serverFunctions/askLLM/getLLMToolsAllowedInThisChat.ts +179 -0
- package/server/src/serverFunctions/askLLM/getLLMUsageCost.ts +91 -0
- package/server/src/serverFunctions/askLLM/getPastMessages.ts +9 -0
- package/server/src/serverFunctions/askLLM/getUserMessageCost.ts +21 -0
- package/server/src/serverFunctions/askLLM/getValidatedAskLLMChatOptions.ts +59 -0
- package/server/src/serverFunctions/askLLM/handleToolUseResultConfirmation.ts +87 -0
- package/server/src/serverFunctions/askLLM/parseLLMResponseObject.ts +206 -0
- package/server/src/serverFunctions/askLLM/prostglesLLMTools/getDbConnectionWithPermissions.ts +94 -0
- package/server/src/serverFunctions/askLLM/prostglesLLMTools/getMCPServerTools.ts +28 -0
- package/server/src/serverFunctions/askLLM/prostglesLLMTools/getMcpToolsWithDynamicDescription.ts +77 -0
- package/server/src/serverFunctions/askLLM/prostglesLLMTools/getTemplateUserConnection.ts +182 -0
- package/server/src/serverFunctions/askLLM/readFetchStream.ts +69 -0
- package/server/src/serverFunctions/askLLM/refreshModels.ts +223 -0
- package/server/src/serverFunctions/askLLM/runApprovedTools/getMostSimilar.ts +55 -0
- package/server/src/serverFunctions/askLLM/runApprovedTools/runAgentGoalTool.ts +116 -0
- package/server/src/serverFunctions/askLLM/runApprovedTools/runApprovedTools.ts +348 -0
- package/server/src/serverFunctions/askLLM/runApprovedTools/validateLastMessageToolUseRequests.ts +33 -0
- package/server/src/serverFunctions/askLLM/setupLLM.ts +176 -0
- package/server/src/serverFunctions/askLLM/setupLLMProviders.ts +186 -0
- package/server/src/serverFunctions/deleteConnection.ts +111 -0
- package/server/src/serverFunctions/getConnectionAndDatabaseConfig.ts +27 -0
- package/server/src/serverFunctions/getNodeTypes.spec.ts +80 -0
- package/server/src/serverFunctions/getNodeTypes.ts +306 -0
- package/server/src/serverFunctions/getServerFunctions.ts +163 -0
- package/server/src/serverFunctions/getServerFunctionsContext.ts +29 -0
- package/server/src/serverFunctions/prostglesSignup.ts +28 -0
- package/server/src/serverFunctions/setFileStorage.ts +107 -0
- package/server/src/serverFunctions/userServerFunctions/approveToolUse.ts +146 -0
- package/server/src/serverFunctions/userServerFunctions/getLLMAccessParams.ts +21 -0
- package/server/src/serverFunctions/userServerFunctions/getUserServerFunctions.ts +260 -0
- package/server/src/tableConfig/tableConfig.ts +374 -0
- package/server/src/tableConfig/tableConfigAccessControl.ts +212 -0
- package/server/src/tableConfig/tableConfigAgenticWorkflow.ts +174 -0
- package/server/src/tableConfig/tableConfigBackups.ts +160 -0
- package/server/src/tableConfig/tableConfigConnections.ts +182 -0
- package/server/src/tableConfig/tableConfigDatabaseConfig.ts +714 -0
- package/server/src/tableConfig/tableConfigGlobalSettings.ts +40 -0
- package/server/src/tableConfig/tableConfigLinks.ts +273 -0
- package/server/src/tableConfig/tableConfigLlm/tableConfigLlm.ts +347 -0
- package/server/src/tableConfig/tableConfigLlm/tableConfigLlmChats.ts +361 -0
- package/server/src/tableConfig/tableConfigLlm/tableConfigLlmExtraRequestData.ts +50 -0
- package/server/src/tableConfig/tableConfigMCPServers.ts +676 -0
- package/server/src/tableConfig/tableConfigMigrations.ts +26 -0
- package/server/src/tableConfig/tableConfigPublishedMethods.ts +120 -0
- package/server/src/tableConfig/tableConfigServices.ts +61 -0
- package/server/src/tableConfig/tableConfigUsers.ts +227 -0
- package/server/src/tableConfig/tableConfigWebApp.ts +17 -0
- package/server/src/tableConfig/tableConfigWindows.ts +164 -0
- package/server/src/tableConfig/tableConfigWorkspaces.ts +100 -0
- package/server/src/tableConfig/tablePermissionsSchema.ts +66 -0
- package/server/src/testElectron.ts +33 -0
- package/server/src/upsertConnection.ts +73 -0
- package/server/src/utils/assertIconExists.ts +24 -0
- package/server/src/utils/isPortFree.ts +40 -0
- package/server/src/utils/tout.ts +7 -0
- package/server/test-runner.mjs +28 -0
- package/server/tsconfig.json +45 -0
- package/server/tslint.json +8 -0
|
@@ -0,0 +1,1413 @@
|
|
|
1
|
+
export const prostglesUIFoodDeliveryDashboardSample = {
|
|
2
|
+
prostglesWorkspaces: [
|
|
3
|
+
{
|
|
4
|
+
icon: "ClipboardList",
|
|
5
|
+
name: "Order Management",
|
|
6
|
+
layout: {
|
|
7
|
+
id: "order-root",
|
|
8
|
+
size: 1,
|
|
9
|
+
type: "col",
|
|
10
|
+
items: [
|
|
11
|
+
{
|
|
12
|
+
id: "order-top-row",
|
|
13
|
+
size: 0.6,
|
|
14
|
+
type: "row",
|
|
15
|
+
items: [
|
|
16
|
+
{
|
|
17
|
+
id: "orders-table",
|
|
18
|
+
size: 0.7,
|
|
19
|
+
type: "item",
|
|
20
|
+
viewType: "table",
|
|
21
|
+
tableName: "orders",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: "order-status-chart",
|
|
25
|
+
size: 0.3,
|
|
26
|
+
type: "item",
|
|
27
|
+
viewType: "timechart",
|
|
28
|
+
tableName: "orders",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "order-items-table",
|
|
34
|
+
size: 0.4,
|
|
35
|
+
type: "item",
|
|
36
|
+
viewType: "table",
|
|
37
|
+
tableName: "order_items",
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
isRoot: true,
|
|
41
|
+
},
|
|
42
|
+
windows: [
|
|
43
|
+
{
|
|
44
|
+
id: "orders-table",
|
|
45
|
+
sort: [
|
|
46
|
+
{
|
|
47
|
+
asc: false,
|
|
48
|
+
key: "created_at",
|
|
49
|
+
nulls: "last",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
type: "table",
|
|
53
|
+
columns: [
|
|
54
|
+
{
|
|
55
|
+
name: "id",
|
|
56
|
+
width: 80,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "restaurant_id",
|
|
60
|
+
width: 120,
|
|
61
|
+
nested: {
|
|
62
|
+
path: [
|
|
63
|
+
{
|
|
64
|
+
on: [
|
|
65
|
+
{
|
|
66
|
+
restaurant_id: "id",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
table: "restaurants",
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
limit: 1,
|
|
73
|
+
columns: [
|
|
74
|
+
{
|
|
75
|
+
name: "name",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
joinType: "left",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "customer_id",
|
|
83
|
+
width: 120,
|
|
84
|
+
nested: {
|
|
85
|
+
path: [
|
|
86
|
+
{
|
|
87
|
+
on: [
|
|
88
|
+
{
|
|
89
|
+
customer_id: "id",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
table: "users",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
limit: 1,
|
|
96
|
+
columns: [
|
|
97
|
+
{
|
|
98
|
+
name: "first_name",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "last_name",
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
joinType: "left",
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "status",
|
|
109
|
+
width: 120,
|
|
110
|
+
styling: {
|
|
111
|
+
type: "conditional",
|
|
112
|
+
conditions: [
|
|
113
|
+
{
|
|
114
|
+
value: "pending",
|
|
115
|
+
operator: "=",
|
|
116
|
+
chipColor: "yellow",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
value: "confirmed",
|
|
120
|
+
operator: "=",
|
|
121
|
+
chipColor: "blue",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
value: "preparing",
|
|
125
|
+
operator: "=",
|
|
126
|
+
chipColor: "indigo",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
value: "ready",
|
|
130
|
+
operator: "=",
|
|
131
|
+
chipColor: "purple",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
value: "picked_up",
|
|
135
|
+
operator: "=",
|
|
136
|
+
chipColor: "gray",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
value: "delivered",
|
|
140
|
+
operator: "=",
|
|
141
|
+
chipColor: "green",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
value: "cancelled",
|
|
145
|
+
operator: "=",
|
|
146
|
+
chipColor: "red",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: "total_price",
|
|
153
|
+
width: 100,
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "created_at",
|
|
157
|
+
width: 180,
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
table_name: "orders",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: "order-status-chart",
|
|
164
|
+
type: "timechart",
|
|
165
|
+
layers: [
|
|
166
|
+
{
|
|
167
|
+
yAxis: "count(*)",
|
|
168
|
+
table_name: "orders",
|
|
169
|
+
dateColumn: "created_at",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: "order-items-table",
|
|
175
|
+
type: "table",
|
|
176
|
+
columns: [
|
|
177
|
+
{
|
|
178
|
+
name: "order_id",
|
|
179
|
+
width: 100,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: "menu_item_id",
|
|
183
|
+
width: 120,
|
|
184
|
+
nested: {
|
|
185
|
+
path: [
|
|
186
|
+
{
|
|
187
|
+
on: [
|
|
188
|
+
{
|
|
189
|
+
menu_item_id: "id",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
table: "menu_items",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
limit: 1,
|
|
196
|
+
columns: [
|
|
197
|
+
{
|
|
198
|
+
name: "name",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: "category",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
joinType: "left",
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: "quantity",
|
|
209
|
+
width: 80,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "price",
|
|
213
|
+
width: 100,
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
table_name: "order_items",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
icon: "StorefrontOutline",
|
|
222
|
+
name: "Restaurant Analytics",
|
|
223
|
+
layout: {
|
|
224
|
+
id: "restaurant-root",
|
|
225
|
+
size: 1,
|
|
226
|
+
type: "col",
|
|
227
|
+
items: [
|
|
228
|
+
{
|
|
229
|
+
id: "restaurant-top-row",
|
|
230
|
+
size: 0.5,
|
|
231
|
+
type: "row",
|
|
232
|
+
items: [
|
|
233
|
+
{
|
|
234
|
+
id: "restaurants-table",
|
|
235
|
+
size: 0.6,
|
|
236
|
+
type: "item",
|
|
237
|
+
viewType: "table",
|
|
238
|
+
tableName: "restaurants",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
id: "restaurant-ratings",
|
|
242
|
+
size: 0.4,
|
|
243
|
+
type: "item",
|
|
244
|
+
viewType: "table",
|
|
245
|
+
tableName: "ratings",
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
id: "restaurant-bottom-row",
|
|
251
|
+
size: 0.5,
|
|
252
|
+
type: "row",
|
|
253
|
+
items: [
|
|
254
|
+
{
|
|
255
|
+
id: "menu-items-table",
|
|
256
|
+
size: 0.7,
|
|
257
|
+
type: "item",
|
|
258
|
+
viewType: "table",
|
|
259
|
+
tableName: "menu_items",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
id: "revenue-chart",
|
|
263
|
+
size: 0.3,
|
|
264
|
+
type: "item",
|
|
265
|
+
viewType: "timechart",
|
|
266
|
+
tableName: "orders",
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
isRoot: true,
|
|
272
|
+
},
|
|
273
|
+
windows: [
|
|
274
|
+
{
|
|
275
|
+
id: "restaurants-table",
|
|
276
|
+
type: "table",
|
|
277
|
+
columns: [
|
|
278
|
+
{
|
|
279
|
+
name: "id",
|
|
280
|
+
width: 80,
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: "name",
|
|
284
|
+
width: 200,
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "address",
|
|
288
|
+
width: 250,
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "created_at",
|
|
292
|
+
width: 180,
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
table_name: "restaurants",
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
id: "restaurant-ratings",
|
|
299
|
+
sort: [
|
|
300
|
+
{
|
|
301
|
+
asc: false,
|
|
302
|
+
key: "created_at",
|
|
303
|
+
nulls: "last",
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
type: "table",
|
|
307
|
+
columns: [
|
|
308
|
+
{
|
|
309
|
+
name: "restaurant_id",
|
|
310
|
+
width: 120,
|
|
311
|
+
nested: {
|
|
312
|
+
path: [
|
|
313
|
+
{
|
|
314
|
+
on: [
|
|
315
|
+
{
|
|
316
|
+
restaurant_id: "id",
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
table: "restaurants",
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
limit: 1,
|
|
323
|
+
columns: [
|
|
324
|
+
{
|
|
325
|
+
name: "name",
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
joinType: "left",
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
name: "rating",
|
|
333
|
+
width: 80,
|
|
334
|
+
styling: {
|
|
335
|
+
type: "conditional",
|
|
336
|
+
conditions: [
|
|
337
|
+
{
|
|
338
|
+
value: "2",
|
|
339
|
+
operator: "<=",
|
|
340
|
+
chipColor: "red",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
value: "3",
|
|
344
|
+
operator: "=",
|
|
345
|
+
chipColor: "yellow",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
value: "4",
|
|
349
|
+
operator: "=",
|
|
350
|
+
chipColor: "blue",
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
value: "5",
|
|
354
|
+
operator: "=",
|
|
355
|
+
chipColor: "green",
|
|
356
|
+
},
|
|
357
|
+
],
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
name: "review",
|
|
362
|
+
width: 300,
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: "created_at",
|
|
366
|
+
width: 150,
|
|
367
|
+
},
|
|
368
|
+
],
|
|
369
|
+
table_name: "ratings",
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
id: "menu-items-table",
|
|
373
|
+
type: "table",
|
|
374
|
+
columns: [
|
|
375
|
+
{
|
|
376
|
+
name: "restaurant_id",
|
|
377
|
+
width: 120,
|
|
378
|
+
nested: {
|
|
379
|
+
path: [
|
|
380
|
+
{
|
|
381
|
+
on: [
|
|
382
|
+
{
|
|
383
|
+
restaurant_id: "id",
|
|
384
|
+
},
|
|
385
|
+
],
|
|
386
|
+
table: "restaurants",
|
|
387
|
+
},
|
|
388
|
+
],
|
|
389
|
+
limit: 1,
|
|
390
|
+
columns: [
|
|
391
|
+
{
|
|
392
|
+
name: "name",
|
|
393
|
+
},
|
|
394
|
+
],
|
|
395
|
+
joinType: "left",
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
name: "name",
|
|
400
|
+
width: 200,
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: "category",
|
|
404
|
+
width: 120,
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: "price",
|
|
408
|
+
width: 100,
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
name: "description",
|
|
412
|
+
width: 300,
|
|
413
|
+
},
|
|
414
|
+
],
|
|
415
|
+
table_name: "menu_items",
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
id: "revenue-chart",
|
|
419
|
+
type: "timechart",
|
|
420
|
+
layers: [
|
|
421
|
+
{
|
|
422
|
+
yAxis: {
|
|
423
|
+
column: "total_price",
|
|
424
|
+
aggregation: "sum",
|
|
425
|
+
},
|
|
426
|
+
table_name: "orders",
|
|
427
|
+
dateColumn: "created_at",
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
icon: "TruckDelivery",
|
|
435
|
+
name: "Delivery Operations",
|
|
436
|
+
layout: {
|
|
437
|
+
id: "delivery-root",
|
|
438
|
+
size: 1,
|
|
439
|
+
type: "col",
|
|
440
|
+
items: [
|
|
441
|
+
{
|
|
442
|
+
id: "delivery-top-row",
|
|
443
|
+
size: 0.6,
|
|
444
|
+
type: "row",
|
|
445
|
+
items: [
|
|
446
|
+
{
|
|
447
|
+
id: "active-deliveries",
|
|
448
|
+
size: 0.5,
|
|
449
|
+
type: "item",
|
|
450
|
+
viewType: "table",
|
|
451
|
+
tableName: "orders",
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
id: "delivery-map",
|
|
455
|
+
size: 0.5,
|
|
456
|
+
type: "item",
|
|
457
|
+
viewType: "map",
|
|
458
|
+
tableName: "v_riders",
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
id: "delivery-status-changes",
|
|
464
|
+
size: 0.4,
|
|
465
|
+
type: "item",
|
|
466
|
+
viewType: "table",
|
|
467
|
+
tableName: "delivery_status_changes",
|
|
468
|
+
},
|
|
469
|
+
],
|
|
470
|
+
isRoot: true,
|
|
471
|
+
},
|
|
472
|
+
windows: [
|
|
473
|
+
{
|
|
474
|
+
id: "active-deliveries",
|
|
475
|
+
type: "table",
|
|
476
|
+
filter: [
|
|
477
|
+
{
|
|
478
|
+
type: "$in",
|
|
479
|
+
value: ["confirmed", "preparing", "ready", "out_for_delivery"],
|
|
480
|
+
fieldName: "status",
|
|
481
|
+
},
|
|
482
|
+
],
|
|
483
|
+
columns: [
|
|
484
|
+
{
|
|
485
|
+
name: "id",
|
|
486
|
+
width: 80,
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
name: "deliverer_id",
|
|
490
|
+
width: 120,
|
|
491
|
+
nested: {
|
|
492
|
+
path: [
|
|
493
|
+
{
|
|
494
|
+
on: [
|
|
495
|
+
{
|
|
496
|
+
deliverer_id: "id",
|
|
497
|
+
},
|
|
498
|
+
],
|
|
499
|
+
table: "users",
|
|
500
|
+
},
|
|
501
|
+
],
|
|
502
|
+
limit: 1,
|
|
503
|
+
columns: [
|
|
504
|
+
{
|
|
505
|
+
name: "first_name",
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
name: "last_name",
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
joinType: "left",
|
|
512
|
+
},
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
name: "status",
|
|
516
|
+
width: 120,
|
|
517
|
+
styling: {
|
|
518
|
+
type: "conditional",
|
|
519
|
+
conditions: [
|
|
520
|
+
{
|
|
521
|
+
value: "confirmed",
|
|
522
|
+
operator: "=",
|
|
523
|
+
chipColor: "yellow",
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
value: "preparing",
|
|
527
|
+
operator: "=",
|
|
528
|
+
chipColor: "blue",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
value: "ready",
|
|
532
|
+
operator: "=",
|
|
533
|
+
chipColor: "purple",
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
value: "out_for_delivery",
|
|
537
|
+
operator: "=",
|
|
538
|
+
chipColor: "indigo",
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
},
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
name: "created_at",
|
|
545
|
+
width: 150,
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
name: "updated_at",
|
|
549
|
+
width: 150,
|
|
550
|
+
},
|
|
551
|
+
],
|
|
552
|
+
table_name: "orders",
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
id: "delivery-map",
|
|
556
|
+
type: "map",
|
|
557
|
+
layers: [
|
|
558
|
+
{
|
|
559
|
+
geoColumn: "rider_location",
|
|
560
|
+
table_name: "v_riders",
|
|
561
|
+
},
|
|
562
|
+
],
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
id: "delivery-status-changes",
|
|
566
|
+
sort: [
|
|
567
|
+
{
|
|
568
|
+
asc: false,
|
|
569
|
+
key: "created_at",
|
|
570
|
+
nulls: "last",
|
|
571
|
+
},
|
|
572
|
+
],
|
|
573
|
+
type: "table",
|
|
574
|
+
columns: [
|
|
575
|
+
{
|
|
576
|
+
name: "order_id",
|
|
577
|
+
width: 100,
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
name: "delivery_status",
|
|
581
|
+
width: 150,
|
|
582
|
+
styling: {
|
|
583
|
+
type: "conditional",
|
|
584
|
+
conditions: [
|
|
585
|
+
{
|
|
586
|
+
value: "assigned",
|
|
587
|
+
operator: "=",
|
|
588
|
+
chipColor: "blue",
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
value: "picked_up",
|
|
592
|
+
operator: "=",
|
|
593
|
+
chipColor: "yellow",
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
value: "in_transit",
|
|
597
|
+
operator: "=",
|
|
598
|
+
chipColor: "purple",
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
value: "delivered",
|
|
602
|
+
operator: "=",
|
|
603
|
+
chipColor: "green",
|
|
604
|
+
},
|
|
605
|
+
],
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
name: "created_at",
|
|
610
|
+
width: 180,
|
|
611
|
+
},
|
|
612
|
+
],
|
|
613
|
+
table_name: "delivery_status_changes",
|
|
614
|
+
},
|
|
615
|
+
],
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
icon: "MapMarker",
|
|
619
|
+
name: "Geographic Overview",
|
|
620
|
+
layout: {
|
|
621
|
+
id: "geo-root",
|
|
622
|
+
size: 1,
|
|
623
|
+
type: "row",
|
|
624
|
+
items: [
|
|
625
|
+
{
|
|
626
|
+
id: "restaurant-map",
|
|
627
|
+
size: 0.5,
|
|
628
|
+
type: "item",
|
|
629
|
+
viewType: "map",
|
|
630
|
+
tableName: "london_restaurants.geojson",
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
id: "user-map",
|
|
634
|
+
size: 0.5,
|
|
635
|
+
type: "item",
|
|
636
|
+
viewType: "map",
|
|
637
|
+
tableName: "customers",
|
|
638
|
+
},
|
|
639
|
+
],
|
|
640
|
+
isRoot: true,
|
|
641
|
+
},
|
|
642
|
+
windows: [
|
|
643
|
+
{
|
|
644
|
+
id: "restaurant-map",
|
|
645
|
+
type: "map",
|
|
646
|
+
layers: [
|
|
647
|
+
{
|
|
648
|
+
geoColumn: "geometry",
|
|
649
|
+
table_name: "london_restaurants.geojson",
|
|
650
|
+
},
|
|
651
|
+
],
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
id: "user-map",
|
|
655
|
+
type: "map",
|
|
656
|
+
layers: [
|
|
657
|
+
{
|
|
658
|
+
geoColumn: "rider_location",
|
|
659
|
+
table_name: "customers",
|
|
660
|
+
},
|
|
661
|
+
],
|
|
662
|
+
},
|
|
663
|
+
],
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
icon: "AccountGroup",
|
|
667
|
+
name: "Customer Insights",
|
|
668
|
+
layout: {
|
|
669
|
+
id: "customer-root",
|
|
670
|
+
size: 1,
|
|
671
|
+
type: "col",
|
|
672
|
+
items: [
|
|
673
|
+
{
|
|
674
|
+
id: "customer-top-row",
|
|
675
|
+
size: 0.5,
|
|
676
|
+
type: "row",
|
|
677
|
+
items: [
|
|
678
|
+
{
|
|
679
|
+
id: "customers-table",
|
|
680
|
+
size: 0.6,
|
|
681
|
+
type: "item",
|
|
682
|
+
viewType: "table",
|
|
683
|
+
tableName: "customers",
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
id: "customer-orders-chart",
|
|
687
|
+
size: 0.4,
|
|
688
|
+
type: "item",
|
|
689
|
+
viewType: "timechart",
|
|
690
|
+
tableName: "customers",
|
|
691
|
+
},
|
|
692
|
+
],
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
id: "customer-addresses",
|
|
696
|
+
size: 0.5,
|
|
697
|
+
type: "item",
|
|
698
|
+
viewType: "table",
|
|
699
|
+
tableName: "user_addresses",
|
|
700
|
+
},
|
|
701
|
+
],
|
|
702
|
+
isRoot: true,
|
|
703
|
+
},
|
|
704
|
+
windows: [
|
|
705
|
+
{
|
|
706
|
+
id: "customers-table",
|
|
707
|
+
sort: [
|
|
708
|
+
{
|
|
709
|
+
asc: false,
|
|
710
|
+
key: "total_orders",
|
|
711
|
+
nulls: "last",
|
|
712
|
+
},
|
|
713
|
+
],
|
|
714
|
+
type: "table",
|
|
715
|
+
filter: [
|
|
716
|
+
{
|
|
717
|
+
type: "$eq",
|
|
718
|
+
value: "customer",
|
|
719
|
+
fieldName: "type",
|
|
720
|
+
},
|
|
721
|
+
],
|
|
722
|
+
columns: [
|
|
723
|
+
{
|
|
724
|
+
name: "id",
|
|
725
|
+
width: 80,
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
name: "first_name",
|
|
729
|
+
width: 120,
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
name: "last_name",
|
|
733
|
+
width: 120,
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
name: "email",
|
|
737
|
+
width: 200,
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
name: "phone_number",
|
|
741
|
+
width: 150,
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
name: "total_orders",
|
|
745
|
+
width: 120,
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
name: "last_order",
|
|
749
|
+
width: 180,
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
name: "created_at",
|
|
753
|
+
width: 180,
|
|
754
|
+
},
|
|
755
|
+
],
|
|
756
|
+
table_name: "customers",
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
id: "customer-orders-chart",
|
|
760
|
+
type: "timechart",
|
|
761
|
+
layers: [
|
|
762
|
+
{
|
|
763
|
+
yAxis: "count(*)",
|
|
764
|
+
table_name: "customers",
|
|
765
|
+
dateColumn: "created_at",
|
|
766
|
+
},
|
|
767
|
+
],
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
id: "customer-addresses",
|
|
771
|
+
type: "table",
|
|
772
|
+
columns: [
|
|
773
|
+
{
|
|
774
|
+
name: "user_id",
|
|
775
|
+
width: 100,
|
|
776
|
+
nested: {
|
|
777
|
+
path: [
|
|
778
|
+
{
|
|
779
|
+
on: [
|
|
780
|
+
{
|
|
781
|
+
user_id: "id",
|
|
782
|
+
},
|
|
783
|
+
],
|
|
784
|
+
table: "users",
|
|
785
|
+
},
|
|
786
|
+
],
|
|
787
|
+
limit: 1,
|
|
788
|
+
columns: [
|
|
789
|
+
{
|
|
790
|
+
name: "first_name",
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
name: "last_name",
|
|
794
|
+
},
|
|
795
|
+
],
|
|
796
|
+
joinType: "left",
|
|
797
|
+
},
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
name: "address_id",
|
|
801
|
+
width: 120,
|
|
802
|
+
nested: {
|
|
803
|
+
path: [
|
|
804
|
+
{
|
|
805
|
+
on: [
|
|
806
|
+
{
|
|
807
|
+
address_id: "id",
|
|
808
|
+
},
|
|
809
|
+
],
|
|
810
|
+
table: "addresses",
|
|
811
|
+
},
|
|
812
|
+
],
|
|
813
|
+
limit: 1,
|
|
814
|
+
columns: [
|
|
815
|
+
{
|
|
816
|
+
name: "street",
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
name: "city",
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
name: "postal_code",
|
|
823
|
+
},
|
|
824
|
+
],
|
|
825
|
+
joinType: "left",
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
],
|
|
829
|
+
table_name: "user_addresses",
|
|
830
|
+
},
|
|
831
|
+
],
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
icon: "StarOutline",
|
|
835
|
+
name: "Restaurant Performance",
|
|
836
|
+
layout: {
|
|
837
|
+
id: "customer-root",
|
|
838
|
+
size: 1,
|
|
839
|
+
type: "col",
|
|
840
|
+
items: [
|
|
841
|
+
{
|
|
842
|
+
id: "restaurants_main_table",
|
|
843
|
+
size: 1,
|
|
844
|
+
type: "item",
|
|
845
|
+
viewType: "table",
|
|
846
|
+
tableName: "restaurants",
|
|
847
|
+
},
|
|
848
|
+
],
|
|
849
|
+
},
|
|
850
|
+
windows: [
|
|
851
|
+
{
|
|
852
|
+
id: "restaurants_main_table",
|
|
853
|
+
sort: [
|
|
854
|
+
{
|
|
855
|
+
asc: false,
|
|
856
|
+
key: "created_at",
|
|
857
|
+
nulls: "last",
|
|
858
|
+
},
|
|
859
|
+
],
|
|
860
|
+
type: "table",
|
|
861
|
+
title: "Restaurants with useful bar/time chart columns",
|
|
862
|
+
columns: [
|
|
863
|
+
{
|
|
864
|
+
name: "id",
|
|
865
|
+
width: 80,
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
name: "name",
|
|
869
|
+
width: 180,
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
name: "type",
|
|
873
|
+
width: 120,
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
name: "website",
|
|
877
|
+
width: 180,
|
|
878
|
+
format: {
|
|
879
|
+
type: "URL",
|
|
880
|
+
},
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
name: "is_popular",
|
|
884
|
+
width: 90,
|
|
885
|
+
styling: {
|
|
886
|
+
type: "Icons",
|
|
887
|
+
valueToIconMap: {
|
|
888
|
+
true: "Star",
|
|
889
|
+
false: "StarOutline",
|
|
890
|
+
},
|
|
891
|
+
},
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
name: "created_at",
|
|
895
|
+
width: 120,
|
|
896
|
+
format: {
|
|
897
|
+
type: "Age",
|
|
898
|
+
params: {
|
|
899
|
+
variant: "short",
|
|
900
|
+
},
|
|
901
|
+
},
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
name: "menu items",
|
|
905
|
+
width: 130,
|
|
906
|
+
nested: {
|
|
907
|
+
path: [
|
|
908
|
+
{
|
|
909
|
+
on: [
|
|
910
|
+
{
|
|
911
|
+
id: "restaurant_id",
|
|
912
|
+
},
|
|
913
|
+
],
|
|
914
|
+
table: "menu_items",
|
|
915
|
+
},
|
|
916
|
+
],
|
|
917
|
+
limit: 1,
|
|
918
|
+
columns: [
|
|
919
|
+
{
|
|
920
|
+
name: "count",
|
|
921
|
+
width: 90,
|
|
922
|
+
computedConfig: {
|
|
923
|
+
aggregation: "countAll",
|
|
924
|
+
},
|
|
925
|
+
},
|
|
926
|
+
],
|
|
927
|
+
joinType: "left",
|
|
928
|
+
},
|
|
929
|
+
styling: {
|
|
930
|
+
type: "Barchart",
|
|
931
|
+
barColor: "indigo",
|
|
932
|
+
textColor: "#555",
|
|
933
|
+
},
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
name: "avg menu price",
|
|
937
|
+
width: 140,
|
|
938
|
+
format: {
|
|
939
|
+
type: "Currency",
|
|
940
|
+
params: {
|
|
941
|
+
mode: "Fixed",
|
|
942
|
+
currencyCode: "USD",
|
|
943
|
+
metricPrefix: false,
|
|
944
|
+
},
|
|
945
|
+
},
|
|
946
|
+
nested: {
|
|
947
|
+
path: [
|
|
948
|
+
{
|
|
949
|
+
on: [
|
|
950
|
+
{
|
|
951
|
+
id: "restaurant_id",
|
|
952
|
+
},
|
|
953
|
+
],
|
|
954
|
+
table: "menu_items",
|
|
955
|
+
},
|
|
956
|
+
],
|
|
957
|
+
limit: 1,
|
|
958
|
+
columns: [
|
|
959
|
+
{
|
|
960
|
+
name: "avg_price",
|
|
961
|
+
width: 100,
|
|
962
|
+
computedConfig: {
|
|
963
|
+
column: "price",
|
|
964
|
+
aggregation: "avg",
|
|
965
|
+
},
|
|
966
|
+
},
|
|
967
|
+
],
|
|
968
|
+
joinType: "left",
|
|
969
|
+
},
|
|
970
|
+
styling: {
|
|
971
|
+
type: "Barchart",
|
|
972
|
+
barColor: "green",
|
|
973
|
+
textColor: "#555",
|
|
974
|
+
},
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
name: "order count",
|
|
978
|
+
width: 130,
|
|
979
|
+
nested: {
|
|
980
|
+
path: [
|
|
981
|
+
{
|
|
982
|
+
on: [
|
|
983
|
+
{
|
|
984
|
+
id: "restaurant_id",
|
|
985
|
+
},
|
|
986
|
+
],
|
|
987
|
+
table: "orders",
|
|
988
|
+
},
|
|
989
|
+
],
|
|
990
|
+
limit: 1,
|
|
991
|
+
columns: [
|
|
992
|
+
{
|
|
993
|
+
name: "count",
|
|
994
|
+
width: 90,
|
|
995
|
+
computedConfig: {
|
|
996
|
+
aggregation: "countAll",
|
|
997
|
+
},
|
|
998
|
+
},
|
|
999
|
+
],
|
|
1000
|
+
joinType: "left",
|
|
1001
|
+
},
|
|
1002
|
+
styling: {
|
|
1003
|
+
type: "Barchart",
|
|
1004
|
+
barColor: "blue",
|
|
1005
|
+
textColor: "#555",
|
|
1006
|
+
},
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
name: "sales",
|
|
1010
|
+
width: 140,
|
|
1011
|
+
format: {
|
|
1012
|
+
type: "Currency",
|
|
1013
|
+
params: {
|
|
1014
|
+
mode: "Fixed",
|
|
1015
|
+
currencyCode: "USD",
|
|
1016
|
+
metricPrefix: true,
|
|
1017
|
+
},
|
|
1018
|
+
},
|
|
1019
|
+
nested: {
|
|
1020
|
+
path: [
|
|
1021
|
+
{
|
|
1022
|
+
on: [
|
|
1023
|
+
{
|
|
1024
|
+
id: "restaurant_id",
|
|
1025
|
+
},
|
|
1026
|
+
],
|
|
1027
|
+
table: "orders",
|
|
1028
|
+
},
|
|
1029
|
+
],
|
|
1030
|
+
limit: 1,
|
|
1031
|
+
columns: [
|
|
1032
|
+
{
|
|
1033
|
+
name: "sum_total_price",
|
|
1034
|
+
width: 100,
|
|
1035
|
+
computedConfig: {
|
|
1036
|
+
column: "total_price",
|
|
1037
|
+
aggregation: "sum",
|
|
1038
|
+
},
|
|
1039
|
+
},
|
|
1040
|
+
],
|
|
1041
|
+
joinType: "left",
|
|
1042
|
+
},
|
|
1043
|
+
styling: {
|
|
1044
|
+
type: "Barchart",
|
|
1045
|
+
barColor: "purple",
|
|
1046
|
+
textColor: "#555",
|
|
1047
|
+
},
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
name: "avg rating",
|
|
1051
|
+
width: 130,
|
|
1052
|
+
nested: {
|
|
1053
|
+
path: [
|
|
1054
|
+
{
|
|
1055
|
+
on: [
|
|
1056
|
+
{
|
|
1057
|
+
id: "restaurant_id",
|
|
1058
|
+
},
|
|
1059
|
+
],
|
|
1060
|
+
table: "ratings",
|
|
1061
|
+
},
|
|
1062
|
+
],
|
|
1063
|
+
limit: 1,
|
|
1064
|
+
columns: [
|
|
1065
|
+
{
|
|
1066
|
+
name: "avg_rating",
|
|
1067
|
+
width: 100,
|
|
1068
|
+
computedConfig: {
|
|
1069
|
+
column: "rating",
|
|
1070
|
+
aggregation: "avg",
|
|
1071
|
+
},
|
|
1072
|
+
},
|
|
1073
|
+
],
|
|
1074
|
+
joinType: "left",
|
|
1075
|
+
},
|
|
1076
|
+
styling: {
|
|
1077
|
+
type: "Scale",
|
|
1078
|
+
barColor: "yellow",
|
|
1079
|
+
textColor: "#333",
|
|
1080
|
+
},
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
name: "ratings over time",
|
|
1084
|
+
width: 220,
|
|
1085
|
+
nested: {
|
|
1086
|
+
path: [
|
|
1087
|
+
{
|
|
1088
|
+
on: [
|
|
1089
|
+
{
|
|
1090
|
+
id: "restaurant_id",
|
|
1091
|
+
},
|
|
1092
|
+
],
|
|
1093
|
+
table: "ratings",
|
|
1094
|
+
},
|
|
1095
|
+
],
|
|
1096
|
+
chart: {
|
|
1097
|
+
type: "time",
|
|
1098
|
+
yAxis: {
|
|
1099
|
+
colName: "rating",
|
|
1100
|
+
funcName: "$avg",
|
|
1101
|
+
isCountAll: false,
|
|
1102
|
+
},
|
|
1103
|
+
dateCol: "created_at",
|
|
1104
|
+
},
|
|
1105
|
+
joinType: "left",
|
|
1106
|
+
},
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
name: "orders over time",
|
|
1110
|
+
width: 220,
|
|
1111
|
+
nested: {
|
|
1112
|
+
path: [
|
|
1113
|
+
{
|
|
1114
|
+
on: [
|
|
1115
|
+
{
|
|
1116
|
+
id: "restaurant_id",
|
|
1117
|
+
},
|
|
1118
|
+
],
|
|
1119
|
+
table: "orders",
|
|
1120
|
+
},
|
|
1121
|
+
],
|
|
1122
|
+
chart: {
|
|
1123
|
+
type: "time",
|
|
1124
|
+
yAxis: {
|
|
1125
|
+
colName: "id",
|
|
1126
|
+
funcName: "$count",
|
|
1127
|
+
isCountAll: true,
|
|
1128
|
+
},
|
|
1129
|
+
dateCol: "created_at",
|
|
1130
|
+
},
|
|
1131
|
+
joinType: "left",
|
|
1132
|
+
},
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
name: "sales over time",
|
|
1136
|
+
width: 220,
|
|
1137
|
+
nested: {
|
|
1138
|
+
path: [
|
|
1139
|
+
{
|
|
1140
|
+
on: [
|
|
1141
|
+
{
|
|
1142
|
+
id: "restaurant_id",
|
|
1143
|
+
},
|
|
1144
|
+
],
|
|
1145
|
+
table: "orders",
|
|
1146
|
+
},
|
|
1147
|
+
],
|
|
1148
|
+
chart: {
|
|
1149
|
+
type: "time",
|
|
1150
|
+
yAxis: {
|
|
1151
|
+
colName: "total_price",
|
|
1152
|
+
funcName: "$sum",
|
|
1153
|
+
isCountAll: false,
|
|
1154
|
+
},
|
|
1155
|
+
dateCol: "created_at",
|
|
1156
|
+
},
|
|
1157
|
+
joinType: "left",
|
|
1158
|
+
},
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
name: "hygiene score",
|
|
1162
|
+
width: 130,
|
|
1163
|
+
nested: {
|
|
1164
|
+
path: [
|
|
1165
|
+
{
|
|
1166
|
+
on: [
|
|
1167
|
+
{
|
|
1168
|
+
id: "restaurant_id",
|
|
1169
|
+
},
|
|
1170
|
+
],
|
|
1171
|
+
table: "hygiene_ratings",
|
|
1172
|
+
},
|
|
1173
|
+
],
|
|
1174
|
+
limit: 1,
|
|
1175
|
+
columns: [
|
|
1176
|
+
{
|
|
1177
|
+
name: "hygiene_score",
|
|
1178
|
+
width: 100,
|
|
1179
|
+
},
|
|
1180
|
+
],
|
|
1181
|
+
joinType: "left",
|
|
1182
|
+
},
|
|
1183
|
+
styling: {
|
|
1184
|
+
type: "Scale",
|
|
1185
|
+
barColor: "red",
|
|
1186
|
+
textColor: "#333",
|
|
1187
|
+
},
|
|
1188
|
+
},
|
|
1189
|
+
],
|
|
1190
|
+
table_name: "restaurants",
|
|
1191
|
+
},
|
|
1192
|
+
],
|
|
1193
|
+
},
|
|
1194
|
+
],
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
export const dockerWeatherToolUse = {
|
|
1198
|
+
files: {
|
|
1199
|
+
Dockerfile:
|
|
1200
|
+
'FROM node:18-alpine\nWORKDIR /app\nCOPY package.json .\nRUN npm install\nCOPY . .\nCMD ["node", "fetch_weather.js"]',
|
|
1201
|
+
"package.json":
|
|
1202
|
+
'{\n "name": "weather-fetcher",\n "version": "1.0.0",\n "dependencies": {\n "axios": "^1.6.0"\n }\n}',
|
|
1203
|
+
"fetch_weather.js":
|
|
1204
|
+
"const axios = require('axios');\n\nconst DB_URL = `${process.env.DOCKER_MCP_ENDPOINT}/db/execute_sql`;\n// Alternative: Use Open-Meteo (completely free, no API key needed)\nasync function fetchFromOpenMeteo() {\n const lat = 51.5074; // London latitude\n const lon = -0.1278; // London longitude\n \n // Get last 4 years of data\n const endDate = new Date();\n const startDate = new Date();\n startDate.setFullYear(endDate.getFullYear() - 4);\n \n const startDateStr = startDate.toISOString().split('T')[0];\n const endDateStr = endDate.toISOString().split('T')[0];\n \n console.log(`Fetching data from ${startDateStr} to ${endDateStr}...`);\n \n try {\n const response = await axios.get('https://archive-api.open-meteo.com/v1/era5', {\n params: {\n latitude: lat,\n longitude: lon,\n start_date: startDateStr,\n end_date: endDateStr,\n daily: 'temperature_2m_mean,temperature_2m_min,temperature_2m_max,precipitation_sum,windspeed_10m_max,relative_humidity_2m_mean',\n timezone: 'Europe/London'\n }\n });\n \n const data = response.data.daily;\n \n for (let i = 10e10; i < data.time.length; i++) {\n const sql = `\n INSERT INTO weather_data (\n city, country, date, temperature_avg, temperature_min, temperature_max,\n humidity, precipitation, wind_speed, weather_condition\n ) VALUES (\n $1, $2, $3, $4, $5, $6, $7, $8, $9, $10\n ) ON CONFLICT (city, country, date) DO NOTHING\n `;\n \n await axios.post(DB_URL, {\n sql: sql,\n query_params: [\n 'London',\n 'United Kingdom',\n data.time[i],\n data.temperature_2m_mean[i],\n data.temperature_2m_min[i],\n data.temperature_2m_max[i],\n data.relative_humidity_2m_mean[i],\n data.precipitation_sum[i],\n data.windspeed_10m_max[i],\n 'Historical Data'\n ]\n });\n \n if (i % 100 === 0) {\n console.log(`✓ Processed ${i + 1}/${data.time.length} records`);\n }\n }\n \n console.log(`✓ Successfully inserted ${data.time.length} weather records for London`);\n \n } catch (error) {\n console.error('Error fetching from Open-Meteo:', error.message);\n }\n}\n\n// Run the Open-Meteo version (free, no API key needed)\nfetchFromOpenMeteo().catch(console.error);",
|
|
1205
|
+
},
|
|
1206
|
+
timeout: 120000,
|
|
1207
|
+
networkMode: "bridge",
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
export const prostglesUICryptoDashboardSample = {
|
|
1211
|
+
prostglesWorkspaces: [
|
|
1212
|
+
{
|
|
1213
|
+
icon: "ChartTimelineVariant",
|
|
1214
|
+
name: "Multi-Asset Price Comparison",
|
|
1215
|
+
layout: {
|
|
1216
|
+
id: "root",
|
|
1217
|
+
size: 1,
|
|
1218
|
+
type: "col",
|
|
1219
|
+
items: [
|
|
1220
|
+
{
|
|
1221
|
+
id: "all-major-prices",
|
|
1222
|
+
size: 2,
|
|
1223
|
+
type: "item",
|
|
1224
|
+
title: "Major Assets Price Comparison",
|
|
1225
|
+
viewType: "timechart",
|
|
1226
|
+
tableName: "futures",
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
id: "price-table",
|
|
1230
|
+
size: 1,
|
|
1231
|
+
type: "item",
|
|
1232
|
+
title: "Latest Prices",
|
|
1233
|
+
viewType: "table",
|
|
1234
|
+
tableName: "futures",
|
|
1235
|
+
},
|
|
1236
|
+
],
|
|
1237
|
+
isRoot: true,
|
|
1238
|
+
},
|
|
1239
|
+
windows: [
|
|
1240
|
+
{
|
|
1241
|
+
id: "all-major-prices",
|
|
1242
|
+
type: "timechart",
|
|
1243
|
+
title: "Major Assets Price Comparison",
|
|
1244
|
+
layers: [
|
|
1245
|
+
{
|
|
1246
|
+
type: "local-table",
|
|
1247
|
+
title: "BTC",
|
|
1248
|
+
yAxis: {
|
|
1249
|
+
column: "price",
|
|
1250
|
+
aggregation: "avg",
|
|
1251
|
+
},
|
|
1252
|
+
filter: [
|
|
1253
|
+
{
|
|
1254
|
+
type: "$in",
|
|
1255
|
+
value: ["BTCUSDT", "ETHUSDT", "TAOUSDT"],
|
|
1256
|
+
fieldName: "symbol",
|
|
1257
|
+
},
|
|
1258
|
+
],
|
|
1259
|
+
groupByColumn: "symbol",
|
|
1260
|
+
groupByColumnColors: [
|
|
1261
|
+
{ color: "#FF6B2C", value: "TAOUSDT" },
|
|
1262
|
+
{ color: "#06B6D4", value: "ETHUSDT" },
|
|
1263
|
+
{ color: "#CB11F0", value: "BTCUSDT" },
|
|
1264
|
+
],
|
|
1265
|
+
dateColumn: "timestamp",
|
|
1266
|
+
table_name: "futures",
|
|
1267
|
+
},
|
|
1268
|
+
],
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
id: "price-table",
|
|
1272
|
+
sort: [
|
|
1273
|
+
{
|
|
1274
|
+
asc: false,
|
|
1275
|
+
key: "timestamp",
|
|
1276
|
+
nulls: "last",
|
|
1277
|
+
},
|
|
1278
|
+
],
|
|
1279
|
+
type: "table",
|
|
1280
|
+
title: "Latest Prices",
|
|
1281
|
+
filter: [
|
|
1282
|
+
{
|
|
1283
|
+
$or: [
|
|
1284
|
+
{
|
|
1285
|
+
type: "$eq",
|
|
1286
|
+
value: "BTCUSDT",
|
|
1287
|
+
fieldName: "symbol",
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
type: "$eq",
|
|
1291
|
+
value: "ETHUSDT",
|
|
1292
|
+
fieldName: "symbol",
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
type: "$eq",
|
|
1296
|
+
value: "BNBUSDT",
|
|
1297
|
+
fieldName: "symbol",
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
type: "$eq",
|
|
1301
|
+
value: "SOLUSDT",
|
|
1302
|
+
fieldName: "symbol",
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
type: "$eq",
|
|
1306
|
+
value: "XRPUSDT",
|
|
1307
|
+
fieldName: "symbol",
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
type: "$eq",
|
|
1311
|
+
value: "LINKUSDT",
|
|
1312
|
+
fieldName: "symbol",
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
type: "$eq",
|
|
1316
|
+
value: "AVAXUSDT",
|
|
1317
|
+
fieldName: "symbol",
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
type: "$eq",
|
|
1321
|
+
value: "UNIUSDT",
|
|
1322
|
+
fieldName: "symbol",
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
type: "$eq",
|
|
1326
|
+
value: "AAVEUSDT",
|
|
1327
|
+
fieldName: "symbol",
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
type: "$eq",
|
|
1331
|
+
value: "DOTUSDT",
|
|
1332
|
+
fieldName: "symbol",
|
|
1333
|
+
},
|
|
1334
|
+
],
|
|
1335
|
+
},
|
|
1336
|
+
],
|
|
1337
|
+
columns: [
|
|
1338
|
+
{
|
|
1339
|
+
name: "symbol",
|
|
1340
|
+
width: 120,
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
name: "price",
|
|
1344
|
+
width: 140,
|
|
1345
|
+
format: {
|
|
1346
|
+
type: "Currency",
|
|
1347
|
+
params: {
|
|
1348
|
+
mode: "Fixed",
|
|
1349
|
+
currencyCode: "USD",
|
|
1350
|
+
metricPrefix: false,
|
|
1351
|
+
},
|
|
1352
|
+
},
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
name: "timestamp",
|
|
1356
|
+
width: 180,
|
|
1357
|
+
format: {
|
|
1358
|
+
type: "Age",
|
|
1359
|
+
params: {
|
|
1360
|
+
variant: "short",
|
|
1361
|
+
},
|
|
1362
|
+
},
|
|
1363
|
+
},
|
|
1364
|
+
],
|
|
1365
|
+
cardLayout: {
|
|
1366
|
+
type: "container",
|
|
1367
|
+
style: {
|
|
1368
|
+
gap: "8px",
|
|
1369
|
+
display: "flex",
|
|
1370
|
+
flexDirection: "column",
|
|
1371
|
+
},
|
|
1372
|
+
children: [
|
|
1373
|
+
{
|
|
1374
|
+
type: "node",
|
|
1375
|
+
style: {
|
|
1376
|
+
fontSize: "18px",
|
|
1377
|
+
fontWeight: "bold",
|
|
1378
|
+
},
|
|
1379
|
+
columnName: "symbol",
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
type: "container",
|
|
1383
|
+
style: {
|
|
1384
|
+
display: "flex",
|
|
1385
|
+
justifyContent: "space-between",
|
|
1386
|
+
},
|
|
1387
|
+
children: [
|
|
1388
|
+
{
|
|
1389
|
+
type: "node",
|
|
1390
|
+
style: {
|
|
1391
|
+
color: "#2196F3",
|
|
1392
|
+
fontSize: "16px",
|
|
1393
|
+
},
|
|
1394
|
+
columnName: "price",
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
type: "node",
|
|
1398
|
+
style: {
|
|
1399
|
+
color: "#999",
|
|
1400
|
+
fontSize: "12px",
|
|
1401
|
+
},
|
|
1402
|
+
columnName: "timestamp",
|
|
1403
|
+
},
|
|
1404
|
+
],
|
|
1405
|
+
},
|
|
1406
|
+
],
|
|
1407
|
+
},
|
|
1408
|
+
table_name: "futures",
|
|
1409
|
+
},
|
|
1410
|
+
],
|
|
1411
|
+
},
|
|
1412
|
+
],
|
|
1413
|
+
};
|