Skip to content

Commit 16b81a5

Browse files
Erwan CarriouErwan Carriou
authored andcommitted
- fix a bug in the visibility of a schema
1 parent 7dccdac commit 16b81a5

Some content is hidden

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

42 files changed

+244
-234
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": "system-runtime",
3-
"version": "0.9.4",
3+
"version": "0.9.5",
44
"description": "SyrupJS, the System Runtime Platform",
55
"license": "MIT",
66
"homepage": "https://syrupjs.github.io",

build/syrup.json

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "syrup",
3-
"version": "0.9.4",
3+
"version": "0.9.5",
44
"description": "The System Runtime Platform",
55
"_id": "e89c617b6b15d24",
66
"schemas": {
@@ -138,11 +138,13 @@
138138
"SyrupChannelEvent": {
139139
"_id": "SyrupChannelEvent",
140140
"_name": "SyrupChannelEvent",
141-
"_schema": "SyrupChannelEventSchema"
141+
"_schema": "SyrupChannelEventSchema",
142+
"_core": true
142143
},
143144
"SyrupChannelEventSchema": {
144145
"_id": "SyrupChannelEventSchema",
145-
"_name": "SyrupChannelEventSchema"
146+
"_name": "SyrupChannelEventSchema",
147+
"_core": true
146148
},
147149
"SyrupChannelSchema": {
148150
"_id": "SyrupChannelSchema",
@@ -764,158 +766,158 @@
764766
"core": true,
765767
"useCoreAPI": true
766768
},
767-
"1dfaf10bbd1f6c0": {
768-
"_id": "1dfaf10bbd1f6c0",
769+
"1152e1ca841228b": {
770+
"_id": "1152e1ca841228b",
769771
"component": "Syrup",
770772
"state": "error",
771773
"action": "function error(data) {\n console.error('syrup: ' + data.message, data.error);\n}",
772774
"core": true
773775
},
774-
"189ba14dce1e868": {
775-
"_id": "189ba14dce1e868",
776+
"1117116e0f1693e": {
777+
"_id": "1117116e0f1693e",
776778
"component": "Syrup",
777779
"state": "system",
778780
"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('SyrupSystem');\n system = new System(conf);\n } else {\n result = $db.SyrupSystem.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}",
779781
"core": true,
780782
"useCoreAPI": true
781783
},
782-
"162171afd211338": {
783-
"_id": "162171afd211338",
784+
"14aeb18fee100e0": {
785+
"_id": "14aeb18fee100e0",
784786
"component": "Syrup",
785787
"state": "warning",
786788
"action": "function warning(message) {\n console.warn('syrup: ' + message);\n}",
787789
"core": true
788790
},
789-
"1c26f1eafb1cf57": {
790-
"_id": "1c26f1eafb1cf57",
791+
"1c7d91357b1d3d5": {
792+
"_id": "1c7d91357b1d3d5",
791793
"component": "SyrupClassInfo",
792794
"state": "collection",
793795
"action": "function collection(name) {\n var result = {};\n if (this.metamodel()[name] === 'collection') {\n result = this.model()[name];\n } \n \n return result; \n}",
794796
"core": true
795797
},
796-
"122071c20d1f8f2": {
797-
"_id": "122071c20d1f8f2",
798+
"1523c1f80f1c711": {
799+
"_id": "1523c1f80f1c711",
798800
"component": "SyrupClassInfo",
799801
"state": "collections",
800802
"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}",
801803
"core": true
802804
},
803-
"1595e15ee116344": {
804-
"_id": "1595e15ee116344",
805+
"1738c124ec18532": {
806+
"_id": "1738c124ec18532",
805807
"component": "SyrupClassInfo",
806808
"state": "event",
807809
"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}",
808810
"core": true
809811
},
810-
"159521e88b1064c": {
811-
"_id": "159521e88b1064c",
812+
"1f1a41d11c1c482": {
813+
"_id": "1f1a41d11c1c482",
812814
"component": "SyrupClassInfo",
813815
"state": "events",
814816
"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}",
815817
"core": true
816818
},
817-
"1bca215b5713d47": {
818-
"_id": "1bca215b5713d47",
819+
"135631389a17cdc": {
820+
"_id": "135631389a17cdc",
819821
"component": "SyrupClassInfo",
820822
"state": "method",
821823
"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}",
822824
"core": true
823825
},
824-
"1d7a314ae5107b9": {
825-
"_id": "1d7a314ae5107b9",
826+
"1de1a1ad8512a40": {
827+
"_id": "1de1a1ad8512a40",
826828
"component": "SyrupClassInfo",
827829
"state": "methods",
828830
"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}",
829831
"core": true
830832
},
831-
"1fc1912add11e51": {
832-
"_id": "1fc1912add11e51",
833+
"1d73d135d519abd": {
834+
"_id": "1d73d135d519abd",
833835
"component": "SyrupClassInfo",
834836
"state": "properties",
835837
"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}",
836838
"core": true
837839
},
838-
"138991301517698": {
839-
"_id": "138991301517698",
840+
"13a05176b816306": {
841+
"_id": "13a05176b816306",
840842
"component": "SyrupClassInfo",
841843
"state": "property",
842844
"action": "function property(name) {\n var result = {};\n \n if (this.metamodel()[name] === 'property') {\n result = this.model()[name];\n }\n return result;\n}",
843845
"core": true
844846
},
845-
"1928a1d3ec1bfb8": {
846-
"_id": "1928a1d3ec1bfb8",
847+
"1513d1b17410e31": {
848+
"_id": "1513d1b17410e31",
847849
"component": "SyrupComponent",
848850
"state": "destroy",
849851
"action": "function destroy() {\n $component.destroy(this.id());\n}",
850852
"core": true,
851853
"useCoreAPI": true
852854
},
853-
"1eb5d1c4b41fe18": {
854-
"_id": "1eb5d1c4b41fe18",
855+
"1afe01d6271df24": {
856+
"_id": "1afe01d6271df24",
855857
"component": "SyrupComponent",
856858
"state": "off",
857859
"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.getSyrup().warning({ \"message\":\"invoke 'off' method of component '\" + this.id() + \"' with an invalid state '\" + state + \"'\"}); \n }\n }\n}",
858860
"core": true,
859861
"useCoreAPI": true
860862
},
861-
"1f46d11abd16e75": {
862-
"_id": "1f46d11abd16e75",
863+
"1f46210b7f1edce": {
864+
"_id": "1f46210b7f1edce",
863865
"component": "SyrupComponent",
864866
"state": "require",
865867
"action": "function require(id) {\n return $component.get(id);\n}",
866868
"core": true,
867869
"useCoreAPI": true
868870
},
869-
"17ba1143911d051": {
870-
"_id": "17ba1143911d051",
871+
"185ad1ffc211622": {
872+
"_id": "185ad1ffc211622",
871873
"component": "SyrupDatabase",
872874
"state": "collections",
873875
"action": "function collections() {\n var result = {},\n collectionName = '';\n \n for (collectionName in $db.store) {\n if ($db.store.hasOwnProperty(collectionName) && collectionName.indexOf('Syrup') !== 0) {\n result[collectionName] = $db[collectionName];\n \n }\n }\n return result;\n}",
874876
"core": true,
875877
"useCoreAPI": true
876878
},
877-
"1bb641164713010": {
878-
"_id": "1bb641164713010",
879+
"114f911f1511ecb": {
880+
"_id": "114f911f1511ecb",
879881
"component": "SyrupDatabase",
880882
"state": "subsystem",
881883
"action": "function subsystem(params) {\n return $db.subsystem(params);\n}",
882884
"core": true,
883885
"useCoreAPI": true
884886
},
885-
"10d011e9a711355": {
886-
"_id": "10d011e9a711355",
887+
"1c5c716dfa1d3d5": {
888+
"_id": "1c5c716dfa1d3d5",
887889
"component": "SyrupDatabase",
888890
"state": "system",
889891
"action": "function system(system) {\n return $db.system(system);\n}",
890892
"core": true,
891893
"useCoreAPI": true
892894
},
893-
"1ccce159d510fde": {
894-
"_id": "1ccce159d510fde",
895+
"161c71a7c912944": {
896+
"_id": "161c71a7c912944",
895897
"component": "SyrupMetamodel",
896898
"state": "create",
897899
"action": "function create() {\n $metamodel.create();\n}",
898900
"core": true,
899901
"useCoreAPI": true
900902
},
901-
"19e1b155f71a5a1": {
902-
"_id": "19e1b155f71a5a1",
903+
"18161129081f508": {
904+
"_id": "18161129081f508",
903905
"component": "SyrupMetamodel",
904906
"state": "schema",
905907
"action": "function schema(schema) {\n $metamodel.schema(schema);\n}",
906908
"core": true,
907909
"useCoreAPI": true
908910
},
909-
"148d4170a91b2a7": {
910-
"_id": "148d4170a91b2a7",
911+
"184b91e0e71f1c5": {
912+
"_id": "184b91e0e71f1c5",
911913
"component": "SyrupMetamodel",
912914
"state": "type",
913915
"action": "function type(type) {\n $metamodel.type(type);\n}",
914916
"core": true,
915917
"useCoreAPI": true
916918
},
917-
"18cc012ba614c0d": {
918-
"_id": "18cc012ba614c0d",
919+
"1fe851fda917aa3": {
920+
"_id": "1fe851fda917aa3",
919921
"component": "SyrupSystem",
920922
"state": "sync",
921923
"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 +929,7 @@
927929
"Syrup": {
928930
"syrup": {
929931
"_id": "syrup",
930-
"version": "0.9.4"
932+
"version": "0.9.5"
931933
}
932934
},
933935
"SyrupDatabase": {

0 commit comments

Comments
 (0)