Skip to content

Commit 5017818

Browse files
Erwan CarriouErwan Carriou
authored andcommitted
- fix an error wirh on method
- clean dump
1 parent 3a810d9 commit 5017818

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+335
-305
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* monoco
3-
* Design.Create.Compose
3+
* A runtime for system
44
* http://monoco.io/
55
* @ecarriou
66
*

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
monoco
2-
Design.Create.Compose
2+
A runtime for system
33
http://monoco.io/
44
@ecarriou
55

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "monoco",
3-
"version": "0.8.1",
4-
"description": "Design.Create.Compose",
3+
"version": "0.8.2",
4+
"description": "A runtime for your system",
55
"license": "GPL-3.0",
66
"homepage": "https://github.com/monocojs/monoco.git",
77
"author": {

build/monoco-min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/monoco.js

Lines changed: 72 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/monoco.json

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "monoco",
3-
"version": "0.8.1",
4-
"description": "Design.Create.Compose",
3+
"version": "0.8.2",
4+
"description": "A runtime for system",
55
"_id": "e89c617b6b15d24",
66
"schemas": {
77
"MonocoSchema": {
@@ -764,158 +764,158 @@
764764
"core": true,
765765
"useCoreAPI": true
766766
},
767-
"19c23108ac128b5": {
768-
"_id": "19c23108ac128b5",
767+
"1dbcb1a4dd10005": {
768+
"_id": "1dbcb1a4dd10005",
769769
"component": "Monoco",
770770
"state": "error",
771771
"action": "function error(data) {\n console.error('monoco: ' + data.message, data.error);\n}",
772772
"core": true
773773
},
774-
"1a20016d5914ae4": {
775-
"_id": "1a20016d5914ae4",
774+
"192dd1f0be112f0": {
775+
"_id": "192dd1f0be112f0",
776776
"component": "Monoco",
777777
"state": "system",
778778
"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}",
779779
"core": true,
780780
"useCoreAPI": true
781781
},
782-
"1bae114b22119fd": {
783-
"_id": "1bae114b22119fd",
782+
"1001017b581245c": {
783+
"_id": "1001017b581245c",
784784
"component": "Monoco",
785785
"state": "warning",
786786
"action": "function warning(message) {\n console.warn('monoco: ' + message);\n}",
787787
"core": true
788788
},
789-
"118d011e0f1939a": {
790-
"_id": "118d011e0f1939a",
789+
"16d4012f63187f9": {
790+
"_id": "16d4012f63187f9",
791791
"component": "MonocoClassInfo",
792792
"state": "collection",
793793
"action": "function collection(name) {\n var result = {};\n if (this.metamodel()[name] === 'collection') {\n result = this.model()[name];\n } \n \n return result; \n}",
794794
"core": true
795795
},
796-
"1abbb118021d6a4": {
797-
"_id": "1abbb118021d6a4",
796+
"1a18f1061812424": {
797+
"_id": "1a18f1061812424",
798798
"component": "MonocoClassInfo",
799799
"state": "collections",
800800
"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}",
801801
"core": true
802802
},
803-
"1d6d51b58d12153": {
804-
"_id": "1d6d51b58d12153",
803+
"1af5719b0a1b5ad": {
804+
"_id": "1af5719b0a1b5ad",
805805
"component": "MonocoClassInfo",
806806
"state": "event",
807807
"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}",
808808
"core": true
809809
},
810-
"1d8121e61c130da": {
811-
"_id": "1d8121e61c130da",
810+
"1fcc712b0e178c9": {
811+
"_id": "1fcc712b0e178c9",
812812
"component": "MonocoClassInfo",
813813
"state": "events",
814814
"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}",
815815
"core": true
816816
},
817-
"138c31a48217315": {
818-
"_id": "138c31a48217315",
817+
"18f2a1069718822": {
818+
"_id": "18f2a1069718822",
819819
"component": "MonocoClassInfo",
820820
"state": "method",
821821
"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}",
822822
"core": true
823823
},
824-
"19bd31b00915ddb": {
825-
"_id": "19bd31b00915ddb",
824+
"104b81f7ad1d4dd": {
825+
"_id": "104b81f7ad1d4dd",
826826
"component": "MonocoClassInfo",
827827
"state": "methods",
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 \n}",
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}",
829829
"core": true
830830
},
831-
"17e1014e3b12481": {
832-
"_id": "17e1014e3b12481",
831+
"137cb1ac45178b3": {
832+
"_id": "137cb1ac45178b3",
833833
"component": "MonocoClassInfo",
834834
"state": "properties",
835835
"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}",
836836
"core": true
837837
},
838-
"1b1b11753e1d009": {
839-
"_id": "1b1b11753e1d009",
838+
"190db1c1a2174c5": {
839+
"_id": "190db1c1a2174c5",
840840
"component": "MonocoClassInfo",
841841
"state": "property",
842842
"action": "function property(name) {\n var result = {};\n \n if (this.metamodel()[name] === 'property') {\n result = this.model()[name];\n }\n return result;\n}",
843843
"core": true
844844
},
845-
"173191c57a1c951": {
846-
"_id": "173191c57a1c951",
845+
"117a2102f11fae8": {
846+
"_id": "117a2102f11fae8",
847847
"component": "MonocoComponent",
848848
"state": "destroy",
849849
"action": "function destroy() {\n $component.destroy(this.id());\n}",
850850
"core": true,
851851
"useCoreAPI": true
852852
},
853-
"1f5c0195e1175c6": {
854-
"_id": "1f5c0195e1175c6",
853+
"16ab91050e1ea10": {
854+
"_id": "16ab91050e1ea10",
855855
"component": "MonocoComponent",
856856
"state": "off",
857857
"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}",
858858
"core": true,
859859
"useCoreAPI": true
860860
},
861-
"1b3d01f2a612d08": {
862-
"_id": "1b3d01f2a612d08",
861+
"12178137bb10430": {
862+
"_id": "12178137bb10430",
863863
"component": "MonocoComponent",
864864
"state": "require",
865865
"action": "function require(id) {\n return $component.get(id);\n}",
866866
"core": true,
867867
"useCoreAPI": true
868868
},
869-
"18bb01ca3e1fa70": {
870-
"_id": "18bb01ca3e1fa70",
869+
"1f5ba1b2a4170a7": {
870+
"_id": "1f5ba1b2a4170a7",
871871
"component": "MonocoDatabase",
872872
"state": "collections",
873873
"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}",
874874
"core": true,
875875
"useCoreAPI": true
876876
},
877-
"12cd31c6c718ee6": {
878-
"_id": "12cd31c6c718ee6",
877+
"13216133bf1a256": {
878+
"_id": "13216133bf1a256",
879879
"component": "MonocoDatabase",
880880
"state": "subsystem",
881881
"action": "function subsystem(params) {\n return $db.subsystem(params);\n}",
882882
"core": true,
883883
"useCoreAPI": true
884884
},
885-
"126921432a123ab": {
886-
"_id": "126921432a123ab",
885+
"16b0318e6615c7c": {
886+
"_id": "16b0318e6615c7c",
887887
"component": "MonocoDatabase",
888888
"state": "system",
889889
"action": "function system(system) {\n return $db.system(system);\n}",
890890
"core": true,
891891
"useCoreAPI": true
892892
},
893-
"1038514257144f2": {
894-
"_id": "1038514257144f2",
893+
"196b0102791a8dd": {
894+
"_id": "196b0102791a8dd",
895895
"component": "MonocoMetamodel",
896896
"state": "create",
897897
"action": "function create() {\n $metamodel.create();\n}",
898898
"core": true,
899899
"useCoreAPI": true
900900
},
901-
"1503110cca1f4e6": {
902-
"_id": "1503110cca1f4e6",
901+
"1476d17a621a10c": {
902+
"_id": "1476d17a621a10c",
903903
"component": "MonocoMetamodel",
904904
"state": "schema",
905905
"action": "function schema(schema) {\n $metamodel.schema(schema);\n}",
906906
"core": true,
907907
"useCoreAPI": true
908908
},
909-
"198b619b3e12f12": {
910-
"_id": "198b619b3e12f12",
909+
"17bab175b2118ed": {
910+
"_id": "17bab175b2118ed",
911911
"component": "MonocoMetamodel",
912912
"state": "type",
913913
"action": "function type(type) {\n $metamodel.type(type);\n}",
914914
"core": true,
915915
"useCoreAPI": true
916916
},
917-
"1ff1b1335a1b23b": {
918-
"_id": "1ff1b1335a1b23b",
917+
"14d9e141d11fcd5": {
918+
"_id": "14d9e141d11fcd5",
919919
"component": "MonocoSystem",
920920
"state": "sync",
921921
"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,7 +927,7 @@
927927
"Monoco": {
928928
"monoco": {
929929
"_id": "monoco",
930-
"version": "0.8.1"
930+
"version": "0.8.2"
931931
}
932932
},
933933
"MonocoDatabase": {

0 commit comments

Comments
 (0)