Selaa lähdekoodia

translated of title-attribute and extended a list ow known lexemes

bubble
Константин Калинин 9 vuotta sitten
vanhempi
commit
49e6389f3f
2 muutettua tiedostoa jossa 4 lisäystä ja 17 poistoa
  1. +4
    -15
      dist/lib/swagger-client.js
  2. +0
    -2
      dist/swagger-ui.js

+ 4
- 15
dist/lib/swagger-client.js Näytä tiedosto

@@ -291,7 +291,6 @@ var SwaggerClient = function(url, options) {
this.isValid = false;
this.info = null;
this.useJQuery = false;
this.resourceCount = 0;

if(typeof url !== 'undefined')
return this.initialize(url, options);
@@ -1570,7 +1569,6 @@ SwaggerClient.prototype.buildFrom1_2Spec = function (response) {
this.apisArray.push(res);
} else {
var k;
this.expectedResourceCount = response.apis.length;
for (k = 0; k < response.apis.length; k++) {
var resource = response.apis[k];
res = new SwaggerResource(resource, this);
@@ -1579,16 +1577,11 @@ SwaggerClient.prototype.buildFrom1_2Spec = function (response) {
}
}
this.isValid = true;
return this;
};

SwaggerClient.prototype.finish = function() {
if (typeof this.success === 'function') {
console.log('success');
this.selfReflect();
this.success();
}
}
} return this;
};


SwaggerClient.prototype.buildFrom1_1Spec = function (response) {
log('This API is using a deprecated version of Swagger! Please see http://github.com/wordnik/swagger-core/wiki for more info');
@@ -1735,11 +1728,9 @@ var SwaggerResource = function (resourceObj, api) {
on: {
response: function (resp) {
var responseObj = resp.obj || JSON.parse(resp.data);
_this.api.resourceCount += 1;
return _this.addApiDeclaration(responseObj);
},
error: function (response) {
_this.api.resourceCount += 1;
return _this.api.fail('<span data-swTarnslate="1">Unable to read api</span> \'' +
_this.name + '\' <span data-swTarnslate="1">from path</span> ' + _this.url + ' (<span data-swTarnslate="1">server returned</span> ' + response.statusText + ')');
}
@@ -1793,9 +1784,7 @@ SwaggerResource.prototype.addApiDeclaration = function (response) {
}
this.api[this.name] = this;
this.ready = true;
if(this.api.resourceCount === this.api.expectedResourceCount)
this.api.finish();
return this;
return this.api.selfReflect();
};

SwaggerResource.prototype.addModels = function (models) {


+ 0
- 2
dist/swagger-ui.js Näytä tiedosto

@@ -289,7 +289,6 @@ SwaggerUi = (function(_super) {
};

SwaggerUi.prototype.load = function() {
console.log(0)
var url, _ref;
if ((_ref = this.mainView) != null) {
_ref.clear();
@@ -1938,7 +1937,6 @@ ResourceView = (function(_super) {
};

ResourceView.prototype.addOperation = function(operation) {
console.log(operation)
var operationView;
operation.number = this.number;
operationView = new OperationView({


Ladataan…
Peruuta
Tallenna