From c98b7b462b5fb2705888c17a7e9827835d6f146f Mon Sep 17 00:00:00 2001 From: Luqiang Tian Date: Tue, 14 Jun 2016 20:23:55 +0800 Subject: [PATCH] Change from morpho to model-first --- config/defaults.json | 4 ++-- index.js | 2 +- package.json | 2 +- scripts/services/fileloader.js | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/defaults.json b/config/defaults.json index 940f2c379c4..fab7daff8c3 100644 --- a/config/defaults.json +++ b/config/defaults.json @@ -6,8 +6,8 @@ "client": "http://generator.swagger.io/api/gen/clients/{language}" }, "simpleyamlcodegen": { - "server": "http://localhost:9002/server/codegen/?name={language}", - "client": "http://localhost:9002/client/codegen/?name={language}" + "server": "http://morpho-codegen.azurewebsites.net/server/codegen/?name={language}", + "client": "http://morpho-codegen.azurewebsites.net/client/codegen/?name={language}" }, "analytics": { "google": { diff --git a/index.js b/index.js index 8cace404770..f6d2758bece 100644 --- a/index.js +++ b/index.js @@ -11,5 +11,5 @@ require('styles/main.less'); // App JavaScript files require('scripts/app.js'); -require('morpho'); +require('model-first'); diff --git a/package.json b/package.json index 154ef900eb2..98505de78ba 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "worker-loader": "^0.7.0", "yaml-js": "^0.1.3", "file-loader": "^0.8.5", - "morpho": "~0.0.1-alpha.6" + "model-first": "~0.1.1" }, "engines": { "node": ">=5.8.0" diff --git a/scripts/services/fileloader.js b/scripts/services/fileloader.js index 54b5080177c..b46ce29aa3b 100644 --- a/scripts/services/fileloader.js +++ b/scripts/services/fileloader.js @@ -43,7 +43,6 @@ SwaggerEditor.service('FileLoader', function FileLoader($http, defaults, YAML) { } else { load(resp.data).then(resolve, reject); } -*/ }, reject); }); }