Skip to content

Commit

Permalink
Bump 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarriou committed Apr 13, 2018
1 parent 63490f9 commit e202a88
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
For issues give the following informations related to your problem:

- [ ] System Designer version number: (ex: *v2.6.2*)
- [ ] System Designer version number: (ex: *v2.7.0*)
- [ ] System Designer platform: (ex: *macOS*)
- [ ] Your OS version: (ex: *macOS 10.13.3*)
- [ ] If use on a phone, please give the model: (ex: *iPhone X*)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "system-designer",
"version": "2.6.2",
"version": "2.7.0",
"description": "System Designer, an IDE for designing systems",
"homepage": "https://designfirst.io/systemdesigner/",
"main": "dist/index.html",
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "system-designer",
"version": "2.6.2",
"version": "2.7.0",
"description": "System Designer, an IDE for designing systems",
"homepage": "https://designfirst.io/systemdesigner/",
"keywords": [
Expand Down Expand Up @@ -57,15 +57,15 @@
"grunt-contrib-watch": "^1.0.0",
"grunt-json-merge": "^0.2.2",
"grunt-mocha-istanbul": "^5.0.2",
"grunt-prettier": "^0.5.0",
"grunt-prettier": "^0.5.1",
"istanbul": "^0.4.5",
"jquery": "^3.3.1",
"jsplumb": "^2.6.9",
"load-grunt-tasks": "^3.5.2",
"mocha": "^5.0.5",
"prismjs": "^1.13.0",
"puppeteer": "^1.2.0",
"system-runtime": "^2.6.2"
"mocha": "^5.1.0",
"prismjs": "^1.14.0",
"puppeteer": "^1.3.0",
"system-runtime": "^2.7.0"
},
"dependencies": {}
}
2 changes: 1 addition & 1 deletion src/merges/web/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0 (the "License")
self.addEventListener('install', function (e) {
e.waitUntil(
caches.open('systemdesignerv2.6.2').then(function (cache) {
caches.open('systemdesignerv2.7.0').then(function (cache) {
return cache.addAll([
'/',
'app/index.html',
Expand Down
2 changes: 1 addition & 1 deletion src/merges/web/system-designer.appcache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CACHE MANIFEST
# version 2.6.2
# version 2.7.0

CACHE:
app/index.html
Expand Down
4 changes: 2 additions & 2 deletions src/systems/classes/Designer-class.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"type": "string",
"readOnly": false,
"mandatory": false,
"default": "2.6.2"
"default": "2.7.0"
},
"runWindow": {
"type": "object",
Expand Down Expand Up @@ -187,7 +187,7 @@
"_id": "designer",
"debugWindow": null,
"runWindow": null,
"version": "2.6.2"
"version": "2.7.0"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/systems/classes/Github-class.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"component": "Github",
"state": "push",
"action":
"function push(comment, createHTML, createNode, logLevel, createPackage) {\n var config = {},\n gh = null,\n userName = '',\n repository = '',\n designer = null,\n system = {},\n repo1 = null,\n repo2 = null,\n repo3 = null;\n\n config = this.require('storage').get('system-designer-config');\n if (config && config.githubToken && config.githubRepository) {\n\n gh = new GitHub({\n token: atob(config.githubToken)\n });\n\n userName = config.githubRepository.split('/')[0];\n repository = config.githubRepository.split('/')[1];\n\n designer = this.require('designer');\n\n if (this.require('factory').system()) {\n system = this.require('db').collections().System.find({\n '_id': this.require('factory').system().id()\n })[0];\n\n system = JSON.parse(JSON.stringify(system));\n delete system.classInfo;\n\n repo1 = gh.getRepo(userName, repository);\n repo2 = gh.getRepo(userName, repository);\n repo3 = gh.getRepo(userName, repository);\n repo4 = gh.getRepo(userName, repository);\n\n repo1.writeFile('master', system.name + '.json', JSON.stringify(system), comment || 'updated with System Designer', {})\n .then(function (response) {\n var name = response.data.content.name.replace('.json', '');\n var js = '';\n var htmlSource = '';\n var jsSource = '';\n var packageSource = {};\n\n runtime.require('message').success('system ' + name + ' pushed on GitHub.');\n\n // HTML\n if (createHTML) {\n htmlSource = runtime.require('export-app-github.html').source();\n htmlSource = htmlSource\n .replace(/{{logLevel}}/g, logLevel)\n .replace(/{{name}}/g, runtime.require('factory').system().name());\n\n repo2.writeFile('master', runtime.require('factory').system().name() + '.html', htmlSource, 'created with System Designer', {})\n .then(function (response) {\n var name = response.data.content.name;\n runtime.require('message').success(name + ' created on GitHub.');\n })\n .catch(function (e) {\n runtime.require('message').danger('<strong>GitHub:</strong> ' + e.response.data.message + '.');\n });\n }\n\n // Node\n if (createNode) {\n jsSource = runtime.require('app-github.js').source();\n jsSource = jsSource\n .replace(/{{logLevel}}/g, logLevel)\n .replace(/{{description}}/g, runtime.require('factory').system().description().replace(/\\n/g, '\\n * '))\n .replace(/{{version}}/g, runtime.require('factory').system().version())\n .replace(/{{name}}/g, runtime.require('factory').system().name());\n\n repo3.writeFile('master', runtime.require('factory').system().name() + '.js', jsSource, 'created with System Designer', {})\n .then(function (response) {\n var name = response.data.content.name;\n runtime.require('message').success(name + ' created on GitHub.');\n })\n .catch(function (e) {\n runtime.require('message').danger('<strong>GitHub:</strong> ' + e.response.data.message + '.');\n });\n }\n\n // PACKAGE\n if (createPackage) {\n packageSource.name = runtime.require('factory').system().name();\n packageSource.version = runtime.require('factory').system().version();\n packageSource.description = runtime.require('factory').system().description();\n packageSource.main = './' + runtime.require('factory').system().name() + '.json';\n packageSource.repository = {};\n packageSource.repository.type = 'git';\n packageSource.repository.url = 'https://github.com/' + config.githubRepository;\n packageSource.dependencies = {};\n packageSource.dependencies['system-runtime'] = '^2.6.2';\n\n repo4.writeFile('master', 'package.json', JSON.stringify(packageSource, null, ' ').toString(), 'created with System Designer', {})\n .then(function (response) {\n var name = response.data.content.name;\n runtime.require('message').success(name + ' created on GitHub.');\n })\n .catch(function (e) {\n runtime.require('message').danger('<strong>GitHub:</strong> ' + e.response.data.message + '.');\n });\n }\n })\n .catch(function (e) {\n runtime.require('message').danger('<strong>GitHub:</strong> ' + e.response.data.message + '.');\n });\n } else {\n runtime.require('message').warning('There is no system to push on GitHub.');\n }\n } else {\n runtime.require('message').warning('No configuration found for GitHub. Please set the correct information in the configuration panel.');\n }\n}",
"function push(comment, createHTML, createNode, logLevel, createPackage) {\n var config = {},\n gh = null,\n userName = '',\n repository = '',\n designer = null,\n system = {},\n repo1 = null,\n repo2 = null,\n repo3 = null;\n\n config = this.require('storage').get('system-designer-config');\n if (config && config.githubToken && config.githubRepository) {\n\n gh = new GitHub({\n token: atob(config.githubToken)\n });\n\n userName = config.githubRepository.split('/')[0];\n repository = config.githubRepository.split('/')[1];\n\n designer = this.require('designer');\n\n if (this.require('factory').system()) {\n system = this.require('db').collections().System.find({\n '_id': this.require('factory').system().id()\n })[0];\n\n system = JSON.parse(JSON.stringify(system));\n delete system.classInfo;\n\n repo1 = gh.getRepo(userName, repository);\n repo2 = gh.getRepo(userName, repository);\n repo3 = gh.getRepo(userName, repository);\n repo4 = gh.getRepo(userName, repository);\n\n repo1.writeFile('master', system.name + '.json', JSON.stringify(system), comment || 'updated with System Designer', {})\n .then(function (response) {\n var name = response.data.content.name.replace('.json', '');\n var js = '';\n var htmlSource = '';\n var jsSource = '';\n var packageSource = {};\n\n runtime.require('message').success('system ' + name + ' pushed on GitHub.');\n\n // HTML\n if (createHTML) {\n htmlSource = runtime.require('export-app-github.html').source();\n htmlSource = htmlSource\n .replace(/{{logLevel}}/g, logLevel)\n .replace(/{{name}}/g, runtime.require('factory').system().name());\n\n repo2.writeFile('master', runtime.require('factory').system().name() + '.html', htmlSource, 'created with System Designer', {})\n .then(function (response) {\n var name = response.data.content.name;\n runtime.require('message').success(name + ' created on GitHub.');\n })\n .catch(function (e) {\n runtime.require('message').danger('<strong>GitHub:</strong> ' + e.response.data.message + '.');\n });\n }\n\n // Node\n if (createNode) {\n jsSource = runtime.require('app-github.js').source();\n jsSource = jsSource\n .replace(/{{logLevel}}/g, logLevel)\n .replace(/{{description}}/g, runtime.require('factory').system().description().replace(/\\n/g, '\\n * '))\n .replace(/{{version}}/g, runtime.require('factory').system().version())\n .replace(/{{name}}/g, runtime.require('factory').system().name());\n\n repo3.writeFile('master', runtime.require('factory').system().name() + '.js', jsSource, 'created with System Designer', {})\n .then(function (response) {\n var name = response.data.content.name;\n runtime.require('message').success(name + ' created on GitHub.');\n })\n .catch(function (e) {\n runtime.require('message').danger('<strong>GitHub:</strong> ' + e.response.data.message + '.');\n });\n }\n\n // PACKAGE\n if (createPackage) {\n packageSource.name = runtime.require('factory').system().name();\n packageSource.version = runtime.require('factory').system().version();\n packageSource.description = runtime.require('factory').system().description();\n packageSource.main = './' + runtime.require('factory').system().name() + '.json';\n packageSource.repository = {};\n packageSource.repository.type = 'git';\n packageSource.repository.url = 'https://github.com/' + config.githubRepository;\n packageSource.dependencies = {};\n packageSource.dependencies['system-runtime'] = '^2.7.0';\n\n repo4.writeFile('master', 'package.json', JSON.stringify(packageSource, null, ' ').toString(), 'created with System Designer', {})\n .then(function (response) {\n var name = response.data.content.name;\n runtime.require('message').success(name + ' created on GitHub.');\n })\n .catch(function (e) {\n runtime.require('message').danger('<strong>GitHub:</strong> ' + e.response.data.message + '.');\n });\n }\n })\n .catch(function (e) {\n runtime.require('message').danger('<strong>GitHub:</strong> ' + e.response.data.message + '.');\n });\n } else {\n runtime.require('message').warning('There is no system to push on GitHub.');\n }\n } else {\n runtime.require('message').warning('No configuration found for GitHub. Please set the correct information in the configuration panel.');\n }\n}",
"useCoreAPI": false,
"core": false
},
Expand Down
4 changes: 2 additions & 2 deletions src/systems/classes/HTML-class.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"menu-action-version.html": {
"_id": "menu-action-version.html",
"source": "<a>v2.6.2</a>"
"source": "<a>v2.7.0</a>"
},
"menu-header-behavior.html": {
"_id": "menu-header-behavior.html",
Expand Down Expand Up @@ -210,7 +210,7 @@
"export-app-github.html": {
"_id": "export-app-github.html",
"source":
"<!DOCTYPE html>\n<html>\n\n<head>\n <title>{{name}}</title>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <!-- system -->\n <link rel=\"system\" type=\"application/json\" href=\"{{name}}.json\">\n</head>\n\n<body>\n <!-- system runtime -->\n <script log=\"{{logLevel}}\" src=\"https://cdn.jsdelivr.net/npm/system-runtime@2.6.2/dist/system-runtime.min.js\"></script>\n</body>\n\n</html>"
"<!DOCTYPE html>\n<html>\n\n<head>\n <title>{{name}}</title>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <!-- system -->\n <link rel=\"system\" type=\"application/json\" href=\"{{name}}.json\">\n</head>\n\n<body>\n <!-- system runtime -->\n <script log=\"{{logLevel}}\" src=\"https://cdn.jsdelivr.net/npm/system-runtime@2.7.0/dist/system-runtime.min.js\"></script>\n</body>\n\n</html>"
},
"export-app.html": {
"_id": "export-app.html",
Expand Down
2 changes: 1 addition & 1 deletion src/systems/classes/JS-class.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/systems/core/editor-behavior.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
"type": "string",
"readOnly": false,
"mandatory": false,
"default": "2.6.2"
"default": "2.7.0"
},
"runWindow": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion src/systems/core/editor-component.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
"type": "string",
"readOnly": false,
"mandatory": false,
"default": "2.6.2"
"default": "2.7.0"
},
"runWindow": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion src/systems/core/editor-model.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
"type": "string",
"readOnly": false,
"mandatory": false,
"default": "2.6.2"
"default": "2.7.0"
},
"runWindow": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion src/systems/core/editor-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
"type": "string",
"readOnly": false,
"mandatory": false,
"default": "2.6.2"
"default": "2.7.0"
},
"runWindow": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion src/systems/core/editor-system.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
"type": "string",
"readOnly": false,
"mandatory": false,
"default": "2.6.2"
"default": "2.7.0"
},
"runWindow": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion src/systems/core/editor-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
"type": "string",
"readOnly": false,
"mandatory": false,
"default": "2.6.2"
"default": "2.7.0"
},
"runWindow": {
"type": "object",
Expand Down
4 changes: 2 additions & 2 deletions src/systems/core/system-designer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "system-designer",
"master": true,
"version": "2.6.2",
"version": "2.7.0",
"description": "A Designer for Systems",
"schemas": {
"104ad1f48518376": {
Expand Down Expand Up @@ -492,7 +492,7 @@
"type": "string",
"readOnly": false,
"mandatory": false,
"default": "2.6.2"
"default": "2.7.0"
},
"runWindow": {
"type": "object",
Expand Down

0 comments on commit e202a88

Please sign in to comment.