n8n-editor-ui 1.111.0 → 1.112.0
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/dist/assets/{AddDataStoreModal-D3j8deoq.css → AddDataStoreModal-B7jBhCjt.css} +5 -3
- package/dist/assets/{AddDataStoreModal-COmj3tI8.js → AddDataStoreModal-CLYFuWF4.js} +12 -7
- package/dist/assets/{AnimatedSpinner-BRe0Ugab.js → AnimatedSpinner-D7Nt5ZAz.js} +2 -1
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-BllZkKe3.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-BzK1dfc7.js} +2 -1
- package/dist/assets/{AuthView-z58gFjsc.js → AuthView-Db8T18BU.js} +3 -2
- package/dist/assets/{ChangePasswordView-DUmtjPAx.js → ChangePasswordView-Clb7ta4t.js} +4 -3
- package/dist/assets/CollectionParameter-BGBoLgV2.js +5 -0
- package/dist/assets/{ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-4IRcAtjj.js → ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-BG5somV-.js} +2 -1
- package/dist/assets/{CredentialsView-Ie0l_odH.js → CredentialsView-CydHAPfb.js} +11 -9
- package/dist/assets/{DataStoreActions.vue_vue_type_script_setup_true_lang-d31tni9q.js → DataStoreActions.vue_vue_type_script_setup_true_lang-qftEof1u.js} +2 -2
- package/dist/assets/{DataStoreDetailsView-BPsHPucD.css → DataStoreDetailsView-C8fMxukz.css} +60 -39
- package/dist/assets/{DataStoreDetailsView-DLuRcsh-.js → DataStoreDetailsView-DZK3pYSP.js} +267 -102
- package/dist/assets/{DataStoreView-DmY3FIsv.js → DataStoreView-CT0OnFLR.js} +14 -29
- package/dist/assets/{DemoFooter-BQj55pTx.js → DemoFooter-DHwNRr6t.js} +7 -6
- package/dist/assets/{EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-NJbsTbk5.js → EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-Y97PdUKW.js} +2 -1
- package/dist/assets/{EntityNotFound-B1VWHiBa.js → EntityNotFound-BDjIF_1D.js} +2 -1
- package/dist/assets/{EntityUnAuthorised-B0Yg7JWa.js → EntityUnAuthorised-Dz3DXm1-.js} +2 -1
- package/dist/assets/{ErrorView-aHqCD3ri.js → ErrorView-BH0St5KC.js} +2 -1
- package/dist/assets/{EvaluationsRootView-CoYRtuEz.js → EvaluationsRootView-CnJlr4OF.js} +2 -1
- package/dist/assets/{EvaluationsView-BC1UMOb0.js → EvaluationsView-DABp8z-m.js} +4 -3
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-CMR49MM7.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-gCj_FZH6.js} +3 -2
- package/dist/assets/{ExecutionsView-C8r32amj.js → ExecutionsView-CivgrlFE.js} +14 -12
- package/dist/assets/{ExecutionsView-DpVZbkhT.css → ExecutionsView-GKNLT5Ec.css} +1 -1
- package/dist/assets/{FixedCollectionParameter-DTkvAml6.css → FixedCollectionParameter-Dg7ZadcB.css} +18 -18
- package/dist/assets/{FixedCollectionParameter-BzZrk2iw.js → FixedCollectionParameter-l8xC6wRw.js} +7 -3
- package/dist/assets/{ForgotMyPasswordView-CaXCwrIx.js → ForgotMyPasswordView-WF87QWAH.js} +4 -3
- package/dist/assets/{InfoAccordion-DUHSL9ZE.js → InfoAccordion-8iWJ2sSU.js} +2 -1
- package/dist/assets/{InsightsChartAverageRuntime-DFunYdc9.js → InsightsChartAverageRuntime-BEd6XJn6.js} +5 -4
- package/dist/assets/{InsightsChartFailed-0uRNHiAU.js → InsightsChartFailed-CVwzK3ch.js} +5 -4
- package/dist/assets/{InsightsChartFailureRate-BuiZokRI.js → InsightsChartFailureRate-BeA77_lp.js} +5 -4
- package/dist/assets/{InsightsChartTimeSaved-CK46Eo2R.js → InsightsChartTimeSaved-DkgR7j7U.js} +5 -4
- package/dist/assets/{InsightsChartTotal-ZhGp0D6c.js → InsightsChartTotal--1QxzvAZ.js} +5 -4
- package/dist/assets/{InsightsDashboard-DEJEg2jy.js → InsightsDashboard-cHCzH4ZY.js} +13 -11
- package/dist/assets/{InsightsPaywall-CEYbNF-U.js → InsightsPaywall-neQ9PmYP.js} +2 -1
- package/dist/assets/{InsightsSummary-D4c0lwdE.js → InsightsSummary-BekdjOxv.js} +4 -2
- package/dist/assets/{InsightsTableWorkflows-Cf2s_w2o.js → InsightsTableWorkflows-LMO-UU8h.js} +5 -4
- package/dist/assets/{Logo-DF7Ve1nG.js → Logo-DXNRuN8z.js} +2 -1
- package/dist/assets/{LogsPanel-Dz_R5wsR.js → LogsPanel-2GQHQFmh.js} +36 -22
- package/dist/assets/{LogsPanel-BinqqXXh.css → LogsPanel-CUsQIBpC.css} +17 -17
- package/dist/assets/{MainHeader-DBWR1wTC.js → MainHeader-BlBek00C.js} +12 -10
- package/dist/assets/{MainSidebar-3_9O8-rJ.js → MainSidebar-qdHg8D5V.js} +3 -2
- package/dist/assets/{NodeCreation-Dtlm36Oq.js → NodeCreation-DO5k3aK3.js} +4 -3
- package/dist/assets/{NodeCreator-DUoi7nAW.js → NodeCreator-C3Pmrqkh.js} +2 -1
- package/dist/assets/{NodeDetailsView-Di4Qgo0H.js → NodeDetailsView-BACft9ex.js} +18 -17
- package/dist/assets/{NodeDetailsView-CjdovDgq.css → NodeDetailsView-CBYV4Rrz.css} +11 -11
- package/dist/assets/{NodeDetailsViewV2-DeY6N1Bz.js → NodeDetailsViewV2--1S2eK5u.js} +14 -13
- package/dist/assets/{NodeView-DsbJeAY_.js → NodeView-BRwQ5Cqs.js} +113 -99
- package/dist/assets/{NodeView-DMJpfBYR.css → NodeView-Chs2u0U9.css} +28 -25
- package/dist/assets/{PageViewLayout-DC6xqvMl.js → PageViewLayout-DldtilHz.js} +2 -1
- package/dist/assets/{PrebuiltAgentTemplatesView-Bf_4L0Mz.js → PrebuiltAgentTemplatesView-ChyN8J2x.js} +3 -2
- package/dist/assets/{ProjectBreadcrumb-OJlbtg71.js → ProjectBreadcrumb-9uWmVmc7.js} +2 -1
- package/dist/assets/{ProjectHeader-CuQxn8hj.js → ProjectHeader-CWapIKXf.js} +93 -23
- package/dist/assets/{ProjectSettings-CyyS1dIR.js → ProjectSettings-BlYXGYRx.js} +5 -3
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-DbrwK8IB.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-DjpouOrH.js} +2 -1
- package/dist/assets/{ResourcesListLayout-i7do2ZBR.js → ResourcesListLayout-CfDIFGjS.js} +5 -4
- package/dist/assets/{RunDataJson-DRtbtIz3.js → RunDataJson-CTm3-xdY.js} +4 -3
- package/dist/assets/{RunDataJsonActions-7l2QvE2z.js → RunDataJsonActions-B_yBOGYB.js} +2 -1
- package/dist/assets/{RunDataParsedAiContent-CD12A0kN.js → RunDataParsedAiContent-Cg9vUI0v.js} +3 -2
- package/dist/assets/{RunDataSearch-LNeMq9j6.js → RunDataSearch-DPt2MvbI.js} +2 -1
- package/dist/assets/{RunDataTable-DcKBX4aO.js → RunDataTable-DHVRSqQT.js} +2 -1
- package/dist/assets/{SamlOnboarding-i5e6HuF6.js → SamlOnboarding-CN_xGqen.js} +4 -3
- package/dist/assets/{SelectedItemsInfo-CfUb0ZrI.css → SelectedItemsInfo-Dl4uynXs.css} +5 -3
- package/dist/assets/{SelectedItemsInfo-C55zD1dl.js → SelectedItemsInfo-DzoCyQOW.js} +12 -7
- package/dist/assets/{SettingsApiView-C3ju5H4H.js → SettingsApiView-BIKCRKGM.js} +2 -1
- package/dist/assets/{SettingsCommunityNodesView-i_vIhGwd.js → SettingsCommunityNodesView-ClWYmDB8.js} +7 -4
- package/dist/assets/{SettingsExternalSecrets-ChCiOX-n.js → SettingsExternalSecrets-D58JxT3V.js} +2 -1
- package/dist/assets/{SettingsLdapView-2QEfpHy6.js → SettingsLdapView-uImCjvMm.js} +2 -1
- package/dist/assets/{SettingsLogStreamingView-BORk25bO.js → SettingsLogStreamingView-DUn62Yq4.js} +2 -1
- package/dist/assets/{SettingsPersonalView-Yl43xiM_.js → SettingsPersonalView-DGiCMsXu.js} +2 -1
- package/dist/assets/{SettingsSourceControl-BpcJX-rJ.js → SettingsSourceControl-CVik5czR.js} +2 -1
- package/dist/assets/{SettingsSso-BugeRCyt.js → SettingsSso-BQkWpsdO.js} +2 -1
- package/dist/assets/{SettingsUsageAndPlan-Dt6g-FQw.js → SettingsUsageAndPlan-BuwgmEka.js} +2 -1
- package/dist/assets/{SettingsUsersView-BhBuZop9.js → SettingsUsersView-DCmtHeMa.js} +2 -1
- package/dist/assets/{SettingsView-Cx0SMMrn.js → SettingsView-CrBThv_a.js} +2 -1
- package/dist/assets/{SetupView-CUJOHrm2.js → SetupView-CES8Gnnv.js} +4 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-D6h_IgTa.js → SetupWorkflowCredentialsButton-Bjhx_rck.js} +2 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-_ReKyIk1.js → SetupWorkflowFromTemplateView-C8kmCc7J.js} +4 -3
- package/dist/assets/{SigninView--fAZZd3A.js → SigninView-24xKsh_S.js} +4 -3
- package/dist/assets/{SignoutView-DXoOH9BS.js → SignoutView-DgFIUUyh.js} +2 -1
- package/dist/assets/{SignupView-d0cK_S0B.js → SignupView-BckB-uUh.js} +4 -3
- package/dist/assets/{TableBase-D5vBzOrx.js → TableBase-CQEzJfeN.js} +2 -1
- package/dist/assets/{Tags-CZdua1l_.js → Tags-DbX-5_Fk.js} +2 -2
- package/dist/assets/{TemplateDetails-ccSWABeF.js → TemplateDetails-BGraOFbY.js} +3 -2
- package/dist/assets/{TemplateList-BKUKBRua.js → TemplateList-5P1N08U1.js} +2 -1
- package/dist/assets/{TemplatesCollectionView-BTyYNxNc.js → TemplatesCollectionView-D2-SU0eR.js} +7 -7
- package/dist/assets/{TemplatesSearchView-BYM3HbbU.js → TemplatesSearchView-ncBXTfOM.js} +4 -3
- package/dist/assets/{TemplatesView-CrH_O4he.js → TemplatesView-DO7HuUts.js} +2 -1
- package/dist/assets/{TemplatesWorkflowView-Dg3REjWI.js → TemplatesWorkflowView-BvrjU4RD.js} +7 -7
- package/dist/assets/{TriggerPanel-dDX4Bzu7.js → TriggerPanel-BFQ6veDz.js} +10 -8
- package/dist/assets/{VariablesView-DQw3gYG7.js → VariablesView-BVzruwEA.js} +7 -6
- package/dist/assets/{WorkerView-DIs4RXZZ.js → WorkerView-DRM6mgWJ.js} +9 -6
- package/dist/assets/{WorkflowActivator-z_Ef2Dd7.js → WorkflowActivator-BOt1oNlm.js} +4 -3
- package/dist/assets/{WorkflowExecutionsInfoAccordion-ptRuD88E.js → WorkflowExecutionsInfoAccordion-BjZUTKcs.js} +3 -2
- package/dist/assets/{WorkflowExecutionsLandingPage-C-RDf8Mu.js → WorkflowExecutionsLandingPage-ENKxL7Yh.js} +4 -3
- package/dist/assets/{WorkflowExecutionsPreview-Bk449wx1.js → WorkflowExecutionsPreview-Cdgg29u5.js} +5 -4
- package/dist/assets/{WorkflowExecutionsView-Dp0exxTM.js → WorkflowExecutionsView-t3W7WuAy.js} +9 -9
- package/dist/assets/{WorkflowHistory-D8zH1o6c.js → WorkflowHistory--OLvuBs1.js} +3 -2
- package/dist/assets/{WorkflowOnboardingView-8OmgIoUc.js → WorkflowOnboardingView-C8y96ur1.js} +2 -1
- package/dist/assets/{WorkflowPreview-jOuoMEkv.js → WorkflowPreview-C1XHoZmU.js} +2 -1
- package/dist/assets/{WorkflowsView-B9MpreL6.js → WorkflowsView-B9rxI0No.js} +272 -62
- package/dist/assets/{WorkflowsView-BuvoAeDm.css → WorkflowsView-MF9XcT0u.css} +186 -0
- package/dist/assets/{canvas-k8kjfgjE.js → canvas-D2PwiGnN.js} +1 -1
- package/dist/assets/{chartjs.utils-BXNxmkto.js → chartjs.utils-B6sz8yOh.js} +2 -2
- package/dist/assets/{core-e2mfCMV8.js → core-Be7WBA6o.js} +2 -1
- package/dist/assets/{en-C3wg5zl_.js → en-CJyn5rnO.js} +26 -20
- package/dist/assets/{global-link-actions-CR3odK4e.js → global-link-actions-B9WsUojd.js} +1 -1
- package/dist/assets/index-4g2Akj0I.js +13861 -0
- package/dist/assets/{index-DnpNicM9.css → index-B7wrqKiF.css} +8081 -8069
- package/dist/assets/{index-DuLlH1tF.js → index-BJG79OsS.js} +326896 -342404
- package/dist/assets/{index-DuaZRDhZ.js → index-LOlKxvn4.js} +2 -1
- package/dist/assets/loadDefaultEn-DNiURDi9.js +8 -0
- package/dist/assets/{pickBy-sB8d3BKD.js → pickBy-BMn768eW.js} +1 -1
- package/dist/assets/{readyToRunWorkflows.store-SxwN_l4P.js → readyToRunWorkflows.store-HSpbq3Bf.js} +2 -1
- package/dist/assets/readyToRunWorkflowsV2.store-DcRVIsRt.js +138 -0
- package/dist/assets/sqlite3-DBpDb1lf.wasm +0 -0
- package/dist/assets/sqlite3-opfs-async-proxy-CYRFPDln.js +579 -0
- package/dist/assets/sqlite3-worker1-bundler-friendly-DF3WqBKq.js +11289 -0
- package/dist/assets/{templateActions-BUeOwdy0.js → templateActions-DR_XHPc4.js} +1 -1
- package/dist/assets/{useBeforeUnload-DpCu12iW.js → useBeforeUnload-DmAaB1v5.js} +2 -1
- package/dist/assets/{useExecutionDebugging-XRtGhlAr.js → useExecutionDebugging-B8xDxcb6.js} +2 -1
- package/dist/assets/{useImportCurlCommand-DJJ0VEAg.js → useImportCurlCommand-BaN8fxqM.js} +2 -1
- package/dist/assets/{useProjectPages-DrMZX3ez.js → useProjectPages-B-oTYbCo.js} +2 -1
- package/dist/assets/{usePushConnection-CPQe3uqU.js → usePushConnection-Bcd2_XWM.js} +36 -22
- package/dist/assets/{useWorkflowActivate-RFJxTj5m.js → useWorkflowActivate-BDE2t3MM.js} +2 -1
- package/dist/assets/worker-DZxlyUFA.js +11826 -0
- package/dist/index.html +3 -2
- package/package.json +1 -1
- package/vite/i18n-locales-hmr-helpers.ts +19 -0
- package/vite.config.mts +25 -1
- package/dist/assets/CollectionParameter--MG-Jsbv.js +0 -4
- package/dist/assets/Tag-CGAmDPzS.js +0 -32
- package/dist/assets/Tag-Cg-Hqs2H.css +0 -153
- package/dist/assets/dataStore.store-vaNG0oX7.js +0 -291
package/dist/index.html
CHANGED
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
<script src="/{{BASE_PATH}}/static/posthog.init.js" type="text/javascript"></script>
|
|
14
14
|
|
|
15
15
|
<title>n8n.io - Workflow Automation</title>
|
|
16
|
-
<script type="module" crossorigin src="/{{BASE_PATH}}/assets/index-
|
|
17
|
-
<link rel="
|
|
16
|
+
<script type="module" crossorigin src="/{{BASE_PATH}}/assets/index-BJG79OsS.js"></script>
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/{{BASE_PATH}}/assets/index-4g2Akj0I.js">
|
|
18
|
+
<link rel="stylesheet" crossorigin href="/{{BASE_PATH}}/assets/index-B7wrqKiF.css">
|
|
18
19
|
</head>
|
|
19
20
|
<body>
|
|
20
21
|
<noscript>
|
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { sep as pathSep } from 'path';
|
|
2
|
+
|
|
3
|
+
export const isLocaleFile = (file: string): boolean =>
|
|
4
|
+
file.endsWith('.json') && file.includes(`${pathSep}locales${pathSep}`);
|
|
5
|
+
|
|
6
|
+
export const extractLocale = (file: string): string | null => {
|
|
7
|
+
const match = file.match(new RegExp(`${pathSep}locales${pathSep}([^${pathSep}]+)\\.json$`));
|
|
8
|
+
return match?.[1] ?? null;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const sendLocaleUpdate = (server: any, file: string): void => {
|
|
12
|
+
if (!isLocaleFile(file)) return;
|
|
13
|
+
const locale = extractLocale(file);
|
|
14
|
+
server.ws.send({
|
|
15
|
+
type: 'custom',
|
|
16
|
+
event: 'n8n:locale-update',
|
|
17
|
+
data: { locales: locale ? [locale] : [], file },
|
|
18
|
+
});
|
|
19
|
+
};
|
package/vite.config.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import vue from '@vitejs/plugin-vue';
|
|
2
|
-
import { posix as pathPosix, resolve } from 'path';
|
|
2
|
+
import { posix as pathPosix, resolve, sep as pathSep } from 'path';
|
|
3
3
|
import { defineConfig, mergeConfig, type UserConfig } from 'vite';
|
|
4
4
|
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
|
5
5
|
import { nodePolyfills } from 'vite-plugin-node-polyfills';
|
|
@@ -12,6 +12,7 @@ import components from 'unplugin-vue-components/vite';
|
|
|
12
12
|
import browserslistToEsbuild from 'browserslist-to-esbuild';
|
|
13
13
|
import legacy from '@vitejs/plugin-legacy';
|
|
14
14
|
import browserslist from 'browserslist';
|
|
15
|
+
import { isLocaleFile, sendLocaleUpdate } from './vite/i18n-locales-hmr-helpers';
|
|
15
16
|
|
|
16
17
|
const publicPath = process.env.VUE_APP_PUBLIC_PATH || '/';
|
|
17
18
|
|
|
@@ -24,6 +25,8 @@ const packagesDir = resolve(__dirname, '..', '..');
|
|
|
24
25
|
const alias = [
|
|
25
26
|
{ find: '@', replacement: resolve(__dirname, 'src') },
|
|
26
27
|
{ find: 'stream', replacement: 'stream-browserify' },
|
|
28
|
+
// Ensure bare imports resolve to sources (not dist)
|
|
29
|
+
{ find: '@n8n/i18n', replacement: resolve(packagesDir, 'frontend', '@n8n', 'i18n', 'src') },
|
|
27
30
|
{
|
|
28
31
|
find: /^@n8n\/chat(.+)$/,
|
|
29
32
|
replacement: resolve(packagesDir, 'frontend', '@n8n', 'chat', 'src$1'),
|
|
@@ -140,6 +143,27 @@ const plugins: UserConfig['plugins'] = [
|
|
|
140
143
|
nodePolyfills({
|
|
141
144
|
include: ['fs', 'path', 'url', 'util', 'timers'],
|
|
142
145
|
}),
|
|
146
|
+
{
|
|
147
|
+
name: 'i18n-locales-hmr',
|
|
148
|
+
configureServer(server) {
|
|
149
|
+
const localesDir = resolve(packagesDir, 'frontend', '@n8n', 'i18n', 'src', 'locales');
|
|
150
|
+
server.watcher.add(localesDir);
|
|
151
|
+
|
|
152
|
+
// Only emit for add/unlink; change events are handled in handleHotUpdate
|
|
153
|
+
server.watcher.on('all', (event, file) => {
|
|
154
|
+
if ((event === 'add' || event === 'unlink') && isLocaleFile(file)) {
|
|
155
|
+
sendLocaleUpdate(server, file);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
handleHotUpdate(ctx) {
|
|
160
|
+
const { file, server } = ctx;
|
|
161
|
+
if (!isLocaleFile(file)) return;
|
|
162
|
+
sendLocaleUpdate(server, file);
|
|
163
|
+
// Swallow default HMR for this file to prevent full page reloads
|
|
164
|
+
return [];
|
|
165
|
+
},
|
|
166
|
+
},
|
|
143
167
|
];
|
|
144
168
|
|
|
145
169
|
const { RELEASE: release } = process.env;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { d as defineComponent, h as createElementBlock, g as openBlock, K as mergeProps, X as renderSlot, t as toDisplayString, _ as _export_sfc } from "./index-DuLlH1tF.js";
|
|
2
|
-
const _hoisted_1 = { key: 1 };
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
...{ name: "N8nTag" },
|
|
5
|
-
__name: "Tag",
|
|
6
|
-
props: {
|
|
7
|
-
text: {},
|
|
8
|
-
clickable: { type: Boolean, default: true }
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
return (_ctx, _cache) => {
|
|
12
|
-
return openBlock(), createElementBlock("span", mergeProps({
|
|
13
|
-
class: ["n8n-tag", _ctx.$style.tag, { [_ctx.$style.clickable]: _ctx.clickable }]
|
|
14
|
-
}, _ctx.$attrs), [
|
|
15
|
-
_ctx.$slots["tag"] ? renderSlot(_ctx.$slots, "tag", { key: 0 }) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.text), 1))
|
|
16
|
-
], 16);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const tag = "_tag_49pvx_123";
|
|
21
|
-
const clickable = "_clickable_49pvx_138";
|
|
22
|
-
const style0 = {
|
|
23
|
-
tag,
|
|
24
|
-
clickable
|
|
25
|
-
};
|
|
26
|
-
const cssModules = {
|
|
27
|
-
"$style": style0
|
|
28
|
-
};
|
|
29
|
-
const Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
30
|
-
export {
|
|
31
|
-
Tag as T
|
|
32
|
-
};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/* BEM support Func
|
|
2
|
-
-------------------------- */
|
|
3
|
-
/* Transition
|
|
4
|
-
-------------------------- */
|
|
5
|
-
/* Color
|
|
6
|
-
-------------------------- */
|
|
7
|
-
/* Link
|
|
8
|
-
-------------------------- */
|
|
9
|
-
/* Border
|
|
10
|
-
-------------------------- */
|
|
11
|
-
/* Outline
|
|
12
|
-
-------------------------- */
|
|
13
|
-
/* Box shadow
|
|
14
|
-
-------------------------- */
|
|
15
|
-
/* Fill
|
|
16
|
-
-------------------------- */
|
|
17
|
-
/* Typography
|
|
18
|
-
-------------------------- */
|
|
19
|
-
/* z-index
|
|
20
|
-
-------------------------- */
|
|
21
|
-
/* Disable base
|
|
22
|
-
-------------------------- */
|
|
23
|
-
/* Icon
|
|
24
|
-
-------------------------- */
|
|
25
|
-
/* Checkbox
|
|
26
|
-
-------------------------- */
|
|
27
|
-
/* Radio
|
|
28
|
-
-------------------------- */
|
|
29
|
-
/* Select
|
|
30
|
-
-------------------------- */
|
|
31
|
-
/* Alert
|
|
32
|
-
-------------------------- */
|
|
33
|
-
/* MessageBox
|
|
34
|
-
-------------------------- */
|
|
35
|
-
/* Message
|
|
36
|
-
-------------------------- */
|
|
37
|
-
/* Notification
|
|
38
|
-
-------------------------- */
|
|
39
|
-
/* Input
|
|
40
|
-
-------------------------- */
|
|
41
|
-
/* Cascader
|
|
42
|
-
-------------------------- */
|
|
43
|
-
/* Group
|
|
44
|
-
-------------------------- */
|
|
45
|
-
/* Tab
|
|
46
|
-
-------------------------- */
|
|
47
|
-
/* Button
|
|
48
|
-
-------------------------- */
|
|
49
|
-
/* cascader
|
|
50
|
-
-------------------------- */
|
|
51
|
-
/* Switch
|
|
52
|
-
-------------------------- */
|
|
53
|
-
/* Dialog
|
|
54
|
-
-------------------------- */
|
|
55
|
-
/* Table
|
|
56
|
-
-------------------------- */
|
|
57
|
-
/* Pagination
|
|
58
|
-
-------------------------- */
|
|
59
|
-
/* Popup
|
|
60
|
-
-------------------------- */
|
|
61
|
-
/* Popover
|
|
62
|
-
-------------------------- */
|
|
63
|
-
/* Tooltip
|
|
64
|
-
-------------------------- */
|
|
65
|
-
/* Tag
|
|
66
|
-
-------------------------- */
|
|
67
|
-
/* Tree
|
|
68
|
-
-------------------------- */
|
|
69
|
-
/* Dropdown
|
|
70
|
-
-------------------------- */
|
|
71
|
-
/* Badge
|
|
72
|
-
-------------------------- */
|
|
73
|
-
/* Card
|
|
74
|
-
--------------------------*/
|
|
75
|
-
/* Slider
|
|
76
|
-
--------------------------*/
|
|
77
|
-
/* Steps
|
|
78
|
-
--------------------------*/
|
|
79
|
-
/* Menu
|
|
80
|
-
--------------------------*/
|
|
81
|
-
/* Rate
|
|
82
|
-
--------------------------*/
|
|
83
|
-
/* DatePicker
|
|
84
|
-
--------------------------*/
|
|
85
|
-
/* Loading
|
|
86
|
-
--------------------------*/
|
|
87
|
-
/* Scrollbar
|
|
88
|
-
--------------------------*/
|
|
89
|
-
/* Carousel
|
|
90
|
-
--------------------------*/
|
|
91
|
-
/* Collapse
|
|
92
|
-
--------------------------*/
|
|
93
|
-
/* Transfer
|
|
94
|
-
--------------------------*/
|
|
95
|
-
/* Header
|
|
96
|
-
--------------------------*/
|
|
97
|
-
/* Footer
|
|
98
|
-
--------------------------*/
|
|
99
|
-
/* Main
|
|
100
|
-
--------------------------*/
|
|
101
|
-
/* Timeline
|
|
102
|
-
--------------------------*/
|
|
103
|
-
/* Backtop
|
|
104
|
-
--------------------------*/
|
|
105
|
-
/* Link
|
|
106
|
-
--------------------------*/
|
|
107
|
-
/* Calendar
|
|
108
|
-
--------------------------*/
|
|
109
|
-
/* Form
|
|
110
|
-
-------------------------- */
|
|
111
|
-
/* Avatar
|
|
112
|
-
--------------------------*/
|
|
113
|
-
/* Break-point
|
|
114
|
-
--------------------------*/
|
|
115
|
-
/* Break-points
|
|
116
|
-
-------------------------- */
|
|
117
|
-
/* Scrollbar
|
|
118
|
-
-------------------------- */
|
|
119
|
-
/* Placeholder
|
|
120
|
-
-------------------------- */
|
|
121
|
-
/* BEM
|
|
122
|
-
-------------------------- */
|
|
123
|
-
._tag_49pvx_123 {
|
|
124
|
-
display: -webkit-box;
|
|
125
|
-
display: -ms-flexbox;
|
|
126
|
-
display: flex;
|
|
127
|
-
-webkit-box-align: center;
|
|
128
|
-
-ms-flex-align: center;
|
|
129
|
-
align-items: center;
|
|
130
|
-
-webkit-box-pack: center;
|
|
131
|
-
-ms-flex-pack: center;
|
|
132
|
-
justify-content: center;
|
|
133
|
-
min-width: -webkit-max-content;
|
|
134
|
-
min-width: -moz-max-content;
|
|
135
|
-
min-width: max-content;
|
|
136
|
-
height: var(--tag-height);
|
|
137
|
-
padding: var(--tag-padding);
|
|
138
|
-
line-height: var(--tag-line-height);
|
|
139
|
-
color: var(--tag-text-color);
|
|
140
|
-
background-color: var(--tag-background-color);
|
|
141
|
-
border: 1px solid var(--tag-border-color);
|
|
142
|
-
border-radius: var(--tag-border-radius);
|
|
143
|
-
font-size: var(--tag-font-size);
|
|
144
|
-
-webkit-transition: background-color 0.3s ease;
|
|
145
|
-
transition: background-color 0.3s ease;
|
|
146
|
-
}
|
|
147
|
-
._tag_49pvx_123._clickable_49pvx_138 {
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
}
|
|
150
|
-
._tag_49pvx_123._clickable_49pvx_138:hover {
|
|
151
|
-
background-color: var(--tag-background-hover-color);
|
|
152
|
-
border-color: var(--tag-border-hover-color);
|
|
153
|
-
}
|
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { f8 as makeRestApiRequest, $ as defineStore, at as useRootStore, au as useProjectsStore, r as ref, gI as DATA_STORE_STORE } from "./index-DuLlH1tF.js";
|
|
2
|
-
const fetchDataStoresApi = async (context, projectId, options, filter) => {
|
|
3
|
-
const apiEndpoint = projectId ? `/projects/${projectId}/data-tables` : "/data-tables-global";
|
|
4
|
-
return await makeRestApiRequest(
|
|
5
|
-
context,
|
|
6
|
-
"GET",
|
|
7
|
-
apiEndpoint,
|
|
8
|
-
{
|
|
9
|
-
...options,
|
|
10
|
-
filter: filter ?? void 0
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
};
|
|
14
|
-
const createDataStoreApi = async (context, name, projectId, columns) => {
|
|
15
|
-
return await makeRestApiRequest(
|
|
16
|
-
context,
|
|
17
|
-
"POST",
|
|
18
|
-
`/projects/${projectId}/data-tables`,
|
|
19
|
-
{
|
|
20
|
-
name,
|
|
21
|
-
columns: []
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
};
|
|
25
|
-
const deleteDataStoreApi = async (context, dataStoreId, projectId) => {
|
|
26
|
-
return await makeRestApiRequest(
|
|
27
|
-
context,
|
|
28
|
-
"DELETE",
|
|
29
|
-
`/projects/${projectId}/data-tables/${dataStoreId}`,
|
|
30
|
-
{
|
|
31
|
-
dataStoreId,
|
|
32
|
-
projectId
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
const updateDataStoreApi = async (context, dataStoreId, name, projectId) => {
|
|
37
|
-
return await makeRestApiRequest(
|
|
38
|
-
context,
|
|
39
|
-
"PATCH",
|
|
40
|
-
`/projects/${projectId}/data-tables/${dataStoreId}`,
|
|
41
|
-
{
|
|
42
|
-
name
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
};
|
|
46
|
-
const addDataStoreColumnApi = async (context, dataStoreId, projectId, column) => {
|
|
47
|
-
return await makeRestApiRequest(
|
|
48
|
-
context,
|
|
49
|
-
"POST",
|
|
50
|
-
`/projects/${projectId}/data-tables/${dataStoreId}/columns`,
|
|
51
|
-
{
|
|
52
|
-
...column
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
};
|
|
56
|
-
const deleteDataStoreColumnApi = async (context, dataStoreId, projectId, columnId) => {
|
|
57
|
-
return await makeRestApiRequest(
|
|
58
|
-
context,
|
|
59
|
-
"DELETE",
|
|
60
|
-
`/projects/${projectId}/data-tables/${dataStoreId}/columns/${columnId}`
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
const moveDataStoreColumnApi = async (context, dataStoreId, projectId, columnId, targetIndex) => {
|
|
64
|
-
return await makeRestApiRequest(
|
|
65
|
-
context,
|
|
66
|
-
"PATCH",
|
|
67
|
-
`/projects/${projectId}/data-tables/${dataStoreId}/columns/${columnId}/move`,
|
|
68
|
-
{
|
|
69
|
-
targetIndex
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
const getDataStoreRowsApi = async (context, dataStoreId, projectId, options) => {
|
|
74
|
-
return await makeRestApiRequest(context, "GET", `/projects/${projectId}/data-tables/${dataStoreId}/rows`, {
|
|
75
|
-
...options ?? {}
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
const insertDataStoreRowApi = async (context, dataStoreId, row, projectId) => {
|
|
79
|
-
return await makeRestApiRequest(
|
|
80
|
-
context,
|
|
81
|
-
"POST",
|
|
82
|
-
`/projects/${projectId}/data-tables/${dataStoreId}/insert`,
|
|
83
|
-
{
|
|
84
|
-
returnData: true,
|
|
85
|
-
data: [row]
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
const updateDataStoreRowsApi = async (context, dataStoreId, rowId, rowData, projectId) => {
|
|
90
|
-
return await makeRestApiRequest(
|
|
91
|
-
context,
|
|
92
|
-
"PATCH",
|
|
93
|
-
`/projects/${projectId}/data-tables/${dataStoreId}/rows`,
|
|
94
|
-
{
|
|
95
|
-
filter: {
|
|
96
|
-
type: "and",
|
|
97
|
-
filters: [{ columnName: "id", condition: "eq", value: rowId }]
|
|
98
|
-
},
|
|
99
|
-
data: rowData
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
};
|
|
103
|
-
const deleteDataStoreRowsApi = async (context, dataStoreId, rowIds, projectId) => {
|
|
104
|
-
return await makeRestApiRequest(
|
|
105
|
-
context,
|
|
106
|
-
"DELETE",
|
|
107
|
-
`/projects/${projectId}/data-tables/${dataStoreId}/rows`,
|
|
108
|
-
{
|
|
109
|
-
ids: rowIds.join(",")
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
const reorderItem = (items, oldIndex, newIndex) => {
|
|
114
|
-
return items.map((item) => {
|
|
115
|
-
if (item.index === oldIndex) return { ...item, index: newIndex };
|
|
116
|
-
if (oldIndex < newIndex && item.index > oldIndex && item.index <= newIndex) {
|
|
117
|
-
return { ...item, index: item.index - 1 };
|
|
118
|
-
}
|
|
119
|
-
if (oldIndex > newIndex && item.index >= newIndex && item.index < oldIndex) {
|
|
120
|
-
return { ...item, index: item.index + 1 };
|
|
121
|
-
}
|
|
122
|
-
return item;
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
|
-
const useDataStoreStore = defineStore(DATA_STORE_STORE, () => {
|
|
126
|
-
const rootStore = useRootStore();
|
|
127
|
-
const projectStore = useProjectsStore();
|
|
128
|
-
const dataStores = ref([]);
|
|
129
|
-
const totalCount = ref(0);
|
|
130
|
-
const fetchDataStores = async (projectId, page, pageSize) => {
|
|
131
|
-
const response = await fetchDataStoresApi(rootStore.restApiContext, projectId, {
|
|
132
|
-
skip: (page - 1) * pageSize,
|
|
133
|
-
take: pageSize
|
|
134
|
-
});
|
|
135
|
-
dataStores.value = response.data;
|
|
136
|
-
totalCount.value = response.count;
|
|
137
|
-
};
|
|
138
|
-
const createDataStore = async (name, projectId) => {
|
|
139
|
-
const newStore = await createDataStoreApi(rootStore.restApiContext, name, projectId);
|
|
140
|
-
if (!newStore.project && projectId) {
|
|
141
|
-
const project = await projectStore.fetchProject(projectId);
|
|
142
|
-
if (project) {
|
|
143
|
-
newStore.project = project;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
dataStores.value.push(newStore);
|
|
147
|
-
totalCount.value += 1;
|
|
148
|
-
return newStore;
|
|
149
|
-
};
|
|
150
|
-
const deleteDataStore = async (datastoreId, projectId) => {
|
|
151
|
-
const deleted = await deleteDataStoreApi(rootStore.restApiContext, datastoreId, projectId);
|
|
152
|
-
if (deleted) {
|
|
153
|
-
dataStores.value = dataStores.value.filter((store) => store.id !== datastoreId);
|
|
154
|
-
totalCount.value -= 1;
|
|
155
|
-
}
|
|
156
|
-
return deleted;
|
|
157
|
-
};
|
|
158
|
-
const deleteDataStoreColumn = async (datastoreId, projectId, columnId) => {
|
|
159
|
-
const deleted = await deleteDataStoreColumnApi(
|
|
160
|
-
rootStore.restApiContext,
|
|
161
|
-
datastoreId,
|
|
162
|
-
projectId,
|
|
163
|
-
columnId
|
|
164
|
-
);
|
|
165
|
-
if (deleted) {
|
|
166
|
-
const index = dataStores.value.findIndex((store) => store.id === datastoreId);
|
|
167
|
-
if (index !== -1) {
|
|
168
|
-
dataStores.value[index].columns = dataStores.value[index].columns.filter(
|
|
169
|
-
(col) => col.id !== columnId
|
|
170
|
-
);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
return deleted;
|
|
174
|
-
};
|
|
175
|
-
const updateDataStore = async (datastoreId, name, projectId) => {
|
|
176
|
-
const updated = await updateDataStoreApi(
|
|
177
|
-
rootStore.restApiContext,
|
|
178
|
-
datastoreId,
|
|
179
|
-
name,
|
|
180
|
-
projectId
|
|
181
|
-
);
|
|
182
|
-
if (updated) {
|
|
183
|
-
const index = dataStores.value.findIndex((store) => store.id === datastoreId);
|
|
184
|
-
if (index !== -1) {
|
|
185
|
-
dataStores.value[index] = { ...dataStores.value[index], name };
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
return updated;
|
|
189
|
-
};
|
|
190
|
-
const fetchDataStoreDetails = async (datastoreId, projectId) => {
|
|
191
|
-
const response = await fetchDataStoresApi(rootStore.restApiContext, projectId, void 0, {
|
|
192
|
-
projectId,
|
|
193
|
-
id: datastoreId
|
|
194
|
-
});
|
|
195
|
-
if (response.data.length > 0) {
|
|
196
|
-
dataStores.value = response.data;
|
|
197
|
-
return response.data[0];
|
|
198
|
-
}
|
|
199
|
-
return null;
|
|
200
|
-
};
|
|
201
|
-
const fetchOrFindDataStore = async (datastoreId, projectId) => {
|
|
202
|
-
const existingStore = dataStores.value.find((store) => store.id === datastoreId);
|
|
203
|
-
if (existingStore) {
|
|
204
|
-
return existingStore;
|
|
205
|
-
}
|
|
206
|
-
return await fetchDataStoreDetails(datastoreId, projectId);
|
|
207
|
-
};
|
|
208
|
-
const addDataStoreColumn = async (datastoreId, projectId, column) => {
|
|
209
|
-
const newColumn = await addDataStoreColumnApi(
|
|
210
|
-
rootStore.restApiContext,
|
|
211
|
-
datastoreId,
|
|
212
|
-
projectId,
|
|
213
|
-
column
|
|
214
|
-
);
|
|
215
|
-
if (newColumn) {
|
|
216
|
-
const index = dataStores.value.findIndex((store) => store.id === datastoreId);
|
|
217
|
-
if (index !== -1) {
|
|
218
|
-
dataStores.value[index].columns.push(newColumn);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
return newColumn;
|
|
222
|
-
};
|
|
223
|
-
const moveDataStoreColumn = async (datastoreId, projectId, columnId, targetIndex) => {
|
|
224
|
-
const moved = await moveDataStoreColumnApi(
|
|
225
|
-
rootStore.restApiContext,
|
|
226
|
-
datastoreId,
|
|
227
|
-
projectId,
|
|
228
|
-
columnId,
|
|
229
|
-
targetIndex
|
|
230
|
-
);
|
|
231
|
-
if (moved) {
|
|
232
|
-
const dsIndex = dataStores.value.findIndex((store) => store.id === datastoreId);
|
|
233
|
-
const fromIndex = dataStores.value[dsIndex].columns.findIndex((col) => col.id === columnId);
|
|
234
|
-
dataStores.value[dsIndex].columns = reorderItem(
|
|
235
|
-
dataStores.value[dsIndex].columns,
|
|
236
|
-
fromIndex,
|
|
237
|
-
targetIndex
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
|
-
return moved;
|
|
241
|
-
};
|
|
242
|
-
const fetchDataStoreContent = async (datastoreId, projectId, page, pageSize, sortBy) => {
|
|
243
|
-
return await getDataStoreRowsApi(rootStore.restApiContext, datastoreId, projectId, {
|
|
244
|
-
skip: (page - 1) * pageSize,
|
|
245
|
-
take: pageSize,
|
|
246
|
-
sortBy
|
|
247
|
-
});
|
|
248
|
-
};
|
|
249
|
-
const insertEmptyRow = async (dataStoreId, projectId) => {
|
|
250
|
-
const inserted = await insertDataStoreRowApi(
|
|
251
|
-
rootStore.restApiContext,
|
|
252
|
-
dataStoreId,
|
|
253
|
-
{},
|
|
254
|
-
projectId
|
|
255
|
-
);
|
|
256
|
-
return inserted[0];
|
|
257
|
-
};
|
|
258
|
-
const updateRow = async (dataStoreId, projectId, rowId, rowData) => {
|
|
259
|
-
return await updateDataStoreRowsApi(
|
|
260
|
-
rootStore.restApiContext,
|
|
261
|
-
dataStoreId,
|
|
262
|
-
rowId,
|
|
263
|
-
rowData,
|
|
264
|
-
projectId
|
|
265
|
-
);
|
|
266
|
-
};
|
|
267
|
-
const deleteRows = async (dataStoreId, projectId, rowIds) => {
|
|
268
|
-
return await deleteDataStoreRowsApi(rootStore.restApiContext, dataStoreId, rowIds, projectId);
|
|
269
|
-
};
|
|
270
|
-
return {
|
|
271
|
-
dataStores,
|
|
272
|
-
totalCount,
|
|
273
|
-
fetchDataStores,
|
|
274
|
-
createDataStore,
|
|
275
|
-
deleteDataStore,
|
|
276
|
-
updateDataStore,
|
|
277
|
-
fetchDataStoreDetails,
|
|
278
|
-
fetchOrFindDataStore,
|
|
279
|
-
addDataStoreColumn,
|
|
280
|
-
deleteDataStoreColumn,
|
|
281
|
-
moveDataStoreColumn,
|
|
282
|
-
fetchDataStoreContent,
|
|
283
|
-
insertEmptyRow,
|
|
284
|
-
updateRow,
|
|
285
|
-
deleteRows
|
|
286
|
-
};
|
|
287
|
-
});
|
|
288
|
-
export {
|
|
289
|
-
reorderItem as r,
|
|
290
|
-
useDataStoreStore as u
|
|
291
|
-
};
|