@celljs/shell 3.0.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.
Files changed (135) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/cell-locale.yml +13 -0
  4. package/cell.yml +18 -0
  5. package/lib/browser/annotation/index.d.ts +3 -0
  6. package/lib/browser/annotation/index.d.ts.map +1 -0
  7. package/lib/browser/annotation/index.js +19 -0
  8. package/lib/browser/annotation/index.js.map +1 -0
  9. package/lib/browser/annotation/left-area.d.ts +2 -0
  10. package/lib/browser/annotation/left-area.d.ts.map +1 -0
  11. package/lib/browser/annotation/left-area.js +12 -0
  12. package/lib/browser/annotation/left-area.js.map +1 -0
  13. package/lib/browser/annotation/top-area.d.ts +2 -0
  14. package/lib/browser/annotation/top-area.d.ts.map +1 -0
  15. package/lib/browser/annotation/top-area.js +12 -0
  16. package/lib/browser/annotation/top-area.js.map +1 -0
  17. package/lib/browser/apps/app-service.d.ts +11 -0
  18. package/lib/browser/apps/app-service.d.ts.map +1 -0
  19. package/lib/browser/apps/app-service.js +55 -0
  20. package/lib/browser/apps/app-service.js.map +1 -0
  21. package/lib/browser/apps/apps.d.ts +13 -0
  22. package/lib/browser/apps/apps.d.ts.map +1 -0
  23. package/lib/browser/apps/apps.js +44 -0
  24. package/lib/browser/apps/apps.js.map +1 -0
  25. package/lib/browser/apps/index.d.ts +3 -0
  26. package/lib/browser/apps/index.d.ts.map +1 -0
  27. package/lib/browser/apps/index.js +19 -0
  28. package/lib/browser/apps/index.js.map +1 -0
  29. package/lib/browser/area/area-protocol.d.ts +18 -0
  30. package/lib/browser/area/area-protocol.d.ts.map +1 -0
  31. package/lib/browser/area/area-protocol.js +22 -0
  32. package/lib/browser/area/area-protocol.js.map +1 -0
  33. package/lib/browser/area/index.d.ts +4 -0
  34. package/lib/browser/area/index.d.ts.map +1 -0
  35. package/lib/browser/area/index.js +20 -0
  36. package/lib/browser/area/index.js.map +1 -0
  37. package/lib/browser/area/left/index.d.ts +2 -0
  38. package/lib/browser/area/left/index.d.ts.map +1 -0
  39. package/lib/browser/area/left/index.js +18 -0
  40. package/lib/browser/area/left/index.js.map +1 -0
  41. package/lib/browser/area/left/left.d.ts +5 -0
  42. package/lib/browser/area/left/left.d.ts.map +1 -0
  43. package/lib/browser/area/left/left.js +31 -0
  44. package/lib/browser/area/left/left.js.map +1 -0
  45. package/lib/browser/area/top/index.d.ts +2 -0
  46. package/lib/browser/area/top/index.d.ts.map +1 -0
  47. package/lib/browser/area/top/index.js +18 -0
  48. package/lib/browser/area/top/index.js.map +1 -0
  49. package/lib/browser/area/top/top.d.ts +5 -0
  50. package/lib/browser/area/top/top.d.ts.map +1 -0
  51. package/lib/browser/area/top/top.js +31 -0
  52. package/lib/browser/area/top/top.js.map +1 -0
  53. package/lib/browser/index.d.ts +5 -0
  54. package/lib/browser/index.d.ts.map +1 -0
  55. package/lib/browser/index.js +21 -0
  56. package/lib/browser/index.js.map +1 -0
  57. package/lib/browser/layout/index.d.ts +2 -0
  58. package/lib/browser/layout/index.d.ts.map +1 -0
  59. package/lib/browser/layout/index.js +18 -0
  60. package/lib/browser/layout/index.js.map +1 -0
  61. package/lib/browser/layout/layout.d.ts +6 -0
  62. package/lib/browser/layout/layout.d.ts.map +1 -0
  63. package/lib/browser/layout/layout.js +65 -0
  64. package/lib/browser/layout/layout.js.map +1 -0
  65. package/lib/browser/module.d.ts +4 -0
  66. package/lib/browser/module.d.ts.map +1 -0
  67. package/lib/browser/module.js +6 -0
  68. package/lib/browser/module.js.map +1 -0
  69. package/lib/browser/tool/account.d.ts +5 -0
  70. package/lib/browser/tool/account.d.ts.map +1 -0
  71. package/lib/browser/tool/account.js +66 -0
  72. package/lib/browser/tool/account.js.map +1 -0
  73. package/lib/browser/tool/app-set.d.ts +5 -0
  74. package/lib/browser/tool/app-set.d.ts.map +1 -0
  75. package/lib/browser/tool/app-set.js +55 -0
  76. package/lib/browser/tool/app-set.js.map +1 -0
  77. package/lib/browser/tool/index.d.ts +5 -0
  78. package/lib/browser/tool/index.d.ts.map +1 -0
  79. package/lib/browser/tool/index.js +21 -0
  80. package/lib/browser/tool/index.js.map +1 -0
  81. package/lib/browser/tool/logo.d.ts +5 -0
  82. package/lib/browser/tool/logo.d.ts.map +1 -0
  83. package/lib/browser/tool/logo.js +38 -0
  84. package/lib/browser/tool/logo.js.map +1 -0
  85. package/lib/browser/tool/settings.d.ts +5 -0
  86. package/lib/browser/tool/settings.d.ts.map +1 -0
  87. package/lib/browser/tool/settings.js +66 -0
  88. package/lib/browser/tool/settings.js.map +1 -0
  89. package/lib/common/index.d.ts +2 -0
  90. package/lib/common/index.d.ts.map +1 -0
  91. package/lib/common/index.js +18 -0
  92. package/lib/common/index.js.map +1 -0
  93. package/lib/common/shell-protocol.d.ts +19 -0
  94. package/lib/common/shell-protocol.d.ts.map +1 -0
  95. package/lib/common/shell-protocol.js +5 -0
  96. package/lib/common/shell-protocol.js.map +1 -0
  97. package/lib/node/index.d.ts +1 -0
  98. package/lib/node/index.d.ts.map +1 -0
  99. package/lib/node/index.js +1 -0
  100. package/lib/node/index.js.map +1 -0
  101. package/lib/node/module.d.ts +3 -0
  102. package/lib/node/module.d.ts.map +1 -0
  103. package/lib/node/module.js +5 -0
  104. package/lib/node/module.js.map +1 -0
  105. package/lib/package.spec.d.ts +1 -0
  106. package/lib/package.spec.d.ts.map +1 -0
  107. package/lib/package.spec.js +4 -0
  108. package/lib/package.spec.js.map +1 -0
  109. package/package.json +50 -0
  110. package/src/browser/annotation/index.ts +2 -0
  111. package/src/browser/annotation/left-area.ts +9 -0
  112. package/src/browser/annotation/top-area.ts +9 -0
  113. package/src/browser/apps/app-service.ts +40 -0
  114. package/src/browser/apps/apps.tsx +67 -0
  115. package/src/browser/apps/index.ts +2 -0
  116. package/src/browser/area/area-protocol.ts +18 -0
  117. package/src/browser/area/index.ts +3 -0
  118. package/src/browser/area/left/index.ts +1 -0
  119. package/src/browser/area/left/left.tsx +26 -0
  120. package/src/browser/area/top/index.ts +1 -0
  121. package/src/browser/area/top/top.tsx +24 -0
  122. package/src/browser/index.ts +4 -0
  123. package/src/browser/layout/index.ts +1 -0
  124. package/src/browser/layout/layout.tsx +63 -0
  125. package/src/browser/module.ts +5 -0
  126. package/src/browser/tool/account.tsx +61 -0
  127. package/src/browser/tool/app-set.tsx +47 -0
  128. package/src/browser/tool/index.ts +4 -0
  129. package/src/browser/tool/logo.tsx +14 -0
  130. package/src/browser/tool/settings.tsx +56 -0
  131. package/src/common/index.ts +1 -0
  132. package/src/common/shell-protocol.ts +21 -0
  133. package/src/node/index.ts +0 -0
  134. package/src/node/module.ts +4 -0
  135. package/src/package.spec.ts +4 -0
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./layout"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/layout/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export declare function TopLeftLayout({ children }: React.PropsWithChildren<any>): JSX.Element;
3
+ export declare function MultiTopLayout({ children }: React.PropsWithChildren<any>): JSX.Element;
4
+ export default class {
5
+ }
6
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/browser/layout/layout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiC/B,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,eAavE;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,eAUxE;AAGD,MAAM,CAAC,OAAO;CAAS"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.MultiTopLayout = exports.TopLeftLayout = void 0;
10
+ const react_1 = require("@celljs/react");
11
+ const React = require("react");
12
+ const area_1 = require("../area");
13
+ const styled_components_1 = require("styled-components");
14
+ const grommet_1 = require("grommet");
15
+ const StyledWraper = styled_components_1.default.div `
16
+ left: 0;
17
+ position: absolute;
18
+ right: 0;
19
+ top: 0;
20
+ bottom: 0;
21
+ overflow: hidden;
22
+ z-index: 2;
23
+ `;
24
+ const StyledSidebar = styled_components_1.default.div `
25
+ left: 0;
26
+ position: absolute;
27
+ top: 76px;
28
+ bottom: 0;
29
+ z-index: 1;
30
+ `;
31
+ const StyledMain = styled_components_1.default.div `
32
+ left: 250px;
33
+ position: absolute;
34
+ right: 0;
35
+ top: 70px;
36
+ bottom: 0;
37
+ overflow: auto;
38
+ z-index: 0;
39
+ `;
40
+ function TopLeftLayout({ children }) {
41
+ return (React.createElement(StyledWraper, null,
42
+ React.createElement(react_1.Slot, { area: area_1.AreaType.TopArea }),
43
+ React.createElement(StyledSidebar, null,
44
+ React.createElement(react_1.Slot, { area: area_1.AreaType.LeftArea })),
45
+ React.createElement(StyledMain, null,
46
+ children,
47
+ React.createElement(react_1.Slot, { area: area_1.AreaType.BottomArea }))));
48
+ }
49
+ exports.TopLeftLayout = TopLeftLayout;
50
+ function MultiTopLayout({ children }) {
51
+ return (React.createElement(grommet_1.Box, null,
52
+ React.createElement(react_1.Slot, { area: area_1.AreaType.TopArea }),
53
+ React.createElement(react_1.Slot, { area: area_1.AreaType.SecondaryTopArea }),
54
+ React.createElement(react_1.Slot, { area: area_1.AreaType.TertiaryTopArea }),
55
+ children,
56
+ React.createElement(react_1.Slot, { area: area_1.AreaType.BottomArea })));
57
+ }
58
+ exports.MultiTopLayout = MultiTopLayout;
59
+ let default_1 = class {
60
+ };
61
+ default_1 = __decorate([
62
+ (0, react_1.DefaultLayout)(TopLeftLayout)
63
+ ], default_1);
64
+ exports.default = default_1;
65
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/browser/layout/layout.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,yCAAoD;AACpD,+BAA+B;AAC/B,kCAAmC;AACnC,yDAAuC;AACvC,qCAA8B;AAE9B,MAAM,YAAY,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;;CAQ9B,CAAC;AAEF,MAAM,aAAa,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;CAM/B,CAAC;AAEF,MAAM,UAAU,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;;CAQ5B,CAAC;AAEF,SAAgB,aAAa,CAAC,EAAE,QAAQ,EAAgC;IACpE,OAAO,CACH,oBAAC,YAAY;QACT,oBAAC,YAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,OAAO,GAAG;QAC/B,oBAAC,aAAa;YACV,oBAAC,YAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,QAAQ,GAAG,CACpB;QAChB,oBAAC,UAAU;YACN,QAAQ;YACT,oBAAC,YAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,UAAU,GAAG,CACzB,CACJ,CAChB,CAAC;AACN,CAAC;AAbD,sCAaC;AAED,SAAgB,cAAc,CAAC,EAAE,QAAQ,EAAgC;IACrE,OAAO,CACH,oBAAC,aAAG;QACA,oBAAC,YAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,OAAO,GAAG;QAC/B,oBAAC,YAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,gBAAgB,GAAG;QACxC,oBAAC,YAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,eAAe,GAAG;QACtC,QAAQ;QACT,oBAAC,YAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,UAAU,GAAG,CAClC,CACP,CAAC;AACN,CAAC;AAVD,wCAUC;AAGc,gBAAA;CAAQ,CAAA;AAAR;IADd,IAAA,qBAAa,EAAC,aAAa,CAAC;aACN"}
@@ -0,0 +1,4 @@
1
+ import './index';
2
+ declare const _default: import("inversify/lib/interfaces/interfaces").interfaces.ContainerModule;
3
+ export default _default;
4
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/browser/module.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,CAAC;;AAGjB,wBAA0B"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("./index");
4
+ const core_1 = require("@celljs/core");
5
+ exports.default = (0, core_1.autoBind)();
6
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/browser/module.ts"],"names":[],"mappings":";;AACA,mBAAiB;AACjB,uCAAwC;AAExC,kBAAe,IAAA,eAAQ,GAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { AvatarProps } from 'grommet';
2
+ export declare function Account(props: AvatarProps): JSX.Element;
3
+ export default class {
4
+ }
5
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/browser/tool/account.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,WAAW,EAAa,MAAM,SAAS,CAAC;AAkBzD,wBAAgB,OAAO,CAAC,KAAK,EAAE,WAAW,eAsCzC;AAGD,MAAM,CAAC,OAAO;CAAS"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __rest = (this && this.__rest) || function (s, e) {
9
+ var t = {};
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
11
+ t[p] = s[p];
12
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
13
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
14
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
15
+ t[p[i]] = s[p[i]];
16
+ }
17
+ return t;
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.Account = void 0;
21
+ const React = require("react");
22
+ const grommet_1 = require("grommet");
23
+ const core_1 = require("@celljs/core");
24
+ const widget_1 = require("@celljs/widget");
25
+ const area_1 = require("../area");
26
+ const styled_components_1 = require("styled-components");
27
+ const react_1 = require("@celljs/react");
28
+ const browser_1 = require("@celljs/security/lib/browser");
29
+ const grommet_2 = require("@celljs/grommet");
30
+ const StyledAccount = styled_components_1.default.div `
31
+ width: 200px;
32
+ max-height: 450px;
33
+ padding-top: 12px;
34
+ overflow: auto;
35
+ right: 0;
36
+ `;
37
+ function Account(props) {
38
+ // eslint-disable-next-line no-null/no-null
39
+ const targetRef = React.useRef(null);
40
+ const loginUserManager = core_1.ContainerUtil.get(browser_1.UserManager);
41
+ const [show, setShow] = React.useState(false);
42
+ const [user, setUser] = React.useState(loginUserManager.userInfoSubject.value);
43
+ React.useEffect(() => {
44
+ const subscription = loginUserManager.userInfoSubject.subscribe(u => setUser(u));
45
+ return () => subscription.unsubscribe();
46
+ }, []);
47
+ const _a = core_1.ConfigUtil.get('cell.shell.account'), { icon, login } = _a, rest = __rest(_a, ["icon", "login"]);
48
+ props = Object.assign(Object.assign({}, rest), props);
49
+ if (!user) {
50
+ const { label } = login, loginRest = __rest(login, ["label"]);
51
+ return (React.createElement(grommet_2.NavItem, Object.assign({ label: label, size: "medium" }, loginRest)));
52
+ }
53
+ return (React.createElement(grommet_1.Box, { ref: targetRef },
54
+ React.createElement(grommet_1.Avatar, Object.assign({ hoverIndicator: true, title: user.nickname, style: { margin: '12px' }, size: 'small', onClick: () => setShow(true) }, props, { src: user.avatar || props.src }), React.createElement(grommet_2.Icon, { icon: user.avatar || icon })),
55
+ targetRef.current && show && (React.createElement(grommet_1.Drop, { target: targetRef.current, style: { margin: '20px 0' }, elevation: "large", align: { top: 'bottom', right: 'right' }, onEsc: () => setShow(false), onClickOutside: () => setShow(false) },
56
+ React.createElement(StyledAccount, null,
57
+ React.createElement(react_1.Slot, { area: area_1.AreaType.AccountArea }))))));
58
+ }
59
+ exports.Account = Account;
60
+ let default_1 = class {
61
+ };
62
+ default_1 = __decorate([
63
+ (0, widget_1.Widget)({ area: area_1.AreaType.TopRightArea, component: Account, priority: 100 })
64
+ ], default_1);
65
+ exports.default = default_1;
66
+ //# sourceMappingURL=account.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/browser/tool/account.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,qCAAyD;AACzD,uCAAyD;AACzD,2CAAwC;AACxC,kCAAmC;AACnC,yDAAuC;AACvC,yCAAqC;AACrC,0DAA2D;AAE3D,6CAAgD;AAEhD,MAAM,aAAa,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;CAM/B,CAAC;AAEF,SAAgB,OAAO,CAAC,KAAkB;IACtC,2CAA2C;IAC3C,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,gBAAgB,GAAG,oBAAa,CAAC,GAAG,CAAc,qBAAW,CAAC,CAAC;IACrE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAmB,gBAAgB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IACjG,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QACjF,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;IAC5C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,KAA2B,iBAAU,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAA/D,EAAE,IAAI,EAAE,KAAK,OAAkD,EAA7C,IAAI,cAAtB,iBAAwB,CAAuC,CAAC;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AAAR;IADd,IAAA,eAAM,EAAC,EAAE,IAAI,EAAE,eAAQ,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;aACpD"}
@@ -0,0 +1,5 @@
1
+ import { ButtonProps } from 'grommet';
2
+ export declare function AppSet(props: ButtonProps): JSX.Element;
3
+ export default class {
4
+ }
5
+ //# sourceMappingURL=app-set.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-set.d.ts","sourceRoot":"","sources":["../../../src/browser/tool/app-set.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,WAAW,EAAQ,MAAM,SAAS,CAAC;AAiBpD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,eAyBxC;AAGD,MAAM,CAAC,OAAO;CAAS"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __rest = (this && this.__rest) || function (s, e) {
9
+ var t = {};
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
11
+ t[p] = s[p];
12
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
13
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
14
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
15
+ t[p[i]] = s[p[i]];
16
+ }
17
+ return t;
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.AppSet = void 0;
21
+ const React = require("react");
22
+ const grommet_1 = require("grommet");
23
+ const core_1 = require("@celljs/core");
24
+ const grommet_2 = require("@celljs/grommet");
25
+ const widget_1 = require("@celljs/widget");
26
+ const area_1 = require("../area");
27
+ const apps_1 = require("../apps");
28
+ const styled_components_1 = require("styled-components");
29
+ const { Fragment } = React;
30
+ const StyledAppSet = styled_components_1.default.div `
31
+ width: 320px;
32
+ max-height: 450px;
33
+ padding-top: 12px;
34
+ overflow: auto;
35
+ `;
36
+ function AppSet(props) {
37
+ // eslint-disable-next-line no-null/no-null
38
+ const targetRef = React.useRef(null);
39
+ const [show, setShow] = React.useState(false);
40
+ const _a = core_1.ConfigUtil.get('cell.shell.appSet'), { icon } = _a, rest = __rest(_a, ["icon"]);
41
+ props = Object.assign(Object.assign({}, rest), props);
42
+ return (React.createElement(Fragment, null,
43
+ React.createElement(grommet_1.Button, Object.assign({ ref: targetRef, hoverIndicator: true, onClick: () => setShow(true) }, props, { icon: React.createElement(grommet_2.Icon, { icon: icon }) })),
44
+ targetRef.current && show && (React.createElement(grommet_1.Drop, { target: targetRef.current, style: { marginTop: '20px' }, elevation: "large", align: { top: 'bottom', right: 'right' }, onEsc: () => setShow(false), onClickOutside: () => setShow(false) },
45
+ React.createElement(StyledAppSet, null,
46
+ React.createElement(apps_1.Apps, { size: "small" }))))));
47
+ }
48
+ exports.AppSet = AppSet;
49
+ let default_1 = class {
50
+ };
51
+ default_1 = __decorate([
52
+ (0, widget_1.Widget)({ area: area_1.AreaType.TopRightArea, component: AppSet, priority: 200 })
53
+ ], default_1);
54
+ exports.default = default_1;
55
+ //# sourceMappingURL=app-set.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-set.js","sourceRoot":"","sources":["../../../src/browser/tool/app-set.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,qCAAoD;AACpD,uCAA0C;AAC1C,6CAAuC;AACvC,2CAAwC;AACxC,kCAAmC;AACnC,kCAA+B;AA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,wBAyBC;AAGc,gBAAA;CAAQ,CAAA;AAAR;IADd,IAAA,eAAM,EAAC,EAAE,IAAI,EAAE,eAAQ,CAAC,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;aACnD"}
@@ -0,0 +1,5 @@
1
+ export * from './logo';
2
+ export * from './settings';
3
+ export * from './app-set';
4
+ export * from './account';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/tool/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./logo"), exports);
18
+ __exportStar(require("./settings"), exports);
19
+ __exportStar(require("./app-set"), exports);
20
+ __exportStar(require("./account"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/tool/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B"}
@@ -0,0 +1,5 @@
1
+ import { NavItemProps } from '@celljs/grommet';
2
+ export declare function Logo(props: NavItemProps): JSX.Element;
3
+ export default class {
4
+ }
5
+ //# sourceMappingURL=logo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../../src/browser/tool/logo.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAiB,MAAM,iBAAiB,CAAC;AAE9D,wBAAgB,IAAI,CAAC,KAAK,EAAE,YAAY,eAIvC;AAGD,MAAM,CAAC,OAAO;CAAS"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __rest = (this && this.__rest) || function (s, e) {
9
+ var t = {};
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
11
+ t[p] = s[p];
12
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
13
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
14
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
15
+ t[p[i]] = s[p[i]];
16
+ }
17
+ return t;
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.Logo = void 0;
21
+ const React = require("react");
22
+ const core_1 = require("@celljs/core");
23
+ const widget_1 = require("@celljs/widget");
24
+ const area_1 = require("../area");
25
+ const grommet_1 = require("@celljs/grommet");
26
+ function Logo(props) {
27
+ const _a = core_1.ConfigUtil.get('cell.shell.logo'), { label, icon } = _a, rest = __rest(_a, ["label", "icon"]);
28
+ props = Object.assign(Object.assign({}, rest), props);
29
+ return (React.createElement(grommet_1.NavItem, Object.assign({ size: "medium", gap: "xsmall", label: label, icon: React.createElement(grommet_1.Icon, { icon: icon }), hoverIndicator: false, activatable: false }, props)));
30
+ }
31
+ exports.Logo = Logo;
32
+ let default_1 = class {
33
+ };
34
+ default_1 = __decorate([
35
+ (0, widget_1.Widget)({ area: area_1.AreaType.TopLeftArea, component: Logo, priority: 1000 })
36
+ ], default_1);
37
+ exports.default = default_1;
38
+ //# sourceMappingURL=logo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo.js","sourceRoot":"","sources":["../../../src/browser/tool/logo.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,uCAA0C;AAC1C,2CAAwC;AACxC,kCAAmC;AACnC,6CAA8D;AAE9D,SAAgB,IAAI,CAAC,KAAmB;IACpC,MAAM,KAA2B,iBAAU,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAA5D,EAAE,KAAK,EAAE,IAAI,OAA+C,EAA1C,IAAI,cAAtB,iBAAwB,CAAoC,CAAC;IACnE,KAAK,mCAAQ,IAAI,GAAK,KAAK,CAAE,CAAC;IAC9B,OAAO,CAAC,oBAAC,iBAAO,kBAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAC,QAAQ,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAC,cAAI,IAAC,IAAI,EAAE,IAAI,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,IAAM,KAAK,EAAG,CAAC,CAAC;AAClJ,CAAC;AAJD,oBAIC;AAGc,gBAAA;CAAQ,CAAA;AAAR;IADd,IAAA,eAAM,EAAC,EAAE,IAAI,EAAE,eAAQ,CAAC,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aACjD"}
@@ -0,0 +1,5 @@
1
+ import { ButtonProps } from 'grommet';
2
+ export declare function Settings(props: ButtonProps): JSX.Element;
3
+ export default class {
4
+ }
5
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/browser/tool/settings.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,WAAW,EAAwB,MAAM,SAAS,CAAC;AAkBpE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW,eA+B1C;AAKD,MAAM,CAAC,OAAO;CAAS"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __rest = (this && this.__rest) || function (s, e) {
9
+ var t = {};
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
11
+ t[p] = s[p];
12
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
13
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
14
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
15
+ t[p[i]] = s[p[i]];
16
+ }
17
+ return t;
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.Settings = void 0;
21
+ const React = require("react");
22
+ const grommet_1 = require("grommet");
23
+ const core_1 = require("@celljs/core");
24
+ const grommet_2 = require("@celljs/grommet");
25
+ const widget_1 = require("@celljs/widget");
26
+ const area_1 = require("../area");
27
+ const styled_components_1 = require("styled-components");
28
+ const react_1 = require("@celljs/react");
29
+ const { Fragment } = React;
30
+ const StyledSettings = styled_components_1.default.div `
31
+ width: 300px;
32
+ max-height: 450px;
33
+ padding-top: 12px;
34
+ overflow: auto;
35
+ right: 0;
36
+ `;
37
+ // @ts-ignore
38
+ function Settings(props) {
39
+ // eslint-disable-next-line no-null/no-null
40
+ const targetRef = React.useRef(null);
41
+ const [show, setShow] = React.useState(false);
42
+ const _a = core_1.ConfigUtil.get('cell.shell.settings'), { icon } = _a, rest = __rest(_a, ["icon"]);
43
+ props = Object.assign(Object.assign({}, rest), props);
44
+ React.useEffect(() => {
45
+ const themeManager = core_1.ContainerUtil.get(widget_1.ThemeManager);
46
+ const subscription = themeManager.currentSubject.subscribe(t => setShow(false));
47
+ return () => subscription.unsubscribe();
48
+ }, []);
49
+ // @ts-ignore
50
+ return (React.createElement(Fragment, null,
51
+ React.createElement(grommet_1.Button, Object.assign({ ref: targetRef, hoverIndicator: true, onClick: () => setShow(true) }, props, { icon: React.createElement(grommet_2.Icon, { icon: icon }) })),
52
+ targetRef.current && show && (React.createElement(grommet_1.Drop, { target: targetRef.current, style: { marginTop: '20px' }, elevation: "large", align: { top: 'bottom', right: 'right' }, onEsc: () => setShow(false), onClickOutside: () => setShow(false) },
53
+ React.createElement(StyledSettings, null,
54
+ React.createElement(grommet_1.Box, null,
55
+ React.createElement(react_1.Slot, { area: area_1.AreaType.SettingsArea })))))));
56
+ }
57
+ exports.Settings = Settings;
58
+ let default_1 = class {
59
+ };
60
+ default_1 = __decorate([
61
+ (0, widget_1.Widget)({ area: area_1.AreaType.SettingsArea, component: grommet_2.LocaleMenu, priority: 200 }),
62
+ (0, widget_1.Widget)({ area: area_1.AreaType.SettingsArea, component: grommet_2.ThemeBox, priority: 300 }),
63
+ (0, widget_1.Widget)({ area: area_1.AreaType.TopRightArea, component: Settings, priority: 300 })
64
+ ], default_1);
65
+ exports.default = default_1;
66
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/browser/tool/settings.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,qCAAoE;AACpE,uCAAyD;AACzD,6CAA6D;AAC7D,2CAAsD;AACtD,kCAAmC;AACnC,yDAAuC;AACvC,yCAAqC;AAErC,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AAE3B,MAAM,cAAc,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;CAMhC,CAAC;AACF,aAAa;AACb,SAAgB,QAAQ,CAAC,KAAkB;IACvC,2CAA2C;IAC3C,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,KAAoB,iBAAU,CAAC,GAAG,CAAM,qBAAqB,CAAC,EAA9D,EAAE,IAAI,OAAwD,EAAnD,IAAI,cAAf,QAAiB,CAA6C,CAAC;IACrE,KAAK,mCAAQ,IAAI,GAAK,KAAK,CAAE,CAAC;IAC9B,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,MAAM,YAAY,GAAG,oBAAa,CAAC,GAAG,CAA0B,qBAAY,CAAC,CAAC;QAC9E,MAAM,YAAY,GAAG,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAChF,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;IAC5C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,aAAa;IACb,OAAO,CAAC,oBAAC,QAAQ;QACb,oBAAC,gBAAM,kBAAC,GAAG,EAAE,SAAS,EAAE,cAAc,QAAC,OAAO,E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AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./shell-protocol"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1,19 @@
1
+ export declare const AppService: unique symbol;
2
+ export interface AppInfo {
3
+ id: string;
4
+ name: string;
5
+ icon: string;
6
+ categoryId: string;
7
+ priority: number;
8
+ url: string;
9
+ }
10
+ export interface Category {
11
+ id: string;
12
+ name: string;
13
+ priority: number;
14
+ apps: AppInfo[];
15
+ }
16
+ export interface AppService {
17
+ load(): Promise<Category[]>;
18
+ }
19
+ //# sourceMappingURL=shell-protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-protocol.d.ts","sourceRoot":"","sources":["../../src/common/shell-protocol.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,eAAuB,CAAC;AAE/C,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACvB,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;CAC/B"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppService = void 0;
4
+ exports.AppService = Symbol('AppService');
5
+ //# sourceMappingURL=shell-protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-protocol.js","sourceRoot":"","sources":["../../src/common/shell-protocol.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("inversify/lib/interfaces/interfaces").interfaces.ContainerModule;
2
+ export default _default;
3
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/node/module.ts"],"names":[],"mappings":";AAGA,wBAA0B"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@celljs/core");
4
+ exports.default = (0, core_1.autoBind)();
5
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/node/module.ts"],"names":[],"mappings":";;AACA,uCAAwC;AAExC,kBAAe,IAAA,eAAQ,GAAE,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=package.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ describe('shell package', () => {
2
+ it('support code coverage statistics', () => { });
3
+ });
4
+ //# sourceMappingURL=package.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"AAAA,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAE3B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@celljs/shell",
3
+ "version": "3.0.0",
4
+ "description": "",
5
+ "main": "lib/common/index.js",
6
+ "typings": "lib/common/index.d.ts",
7
+ "dependencies": {
8
+ "@celljs/core": "3.0.0",
9
+ "@celljs/grommet": "3.0.0",
10
+ "@celljs/react": "3.0.0",
11
+ "@celljs/security": "3.0.0",
12
+ "@celljs/widget": "3.0.0",
13
+ "grommet": "^2.25.1",
14
+ "react": "^18.2.0",
15
+ "react-intl": "^6.0.5",
16
+ "styled-components": "^5.3.5"
17
+ },
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
21
+ "keywords": [
22
+ "cell-component"
23
+ ],
24
+ "license": "MIT",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/cellbang/cellbang.git"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/cellbang/cellbang/issues"
31
+ },
32
+ "homepage": "https://github.com/cellbang/cellbang",
33
+ "files": [
34
+ "lib",
35
+ "src",
36
+ "cell.yml",
37
+ "cell-locale.yml"
38
+ ],
39
+ "scripts": {
40
+ "lint": "cell-component lint",
41
+ "build": "cell-component build",
42
+ "watch": "cell-component watch",
43
+ "clean": "cell-component clean",
44
+ "test": "cell-component test:js"
45
+ },
46
+ "devDependencies": {
47
+ "@celljs/component": "3.0.0"
48
+ },
49
+ "gitHead": "c0ef8d269e33a795406bcbb240cac4b845c6c24c"
50
+ }