@intuitionrobotics/bug-report 0.46.0 → 0.47.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.
Files changed (57) hide show
  1. package/app-backend/api/_bug-report.js +20 -2
  2. package/app-backend/api/_bug-report.js.map +1 -1
  3. package/app-backend/api/v1/bug-reports/_imports.d.ts +3 -0
  4. package/app-backend/api/v1/bug-reports/_imports.js +38 -0
  5. package/app-backend/api/v1/bug-reports/_imports.js.map +1 -0
  6. package/app-backend/api/v1/bug-reports/download.js +22 -4
  7. package/app-backend/api/v1/bug-reports/download.js.map +1 -1
  8. package/app-backend/api/v1/bug-reports/get-logs.js +22 -4
  9. package/app-backend/api/v1/bug-reports/get-logs.js.map +1 -1
  10. package/app-backend/api/v1/bug-reports/reports.js +24 -6
  11. package/app-backend/api/v1/bug-reports/reports.js.map +1 -1
  12. package/app-backend/core/module-pack.d.ts +1 -1
  13. package/app-backend/core/module-pack.js +20 -2
  14. package/app-backend/core/module-pack.js.map +1 -1
  15. package/app-backend/modules/AdminBRModule.d.ts +2 -2
  16. package/app-backend/modules/AdminBRModule.js +22 -4
  17. package/app-backend/modules/AdminBRModule.js.map +1 -1
  18. package/app-backend/modules/BugReportModule.d.ts +6 -6
  19. package/app-backend/modules/BugReportModule.js +27 -13
  20. package/app-backend/modules/BugReportModule.js.map +1 -1
  21. package/app-backend/modules/JiraBugReportIntegrator.d.ts +5 -5
  22. package/app-backend/modules/JiraBugReportIntegrator.js +26 -9
  23. package/app-backend/modules/JiraBugReportIntegrator.js.map +1 -1
  24. package/app-backend/modules/SlackBugReportIntegrator.d.ts +4 -4
  25. package/app-backend/modules/SlackBugReportIntegrator.js +24 -8
  26. package/app-backend/modules/SlackBugReportIntegrator.js.map +1 -1
  27. package/app-frontend/core/module-pack.d.ts +2 -0
  28. package/app-frontend/core/module-pack.js +34 -0
  29. package/app-frontend/core/module-pack.js.map +1 -1
  30. package/app-frontend/modules/AdminBRModule.d.ts +1 -1
  31. package/app-frontend/modules/AdminBRModule.js +26 -8
  32. package/app-frontend/modules/AdminBRModule.js.map +1 -1
  33. package/app-frontend/modules/BugReportModule.d.ts +2 -2
  34. package/app-frontend/modules/BugReportModule.js +28 -12
  35. package/app-frontend/modules/BugReportModule.js.map +1 -1
  36. package/app-frontend/ui/AdminBR.d.ts +2 -2
  37. package/app-frontend/ui/AdminBR.js +24 -21
  38. package/app-frontend/ui/AdminBR.js.map +1 -1
  39. package/app-frontend/ui/BugReport.d.ts +2 -2
  40. package/app-frontend/ui/BugReport.js +29 -15
  41. package/app-frontend/ui/BugReport.js.map +1 -1
  42. package/app-frontend/ui/Dialog_JiraOpened.d.ts +2 -2
  43. package/app-frontend/ui/Dialog_JiraOpened.js +1 -1
  44. package/app-frontend/ui/Dialog_JiraOpened.js.map +1 -1
  45. package/backend.d.ts +5 -0
  46. package/backend.js +40 -0
  47. package/backend.js.map +1 -0
  48. package/frontend.d.ts +3 -0
  49. package/frontend.js +38 -0
  50. package/frontend.js.map +1 -0
  51. package/index.d.ts +1 -0
  52. package/index.js +34 -0
  53. package/index.js.map +1 -1
  54. package/package.json +10 -10
  55. package/shared/api.d.ts +16 -12
  56. package/shared/api.js +18 -0
  57. package/shared/api.js.map +1 -1
@@ -1,4 +1,22 @@
1
1
  "use strict";
2
+ /*
3
+ * Permissions management system, define access level for each of
4
+ * your server apis, and restrict users by giving them access levels
5
+ *
6
+ * Copyright (C) 2020 Intuition Robotics
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ */
2
20
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
21
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
22
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -10,19 +28,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
28
  };
11
29
  Object.defineProperty(exports, "__esModule", { value: true });
12
30
  exports.SlackBugReportIntegrator = exports.SlackBugReportIntegrator_Class = void 0;
