abstra 3.24.8__py3-none-any.whl → 3.24.9__py3-none-any.whl
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.
- {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/METADATA +1 -1
- {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/RECORD +183 -182
- abstra_internals/contracts_generated.py +2026 -2010
- abstra_internals/controllers/git.py +18 -20
- abstra_internals/controllers/main.py +8 -4
- abstra_internals/repositories/git/git_test.py +2 -2
- abstra_internals/repositories/git/native.py +95 -43
- abstra_internals/repositories/git/types.py +9 -7
- abstra_internals/services/sql_storage.py +2 -1
- abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.905e8d9e.js → AbstraButton.vue_vue_type_script_setup_true_lang.6efe348a.js} +2 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.f628a3a7.js +2 -0
- abstra_statics/dist/assets/ApiKeys.5b43091f.js +2 -0
- abstra_statics/dist/assets/App.7a6ee8e5.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.1a83eeea.js +2 -0
- abstra_statics/dist/assets/{BaseLayout.b03df2cd.js → BaseLayout.3c6f8614.js} +2 -2
- abstra_statics/dist/assets/Billing.884bb3ce.js +2 -0
- abstra_statics/dist/assets/{Breadcrumb.9686bc9b.js → Breadcrumb.438b89fb.js} +2 -2
- abstra_statics/dist/assets/{Builds.c90a1506.js → Builds.51e0c49e.js} +2 -2
- abstra_statics/dist/assets/{Card.95a0c7f0.js → Card.50ce0913.js} +2 -2
- abstra_statics/dist/assets/{CircularLoading.6ab785c3.js → CircularLoading.50b3862c.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.eab14c9c.js +2 -0
- abstra_statics/dist/assets/ConnectorsView.35cc6db6.js +2 -0
- abstra_statics/dist/assets/ConnectorsView.36fa866f.css +1 -0
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.1c984a14.js +2 -0
- abstra_statics/dist/assets/ContentLayout.a0d4199d.js +2 -0
- abstra_statics/dist/assets/{CrudView.391f0e9f.js → CrudView.7997b881.js} +2 -2
- abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.e6d1d3ad.js → DocsButton.vue_vue_type_script_setup_true_lang.39638c19.js} +2 -2
- abstra_statics/dist/assets/{EditorLogin.feee5e85.js → EditorLogin.6506bc42.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.b9309eb9.js → EditorsView.2aad2cdc.js} +2 -2
- abstra_statics/dist/assets/EnvVars.e641237f.js +2 -0
- abstra_statics/dist/assets/{Error.cec1d9ae.js → Error.a11619e5.js} +2 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.1d559548.js +2 -0
- abstra_statics/dist/assets/ExecutionContext.2933148d.js +2 -0
- abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.0b0c149c.js +2 -0
- abstra_statics/dist/assets/Files.7c98a5f9.css +1 -0
- abstra_statics/dist/assets/Files.db066999.js +3 -0
- abstra_statics/dist/assets/Form.d99de13a.js +2 -0
- abstra_statics/dist/assets/{FormRunner.7e7ce26d.js → FormRunner.8a803ade.js} +2 -2
- abstra_statics/dist/assets/Home.a8e67e38.js +2 -0
- abstra_statics/dist/assets/Home.c02c53bc.js +2 -0
- abstra_statics/dist/assets/LoadingContainer.b8fe55e6.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.d3cb97d3.js +2 -0
- abstra_statics/dist/assets/Login.ca3df8f4.js +2 -0
- abstra_statics/dist/assets/{Login.f25e3cc8.js → Login.ec7eb4db.js} +2 -2
- abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.be982e9b.js +2 -0
- abstra_statics/dist/assets/Logo.29f26be1.js +2 -0
- abstra_statics/dist/assets/Logs.bc7d3080.js +2 -0
- abstra_statics/dist/assets/Main.17301685.js +2 -0
- abstra_statics/dist/assets/{MockForm.a8c36e57.js → MockForm.8af08260.js} +2 -2
- abstra_statics/dist/assets/Navbar.5991f141.js +2 -0
- abstra_statics/dist/assets/NewEditor.133f8c4b.js +8 -0
- abstra_statics/dist/assets/OidcLoginCallback.7b41f933.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.80bebb62.js +2 -0
- abstra_statics/dist/assets/{OmniChat.60ee26c8.css → OmniChat.3576ab7f.css} +1 -1
- abstra_statics/dist/assets/OmniChat.724f1121.js +6 -0
- abstra_statics/dist/assets/OnboardingView.7f418009.js +2 -0
- abstra_statics/dist/assets/Organization.127db14f.js +2 -0
- abstra_statics/dist/assets/Organizations.5f418cc7.js +2 -0
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.44a61827.js → PhArrowCounterClockwise.vue.de1d3ce9.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.d71d80fc.js → PhArrowSquareOut.vue.1a0f1395.js} +2 -2
- abstra_statics/dist/assets/PhArrowUp.vue.1c6a4ae8.js +2 -0
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.701e6c6a.js → PhClockCounterClockwise.vue.3e79a514.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.5aeb9248.js → PhCopy.vue.d2b17064.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.33922e71.js → PhCopySimple.vue.f2bb863a.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.3f7281ae.js → PhCube.vue.be696878.js} +2 -2
- abstra_statics/dist/assets/{PhDatabase.vue.09fef09d.js → PhDatabase.vue.3c4ba68c.js} +2 -2
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.b3fda5f6.js → PhDotsThreeVertical.vue.2c9a03d5.js} +2 -2
- abstra_statics/dist/assets/{PhDownloadSimple.vue.db22067f.js → PhDownloadSimple.vue.72db4fbb.js} +2 -2
- abstra_statics/dist/assets/{PhFileArrowUp.vue.1e3b8493.js → PhFileArrowUp.vue.b7060fd8.js} +2 -2
- abstra_statics/dist/assets/{PhFilePlus.vue.1b7fc04b.js → PhFilePlus.vue.77ba2f5f.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.7b02d45f.js → PhFolderPlus.vue.57ec5e0d.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.3049f8f5.js → PhGear.vue.5abfda30.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.3fb1fd34.js → PhKey.vue.dbf6964c.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.8e94a4bd.js → PhPencil.vue.e6eaa716.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.c30ff752.js → PhPencilSimple.vue.a65250cc.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.1927fd55.js → PhRocket.vue.9dde7cdd.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.0c10fd8d.js → PhSignOut.vue.4b3b1f31.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.88da054d.js → PhSparkle.vue.efe111c8.js} +2 -2
- abstra_statics/dist/assets/{PhTranslate.vue.5fd55ee3.js → PhTranslate.vue.7ad27dac.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.506e9873.js → PhUsersThree.vue.5f9bb416.js} +2 -2
- abstra_statics/dist/assets/{PhWarningCircle.vue.139a2f32.js → PhWarningCircle.vue.365e8c06.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.28d1edea.js → PhWebhooksLogo.vue.1684b943.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.f7be8491.js → PlayerConfigProvider.26c6fb0a.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.fb3a012d.js → PlayerNavbar.a0d1fdc3.js} +2 -2
- abstra_statics/dist/assets/Project.6575adc1.css +1 -0
- abstra_statics/dist/assets/Project.a4f24e83.js +2 -0
- abstra_statics/dist/assets/{ProjectLogin.7f541a88.js → ProjectLogin.abc78e95.js} +2 -2
- abstra_statics/dist/assets/{ProjectSettings.52805237.js → ProjectSettings.de3aa0d0.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.53e4ed94.js → ProjectsView.e4e50735.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.bf92f582.js → SaveButton.8a907e20.js} +2 -2
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.22f3f279.js +2 -0
- abstra_statics/dist/assets/{Sidebar.af08c680.js → Sidebar.ea97a608.js} +2 -2
- abstra_statics/dist/assets/{Sql.fd118d60.js → Sql.3130cb2f.js} +4 -4
- abstra_statics/dist/assets/Steps.df853a47.js +2 -0
- abstra_statics/dist/assets/{TableCard.0bcd184a.js → TableCard.0cffd3d6.js} +2 -2
- abstra_statics/dist/assets/TableEditor.52c6ffee.js +2 -0
- abstra_statics/dist/assets/Tables.933a0fea.js +2 -0
- abstra_statics/dist/assets/{TablesDiagram.547215e0.js → TablesDiagram.687f6dfe.js} +3 -3
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.9649d1a2.js +2 -0
- abstra_statics/dist/assets/Tasks.331fcc80.js +2 -0
- abstra_statics/dist/assets/{UploadOutlined.736aa5bc.js → UploadOutlined.1c845819.js} +2 -2
- abstra_statics/dist/assets/{View.b4fa346f.js → View.8fb0d3d7.js} +2 -2
- abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.d5d3a410.js → View.vue_vue_type_script_setup_true_lang.df0afc8c.js} +2 -2
- abstra_statics/dist/assets/{Watermark.e6c4654b.js → Watermark.b19c8a2c.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.49aee538.js → WebEditor.52fc4d61.js} +2 -2
- abstra_statics/dist/assets/{WidgetPreview.e0916bed.js → WidgetPreview.fab6933f.js} +2 -2
- abstra_statics/dist/assets/WorkflowViewer.5d223e7a.css +1 -0
- abstra_statics/dist/assets/WorkflowViewer.b0072dc6.js +2 -0
- abstra_statics/dist/assets/ant-design.3284f24b.js +2 -0
- abstra_statics/dist/assets/apiKey.66dca0fa.js +2 -0
- abstra_statics/dist/assets/asyncComputed.515034b4.js +2 -0
- abstra_statics/dist/assets/{build.1cc9147c.js → build.11c6f0e3.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.43bbe7b2.js +2 -0
- abstra_statics/dist/assets/{console.c2a83def.js → console.f9961195.js} +2 -2
- abstra_statics/dist/assets/constants.2cdc2025.js +2 -0
- abstra_statics/dist/assets/contracts.generated.36d5f7a5.js +2 -0
- abstra_statics/dist/assets/{cssMode.da3677b5.js → cssMode.38709828.js} +2 -2
- abstra_statics/dist/assets/datetime.cc6674fd.js +2 -0
- abstra_statics/dist/assets/dayjs.aa0a07d8.js +2 -0
- abstra_statics/dist/assets/editor.90099ba3.js +2 -0
- abstra_statics/dist/assets/editor.main.a098da72.js +2 -0
- abstra_statics/dist/assets/fetch.331404cf.js +2 -0
- abstra_statics/dist/assets/file.0cd01b5c.js +2 -0
- abstra_statics/dist/assets/{folder.1303b3cc.js → folder.304ce6aa.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.78f622a4.js → freemarker2.16d5855a.js} +2 -2
- abstra_statics/dist/assets/{handlebars.f24ca206.js → handlebars.3657e980.js} +3 -3
- abstra_statics/dist/assets/{html.d6232cb7.js → html.cbb1f517.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.66845b4f.js → htmlMode.97252017.js} +2 -2
- abstra_statics/dist/assets/{index.4073d3ba.js → index.1a374af6.js} +3 -3
- abstra_statics/dist/assets/{index.5654c649.js → index.1f86e84b.js} +2 -2
- abstra_statics/dist/assets/{index.bbb3a202.js → index.64d118e9.js} +2 -2
- abstra_statics/dist/assets/index.97648248.js +2 -0
- abstra_statics/dist/assets/{index.aa2603a0.js → index.9a7dc377.js} +2 -2
- abstra_statics/dist/assets/{index.fd17682d.js → index.9f357119.js} +2 -2
- abstra_statics/dist/assets/{index.705ce630.js → index.c7722f54.js} +2 -2
- abstra_statics/dist/assets/index.dcd602fc.js +2 -0
- abstra_statics/dist/assets/{index.680764ed.js → index.ed2240ea.js} +2 -2
- abstra_statics/dist/assets/{javascript.1009e690.js → javascript.d13ce088.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.bd88eaca.js → jsonMode.24ae805f.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.aa5b9ed3.css → jwt-decode.1a092264.css} +1 -1
- abstra_statics/dist/assets/{jwt-decode.esm.4071145e.js → jwt-decode.esm.f87c17f7.js} +166 -161
- abstra_statics/dist/assets/{linters.5d49f0b2.js → linters.6d68fd4f.js} +2 -2
- abstra_statics/dist/assets/{liquid.fd06ec69.js → liquid.0cf9f71b.js} +3 -3
- abstra_statics/dist/assets/{member.d4cf4c10.js → member.c8206c64.js} +2 -2
- abstra_statics/dist/assets/{metadata.bd34dda0.js → metadata.f67c3158.js} +2 -2
- abstra_statics/dist/assets/{omniChatStore.3d16b4ad.js → omniChatStore.e205a0cd.js} +3 -3
- abstra_statics/dist/assets/{organization.1b235ed0.js → organization.70cdf915.js} +2 -2
- abstra_statics/dist/assets/{os.b6b83ab9.js → os.227120cb.js} +2 -2
- abstra_statics/dist/assets/player.58f997ee.js +2 -0
- abstra_statics/dist/assets/{plotly.min.5ef097da.js → plotly.min.6d8ffa2b.js} +2 -2
- abstra_statics/dist/assets/polling.9bc57b91.js +2 -0
- abstra_statics/dist/assets/project.25a396d4.js +2 -0
- abstra_statics/dist/assets/{python.014e8707.js → python.0d8b442d.js} +3 -3
- abstra_statics/dist/assets/{razor.eee706f7.js → razor.4398e452.js} +3 -3
- abstra_statics/dist/assets/record.a8da6046.js +2 -0
- abstra_statics/dist/assets/redirect.42fceb5c.js +2 -0
- abstra_statics/dist/assets/{repository.010eeaad.js → repository.c782b2ca.js} +2 -2
- abstra_statics/dist/assets/{router.ef7a08cf.js → router.09566602.js} +5 -5
- abstra_statics/dist/assets/router.9ee10098.js +2 -0
- abstra_statics/dist/assets/{string.0157e442.js → string.0c102318.js} +2 -2
- abstra_statics/dist/assets/{tables.59457dad.js → tables.1b5568d1.js} +2 -2
- abstra_statics/dist/assets/tasksController.009192fc.js +4 -0
- abstra_statics/dist/assets/{toggleHighContrast.2a096764.js → toggleHighContrast.79cdeb2d.js} +7 -7
- abstra_statics/dist/assets/{tsMode.5a841751.js → tsMode.0d573de8.js} +2 -2
- abstra_statics/dist/assets/{typescript.a8946c53.js → typescript.c72f7347.js} +3 -3
- abstra_statics/dist/assets/url.acca5643.js +2 -0
- abstra_statics/dist/assets/{useCodebaseEvents.c0197501.js → useCodebaseEvents.dc121de8.js} +2 -2
- abstra_statics/dist/assets/{useTables.413ae4ce.js → useTables.8402092e.js} +2 -2
- abstra_statics/dist/assets/userStore.3989ac4e.js +2 -0
- abstra_statics/dist/assets/uuid.405a6e8d.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.cc5881af.js → vue-flow-background.bbe978bf.js} +2 -2
- abstra_statics/dist/assets/{vue-flow-core.64ea4397.js → vue-flow-core.8bb3991b.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.404d7a1a.js → vue-quill.esm-bundler.4dc84b4c.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.260ac7fc.js → workspaceStore.ef7daa80.js} +2 -2
- abstra_statics/dist/assets/xlsx.89ea120e.js +106 -0
- abstra_statics/dist/assets/{xml.6d7ee5c8.js → xml.5ff29ab6.js} +3 -3
- abstra_statics/dist/assets/{yaml.a48b0813.js → yaml.6d4103d3.js} +3 -3
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +14 -14
- abstra_statics/dist/player.html +10 -10
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.11067aac.js +0 -2
- abstra_statics/dist/assets/ApiKeys.c2a1c483.js +0 -2
- abstra_statics/dist/assets/App.608af2ed.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.8bbdcede.js +0 -2
- abstra_statics/dist/assets/Billing.f84cedb5.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.66e5f1b1.js +0 -2
- abstra_statics/dist/assets/ConnectorsView.b594798e.css +0 -1
- abstra_statics/dist/assets/ConnectorsView.bac282fa.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.e768f033.js +0 -2
- abstra_statics/dist/assets/ContentLayout.2ae39d29.js +0 -2
- abstra_statics/dist/assets/EnvVars.facbb73b.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.81063754.js +0 -2
- abstra_statics/dist/assets/ExecutionContext.8c367ef7.js +0 -2
- abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.7bd1f43d.js +0 -2
- abstra_statics/dist/assets/Files.325d463d.js +0 -2
- abstra_statics/dist/assets/Files.39b07d88.css +0 -1
- abstra_statics/dist/assets/Form.48029b6f.js +0 -2
- abstra_statics/dist/assets/Home.72bb903d.js +0 -2
- abstra_statics/dist/assets/Home.fb4fb018.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.e7fd3862.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.eb1ab7c7.js +0 -2
- abstra_statics/dist/assets/Login.ab4296a6.js +0 -2
- abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.c0c3af9a.js +0 -2
- abstra_statics/dist/assets/Logo.417950ea.js +0 -2
- abstra_statics/dist/assets/Logs.eff00ffa.js +0 -2
- abstra_statics/dist/assets/Main.9c7e6552.js +0 -2
- abstra_statics/dist/assets/Navbar.36275768.js +0 -2
- abstra_statics/dist/assets/NewEditor.652251d2.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.31318c8c.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.af3bbbed.js +0 -2
- abstra_statics/dist/assets/OmniChat.6d49a0d2.js +0 -6
- abstra_statics/dist/assets/OnboardingView.ec680bc2.js +0 -2
- abstra_statics/dist/assets/Organization.640cf320.js +0 -2
- abstra_statics/dist/assets/Organizations.be19ecba.js +0 -2
- abstra_statics/dist/assets/Project.6af32e98.js +0 -2
- abstra_statics/dist/assets/Project.9c418d2e.css +0 -1
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.b4f189da.js +0 -2
- abstra_statics/dist/assets/Steps.27508a86.js +0 -2
- abstra_statics/dist/assets/TableEditor.0b14bc7b.js +0 -2
- abstra_statics/dist/assets/Tables.8dabe248.js +0 -39
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.9027b106.js +0 -2
- abstra_statics/dist/assets/Tasks.6d16250c.js +0 -2
- abstra_statics/dist/assets/WorkflowViewer.0a209003.css +0 -1
- abstra_statics/dist/assets/WorkflowViewer.b2b3ee29.js +0 -2
- abstra_statics/dist/assets/ant-design.805ab95d.js +0 -2
- abstra_statics/dist/assets/apiKey.1b1aafc4.js +0 -2
- abstra_statics/dist/assets/asyncComputed.0308626b.js +0 -2
- abstra_statics/dist/assets/colorHelpers.93df70ab.js +0 -2
- abstra_statics/dist/assets/constants.ba2d8460.js +0 -2
- abstra_statics/dist/assets/contracts.generated.bc42bf02.js +0 -2
- abstra_statics/dist/assets/datetime.049cd1b4.js +0 -2
- abstra_statics/dist/assets/dayjs.ba8d5e03.js +0 -2
- abstra_statics/dist/assets/editor.4df699e8.js +0 -2
- abstra_statics/dist/assets/editor.main.1441c190.js +0 -2
- abstra_statics/dist/assets/fetch.6b0b8dbd.js +0 -2
- abstra_statics/dist/assets/files.a48976ba.js +0 -2
- abstra_statics/dist/assets/index.5eda0243.js +0 -2
- abstra_statics/dist/assets/index.c25fb6e2.js +0 -2
- abstra_statics/dist/assets/player.9c3751ac.js +0 -2
- abstra_statics/dist/assets/polling.cabdf3a3.js +0 -2
- abstra_statics/dist/assets/project.794c2cba.js +0 -2
- abstra_statics/dist/assets/record.daabed01.js +0 -2
- abstra_statics/dist/assets/redirect.8303afd7.js +0 -2
- abstra_statics/dist/assets/repository.997243c1.js +0 -2
- abstra_statics/dist/assets/router.e1e467ab.js +0 -2
- abstra_statics/dist/assets/tasksController.a5bd1328.js +0 -4
- abstra_statics/dist/assets/url.4aa6f272.js +0 -2
- abstra_statics/dist/assets/userStore.1004ebc1.js +0 -2
- abstra_statics/dist/assets/uuid.14c9b73e.js +0 -2
- {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/WHEEL +0 -0
- {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/entry_points.txt +0 -0
- {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/top_level.txt +0 -0
|
@@ -179,23 +179,17 @@ class GitController:
|
|
|
179
179
|
return status_response.to_dict()
|
|
180
180
|
|
|
181
181
|
def checkout_branch(self, branch_name: str) -> Dict[str, Any]:
|
|
182
|
-
success = self.git_repository.checkout_branch(branch_name)
|
|
182
|
+
success, error_message = self.git_repository.checkout_branch(branch_name)
|
|
183
183
|
|
|
184
|
-
message =
|
|
185
|
-
f"Switched to branch '{branch_name}'"
|
|
186
|
-
if success
|
|
187
|
-
else f"Failed to switch to branch '{branch_name}'"
|
|
188
|
-
)
|
|
184
|
+
message = f"Switched to branch '{branch_name}'" if success else error_message
|
|
189
185
|
|
|
190
186
|
return {"success": success, "message": message}
|
|
191
187
|
|
|
192
188
|
def checkout_commit(self, commit_hash: str) -> Dict[str, Any]:
|
|
193
|
-
success = self.git_repository.checkout_commit(commit_hash)
|
|
189
|
+
success, error_message = self.git_repository.checkout_commit(commit_hash)
|
|
194
190
|
|
|
195
191
|
message = (
|
|
196
|
-
f"Switched to commit '{commit_hash[:8]}'"
|
|
197
|
-
if success
|
|
198
|
-
else f"Failed to switch to commit '{commit_hash[:8]}'"
|
|
192
|
+
f"Switched to commit '{commit_hash[:8]}'" if success else error_message
|
|
199
193
|
)
|
|
200
194
|
|
|
201
195
|
return {"success": success, "message": message}
|
|
@@ -205,13 +199,13 @@ class GitController:
|
|
|
205
199
|
) -> Dict[str, Any]:
|
|
206
200
|
self._ensure_authentication()
|
|
207
201
|
|
|
208
|
-
success = self.git_repository.pull_changes(
|
|
202
|
+
success, error_message = self.git_repository.pull_changes(
|
|
209
203
|
strategy=strategy,
|
|
210
204
|
allow_unrelated=allow_unrelated,
|
|
211
205
|
conflict_resolution=conflict_resolution,
|
|
212
206
|
)
|
|
213
207
|
|
|
214
|
-
message = "Successfully pulled changes" if success else
|
|
208
|
+
message = "Successfully pulled changes" if success else error_message
|
|
215
209
|
|
|
216
210
|
return {"success": success, "message": message}
|
|
217
211
|
|
|
@@ -222,21 +216,25 @@ class GitController:
|
|
|
222
216
|
if not commit_message:
|
|
223
217
|
return {"success": False, "message": "Commit message cannot be empty"}
|
|
224
218
|
|
|
225
|
-
success = self.git_repository.commit_changes(
|
|
219
|
+
success, error_message = self.git_repository.commit_changes(
|
|
220
|
+
commit_message, author
|
|
221
|
+
)
|
|
226
222
|
|
|
227
223
|
message = (
|
|
228
224
|
f"Successfully committed changes: {commit_message}"
|
|
229
225
|
if success
|
|
230
|
-
else
|
|
226
|
+
else error_message or "Commit failed"
|
|
231
227
|
)
|
|
232
228
|
|
|
233
229
|
return {"success": success, "message": message}
|
|
234
230
|
|
|
235
231
|
def stash_changes(self, message: str = "WIP") -> Dict[str, Any]:
|
|
236
|
-
success = self.git_repository.stash_changes(message)
|
|
232
|
+
success, error_message = self.git_repository.stash_changes(message)
|
|
237
233
|
|
|
238
234
|
message = (
|
|
239
|
-
"Successfully stashed changes"
|
|
235
|
+
"Successfully stashed changes"
|
|
236
|
+
if success
|
|
237
|
+
else error_message or "Stash failed"
|
|
240
238
|
)
|
|
241
239
|
|
|
242
240
|
return {"success": success, "message": message}
|
|
@@ -256,12 +254,12 @@ class GitController:
|
|
|
256
254
|
def push_and_deploy(self, branch: str = "main") -> Dict[str, Any]:
|
|
257
255
|
self._ensure_authentication()
|
|
258
256
|
|
|
259
|
-
success = self.git_repository.push_and_deploy(branch)
|
|
257
|
+
success, error_message = self.git_repository.push_and_deploy(branch)
|
|
260
258
|
|
|
261
259
|
message = (
|
|
262
260
|
f"Successfully deployed branch '{branch}' to Abstra"
|
|
263
261
|
if success
|
|
264
|
-
else
|
|
262
|
+
else error_message
|
|
265
263
|
)
|
|
266
264
|
|
|
267
265
|
return {"success": success, "message": message}
|
|
@@ -284,12 +282,12 @@ class GitController:
|
|
|
284
282
|
return {"success": False, "message": f"Commit {commit_hash[:8]} not found"}
|
|
285
283
|
|
|
286
284
|
try:
|
|
287
|
-
success = self.git_repository.revert_commit(commit_hash)
|
|
285
|
+
success, error_message = self.git_repository.revert_commit(commit_hash)
|
|
288
286
|
|
|
289
287
|
message = (
|
|
290
288
|
f"Successfully restored content from commit: {commit_to_revert.message}. A new commit was created with the content from that version."
|
|
291
289
|
if success
|
|
292
|
-
else
|
|
290
|
+
else error_message
|
|
293
291
|
)
|
|
294
292
|
|
|
295
293
|
return {"success": success, "message": message}
|
|
@@ -888,7 +888,8 @@ class MainController:
|
|
|
888
888
|
|
|
889
889
|
def get_scripts(self) -> List[ScriptStage]:
|
|
890
890
|
project = self.repositories.project.load()
|
|
891
|
-
|
|
891
|
+
sorted_scripts = sorted(project.scripts, key=lambda s: s.title.lower())
|
|
892
|
+
return sorted_scripts
|
|
892
893
|
|
|
893
894
|
def get_script(self, id: str) -> Optional[ScriptStage]:
|
|
894
895
|
project = self.repositories.project.load()
|
|
@@ -994,7 +995,8 @@ class MainController:
|
|
|
994
995
|
|
|
995
996
|
def get_forms(self) -> List[FormStage]:
|
|
996
997
|
project = self.repositories.project.load()
|
|
997
|
-
|
|
998
|
+
sorted_forms = sorted(project.forms, key=lambda f: f.title.lower())
|
|
999
|
+
return sorted_forms
|
|
998
1000
|
|
|
999
1001
|
def get_form(self, id: str) -> Optional[FormStage]:
|
|
1000
1002
|
project = self.repositories.project.load()
|
|
@@ -1122,7 +1124,8 @@ class MainController:
|
|
|
1122
1124
|
|
|
1123
1125
|
def get_hooks(self) -> List[HookStage]:
|
|
1124
1126
|
project = self.repositories.project.load()
|
|
1125
|
-
|
|
1127
|
+
sorted_hooks = sorted(project.hooks, key=lambda h: h.title.lower())
|
|
1128
|
+
return sorted_hooks
|
|
1126
1129
|
|
|
1127
1130
|
def get_hook_by_path(self, path: str) -> Optional[HookStage]:
|
|
1128
1131
|
project = self.repositories.project.load()
|
|
@@ -1170,7 +1173,8 @@ class MainController:
|
|
|
1170
1173
|
project = self.repositories.project.load(
|
|
1171
1174
|
include_disabled_stages=include_disabled_jobs
|
|
1172
1175
|
)
|
|
1173
|
-
|
|
1176
|
+
sorted_jobs = sorted(project.jobs, key=lambda j: j.title.lower())
|
|
1177
|
+
return sorted_jobs
|
|
1174
1178
|
|
|
1175
1179
|
def get_job(self, id: str) -> Optional[JobStage]:
|
|
1176
1180
|
project = self.repositories.project.load()
|
|
@@ -2,7 +2,7 @@ import shutil
|
|
|
2
2
|
import tempfile
|
|
3
3
|
import unittest
|
|
4
4
|
from pathlib import Path
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Optional, Tuple
|
|
6
6
|
|
|
7
7
|
from abstra_internals.repositories.git.native import NativeGitRepository
|
|
8
8
|
from abstra_internals.repositories.git.types import (
|
|
@@ -23,7 +23,7 @@ class NativeGitRepositoryTest(unittest.TestCase):
|
|
|
23
23
|
|
|
24
24
|
def _commit_changes_wrapper(
|
|
25
25
|
self, message: str, author: Optional[str] = None
|
|
26
|
-
) -> bool:
|
|
26
|
+
) -> Tuple[bool, Optional[str]]:
|
|
27
27
|
"""Wrapper for commit_changes that ensures git is configured"""
|
|
28
28
|
self.ensure_git_configured()
|
|
29
29
|
return self._original_commit_changes(message, author)
|
|
@@ -316,33 +316,44 @@ class NativeGitRepository(GitRepositoryInterface):
|
|
|
316
316
|
if "original_working_dir" in locals() and original_working_dir is not None:
|
|
317
317
|
self.working_directory = original_working_dir
|
|
318
318
|
|
|
319
|
-
def checkout_branch(self, branch_name: str) -> bool:
|
|
319
|
+
def checkout_branch(self, branch_name: str) -> Tuple[bool, Optional[str]]:
|
|
320
320
|
"""Switch to a different branch"""
|
|
321
321
|
if not self.is_git_repository():
|
|
322
|
-
return False
|
|
322
|
+
return False, "Not a git repository"
|
|
323
323
|
|
|
324
|
-
success, _,
|
|
325
|
-
|
|
326
|
-
success
|
|
324
|
+
success, _, checkout_err = self._run_git_command(["checkout", branch_name])
|
|
325
|
+
error_message = (
|
|
326
|
+
None if success else f"Git checkout failed with error: {checkout_err}"
|
|
327
|
+
)
|
|
328
|
+
|
|
329
|
+
if not success and "did not match any file(s) known to git" in checkout_err:
|
|
330
|
+
success, _, create_branch_err = self._run_git_command(
|
|
327
331
|
["checkout", "-b", branch_name, f"origin/{branch_name}"]
|
|
328
332
|
)
|
|
333
|
+
error_message = (
|
|
334
|
+
None
|
|
335
|
+
if success
|
|
336
|
+
else f"Git checkout failed with error: {create_branch_err}"
|
|
337
|
+
)
|
|
329
338
|
|
|
330
|
-
return success
|
|
339
|
+
return success, error_message
|
|
331
340
|
|
|
332
|
-
def checkout_commit(self, commit_hash: str) -> bool:
|
|
341
|
+
def checkout_commit(self, commit_hash: str) -> Tuple[bool, Optional[str]]:
|
|
333
342
|
"""Switch to a specific commit (detached HEAD state)"""
|
|
334
343
|
if not self.is_git_repository():
|
|
335
|
-
return False
|
|
344
|
+
return False, "Not a git repository"
|
|
336
345
|
|
|
337
|
-
success, _,
|
|
338
|
-
|
|
346
|
+
success, _, error = self._run_git_command(["checkout", commit_hash])
|
|
347
|
+
error_message = None if success else f"Git checkout failed with error: {error}"
|
|
348
|
+
|
|
349
|
+
return success, error_message
|
|
339
350
|
|
|
340
351
|
def pull_changes(
|
|
341
352
|
self,
|
|
342
353
|
strategy: str = "merge",
|
|
343
354
|
allow_unrelated: bool = True,
|
|
344
355
|
conflict_resolution: Optional[str] = "theirs",
|
|
345
|
-
) -> bool:
|
|
356
|
+
) -> Tuple[bool, Optional[str]]:
|
|
346
357
|
"""Pull changes from abstra remote repository
|
|
347
358
|
|
|
348
359
|
Args:
|
|
@@ -357,7 +368,7 @@ class NativeGitRepository(GitRepositoryInterface):
|
|
|
357
368
|
- None: Handle conflicts manually (default)
|
|
358
369
|
"""
|
|
359
370
|
if not self.is_git_repository():
|
|
360
|
-
return False
|
|
371
|
+
return False, "Not a git repository"
|
|
361
372
|
|
|
362
373
|
pull_cmd = ["pull"]
|
|
363
374
|
|
|
@@ -381,39 +392,74 @@ class NativeGitRepository(GitRepositoryInterface):
|
|
|
381
392
|
pull_cmd.extend([REMOTE_NAME, "main"])
|
|
382
393
|
|
|
383
394
|
success, _, e = self._run_git_command(pull_cmd)
|
|
395
|
+
error_message = None if success else f"Git pull failed with error: {e}"
|
|
396
|
+
|
|
397
|
+
return success, error_message
|
|
398
|
+
|
|
399
|
+
def add_all_files(self) -> Tuple[bool, Optional[str]]:
|
|
400
|
+
"""Add all changes to staging area"""
|
|
401
|
+
if not self.is_git_repository():
|
|
402
|
+
return False, "Not a git repository"
|
|
403
|
+
|
|
404
|
+
success, _, error = self._run_git_command(["add", "."])
|
|
384
405
|
if not success:
|
|
385
|
-
|
|
406
|
+
changed_files = self.get_changed_files()
|
|
407
|
+
failed_files = []
|
|
386
408
|
|
|
387
|
-
|
|
409
|
+
for file in changed_files:
|
|
410
|
+
file_success, _, _ = self._run_git_command(["add", file])
|
|
411
|
+
if not file_success:
|
|
412
|
+
failed_files.append(file)
|
|
388
413
|
|
|
389
|
-
|
|
414
|
+
if failed_files:
|
|
415
|
+
return (
|
|
416
|
+
False,
|
|
417
|
+
f"Git add failed for the following files: {', '.join(failed_files)}",
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
if not changed_files:
|
|
421
|
+
return False, f"Git add failed with error: {error}"
|
|
422
|
+
|
|
423
|
+
return True, None
|
|
424
|
+
|
|
425
|
+
def commit_changes(
|
|
426
|
+
self, message: str, author: Optional[str] = None
|
|
427
|
+
) -> Tuple[bool, Optional[str]]:
|
|
390
428
|
"""Commit changes with a message"""
|
|
391
429
|
if not self.is_git_repository():
|
|
392
|
-
return False
|
|
430
|
+
return False, "Not a git repository"
|
|
393
431
|
|
|
394
|
-
|
|
395
|
-
if not
|
|
396
|
-
return False
|
|
432
|
+
git_add_success, git_add_error_message = self.add_all_files()
|
|
433
|
+
if not git_add_success:
|
|
434
|
+
return False, git_add_error_message
|
|
397
435
|
|
|
398
436
|
if author and "@" in author:
|
|
399
437
|
author_str = f"{author.split('@')[0]} <{author}>"
|
|
400
|
-
success, _,
|
|
438
|
+
success, _, error = self._run_git_command(
|
|
401
439
|
["commit", "-m", message, "--author", author_str]
|
|
402
440
|
)
|
|
403
|
-
|
|
441
|
+
error_message = (
|
|
442
|
+
None if success else f"Git commit failed with error: {error}"
|
|
443
|
+
)
|
|
404
444
|
|
|
405
|
-
|
|
406
|
-
|
|
445
|
+
return success, error_message
|
|
446
|
+
|
|
447
|
+
success, _, error = self._run_git_command(["commit", "-m", message])
|
|
448
|
+
error_message = None if success else f"Git commit failed with error: {error}"
|
|
407
449
|
|
|
408
|
-
|
|
450
|
+
return success, error_message
|
|
451
|
+
|
|
452
|
+
def stash_changes(self, message: str = "WIP") -> Tuple[bool, Optional[str]]:
|
|
409
453
|
"""Stash uncommitted changes"""
|
|
410
454
|
if not self.is_git_repository():
|
|
411
|
-
return False
|
|
455
|
+
return False, "Not a git repository"
|
|
412
456
|
|
|
413
|
-
success, _,
|
|
457
|
+
success, _, err = self._run_git_command(
|
|
414
458
|
["stash", "push", "-m", message, "--include-untracked"]
|
|
415
459
|
)
|
|
416
|
-
|
|
460
|
+
error_message = None if success else f"Git stash failed with error: {err}"
|
|
461
|
+
|
|
462
|
+
return success, error_message
|
|
417
463
|
|
|
418
464
|
def get_remotes(self) -> List[str]:
|
|
419
465
|
"""Get list of remote names"""
|
|
@@ -506,55 +552,61 @@ class NativeGitRepository(GitRepositoryInterface):
|
|
|
506
552
|
|
|
507
553
|
return (ahead_count, behind_count)
|
|
508
554
|
|
|
509
|
-
def push_and_deploy(self, branch: str = "main") -> bool:
|
|
555
|
+
def push_and_deploy(self, branch: str = "main") -> Tuple[bool, Optional[str]]:
|
|
510
556
|
"""Deploy to Abstra remote (push to abstra remote)"""
|
|
511
557
|
if not self.is_git_repository():
|
|
512
|
-
return False
|
|
558
|
+
return False, "Not a git repository"
|
|
513
559
|
|
|
514
560
|
if not self.has_remote(REMOTE_NAME):
|
|
515
|
-
return False
|
|
561
|
+
return False, "Abstra Remote not found"
|
|
516
562
|
|
|
517
|
-
success, _,
|
|
563
|
+
success, _, err = self._run_git_command(["push", REMOTE_NAME, branch])
|
|
564
|
+
error_message = None if success else f"Git push failed with error: {err}"
|
|
518
565
|
|
|
519
|
-
return success
|
|
566
|
+
return success, error_message
|
|
520
567
|
|
|
521
|
-
def revert_commit(self, commit_hash: str) -> bool:
|
|
568
|
+
def revert_commit(self, commit_hash: str) -> Tuple[bool, Optional[str]]:
|
|
522
569
|
"""Reset working directory to match a previous commit and create a new commit with that content"""
|
|
523
570
|
if not self.is_git_repository():
|
|
524
|
-
return False
|
|
571
|
+
return False, "Not a git repository"
|
|
525
572
|
|
|
526
573
|
if not commit_hash.strip():
|
|
527
|
-
return False
|
|
574
|
+
return False, "Invalid commit hash"
|
|
528
575
|
|
|
529
576
|
if self.has_uncommitted_changes():
|
|
530
|
-
return False
|
|
577
|
+
return False, "Uncommitted changes present"
|
|
531
578
|
|
|
532
579
|
try:
|
|
533
580
|
# Step 1: Reset the working directory and index to match the target commit
|
|
534
581
|
# This will replace all files with their state from the target commit
|
|
535
|
-
success_reset, _,
|
|
582
|
+
success_reset, _, err = self._run_git_command(
|
|
536
583
|
["reset", "--hard", commit_hash]
|
|
537
584
|
)
|
|
538
585
|
if not success_reset:
|
|
539
|
-
return False
|
|
586
|
+
return False, f"Git reset failed with error: {err}"
|
|
540
587
|
|
|
541
588
|
# Step 2: Reset HEAD back to the original position (soft reset)
|
|
542
589
|
# This keeps the files from target commit but moves HEAD back
|
|
543
|
-
success_soft, _,
|
|
590
|
+
success_soft, _, err = self._run_git_command(
|
|
591
|
+
["reset", "--soft", "HEAD@{1}"]
|
|
592
|
+
)
|
|
544
593
|
if not success_soft:
|
|
545
|
-
return False
|
|
594
|
+
return False, f"Git soft reset failed with error: {err}"
|
|
546
595
|
|
|
547
596
|
# Step 3: Create a new commit with the restored content
|
|
548
597
|
commit_message = f"Restore content from commit {commit_hash[:8]}"
|
|
549
|
-
success_commit, _,
|
|
598
|
+
success_commit, _, err = self._run_git_command(
|
|
550
599
|
["commit", "-m", commit_message]
|
|
551
600
|
)
|
|
601
|
+
error_message = (
|
|
602
|
+
None if success_commit else f"Git commit failed with error: {err}"
|
|
603
|
+
)
|
|
552
604
|
|
|
553
|
-
return success_commit
|
|
605
|
+
return success_commit, error_message
|
|
554
606
|
|
|
555
607
|
except Exception:
|
|
556
608
|
self._run_git_command(["reset", "--hard", "HEAD"])
|
|
557
|
-
return False
|
|
609
|
+
return False, "An error occurred during revert"
|
|
558
610
|
|
|
559
611
|
def check_merge_conflicts(self, remote_commit: str) -> bool:
|
|
560
612
|
"""Check if merging with remote commit would cause conflicts"""
|
|
@@ -191,12 +191,12 @@ class GitRepositoryInterface(ABC):
|
|
|
191
191
|
pass
|
|
192
192
|
|
|
193
193
|
@abstractmethod
|
|
194
|
-
def checkout_branch(self, branch_name: str) -> bool:
|
|
194
|
+
def checkout_branch(self, branch_name: str) -> Tuple[bool, Optional[str]]:
|
|
195
195
|
"""Switch to a different branch"""
|
|
196
196
|
pass
|
|
197
197
|
|
|
198
198
|
@abstractmethod
|
|
199
|
-
def checkout_commit(self, commit_hash: str) -> bool:
|
|
199
|
+
def checkout_commit(self, commit_hash: str) -> Tuple[bool, Optional[str]]:
|
|
200
200
|
"""Switch to a specific commit (detached HEAD state)"""
|
|
201
201
|
pass
|
|
202
202
|
|
|
@@ -206,17 +206,19 @@ class GitRepositoryInterface(ABC):
|
|
|
206
206
|
strategy: str = "merge",
|
|
207
207
|
allow_unrelated: bool = True,
|
|
208
208
|
conflict_resolution: Optional[str] = "theirs",
|
|
209
|
-
) -> bool:
|
|
209
|
+
) -> Tuple[bool, Optional[str]]:
|
|
210
210
|
"""Pull changes from remote repository"""
|
|
211
211
|
pass
|
|
212
212
|
|
|
213
213
|
@abstractmethod
|
|
214
|
-
def commit_changes(
|
|
214
|
+
def commit_changes(
|
|
215
|
+
self, message: str, author: Optional[str] = None
|
|
216
|
+
) -> Tuple[bool, Optional[str]]:
|
|
215
217
|
"""Commit changes with a message"""
|
|
216
218
|
pass
|
|
217
219
|
|
|
218
220
|
@abstractmethod
|
|
219
|
-
def stash_changes(self, message: str = "WIP") -> bool:
|
|
221
|
+
def stash_changes(self, message: str = "WIP") -> Tuple[bool, Optional[str]]:
|
|
220
222
|
"""Stash uncommitted changes"""
|
|
221
223
|
pass
|
|
222
224
|
|
|
@@ -251,12 +253,12 @@ class GitRepositoryInterface(ABC):
|
|
|
251
253
|
pass
|
|
252
254
|
|
|
253
255
|
@abstractmethod
|
|
254
|
-
def push_and_deploy(self, branch: str = "main") -> bool:
|
|
256
|
+
def push_and_deploy(self, branch: str = "main") -> Tuple[bool, Optional[str]]:
|
|
255
257
|
"""Deploy to Abstra remote (push to abstra remote)"""
|
|
256
258
|
pass
|
|
257
259
|
|
|
258
260
|
@abstractmethod
|
|
259
|
-
def revert_commit(self, commit_hash: str) -> bool:
|
|
261
|
+
def revert_commit(self, commit_hash: str) -> Tuple[bool, Optional[str]]:
|
|
260
262
|
"""Restore content from a previous commit by creating a new commit with that content"""
|
|
261
263
|
pass
|
|
262
264
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import json
|
|
2
|
+
import threading
|
|
2
3
|
from pathlib import Path
|
|
3
4
|
from typing import Generic, List, Optional, Type, TypeVar
|
|
4
5
|
|
|
@@ -17,7 +18,7 @@ T = TypeVar("T", bound=Serializable)
|
|
|
17
18
|
|
|
18
19
|
class SqlStorage(Generic[T]):
|
|
19
20
|
def __init__(self, mp_context: MPContext, directory: str, model: Type[T]):
|
|
20
|
-
self.lock =
|
|
21
|
+
self.lock = threading.RLock()
|
|
21
22
|
self.directory = directory
|
|
22
23
|
self.model = model
|
|
23
24
|
self.table_name = "data"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as c,c as b,a as r,b as
|
|
2
|
-
//# sourceMappingURL=AbstraButton.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import{d as c,c as b,a as r,b as a,u as n,eI as d,ed as g,o as i,f as l,dj as p,ae as u,h as f,eJ as m,bY as y,b0 as _}from"./jwt-decode.esm.f87c17f7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="651eae24-fc7e-4e77-b25d-b0f45c7d8826",t._sentryDebugIdIdentifier="sentry-dbid-651eae24-fc7e-4e77-b25d-b0f45c7d8826")}catch{}})();const h=c({__name:"AbstraButton",props:{disabledTooltip:{},tooltip:{},prefixCls:{},type:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object]},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onClick:{type:[Function,Array]},onMousedown:{type:[Function,Array]}},setup(t){const e=t,s=b(()=>e.disabledTooltip&&e.disabled?e.disabledTooltip:e.tooltip);return(o,k)=>s.value?(i(),r(n(_),{key:0,title:s.value},{default:a(()=>[l(n(y),d(m(o.$props)),{default:a(()=>[l(n(p),{style:{display:"flex","align-items":"center","justify-content":"center",gap:"5px"}},{default:a(()=>[o.loading?f("",!0):u(o.$slots,"default",{key:0})]),_:3})]),_:3},16)]),_:3},8,["title"])):(i(),r(n(y),d(g({key:1},o.$props)),{default:a(()=>[l(n(p),{style:{display:"flex","align-items":"center","justify-content":"center",gap:"5px"}},{default:a(()=>[o.loading?f("",!0):u(o.$slots,"default",{key:0})]),_:3})]),_:3},16))}});export{h as _};
|
|
2
|
+
//# sourceMappingURL=AbstraButton.vue_vue_type_script_setup_true_lang.6efe348a.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{L as a}from"./Logo.29f26be1.js";import{d as n,o as r,a as f,u as d}from"./jwt-decode.esm.f87c17f7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="50762156-b5ff-4735-ad4f-f4ec712ecf8c",e._sentryDebugIdIdentifier="sentry-dbid-50762156-b5ff-4735-ad4f-f4ec712ecf8c")}catch{}})();const i="/assets/logo.0faadfa2.svg",u=n({__name:"AbstraLogo",props:{hideText:{type:Boolean},size:{}},setup(e){return(s,t)=>{var o;return r(),f(a,{"image-url":d(i),"brand-name":"Abstra","hide-text":s.hideText,size:(o=s.size)!=null?o:"small"},null,8,["image-url","hide-text","size"])}}});export{u as _};
|
|
2
|
+
//# sourceMappingURL=AbstraLogo.vue_vue_type_script_setup_true_lang.f628a3a7.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as x}from"./CrudView.7997b881.js";import{d as I,r as A,i as e,ei as C,c as h,ac as D,f as d,u as t,b as p,aY as M,o as P,de as T,g as y,t as f,df as j,M as V,ek as B,et as E}from"./jwt-decode.esm.f87c17f7.js";import{a as N}from"./asyncComputed.515034b4.js";import{A as c}from"./apiKey.66dca0fa.js";import"./router.09566602.js";import{M as $}from"./member.c8206c64.js";import{a as z}from"./project.25a396d4.js";import"./tables.1b5568d1.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.39638c19.js";import"./constants.2cdc2025.js";import"./url.acca5643.js";import"./PhDotsThreeVertical.vue.2c9a03d5.js";import"./index.97648248.js";import"./index.9f357119.js";import"./record.a8da6046.js";import"./string.0c102318.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="4ddd36ba-2470-44d6-9568-d34f1daa140c",s._sentryDebugIdIdentifier="sentry-dbid-4ddd36ba-2470-44d6-9568-d34f1daa140c")}catch{}})();const te=I({__name:"ApiKeys",setup(s){const o=A(null),_=[{key:"name",label:e.translate("i18n_apikeysview_field_name")}],r=C().params.projectId,w=new $,{loading:v,result:k,refetch:m}=N(async()=>Promise.all([c.list(r),z.get(r).then(a=>w.list(a.organizationId))]).then(([a,n])=>a.map(i=>({apiKey:i,member:n.find(l=>l.authorId===i.ownerId)})))),b=async a=>{const n=await c.create({projectId:r,name:a.name});m(),o.value=n.value},g=h(()=>{var a,n;return{columns:[{title:e.translate("i18n_apikeysview_column_name")},{title:e.translate("i18n_apikeysview_column_creation_date")},{title:e.translate("i18n_apikeysview_column_owner")},{title:"",align:"right"}],rows:(n=(a=k.value)==null?void 0:a.map(({apiKey:i,member:l})=>{var u;return{key:i.id,cells:[{type:"text",text:i.name},{type:"text",text:B(i.createdAt)},{type:"text",text:(u=l==null?void 0:l.email)!=null?u:e.translate("i18n_apikeysview_owner_unknown")},{type:"actions",actions:[{label:e.translate("i18n_apikeysview_action_delete"),icon:E,dangerous:!0,onClick:async()=>{await c.delete(r,i.id),m()}}]}]}}))!=null?n:[]}});return(a,n)=>(P(),D(M,null,[d(x,{"entity-name":t(e).translate("i18n_apikeysview_entity_name"),"create-button-text":t(e).translate("i18n_apikeysview_create_button"),loading:t(v),title:t(e).translate("i18n_apikeysview_title"),description:t(e).translate("i18n_apikeysview_description"),"empty-title":t(e).translate("i18n_apikeysview_empty_title"),table:g.value,fields:_,create:b},null,8,["entity-name","create-button-text","loading","title","description","empty-title","table"]),d(t(V),{open:!!o.value,title:t(e).translate("i18n_apikeysview_modal_title"),onCancel:n[0]||(n[0]=i=>o.value=null)},{footer:p(()=>[]),default:p(()=>[d(t(T),null,{default:p(()=>[y(f(t(e).translate("i18n_apikeysview_modal_description")),1)]),_:1}),d(t(j),{code:"",copyable:""},{default:p(()=>[y(f(o.value),1)]),_:1})]),_:1},8,["open","title"])],64))}});export{te as default};
|
|
2
|
+
//# sourceMappingURL=ApiKeys.5b43091f.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./App.vue_vue_type_style_index_0_lang.1a83eeea.js";import{_ as u}from"./App.vue_vue_type_style_index_0_lang.1a83eeea.js";import"./userStore.3989ac4e.js";import"./jwt-decode.esm.f87c17f7.js";import"./PlayerConfigProvider.26c6fb0a.js";import"./colorHelpers.43bbe7b2.js";import"./workspaceStore.ef7daa80.js";import"./url.acca5643.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d22a2f76-d432-4e87-92af-523724e474be",e._sentryDebugIdIdentifier="sentry-dbid-d22a2f76-d432-4e87-92af-523724e474be")}catch{}})();export{u as default};
|
|
2
|
+
//# sourceMappingURL=App.7a6ee8e5.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{u as r}from"./userStore.3989ac4e.js";import{W as n}from"./PlayerConfigProvider.26c6fb0a.js";import{u as c}from"./workspaceStore.ef7daa80.js";import{d as f,w as i,j as p,u as o,a as u,b as d,h as l,o as m,f as _}from"./jwt-decode.esm.f87c17f7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="4f86579f-0b3e-4888-9ec7-205f905c3954",t._sentryDebugIdIdentifier="sentry-dbid-4f86579f-0b3e-4888-9ec7-205f905c3954")}catch{}})();const v=f({__name:"App",setup(t){const a=r(),e=c();return e.actions.fetch(),i(()=>a.jwt,e.actions.fetch),(w,y)=>{const s=p("RouterView");return o(e).state.workspace?(m(),u(n,{key:0,"main-color":o(e).state.workspace.mainColor,background:o(e).state.workspace.theme,"font-family":o(e).state.workspace.fontFamily,locale:o(e).state.workspace.language},{default:d(()=>[_(s,{style:{height:"100vh",width:"100%"}})]),_:1},8,["main-color","background","font-family","locale"])):l("",!0)}}});export{v as _};
|
|
2
|
+
//# sourceMappingURL=App.vue_vue_type_style_index_0_lang.1a83eeea.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as c,o,ac as n,ae as s,e as d,h as a}from"./jwt-decode.esm.
|
|
2
|
-
//# sourceMappingURL=BaseLayout.
|
|
1
|
+
import{_ as c,o,ac as n,ae as s,e as d,h as a}from"./jwt-decode.esm.f87c17f7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c9cdbea9-7122-4108-84ab-33b52267c876",e._sentryDebugIdIdentifier="sentry-dbid-c9cdbea9-7122-4108-84ab-33b52267c876")}catch{}})();const r={},i={class:"base-layout"},_={class:"base-middle"},l={class:"content"},u={class:"left"},f={key:0,class:"base-footer"},b={key:0};function y(e,t){return o(),n("div",i,[s(e.$slots,"sidebar",{},void 0,!0),d("section",_,[s(e.$slots,"navbar",{},void 0,!0),d("section",l,[d("section",u,[s(e.$slots,"content",{},void 0,!0),e.$slots.footer?(o(),n("section",f,[s(e.$slots,"footer",{},void 0,!0)])):a("",!0)]),e.$slots.chat?(o(),n("section",b,[s(e.$slots,"chat",{},void 0,!0)])):a("",!0)])])])}const g=c(r,[["render",y],["__scopeId","data-v-da85ecdc"]]);export{g as B};
|
|
2
|
+
//# sourceMappingURL=BaseLayout.3c6f8614.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as w}from"./asyncComputed.515034b4.js";import{d as h,ei as k,U as I,u as e,a as d,ac as x,f as n,b as t,h as C,o,A as _,g as c,t as s,i as u,bY as v,dj as p,e as z}from"./jwt-decode.esm.f87c17f7.js";import{o as m,c as B}from"./router.09566602.js";import{a as D}from"./organization.70cdf915.js";import"./tables.1b5568d1.js";import{L as N}from"./LoadingContainer.b8fe55e6.js";import"./index.9f357119.js";import"./record.a8da6046.js";import"./string.0c102318.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="fb028fc6-7264-4c23-8f22-28b5d7b7a47b",a._sentryDebugIdIdentifier="sentry-dbid-fb028fc6-7264-4c23-8f22-28b5d7b7a47b")}catch{}})();const U={key:1},j=["src"],O=h({__name:"Billing",setup(a){const f=k().params.organizationId,{loading:y,result:r}=w(async()=>{const l=await D.get(f),g=await l.getUsageReportUrl();return{organization:l,reportUrl:g}});I(()=>{location.search.includes("upgrade")&&m.showNewMessage("I want to upgrade my plan")});const b=()=>m.showNewMessage("I want to upgrade my plan");return(l,g)=>e(y)?(o(),d(N,{key:0})):e(r)?(o(),x("div",U,[n(e(p),{justify:"space-between",align:"center"},{default:t(()=>[n(e(_),{level:3},{default:t(()=>[c(s(e(u).translate("i18n_billing_current_plan"))+" "+s(e(r).organization.coalescedPlan),1)]),_:1}),n(e(v),{type:"primary",onClick:b},{default:t(()=>[c(s(e(u).translate("i18n_billing_upgrade")),1)]),_:1})]),_:1}),n(e(B),{style:{"margin-top":"0"}}),e(r).organization.hasUsageReport?(o(),d(e(p),{key:0,align:"center",justify:"center"},{default:t(()=>[z("iframe",{src:e(r).reportUrl,frameborder:"0",style:{width:"1000px",height:"1700px"}},null,8,j)]),_:1})):(o(),d(e(p),{key:1,align:"center",justify:"center"},{default:t(()=>[n(e(_),{level:4},{default:t(()=>[c(s(e(u).translate("i18n_billing_no_usage_report")),1)]),_:1})]),_:1}))])):C("",!0)}});export{O as default};
|
|
2
|
+
//# sourceMappingURL=Billing.884bb3ce.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{d as O,an as w,b_ as _,f as c,aq as f,aC as R,az as A,eb as j,bu as D,bW as P,ai as z,aj as E,W as B,au as M,e2 as X,aK as N,aG as H,dF as L,bE as F}from"./jwt-decode.esm.
|
|
1
|
+
import{d as O,an as w,b_ as _,f as c,aq as f,aC as R,az as A,eb as j,bu as D,bW as P,ai as z,aj as E,W as B,au as M,e2 as X,aK as N,aG as H,dF as L,bE as F}from"./jwt-decode.esm.f87c17f7.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="c536ee98-2826-451a-85f0-e6204ea8fa1f",r._sentryDebugIdIdentifier="sentry-dbid-c536ee98-2826-451a-85f0-e6204ea8fa1f")}catch{}})();var U=globalThis&&globalThis.__rest||function(r,e){var a={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(a[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,n=Object.getOwnPropertySymbols(r);t<n.length;t++)e.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(r,n[t])&&(a[n[t]]=r[n[t]]);return a};const W=()=>({prefixCls:String,href:String,separator:R.any,dropdownProps:A(),overlay:R.any,onClick:j()}),K=O({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:W(),slots:Object,setup(r,e){let{slots:a,attrs:n,emit:t}=e;const{prefixCls:u}=w("breadcrumb",r),y=(d,h)=>{const b=_(a,r,"overlay");return b?c(P,f(f({},r.dropdownProps),{},{overlay:b,placement:"bottom"}),{default:()=>[c("span",{class:`${h}-overlay-link`},[d,c(D,null,null)])]}):d},I=d=>{t("click",d)};return()=>{var d;const h=(d=_(a,r,"separator"))!==null&&d!==void 0?d:"/",b=_(a,r),{class:l,style:s}=n,o=U(n,["class","style"]);let i;return r.href!==void 0?i=c("a",f({class:`${u.value}-link`,onClick:I},o),[b]):i=c("span",f({class:`${u.value}-link`,onClick:I},o),[b]),i=y(i,u.value),b!=null?c("li",{class:l,style:s},[i,h&&c("span",{class:`${u.value}-separator`},[h])]):null}}}),V=r=>{const{componentCls:e,iconCls:a}=r;return{[e]:B(B({},M(r)),{color:r.breadcrumbBaseColor,fontSize:r.breadcrumbFontSize,[a]:{fontSize:r.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:B({color:r.breadcrumbLinkColor,transition:`color ${r.motionDurationMid}`,padding:`0 ${r.paddingXXS}px`,borderRadius:r.borderRadiusSM,height:r.lineHeight*r.fontSize,display:"inline-block",marginInline:-r.marginXXS,"&:hover":{color:r.breadcrumbLinkColorHover,backgroundColor:r.colorBgTextHover}},X(r)),["li:last-child"]:{color:r.breadcrumbLastItemColor,[`& > ${e}-separator`]:{display:"none"}},[`${e}-separator`]:{marginInline:r.breadcrumbSeparatorMargin,color:r.breadcrumbSeparatorColor},[`${e}-link`]:{[`
|
|
2
2
|
> ${a} + span,
|
|
3
3
|
> ${a} + a
|
|
4
4
|
`]:{marginInlineStart:r.marginXXS}},[`${e}-overlay-link`]:{borderRadius:r.borderRadiusSM,height:r.lineHeight*r.fontSize,display:"inline-block",padding:`0 ${r.paddingXXS}px`,marginInline:-r.marginXXS,[`> ${a}`]:{marginInlineStart:r.marginXXS,fontSize:r.fontSizeIcon},"&:hover":{color:r.breadcrumbLinkColorHover,backgroundColor:r.colorBgTextHover,a:{color:r.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${r.componentCls}-rtl`]:{direction:"rtl"}})}},q=z("Breadcrumb",r=>{const e=E(r,{breadcrumbBaseColor:r.colorTextDescription,breadcrumbFontSize:r.fontSize,breadcrumbIconFontSize:r.fontSize,breadcrumbLinkColor:r.colorTextDescription,breadcrumbLinkColorHover:r.colorText,breadcrumbLastItemColor:r.colorText,breadcrumbSeparatorMargin:r.marginXS,breadcrumbSeparatorColor:r.colorTextDescription});return[V(e)]}),G=()=>({prefixCls:String,routes:{type:Array},params:R.any,separator:R.any,itemRender:{type:Function}});function J(r,e){if(!r.breadcrumbName)return null;const a=Object.keys(e).join("|");return r.breadcrumbName.replace(new RegExp(`:(${a})`,"g"),(t,u)=>e[u]||t)}function T(r){const{route:e,params:a,routes:n,paths:t}=r,u=n.indexOf(e)===n.length-1,y=J(e,a);return u?c("span",null,[y]):c("a",{href:`#/${t.join("/")}`},[y])}const Y=O({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:G(),slots:Object,setup(r,e){let{slots:a,attrs:n}=e;const{prefixCls:t,direction:u}=w("breadcrumb",r),[y,I]=q(t),d=(l,s)=>(l=(l||"").replace(/^\//,""),Object.keys(s).forEach(o=>{l=l.replace(`:${o}`,s[o])}),l),h=(l,s,o)=>{const i=[...l],m=d(s||"",o);return m&&i.push(m),i},b=l=>{let{routes:s=[],params:o={},separator:i,itemRender:m=T}=l;const S=[];return s.map(p=>{const C=d(p.path,o);C&&S.push(C);const g=[...S];let v=null;p.children&&p.children.length&&(v=c(F,{items:p.children.map(x=>({key:x.path||x.breadcrumbName,label:m({route:x,params:o,routes:s,paths:h(g,x.path,o)})}))},null));const $={separator:i};return v&&($.overlay=v),c(K,f(f({},$),{},{key:C||p.breadcrumbName}),{default:()=>[m({route:p,params:o,routes:s,paths:g})]})})};return()=>{var l;let s;const{routes:o,params:i={}}=r,m=N(_(a,r)),S=(l=_(a,r,"separator"))!==null&&l!==void 0?l:"/",p=r.itemRender||a.itemRender||T;o&&o.length>0?s=b({routes:o,params:i,separator:S,itemRender:p}):m.length&&(s=m.map((g,v)=>(H(typeof g.type=="object"&&(g.type.__ANT_BREADCRUMB_ITEM||g.type.__ANT_BREADCRUMB_SEPARATOR)),L(g,{separator:S,key:v}))));const C={[t.value]:!0,[`${t.value}-rtl`]:u.value==="rtl",[`${n.class}`]:!!n.class,[I.value]:!0};return y(c("nav",f(f({},n),{},{class:C}),[c("ol",null,[s])]))}}});export{K as A,Y as B};
|
|
5
|
-
//# sourceMappingURL=Breadcrumb.
|
|
5
|
+
//# sourceMappingURL=Breadcrumb.438b89fb.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as F}from"./CrudView.391f0e9f.js";import{d as I,at as Z,c as P,o as c,ac as h,ae as K,h as C,ed as H,e as A,f as u,ee as j,f7 as q,ec as U,a as f,b as s,u as e,bW as W,bE as Q,bD as Y,df as k,g as _,t as y,i as g,cC as J,ei as X,U as ee,R as te,r as ae,aY as ne,b0 as le,cS as re,de as ie,ad as se,d9 as oe,S as ue,M as ce,ek as de,_ as pe}from"./jwt-decode.esm.4071145e.js";import{a as V}from"./asyncComputed.0308626b.js";import{g as fe}from"./datetime.049cd1b4.js";import{u as me}from"./polling.cabdf3a3.js";import{G as ge}from"./PhArrowCounterClockwise.vue.44a61827.js";import{H as be}from"./PhCube.vue.3f7281ae.js";import{G as _e}from"./PhDownloadSimple.vue.db22067f.js";import{f as ye,e as ve,r as he}from"./router.ef7a08cf.js";import{a as Ce,B as ke}from"./build.1cc9147c.js";import{a as Ae}from"./project.794c2cba.js";import"./tables.59457dad.js";import{G as Oe}from"./PhClockCounterClockwise.vue.701e6c6a.js";import{F as we,a as Se,G as Pe,I as xe}from"./PhWebhooksLogo.vue.28d1edea.js";import{A as M}from"./index.c25fb6e2.js";import{E as Ze}from"./ExclamationCircleOutlined.81063754.js";import{C as Me}from"./CloseCircleOutlined.66e5f1b1.js";import{L as $}from"./LoadingOutlined.eb1ab7c7.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.e6d1d3ad.js";import"./constants.ba2d8460.js";import"./url.4aa6f272.js";import"./PhDotsThreeVertical.vue.b3fda5f6.js";import"./index.fd17682d.js";import"./record.daabed01.js";import"./string.0157e442.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[t]="0c18ec1f-991b-4fc2-9bb3-5aab61f759c9",l._sentryDebugIdIdentifier="sentry-dbid-0c18ec1f-991b-4fc2-9bb3-5aab61f759c9")}catch{}})();var $e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const Ie=$e;var je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};const ze=je,Be=["width","height","fill","transform"],De={key:0},Ee=A("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-16-84a16,16,0,1,1-16-16A16,16,0,0,1,112,128Zm64,0a16,16,0,1,1-16-16A16,16,0,0,1,176,128Z"},null,-1),Ve=[Ee],Ne={key:1},Te=A("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),Ge=A("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm56-88a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),Le=[Te,Ge],Re={key:2},Fe=A("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"},null,-1),Ke=[Fe],He={key:3},qe=A("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm10-90a10,10,0,1,1-10-10A10,10,0,0,1,138,128Zm-44,0a10,10,0,1,1-10-10A10,10,0,0,1,94,128Zm88,0a10,10,0,1,1-10-10A10,10,0,0,1,182,128Z"},null,-1),Ue=[qe],We={key:4},Qe=A("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-88,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),Ye=[Qe],Je={key:5},Xe=A("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm8-92a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-44,0a8,8,0,1,1-8-8A8,8,0,0,1,92,128Zm88,0a8,8,0,1,1-8-8A8,8,0,0,1,180,128Z"},null,-1),et=[Xe],tt={name:"PhDotsThreeCircle"},at=I({...tt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(l){const t=l,n=Z("weight","regular"),d=Z("size","1em"),o=Z("color","currentColor"),x=Z("mirrored",!1),p=P(()=>{var m;return(m=t.weight)!=null?m:n}),w=P(()=>{var m;return(m=t.size)!=null?m:d}),v=P(()=>{var m;return(m=t.color)!=null?m:o}),O=P(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:x?"scale(-1, 1)":void 0);return(m,E)=>(c(),h("svg",H({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:v.value,transform:O.value},m.$attrs),[K(m.$slots,"default"),p.value==="bold"?(c(),h("g",De,Ve)):p.value==="duotone"?(c(),h("g",Ne,Le)):p.value==="fill"?(c(),h("g",Re,Ke)):p.value==="light"?(c(),h("g",He,Ue)):p.value==="regular"?(c(),h("g",We,Ye)):p.value==="thin"?(c(),h("g",Je,et)):C("",!0)],16,Be))}});function N(l){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},d=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),d.forEach(function(o){nt(l,o,n[o])})}return l}function nt(l,t,n){return t in l?Object.defineProperty(l,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[t]=n,l}var z=function(t,n){var d=N({},t,n.attrs);return u(j,N({},d,{icon:q}),null)};z.displayName="CheckCircleOutlined";z.inheritAttrs=!1;const lt=z;function T(l){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},d=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),d.forEach(function(o){rt(l,o,n[o])})}return l}function rt(l,t,n){return t in l?Object.defineProperty(l,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[t]=n,l}var B=function(t,n){var d=T({},t,n.attrs);return u(j,T({},d,{icon:Ie}),null)};B.displayName="MinusCircleOutlined";B.inheritAttrs=!1;const it=B;function G(l){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},d=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),d.forEach(function(o){st(l,o,n[o])})}return l}function st(l,t,n){return t in l?Object.defineProperty(l,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[t]=n,l}var D=function(t,n){var d=G({},t,n.attrs);return u(j,G({},d,{icon:ze}),null)};D.displayName="PauseCircleOutlined";D.inheritAttrs=!1;const ot=D,ut={style:{display:"flex","align-items":"center",gap:"5px"}},ct={key:1},dt=I({__name:"BuildInspector",props:{buildSpec:{}},setup(l){const t=l,n=U(),d=o=>{n.push({name:"logs",params:{projectId:t.buildSpec.projectId},query:o.logQuery})};return(o,x)=>o.buildSpec.runtimes.length>0?(c(),f(e(ve),{key:0,"item-layout":"horizontal","data-source":o.buildSpec.runtimes},{renderItem:s(({item:p})=>[u(e(ye),null,{actions:s(()=>[u(e(W),null,{overlay:s(()=>[u(e(Q),null,{default:s(()=>[u(e(Y),{onClick:w=>d(p)},{default:s(()=>[A("div",ut,[u(e(Oe)),u(e(k),null,{default:s(()=>[_(y(e(g).translate("i18n_build_inspector_view_logs",null)),1)]),_:1})])]),_:2},1032,["onClick"])]),_:2},1024)]),default:s(()=>[u(e(at),{style:{cursor:"pointer"}})]),_:2},1024)]),default:s(()=>[p.type=="form"?(c(),f(e(M),{key:0,size:"large"},{default:s(()=>[u(e(we)),u(e(k),{strong:""},{default:s(()=>[_(y(p.title),1)]),_:2},1024),u(e(k),{type:"secondary",code:""},{default:s(()=>[_("/"+y(p.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),p.type=="job"?(c(),f(e(M),{key:1,size:"large"},{default:s(()=>[u(e(Se)),u(e(k),{strong:""},{default:s(()=>[_(y(p.title),1)]),_:2},1024),u(e(k),{type:"secondary",code:""},{default:s(()=>[_(y(p.schedule),1)]),_:2},1024)]),_:2},1024)):C("",!0),p.type=="hook"?(c(),f(e(M),{key:2,size:"large"},{default:s(()=>[u(e(Pe)),u(e(k),{strong:""},{default:s(()=>[_(y(p.title),1)]),_:2},1024),u(e(k),{type:"secondary",code:""},{default:s(()=>[_("/_hooks/"+y(p.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),p.type=="script"?(c(),f(e(M),{key:3,size:"large"},{default:s(()=>[u(e(xe)),u(e(k),{strong:""},{default:s(()=>[_(y(p.title),1)]),_:2},1024)]),_:2},1024)):C("",!0)]),_:2},1024)]),_:1},8,["data-source"])):(c(),h("div",ct,[u(e(J),{description:e(g).translate("i18n_build_inspector_no_runtimes",null)},null,8,["description"])]))}}),pt=I({__name:"Builds",setup(l){const n=X().params.projectId,{loading:d,result:o,refetch:x}=V(async()=>{const[a,r]=await Promise.all([Ce.list(n),Ae.getStatus(n)]);return{b:a.map(b=>({build:b,status:r.filter(S=>S.buildId==b.id).map(S=>S.status)})),status:r}}),{startPolling:p,endPolling:w}=me({task:x,interval:1e4});ee(()=>p()),te(()=>w());const v=ae(null),O=V(async()=>v.value?await ke.get(v.value):null),m=()=>{var i;const a=(i=o.value)==null?void 0:i.b.find(b=>b.build.id===v.value);return`Version ${a==null?void 0:a.build.id.slice(0,8)} - ${a==null?void 0:a.build.createdAt.toLocaleString()}`},E=[{translationKey:"i18n_builds_deploying",tagColor:"blue",check:a=>{var r,i;return(i=a.build.latest&&a.status.some(b=>b=="Running")&&((r=o.value)==null?void 0:r.status.some(b=>b.buildId!==a.build.id)))!=null?i:!1},loading:!0},{translationKey:"i18n_builds_deactivating",tagColor:"orange",check:a=>a.build.status==="success"&&!a.build.latest&&a.status.some(r=>r=="Running"),loading:!0},{translationKey:"i18n_builds_live",tagColor:"green",check:a=>a.build.latest&&a.status.some(r=>r=="Running")},{translationKey:"i18n_builds_sleeping",tagColor:"cyan",check:a=>a.build.latest&&a.status.length===0},{translationKey:"i18n_builds_failed",tagColor:"red",check:a=>a.build.latest&&a.status.some(r=>r=="Failed")},{translationKey:"i18n_builds_inactive",tagColor:"default",check:a=>a.build.status==="success"},{translationKey:"i18n_builds_aborted",tagColor:"default",check:a=>a.build.status==="aborted"||a.build.status==="aborted-by-user"},{translationKey:"i18n_builds_failed",tagColor:"orange",check:a=>a.build.status==="failure"},{translationKey:"i18n_builds_deploying",tagColor:"blue",check:a=>a.build.status==="in-progress",loading:!0},{translationKey:"i18n_builds_uploading",tagColor:"yellow",check:a=>a.build.status==="pending"}];function L(a){var i,b;const r=E.find(S=>S.check(a));return{text:r?g.translate(r.translationKey):"unknown",tagColor:(i=r==null?void 0:r.tagColor)!=null?i:"default",hover:(b=a.build.log)!=null?b:void 0}}const R=P(()=>{const a=[{title:g.translate("i18n_builds_id")},{title:g.translate("i18n_builds_date")},{title:g.translate("i18n_builds_abstra_version")},{title:g.translate("i18n_builds_status")},{title:"",align:"right"}];return o.value?{columns:a,rows:o.value.b.map(r=>{var i;return{key:r.build.id,cells:[{type:"text",text:r.build.id.slice(0,8)},{key:"date",type:"slot",payload:{date:fe(r.build.createdAt,{weekday:void 0}),distance:de(r.build.createdAt)}},{type:"text",text:(i=r.build.abstraVersion)!=null?i:"-"},{key:"status",type:"slot",payload:L(r)},{type:"actions",actions:[{icon:be,label:g.translate("i18n_builds_inspect_version"),onClick:async()=>{v.value=r.build.id,O.refetch()}},{icon:ge,label:g.translate("i18n_builds_view_application_logs"),onClick:()=>{he.push({name:"logs",params:{projectId:n},query:{buildId:r.build.id}})}},{icon:_e,label:g.translate("i18n_builds_download_files"),onClick:()=>r.build.download()}]}]}})}:{columns:a,rows:[]}});return(a,r)=>(c(),h(ne,null,[u(F,{"entity-name":"build",loading:e(d),title:e(g).translate("i18n_builds_version_history"),description:e(g).translate("i18n_builds_description"),"empty-title":e(g).translate("i18n_builds_empty_title"),table:R.value,live:""},{date:s(({payload:i})=>[u(e(le),null,{title:s(()=>[_(y(i.distance),1)]),default:s(()=>[_(y(i.date)+" ",1)]),_:2},1024)]),status:s(({payload:i})=>[u(e(re),{open:i.hover?void 0:!1},{content:s(()=>[u(e(ie),{style:{width:"300px",overflow:"auto","font-family":"monospace"},content:i.hover,copyable:""},null,8,["content"])]),default:s(()=>[i.text!=="unknown"?(c(),f(e(oe),{key:0,color:i.tagColor,style:se({cursor:i.hover?"pointer":"default"})},{default:s(()=>[i.text==="Live"?(c(),f(e(lt),{key:0})):i.text==="Inactive"?(c(),f(e(it),{key:1})):i.text==="Failed"?(c(),f(e(Ze),{key:2})):i.text==="Aborted"?(c(),f(e(Me),{key:3})):i.text==="Sleeping"?(c(),f(e(ot),{key:4})):i.text==="Uploading"?(c(),f(e($),{key:5})):i.text==="Deploying"?(c(),f(e($),{key:6})):i.text==="Deactivating"?(c(),f(e($),{key:7})):C("",!0),_(" "+y(i.text),1)]),_:2},1032,["color","style"])):C("",!0)]),_:2},1032,["open"])]),_:1},8,["loading","title","description","empty-title","table"]),v.value?(c(),f(e(ce),{key:0,footer:null,open:!!v.value,size:"large",width:"80%",title:m(),onCancel:r[0]||(r[0]=i=>v.value=null)},{default:s(()=>[!e(O).result.value||e(O).loading.value?(c(),f(e(ue),{key:0})):e(O).result.value?(c(),f(dt,{key:1,"build-spec":e(O).result.value},null,8,["build-spec"])):C("",!0)]),_:1},8,["open","title"])):C("",!0)],64))}});const Vt=pe(pt,[["__scopeId","data-v-cfc16bae"]]);export{Vt as default};
|
|
2
|
-
//# sourceMappingURL=Builds.
|
|
1
|
+
import{C as F}from"./CrudView.7997b881.js";import{d as I,at as Z,c as P,o as c,ac as h,ae as K,h as C,ed as H,e as A,f as u,ee as j,f9 as q,ec as U,a as f,b as s,u as e,bW as W,bE as Q,bD as Y,df as k,g as b,t as y,i as g,cC as J,ei as X,U as ee,R as te,r as ae,aY as ne,b0 as le,cS as re,de as ie,ad as se,d9 as oe,S as ue,M as ce,ek as de,_ as pe}from"./jwt-decode.esm.f87c17f7.js";import{a as V}from"./asyncComputed.515034b4.js";import{g as fe}from"./datetime.cc6674fd.js";import{u as me}from"./polling.9bc57b91.js";import{G as ge}from"./PhArrowCounterClockwise.vue.de1d3ce9.js";import{H as _e}from"./PhCube.vue.be696878.js";import{G as be}from"./PhDownloadSimple.vue.72db4fbb.js";import{f as ye,e as ve,r as he}from"./router.09566602.js";import{a as Ce,B as ke}from"./build.11c6f0e3.js";import{a as Ae}from"./project.25a396d4.js";import"./tables.1b5568d1.js";import{G as Oe}from"./PhClockCounterClockwise.vue.3e79a514.js";import{F as we,a as Se,G as Pe,I as xe}from"./PhWebhooksLogo.vue.1684b943.js";import{A as M}from"./index.97648248.js";import{E as Ze}from"./ExclamationCircleOutlined.1d559548.js";import{C as Me}from"./CloseCircleOutlined.eab14c9c.js";import{L as $}from"./LoadingOutlined.d3cb97d3.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.39638c19.js";import"./constants.2cdc2025.js";import"./url.acca5643.js";import"./PhDotsThreeVertical.vue.2c9a03d5.js";import"./index.9f357119.js";import"./record.a8da6046.js";import"./string.0c102318.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[t]="754eb739-fb6b-4dc3-9293-0aefa8924c77",l._sentryDebugIdIdentifier="sentry-dbid-754eb739-fb6b-4dc3-9293-0aefa8924c77")}catch{}})();var $e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const Ie=$e;var je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};const ze=je,Be=["width","height","fill","transform"],De={key:0},Ee=A("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-16-84a16,16,0,1,1-16-16A16,16,0,0,1,112,128Zm64,0a16,16,0,1,1-16-16A16,16,0,0,1,176,128Z"},null,-1),Ve=[Ee],Ne={key:1},Te=A("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),Ge=A("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm56-88a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),Le=[Te,Ge],Re={key:2},Fe=A("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"},null,-1),Ke=[Fe],He={key:3},qe=A("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm10-90a10,10,0,1,1-10-10A10,10,0,0,1,138,128Zm-44,0a10,10,0,1,1-10-10A10,10,0,0,1,94,128Zm88,0a10,10,0,1,1-10-10A10,10,0,0,1,182,128Z"},null,-1),Ue=[qe],We={key:4},Qe=A("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-88,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),Ye=[Qe],Je={key:5},Xe=A("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm8-92a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-44,0a8,8,0,1,1-8-8A8,8,0,0,1,92,128Zm88,0a8,8,0,1,1-8-8A8,8,0,0,1,180,128Z"},null,-1),et=[Xe],tt={name:"PhDotsThreeCircle"},at=I({...tt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(l){const t=l,n=Z("weight","regular"),d=Z("size","1em"),o=Z("color","currentColor"),x=Z("mirrored",!1),p=P(()=>{var m;return(m=t.weight)!=null?m:n}),w=P(()=>{var m;return(m=t.size)!=null?m:d}),v=P(()=>{var m;return(m=t.color)!=null?m:o}),O=P(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:x?"scale(-1, 1)":void 0);return(m,E)=>(c(),h("svg",H({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:v.value,transform:O.value},m.$attrs),[K(m.$slots,"default"),p.value==="bold"?(c(),h("g",De,Ve)):p.value==="duotone"?(c(),h("g",Ne,Le)):p.value==="fill"?(c(),h("g",Re,Ke)):p.value==="light"?(c(),h("g",He,Ue)):p.value==="regular"?(c(),h("g",We,Ye)):p.value==="thin"?(c(),h("g",Je,et)):C("",!0)],16,Be))}});function N(l){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},d=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),d.forEach(function(o){nt(l,o,n[o])})}return l}function nt(l,t,n){return t in l?Object.defineProperty(l,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[t]=n,l}var z=function(t,n){var d=N({},t,n.attrs);return u(j,N({},d,{icon:q}),null)};z.displayName="CheckCircleOutlined";z.inheritAttrs=!1;const lt=z;function T(l){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},d=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),d.forEach(function(o){rt(l,o,n[o])})}return l}function rt(l,t,n){return t in l?Object.defineProperty(l,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[t]=n,l}var B=function(t,n){var d=T({},t,n.attrs);return u(j,T({},d,{icon:Ie}),null)};B.displayName="MinusCircleOutlined";B.inheritAttrs=!1;const it=B;function G(l){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},d=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),d.forEach(function(o){st(l,o,n[o])})}return l}function st(l,t,n){return t in l?Object.defineProperty(l,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[t]=n,l}var D=function(t,n){var d=G({},t,n.attrs);return u(j,G({},d,{icon:ze}),null)};D.displayName="PauseCircleOutlined";D.inheritAttrs=!1;const ot=D,ut={style:{display:"flex","align-items":"center",gap:"5px"}},ct={key:1},dt=I({__name:"BuildInspector",props:{buildSpec:{}},setup(l){const t=l,n=U(),d=o=>{n.push({name:"logs",params:{projectId:t.buildSpec.projectId},query:o.logQuery})};return(o,x)=>o.buildSpec.runtimes.length>0?(c(),f(e(ve),{key:0,"item-layout":"horizontal","data-source":o.buildSpec.runtimes},{renderItem:s(({item:p})=>[u(e(ye),null,{actions:s(()=>[u(e(W),null,{overlay:s(()=>[u(e(Q),null,{default:s(()=>[u(e(Y),{onClick:w=>d(p)},{default:s(()=>[A("div",ut,[u(e(Oe)),u(e(k),null,{default:s(()=>[b(y(e(g).translate("i18n_build_inspector_view_logs",null)),1)]),_:1})])]),_:2},1032,["onClick"])]),_:2},1024)]),default:s(()=>[u(e(at),{style:{cursor:"pointer"}})]),_:2},1024)]),default:s(()=>[p.type=="form"?(c(),f(e(M),{key:0,size:"large"},{default:s(()=>[u(e(we)),u(e(k),{strong:""},{default:s(()=>[b(y(p.title),1)]),_:2},1024),u(e(k),{type:"secondary",code:""},{default:s(()=>[b("/"+y(p.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),p.type=="job"?(c(),f(e(M),{key:1,size:"large"},{default:s(()=>[u(e(Se)),u(e(k),{strong:""},{default:s(()=>[b(y(p.title),1)]),_:2},1024),u(e(k),{type:"secondary",code:""},{default:s(()=>[b(y(p.schedule),1)]),_:2},1024)]),_:2},1024)):C("",!0),p.type=="hook"?(c(),f(e(M),{key:2,size:"large"},{default:s(()=>[u(e(Pe)),u(e(k),{strong:""},{default:s(()=>[b(y(p.title),1)]),_:2},1024),u(e(k),{type:"secondary",code:""},{default:s(()=>[b("/_hooks/"+y(p.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),p.type=="script"?(c(),f(e(M),{key:3,size:"large"},{default:s(()=>[u(e(xe)),u(e(k),{strong:""},{default:s(()=>[b(y(p.title),1)]),_:2},1024)]),_:2},1024)):C("",!0)]),_:2},1024)]),_:1},8,["data-source"])):(c(),h("div",ct,[u(e(J),{description:e(g).translate("i18n_build_inspector_no_runtimes",null)},null,8,["description"])]))}}),pt=I({__name:"Builds",setup(l){const n=X().params.projectId,{loading:d,result:o,refetch:x}=V(async()=>{const[a,r]=await Promise.all([Ce.list(n),Ae.getStatus(n)]);return{b:a.map(_=>({build:_,status:r.filter(S=>S.buildId==_.id).map(S=>S.status)})),status:r}}),{startPolling:p,endPolling:w}=me({task:x,interval:1e4});ee(()=>p()),te(()=>w());const v=ae(null),O=V(async()=>v.value?await ke.get(v.value):null),m=()=>{var i;const a=(i=o.value)==null?void 0:i.b.find(_=>_.build.id===v.value);return`Version ${a==null?void 0:a.build.id.slice(0,8)} - ${a==null?void 0:a.build.createdAt.toLocaleString()}`},E=[{translationKey:"i18n_builds_deploying",tagColor:"blue",check:a=>{var r,i;return(i=a.build.latest&&a.status.some(_=>_=="Running")&&((r=o.value)==null?void 0:r.status.some(_=>_.buildId!==a.build.id)))!=null?i:!1},loading:!0},{translationKey:"i18n_builds_deactivating",tagColor:"orange",check:a=>a.build.status==="success"&&!a.build.latest&&a.status.some(r=>r=="Running"),loading:!0},{translationKey:"i18n_builds_live",tagColor:"green",check:a=>a.build.latest&&a.status.some(r=>r=="Running")},{translationKey:"i18n_builds_sleeping",tagColor:"cyan",check:a=>a.build.latest&&a.status.length===0},{translationKey:"i18n_builds_failed",tagColor:"red",check:a=>a.build.latest&&a.status.some(r=>r=="Failed")},{translationKey:"i18n_builds_inactive",tagColor:"default",check:a=>a.build.status==="success"},{translationKey:"i18n_builds_aborted",tagColor:"default",check:a=>a.build.status==="aborted"||a.build.status==="aborted-by-user"},{translationKey:"i18n_builds_failed",tagColor:"orange",check:a=>a.build.status==="failure"},{translationKey:"i18n_builds_deploying",tagColor:"blue",check:a=>a.build.status==="in-progress",loading:!0},{translationKey:"i18n_builds_uploading",tagColor:"yellow",check:a=>a.build.status==="pending"}];function L(a){var i,_;const r=E.find(S=>S.check(a));return{text:r?g.translate(r.translationKey):"unknown",tagColor:(i=r==null?void 0:r.tagColor)!=null?i:"default",hover:(_=a.build.log)!=null?_:void 0}}const R=P(()=>{const a=[{title:g.translate("i18n_builds_id")},{title:g.translate("i18n_builds_date")},{title:g.translate("i18n_builds_abstra_version")},{title:g.translate("i18n_builds_status")},{title:"",align:"right"}];return o.value?{columns:a,rows:o.value.b.map(r=>{var i;return{key:r.build.id,cells:[{type:"text",text:r.build.id.slice(0,8)},{key:"date",type:"slot",payload:{date:fe(r.build.createdAt,{weekday:void 0}),distance:de(r.build.createdAt)}},{type:"text",text:(i=r.build.abstraVersion)!=null?i:"-"},{key:"status",type:"slot",payload:L(r)},{type:"actions",actions:[{icon:_e,label:g.translate("i18n_builds_inspect_version"),onClick:async()=>{v.value=r.build.id,O.refetch()}},{icon:ge,label:g.translate("i18n_builds_view_application_logs"),onClick:()=>{he.push({name:"logs",params:{projectId:n},query:{buildId:r.build.id}})}},{icon:be,label:g.translate("i18n_builds_download_files"),onClick:()=>r.build.download()}]}]}})}:{columns:a,rows:[]}});return(a,r)=>(c(),h(ne,null,[u(F,{"entity-name":"build",loading:e(d),title:e(g).translate("i18n_builds_version_history"),description:e(g).translate("i18n_builds_description"),"empty-title":e(g).translate("i18n_builds_empty_title"),table:R.value,live:""},{date:s(({payload:i})=>[u(e(le),null,{title:s(()=>[b(y(i.distance),1)]),default:s(()=>[b(y(i.date)+" ",1)]),_:2},1024)]),status:s(({payload:i})=>[u(e(re),{open:i.hover?void 0:!1},{content:s(()=>[u(e(ie),{style:{width:"300px",overflow:"auto","font-family":"monospace"},content:i.hover,copyable:""},null,8,["content"])]),default:s(()=>[i.text!=="unknown"?(c(),f(e(oe),{key:0,color:i.tagColor,style:se({cursor:i.hover?"pointer":"default"})},{default:s(()=>[i.text==="Live"?(c(),f(e(lt),{key:0})):i.text==="Inactive"?(c(),f(e(it),{key:1})):i.text==="Failed"?(c(),f(e(Ze),{key:2})):i.text==="Aborted"?(c(),f(e(Me),{key:3})):i.text==="Sleeping"?(c(),f(e(ot),{key:4})):i.text==="Uploading"?(c(),f(e($),{key:5})):i.text==="Deploying"?(c(),f(e($),{key:6})):i.text==="Deactivating"?(c(),f(e($),{key:7})):C("",!0),b(" "+y(i.text),1)]),_:2},1032,["color","style"])):C("",!0)]),_:2},1032,["open"])]),_:1},8,["loading","title","description","empty-title","table"]),v.value?(c(),f(e(ce),{key:0,footer:null,open:!!v.value,size:"large",width:"80%",title:m(),onCancel:r[0]||(r[0]=i=>v.value=null)},{default:s(()=>[!e(O).result.value||e(O).loading.value?(c(),f(e(ue),{key:0})):e(O).result.value?(c(),f(dt,{key:1,"build-spec":e(O).result.value},null,8,["build-spec"])):C("",!0)]),_:1},8,["open","title"])):C("",!0)],64))}});const Vt=pe(pt,[["__scopeId","data-v-cfc16bae"]]);export{Vt as default};
|
|
2
|
+
//# sourceMappingURL=Builds.51e0c49e.js.map
|