@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.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/cell-locale.yml +13 -0
- package/cell.yml +18 -0
- package/lib/browser/annotation/index.d.ts +3 -0
- package/lib/browser/annotation/index.d.ts.map +1 -0
- package/lib/browser/annotation/index.js +19 -0
- package/lib/browser/annotation/index.js.map +1 -0
- package/lib/browser/annotation/left-area.d.ts +2 -0
- package/lib/browser/annotation/left-area.d.ts.map +1 -0
- package/lib/browser/annotation/left-area.js +12 -0
- package/lib/browser/annotation/left-area.js.map +1 -0
- package/lib/browser/annotation/top-area.d.ts +2 -0
- package/lib/browser/annotation/top-area.d.ts.map +1 -0
- package/lib/browser/annotation/top-area.js +12 -0
- package/lib/browser/annotation/top-area.js.map +1 -0
- package/lib/browser/apps/app-service.d.ts +11 -0
- package/lib/browser/apps/app-service.d.ts.map +1 -0
- package/lib/browser/apps/app-service.js +55 -0
- package/lib/browser/apps/app-service.js.map +1 -0
- package/lib/browser/apps/apps.d.ts +13 -0
- package/lib/browser/apps/apps.d.ts.map +1 -0
- package/lib/browser/apps/apps.js +44 -0
- package/lib/browser/apps/apps.js.map +1 -0
- package/lib/browser/apps/index.d.ts +3 -0
- package/lib/browser/apps/index.d.ts.map +1 -0
- package/lib/browser/apps/index.js +19 -0
- package/lib/browser/apps/index.js.map +1 -0
- package/lib/browser/area/area-protocol.d.ts +18 -0
- package/lib/browser/area/area-protocol.d.ts.map +1 -0
- package/lib/browser/area/area-protocol.js +22 -0
- package/lib/browser/area/area-protocol.js.map +1 -0
- package/lib/browser/area/index.d.ts +4 -0
- package/lib/browser/area/index.d.ts.map +1 -0
- package/lib/browser/area/index.js +20 -0
- package/lib/browser/area/index.js.map +1 -0
- package/lib/browser/area/left/index.d.ts +2 -0
- package/lib/browser/area/left/index.d.ts.map +1 -0
- package/lib/browser/area/left/index.js +18 -0
- package/lib/browser/area/left/index.js.map +1 -0
- package/lib/browser/area/left/left.d.ts +5 -0
- package/lib/browser/area/left/left.d.ts.map +1 -0
- package/lib/browser/area/left/left.js +31 -0
- package/lib/browser/area/left/left.js.map +1 -0
- package/lib/browser/area/top/index.d.ts +2 -0
- package/lib/browser/area/top/index.d.ts.map +1 -0
- package/lib/browser/area/top/index.js +18 -0
- package/lib/browser/area/top/index.js.map +1 -0
- package/lib/browser/area/top/top.d.ts +5 -0
- package/lib/browser/area/top/top.d.ts.map +1 -0
- package/lib/browser/area/top/top.js +31 -0
- package/lib/browser/area/top/top.js.map +1 -0
- package/lib/browser/index.d.ts +5 -0
- package/lib/browser/index.d.ts.map +1 -0
- package/lib/browser/index.js +21 -0
- package/lib/browser/index.js.map +1 -0
- package/lib/browser/layout/index.d.ts +2 -0
- package/lib/browser/layout/index.d.ts.map +1 -0
- package/lib/browser/layout/index.js +18 -0
- package/lib/browser/layout/index.js.map +1 -0
- package/lib/browser/layout/layout.d.ts +6 -0
- package/lib/browser/layout/layout.d.ts.map +1 -0
- package/lib/browser/layout/layout.js +65 -0
- package/lib/browser/layout/layout.js.map +1 -0
- package/lib/browser/module.d.ts +4 -0
- package/lib/browser/module.d.ts.map +1 -0
- package/lib/browser/module.js +6 -0
- package/lib/browser/module.js.map +1 -0
- package/lib/browser/tool/account.d.ts +5 -0
- package/lib/browser/tool/account.d.ts.map +1 -0
- package/lib/browser/tool/account.js +66 -0
- package/lib/browser/tool/account.js.map +1 -0
- package/lib/browser/tool/app-set.d.ts +5 -0
- package/lib/browser/tool/app-set.d.ts.map +1 -0
- package/lib/browser/tool/app-set.js +55 -0
- package/lib/browser/tool/app-set.js.map +1 -0
- package/lib/browser/tool/index.d.ts +5 -0
- package/lib/browser/tool/index.d.ts.map +1 -0
- package/lib/browser/tool/index.js +21 -0
- package/lib/browser/tool/index.js.map +1 -0
- package/lib/browser/tool/logo.d.ts +5 -0
- package/lib/browser/tool/logo.d.ts.map +1 -0
- package/lib/browser/tool/logo.js +38 -0
- package/lib/browser/tool/logo.js.map +1 -0
- package/lib/browser/tool/settings.d.ts +5 -0
- package/lib/browser/tool/settings.d.ts.map +1 -0
- package/lib/browser/tool/settings.js +66 -0
- package/lib/browser/tool/settings.js.map +1 -0
- package/lib/common/index.d.ts +2 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +18 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/shell-protocol.d.ts +19 -0
- package/lib/common/shell-protocol.d.ts.map +1 -0
- package/lib/common/shell-protocol.js +5 -0
- package/lib/common/shell-protocol.js.map +1 -0
- package/lib/node/index.d.ts +1 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +1 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/module.d.ts +3 -0
- package/lib/node/module.d.ts.map +1 -0
- package/lib/node/module.js +5 -0
- package/lib/node/module.js.map +1 -0
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.d.ts.map +1 -0
- package/lib/package.spec.js +4 -0
- package/lib/package.spec.js.map +1 -0
- package/package.json +50 -0
- package/src/browser/annotation/index.ts +2 -0
- package/src/browser/annotation/left-area.ts +9 -0
- package/src/browser/annotation/top-area.ts +9 -0
- package/src/browser/apps/app-service.ts +40 -0
- package/src/browser/apps/apps.tsx +67 -0
- package/src/browser/apps/index.ts +2 -0
- package/src/browser/area/area-protocol.ts +18 -0
- package/src/browser/area/index.ts +3 -0
- package/src/browser/area/left/index.ts +1 -0
- package/src/browser/area/left/left.tsx +26 -0
- package/src/browser/area/top/index.ts +1 -0
- package/src/browser/area/top/top.tsx +24 -0
- package/src/browser/index.ts +4 -0
- package/src/browser/layout/index.ts +1 -0
- package/src/browser/layout/layout.tsx +63 -0
- package/src/browser/module.ts +5 -0
- package/src/browser/tool/account.tsx +61 -0
- package/src/browser/tool/app-set.tsx +47 -0
- package/src/browser/tool/index.ts +4 -0
- package/src/browser/tool/logo.tsx +14 -0
- package/src/browser/tool/settings.tsx +56 -0
- package/src/common/index.ts +1 -0
- package/src/common/shell-protocol.ts +21 -0
- package/src/node/index.ts +0 -0
- package/src/node/module.ts +4 -0
- package/src/package.spec.ts +4 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Cellbang
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Cell - Shell Component
|
package/cell-locale.yml
ADDED
package/cell.yml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
mode: locale
|
|
2
|
+
cell:
|
|
3
|
+
shell:
|
|
4
|
+
categories: []
|
|
5
|
+
apps: []
|
|
6
|
+
logo:
|
|
7
|
+
label: cell.shell.logo.label
|
|
8
|
+
icon: Cellbang
|
|
9
|
+
path: /
|
|
10
|
+
account:
|
|
11
|
+
src: //s.gravatar.com/avatar/b7fb138d53ba0f573212ccce38a7c43b?s=80
|
|
12
|
+
login:
|
|
13
|
+
path: ${cell.security.loginPage}
|
|
14
|
+
label: cell.shell.login.label
|
|
15
|
+
appSet:
|
|
16
|
+
icon: Apps
|
|
17
|
+
settings:
|
|
18
|
+
icon: Performance
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/annotation/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./top-area"), exports);
|
|
18
|
+
__exportStar(require("./left-area"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/annotation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"left-area.d.ts","sourceRoot":"","sources":["../../../src/browser/annotation/left-area.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,eACK,GAAG,WAAU,OAAO,cAAmB,GAAG,KAAK,GAIpE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeftArea = void 0;
|
|
4
|
+
const react_1 = require("@celljs/react");
|
|
5
|
+
const area_protocol_1 = require("../area/area-protocol");
|
|
6
|
+
const LeftArea = function (component, rebind = true) {
|
|
7
|
+
return (t) => {
|
|
8
|
+
(0, react_1.ReactComponent)(area_protocol_1.LEFT_AREA, component || t, rebind)(t);
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
exports.LeftArea = LeftArea;
|
|
12
|
+
//# sourceMappingURL=left-area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"left-area.js","sourceRoot":"","sources":["../../../src/browser/annotation/left-area.ts"],"names":[],"mappings":";;;AAAA,yCAA+C;AAC/C,yDAAkD;AAE3C,MAAM,QAAQ,GACjB,UAAU,SAAe,EAAE,SAAkB,IAAI;IAC7C,OAAO,CAAC,CAAM,EAAE,EAAE;QACd,IAAA,sBAAc,EAAC,yBAAS,EAAE,SAAS,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC,CAAC;AACN,CAAC,CAAC;AALO,QAAA,QAAQ,YAKf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"top-area.d.ts","sourceRoot":"","sources":["../../../src/browser/annotation/top-area.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,eACM,GAAG,WAAU,OAAO,cAAmB,GAAG,KAAK,GAIpE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TopArea = void 0;
|
|
4
|
+
const react_1 = require("@celljs/react");
|
|
5
|
+
const area_protocol_1 = require("../area/area-protocol");
|
|
6
|
+
const TopArea = function (component, rebind = true) {
|
|
7
|
+
return (t) => {
|
|
8
|
+
(0, react_1.ReactComponent)(area_protocol_1.TOP_AREA, component || t, rebind)(t);
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
exports.TopArea = TopArea;
|
|
12
|
+
//# sourceMappingURL=top-area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"top-area.js","sourceRoot":"","sources":["../../../src/browser/annotation/top-area.ts"],"names":[],"mappings":";;;AAAA,yCAA+C;AAC/C,yDAAiD;AAE1C,MAAM,OAAO,GAChB,UAAU,SAAe,EAAE,SAAkB,IAAI;IAC7C,OAAO,CAAC,CAAM,EAAE,EAAE;QACd,IAAA,sBAAc,EAAC,wBAAQ,EAAE,SAAS,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACxD,CAAC,CAAC;AACN,CAAC,CAAC;AALO,QAAA,OAAO,WAKd"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AppService, Category, AppInfo } from '../../common';
|
|
2
|
+
export declare class AppServiceImpl implements AppService {
|
|
3
|
+
protected readonly apps: {
|
|
4
|
+
[id: string]: AppInfo;
|
|
5
|
+
};
|
|
6
|
+
protected readonly categories: {
|
|
7
|
+
[id: string]: Category;
|
|
8
|
+
};
|
|
9
|
+
load(): Promise<Category[]>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=app-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-service.d.ts","sourceRoot":"","sources":["../../../src/browser/apps/app-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG7D,qBACa,cAAe,YAAW,UAAU;IAG7C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAGnD,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,CAAC;IAEpD,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;CA2BpC"}
|
|
@@ -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 __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AppServiceImpl = void 0;
|
|
13
|
+
const common_1 = require("../../common");
|
|
14
|
+
const core_1 = require("@celljs/core");
|
|
15
|
+
let AppServiceImpl = class AppServiceImpl {
|
|
16
|
+
async load() {
|
|
17
|
+
const categoryMap = new Map();
|
|
18
|
+
const parsedCategories = Object.keys(this.categories || {}).map(key => {
|
|
19
|
+
const category = Object.assign({}, this.categories[key]);
|
|
20
|
+
category.id = key;
|
|
21
|
+
category.priority = 500;
|
|
22
|
+
category.apps = category.apps || [];
|
|
23
|
+
categoryMap.set(key, category);
|
|
24
|
+
return category;
|
|
25
|
+
});
|
|
26
|
+
const parsedApps = Object.keys(this.apps || {}).map(key => {
|
|
27
|
+
const app = Object.assign({}, this.apps[key]);
|
|
28
|
+
app.id = key;
|
|
29
|
+
app.priority = 500;
|
|
30
|
+
return app;
|
|
31
|
+
});
|
|
32
|
+
const sortedCategories = core_1.Prioritizeable.prioritizeAllSync(parsedCategories).map(c => c.value);
|
|
33
|
+
const sortedApps = core_1.Prioritizeable.prioritizeAllSync(parsedApps).map(c => c.value);
|
|
34
|
+
for (const app of sortedApps) {
|
|
35
|
+
const category = categoryMap.get(app.categoryId);
|
|
36
|
+
if (category) {
|
|
37
|
+
category.apps.push(app);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return sortedCategories;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, core_1.Value)('cell.shell.apps'),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], AppServiceImpl.prototype, "apps", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, core_1.Value)('cell.shell.categories'),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], AppServiceImpl.prototype, "categories", void 0);
|
|
51
|
+
AppServiceImpl = __decorate([
|
|
52
|
+
(0, core_1.Component)(common_1.AppService)
|
|
53
|
+
], AppServiceImpl);
|
|
54
|
+
exports.AppServiceImpl = AppServiceImpl;
|
|
55
|
+
//# sourceMappingURL=app-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-service.js","sourceRoot":"","sources":["../../../src/browser/apps/app-service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA6D;AAC7D,uCAAgE;AAGzD,IAAM,cAAc,GAApB,MAAM,cAAc;IAQvB,KAAK,CAAC,IAAI;QACN,MAAM,WAAW,GAAG,IAAI,GAAG,EAAoB,CAAC;QAChD,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAClE,MAAM,QAAQ,qBAAQ,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAE,CAAC;YAC7C,QAAQ,CAAC,EAAE,GAAG,GAAG,CAAC;YAClB,QAAQ,CAAC,QAAQ,GAAG,GAAG,CAAC;YACxB,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;YAC/B,OAAO,QAAQ,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YACtD,MAAM,GAAG,qBAAQ,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAE,CAAC;YAClC,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC;YACb,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC;YACnB,OAAO,GAAG,CAAC;QACf,CAAC,CAAC,CAAC;QACH,MAAM,gBAAgB,GAAG,qBAAc,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9F,MAAM,UAAU,GAAG,qBAAc,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAClF,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE;YAC1B,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACjD,IAAI,QAAQ,EAAE;gBACV,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aAC3B;SACJ;QACD,OAAO,gBAAgB,CAAC;IAC5B,CAAC;CAEJ,CAAA;AAjCG;IAAC,IAAA,YAAK,EAAC,iBAAiB,CAAC;;4CAC0B;AAEnD;IAAC,IAAA,YAAK,EAAC,uBAAuB,CAAC;;kDAC2B;AANjD,cAAc;IAD1B,IAAA,gBAAS,EAAC,mBAAU,CAAC;GACT,cAAc,CAmC1B;AAnCY,wCAAc"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Category, AppInfo } from '../../common';
|
|
2
|
+
export declare function Apps({ size }: {
|
|
3
|
+
size?: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
|
+
export declare function AppCategory({ category, size }: {
|
|
6
|
+
category: Category;
|
|
7
|
+
size: string;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
export declare function AppItem({ app, size }: {
|
|
10
|
+
app: AppInfo;
|
|
11
|
+
size: string;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
//# sourceMappingURL=apps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../../src/browser/apps/apps.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,QAAQ,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAK7D,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,eAoB/C;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,eAkBnF;AAED,wBAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,eAgBpE"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppItem = exports.AppCategory = exports.Apps = void 0;
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const grommet_1 = require("grommet");
|
|
6
|
+
const core_1 = require("@celljs/core");
|
|
7
|
+
const common_1 = require("../../common");
|
|
8
|
+
const grommet_2 = require("@celljs/grommet");
|
|
9
|
+
const react_intl_1 = require("react-intl");
|
|
10
|
+
const { useState, useEffect, useContext } = React;
|
|
11
|
+
function Apps({ size }) {
|
|
12
|
+
size = size || useContext(grommet_1.ResponsiveContext);
|
|
13
|
+
const [categories, setCategories] = useState([]);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
const loadApps = async () => {
|
|
16
|
+
const appService = core_1.ContainerUtil.get(common_1.AppService);
|
|
17
|
+
const data = await appService.load();
|
|
18
|
+
setCategories(data);
|
|
19
|
+
};
|
|
20
|
+
loadApps();
|
|
21
|
+
}, []);
|
|
22
|
+
return (React.createElement(grommet_1.Box, { direction: "column", pad: "small", gap: "small", alignContent: "start" }, categories.map(c => (React.createElement(AppCategory, { key: c.id, size: size, category: c })))));
|
|
23
|
+
}
|
|
24
|
+
exports.Apps = Apps;
|
|
25
|
+
function AppCategory({ category, size }) {
|
|
26
|
+
const intl = (0, react_intl_1.useIntl)();
|
|
27
|
+
const apps = category.apps || [];
|
|
28
|
+
return (React.createElement(grommet_1.Box, null,
|
|
29
|
+
React.createElement(grommet_1.Text, { weight: "bold", textAlign: size === 'small' ? 'center' : 'start', size: size, margin: { bottom: size } }, intl.formatMessage({ id: category.name })),
|
|
30
|
+
React.createElement(grommet_1.Box, { border: { side: 'top', color: 'light-2' } }),
|
|
31
|
+
React.createElement(grommet_1.Grid, { rows: size === 'small' ? 'xsmall' : 'small', columns: size === 'small' ? 'xsmall' : 'small' }, apps.map(app => (React.createElement(AppItem, { key: app.id, size: size, app: app }))))));
|
|
32
|
+
}
|
|
33
|
+
exports.AppCategory = AppCategory;
|
|
34
|
+
function AppItem({ app, size }) {
|
|
35
|
+
const intl = (0, react_intl_1.useIntl)();
|
|
36
|
+
const onClick = () => {
|
|
37
|
+
window.location.href = app.url;
|
|
38
|
+
};
|
|
39
|
+
return (React.createElement(grommet_1.Box, { justify: "center", align: "center", hoverIndicator: true, onClick: onClick },
|
|
40
|
+
React.createElement(grommet_2.Icon, { icon: app.icon, size: size === 'small' ? 'medium' : 'large' }),
|
|
41
|
+
React.createElement(grommet_1.Text, { size: size, margin: { top: size } }, intl.formatMessage({ id: app.name }))));
|
|
42
|
+
}
|
|
43
|
+
exports.AppItem = AppItem;
|
|
44
|
+
//# sourceMappingURL=apps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../../src/browser/apps/apps.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,qCAA6D;AAC7D,uCAA6C;AAC7C,yCAA6D;AAC7D,6CAAuC;AACvC,2CAAqC;AACrC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;AAElD,SAAgB,IAAI,CAAC,EAAE,IAAI,EAAqB;IAC5C,IAAI,GAAG,IAAI,IAAI,UAAU,CAAC,2BAAiB,CAAC,CAAC;IAC7C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAa,EAAE,CAAC,CAAC;IAC7D,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,QAAQ,GAAG,KAAK,IAAI,EAAE;YACxB,MAAM,UAAU,GAAG,oBAAa,CAAC,GAAG,CAAa,mBAAU,CAAC,CAAC;YAC7D,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,IAAI,EAAE,CAAC;YACrC,aAAa,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC;QACF,QAAQ,EAAE,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH,oBAAC,aAAG,IAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAC,OAAO,EAAC,GAAG,EAAC,OAAO,EAAC,YAAY,EAAC,OAAO,IAE/D,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CACjB,oBAAC,WAAW,IAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAK,EAAE,QAAQ,EAAE,CAAC,GAAgB,CACnE,CAAC,CACA,CACT,CAAC;AACN,CAAC;AApBD,oBAoBC;AAED,SAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAwC;IAChF,MAAM,IAAI,GAAG,IAAA,oBAAO,GAAE,CAAC;IACvB,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IACjC,OAAO,CACH,oBAAC,aAAG;QACA,oBAAC,cAAI,IAAC,MAAM,EAAC,MAAM,EAAC,SAAS,EAAG,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,IAAI,EAAC,CAAC,CAAS;QACjK,oBAAC,aAAG,IAAC,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,GAAQ;QACtD,oBAAC,cAAI,IACD,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAC3C,OAAO,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,IAE7C,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACb,oBAAC,OAAO,IAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,GAAY,CACzD,CAAC,CAEC,CACL,CACT,CAAC;AACN,CAAC;AAlBD,kCAkBC;AAED,SAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAkC;IACjE,MAAM,IAAI,GAAG,IAAA,oBAAO,GAAE,CAAC;IACvB,MAAM,OAAO,GAAG,GAAG,EAAE;QACjB,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC;IACnC,CAAC,CAAC;IACF,OAAO,CACH,oBAAC,aAAG,IACA,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAC,QAAQ,EACd,cAAc,QACd,OAAO,EAAE,OAAO;QAEhB,oBAAC,cAAI,IAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,GAAG;QACpE,oBAAC,cAAI,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAG,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,IAAI,EAAC,CAAC,CAAQ,CACnF,CACT,CAAC;AACN,CAAC;AAhBD,0BAgBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/apps/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./app-service"), exports);
|
|
18
|
+
__exportStar(require("./apps"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/apps/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yCAAuB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const TOP_AREA: unique symbol;
|
|
2
|
+
export declare const LEFT_AREA: unique symbol;
|
|
3
|
+
export declare enum AreaType {
|
|
4
|
+
TopArea = "Top",
|
|
5
|
+
SecondaryTopArea = "SecondaryTop",
|
|
6
|
+
TertiaryTopArea = "TertiaryTop",
|
|
7
|
+
LeftArea = "Left",
|
|
8
|
+
TopLeftArea = "TopLeft",
|
|
9
|
+
TopRightArea = "TopRight",
|
|
10
|
+
LeftHeaderArea = "LeftHeader",
|
|
11
|
+
LeftFooterArea = "LeftFooter",
|
|
12
|
+
LeftBodyArea = "LeftBody",
|
|
13
|
+
NavArea = "Nav",
|
|
14
|
+
SettingsArea = "Settings",
|
|
15
|
+
AccountArea = "Account",
|
|
16
|
+
BottomArea = "Bottom"
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=area-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area-protocol.d.ts","sourceRoot":"","sources":["../../../src/browser/area/area-protocol.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,eAAqB,CAAC;AAC3C,eAAO,MAAM,SAAS,eAAsB,CAAC;AAE7C,oBAAY,QAAQ;IAChB,OAAO,QAAQ;IACf,gBAAgB,iBAAiB;IACjC,eAAe,gBAAgB;IAC/B,QAAQ,SAAS;IACjB,WAAW,YAAY;IACvB,YAAY,aAAa;IACzB,cAAc,eAAe;IAC7B,cAAc,eAAe;IAC7B,YAAY,aAAa;IACzB,OAAO,QAAQ;IACf,YAAY,aAAa;IACzB,WAAW,YAAY;IACvB,UAAU,WAAW;CACxB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AreaType = exports.LEFT_AREA = exports.TOP_AREA = void 0;
|
|
4
|
+
exports.TOP_AREA = Symbol('TOP_AREA');
|
|
5
|
+
exports.LEFT_AREA = Symbol('LEFT_AREA');
|
|
6
|
+
var AreaType;
|
|
7
|
+
(function (AreaType) {
|
|
8
|
+
AreaType["TopArea"] = "Top";
|
|
9
|
+
AreaType["SecondaryTopArea"] = "SecondaryTop";
|
|
10
|
+
AreaType["TertiaryTopArea"] = "TertiaryTop";
|
|
11
|
+
AreaType["LeftArea"] = "Left";
|
|
12
|
+
AreaType["TopLeftArea"] = "TopLeft";
|
|
13
|
+
AreaType["TopRightArea"] = "TopRight";
|
|
14
|
+
AreaType["LeftHeaderArea"] = "LeftHeader";
|
|
15
|
+
AreaType["LeftFooterArea"] = "LeftFooter";
|
|
16
|
+
AreaType["LeftBodyArea"] = "LeftBody";
|
|
17
|
+
AreaType["NavArea"] = "Nav";
|
|
18
|
+
AreaType["SettingsArea"] = "Settings";
|
|
19
|
+
AreaType["AccountArea"] = "Account";
|
|
20
|
+
AreaType["BottomArea"] = "Bottom";
|
|
21
|
+
})(AreaType = exports.AreaType || (exports.AreaType = {}));
|
|
22
|
+
//# sourceMappingURL=area-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area-protocol.js","sourceRoot":"","sources":["../../../src/browser/area/area-protocol.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAC9B,QAAA,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAE7C,IAAY,QAcX;AAdD,WAAY,QAAQ;IAChB,2BAAe,CAAA;IACf,6CAAiC,CAAA;IACjC,2CAA+B,CAAA;IAC/B,6BAAiB,CAAA;IACjB,mCAAuB,CAAA;IACvB,qCAAyB,CAAA;IACzB,yCAA6B,CAAA;IAC7B,yCAA6B,CAAA;IAC7B,qCAAyB,CAAA;IACzB,2BAAe,CAAA;IACf,qCAAyB,CAAA;IACzB,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;AACzB,CAAC,EAdW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAcnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/area/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./top"), exports);
|
|
18
|
+
__exportStar(require("./left"), exports);
|
|
19
|
+
__exportStar(require("./area-protocol"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/area/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,yCAAuB;AACvB,kDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/browser/area/left/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,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("./left"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/browser/area/left/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"left.d.ts","sourceRoot":"","sources":["../../../../src/browser/area/left/left.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMjD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,eAevC;AAGD,MAAM,CAAC,OAAO;CAAS"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.LeftArea = void 0;
|
|
10
|
+
const React = require("react");
|
|
11
|
+
const grommet_1 = require("grommet");
|
|
12
|
+
const core_1 = require("@celljs/core");
|
|
13
|
+
const area_protocol_1 = require("../area-protocol");
|
|
14
|
+
const react_1 = require("@celljs/react");
|
|
15
|
+
const widget_1 = require("@celljs/widget");
|
|
16
|
+
function LeftArea(props) {
|
|
17
|
+
props = Object.assign(Object.assign({}, (core_1.ConfigUtil.get('cell.shell.leftArea') || {})), props);
|
|
18
|
+
return (React.createElement(grommet_1.Sidebar, Object.assign({ animation: "fadeIn", pad: "medium", background: "white", width: "250px", footer: React.createElement(react_1.Slot, { area: area_protocol_1.AreaType.LeftFooterArea }) }, props),
|
|
19
|
+
React.createElement(react_1.Slot, { area: area_protocol_1.AreaType.LeftHeaderArea }),
|
|
20
|
+
React.createElement(grommet_1.Nav, { gap: "none" },
|
|
21
|
+
React.createElement(react_1.Slot, { area: area_protocol_1.AreaType.NavArea }),
|
|
22
|
+
React.createElement(react_1.Slot, { area: area_protocol_1.AreaType.LeftBodyArea }))));
|
|
23
|
+
}
|
|
24
|
+
exports.LeftArea = LeftArea;
|
|
25
|
+
let default_1 = class {
|
|
26
|
+
};
|
|
27
|
+
default_1 = __decorate([
|
|
28
|
+
(0, widget_1.Widget)({ area: area_protocol_1.AreaType.LeftArea, component: LeftArea })
|
|
29
|
+
], default_1);
|
|
30
|
+
exports.default = default_1;
|
|
31
|
+
//# sourceMappingURL=left.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"left.js","sourceRoot":"","sources":["../../../../src/browser/area/left/left.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,+BAA+B;AAC/B,qCAAiD;AACjD,uCAA0C;AAC1C,oDAA4C;AAC5C,yCAAqC;AACrC,2CAAwC;AAExC,SAAgB,QAAQ,CAAC,KAAe;IACpC,KAAK,mCAAQ,CAAC,iBAAU,CAAC,GAAG,CAAC,qBAAqB,CAAC,IAAI,EAAE,CAAC,GAAK,KAAK,CAAE,CAAC;IAEvE,OAAO,CACH,oBAAC,iBAAO,kBAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAC,QAAQ,EAAC,UAAU,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EACrE,MAAM,EAAE,oBAAC,YAAI,IAAC,IAAI,EAAE,wBAAQ,CAAC,cAAc,GAAI,IAC3C,KAAK;QAET,oBAAC,YAAI,IAAC,IAAI,EAAE,wBAAQ,CAAC,cAAc,GAAI;QACvC,oBAAC,aAAG,IAAC,GAAG,EAAC,MAAM;YACX,oBAAC,YAAI,IAAC,IAAI,EAAE,wBAAQ,CAAC,OAAO,GAAI;YAChC,oBAAC,YAAI,IAAC,IAAI,EAAE,wBAAQ,CAAC,YAAY,GAAI,CACnC,CACA,CACb,CAAC;AACN,CAAC;AAfD,4BAeC;AAGc,gBAAA;CAAQ,CAAA;AAAR;IADd,IAAA,eAAM,EAAC,EAAE,IAAI,EAAE,wBAAQ,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;aAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/browser/area/top/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,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("./top"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/browser/area/top/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"top.d.ts","sourceRoot":"","sources":["../../../../src/browser/area/top/top.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,QAAQ,EAAE,MAAM,SAAS,CAAC;AAM7C,wBAAgB,OAAO,CAAC,KAAK,EAAE,QAAQ,eAatC;AAGD,MAAM,CAAC,OAAO;CAAS"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.TopArea = void 0;
|
|
10
|
+
const React = require("react");
|
|
11
|
+
const grommet_1 = require("grommet");
|
|
12
|
+
const core_1 = require("@celljs/core");
|
|
13
|
+
const area_protocol_1 = require("../area-protocol");
|
|
14
|
+
const react_1 = require("@celljs/react");
|
|
15
|
+
const widget_1 = require("@celljs/widget");
|
|
16
|
+
function TopArea(props) {
|
|
17
|
+
props = Object.assign(Object.assign({}, core_1.ConfigUtil.get('cell.shell.topArea')), props);
|
|
18
|
+
return (React.createElement(grommet_1.Nav, Object.assign({ direction: "row", pad: { vertical: 'small', horizontal: 'medium' }, elevation: "xsmall", justify: "between" }, props),
|
|
19
|
+
React.createElement(grommet_1.Box, { direction: "row", gap: "small" },
|
|
20
|
+
React.createElement(react_1.Slot, { area: area_protocol_1.AreaType.TopLeftArea })),
|
|
21
|
+
React.createElement(grommet_1.Box, { direction: "row", gap: "small" },
|
|
22
|
+
React.createElement(react_1.Slot, { area: area_protocol_1.AreaType.TopRightArea }))));
|
|
23
|
+
}
|
|
24
|
+
exports.TopArea = TopArea;
|
|
25
|
+
let default_1 = class {
|
|
26
|
+
};
|
|
27
|
+
default_1 = __decorate([
|
|
28
|
+
(0, widget_1.Widget)({ area: area_protocol_1.AreaType.TopArea, component: TopArea })
|
|
29
|
+
], default_1);
|
|
30
|
+
exports.default = default_1;
|
|
31
|
+
//# sourceMappingURL=top.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"top.js","sourceRoot":"","sources":["../../../../src/browser/area/top/top.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,+BAA+B;AAC/B,qCAA6C;AAC7C,uCAA0C;AAC1C,oDAA4C;AAC5C,yCAAqC;AACrC,2CAAwC;AAExC,SAAgB,OAAO,CAAC,KAAe;IACnC,KAAK,mCAAQ,iBAAU,CAAC,GAAG,CAAC,oBAAoB,CAAC,GAAK,KAAK,CAAE,CAAC;IAE9D,OAAO,CACH,oBAAC,aAAG,kBAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,IAAK,KAAK;QACjH,oBAAC,aAAG,IAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAC,OAAO;YAC5B,oBAAC,YAAI,IAAC,IAAI,EAAE,wBAAQ,CAAC,WAAW,GAAI,CAClC;QACN,oBAAC,aAAG,IAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAC,OAAO;YAC5B,oBAAC,YAAI,IAAC,IAAI,EAAE,wBAAQ,CAAC,YAAY,GAAI,CACnC,CACJ,CACT,CAAC;AACN,CAAC;AAbD,0BAaC;AAGc,gBAAA;CAAQ,CAAA;AAAR;IADd,IAAA,eAAM,EAAC,EAAE,IAAI,EAAE,wBAAQ,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;aAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,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("./apps"), exports);
|
|
18
|
+
__exportStar(require("./area"), exports);
|
|
19
|
+
__exportStar(require("./tool"), exports);
|
|
20
|
+
__exportStar(require("./layout"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|