@voplus/morpho-workspace 1.0.0-dev56 → 1.0.0-dev58

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.
@@ -0,0 +1,6 @@
1
+ import { AppContext } from "@voplus/morpho-data";
2
+ declare const Modules: {
3
+ /** Register necessary module resources. */
4
+ register: (context: AppContext) => void;
5
+ };
6
+ export default Modules;
package/es/Modules.js ADDED
@@ -0,0 +1,22 @@
1
+ import Routes from "./routes";
2
+ import { MeetingTypeMeta } from "./data/meeting/metas";
3
+ import { BoardTypeMeta } from "./data/board/metas";
4
+ import { TaskTypeMeta } from "./data/task/metas";
5
+ import { DocumentMetaStore } from "@voplus/morpho-document/es/data/DocumentMetaStore";
6
+ const Modules = {
7
+ /** Register necessary module resources. */
8
+ register: (context) => {
9
+ if (!context.getStore(DocumentMetaStore.StoreName)) {
10
+ context.addStore(new DocumentMetaStore());
11
+ }
12
+ // register file type metas.
13
+ let store = context.getStore(DocumentMetaStore.StoreName);
14
+ store.addMeta(new MeetingTypeMeta());
15
+ store.addMeta(new BoardTypeMeta());
16
+ store.addMeta(new TaskTypeMeta());
17
+ // register routes.
18
+ Routes.addRoutes();
19
+ }
20
+ };
21
+ export default Modules;
22
+ //# sourceMappingURL=Modules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modules.js","sourceRoot":"","sources":["../src/Modules.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AAEtF,MAAM,OAAO,GAAG;IACf,2CAA2C;IAC3C,QAAQ,EAAE,CAAC,OAAmB,EAAE,EAAE;QACjC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE;YACnD,OAAO,CAAC,QAAQ,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;SAC1C;QAED,4BAA4B;QAC5B,IAAI,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAsB,CAAC;QAC/E,KAAK,CAAC,OAAO,CAAC,IAAI,eAAe,EAAE,CAAC,CAAC;QACrC,KAAK,CAAC,OAAO,CAAC,IAAI,aAAa,EAAE,CAAC,CAAC;QACnC,KAAK,CAAC,OAAO,CAAC,IAAI,YAAY,EAAE,CAAC,CAAC;QAElC,mBAAmB;QACnB,MAAM,CAAC,SAAS,EAAE,CAAC;IACpB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ import { IDocumentTypeMeta } from "@voplus/morpho-document/es/data/interfaces/IDocumentTypeMeta";
3
+ import { IDocument } from "@voplus/morpho-document";
4
+ /** Meta information for Board document. */
5
+ export declare class BoardTypeMeta implements IDocumentTypeMeta {
6
+ static TypeName: string;
7
+ get name(): string;
8
+ getIcon(document: IDocument): ReactNode;
9
+ getTabUrl(document: IDocument): string;
10
+ }
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { faColumns } from "@fortawesome/pro-solid-svg-icons";
3
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4
+ /** Meta information for Board document. */
5
+ export class BoardTypeMeta {
6
+ get name() {
7
+ return BoardTypeMeta.TypeName;
8
+ }
9
+ getIcon(document) {
10
+ return React.createElement(FontAwesomeIcon, { icon: faColumns });
11
+ }
12
+ getTabUrl(document) {
13
+ throw new Error("Method not implemented.");
14
+ }
15
+ }
16
+ BoardTypeMeta.TypeName = "Board";
17
+ //# sourceMappingURL=metas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/board/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,2CAA2C;AAC3C,MAAM,OAAO,aAAa;IAGzB,IAAW,IAAI;QACd,OAAO,aAAa,CAAC,QAAQ,CAAC;IAC/B,CAAC;IAED,OAAO,CAAC,QAAmB;QAC1B,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,SAAS,GAAI,CAAC;IAC7C,CAAC;IAED,SAAS,CAAC,QAAmB;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C,CAAC;;AAZa,sBAAQ,GAAW,OAAO,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ import { IDocumentTypeMeta } from "@voplus/morpho-document/es/data/interfaces/IDocumentTypeMeta";
3
+ import { IDocument } from "@voplus/morpho-document";
4
+ /** Meta information for Meeting document. */
5
+ export declare class MeetingTypeMeta implements IDocumentTypeMeta {
6
+ static TypeName: string;
7
+ get name(): string;
8
+ getIcon(document: IDocument): ReactNode;
9
+ getTabUrl(document: IDocument): string;
10
+ }
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { faColumns } from "@fortawesome/pro-solid-svg-icons";
3
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4
+ /** Meta information for Meeting document. */
5
+ export class MeetingTypeMeta {
6
+ get name() {
7
+ return MeetingTypeMeta.TypeName;
8
+ }
9
+ getIcon(document) {
10
+ return React.createElement(FontAwesomeIcon, { icon: faColumns });
11
+ }
12
+ getTabUrl(document) {
13
+ throw new Error("Method not implemented.");
14
+ }
15
+ }
16
+ MeetingTypeMeta.TypeName = "Meeting";
17
+ //# sourceMappingURL=metas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/meeting/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,6CAA6C;AAC7C,MAAM,OAAO,eAAe;IAG3B,IAAW,IAAI;QACd,OAAO,eAAe,CAAC,QAAQ,CAAC;IACjC,CAAC;IAED,OAAO,CAAC,QAAmB;QAC1B,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,SAAS,GAAI,CAAC;IAC7C,CAAC;IAED,SAAS,CAAC,QAAmB;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C,CAAC;;AAZa,wBAAQ,GAAW,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ import { IDocumentTypeMeta } from "@voplus/morpho-document/es/data/interfaces/IDocumentTypeMeta";
3
+ import { IDocument } from "@voplus/morpho-document";
4
+ /** Meta information for Task document. */
5
+ export declare class TaskTypeMeta implements IDocumentTypeMeta {
6
+ static TypeName: string;
7
+ get name(): string;
8
+ getIcon(document: IDocument): ReactNode;
9
+ getTabUrl(document: IDocument): string;
10
+ }
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { faBallot } from "@fortawesome/pro-solid-svg-icons";
3
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4
+ /** Meta information for Task document. */
5
+ export class TaskTypeMeta {
6
+ get name() {
7
+ return TaskTypeMeta.TypeName;
8
+ }
9
+ getIcon(document) {
10
+ return React.createElement(FontAwesomeIcon, { icon: faBallot });
11
+ }
12
+ getTabUrl(document) {
13
+ throw new Error("Method not implemented.");
14
+ }
15
+ }
16
+ TaskTypeMeta.TypeName = "Task";
17
+ //# sourceMappingURL=metas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/task/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,0CAA0C;AAC1C,MAAM,OAAO,YAAY;IAGxB,IAAW,IAAI;QACd,OAAO,YAAY,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAED,OAAO,CAAC,QAAmB;QAC1B,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,QAAQ,GAAI,CAAC;IAC5C,CAAC;IAED,SAAS,CAAC,QAAmB;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C,CAAC;;AAZa,qBAAQ,GAAW,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "1.0.0-dev56",
3
+ "version": "1.0.0-dev58",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -50,7 +50,7 @@
50
50
  "@voplus/morpho-client-test": "^1.0.0-dev010",
51
51
  "@voplus/morpho-collaboration": "^1.0.0-dev017",
52
52
  "@voplus/morpho-data": "^1.0.0-dev071",
53
- "@voplus/morpho-document": "^1.0.0-dev124",
53
+ "@voplus/morpho-document": "^1.0.0-dev128",
54
54
  "@voplus/morpho-org": "^1.0.0-dev025",
55
55
  "@voplus/morpho-text": "^1.0.0-dev009",
56
56
  "@voplus/morpho-ui": "^1.0.0-dev087",