remove dead code: show-wordnik-dev
This commit is contained in:
7
dist/swagger-ui.js
vendored
7
dist/swagger-ui.js
vendored
@@ -20661,7 +20661,6 @@ SwaggerUi.Views.ContentTypeView = Backbone.View.extend({
|
|||||||
SwaggerUi.Views.HeaderView = Backbone.View.extend({
|
SwaggerUi.Views.HeaderView = Backbone.View.extend({
|
||||||
events: {
|
events: {
|
||||||
'click #show-pet-store-icon' : 'showPetStore',
|
'click #show-pet-store-icon' : 'showPetStore',
|
||||||
'click #show-wordnik-dev-icon' : 'showWordnikDev',
|
|
||||||
'click #explore' : 'showCustom',
|
'click #explore' : 'showCustom',
|
||||||
'keyup #input_baseUrl' : 'showCustomOnKeyup',
|
'keyup #input_baseUrl' : 'showCustomOnKeyup',
|
||||||
'keyup #input_apiKey' : 'showCustomOnKeyup'
|
'keyup #input_apiKey' : 'showCustomOnKeyup'
|
||||||
@@ -20675,12 +20674,6 @@ SwaggerUi.Views.HeaderView = Backbone.View.extend({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
showWordnikDev: function(){
|
|
||||||
this.trigger('update-swagger-ui', {
|
|
||||||
url: 'http://api.wordnik.com/v4/resources.json'
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
showCustomOnKeyup: function(e){
|
showCustomOnKeyup: function(e){
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
this.showCustom();
|
this.showCustom();
|
||||||
|
|||||||
14
dist/swagger-ui.min.js
vendored
14
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -42,7 +42,6 @@ window.SwaggerTranslator.learn({
|
|||||||
"fetching resource list":"fetching resource list",
|
"fetching resource list":"fetching resource list",
|
||||||
"Explore":"Explore",
|
"Explore":"Explore",
|
||||||
"Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis",
|
"Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis",
|
||||||
"Show Wordnik Developer Apis":"Show Wordnik Developer Apis",
|
|
||||||
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Can't read from server. It may not have the appropriate access-control-origin settings.",
|
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Can't read from server. It may not have the appropriate access-control-origin settings.",
|
||||||
"Please specify the protocol for":"Please specify the protocol for",
|
"Please specify the protocol for":"Please specify the protocol for",
|
||||||
"Can't read swagger JSON from":"Can't read swagger JSON from",
|
"Can't read swagger JSON from":"Can't read swagger JSON from",
|
||||||
@@ -50,4 +49,4 @@ window.SwaggerTranslator.learn({
|
|||||||
"Unable to read api":"Unable to read api",
|
"Unable to read api":"Unable to read api",
|
||||||
"from path":"from path",
|
"from path":"from path",
|
||||||
"server returned":"server returned"
|
"server returned":"server returned"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ window.SwaggerTranslator.learn({
|
|||||||
"fetching resource list":"Получение ресурсов",
|
"fetching resource list":"Получение ресурсов",
|
||||||
"Explore":"Поехали",
|
"Explore":"Поехали",
|
||||||
"Show Swagger Petstore Example Apis":"Показать примеры АПИ",
|
"Show Swagger Petstore Example Apis":"Показать примеры АПИ",
|
||||||
"Show Wordnik Developer Apis":"Показать АПИ Wordnik Developer",
|
|
||||||
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Не удается получить ответ от сервера. Возможно, какая-то лажа с настройками доступа",
|
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Не удается получить ответ от сервера. Возможно, какая-то лажа с настройками доступа",
|
||||||
"Please specify the protocol for":"Пожалуйста, укажите протогол для",
|
"Please specify the protocol for":"Пожалуйста, укажите протогол для",
|
||||||
"Can't read swagger JSON from":"Не получается прочитать swagger json из",
|
"Can't read swagger JSON from":"Не получается прочитать swagger json из",
|
||||||
@@ -50,4 +49,4 @@ window.SwaggerTranslator.learn({
|
|||||||
"Unable to read api":"Не удалось прочитать api",
|
"Unable to read api":"Не удалось прочитать api",
|
||||||
"from path":"по адресу",
|
"from path":"по адресу",
|
||||||
"server returned":"сервер сказал"
|
"server returned":"сервер сказал"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
SwaggerUi.Views.HeaderView = Backbone.View.extend({
|
SwaggerUi.Views.HeaderView = Backbone.View.extend({
|
||||||
events: {
|
events: {
|
||||||
'click #show-pet-store-icon' : 'showPetStore',
|
'click #show-pet-store-icon' : 'showPetStore',
|
||||||
'click #show-wordnik-dev-icon' : 'showWordnikDev',
|
|
||||||
'click #explore' : 'showCustom',
|
'click #explore' : 'showCustom',
|
||||||
'keyup #input_baseUrl' : 'showCustomOnKeyup',
|
'keyup #input_baseUrl' : 'showCustomOnKeyup',
|
||||||
'keyup #input_apiKey' : 'showCustomOnKeyup'
|
'keyup #input_apiKey' : 'showCustomOnKeyup'
|
||||||
@@ -17,12 +16,6 @@ SwaggerUi.Views.HeaderView = Backbone.View.extend({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
showWordnikDev: function(){
|
|
||||||
this.trigger('update-swagger-ui', {
|
|
||||||
url: 'http://api.wordnik.com/v4/resources.json'
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
showCustomOnKeyup: function(e){
|
showCustomOnKeyup: function(e){
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
this.showCustom();
|
this.showCustom();
|
||||||
|
|||||||
Reference in New Issue
Block a user