|
764 | 764 | "core": true,
|
765 | 765 | "useCoreAPI": true
|
766 | 766 | },
|
767 |
| - "132211370812002": { |
768 |
| - "_id": "132211370812002", |
| 767 | + "1e1741999610ab2": { |
| 768 | + "_id": "1e1741999610ab2", |
769 | 769 | "component": "Monoco",
|
770 | 770 | "state": "error",
|
771 | 771 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
|
772 | 772 | "core": true
|
773 | 773 | },
|
774 |
| - "1be1a146c61f007": { |
775 |
| - "_id": "1be1a146c61f007", |
| 774 | + "196451162016c06": { |
| 775 | + "_id": "196451162016c06", |
776 | 776 | "component": "Monoco",
|
777 | 777 | "state": "system",
|
778 | 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;}",
|
779 | 779 | "core": true,
|
780 | 780 | "useCoreAPI": true
|
781 | 781 | },
|
782 |
| - "1f76212d0e13948": { |
783 |
| - "_id": "1f76212d0e13948", |
| 782 | + "19e7117def12cbc": { |
| 783 | + "_id": "19e7117def12cbc", |
784 | 784 | "component": "Monoco",
|
785 | 785 | "state": "warning",
|
786 | 786 | "action": "function warning(message) { console.warn('monoco: ' + message); }",
|
787 | 787 | "core": true
|
788 | 788 | },
|
789 |
| - "1b8d8101d01935a": { |
790 |
| - "_id": "1b8d8101d01935a", |
| 789 | + "13a591d73217836": { |
| 790 | + "_id": "13a591d73217836", |
791 | 791 | "component": "MonocoClassInfo",
|
792 | 792 | "state": "collection",
|
793 | 793 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }",
|
794 | 794 | "core": true
|
795 | 795 | },
|
796 |
| - "1cb9b14bd01a295": { |
797 |
| - "_id": "1cb9b14bd01a295", |
| 796 | + "1c27618a3a1ac32": { |
| 797 | + "_id": "1c27618a3a1ac32", |
798 | 798 | "component": "MonocoClassInfo",
|
799 | 799 | "state": "collections",
|
800 | 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; }",
|
801 | 801 | "core": true
|
802 | 802 | },
|
803 |
| - "10298150ed16586": { |
804 |
| - "_id": "10298150ed16586", |
| 803 | + "1437c125ff13170": { |
| 804 | + "_id": "1437c125ff13170", |
805 | 805 | "component": "MonocoClassInfo",
|
806 | 806 | "state": "event",
|
807 | 807 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }",
|
808 | 808 | "core": true
|
809 | 809 | },
|
810 |
| - "1b8561cee41d3c9": { |
811 |
| - "_id": "1b8561cee41d3c9", |
| 810 | + "1d60815ed01d87d": { |
| 811 | + "_id": "1d60815ed01d87d", |
812 | 812 | "component": "MonocoClassInfo",
|
813 | 813 | "state": "events",
|
814 | 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; }",
|
815 | 815 | "core": true
|
816 | 816 | },
|
817 |
| - "137d814be515457": { |
818 |
| - "_id": "137d814be515457", |
| 817 | + "1cccc169a81d9c2": { |
| 818 | + "_id": "1cccc169a81d9c2", |
819 | 819 | "component": "MonocoClassInfo",
|
820 | 820 | "state": "method",
|
821 | 821 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }",
|
822 | 822 | "core": true
|
823 | 823 | },
|
824 |
| - "12b2014ea41542a": { |
825 |
| - "_id": "12b2014ea41542a", |
| 824 | + "16df71684e14637": { |
| 825 | + "_id": "16df71684e14637", |
826 | 826 | "component": "MonocoClassInfo",
|
827 | 827 | "state": "methods",
|
828 | 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; }",
|
829 | 829 | "core": true
|
830 | 830 | },
|
831 |
| - "19fd7148ee1d0bf": { |
832 |
| - "_id": "19fd7148ee1d0bf", |
| 831 | + "1f8ec1d8ff13706": { |
| 832 | + "_id": "1f8ec1d8ff13706", |
833 | 833 | "component": "MonocoClassInfo",
|
834 | 834 | "state": "properties",
|
835 | 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; }",
|
836 | 836 | "core": true
|
837 | 837 | },
|
838 |
| - "125b416f68118eb": { |
839 |
| - "_id": "125b416f68118eb", |
| 838 | + "1bfc71eabe1d976": { |
| 839 | + "_id": "1bfc71eabe1d976", |
840 | 840 | "component": "MonocoClassInfo",
|
841 | 841 | "state": "property",
|
842 | 842 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }",
|
843 | 843 | "core": true
|
844 | 844 | },
|
845 |
| - "1bd1b12b2d10bc7": { |
846 |
| - "_id": "1bd1b12b2d10bc7", |
| 845 | + "1612916c2b10462": { |
| 846 | + "_id": "1612916c2b10462", |
847 | 847 | "component": "MonocoComponent",
|
848 | 848 | "state": "destroy",
|
849 | 849 | "action": "function destroy() { $component.destroy(this.id()); }",
|
850 | 850 | "core": true,
|
851 | 851 | "useCoreAPI": true
|
852 | 852 | },
|
853 |
| - "1b3711581918281": { |
854 |
| - "_id": "1b3711581918281", |
| 853 | + "1f54b1bfa311627": { |
| 854 | + "_id": "1f54b1bfa311627", |
855 | 855 | "component": "MonocoComponent",
|
856 | 856 | "state": "off",
|
857 | 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 + \"'\"}); } } }",
|
858 | 858 | "core": true,
|
859 | 859 | "useCoreAPI": true
|
860 | 860 | },
|
861 |
| - "152711b83414eb0": { |
862 |
| - "_id": "152711b83414eb0", |
| 861 | + "16b3619fa31cfa7": { |
| 862 | + "_id": "16b3619fa31cfa7", |
863 | 863 | "component": "MonocoComponent",
|
864 | 864 | "state": "require",
|
865 | 865 | "action": "function require(id) { return $component.get(id); }",
|
866 | 866 | "core": true,
|
867 | 867 | "useCoreAPI": true
|
868 | 868 | },
|
869 |
| - "1d40c1c27c1501b": { |
870 |
| - "_id": "1d40c1c27c1501b", |
| 869 | + "12bc91900f1cae4": { |
| 870 | + "_id": "12bc91900f1cae4", |
871 | 871 | "component": "MonocoDatabase",
|
872 | 872 | "state": "collections",
|
873 | 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;}",
|
874 | 874 | "core": true,
|
875 | 875 | "useCoreAPI": true
|
876 | 876 | },
|
877 |
| - "10d751a2ab1138b": { |
878 |
| - "_id": "10d751a2ab1138b", |
| 877 | + "1448e194601eb7d": { |
| 878 | + "_id": "1448e194601eb7d", |
879 | 879 | "component": "MonocoDatabase",
|
880 | 880 | "state": "subsystem",
|
881 | 881 | "action": "function subsystem(params) { return $db.subsystem(params); }",
|
882 | 882 | "core": true,
|
883 | 883 | "useCoreAPI": true
|
884 | 884 | },
|
885 |
| - "12206193b915195": { |
886 |
| - "_id": "12206193b915195", |
| 885 | + "10ebb1b3841a51f": { |
| 886 | + "_id": "10ebb1b3841a51f", |
887 | 887 | "component": "MonocoDatabase",
|
888 | 888 | "state": "system",
|
889 | 889 | "action": "function system(system) { return $db.system(system); }",
|
890 | 890 | "core": true,
|
891 | 891 | "useCoreAPI": true
|
892 | 892 | },
|
893 |
| - "165a515d4414f1b": { |
894 |
| - "_id": "165a515d4414f1b", |
| 893 | + "15bcc18a5615e2e": { |
| 894 | + "_id": "15bcc18a5615e2e", |
895 | 895 | "component": "MonocoMetamodel",
|
896 | 896 | "state": "create",
|
897 | 897 | "action": "function create() { $metamodel.create(); }",
|
898 | 898 | "core": true,
|
899 | 899 | "useCoreAPI": true
|
900 | 900 | },
|
901 |
| - "1903c160ca1dac1": { |
902 |
| - "_id": "1903c160ca1dac1", |
| 901 | + "198001b24210363": { |
| 902 | + "_id": "198001b24210363", |
903 | 903 | "component": "MonocoMetamodel",
|
904 | 904 | "state": "schema",
|
905 | 905 | "action": "function schema(schema) { $metamodel.schema(schema); }",
|
906 | 906 | "core": true,
|
907 | 907 | "useCoreAPI": true
|
908 | 908 | },
|
909 |
| - "1851d1b7fb17838": { |
910 |
| - "_id": "1851d1b7fb17838", |
| 909 | + "1ef371e5c81cb7a": { |
| 910 | + "_id": "1ef371e5c81cb7a", |
911 | 911 | "component": "MonocoMetamodel",
|
912 | 912 | "state": "type",
|
913 | 913 | "action": "function type(type) { $metamodel.type(type); }",
|
914 | 914 | "core": true,
|
915 | 915 | "useCoreAPI": true
|
916 | 916 | },
|
917 |
| - "148841378911e21": { |
918 |
| - "_id": "148841378911e21", |
| 917 | + "12f4b1f12713df6": { |
| 918 | + "_id": "12f4b1f12713df6", |
919 | 919 | "component": "MonocoSystem",
|
920 | 920 | "state": "sync",
|
921 | 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