Skip to content

Commit 4f608fc

Browse files
Erwan CarriouErwan Carriou
authored andcommitted
- clean schema
1 parent 346354e commit 4f608fc

File tree

7 files changed

+193
-193
lines changed

7 files changed

+193
-193
lines changed

build/monoco-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/monoco.js

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

build/monoco.json

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@
317317
"_id": "MonocoComponentSchema",
318318
"_name": "MonocoComponentSchema",
319319
"_core": true,
320-
"on": "method",
321320
"classInfo": "property",
321+
"on": "method",
322322
"off": "method",
323323
"require": "method",
324324
"destroy": "method",
@@ -589,9 +589,9 @@
589589
"behaviors": "property",
590590
"types": "property",
591591
"components": "property",
592-
"ready": "event",
593592
"sync": "method",
594-
"main": "method"
593+
"main": "method",
594+
"ready": "event"
595595
}
596596
},
597597
"types": {
@@ -762,165 +762,165 @@
762762
"action": "function main() { var subsystems = [], systems = [], system = null, i = 0, length = 0; subsystems = $db.MonocoSystem.find({ 'subsystem': true }); subsystems.forEach(function (subsystem) { var subsystemId = subsystem._id; this.require(subsystemId).main(); }, this); if (typeof document !== 'undefined') { systems = document.querySelectorAll('link[rel=system]'); length = systems.length; for (i = 0; i < length; i++) { system = systems[i]; if (system.getAttribute('async') === 'false') { this.require('monoco').load(system.href, false); } else { this.require('monoco').load(system.href, true); } } if (length === 0) { this.require('monoco').ready(); } }}",
763763
"core": true
764764
},
765-
"11b7614f951821d": {
766-
"_id": "11b7614f951821d",
765+
"1ad6416fb7145af": {
766+
"_id": "1ad6416fb7145af",
767767
"component": "Monoco",
768768
"state": "error",
769769
"action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
770770
"core": true
771771
},
772-
"16e2d15e541288c": {
773-
"_id": "16e2d15e541288c",
772+
"10f75161c312432": {
773+
"_id": "10f75161c312432",
774774
"component": "Monoco",
775775
"state": "system",
776776
"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;}",
777777
"core": true
778778
},
779-
"14b59147071efa9": {
780-
"_id": "14b59147071efa9",
779+
"1b034139cb1640c": {
780+
"_id": "1b034139cb1640c",
781781
"component": "Monoco",
782782
"state": "warning",
783783
"action": "function warning(message) { console.warn('monoco: ' + message); }",
784784
"core": true
785785
},
786-
"1c1d610ee8133f4": {
787-
"_id": "1c1d610ee8133f4",
786+
"14ca9106ee1b78e": {
787+
"_id": "14ca9106ee1b78e",
788788
"component": "MonocoChannel",
789789
"state": "listen",
790790
"action": "function listen(event, action) { $channel.listen(event, action); }",
791791
"core": true,
792792
"useCoreAPI": true
793793
},
794-
"15f9c18c9818840": {
795-
"_id": "15f9c18c9818840",
794+
"1f0bc18e69157e8": {
795+
"_id": "1f0bc18e69157e8",
796796
"component": "MonocoChannel",
797797
"state": "send",
798798
"action": "function send(message) { return $channel.send(message); }",
799799
"core": true,
800800
"useCoreAPI": true
801801
},
802-
"1877315d9018954": {
803-
"_id": "1877315d9018954",
802+
"1ce9d1ecff1bf3a": {
803+
"_id": "1ce9d1ecff1bf3a",
804804
"component": "MonocoClassInfo",
805805
"state": "collection",
806806
"action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }",
807807
"core": true
808808
},
809-
"16eea112f41f961": {
810-
"_id": "16eea112f41f961",
809+
"1cd0e1c99f1b76b": {
810+
"_id": "1cd0e1c99f1b76b",
811811
"component": "MonocoClassInfo",
812812
"state": "collections",
813813
"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; }",
814814
"core": true
815815
},
816-
"16a091f1f11a0e1": {
817-
"_id": "16a091f1f11a0e1",
816+
"164c212ea61d2fe": {
817+
"_id": "164c212ea61d2fe",
818818
"component": "MonocoClassInfo",
819819
"state": "event",
820820
"action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }",
821821
"core": true
822822
},
823-
"19fb612ad115cb9": {
824-
"_id": "19fb612ad115cb9",
823+
"1713f19cb312466": {
824+
"_id": "1713f19cb312466",
825825
"component": "MonocoClassInfo",
826826
"state": "events",
827827
"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; }",
828828
"core": true
829829
},
830-
"17d091f94312a3f": {
831-
"_id": "17d091f94312a3f",
830+
"1405718c1d133ed": {
831+
"_id": "1405718c1d133ed",
832832
"component": "MonocoClassInfo",
833833
"state": "method",
834834
"action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }",
835835
"core": true
836836
},
837-
"1c05f148c61b2a9": {
838-
"_id": "1c05f148c61b2a9",
837+
"18ede1c29810b6d": {
838+
"_id": "18ede1c29810b6d",
839839
"component": "MonocoClassInfo",
840840
"state": "methods",
841841
"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; }",
842842
"core": true
843843
},
844-
"1a5531db431d77b": {
845-
"_id": "1a5531db431d77b",
844+
"1c58f1875e193b3": {
845+
"_id": "1c58f1875e193b3",
846846
"component": "MonocoClassInfo",
847847
"state": "properties",
848848
"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; }",
849849
"core": true
850850
},
851-
"1ffbd18db110e5f": {
852-
"_id": "1ffbd18db110e5f",
851+
"1c1911b81f192b7": {
852+
"_id": "1c1911b81f192b7",
853853
"component": "MonocoClassInfo",
854854
"state": "property",
855855
"action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }",
856856
"core": true
857857
},
858-
"1f2811ade21d43f": {
859-
"_id": "1f2811ade21d43f",
858+
"18bad110751d647": {
859+
"_id": "18bad110751d647",
860860
"component": "MonocoComponent",
861861
"state": "destroy",
862862
"action": "function destroy() { $component.destroy(this.id()); }",
863863
"core": true,
864864
"useCoreAPI": true
865865
},
866-
"1155a148481613c": {
867-
"_id": "1155a148481613c",
866+
"1e67d13c1b1837f": {
867+
"_id": "1e67d13c1b1837f",
868868
"component": "MonocoComponent",
869869
"state": "off",
870870
"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 + \"'\"}); } } }",
871871
"core": true,
872872
"useCoreAPI": true
873873
},
874-
"18fe31951f141dd": {
875-
"_id": "18fe31951f141dd",
874+
"11ce117ceb18a18": {
875+
"_id": "11ce117ceb18a18",
876876
"component": "MonocoComponent",
877877
"state": "require",
878878
"action": "function require(id) { return $component.get(id); }",
879879
"core": true,
880880
"useCoreAPI": true
881881
},
882-
"169511710e1d5ab": {
883-
"_id": "169511710e1d5ab",
882+
"11dec1f0ed10d24": {
883+
"_id": "11dec1f0ed10d24",
884884
"component": "MonocoDatabase",
885885
"state": "subsystem",
886886
"action": "function subsystem(params) { return $db.subsystem(params); }",
887887
"core": true,
888888
"useCoreAPI": true
889889
},
890-
"182501cbe315a58": {
891-
"_id": "182501cbe315a58",
890+
"139d11e2db1c219": {
891+
"_id": "139d11e2db1c219",
892892
"component": "MonocoDatabase",
893893
"state": "system",
894894
"action": "function system(system) { return $db.system(system); }",
895895
"core": true,
896896
"useCoreAPI": true
897897
},
898-
"1dc3111ec116b86": {
899-
"_id": "1dc3111ec116b86",
898+
"1b9b91e4371ed9f": {
899+
"_id": "1b9b91e4371ed9f",
900900
"component": "MonocoMetamodel",
901901
"state": "create",
902902
"action": "function create() { $metamodel.create(); }",
903903
"core": true,
904904
"useCoreAPI": true
905905
},
906-
"1f0591deb3149d6": {
907-
"_id": "1f0591deb3149d6",
906+
"161e0178211c6cb": {
907+
"_id": "161e0178211c6cb",
908908
"component": "MonocoMetamodel",
909909
"state": "schema",
910910
"action": "function schema(schema) { $metamodel.schema(schema); }",
911911
"core": true,
912912
"useCoreAPI": true
913913
},
914-
"1922e13a0414046": {
915-
"_id": "1922e13a0414046",
914+
"1c16919f3618363": {
915+
"_id": "1c16919f3618363",
916916
"component": "MonocoMetamodel",
917917
"state": "type",
918918
"action": "function type(type) { $metamodel.type(type); }",
919919
"core": true,
920920
"useCoreAPI": true
921921
},
922-
"1d4b314ebe1c34c": {
923-
"_id": "1d4b314ebe1c34c",
922+
"169e71562912210": {
923+
"_id": "169e71562912210",
924924
"component": "MonocoSystem",
925925
"state": "sync",
926926
"action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }",

0 commit comments

Comments
 (0)