Skip to content

Commit 26ac3af

Browse files
committed
Merge pull request #1342 from ponelat/fix/remove-dead-code
remove dead code: show-wordnik-dev
2 parents f3e7bee + dfab1df commit 26ac3af

File tree

5 files changed

+9
-25
lines changed

5 files changed

+9
-25
lines changed

dist/swagger-ui.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20661,7 +20661,6 @@ SwaggerUi.Views.ContentTypeView = Backbone.View.extend({
2066120661
SwaggerUi.Views.HeaderView = Backbone.View.extend({
2066220662
events: {
2066320663
'click #show-pet-store-icon' : 'showPetStore',
20664-
'click #show-wordnik-dev-icon' : 'showWordnikDev',
2066520664
'click #explore' : 'showCustom',
2066620665
'keyup #input_baseUrl' : 'showCustomOnKeyup',
2066720666
'keyup #input_apiKey' : 'showCustomOnKeyup'
@@ -20675,12 +20674,6 @@ SwaggerUi.Views.HeaderView = Backbone.View.extend({
2067520674
});
2067620675
},
2067720676

20678-
showWordnikDev: function(){
20679-
this.trigger('update-swagger-ui', {
20680-
url: 'http://api.wordnik.com/v4/resources.json'
20681-
});
20682-
},
20683-
2068420677
showCustomOnKeyup: function(e){
2068520678
if (e.keyCode === 13) {
2068620679
this.showCustom();

dist/swagger-ui.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lang/en.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ window.SwaggerTranslator.learn({
4242
"fetching resource list":"fetching resource list",
4343
"Explore":"Explore",
4444
"Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis",
45-
"Show Wordnik Developer Apis":"Show Wordnik Developer Apis",
4645
"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.",
4746
"Please specify the protocol for":"Please specify the protocol for",
4847
"Can't read swagger JSON from":"Can't read swagger JSON from",
4948
"Finished Loading Resource Information. Rendering Swagger UI":"Finished Loading Resource Information. Rendering Swagger UI",
5049
"Unable to read api":"Unable to read api",
5150
"from path":"from path",
5251
"server returned":"server returned"
53-
});
52+
});

lang/ru.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ window.SwaggerTranslator.learn({
4242
"fetching resource list":"Получение ресурсов",
4343
"Explore":"Поехали",
4444
"Show Swagger Petstore Example Apis":"Показать примеры АПИ",
45-
"Show Wordnik Developer Apis":"Показать АПИ Wordnik Developer",
4645
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Не удается получить ответ от сервера. Возможно, какая-то лажа с настройками доступа",
4746
"Please specify the protocol for":"Пожалуйста, укажите протогол для",
4847
"Can't read swagger JSON from":"Не получается прочитать swagger json из",
4948
"Finished Loading Resource Information. Rendering Swagger UI":"Загрузка информации о ресурсах завершена. Рендерим",
5049
"Unable to read api":"Не удалось прочитать api",
5150
"from path":"по адресу",
5251
"server returned":"сервер сказал"
53-
});
52+
});

src/main/javascript/view/HeaderView.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
SwaggerUi.Views.HeaderView = Backbone.View.extend({
44
events: {
55
'click #show-pet-store-icon' : 'showPetStore',
6-
'click #show-wordnik-dev-icon' : 'showWordnikDev',
76
'click #explore' : 'showCustom',
87
'keyup #input_baseUrl' : 'showCustomOnKeyup',
98
'keyup #input_apiKey' : 'showCustomOnKeyup'
@@ -17,12 +16,6 @@ SwaggerUi.Views.HeaderView = Backbone.View.extend({
1716
});
1817
},
1918

20-
showWordnikDev: function(){
21-
this.trigger('update-swagger-ui', {
22-
url: 'http://api.wordnik.com/v4/resources.json'
23-
});
24-
},
25-
2619
showCustomOnKeyup: function(e){
2720
if (e.keyCode === 13) {
2821
this.showCustom();

0 commit comments

Comments
 (0)