31
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
32
+ const __1 = require("../..");
13
33
  const SlackModule_1 = require("@intuitionrobotics/thunderstorm//app-backend/modules/SlackModule");
14
- const module_1 = require("@intuitionrobotics/ts-common/core/module");
15
- const api_1 = require("../../shared/api");
16
- const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
17
- const random_tools_1 = require("@intuitionrobotics/ts-common/utils/random-tools");
18
- class SlackBugReportIntegrator_Class extends module_1.Module {
34
+ class SlackBugReportIntegrator_Class extends ts_common_1.Module {
19
35
  constructor() {
20
36
  super("SlackBugReportIntegrator");
21
37
  this.openTicket = (bugReport, logs, reporter) => __awaiter(this, void 0, void 0, function* () {
22
- if (bugReport.platforms && !bugReport.platforms.includes(api_1.Platform_Slack))
38
+ if (bugReport.platforms && !bugReport.platforms.includes(__1.Platform_Slack))
23
39
  return;
24
40
  if (!this.config.channel)
25
- throw new exceptions_1.ImplementationMissingException("Missing Slack Channel in bug report configurations");
41
+ throw new ts_common_1.ImplementationMissingException("Missing Slack Channel in bug report configurations");
26
42
  let description = logs.reduce((carry, log, i) => {
27
43
  return carry + "\n" + `<${log.path}|Click to view logs (${i})>`;
28
44
  }, bugReport.subject + "\n" + bugReport.description);
@@ -33,7 +49,7 @@ class SlackBugReportIntegrator_Class extends module_1.Module {
33
49
  channel: this.config.channel
34
50
  };
35
51
  yield SlackModule_1.SlackModule.postMessage(slackMessage);
36
- return { platform: api_1.Platform_Slack, issueId: random_tools_1.generateHex(32) };
52
+ return { platform: __1.Platform_Slack, issueId: (0, ts_common_1.generateHex)(32) };
37
53
  });
38
54
  }
39
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SlackBugReportIntegrator.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/SlackBugReportIntegrator.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,kGAA6F;AAC7F,qEAAgE;AAChE,0CAAkF;AAClF,6EAA4F;AAC5F,kFAA4E;AAO5E,MAAa,8BACT,SAAQ,eAAc;IAEtB;QACI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAGtC,eAAU,GAAG,CAAO,SAA4B,EAAE,IAAqB,EAAE,QAAiB,EAAsC,EAAE;YAC9H,IAAI,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,oBAAc,CAAC;gBACpE,OAAO;YAEX,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO;gBACpB,MAAM,IAAI,2CAA8B,CAAC,oDAAoD,CAAC,CAAC;YAEnG,IAAI,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,KAAa,EAAE,GAAkB,EAAE,CAAS,EAAE,EAAE;gBAC3E,OAAO,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,wBAAwB,CAAC,IAAI,CAAC;YACpE,CAAC,EAAE,SAAS,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;YAErD,IAAI,QAAQ;gBACR,WAAW,IAAI,iBAAiB,GAAG,QAAQ,CAAC;YAEhD,MAAM,YAAY,GAAG;gBACjB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO;aAC/B,CAAC;YACF,MAAM,yBAAW,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;YAC3C,OAAO,EAAC,QAAQ,EAAE,oBAAc,EAAE,OAAO,EAAE,0BAAW,CAAC,EAAE,CAAC,EAAC,CAAC;QAChE,CAAC,CAAA,CA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CAAC,EAAC,CAAC;QAC7D,CAAC,CAAA,CAAC;IAtBF,CAAC;CAuBD;AA5BD,wEA4BC;AAEY,QAAA,wBAAwB,GAAG,IAAI,8BAA8B,EAAE,CAAC"}
@@ -1 +1,3 @@
1
1
  export declare const Frontend_ModulePack_BugReport: (import("../modules/BugReportModule").BugReportModule_Class | import("../modules/AdminBRModule").AdminBRModule_Class)[];
2
+ export * from "../modules/AdminBRModule";
3
+ export * from "../modules/BugReportModule";
@@ -1,4 +1,36 @@
1
1
  "use strict";
2
+ /*
3
+ * Permissions management system, define access level for each of
4
+ * your server apis, and restrict users by giving them access levels
5
+ *
6
+ * Copyright (C) 2020 Intuition Robotics
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ */
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
+ };
2
34
  Object.defineProperty(exports, "__esModule", { value: true });
3
35
  exports.Frontend_ModulePack_BugReport = void 0;
4
36
  const BugReportModule_1 = require("../modules/BugReportModule");
@@ -7,4 +39,6 @@ exports.Frontend_ModulePack_BugReport = [
7
39
  BugReportModule_1.BugReportModule,
8
40
  AdminBRModule_1.AdminBRModule
9
41
  ];
42
+ __exportStar(require("../modules/AdminBRModule"), exports);
43
+ __exportStar(require("../modules/BugReportModule"), exports);
10
44
  //# sourceMappingURL=module-pack.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-pack.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/module-pack.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAC3D,4DAAuD;AAE1C,QAAA,6BAA6B,GAAG;IACzC,iCAAe;IACf,6BAAa;CAChB,CAAC"}
1
+ {"version":3,"file":"module-pack.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/module-pack.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;;AAEH,gEAA2D;AAC3D,4DAAuD;AAE1C,QAAA,6BAA6B,GAAG;IAC5C,iCAAe;IACf,6BAAa;CACb,CAAC;AAEF,2DAAwC;AACxC,6DAA0C"}
@@ -1,4 +1,4 @@
1
- import { Module } from "@intuitionrobotics/ts-common/core/module";
1
+ import { Module } from "@intuitionrobotics/ts-common";
2
2
  import { DB_BugReport, ReportLogFile } from "../../shared/api";
3
3
  export declare const RequestKey_GetLog = "GetLog";
4
4
  export declare const RequestKey_PostPath = "PostPath";
@@ -1,4 +1,22 @@
1
1
  "use strict";
2
+ /*
3
+ * Permissions management system, define access level for each of
4
+ * your server apis, and restrict users by giving them access levels
5
+ *
6
+ * Copyright (C) 2020 Intuition Robotics
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ */
2
20
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
21
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
22
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -10,19 +28,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
28
  };
