|
767 | 767 | "core": true, |
768 | 768 | "useCoreAPI": true |
769 | 769 | }, |
770 | | - "133d51ca9616b49": { |
771 | | - "_id": "133d51ca9616b49", |
| 770 | + "1a3b81478110c87": { |
| 771 | + "_id": "1a3b81478110c87", |
772 | 772 | "component": "Monoco", |
773 | 773 | "state": "error", |
774 | 774 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }", |
775 | 775 | "core": true |
776 | 776 | }, |
777 | | - "11e251ccef1f7f6": { |
778 | | - "_id": "11e251ccef1f7f6", |
| 777 | + "144171313516b11": { |
| 778 | + "_id": "144171313516b11", |
779 | 779 | "component": "Monoco", |
780 | 780 | "state": "system", |
781 | 781 | "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;}", |
782 | 782 | "core": true, |
783 | 783 | "useCoreAPI": true |
784 | 784 | }, |
785 | | - "1675911cdc1102d": { |
786 | | - "_id": "1675911cdc1102d", |
| 785 | + "156291226319489": { |
| 786 | + "_id": "156291226319489", |
787 | 787 | "component": "Monoco", |
788 | 788 | "state": "warning", |
789 | 789 | "action": "function warning(message) { console.warn('monoco: ' + message); }", |
790 | 790 | "core": true |
791 | 791 | }, |
792 | | - "1a419120fb149dc": { |
793 | | - "_id": "1a419120fb149dc", |
| 792 | + "1507f1e2891eb5a": { |
| 793 | + "_id": "1507f1e2891eb5a", |
794 | 794 | "component": "MonocoChannel", |
795 | 795 | "state": "listen", |
796 | 796 | "action": "function listen(event, action) { $channel.listen(event, action); }", |
797 | 797 | "core": true, |
798 | 798 | "useCoreAPI": true |
799 | 799 | }, |
800 | | - "1098e1156616850": { |
801 | | - "_id": "1098e1156616850", |
| 800 | + "162431120217c28": { |
| 801 | + "_id": "162431120217c28", |
802 | 802 | "component": "MonocoChannel", |
803 | 803 | "state": "send", |
804 | 804 | "action": "function send(message) { return $channel.send(message); }", |
805 | 805 | "core": true, |
806 | 806 | "useCoreAPI": true |
807 | 807 | }, |
808 | | - "1bc47124fc11bfb": { |
809 | | - "_id": "1bc47124fc11bfb", |
| 808 | + "1282d1d6ab1cefe": { |
| 809 | + "_id": "1282d1d6ab1cefe", |
810 | 810 | "component": "MonocoClassInfo", |
811 | 811 | "state": "collection", |
812 | 812 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }", |
813 | 813 | "core": true |
814 | 814 | }, |
815 | | - "1416b17e5815995": { |
816 | | - "_id": "1416b17e5815995", |
| 815 | + "11c18186cf18544": { |
| 816 | + "_id": "11c18186cf18544", |
817 | 817 | "component": "MonocoClassInfo", |
818 | 818 | "state": "collections", |
819 | 819 | "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; }", |
820 | 820 | "core": true |
821 | 821 | }, |
822 | | - "167af1eb4918291": { |
823 | | - "_id": "167af1eb4918291", |
| 822 | + "1805a1bd42127cb": { |
| 823 | + "_id": "1805a1bd42127cb", |
824 | 824 | "component": "MonocoClassInfo", |
825 | 825 | "state": "event", |
826 | 826 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }", |
827 | 827 | "core": true |
828 | 828 | }, |
829 | | - "1f18b1371211f2b": { |
830 | | - "_id": "1f18b1371211f2b", |
| 829 | + "195b0192c813f84": { |
| 830 | + "_id": "195b0192c813f84", |
831 | 831 | "component": "MonocoClassInfo", |
832 | 832 | "state": "events", |
833 | 833 | "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; }", |
834 | 834 | "core": true |
835 | 835 | }, |
836 | | - "1cba613c961c79e": { |
837 | | - "_id": "1cba613c961c79e", |
| 836 | + "1d5f11f906140ec": { |
| 837 | + "_id": "1d5f11f906140ec", |
838 | 838 | "component": "MonocoClassInfo", |
839 | 839 | "state": "method", |
840 | 840 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }", |
841 | 841 | "core": true |
842 | 842 | }, |
843 | | - "185c21b42a10f35": { |
844 | | - "_id": "185c21b42a10f35", |
| 843 | + "152db134151a60f": { |
| 844 | + "_id": "152db134151a60f", |
845 | 845 | "component": "MonocoClassInfo", |
846 | 846 | "state": "methods", |
847 | 847 | "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; }", |
848 | 848 | "core": true |
849 | 849 | }, |
850 | | - "1a851141ee12c1c": { |
851 | | - "_id": "1a851141ee12c1c", |
| 850 | + "123341f1011a231": { |
| 851 | + "_id": "123341f1011a231", |
852 | 852 | "component": "MonocoClassInfo", |
853 | 853 | "state": "properties", |
854 | 854 | "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; }", |
855 | 855 | "core": true |
856 | 856 | }, |
857 | | - "18cfe1ea8a14b99": { |
858 | | - "_id": "18cfe1ea8a14b99", |
| 857 | + "14ec311a1c1be92": { |
| 858 | + "_id": "14ec311a1c1be92", |
859 | 859 | "component": "MonocoClassInfo", |
860 | 860 | "state": "property", |
861 | 861 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }", |
862 | 862 | "core": true |
863 | 863 | }, |
864 | | - "1555e17fb21d83f": { |
865 | | - "_id": "1555e17fb21d83f", |
| 864 | + "1ba991581b11342": { |
| 865 | + "_id": "1ba991581b11342", |
866 | 866 | "component": "MonocoComponent", |
867 | 867 | "state": "destroy", |
868 | 868 | "action": "function destroy() { $component.destroy(this.id()); }", |
869 | 869 | "core": true, |
870 | 870 | "useCoreAPI": true |
871 | 871 | }, |
872 | | - "18c7910524115cf": { |
873 | | - "_id": "18c7910524115cf", |
| 872 | + "1b293174111e33b": { |
| 873 | + "_id": "1b293174111e33b", |
874 | 874 | "component": "MonocoComponent", |
875 | 875 | "state": "off", |
876 | 876 | "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 + \"'\"}); } } }", |
877 | 877 | "core": true, |
878 | 878 | "useCoreAPI": true |
879 | 879 | }, |
880 | | - "1adde179321fa6c": { |
881 | | - "_id": "1adde179321fa6c", |
| 880 | + "196b711bb210678": { |
| 881 | + "_id": "196b711bb210678", |
882 | 882 | "component": "MonocoComponent", |
883 | 883 | "state": "require", |
884 | 884 | "action": "function require(id) { return $component.get(id); }", |
885 | 885 | "core": true, |
886 | 886 | "useCoreAPI": true |
887 | 887 | }, |
888 | | - "1f8b61fcc818520": { |
889 | | - "_id": "1f8b61fcc818520", |
| 888 | + "1c33118e5e13a0a": { |
| 889 | + "_id": "1c33118e5e13a0a", |
890 | 890 | "component": "MonocoDatabase", |
891 | 891 | "state": "collections", |
892 | 892 | "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;}", |
893 | 893 | "core": true, |
894 | 894 | "useCoreAPI": true |
895 | 895 | }, |
896 | | - "1979b193d915e7e": { |
897 | | - "_id": "1979b193d915e7e", |
| 896 | + "1eb7c1ae2a1e592": { |
| 897 | + "_id": "1eb7c1ae2a1e592", |
898 | 898 | "component": "MonocoDatabase", |
899 | 899 | "state": "subsystem", |
900 | 900 | "action": "function subsystem(params) { return $db.subsystem(params); }", |
901 | 901 | "core": true, |
902 | 902 | "useCoreAPI": true |
903 | 903 | }, |
904 | | - "1e8f71e0ef1c483": { |
905 | | - "_id": "1e8f71e0ef1c483", |
| 904 | + "1aae11664318408": { |
| 905 | + "_id": "1aae11664318408", |
906 | 906 | "component": "MonocoDatabase", |
907 | 907 | "state": "system", |
908 | 908 | "action": "function system(system) { return $db.system(system); }", |
909 | 909 | "core": true, |
910 | 910 | "useCoreAPI": true |
911 | 911 | }, |
912 | | - "1095a1b7e513360": { |
913 | | - "_id": "1095a1b7e513360", |
| 912 | + "15b8b1617b12621": { |
| 913 | + "_id": "15b8b1617b12621", |
914 | 914 | "component": "MonocoMetamodel", |
915 | 915 | "state": "create", |
916 | 916 | "action": "function create() { $metamodel.create(); }", |
917 | 917 | "core": true, |
918 | 918 | "useCoreAPI": true |
919 | 919 | }, |
920 | | - "14aa6161391ba69": { |
921 | | - "_id": "14aa6161391ba69", |
| 920 | + "1b4af109f018651": { |
| 921 | + "_id": "1b4af109f018651", |
922 | 922 | "component": "MonocoMetamodel", |
923 | 923 | "state": "schema", |
924 | 924 | "action": "function schema(schema) { $metamodel.schema(schema); }", |
925 | 925 | "core": true, |
926 | 926 | "useCoreAPI": true |
927 | 927 | }, |
928 | | - "1dbe41c15d14c8c": { |
929 | | - "_id": "1dbe41c15d14c8c", |
| 928 | + "15e761aa291f2df": { |
| 929 | + "_id": "15e761aa291f2df", |
930 | 930 | "component": "MonocoMetamodel", |
931 | 931 | "state": "type", |
932 | 932 | "action": "function type(type) { $metamodel.type(type); }", |
933 | 933 | "core": true, |
934 | 934 | "useCoreAPI": true |
935 | 935 | }, |
936 | | - "10af61768e150dc": { |
937 | | - "_id": "10af61768e150dc", |
| 936 | + "10ef017ca81d7d2": { |
| 937 | + "_id": "10ef017ca81d7d2", |
938 | 938 | "component": "MonocoSystem", |
939 | 939 | "state": "sync", |
940 | 940 | "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