iguazio.dashboard-react-controls 3.2.0 → 3.2.1

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.
@@ -1,5 +1,6 @@
1
1
  export * as chips from "./chips.util";
2
2
  export * as common from "./common.util";
3
+ export * as createProxy from "./proxyServerConfig.util";
3
4
  export * as datetime from "./datetime.util";
4
5
  export * as filter from "./filter.util";
5
6
  export * as form from "./form.util";
@@ -1,25 +1,27 @@
1
1
  import * as t from "./chips.util.mjs";
2
- import * as o from "./common.util.mjs";
3
- import * as r from "./datetime.util.mjs";
4
- import * as i from "./filter.util.mjs";
5
- import * as a from "./form.util.mjs";
2
+ import * as r from "./common.util.mjs";
3
+ import * as o from "./proxyServerConfig.util.mjs";
4
+ import * as i from "./datetime.util.mjs";
5
+ import * as a from "./filter.util.mjs";
6
+ import * as e from "./form.util.mjs";
6
7
  import * as m from "./generateChipsList.util.mjs";
7
8
  import * as s from "./getFirstScrollableParent.util.mjs";
8
- import * as e from "./math.util.mjs";
9
- import * as p from "./notification.util.mjs";
10
- import * as l from "./string.util.mjs";
11
- import * as f from "./validation.util.mjs";
9
+ import * as p from "./math.util.mjs";
10
+ import * as l from "./notification.util.mjs";
11
+ import * as f from "./string.util.mjs";
12
+ import * as n from "./validation.util.mjs";
12
13
  export {
13
14
  t as chips,
14
- o as common,
15
- r as datetime,
16
- i as filter,
17
- a as form,
15
+ r as common,
16
+ o as createProxy,
17
+ i as datetime,
18
+ a as filter,
19
+ e as form,
18
20
  m as generateChipsList,
19
21
  s as getFirstScrollableParent,
20
- e as math,
21
- p as notification,
22
- l as string,
23
- f as validation
22
+ p as math,
23
+ l as notification,
24
+ f as string,
25
+ n as validation
24
26
  };
25
27
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,27 @@
1
+ export function mlrunProxyConfig(env: any): {
2
+ '/api': {
3
+ target: any;
4
+ changeOrigin: boolean;
5
+ headers: {
6
+ Connection: string;
7
+ 'x-v3io-session-key': any;
8
+ 'x-remote-user': string;
9
+ };
10
+ };
11
+ '/nuclio': {
12
+ target: any;
13
+ changeOrigin: boolean;
14
+ rewrite: (path: any) => any;
15
+ };
16
+ '/iguazio': {
17
+ target: any;
18
+ changeOrigin: boolean;
19
+ rewrite: (path: any) => any;
20
+ };
21
+ '/function-catalog': {
22
+ target: any;
23
+ changeOrigin: boolean;
24
+ rewrite: (path: any) => any;
25
+ };
26
+ };
27
+ //# sourceMappingURL=proxyServerConfig.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxyServerConfig.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/proxyServerConfig.util.js"],"names":[],"mappings":"AAoBO;;;;;;;;;;;;;;;;;;;;;;;;;EAiCL"}
@@ -0,0 +1,30 @@
1
+ const r = (e) => ({
2
+ "/api": e.VITE_MLRUN_API_URL ? {
3
+ target: e.VITE_MLRUN_API_URL,
4
+ changeOrigin: !0,
5
+ headers: {
6
+ Connection: "keep-alive",
7
+ "x-v3io-session-key": e.VITE_MLRUN_V3IO_ACCESS_KEY,
8
+ "x-remote-user": "admin"
9
+ }
10
+ } : void 0,
11
+ "/nuclio": e.VITE_NUCLIO_API_URL ? {
12
+ target: e.VITE_NUCLIO_API_URL,
13
+ changeOrigin: !0,
14
+ rewrite: (i) => i.replace(/^\/nuclio/, "")
15
+ } : void 0,
16
+ "/iguazio": e.VITE_IGUAZIO_API_URL ? {
17
+ target: e.VITE_IGUAZIO_API_URL,
18
+ changeOrigin: !0,
19
+ rewrite: (i) => i.replace(/^\/iguazio/, "")
20
+ } : void 0,
21
+ "/function-catalog": e.VITE_FUNCTION_CATALOG_URL ? {
22
+ target: e.VITE_FUNCTION_CATALOG_URL,
23
+ changeOrigin: !0,
24
+ rewrite: (i) => i.replace(/^\/function-catalog/, "")
25
+ } : void 0
26
+ });
27
+ export {
28
+ r as mlrunProxyConfig
29
+ };
30
+ //# sourceMappingURL=proxyServerConfig.util.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxyServerConfig.util.mjs","sources":["../../src/lib/utils/proxyServerConfig.util.js"],"sourcesContent":["/*\nCopyright 2019 Iguazio Systems Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\n\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\n\nexport const mlrunProxyConfig = env => ({\n '/api': env.VITE_MLRUN_API_URL\n ? {\n target: env.VITE_MLRUN_API_URL,\n changeOrigin: true,\n headers: {\n Connection: 'keep-alive',\n 'x-v3io-session-key': env.VITE_MLRUN_V3IO_ACCESS_KEY,\n 'x-remote-user': 'admin'\n }\n }\n : undefined,\n '/nuclio': env.VITE_NUCLIO_API_URL\n ? {\n target: env.VITE_NUCLIO_API_URL,\n changeOrigin: true,\n rewrite: path => path.replace(/^\\/nuclio/, '')\n }\n : undefined,\n '/iguazio': env.VITE_IGUAZIO_API_URL\n ? {\n target: env.VITE_IGUAZIO_API_URL,\n changeOrigin: true,\n rewrite: path => path.replace(/^\\/iguazio/, '')\n }\n : undefined,\n '/function-catalog': env.VITE_FUNCTION_CATALOG_URL\n ? {\n target: env.VITE_FUNCTION_CATALOG_URL,\n changeOrigin: true,\n rewrite: path => path.replace(/^\\/function-catalog/, '')\n }\n : undefined\n})\n\nvoid ['mlrunProxyConfig', 'rewrite']\n"],"names":["mlrunProxyConfig","env","path"],"mappings":"AAoBY,MAACA,IAAmB,CAAAC,OAAQ;AAAA,EACtC,QAAQA,EAAI,qBACR;AAAA,IACE,QAAQA,EAAI;AAAA,IACZ,cAAc;AAAA,IACd,SAAS;AAAA,MACP,YAAY;AAAA,MACZ,sBAAsBA,EAAI;AAAA,MAC1B,iBAAiB;AAAA,IAC3B;AAAA,EACA,IACM;AAAA,EACJ,WAAWA,EAAI,sBACX;AAAA,IACE,QAAQA,EAAI;AAAA,IACZ,cAAc;AAAA,IACd,SAAS,CAAAC,MAAQA,EAAK,QAAQ,aAAa,EAAE;AAAA,EACrD,IACM;AAAA,EACJ,YAAYD,EAAI,uBACZ;AAAA,IACE,QAAQA,EAAI;AAAA,IACZ,cAAc;AAAA,IACd,SAAS,CAAAC,MAAQA,EAAK,QAAQ,cAAc,EAAE;AAAA,EACtD,IACM;AAAA,EACJ,qBAAqBD,EAAI,4BACrB;AAAA,IACE,QAAQA,EAAI;AAAA,IACZ,cAAc;AAAA,IACd,SAAS,CAAAC,MAAQA,EAAK,QAAQ,uBAAuB,EAAE;AAAA,EAC/D,IACM;AACN;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.mjs",