Skip to content

Commit 3003d50

Browse files
Erwan CarriouErwan Carriou
authored andcommitted
- fix a bug on system exportation
1 parent db2e9f3 commit 3003d50

Some content is hidden

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

41 files changed

+249
-243
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monoco",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"description": "Design.Create.Compose",
55
"license": "GPL-3.0",
66
"homepage": "https://github.com/monocojs/monoco.git",

build/monoco-min.js

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

build/monoco.js

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

build/monoco.json

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monoco",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"description": "Design.Create.Compose",
55
"_id": "e89c617b6b15d24",
66
"schemas": {
@@ -764,158 +764,158 @@
764764
"core": true,
765765
"useCoreAPI": true
766766
},
767-
"17bb01c04c11348": {
768-
"_id": "17bb01c04c11348",
767+
"132211370812002": {
768+
"_id": "132211370812002",
769769
"component": "Monoco",
770770
"state": "error",
771771
"action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
772772
"core": true
773773
},
774-
"17be61c1861a051": {
775-
"_id": "17be61c1861a051",
774+
"1be1a146c61f007": {
775+
"_id": "1be1a146c61f007",
776776
"component": "Monoco",
777777
"state": "system",
778778
"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;}",
779779
"core": true,
780780
"useCoreAPI": true
781781
},
782-
"16ba6100991c6fd": {
783-
"_id": "16ba6100991c6fd",
782+
"1f76212d0e13948": {
783+
"_id": "1f76212d0e13948",
784784
"component": "Monoco",
785785
"state": "warning",
786786
"action": "function warning(message) { console.warn('monoco: ' + message); }",
787787
"core": true
788788
},
789-
"1910711c2213f52": {
790-
"_id": "1910711c2213f52",
789+
"1b8d8101d01935a": {
790+
"_id": "1b8d8101d01935a",
791791
"component": "MonocoClassInfo",
792792
"state": "collection",
793793
"action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }",
794794
"core": true
795795
},
796-
"1c3ea1335111f51": {
797-
"_id": "1c3ea1335111f51",
796+
"1cb9b14bd01a295": {
797+
"_id": "1cb9b14bd01a295",
798798
"component": "MonocoClassInfo",
799799
"state": "collections",
800800
"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; }",
801801
"core": true
802802
},
803-
"1630018bbb1ea75": {
804-
"_id": "1630018bbb1ea75",
803+
"10298150ed16586": {
804+
"_id": "10298150ed16586",
805805
"component": "MonocoClassInfo",
806806
"state": "event",
807807
"action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }",
808808
"core": true
809809
},
810-
"1704a153691d918": {
811-
"_id": "1704a153691d918",
810+
"1b8561cee41d3c9": {
811+
"_id": "1b8561cee41d3c9",
812812
"component": "MonocoClassInfo",
813813
"state": "events",
814814
"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; }",
815815
"core": true
816816
},
817-
"1015916e411ce01": {
818-
"_id": "1015916e411ce01",
817+
"137d814be515457": {
818+
"_id": "137d814be515457",
819819
"component": "MonocoClassInfo",
820820
"state": "method",
821821
"action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }",
822822
"core": true
823823
},
824-
"1741e18ace1da6e": {
825-
"_id": "1741e18ace1da6e",
824+
"12b2014ea41542a": {
825+
"_id": "12b2014ea41542a",
826826
"component": "MonocoClassInfo",
827827
"state": "methods",
828828
"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; }",
829829
"core": true
830830
},
831-
"16c61134a81a9e0": {
832-
"_id": "16c61134a81a9e0",
831+
"19fd7148ee1d0bf": {
832+
"_id": "19fd7148ee1d0bf",
833833
"component": "MonocoClassInfo",
834834
"state": "properties",
835835
"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; }",
836836
"core": true
837837
},
838-
"18c8e1d32b1177b": {
839-
"_id": "18c8e1d32b1177b",
838+
"125b416f68118eb": {
839+
"_id": "125b416f68118eb",
840840
"component": "MonocoClassInfo",
841841
"state": "property",
842842
"action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }",
843843
"core": true
844844
},
845-
"13d7c1b6881f2ac": {
846-
"_id": "13d7c1b6881f2ac",
845+
"1bd1b12b2d10bc7": {
846+
"_id": "1bd1b12b2d10bc7",
847847
"component": "MonocoComponent",
848848
"state": "destroy",
849849
"action": "function destroy() { $component.destroy(this.id()); }",
850850
"core": true,
851851
"useCoreAPI": true
852852
},
853-
"1da10153b9144e6": {
854-
"_id": "1da10153b9144e6",
853+
"1b3711581918281": {
854+
"_id": "1b3711581918281",
855855
"component": "MonocoComponent",
856856
"state": "off",
857857
"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 + \"'\"}); } } }",
858858
"core": true,
859859
"useCoreAPI": true
860860
},
861-
"1fc7e1b0f31b779": {
862-
"_id": "1fc7e1b0f31b779",
861+
"152711b83414eb0": {
862+
"_id": "152711b83414eb0",
863863
"component": "MonocoComponent",
864864
"state": "require",
865865
"action": "function require(id) { return $component.get(id); }",
866866
"core": true,
867867
"useCoreAPI": true
868868
},
869-
"1452f172f7123e1": {
870-
"_id": "1452f172f7123e1",
869+
"1d40c1c27c1501b": {
870+
"_id": "1d40c1c27c1501b",
871871
"component": "MonocoDatabase",
872872
"state": "collections",
873873
"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;}",
874874
"core": true,
875875
"useCoreAPI": true
876876
},
877-
"11f4f1cff0162aa": {
878-
"_id": "11f4f1cff0162aa",
877+
"10d751a2ab1138b": {
878+
"_id": "10d751a2ab1138b",
879879
"component": "MonocoDatabase",
880880
"state": "subsystem",
881881
"action": "function subsystem(params) { return $db.subsystem(params); }",
882882
"core": true,
883883
"useCoreAPI": true
884884
},
885-
"1c26417f661c5d9": {
886-
"_id": "1c26417f661c5d9",
885+
"12206193b915195": {
886+
"_id": "12206193b915195",
887887
"component": "MonocoDatabase",
888888
"state": "system",
889889
"action": "function system(system) { return $db.system(system); }",
890890
"core": true,
891891
"useCoreAPI": true
892892
},
893-
"149be1da281d5b7": {
894-
"_id": "149be1da281d5b7",
893+
"165a515d4414f1b": {
894+
"_id": "165a515d4414f1b",
895895
"component": "MonocoMetamodel",
896896
"state": "create",
897897
"action": "function create() { $metamodel.create(); }",
898898
"core": true,
899899
"useCoreAPI": true
900900
},
901-
"1f82a1e98013eb1": {
902-
"_id": "1f82a1e98013eb1",
901+
"1903c160ca1dac1": {
902+
"_id": "1903c160ca1dac1",
903903
"component": "MonocoMetamodel",
904904
"state": "schema",
905905
"action": "function schema(schema) { $metamodel.schema(schema); }",
906906
"core": true,
907907
"useCoreAPI": true
908908
},
909-
"1192c1cf27155cb": {
910-
"_id": "1192c1cf27155cb",
909+
"1851d1b7fb17838": {
910+
"_id": "1851d1b7fb17838",
911911
"component": "MonocoMetamodel",
912912
"state": "type",
913913
"action": "function type(type) { $metamodel.type(type); }",
914914
"core": true,
915915
"useCoreAPI": true
916916
},
917-
"108ad15c7919b44": {
918-
"_id": "108ad15c7919b44",
917+
"148841378911e21": {
918+
"_id": "148841378911e21",
919919
"component": "MonocoSystem",
920920
"state": "sync",
921921
"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); }",
@@ -927,7 +927,7 @@
927927
"Monoco": {
928928
"monoco": {
929929
"_id": "monoco",
930-
"version": "0.8.0"
930+
"version": "0.8.1"
931931
}
932932
},
933933
"MonocoDatabase": {

0 commit comments

Comments
 (0)