Skip to content

Commit c75e8db

Browse files
committed
- update version
- update readme
1 parent 0ba672f commit c75e8db

Some content is hidden

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

44 files changed

+392
-354
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
Runtime has APIs to serialize your JavaScript code into JSON. This JSON can be then imported and executed in a client or server application.
1616

17-
![Image Alt](https://system-runtime.github.io/img/system-runtime.png)
18-
1917
## How works Runtime ?
2018

2119
Runtime executes your JSON client and server side.

addons/system-admin.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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": "1.0.1",
3+
"version": "1.0.2",
44
"description": "The JSON Runtime Environment",
55
"license": "MIT",
66
"homepage": "https://system-runtime.github.io",

build/runtime.json

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,8 +1043,8 @@
10431043
"component": "RuntimeAdmin",
10441044
"state": "stop",
10451045
"action": "function stop() {\n var worker = null,\n channel = null;\n \n worker = this.require('worker-admin');\n if (worker && worker.worker()) {\n worker.worker().port.onmessage = function () {};\n worker.destroy();\n \n channel = this.require('channel-admin');\n if (channel) {\n channel.destroy();\n }\n \n console.info('runtime: admin is stopped');\n }\n}",
1046-
"useCoreAPI": false,
1047-
"core": false
1046+
"useCoreAPI": true,
1047+
"core": true
10481048
},
10491049
"1fc101c23918773": {
10501050
"component": "RuntimeComponent",
@@ -1069,172 +1069,172 @@
10691069
"core": true,
10701070
"useCoreAPI": true
10711071
},
1072-
"11a0d1c5ac1ff12": {
1073-
"_id": "11a0d1c5ac1ff12",
1072+
"1ed84139b91a4d6": {
1073+
"_id": "1ed84139b91a4d6",
10741074
"component": "Runtime",
10751075
"state": "error",
10761076
"action": "function error(data) {\n console.error('runtime: ' + data.message, data.error);\n}",
10771077
"core": true
10781078
},
1079-
"1bc1d108a21355d": {
1080-
"_id": "1bc1d108a21355d",
1079+
"167d5108df1e663": {
1080+
"_id": "167d5108df1e663",
10811081
"component": "Runtime",
10821082
"state": "system",
10831083
"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('RuntimeSystem');\n system = new System(conf);\n } else {\n result = $db.RuntimeSystem.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}",
10841084
"core": true,
10851085
"useCoreAPI": true
10861086
},
1087-
"15e5611ba214590": {
1088-
"_id": "15e5611ba214590",
1087+
"112fa1c2ce10dbc": {
1088+
"_id": "112fa1c2ce10dbc",
10891089
"component": "Runtime",
10901090
"state": "warning",
10911091
"action": "function warning(message) {\n console.warn('runtime: ' + message);\n}",
10921092
"core": true
10931093
},
1094-
"14b7a1dd8f16235": {
1095-
"_id": "14b7a1dd8f16235",
1094+
"18460125071f76d": {
1095+
"_id": "18460125071f76d",
10961096
"component": "RuntimeClassInfo",
10971097
"state": "collection",
10981098
"action": "function collection(name) {\n var result = {};\n if (this.metamodel()[name] === 'collection') {\n result = this.model()[name];\n } \n \n return result; \n}",
10991099
"core": true
11001100
},
1101-
"1edba11cf015087": {
1102-
"_id": "1edba11cf015087",
1101+
"12905142381cf59": {
1102+
"_id": "12905142381cf59",
11031103
"component": "RuntimeClassInfo",
11041104
"state": "collections",
11051105
"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}",
11061106
"core": true
11071107
},
1108-
"18bf810ab71cb24": {
1109-
"_id": "18bf810ab71cb24",
1108+
"180751695118a25": {
1109+
"_id": "180751695118a25",
11101110
"component": "RuntimeClassInfo",
11111111
"state": "event",
11121112
"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}",
11131113
"core": true
11141114
},
1115-
"1246a1d96f1d1b6": {
1116-
"_id": "1246a1d96f1d1b6",
1115+
"196df1f3d31a02b": {
1116+
"_id": "196df1f3d31a02b",
11171117
"component": "RuntimeClassInfo",
11181118
"state": "events",
11191119
"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}",
11201120
"core": true
11211121
},
1122-
"11c051a1d81a285": {
1123-
"_id": "11c051a1d81a285",
1122+
"1d78e19f1410de5": {
1123+
"_id": "1d78e19f1410de5",
11241124
"component": "RuntimeClassInfo",
11251125
"state": "link",
11261126
"action": "function link(name) {\n var result = {};\n \n if (this.metamodel()[name] === 'link') {\n result = this.model()[name];\n }\n return result;\n}",
11271127
"core": true
11281128
},
1129-
"15fac1509e1f236": {
1130-
"_id": "15fac1509e1f236",
1129+
"1c22a1edde11ece": {
1130+
"_id": "1c22a1edde11ece",
11311131
"component": "RuntimeClassInfo",
11321132
"state": "links",
11331133
"action": "function links() { \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] === 'link') {\n result.push(item);\n }\n } return result;\n}",
11341134
"core": true
11351135
},
1136-
"1ed611c850133ae": {
1137-
"_id": "1ed611c850133ae",
1136+
"1d1f513dbf1fbd5": {
1137+
"_id": "1d1f513dbf1fbd5",
11381138
"component": "RuntimeClassInfo",
11391139
"state": "method",
11401140
"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}",
11411141
"core": true
11421142
},
1143-
"1ffe01407718387": {
1144-
"_id": "1ffe01407718387",
1143+
"184821c1241f9ec": {
1144+
"_id": "184821c1241f9ec",
11451145
"component": "RuntimeClassInfo",
11461146
"state": "methods",
11471147
"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}",
11481148
"core": true
11491149
},
1150-
"17fbe1fbd3109ce": {
1151-
"_id": "17fbe1fbd3109ce",
1150+
"1208a1fc0e12af7": {
1151+
"_id": "1208a1fc0e12af7",
11521152
"component": "RuntimeClassInfo",
11531153
"state": "properties",
11541154
"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}",
11551155
"core": true
11561156
},
1157-
"1cfcc1145a193d7": {
1158-
"_id": "1cfcc1145a193d7",
1157+
"1457a1423e17dc1": {
1158+
"_id": "1457a1423e17dc1",
11591159
"component": "RuntimeClassInfo",
11601160
"state": "property",
11611161
"action": "function property(name) {\n var result = {};\n \n if (this.metamodel()[name] === 'property') {\n result = this.model()[name];\n }\n return result;\n}",
11621162
"core": true
11631163
},
1164-
"155fb1bc861bd3b": {
1165-
"_id": "155fb1bc861bd3b",
1164+
"1e12718b5a1ba9d": {
1165+
"_id": "1e12718b5a1ba9d",
11661166
"component": "RuntimeComponent",
11671167
"state": "destroy",
11681168
"action": "function destroy() {\n $component.destroy(this.id());\n}",
11691169
"core": true,
11701170
"useCoreAPI": true
11711171
},
1172-
"1a53713bb113982": {
1173-
"_id": "1a53713bb113982",
1172+
"143cc11cff14239": {
1173+
"_id": "143cc11cff14239",
11741174
"component": "RuntimeComponent",
11751175
"state": "off",
11761176
"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({\n \"component\": this, \n \"methodName\": \"off\", \n \"args\": args\n })) {\n \n if (state || behaviorId) {\n if ($metamodel.isValidState(state, this.constructor.name)) {\n $behavior.remove({\n \"behaviorId\": behaviorId, \n \"componentId\": this.id(), \n \"state\": state\n });\n } else { \n console.warn(\"runtime: invoke \\'off\\' method of component '\" + this.id() + \"' with an invalid state '\" + state + \"'\"); \n }\n } else {\n $behavior.remove({\n \"componentId\": this.id()\n });\n }\n }\n}",
11771177
"core": true,
11781178
"useCoreAPI": true
11791179
},
1180-
"1524811ac21a1ff": {
1181-
"_id": "1524811ac21a1ff",
1180+
"112781d1c81d904": {
1181+
"_id": "112781d1c81d904",
11821182
"component": "RuntimeComponent",
11831183
"state": "require",
11841184
"action": "function require(id) {\n return $component.get(id);\n}",
11851185
"core": true,
11861186
"useCoreAPI": true
11871187
},
1188-
"15cee12ed517717": {
1189-
"_id": "15cee12ed517717",
1188+
"1916e1ccf810a92": {
1189+
"_id": "1916e1ccf810a92",
11901190
"component": "RuntimeDatabase",
11911191
"state": "collections",
11921192
"action": "function collections() {\n var result = {},\n collectionName = '';\n \n for (collectionName in $db.store) {\n if ($db.store.hasOwnProperty(collectionName) && collectionName.indexOf('Runtime') !== 0) {\n result[collectionName] = $db[collectionName];\n \n }\n }\n return result;\n}",
11931193
"core": true,
11941194
"useCoreAPI": true
11951195
},
1196-
"182c41e8fb1e1d3": {
1197-
"_id": "182c41e8fb1e1d3",
1196+
"1af20102a81445e": {
1197+
"_id": "1af20102a81445e",
11981198
"component": "RuntimeDatabase",
11991199
"state": "subsystem",
12001200
"action": "function subsystem(params) {\n return $db.subsystem(params);\n}",
12011201
"core": true,
12021202
"useCoreAPI": true
12031203
},
1204-
"1fac21097c14045": {
1205-
"_id": "1fac21097c14045",
1204+
"1151f1a0211d9fd": {
1205+
"_id": "1151f1a0211d9fd",
12061206
"component": "RuntimeDatabase",
12071207
"state": "system",
12081208
"action": "function system(system) {\n return $db.system(system);\n}",
12091209
"core": true,
12101210
"useCoreAPI": true
12111211
},
1212-
"17e4215e0a14708": {
1213-
"_id": "17e4215e0a14708",
1212+
"104c3199c316519": {
1213+
"_id": "104c3199c316519",
12141214
"component": "RuntimeMetamodel",
12151215
"state": "create",
12161216
"action": "function create() {\n $metamodel.create();\n}",
12171217
"core": true,
12181218
"useCoreAPI": true
12191219
},
1220-
"1cf4f1c17c14450": {
1221-
"_id": "1cf4f1c17c14450",
1220+
"1710b1b08a1b665": {
1221+
"_id": "1710b1b08a1b665",
12221222
"component": "RuntimeMetamodel",
12231223
"state": "schema",
12241224
"action": "function schema(schema) {\n $metamodel.schema(schema);\n}",
12251225
"core": true,
12261226
"useCoreAPI": true
12271227
},
1228-
"16f9b169651061a": {
1229-
"_id": "16f9b169651061a",
1228+
"12df717c5015705": {
1229+
"_id": "12df717c5015705",
12301230
"component": "RuntimeMetamodel",
12311231
"state": "type",
12321232
"action": "function type(type) {\n $metamodel.type(type);\n}",
12331233
"core": true,
12341234
"useCoreAPI": true
12351235
},
1236-
"1d82b1a62714a3a": {
1237-
"_id": "1d82b1a62714a3a",
1236+
"1e45918c2e10e96": {
1237+
"_id": "1e45918c2e10e96",
12381238
"component": "RuntimeSystem",
12391239
"state": "sync",
12401240
"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}",
@@ -1245,13 +1245,14 @@
12451245
"components": {
12461246
"RuntimeAdmin": {
12471247
"admin": {
1248-
"_id": "admin"
1248+
"_id": "admin",
1249+
"_core": true
12491250
}
12501251
},
12511252
"Runtime": {
12521253
"runtime": {
12531254
"_id": "runtime",
1254-
"version": "1.0.1"
1255+
"version": "1.0.2"
12551256
}
12561257
},
12571258
"RuntimeDatabase": {
@@ -1268,8 +1269,8 @@
12681269
"18ed81de331252c": {
12691270
"_id": "18ed81de331252c",
12701271
"name": "system-admin",
1271-
"version": "0.1.0",
1272-
"description": "Runtime Component administration",
1272+
"version": "0.1.1",
1273+
"description": "Runtime Component administration ",
12731274
"subsystem": true,
12741275
"master": false
12751276
},
@@ -1292,7 +1293,7 @@
12921293
}
12931294
},
12941295
"name": "runtime",
1295-
"version": "1.0.1",
1296+
"version": "1.0.2",
12961297
"description": "Runtime",
12971298
"_id": "e89c617b6b15d24",
12981299
"master": false,

0 commit comments

Comments
 (0)