|
1 | 1 | { |
2 | 2 | "name": "monoco", |
3 | | - "version": "0.8.2", |
4 | | - "description": "A runtime for system", |
| 3 | + "version": "0.8.3", |
| 4 | + "description": "A Model and a NoSQL Database for Components", |
5 | 5 | "_id": "e89c617b6b15d24", |
6 | 6 | "schemas": { |
7 | 7 | "MonocoSchema": { |
|
764 | 764 | "core": true, |
765 | 765 | "useCoreAPI": true |
766 | 766 | }, |
767 | | - "1dbcb1a4dd10005": { |
768 | | - "_id": "1dbcb1a4dd10005", |
| 767 | + "1c2f41acb315c8c": { |
| 768 | + "_id": "1c2f41acb315c8c", |
769 | 769 | "component": "Monoco", |
770 | 770 | "state": "error", |
771 | 771 | "action": "function error(data) {\n console.error('monoco: ' + data.message, data.error);\n}", |
772 | 772 | "core": true |
773 | 773 | }, |
774 | | - "192dd1f0be112f0": { |
775 | | - "_id": "192dd1f0be112f0", |
| 774 | + "13bab17ef013b8a": { |
| 775 | + "_id": "13bab17ef013b8a", |
776 | 776 | "component": "Monoco", |
777 | 777 | "state": "system", |
778 | 778 | "action": "function system(name) {\n var System = null,\n system = {},\n systemId = '',\n result = [],\n conf = {};\n \n if (name) {\n conf.master = true;\n conf.name = name;\n System = this.require('MonocoSystem');\n system = new System(conf);\n } else {\n result = $db.MonocoSystem.find({\n 'master': true\n });\n if (result.length) {\n systemId = result[0]._id;\n system = $component.get(systemId);\n }\n }\n return system;\n}", |
779 | 779 | "core": true, |
780 | 780 | "useCoreAPI": true |
781 | 781 | }, |
782 | | - "1001017b581245c": { |
783 | | - "_id": "1001017b581245c", |
| 782 | + "174381507119687": { |
| 783 | + "_id": "174381507119687", |
784 | 784 | "component": "Monoco", |
785 | 785 | "state": "warning", |
786 | 786 | "action": "function warning(message) {\n console.warn('monoco: ' + message);\n}", |
787 | 787 | "core": true |
788 | 788 | }, |
789 | | - "16d4012f63187f9": { |
790 | | - "_id": "16d4012f63187f9", |
| 789 | + "1ae2318e731d752": { |
| 790 | + "_id": "1ae2318e731d752", |
791 | 791 | "component": "MonocoClassInfo", |
792 | 792 | "state": "collection", |
793 | 793 | "action": "function collection(name) {\n var result = {};\n if (this.metamodel()[name] === 'collection') {\n result = this.model()[name];\n } \n \n return result; \n}", |
794 | 794 | "core": true |
795 | 795 | }, |
796 | | - "1a18f1061812424": { |
797 | | - "_id": "1a18f1061812424", |
| 796 | + "1186c141a51599e": { |
| 797 | + "_id": "1186c141a51599e", |
798 | 798 | "component": "MonocoClassInfo", |
799 | 799 | "state": "collections", |
800 | 800 | "action": "function collections() {\n var keys = Object.keys(this.metamodel()),\n item = '',\n result = [],\n i = 0,\n length = 0;\n \n length = keys.length; \n \n for (i = 0; i < length; i++) { \n item = keys[i]; \n if (this.metamodel()[item] === 'collection') {\n result.push(item);\n }\n }\n \n return result;\n}", |
801 | 801 | "core": true |
802 | 802 | }, |
803 | | - "1af5719b0a1b5ad": { |
804 | | - "_id": "1af5719b0a1b5ad", |
| 803 | + "1c7f31751112a50": { |
| 804 | + "_id": "1c7f31751112a50", |
805 | 805 | "component": "MonocoClassInfo", |
806 | 806 | "state": "event", |
807 | 807 | "action": "function event(name) {\n var result = {};\n \n if (this.metamodel()[name] === 'event') {\n result = this.model()[name];\n } \n \n return result;\n}", |
808 | 808 | "core": true |
809 | 809 | }, |
810 | | - "1fcc712b0e178c9": { |
811 | | - "_id": "1fcc712b0e178c9", |
| 810 | + "12e951cdaa1e7dc": { |
| 811 | + "_id": "12e951cdaa1e7dc", |
812 | 812 | "component": "MonocoClassInfo", |
813 | 813 | "state": "events", |
814 | 814 | "action": "function events() {\n var keys = Object.keys(this.metamodel()),\n item = '',\n result = [],\n i = 0,\n length = 0;\n \n length = keys.length;\n \n for (i = 0; i < length; i++) {\n item = keys[i];\n if (this.metamodel()[item] === 'event') {\n result.push(item);\n }\n } \n return result;\n}", |
815 | 815 | "core": true |
816 | 816 | }, |
817 | | - "18f2a1069718822": { |
818 | | - "_id": "18f2a1069718822", |
| 817 | + "1011c161d21748a": { |
| 818 | + "_id": "1011c161d21748a", |
819 | 819 | "component": "MonocoClassInfo", |
820 | 820 | "state": "method", |
821 | 821 | "action": "function method(name) {\n var result = {};\n if (this.metamodel()[name] === 'method') {\n result = this.model()[name];\n \n }\n \n return result;\n}", |
822 | 822 | "core": true |
823 | 823 | }, |
824 | | - "104b81f7ad1d4dd": { |
825 | | - "_id": "104b81f7ad1d4dd", |
| 824 | + "1ea35140d5159f5": { |
| 825 | + "_id": "1ea35140d5159f5", |
826 | 826 | "component": "MonocoClassInfo", |
827 | 827 | "state": "methods", |
828 | 828 | "action": "function methods() {\n var keys = Object.keys(this.metamodel()),\n item = '',\n result = [],\n i = 0,\n length = 0;\n length = keys.length;\n for (i = 0; i < length; i++) {\n item = keys[i];\n if (this.metamodel()[item] === 'method') {\n result.push(item);\n }\n } \n \n return result;\n}", |
829 | 829 | "core": true |
830 | 830 | }, |
831 | | - "137cb1ac45178b3": { |
832 | | - "_id": "137cb1ac45178b3", |
| 831 | + "1b71c16ec7135e2": { |
| 832 | + "_id": "1b71c16ec7135e2", |
833 | 833 | "component": "MonocoClassInfo", |
834 | 834 | "state": "properties", |
835 | 835 | "action": "function properties() { \n var keys = Object.keys(this.metamodel()),\n item = '',\n result = [],\n i = 0,\n length = 0;\n length = keys.length;\n \n for (i = 0; i < length; i++) {\n item = keys[i];\n if (this.metamodel()[item] === 'property') {\n result.push(item);\n }\n } return result;\n}", |
836 | 836 | "core": true |
837 | 837 | }, |
838 | | - "190db1c1a2174c5": { |
839 | | - "_id": "190db1c1a2174c5", |
| 838 | + "111961a1471bb58": { |
| 839 | + "_id": "111961a1471bb58", |
840 | 840 | "component": "MonocoClassInfo", |
841 | 841 | "state": "property", |
842 | 842 | "action": "function property(name) {\n var result = {};\n \n if (this.metamodel()[name] === 'property') {\n result = this.model()[name];\n }\n return result;\n}", |
843 | 843 | "core": true |
844 | 844 | }, |
845 | | - "117a2102f11fae8": { |
846 | | - "_id": "117a2102f11fae8", |
| 845 | + "1bc2e1a34e1b349": { |
| 846 | + "_id": "1bc2e1a34e1b349", |
847 | 847 | "component": "MonocoComponent", |
848 | 848 | "state": "destroy", |
849 | 849 | "action": "function destroy() {\n $component.destroy(this.id());\n}", |
850 | 850 | "core": true, |
851 | 851 | "useCoreAPI": true |
852 | 852 | }, |
853 | | - "16ab91050e1ea10": { |
854 | | - "_id": "16ab91050e1ea10", |
| 853 | + "12c4b1bb8d130c5": { |
| 854 | + "_id": "12c4b1bb8d130c5", |
855 | 855 | "component": "MonocoComponent", |
856 | 856 | "state": "off", |
857 | 857 | "action": "function off(state, behaviorId) {\n var args = [],\n i = 0,\n length = 0;\n length = arguments.length;\n \n for (i = 0; i < length - 6; i++) {\n args.push(arguments[i]);\n }\n \n if ($workflow.checkParams({\"component\": this, \"methodName\": \"off\", \"args\": args})) {\n if ($metamodel.isValidState(state, this.constructor.name)) {\n $behavior.remove({\"behaviorId\": behaviorId, \"componentId\": this.id(), \"state\": state});\n } else { $helper.getMonoco().warning({ \"message\":\"invoke 'off' method of component '\" + this.id() + \"' with an invalid state '\" + state + \"'\"}); \n }\n }\n}", |
858 | 858 | "core": true, |
859 | 859 | "useCoreAPI": true |
860 | 860 | }, |
861 | | - "12178137bb10430": { |
862 | | - "_id": "12178137bb10430", |
| 861 | + "1063f1f67d1196d": { |
| 862 | + "_id": "1063f1f67d1196d", |
863 | 863 | "component": "MonocoComponent", |
864 | 864 | "state": "require", |
865 | 865 | "action": "function require(id) {\n return $component.get(id);\n}", |
866 | 866 | "core": true, |
867 | 867 | "useCoreAPI": true |
868 | 868 | }, |
869 | | - "1f5ba1b2a4170a7": { |
870 | | - "_id": "1f5ba1b2a4170a7", |
| 869 | + "1fea61d6521c94a": { |
| 870 | + "_id": "1fea61d6521c94a", |
871 | 871 | "component": "MonocoDatabase", |
872 | 872 | "state": "collections", |
873 | 873 | "action": "function collections() {\n var result = {},\n collectionName = '';\n \n for (collectionName in $db.store) {\n if ($db.store.hasOwnProperty(collectionName) && collectionName.indexOf('Monoco') !== 0) {\n result[collectionName] = $db[collectionName];\n \n }\n }\n return result;\n}", |
874 | 874 | "core": true, |
875 | 875 | "useCoreAPI": true |
876 | 876 | }, |
877 | | - "13216133bf1a256": { |
878 | | - "_id": "13216133bf1a256", |
| 877 | + "1f4c216ebc1401e": { |
| 878 | + "_id": "1f4c216ebc1401e", |
879 | 879 | "component": "MonocoDatabase", |
880 | 880 | "state": "subsystem", |
881 | 881 | "action": "function subsystem(params) {\n return $db.subsystem(params);\n}", |
882 | 882 | "core": true, |
883 | 883 | "useCoreAPI": true |
884 | 884 | }, |
885 | | - "16b0318e6615c7c": { |
886 | | - "_id": "16b0318e6615c7c", |
| 885 | + "1df5b1ecbd1a4a8": { |
| 886 | + "_id": "1df5b1ecbd1a4a8", |
887 | 887 | "component": "MonocoDatabase", |
888 | 888 | "state": "system", |
889 | 889 | "action": "function system(system) {\n return $db.system(system);\n}", |
890 | 890 | "core": true, |
891 | 891 | "useCoreAPI": true |
892 | 892 | }, |
893 | | - "196b0102791a8dd": { |
894 | | - "_id": "196b0102791a8dd", |
| 893 | + "1f1511041a12190": { |
| 894 | + "_id": "1f1511041a12190", |
895 | 895 | "component": "MonocoMetamodel", |
896 | 896 | "state": "create", |
897 | 897 | "action": "function create() {\n $metamodel.create();\n}", |
898 | 898 | "core": true, |
899 | 899 | "useCoreAPI": true |
900 | 900 | }, |
901 | | - "1476d17a621a10c": { |
902 | | - "_id": "1476d17a621a10c", |
| 901 | + "1cd01165a911d04": { |
| 902 | + "_id": "1cd01165a911d04", |
903 | 903 | "component": "MonocoMetamodel", |
904 | 904 | "state": "schema", |
905 | 905 | "action": "function schema(schema) {\n $metamodel.schema(schema);\n}", |
906 | 906 | "core": true, |
907 | 907 | "useCoreAPI": true |
908 | 908 | }, |
909 | | - "17bab175b2118ed": { |
910 | | - "_id": "17bab175b2118ed", |
| 909 | + "1abb01ed9b1a9d5": { |
| 910 | + "_id": "1abb01ed9b1a9d5", |
911 | 911 | "component": "MonocoMetamodel", |
912 | 912 | "state": "type", |
913 | 913 | "action": "function type(type) {\n $metamodel.type(type);\n}", |
914 | 914 | "core": true, |
915 | 915 | "useCoreAPI": true |
916 | 916 | }, |
917 | | - "14d9e141d11fcd5": { |
918 | | - "_id": "14d9e141d11fcd5", |
| 917 | + "178e4178b116350": { |
| 918 | + "_id": "178e4178b116350", |
919 | 919 | "component": "MonocoSystem", |
920 | 920 | "state": "sync", |
921 | 921 | "action": "function sync() {\n var system = JSON.parse($db.system());\n \n this.schemas(system.schemas);\n this.types(system.types);\n this.behaviors(system.behaviors);\n this.components(system.components);\n}", |
|
927 | 927 | "Monoco": { |
928 | 928 | "monoco": { |
929 | 929 | "_id": "monoco", |
930 | | - "version": "0.8.2" |
| 930 | + "version": "0.8.3" |
931 | 931 | } |
932 | 932 | }, |
933 | 933 | "MonocoDatabase": { |
|
0 commit comments