11
29
  Object.defineProperty(exports, "__esModule", { value: true });
12
30
  exports.AdminBRModule = exports.AdminBRModule_Class = exports.RequestKey_PostPath = exports.RequestKey_GetLog = void 0;
13
- const module_1 = require("@intuitionrobotics/ts-common/core/module");
14
- const XhrHttpModule_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/http/XhrHttpModule");
15
- const types_1 = require("@intuitionrobotics/thunderstorm/shared/types");
31
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
32
+ const frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
33
+ const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
16
34
  exports.RequestKey_GetLog = "GetLog";
17
35
  exports.RequestKey_PostPath = "PostPath";
18
- class AdminBRModule_Class extends module_1.Module {
36
+ class AdminBRModule_Class extends ts_common_1.Module {
19
37
  constructor() {
20
38
  super("AdminBRModule");
21
39
  this.logs = [];
22
40
  this.retrieveLogs = () => {
23
41
  this.logInfo("getting logs from firestore...");
24
- XhrHttpModule_1.XhrHttpModule
25
- .createRequest(types_1.HttpMethod.GET, exports.RequestKey_GetLog)
42
+ frontend_1.XhrHttpModule
43
+ .createRequest(thunderstorm_1.HttpMethod.GET, exports.RequestKey_GetLog)
26
44
  .setRelativeUrl("/v1/bug-reports/get-logs")
27
45
  .setOnError(`Error getting new message from backend`)
28
46
  .execute((response) => __awaiter(this, void 0, void 0, function* () {
@@ -33,8 +51,8 @@ class AdminBRModule_Class extends module_1.Module {
33
51
  this.downloadLogs = (path) => {
34
52
  this.logInfo("downloading the logs to the client..");
35
53
  const bodyObject = { path: path };
36
- XhrHttpModule_1.XhrHttpModule
37
- .createRequest(types_1.HttpMethod.POST, exports.RequestKey_PostPath)
54
+ frontend_1.XhrHttpModule
55
+ .createRequest(thunderstorm_1.HttpMethod.POST, exports.RequestKey_PostPath)
38
56
  .setJsonBody(bodyObject)
39
57
  .setRelativeUrl("/v1/bug-reports/download-logs")
40
58
  .setOnError(`Error getting new message from backend`)
@@ -1 +1 @@
1
- {"version":3,"file":"AdminBRModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/AdminBRModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAAgE;AAChE,2GAAsG;AACtG,wEAAwE;AAG3D,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC7B,QAAA,mBAAmB,GAAG,UAAU,CAAC;AAE9C,MAAa,mBACT,SAAQ,eAAM;IAEd;QACI,KAAK,CAAC,eAAe,CAAC,CAAC;QAGnB,SAAI,GAAmB,EAAE,CAAC;QAE3B,iBAAY,GAAG,GAAG,EAAE;YACvB,IAAI,CAAC,OAAO,CAAC,gCAAgC,CAAC,CAAC;YAC/C,6BAAa;iBACR,aAAa,CAAY,kBAAU,CAAC,GAAG,EAAE,yBAAiB,CAAC;iBAC3D,cAAc,CAAC,0BAA0B,CAAC;iBAC1C,UAAU,CAAC,wCAAwC,CAAC;iBACpD,OAAO,CAAC,CAAM,QAAQ,EAAC,EAAE;gBACtB,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAA;YACxB,CAAC,CAAA,CAAC,CAAC;YAEP,IAAI,CAAC,OAAO,CAAC,+DAA+D,CAAC,CAAC;QAClF,CAAC,CAAC;QAEK,iBAAY,GAAG,CAAC,IAAY,EAAE,EAAE;YACnC,IAAI,CAAC,OAAO,CAAC,sCAAsC,CAAC,CAAC;YACrD,MAAM,UAAU,GAAU,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;YACvC,6BAAa;iBACR,aAAa,CAAc,kBAAU,CAAC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C,OAAO,CAAC,+DAA+D,CAAC,CAAC;QAC/E,CAAC,CAAC;QAEK,iBAAY,GAAG,CAAC,IAAY,EAAE,EAAE;YACtC,IAAI,CAAC,OAAO,CAAC,sCAAsC,CAAC,CAAC;YACrD,MAAM,UAAU,GAAU,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;YACvC,wBAAa;iBACX,aAAa,CAAc,yBAAU,CAAC,IAAI,EAAE,2BAAmB,CAAC;iBAChE,WAAW,CAAC,UAAU,CAAC;iBACvB,cAAc,CAAC,+BAA+B,CAAC;iBAC/C,UAAU,CAAC,wCAAwC,CAAC;iBACpD,OAAO,EAAE,CAAC;QACb,CAAC,CAAC;QAEK,sBAAiB,GAAG,CAAC,OAAwB,EAAE,EAAE;YACvD,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;QAC1D,CAAC,CAAA;QAEM,YAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAA;IAhChC,CAAC;CAiCD;AAtCD,kDAsCC;AAEY,QAAA,aAAa,GAAG,IAAI,mBAAmB,EAAE,CAAC"}
@@ -1,9 +1,9 @@
1
- import { Module } from "@intuitionrobotics/ts-common/core/module";
1
+ import { Module } from "@intuitionrobotics/ts-common";
2
2
  export declare const RequestKey_BugReportApi = "BugReport";
3
3
  export declare class BugReportModule_Class extends Module {
4
4
  private readonly reports;
5
5
  constructor();
6
6
  protected init(): void;
7
- sendBugReport: (subject: string, description: string, platforms?: string[] | undefined) => void;
7
+ sendBugReport: (subject: string, description: string, platforms?: string[]) => void;
8
8
  }
9
9
  export declare const BugReportModule: BugReportModule_Class;
@@ -1,16 +1,31 @@
1
1
  "use strict";
2
+ /*
3
+ * Permissions management system, define access level for each of
4
+ * your server apis, and restrict users by giving them access levels
5
+ *
6
+ * Copyright (C) 2020 Intuition Robotics
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ */
2
20
  Object.defineProperty(exports, "__esModule", { value: true });
3
21
  exports.BugReportModule = exports.BugReportModule_Class = exports.RequestKey_BugReportApi = void 0;
4
- const XhrHttpModule_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/http/XhrHttpModule");
5
- const types_1 = require("@intuitionrobotics/thunderstorm/shared/types");
6
- const module_1 = require("@intuitionrobotics/ts-common/core/module");
22
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
23
+ const frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
24
+ const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
7
25
  const api_1 = require("../../shared/api");
8
26
  const Dialog_JiraOpened_1 = require("../ui/Dialog_JiraOpened");
9
- const LogClient_MemBuffer_1 = require("@intuitionrobotics/ts-common/core/logger/LogClient_MemBuffer");
10
- const types_2 = require("@intuitionrobotics/ts-common/core/logger/types");
11
- const BeLogged_1 = require("@intuitionrobotics/ts-common/core/logger/BeLogged");
12
27
  exports.RequestKey_BugReportApi = "BugReport";
13
- class BugReportModule_Class extends module_1.Module {
28
+ class BugReportModule_Class extends ts_common_1.Module {
14
29
  constructor() {
15
30
  super("BugReportModule");
16
31
  this.reports = [];
@@ -21,8 +36,8 @@ class BugReportModule_Class extends module_1.Module {
21
36
  reports: this.reports.map(report => ({ log: report.buffers, name: report.name })),
22
37
  platforms
23
38
  };
24
- XhrHttpModule_1.XhrHttpModule
25
- .createRequest(types_1.HttpMethod.POST, exports.RequestKey_BugReportApi)
39
+ frontend_1.XhrHttpModule
40
+ .createRequest(thunderstorm_1.HttpMethod.POST, exports.RequestKey_BugReportApi)
26
41
  .setJsonBody(body)
27
42
  .setRelativeUrl("/v1/bug-reports/report")
28
43
  .setOnError(() => this.logWarning(`Error updating the report`))
@@ -32,11 +47,12 @@ class BugReportModule_Class extends module_1.Module {
32
47
  Dialog_JiraOpened_1.Dialog_JiraOpened.show(jiraTicket.issueId);
33
48
  });
34
49
  };
35
- this.reports.push(new LogClient_MemBuffer_1.LogClient_MemBuffer("default"));
36
- this.reports.push(new LogClient_MemBuffer_1.LogClient_MemBuffer("info").setFilter(level => types_2.LogLevelOrdinal.indexOf(level) >= types_2.LogLevelOrdinal.indexOf(types_2.LogLevel.Info)));
50
+ (0, ts_common_1.addItemToArray)(this.reports, new ts_common_1.LogClient_MemBuffer("default"));
51
+ (0, ts_common_1.addItemToArray)(this.reports, new ts_common_1.LogClient_MemBuffer("info")
52
+ .setFilter(level => ts_common_1.LogLevelOrdinal.indexOf(level) >= ts_common_1.LogLevelOrdinal.indexOf(ts_common_1.LogLevel.Info)));
37
53
  }
38
54
  init() {
39
- this.reports.forEach(report => BeLogged_1.BeLogged.addClient(report));
55
+ this.reports.forEach(report => ts_common_1.BeLogged.addClient(report));
40
56
  }
41
57
  }
42
58
  exports.BugReportModule_Class = BugReportModule_Class;
@@ -1 +1 @@
1
- {"version":3,"file":"BugReportModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/BugReportModule.ts"],"names":[],"mappings":";;;AAAA,2GAAsG;AACtG,wEAAwE;AACxE,qEAAgE;AAChE,0CAAgF;AAChF,+DAA0D;AAC1D,sGAAiG;AACjG,0EAAyF;AACzF,gFAA2E;AAE9D,QAAA,uBAAuB,GAAG,WAAW,CAAC;AAEnD,MAAa,qBACT,SAAQ,eAAM;IAId;QACI,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAHZ,YAAO,GAA0B,EAAE,CAAC;QAYrD,kBAAa,GAAG,CAAC,OAAe,EAAE,WAAmB,EAAE,SAAoB,EAAE,EAAE;YAC3E,MAAM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AC,CAAC;QA3BD,IAAA,0BAAc,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,+BAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;QACjE,IAAA,0BAAc,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,+BAAmB,CAAC,MAAM,CAAC;aAC1D,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,2BAAe,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,2BAAe,CAAC,OAAO,CAAC,oBAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjG,CAAC;IAES,IAAI;QACb,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,oBAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC;CAqBD;AAnCD,sDAmCC;AAEY,QAAA,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
- import { BaseComponent } from "@intuitionrobotics/thunderstorm/app-frontend/core/BaseComponent";
3
- import { OnRequestListener } from "@intuitionrobotics/thunderstorm/shared/request-types";
2
+ import { BaseComponent } from "@intuitionrobotics/thunderstorm/frontend";
3
+ import { OnRequestListener } from "@intuitionrobotics/thunderstorm";
4
4
  export declare class AdminBR extends BaseComponent implements OnRequestListener {
5
5
  render(): React.JSX.Element;
6
6
  private createRow;
@@ -1,32 +1,35 @@
1
1
  "use strict";
2
+ /*
3
+ * Permissions management system, define access level for each of
4
+ * your server apis, and restrict users by giving them access levels
5
+ *
6
+ * Copyright (C) 2020 Intuition Robotics
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ */
2
20
  Object.defineProperty(exports, "__esModule", { value: true });
3
21
  exports.AdminBR = void 0;
4
22
  const React = require("react");
5
23
  const AdminBRModule_1 = require("../modules/AdminBRModule");
6
- const BaseComponent_1 = require("@intuitionrobotics/thunderstorm/app-frontend/core/BaseComponent");
7
- const tools_1 = require("@intuitionrobotics/ts-common/utils/tools");
8
- class AdminBR extends BaseComponent_1.BaseComponent {
24
+ const frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
25
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
26
+ class AdminBR extends frontend_1.BaseComponent {
9
27
  constructor() {
10
28
  super(...arguments);
11
29
  this.createRow = (report) => React.createElement("tr", null,
12
- React.createElement("td", { style: {
13
- padding: "15px",
14
- textAlign: "left",
15
- border: "1px solid #ddd",
16
- fontSize: "15px"
17
- } }, report.description),
18
- React.createElement("td", { style: {
19
- padding: "15px",
20
- textAlign: "left",
21
- border: "1px solid #ddd",
22
- fontSize: "15px"
23
- } }, report.reports[0].path),
24
- React.createElement("td", { style: {
25
- padding: "15px",
26
- textAlign: "left",
27
- border: "1px solid #ddd",
28
- fontSize: "15px"
29
- } }, tools_1.__stringify(report.tickets)),
30
+ React.createElement("td", { style: { padding: "15px", textAlign: "left", border: "1px solid #ddd", fontSize: "15px" } }, report.description),
31
+ React.createElement("td", { style: { padding: "15px", textAlign: "left", border: "1px solid #ddd", fontSize: "15px" } }, report.reports[0].path),
32
+ React.createElement("td", { style: { padding: "15px", textAlign: "left", border: "1px solid #ddd", fontSize: "15px" } }, (0, ts_common_1.__stringify)(report.tickets)),
30
33
  React.createElement("td", { style: { padding: "15px", textAlign: "left", border: "1px solid #ddd", fontSize: "15px" } },
31
34
  React.createElement("button", { onClick: () => AdminBRModule_1.AdminBRModule.downloadMultiLogs(report.reports) }, "download")));
32
35
  this.__onRequestCompleted = (key, success) => {
@@ -1 +1 @@
1
- {"version":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AAE,QAAQ,EAAE,MAAM,EAAC;gBAC1F,gCAAQ,OAAO,EAAE,GAAG,EAAE,CAAC,6BAAa,CAAC,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,eAAmB,CACrF,CACD,CAAC;QAEN,yBAAoB,GAAG,CAAC,GAAW,EAAE,OAAgB,EAAE,EAAE;YACxD,QAAQ,GAAG,EAAE,CAAC;gBACb;oBACC,OAAO;gBAER,KAAK,iCAAiB;oBACrB,IAAI,CAAC,WAAW,EAAE,CAAC;YACrB,CAAC;QACF,CAAC,CAAC;IACH,CAAC;IA9BA,MAAM;QACL,MAAM,IAAI,GAAG,6BAAa,CAAC,OAAO,EAAE,CAAC;QACrC,OAAO,CACN;YACC,gCAAQ,OAAO,EAAE,6BAAa,CAAC,YAAY,4BAAgC;YAC3E;gBACC,+BAAO,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAC,IAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAS,CAC5D,CACD,CACN,CAAC;IACH,CAAC;CAoBD;AAlCD,0BAkCC"}
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
- declare type Props = {
2
+ type Props = {
3
3
  component?: React.ReactNode;
4
4
  };
5
- declare type State = {
5
+ type State = {
6
6
  error?: Error;
7
7
  errorInfo?: React.ErrorInfo;
8
8
  description?: string;
@@ -1,15 +1,29 @@
1
1
  "use strict";
2
+ /*
3
+ * Permissions management system, define access level for each of
4
+ * your server apis, and restrict users by giving them access levels
5
+ *
6
+ * Copyright (C) 2020 Intuition Robotics
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ */
2
20
  Object.defineProperty(exports, "__esModule", { value: true });
3
21
  exports.BugReport = void 0;
4
22
  const React = require("react");
5
23
  const BugReportModule_1 = require("../modules/BugReportModule");
6
- const random_tools_1 = require("@intuitionrobotics/ts-common/utils/random-tools");
24
+ const frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
25
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
7
26
  const api_1 = require("../../shared/api");
8
- const DialogModule_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/dialog/DialogModule");
9
- const Dialog_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/dialog/Dialog");
10
- const ToasterModule_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/toaster/ToasterModule");
11
- const TS_Input_1 = require("@intuitionrobotics/thunderstorm/app-frontend/components/TS_Input");
12
- const TS_TextArea_1 = require("@intuitionrobotics/thunderstorm/app-frontend/components/TS_TextArea");
13
27
  const style = {
14
28
  cursor: "pointer",
15
29
  display: "flex",
@@ -32,12 +46,12 @@ class BugReport extends React.Component {
32
46
  const title = "Bug Report";
33
47
  const onSubmit = () => {
34
48
  if (!this.state.subject)
35
- return ToasterModule_1.ToastModule.toastError('you must first add a subject');
49
+ return frontend_1.ToastModule.toastError('you must first add a subject');
36
50
  if (!this.state.description)
37
- return ToasterModule_1.ToastModule.toastError('you must first add a description');
51
+ return frontend_1.ToastModule.toastError('you must first add a description');
38
52
  BugReportModule_1.BugReportModule.sendBugReport(this.state.subject, this.state.description || '', [api_1.Platform_Jira]);
39
53
  this.setState({ subject: undefined, description: undefined });
40
- DialogModule_1.DialogModule.close();
54
+ frontend_1.DialogModule.close();
41
55
  };
42
56
  const content = React.createElement("div", { className: 'll_v_c' },
43
57
  React.createElement("div", { style: {
@@ -46,15 +60,15 @@ class BugReport extends React.Component {
46
60
  width: "91%",
47
61
  margin: "8px"
48
62
  } },
49
- React.createElement(TS_Input_1.TS_Input, { id: "bug-report-subject", type: "text", value: this.state.subject || '', placeholder: "type bug name here", name: random_tools_1.generateHex(8), onChange: (subject) => this.setState({ subject }) })),
50
- React.createElement(TS_TextArea_1.TS_TextArea, { id: "bug-report-description", type: "text", style: { height: "110px", margin: "8px", width: "100%", outline: "none" }, value: this.state.description || '', placeholder: "type bug description here", onChange: (description) => this.setState({ description }) }));
51
- new DialogModule_1.Dialog_Builder(content)
63
+ React.createElement(frontend_1.TS_Input, { id: "bug-report-subject", type: "text", value: this.state.subject || '', placeholder: "type bug name here", name: (0, ts_common_1.generateHex)(8), onChange: (subject) => this.setState({ subject }) })),
64
+ React.createElement(frontend_1.TS_TextArea, { id: "bug-report-description", type: "text", style: { height: "110px", margin: "8px", width: "100%", outline: "none" }, value: this.state.description || '', placeholder: "type bug description here", onChange: (description) => this.setState({ description }) }));
65
+ new frontend_1.Dialog_Builder(content)
52
66
  .setTitle(title)
53
- .addButton(Dialog_1.DialogButton_Cancel(() => {
67
+ .addButton((0, frontend_1.DialogButton_Cancel)(() => {
54
68
  this.setState({ description: undefined, subject: undefined });
55
- DialogModule_1.DialogModule.close();
69
+ frontend_1.DialogModule.close();
56
70
  }))
57
- .addButton(Dialog_1.DialogButton_Submit(() => onSubmit(), 'Submit'))
71
+ .addButton((0, frontend_1.DialogButton_Submit)(() => onSubmit(), 'Submit'))
58
72
  .setOverlayColor("rgba(102, 255, 255, 0.4)")
59
73
  .show();
60
74
  };
@@ -1 +1 @@
1
- {"version":3,"file":"BugReport.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/BugReport.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,gEAA2D;AAC3D,kFAA4E;AAC5E,0CAA+D;AAC/D,2GAAsH;AACtH,+FAG4E;AAC5E,8GAAuG;AACvG,+FAA0F;AAC1F,qGAAgG;AAKhG,MAAM,KAAK,GAAwB;IAC/B,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,cAAc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SAAS,EAAE,SAAS;SACpB,CAAC,CAAC;IAClB,CAAC;IAqDD,MAAM;QACL,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;YAC1B,OAAO,CACN;gBACC,wDAA8B;gBAC9B,iCAAS,KAAK,EAAE,EAAC,UAAU,EAAE,UAAU,EAAC;oBACtC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE;oBAChD,+BAAK;oBACJ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAC3B;gBACV,gCAAQ,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,cAAkB,CAC1E,CACN,CAAC;QACH,CAAC;QAED,OAAO,CACN;YACE,IAAI,CAAC,KAAK,CAAC,QAAQ;YACpB,6BACC,OAAO,EAAE,IAAI,CAAC,gCAAgC,IAC7C,IAAI,CAAC,KAAK,CAAC,SAAS;gBACrB,gCAAQ,KAAK,EAAE,KAAK,QAAY,CAC3B,CACJ,CACH,CAAC;IACH,CAAC;CACD;AA7FD,8BA6FC;AAAA,CAAC"}
@@ -1,6 +1,6 @@
1
- import * as React from "react";
2
1
  import { BaseComponent } from "@intuitionrobotics/thunderstorm/app-frontend/core/BaseComponent";
3
- declare type Props = {
2
+ import * as React from "react";
3
+ type Props = {
4
4
  url: string;
5
5
  };
6
6
  export declare class Dialog_JiraOpened extends BaseComponent<Props, {}> {
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Dialog_JiraOpened = void 0;
4
- const React = require("react");
5
4
  const DialogModule_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/dialog/DialogModule");
6
5
  const BaseComponent_1 = require("@intuitionrobotics/thunderstorm/app-frontend/core/BaseComponent");
6
+ const React = require("react");
7
7
  class Dialog_JiraOpened extends BaseComponent_1.BaseComponent {
8
8
  constructor(props) {
9
9
  super(props);
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog_JiraOpened.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/Dialog_JiraOpened.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,2GAAwG;AACxG,mGAA8F;AAO9F,MAAa,iBACT,SAAQ,6BAAwB;IAGhC,YAAY,KAAY;QACpB,KAAK,CAAC,KAAK,CAAC,CAAC;QASjB,mBAAc,GAAG,GAAG,EAAE;YAClB,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG;gBACd,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACpC,CAAC,CAAC;IAXF,CAAC;IAEM,MAAM,CAAC,IAAI,CAAC,GAAW;QAC1B,IAAI,6BAAc,CAAC,oBAAC,iBAAiB,IAAC,GAAG,EAAE,GAAG,GAAG,CAAC;aAC7C,uBAAuB,CAAC,IAAI,CAAC;aAC7B,IAAI,EAAE,CAAC;IAChB,CAAC;IAOD,MAAM;QACF,OAAO,6BAAK,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,GAAG,EAAC;YACrD,6BAAK,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAC,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAC;gBAC5D,6BAAK,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAC,cACtF;gBACN,6BAAK,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAC,wCAErF;gBACN,6BAAK,KAAK,EAAE,EAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAC;oBAC9C,6BACI,SAA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AS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAC,cAAe;gBAC3G,6BAAK,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAC,wCAAyC;gBACpI,6BAAK,KAAK,EAAE,EAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAC;oBACjD,6BACC,SAAS,EAAE,kBAAkB,EAC7B,KAAK,EAAE;4BACN,UAAU,EAAE,aAAa;4BACzB,MAAM,EAAE,EAAE;4BACV,YAAY,EAAE,EAAE;4BAChB,WAAW,EAAE,EAAE;4BACf,YAAY,EAAE,EAAE;4BAChB,QAAQ,EAAE,MAAM;4BAChB,KAAK,EAAE,eAAe;4BACtB,QAAQ,EAAE,UAAU;4BACpB,KAAK,EAAE,KAAK;yBACZ,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,sBAE/B,CACD,CACD,CACD,CAAC;IACR,CAAC;CACD;AA7CD,8CA6CC"}
package/backend.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export * from "./app-backend/core/module-pack";
2
+ export * from "./app-backend/modules/AdminBRModule";
3
+ export * from "./app-backend/modules/BugReportModule";
4
+ export * from "./app-backend/modules/JiraBugReportIntegrator";
5
+ export * from "./app-backend/modules/SlackBugReportIntegrator";
package/backend.js ADDED
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /*
3
+ * Permissions management system, define access level for each of
4
+ * your server apis, and restrict users by giving them access levels
5
+ *
6
+ * Copyright (C) 2020 Intuition Robotics
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ */
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ __exportStar(require("./app-backend/core/module-pack"), exports);
36
+ __exportStar(require("./app-backend/modules/AdminBRModule"), exports);
37
+ __exportStar(require("./app-backend/modules/BugReportModule"), exports);
38
+ __exportStar(require("./app-backend/modules/JiraBugReportIntegrator"), exports);
39
+ __exportStar(require("./app-backend/modules/SlackBugReportIntegrator"), exports);
40
+ //# sourceMappingURL=backend.js.map
package/backend.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backend.js","sourceRoot":"","sources":["../src/main/backend.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,iEAA+C;AAE/C,sEAAoD;AACpD,wEAAsD;AACtD,gFAA8D;AAC9D,iFAA+D"}
package/frontend.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./app-frontend/core/module-pack";
2
+ export * from "./app-frontend/ui/BugReport";
3
+ export * from "./app-frontend/ui/AdminBR";
package/frontend.js ADDED
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /*
3
+ * Permissions management system, define access level for each of
4
+ * your server apis, and restrict users by giving them access levels
5
+ *
6
+ * Copyright (C) 2020 Intuition Robotics
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ */
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ __exportStar(require("./app-frontend/core/module-pack"), exports);
36
+ __exportStar(require("./app-frontend/ui/BugReport"), exports);
37
+ __exportStar(require("./app-frontend/ui/AdminBR"), exports);
38
+ //# sourceMappingURL=frontend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend.js","sourceRoot":"","sources":["../src/main/frontend.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,kEAAgD;AAChD,8DAA2C;AAC3C,4DAAyC"}
package/index.d.ts CHANGED
@@ -0,0 +1 @@
1
+ export * from "./shared/api";