Skip to content

Commit 23f35dd

Browse files
Erwan CarriouErwan Carriou
authored andcommitted
- update to 0.7.5
- update documentation
1 parent 04bcf49 commit 23f35dd

Some content is hidden

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

60 files changed

+285
-283
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-
* A Model and a NoSQL Database for Components
3+
* Design.Create.Compose
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-
A Model and a NoSQL Database for Components
2+
Design.Create.Compose
33
http://monoco.io/
44
@ecarriou
55

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ It is a **5-in-1 JavaScript library**:
1616
* it is an **ODM (Object Document Mapper)** to manage your components as NoSQL documents and
1717
* it is **a micro NoSQL Database** that stores your components and can export/import them into another monoco NoSQL Database.
1818

19-
Finally monoco helps you to design, create and store components.
19+
Finally monoco helps you to design, create and compose components.
2020

2121
## Installation
2222

@@ -54,7 +54,7 @@ You will find examples on [monoco website](https://monoco.readme.io/docs/a-basic
5454

5555
## Documentation
5656

57-
You will find documentations on [monoco website](https://monoco.readme.io).
57+
You will find documentations on [monoco website](https://monoco.readme.io/docs).
5858

5959
## Build monoco
6060

bower.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "monoco",
3-
"version": "0.7.2",
4-
"description": "A Model and a NoSQL Database for Components",
3+
"version": "0.7.5",
4+
"description": "Design.Create.Compose",
55
"license": "GPL-3.0",
66
"homepage": "https://github.com/monocojs/monoco.git",
77
"author": {
@@ -13,6 +13,7 @@
1313
"keywords": [
1414
"mda",
1515
"metamodel",
16+
"schema",
1617
"odm",
1718
"model",
1819
"design",

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

build/monoco.json

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "monoco",
3-
"version": "0.7.2",
4-
"description": "A Model and a NoSQL Database for Components",
3+
"version": "0.7.5",
4+
"description": "Design.Create.Compose",
55
"_id": "e89c617b6b15d24",
66
"schemas": {
77
"MonocoSchema": {
@@ -767,174 +767,174 @@
767767
"core": true,
768768
"useCoreAPI": true
769769
},
770-
"1302e13eed1a03c": {
771-
"_id": "1302e13eed1a03c",
770+
"1f65512ec013b6f": {
771+
"_id": "1f65512ec013b6f",
772772
"component": "Monoco",
773773
"state": "error",
774774
"action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
775775
"core": true
776776
},
777-
"16c471e4941c644": {
778-
"_id": "16c471e4941c644",
777+
"15b1813caa13bd0": {
778+
"_id": "15b1813caa13bd0",
779779
"component": "Monoco",
780780
"state": "system",
781781
"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;}",
782782
"core": true,
783783
"useCoreAPI": true
784784
},
785-
"13b7f1fb671e39d": {
786-
"_id": "13b7f1fb671e39d",
785+
"16aba117271b489": {
786+
"_id": "16aba117271b489",
787787
"component": "Monoco",
788788
"state": "warning",
789789
"action": "function warning(message) { console.warn('monoco: ' + message); }",
790790
"core": true
791791
},
792-
"10f95179ec1aac4": {
793-
"_id": "10f95179ec1aac4",
792+
"16d5d16d9316831": {
793+
"_id": "16d5d16d9316831",
794794
"component": "MonocoChannel",
795795
"state": "listen",
796796
"action": "function listen(event, action) { $channel.listen(event, action); }",
797797
"core": true,
798798
"useCoreAPI": true
799799
},
800-
"132421889f1eb42": {
801-
"_id": "132421889f1eb42",
800+
"1301e1aa6b14cf5": {
801+
"_id": "1301e1aa6b14cf5",
802802
"component": "MonocoChannel",
803803
"state": "send",
804804
"action": "function send(message) { return $channel.send(message); }",
805805
"core": true,
806806
"useCoreAPI": true
807807
},
808-
"198191d211179d9": {
809-
"_id": "198191d211179d9",
808+
"14b591512e19970": {
809+
"_id": "14b591512e19970",
810810
"component": "MonocoClassInfo",
811811
"state": "collection",
812812
"action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }",
813813
"core": true
814814
},
815-
"194cb1cfe412ae0": {
816-
"_id": "194cb1cfe412ae0",
815+
"14a121399a19e01": {
816+
"_id": "14a121399a19e01",
817817
"component": "MonocoClassInfo",
818818
"state": "collections",
819819
"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; }",
820820
"core": true
821821
},
822-
"198d71966b1d628": {
823-
"_id": "198d71966b1d628",
822+
"1357017b7e1cba4": {
823+
"_id": "1357017b7e1cba4",
824824
"component": "MonocoClassInfo",
825825
"state": "event",
826826
"action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }",
827827
"core": true
828828
},
829-
"167181f3ce19fcc": {
830-
"_id": "167181f3ce19fcc",
829+
"1c792155191651e": {
830+
"_id": "1c792155191651e",
831831
"component": "MonocoClassInfo",
832832
"state": "events",
833833
"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; }",
834834
"core": true
835835
},
836-
"164461951412489": {
837-
"_id": "164461951412489",
836+
"1ba18147491758c": {
837+
"_id": "1ba18147491758c",
838838
"component": "MonocoClassInfo",
839839
"state": "method",
840840
"action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }",
841841
"core": true
842842
},
843-
"1007a10e6a1dc4c": {
844-
"_id": "1007a10e6a1dc4c",
843+
"171ec1bf3216fb5": {
844+
"_id": "171ec1bf3216fb5",
845845
"component": "MonocoClassInfo",
846846
"state": "methods",
847847
"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; }",
848848
"core": true
849849
},
850-
"190d01cc3c12f1c": {
851-
"_id": "190d01cc3c12f1c",
850+
"1bbe418c891734c": {
851+
"_id": "1bbe418c891734c",
852852
"component": "MonocoClassInfo",
853853
"state": "properties",
854854
"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; }",
855855
"core": true
856856
},
857-
"1d68e1baf01a0c2": {
858-
"_id": "1d68e1baf01a0c2",
857+
"1eafb1c64011fc4": {
858+
"_id": "1eafb1c64011fc4",
859859
"component": "MonocoClassInfo",
860860
"state": "property",
861861
"action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }",
862862
"core": true
863863
},
864-
"1eba111bd3151a6": {
865-
"_id": "1eba111bd3151a6",
864+
"19c8b1e6861ae6b": {
865+
"_id": "19c8b1e6861ae6b",
866866
"component": "MonocoComponent",
867867
"state": "destroy",
868868
"action": "function destroy() { $component.destroy(this.id()); }",
869869
"core": true,
870870
"useCoreAPI": true
871871
},
872-
"101a814f6c10c62": {
873-
"_id": "101a814f6c10c62",
872+
"103d1199d31cf03": {
873+
"_id": "103d1199d31cf03",
874874
"component": "MonocoComponent",
875875
"state": "off",
876876
"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 + \"'\"}); } } }",
877877
"core": true,
878878
"useCoreAPI": true
879879
},
880-
"1f5471a45a1807d": {
881-
"_id": "1f5471a45a1807d",
880+
"17006155fe1267a": {
881+
"_id": "17006155fe1267a",
882882
"component": "MonocoComponent",
883883
"state": "require",
884884
"action": "function require(id) { return $component.get(id); }",
885885
"core": true,
886886
"useCoreAPI": true
887887
},
888-
"1883010e0314a1c": {
889-
"_id": "1883010e0314a1c",
888+
"182341cc6e11bfb": {
889+
"_id": "182341cc6e11bfb",
890890
"component": "MonocoDatabase",
891891
"state": "collections",
892892
"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;}",
893893
"core": true,
894894
"useCoreAPI": true
895895
},
896-
"1dc8413ead1f809": {
897-
"_id": "1dc8413ead1f809",
896+
"1701b1ff081f949": {
897+
"_id": "1701b1ff081f949",
898898
"component": "MonocoDatabase",
899899
"state": "subsystem",
900900
"action": "function subsystem(params) { return $db.subsystem(params); }",
901901
"core": true,
902902
"useCoreAPI": true
903903
},
904-
"18be21f3ca18c8a": {
905-
"_id": "18be21f3ca18c8a",
904+
"1fac41a5c51b890": {
905+
"_id": "1fac41a5c51b890",
906906
"component": "MonocoDatabase",
907907
"state": "system",
908908
"action": "function system(system) { return $db.system(system); }",
909909
"core": true,
910910
"useCoreAPI": true
911911
},
912-
"1ca4315f921ecb7": {
913-
"_id": "1ca4315f921ecb7",
912+
"10cc81833e1f00e": {
913+
"_id": "10cc81833e1f00e",
914914
"component": "MonocoMetamodel",
915915
"state": "create",
916916
"action": "function create() { $metamodel.create(); }",
917917
"core": true,
918918
"useCoreAPI": true
919919
},
920-
"18cfc1917c1ab4b": {
921-
"_id": "18cfc1917c1ab4b",
920+
"1fbe5137b31060f": {
921+
"_id": "1fbe5137b31060f",
922922
"component": "MonocoMetamodel",
923923
"state": "schema",
924924
"action": "function schema(schema) { $metamodel.schema(schema); }",
925925
"core": true,
926926
"useCoreAPI": true
927927
},
928-
"1dcfb187dd1035a": {
929-
"_id": "1dcfb187dd1035a",
928+
"1843715b8714404": {
929+
"_id": "1843715b8714404",
930930
"component": "MonocoMetamodel",
931931
"state": "type",
932932
"action": "function type(type) { $metamodel.type(type); }",
933933
"core": true,
934934
"useCoreAPI": true
935935
},
936-
"160fc1a46b11495": {
937-
"_id": "160fc1a46b11495",
936+
"1fb091b05f172fd": {
937+
"_id": "1fb091b05f172fd",
938938
"component": "MonocoSystem",
939939
"state": "sync",
940940
"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); }",
@@ -946,7 +946,7 @@
946946
"Monoco": {
947947
"monoco": {
948948
"_id": "monoco",
949-
"version": "0.7.2"
949+
"version": "0.7.5"
950950
}
951951
},
952952
"MonocoChannel": {

0 commit comments

Comments
 (0)