Skip to content

Commit 82571e7

Browse files
Erwan CarriouErwan Carriou
authored andcommitted
- update monoco web addon
- update karma conf
1 parent 0238763 commit 82571e7

Some content is hidden

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

48 files changed

+307
-294
lines changed

addons/web.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,24 @@
55
"_id": "133421d0c313d2d",
66
"schemas": {
77
"MonocoSchema": {
8+
"load": "method",
89
"ready": "event"
910
},
1011
"Monoco": {
12+
"load": {
13+
"params": [
14+
{
15+
"name": "url",
16+
"type": "string"
17+
},
18+
{
19+
"name": "async",
20+
"type": "boolean",
21+
"mandatory": false,
22+
"default": true
23+
}
24+
]
25+
},
1126
"ready": {}
1227
}
1328
},

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.6.6",
3+
"version": "0.6.7",
44
"description": "A Model and a NoSQL Database for Components",
55
"license": "GPL-3.0",
66
"homepage": "https://github.com/monocojs/monoco.git",

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: 59 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/monoco.json

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "monoco",
3-
"version": "0.6.6",
3+
"version": "0.6.7",
44
"description": "A Model and a NoSQL Database for Components",
55
"_id": "e89c617b6b15d24",
66
"schemas": {
77
"MonocoSchema": {
8+
"load": "method",
89
"ready": "event",
910
"_id": "MonocoSchema",
1011
"_name": "MonocoSchema",
@@ -13,25 +14,10 @@
1314
],
1415
"_core": true,
1516
"version": "property",
16-
"load": "method",
1717
"system": "method",
1818
"warning": "event"
1919
},
2020
"Monoco": {
21-
"ready": {},
22-
"_id": "Monoco",
23-
"_name": "Monoco",
24-
"_schema": "MonocoSchema",
25-
"_inherit": [
26-
"MonocoComponent"
27-
],
28-
"_core": true,
29-
"version": {
30-
"type": "string",
31-
"readOnly": true,
32-
"mandatory": true,
33-
"default": "0.0.0"
34-
},
3521
"load": {
3622
"params": [
3723
{
@@ -46,6 +32,20 @@
4632
}
4733
]
4834
},
35+
"ready": {},
36+
"_id": "Monoco",
37+
"_name": "Monoco",
38+
"_schema": "MonocoSchema",
39+
"_inherit": [
40+
"MonocoComponent"
41+
],
42+
"_core": true,
43+
"version": {
44+
"type": "string",
45+
"readOnly": true,
46+
"mandatory": true,
47+
"default": "0.0.0"
48+
},
4949
"warning": {
5050
"params": [
5151
{
@@ -762,165 +762,165 @@
762762
"action": "function main() { 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]; if (system.getAttribute('async') === 'true') { this.require('monoco').load(system.href, true); } else { this.require('monoco').load(system.href, false); } } if (length === 0) { this.require('monoco').ready(); } }}",
763763
"core": true
764764
},
765-
"1d8ea13b841657f": {
766-
"_id": "1d8ea13b841657f",
765+
"1b9c41ce431f02e": {
766+
"_id": "1b9c41ce431f02e",
767767
"component": "Monoco",
768768
"state": "error",
769769
"action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
770770
"core": true
771771
},
772-
"1beb7120a31c7f0": {
773-
"_id": "1beb7120a31c7f0",
772+
"1fcf01a9e71b80d": {
773+
"_id": "1fcf01a9e71b80d",
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-
"15b09135281558a": {
780-
"_id": "15b09135281558a",
779+
"1874c18b1d1e6b6": {
780+
"_id": "1874c18b1d1e6b6",
781781
"component": "Monoco",
782782
"state": "warning",
783783
"action": "function warning(message) { console.warn('monoco: ' + message); }",
784784
"core": true
785785
},
786-
"1be1c1e47513856": {
787-
"_id": "1be1c1e47513856",
786+
"10bbf1acb311819": {
787+
"_id": "10bbf1acb311819",
788788
"component": "MonocoChannel",
789789
"state": "listen",
790790
"action": "function listen(event, action) { $channel.listen(event, action); }",
791791
"core": true,
792792
"useCoreAPI": true
793793
},
794-
"1724919c5e1717b": {
795-
"_id": "1724919c5e1717b",
794+
"140a01e35819e5c": {
795+
"_id": "140a01e35819e5c",
796796
"component": "MonocoChannel",
797797
"state": "send",
798798
"action": "function send(message) { return $channel.send(message); }",
799799
"core": true,
800800
"useCoreAPI": true
801801
},
802-
"148341e75812479": {
803-
"_id": "148341e75812479",
802+
"1c43f10106143fe": {
803+
"_id": "1c43f10106143fe",
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-
"1a15a123451ad22": {
810-
"_id": "1a15a123451ad22",
809+
"135871cc1c12988": {
810+
"_id": "135871cc1c12988",
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-
"111b71a79d1126d": {
817-
"_id": "111b71a79d1126d",
816+
"1ad7111a65133a1": {
817+
"_id": "1ad7111a65133a1",
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-
"165091cc8c17137": {
824-
"_id": "165091cc8c17137",
823+
"13e5d17aa2176c5": {
824+
"_id": "13e5d17aa2176c5",
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-
"15fdf14c1015ccb": {
831-
"_id": "15fdf14c1015ccb",
830+
"1c5d6171331407c": {
831+
"_id": "1c5d6171331407c",
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-
"18b201b0ff1f069": {
838-
"_id": "18b201b0ff1f069",
837+
"1f28c1cd0619ce6": {
838+
"_id": "1f28c1cd0619ce6",
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-
"16822125ea160b3": {
845-
"_id": "16822125ea160b3",
844+
"176501300f17fac": {
845+
"_id": "176501300f17fac",
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-
"153651b73b1e19b": {
852-
"_id": "153651b73b1e19b",
851+
"12192159eb14867": {
852+
"_id": "12192159eb14867",
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-
"1abd11501813100": {
859-
"_id": "1abd11501813100",
858+
"11919185a918b08": {
859+
"_id": "11919185a918b08",
860860
"component": "MonocoComponent",
861861
"state": "destroy",
862862
"action": "function destroy() { $component.destroy(this.id()); }",
863863
"core": true,
864864
"useCoreAPI": true
865865
},
866-
"1a755107de1bbc6": {
867-
"_id": "1a755107de1bbc6",
866+
"10b4c1829016bb6": {
867+
"_id": "10b4c1829016bb6",
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-
"1123715c321d206": {
875-
"_id": "1123715c321d206",
874+
"16e5d1ba451d5ea": {
875+
"_id": "16e5d1ba451d5ea",
876876
"component": "MonocoComponent",
877877
"state": "require",
878878
"action": "function require(id) { return $component.get(id); }",
879879
"core": true,
880880
"useCoreAPI": true
881881
},
882-
"157fa1e64919930": {
883-
"_id": "157fa1e64919930",
882+
"127991ab9e1e3e8": {
883+
"_id": "127991ab9e1e3e8",
884884
"component": "MonocoDatabase",
885885
"state": "subsystem",
886886
"action": "function subsystem(params) { return $db.subsystem(params); }",
887887
"core": true,
888888
"useCoreAPI": true
889889
},
890-
"19b6510efb1756f": {
891-
"_id": "19b6510efb1756f",
890+
"1e2c11b1ac14565": {
891+
"_id": "1e2c11b1ac14565",
892892
"component": "MonocoDatabase",
893893
"state": "system",
894894
"action": "function system(system) { return $db.system(system); }",
895895
"core": true,
896896
"useCoreAPI": true
897897
},
898-
"14c3c1a77a1607b": {
899-
"_id": "14c3c1a77a1607b",
898+
"17fcf1e9c81306a": {
899+
"_id": "17fcf1e9c81306a",
900900
"component": "MonocoMetamodel",
901901
"state": "create",
902902
"action": "function create() { $metamodel.create(); }",
903903
"core": true,
904904
"useCoreAPI": true
905905
},
906-
"1da4d12d1319611": {
907-
"_id": "1da4d12d1319611",
906+
"1ff5917d381416a": {
907+
"_id": "1ff5917d381416a",
908908
"component": "MonocoMetamodel",
909909
"state": "schema",
910910
"action": "function schema(schema) { $metamodel.schema(schema); }",
911911
"core": true,
912912
"useCoreAPI": true
913913
},
914-
"1a0021589912d96": {
915-
"_id": "1a0021589912d96",
914+
"152141b7d11b413": {
915+
"_id": "152141b7d11b413",
916916
"component": "MonocoMetamodel",
917917
"state": "type",
918918
"action": "function type(type) { $metamodel.type(type); }",
919919
"core": true,
920920
"useCoreAPI": true
921921
},
922-
"1f88a17eff11ceb": {
923-
"_id": "1f88a17eff11ceb",
922+
"1b373115c81ead1": {
923+
"_id": "1b373115c81ead1",
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); }",
@@ -932,7 +932,7 @@
932932
"Monoco": {
933933
"monoco": {
934934
"_id": "monoco",
935-
"version": "0.6.6"
935+
"version": "0.6.7"
936936
}
937937
},
938938
"MonocoChannel": {

0 commit comments

Comments
 (0)