|
1 | 1 | { |
2 | 2 | "name": "monoco", |
3 | | - "version": "0.2.2", |
| 3 | + "version": "0.3.0", |
4 | 4 | "description": "A Model and a NoSQL Database for Components", |
5 | 5 | "_id": "e89c617b6b15d24", |
6 | 6 | "schemas": { |
|
737 | 737 | "action": "function ready() { var systems = [], system = null, i = 0, length = 0; if (typeof document !== 'undefined') { systems = document.querySelectorAll('link[rel=system]'); length = systems.length; for (i = 0; i < length; i++) { system = systems[i]; this.load(system.href, false); } } }", |
738 | 738 | "core": true |
739 | 739 | }, |
740 | | - "1c7ed181d8143d6": { |
741 | | - "_id": "1c7ed181d8143d6", |
| 740 | + "14cf31b6ed1470a": { |
| 741 | + "_id": "14cf31b6ed1470a", |
742 | 742 | "component": "Monoco", |
743 | 743 | "state": "error", |
744 | 744 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }", |
745 | 745 | "core": true |
746 | 746 | }, |
747 | | - "151b21611113189": { |
748 | | - "_id": "151b21611113189", |
| 747 | + "1cda91b4c51c924": { |
| 748 | + "_id": "1cda91b4c51c924", |
749 | 749 | "component": "Monoco", |
750 | 750 | "state": "find", |
751 | 751 | "action": "function find(Class, query) { return $component.find(Class, query);}", |
752 | 752 | "core": true, |
753 | 753 | "useCoreAPI": true |
754 | 754 | }, |
755 | | - "13e60108ce18975": { |
756 | | - "_id": "13e60108ce18975", |
| 755 | + "1815c1b1311be0b": { |
| 756 | + "_id": "1815c1b1311be0b", |
757 | 757 | "component": "Monoco", |
758 | 758 | "state": "system", |
759 | 759 | "action": "function system(name) { var System = null, system = {}, result = [], conf = {}; if (name) { conf.master = true; conf.name = name; System = monoco.require('MonocoSystem'); system = new System(conf); } else { result = monoco.find('MonocoSystem', {'master': true}); if (result.length) { system = result[0]; } } return system; }", |
760 | 760 | "core": true |
761 | 761 | }, |
762 | | - "134a9123381129a": { |
763 | | - "_id": "134a9123381129a", |
| 762 | + "1b4e81f84c1d6f1": { |
| 763 | + "_id": "1b4e81f84c1d6f1", |
764 | 764 | "component": "Monoco", |
765 | 765 | "state": "warning", |
766 | 766 | "action": "function warning(message) { console.warn('monoco: ' + message); }", |
767 | 767 | "core": true |
768 | 768 | }, |
769 | | - "1d25a184391f0ce": { |
770 | | - "_id": "1d25a184391f0ce", |
| 769 | + "1bbb615c1315840": { |
| 770 | + "_id": "1bbb615c1315840", |
771 | 771 | "component": "MonocoChannel", |
772 | 772 | "state": "listen", |
773 | 773 | "action": "function listen(event, action) { $channel.listen(event, action); }", |
774 | 774 | "core": true, |
775 | 775 | "useCoreAPI": true |
776 | 776 | }, |
777 | | - "14803180b012cf2": { |
778 | | - "_id": "14803180b012cf2", |
| 777 | + "169511374b1efa2": { |
| 778 | + "_id": "169511374b1efa2", |
779 | 779 | "component": "MonocoChannel", |
780 | 780 | "state": "send", |
781 | 781 | "action": "function send(message) { return $channel.send(message); }", |
782 | 782 | "core": true, |
783 | 783 | "useCoreAPI": true |
784 | 784 | }, |
785 | | - "1a8fb16c5912eec": { |
786 | | - "_id": "1a8fb16c5912eec", |
| 785 | + "19ebb1a0fd112d6": { |
| 786 | + "_id": "19ebb1a0fd112d6", |
787 | 787 | "component": "MonocoClassInfo", |
788 | 788 | "state": "event", |
789 | 789 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }", |
790 | 790 | "core": true |
791 | 791 | }, |
792 | | - "147cc1bf3f13c84": { |
793 | | - "_id": "147cc1bf3f13c84", |
| 792 | + "1095e1b5ba1e86d": { |
| 793 | + "_id": "1095e1b5ba1e86d", |
794 | 794 | "component": "MonocoClassInfo", |
795 | 795 | "state": "events", |
796 | 796 | "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; }", |
797 | 797 | "core": true |
798 | 798 | }, |
799 | | - "1fb0f1b2921db7b": { |
800 | | - "_id": "1fb0f1b2921db7b", |
| 799 | + "1faad11e241b3b8": { |
| 800 | + "_id": "1faad11e241b3b8", |
801 | 801 | "component": "MonocoClassInfo", |
802 | 802 | "state": "method", |
803 | 803 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }", |
804 | 804 | "core": true |
805 | 805 | }, |
806 | | - "105f619be61bd34": { |
807 | | - "_id": "105f619be61bd34", |
| 806 | + "1e4d41bce910b1b": { |
| 807 | + "_id": "1e4d41bce910b1b", |
808 | 808 | "component": "MonocoClassInfo", |
809 | 809 | "state": "methods", |
810 | 810 | "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; }", |
811 | 811 | "core": true |
812 | 812 | }, |
813 | | - "1b655199ad147cb": { |
814 | | - "_id": "1b655199ad147cb", |
| 813 | + "1c3371348f1823c": { |
| 814 | + "_id": "1c3371348f1823c", |
815 | 815 | "component": "MonocoClassInfo", |
816 | 816 | "state": "properties", |
817 | 817 | "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; }", |
818 | 818 | "core": true |
819 | 819 | }, |
820 | | - "1a77b1860619237": { |
821 | | - "_id": "1a77b1860619237", |
| 820 | + "1798b16d241bba0": { |
| 821 | + "_id": "1798b16d241bba0", |
822 | 822 | "component": "MonocoClassInfo", |
823 | 823 | "state": "property", |
824 | 824 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }", |
825 | 825 | "core": true |
826 | 826 | }, |
827 | | - "1e2261cd081fc04": { |
828 | | - "_id": "1e2261cd081fc04", |
| 827 | + "1639c19d3311b93": { |
| 828 | + "_id": "1639c19d3311b93", |
829 | 829 | "component": "MonocoComponent", |
830 | 830 | "state": "destroy", |
831 | 831 | "action": "function destroy() { $component.destroy(this.id()); }", |
832 | 832 | "core": true, |
833 | 833 | "useCoreAPI": true |
834 | 834 | }, |
835 | | - "1dd271944b11a7b": { |
836 | | - "_id": "1dd271944b11a7b", |
| 835 | + "169b61c0e41687f": { |
| 836 | + "_id": "169b61c0e41687f", |
837 | 837 | "component": "MonocoComponent", |
838 | 838 | "state": "off", |
839 | 839 | "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 + \"'\"}); } } }", |
840 | 840 | "core": true, |
841 | 841 | "useCoreAPI": true |
842 | 842 | }, |
843 | | - "1e3e214e06163b0": { |
844 | | - "_id": "1e3e214e06163b0", |
| 843 | + "1bb3b1eb7d1240c": { |
| 844 | + "_id": "1bb3b1eb7d1240c", |
845 | 845 | "component": "MonocoComponent", |
846 | 846 | "state": "require", |
847 | 847 | "action": "function require(id) { return $component.get(id); }", |
848 | 848 | "core": true, |
849 | 849 | "useCoreAPI": true |
850 | 850 | }, |
851 | | - "183781de2013941": { |
852 | | - "_id": "183781de2013941", |
| 851 | + "10eda1b595180eb": { |
| 852 | + "_id": "10eda1b595180eb", |
853 | 853 | "component": "MonocoDatabase", |
854 | 854 | "state": "subsystem", |
855 | 855 | "action": "function subsystem(params) { return $db.subsystem(params); }", |
856 | 856 | "core": true, |
857 | 857 | "useCoreAPI": true |
858 | 858 | }, |
859 | | - "10e951c5bd1e93e": { |
860 | | - "_id": "10e951c5bd1e93e", |
| 859 | + "1beda1dbca157b0": { |
| 860 | + "_id": "1beda1dbca157b0", |
861 | 861 | "component": "MonocoDatabase", |
862 | 862 | "state": "system", |
863 | 863 | "action": "function system(system) { return $db.system(system); }", |
864 | 864 | "core": true, |
865 | 865 | "useCoreAPI": true |
866 | 866 | }, |
867 | | - "10fcd19bcc1d955": { |
868 | | - "_id": "10fcd19bcc1d955", |
| 867 | + "1783614d1218496": { |
| 868 | + "_id": "1783614d1218496", |
869 | 869 | "component": "MonocoMetamodel", |
870 | 870 | "state": "create", |
871 | 871 | "action": "function create() { $metamodel.create(); }", |
872 | 872 | "core": true, |
873 | 873 | "useCoreAPI": true |
874 | 874 | }, |
875 | | - "181841b92c13d7d": { |
876 | | - "_id": "181841b92c13d7d", |
| 875 | + "1ef6c1171212871": { |
| 876 | + "_id": "1ef6c1171212871", |
877 | 877 | "component": "MonocoMetamodel", |
878 | 878 | "state": "schema", |
879 | 879 | "action": "function schema(schema) { $metamodel.schema(schema); }", |
880 | 880 | "core": true, |
881 | 881 | "useCoreAPI": true |
882 | 882 | }, |
883 | | - "119251ed051b49e": { |
884 | | - "_id": "119251ed051b49e", |
| 883 | + "1570715cb71d2a2": { |
| 884 | + "_id": "1570715cb71d2a2", |
885 | 885 | "component": "MonocoMetamodel", |
886 | 886 | "state": "type", |
887 | 887 | "action": "function type(type) { $metamodel.type(type); }", |
888 | 888 | "core": true, |
889 | 889 | "useCoreAPI": true |
890 | 890 | }, |
891 | | - "1870c15bc812a9c": { |
892 | | - "_id": "1870c15bc812a9c", |
| 891 | + "1411911749123d1": { |
| 892 | + "_id": "1411911749123d1", |
893 | 893 | "component": "MonocoSystem", |
894 | 894 | "state": "sync", |
895 | 895 | "action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }", |
896 | 896 | "core": true, |
897 | 897 | "useCoreAPI": true |
898 | 898 | }, |
899 | | - "13b5210e6e1fe8f": { |
900 | | - "_id": "13b5210e6e1fe8f", |
| 899 | + "112c61db7d10eef": { |
| 900 | + "_id": "112c61db7d10eef", |
901 | 901 | "component": "e89c617b6b15d24", |
902 | 902 | "state": "main", |
903 | 903 | "action": "function main() { var monoco = $component.get('monoco'); monoco.ready(); }", |
|
909 | 909 | "Monoco": { |
910 | 910 | "monoco": { |
911 | 911 | "_id": "monoco", |
912 | | - "version": "0.2.2" |
| 912 | + "version": "0.3.0" |
913 | 913 | } |
914 | 914 | }, |
915 | 915 | "MonocoChannel": { |
|
0 commit comments