|
126 | 126 | "MonocoChannelEvent" |
127 | 127 | ], |
128 | 128 | "_core": true, |
129 | | - "listen": { |
130 | | - "params": [ |
131 | | - { |
132 | | - "name": "event", |
133 | | - "type": "string" |
134 | | - }, |
135 | | - { |
136 | | - "name": "callback", |
137 | | - "type": "function" |
138 | | - } |
139 | | - ] |
140 | | - }, |
141 | 129 | "send": { |
142 | 130 | "params": [ |
143 | 131 | { |
144 | 132 | "name": "message", |
145 | | - "type": "message" |
| 133 | + "type": "object" |
146 | 134 | } |
147 | | - ], |
148 | | - "result": "boolean" |
| 135 | + ] |
149 | 136 | } |
150 | 137 | }, |
151 | 138 | "MonocoChannelEvent": { |
|
165 | 152 | "MonocoChannelEventSchema" |
166 | 153 | ], |
167 | 154 | "_core": true, |
168 | | - "listen": "method", |
169 | | - "send": "method" |
| 155 | + "send": "event" |
170 | 156 | }, |
171 | 157 | "MonocoClassInfo": { |
172 | 158 | "_id": "MonocoClassInfo", |
|
778 | 764 | "core": true, |
779 | 765 | "useCoreAPI": true |
780 | 766 | }, |
781 | | - "1068e1129917ccd": { |
782 | | - "_id": "1068e1129917ccd", |
| 767 | + "197751e3551e06f": { |
| 768 | + "_id": "197751e3551e06f", |
783 | 769 | "component": "Monoco", |
784 | 770 | "state": "error", |
785 | 771 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }", |
786 | 772 | "core": true |
787 | 773 | }, |
788 | | - "129dc10328155d4": { |
789 | | - "_id": "129dc10328155d4", |
| 774 | + "112711926518069": { |
| 775 | + "_id": "112711926518069", |
790 | 776 | "component": "Monoco", |
791 | 777 | "state": "system", |
792 | 778 | "action": "function system(name) { var System = null, system = {}, systemId = '', result = [], conf = {}; if (name) { conf.master = true; conf.name = name; System = this.require('MonocoSystem'); system = new System(conf); } else { result = $db.MonocoSystem.find({ 'master': true }); if (result.length) { systemId = result[0]._id; system = $component.get(systemId); } } return system;}", |
793 | 779 | "core": true, |
794 | 780 | "useCoreAPI": true |
795 | 781 | }, |
796 | | - "152351f10313e0e": { |
797 | | - "_id": "152351f10313e0e", |
| 782 | + "1ef9a1a3271e595": { |
| 783 | + "_id": "1ef9a1a3271e595", |
798 | 784 | "component": "Monoco", |
799 | 785 | "state": "warning", |
800 | 786 | "action": "function warning(message) { console.warn('monoco: ' + message); }", |
801 | 787 | "core": true |
802 | 788 | }, |
803 | | - "1a8811b12e11369": { |
804 | | - "_id": "1a8811b12e11369", |
| 789 | + "17df2116b51f0b3": { |
| 790 | + "_id": "17df2116b51f0b3", |
805 | 791 | "component": "MonocoClassInfo", |
806 | 792 | "state": "collection", |
807 | 793 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }", |
808 | 794 | "core": true |
809 | 795 | }, |
810 | | - "1ab30132991cab4": { |
811 | | - "_id": "1ab30132991cab4", |
| 796 | + "1df271a1e318a3b": { |
| 797 | + "_id": "1df271a1e318a3b", |
812 | 798 | "component": "MonocoClassInfo", |
813 | 799 | "state": "collections", |
814 | 800 | "action": "function collections() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'collection') { result.push(item); } } return result; }", |
815 | 801 | "core": true |
816 | 802 | }, |
817 | | - "1c84f107731ef6d": { |
818 | | - "_id": "1c84f107731ef6d", |
| 803 | + "1ea7e1f248106a9": { |
| 804 | + "_id": "1ea7e1f248106a9", |
819 | 805 | "component": "MonocoClassInfo", |
820 | 806 | "state": "event", |
821 | 807 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }", |
822 | 808 | "core": true |
823 | 809 | }, |
824 | | - "1f5601dc211d3eb": { |
825 | | - "_id": "1f5601dc211d3eb", |
| 810 | + "1a8971c412177d3": { |
| 811 | + "_id": "1a8971c412177d3", |
826 | 812 | "component": "MonocoClassInfo", |
827 | 813 | "state": "events", |
828 | 814 | "action": "function events() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'event') { result.push(item); } } return result; }", |
829 | 815 | "core": true |
830 | 816 | }, |
831 | | - "1b66b106a115cde": { |
832 | | - "_id": "1b66b106a115cde", |
| 817 | + "1229e111471468e": { |
| 818 | + "_id": "1229e111471468e", |
833 | 819 | "component": "MonocoClassInfo", |
834 | 820 | "state": "method", |
835 | 821 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }", |
836 | 822 | "core": true |
837 | 823 | }, |
838 | | - "1c3f71db7b17d3e": { |
839 | | - "_id": "1c3f71db7b17d3e", |
| 824 | + "1229f14aeb199b2": { |
| 825 | + "_id": "1229f14aeb199b2", |
840 | 826 | "component": "MonocoClassInfo", |
841 | 827 | "state": "methods", |
842 | 828 | "action": "function methods() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'method') { result.push(item); } } return result; }", |
843 | 829 | "core": true |
844 | 830 | }, |
845 | | - "1e3b01389b1af37": { |
846 | | - "_id": "1e3b01389b1af37", |
| 831 | + "1af5512d0f16c92": { |
| 832 | + "_id": "1af5512d0f16c92", |
847 | 833 | "component": "MonocoClassInfo", |
848 | 834 | "state": "properties", |
849 | 835 | "action": "function properties() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'property') { result.push(item); } } return result; }", |
850 | 836 | "core": true |
851 | 837 | }, |
852 | | - "1b49f1ba191a4d5": { |
853 | | - "_id": "1b49f1ba191a4d5", |
| 838 | + "1ade21aee718702": { |
| 839 | + "_id": "1ade21aee718702", |
854 | 840 | "component": "MonocoClassInfo", |
855 | 841 | "state": "property", |
856 | 842 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }", |
857 | 843 | "core": true |
858 | 844 | }, |
859 | | - "1bb9816a8d1aebb": { |
860 | | - "_id": "1bb9816a8d1aebb", |
| 845 | + "1e6861a86a17670": { |
| 846 | + "_id": "1e6861a86a17670", |
861 | 847 | "component": "MonocoComponent", |
862 | 848 | "state": "destroy", |
863 | 849 | "action": "function destroy() { $component.destroy(this.id()); }", |
864 | 850 | "core": true, |
865 | 851 | "useCoreAPI": true |
866 | 852 | }, |
867 | | - "12f90126481868b": { |
868 | | - "_id": "12f90126481868b", |
| 853 | + "11f651094b15b2c": { |
| 854 | + "_id": "11f651094b15b2c", |
869 | 855 | "component": "MonocoComponent", |
870 | 856 | "state": "off", |
871 | 857 | "action": "function off(state, behaviorId) { var args = [], i = 0, length = 0; length = arguments.length; for (i = 0; i < length - 7; i++) { args.push(arguments[i]); } if ($workflow.checkParams({\"component\": this, \"methodName\": \"off\", \"args\": args})) { if ($metamodel.isValidState(state, this.constructor.name)) {$behavior.remove({\"behaviorId\": behaviorId, \"componentId\": this.id(), \"state\": state}); } else { $helper.getMonoco().warning({ \"message\":\"invoke 'off' method of component '\" + this.id() + \"' with an invalid state '\" + state + \"'\"}); } } }", |
872 | 858 | "core": true, |
873 | 859 | "useCoreAPI": true |
874 | 860 | }, |
875 | | - "192571b97a14607": { |
876 | | - "_id": "192571b97a14607", |
| 861 | + "1c243149ce14f38": { |
| 862 | + "_id": "1c243149ce14f38", |
877 | 863 | "component": "MonocoComponent", |
878 | 864 | "state": "require", |
879 | 865 | "action": "function require(id) { return $component.get(id); }", |
880 | 866 | "core": true, |
881 | 867 | "useCoreAPI": true |
882 | 868 | }, |
883 | | - "1ad5e1d62414ffa": { |
884 | | - "_id": "1ad5e1d62414ffa", |
| 869 | + "1a0cc197621b6f7": { |
| 870 | + "_id": "1a0cc197621b6f7", |
885 | 871 | "component": "MonocoDatabase", |
886 | 872 | "state": "collections", |
887 | 873 | "action": "function collections() { var result = {}, collectionName = ''; for (collectionName in $db.store) { if ($db.store.hasOwnProperty(collectionName) && collectionName.indexOf('Monoco') !== 0) { result[collectionName] = $db[collectionName]; } } return result;}", |
888 | 874 | "core": true, |
889 | 875 | "useCoreAPI": true |
890 | 876 | }, |
891 | | - "1df6f1885b125c7": { |
892 | | - "_id": "1df6f1885b125c7", |
| 877 | + "1fecc1524f15ffa": { |
| 878 | + "_id": "1fecc1524f15ffa", |
893 | 879 | "component": "MonocoDatabase", |
894 | 880 | "state": "subsystem", |
895 | 881 | "action": "function subsystem(params) { return $db.subsystem(params); }", |
896 | 882 | "core": true, |
897 | 883 | "useCoreAPI": true |
898 | 884 | }, |
899 | | - "1a76c16e74134a2": { |
900 | | - "_id": "1a76c16e74134a2", |
| 885 | + "1caad1e14f18071": { |
| 886 | + "_id": "1caad1e14f18071", |
901 | 887 | "component": "MonocoDatabase", |
902 | 888 | "state": "system", |
903 | 889 | "action": "function system(system) { return $db.system(system); }", |
904 | 890 | "core": true, |
905 | 891 | "useCoreAPI": true |
906 | 892 | }, |
907 | | - "1fe2e1201a1a6b9": { |
908 | | - "_id": "1fe2e1201a1a6b9", |
| 893 | + "140a31d693124b8": { |
| 894 | + "_id": "140a31d693124b8", |
909 | 895 | "component": "MonocoMetamodel", |
910 | 896 | "state": "create", |
911 | 897 | "action": "function create() { $metamodel.create(); }", |
912 | 898 | "core": true, |
913 | 899 | "useCoreAPI": true |
914 | 900 | }, |
915 | | - "1840c18b0810ad9": { |
916 | | - "_id": "1840c18b0810ad9", |
| 901 | + "12d8c120491875c": { |
| 902 | + "_id": "12d8c120491875c", |
917 | 903 | "component": "MonocoMetamodel", |
918 | 904 | "state": "schema", |
919 | 905 | "action": "function schema(schema) { $metamodel.schema(schema); }", |
920 | 906 | "core": true, |
921 | 907 | "useCoreAPI": true |
922 | 908 | }, |
923 | | - "171fd15ee3108cb": { |
924 | | - "_id": "171fd15ee3108cb", |
| 909 | + "1d6dc193191e761": { |
| 910 | + "_id": "1d6dc193191e761", |
925 | 911 | "component": "MonocoMetamodel", |
926 | 912 | "state": "type", |
927 | 913 | "action": "function type(type) { $metamodel.type(type); }", |
928 | 914 | "core": true, |
929 | 915 | "useCoreAPI": true |
930 | 916 | }, |
931 | | - "1bc60102d31cb79": { |
932 | | - "_id": "1bc60102d31cb79", |
| 917 | + "1bbc41c1c71d1c1": { |
| 918 | + "_id": "1bbc41c1c71d1c1", |
933 | 919 | "component": "MonocoSystem", |
934 | 920 | "state": "sync", |
935 | 921 | "action": "function sync() { var system = JSON.parse($db.system()); this.schemas(system.schemas); this.types(system.types); this.behaviors(system.behaviors); this.components(system.components); }", |
|
0 commit comments