Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7439c7913 | ||
|
|
bfe55894e7 | ||
|
|
7e72281527 | ||
|
|
5eebb4ce08 | ||
|
|
1a11eb912f | ||
|
|
cddb022f40 |
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+11
-11
@@ -4,7 +4,7 @@
|
||||
* @link http://swagger.io
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
(function(){/* jshint ignore:start */
|
||||
(function(){/* jshint ignore:start */
|
||||
{(function() {
|
||||
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
|
||||
templates['apikey_auth'] = template({"1":function(container,depth0,helpers,partials,data) {
|
||||
@@ -29,7 +29,7 @@ templates['apikey_auth'] = template({"1":function(container,depth0,helpers,parti
|
||||
+ " </div>\n </div>\n</div>\n";
|
||||
},"useData":true});
|
||||
templates['auth_button'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
||||
return "<a class='authorize__btn' href=\"#\">Authorize</a>\n";
|
||||
return "<a class='authorize__btn' href=\"#\" data-sw-translate>Authorize</a>\n";
|
||||
},"useData":true});
|
||||
templates['auth_button_operation'] = template({"1":function(container,depth0,helpers,partials,data) {
|
||||
return " authorize__btn_operation_login\n";
|
||||
@@ -685,7 +685,7 @@ templates['resource'] = template({"1":function(container,depth0,helpers,partials
|
||||
+ ((stack1 = (helpers.sanitize || (depth0 && depth0.sanitize) || helpers.helperMissing).call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.url : depth0),{"name":"sanitize","hash":{},"data":data})) != null ? stack1 : "")
|
||||
+ "' data-sw-translate>Raw</a>\n </li>\n";
|
||||
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
||||
var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, buffer =
|
||||
var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, buffer =
|
||||
"<div class='heading'>\n <h2>\n <a href='#!/"
|
||||
+ ((stack1 = (helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.id : depth0),{"name":"sanitize","hash":{},"data":data})) != null ? stack1 : "")
|
||||
+ "' class=\"toggleEndpointList\" data-id=\""
|
||||
@@ -797,7 +797,7 @@ templates['status_code'] = template({"1":function(container,depth0,helpers,parti
|
||||
+ ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.headers : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
||||
+ " </tbody>\n </table>\n</td>";
|
||||
},"useData":true});
|
||||
})();}
|
||||
})();}
|
||||
/* jshint ignore:end */
|
||||
'use strict';
|
||||
|
||||
@@ -3091,7 +3091,7 @@ Handlebars.registerHelper('sanitize', function (text) {
|
||||
|
||||
Handlebars.registerHelper('renderTextParam', function(param) {
|
||||
var result, type = 'text', idAtt = '';
|
||||
var paramType = (param.schema) ? param.type || param.schema.type || '' : param.type || '';
|
||||
var paramType = (param.schema) ? param.type || param.schema.type || '' : param.type || '';
|
||||
var isArray = paramType.toLowerCase() === 'array' || param.allowMultiple;
|
||||
var defaultValue = isArray && Array.isArray(param.default) ? param.default.join('\n') : param.default;
|
||||
var name = Handlebars.Utils.escapeExpression(param.name);
|
||||
@@ -24861,7 +24861,7 @@ SwaggerUi.partials.signature = (function () {
|
||||
return result;
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
var getPrefix = function (name, xml) {
|
||||
var result = name || '';
|
||||
|
||||
@@ -24999,7 +24999,7 @@ SwaggerUi.partials.signature = (function () {
|
||||
|
||||
if (namespace) {
|
||||
attrs.push(namespace);
|
||||
}
|
||||
}
|
||||
|
||||
if (!properties && !additionalProperties) { return getErrorMessage(); }
|
||||
|
||||
@@ -25044,10 +25044,10 @@ SwaggerUi.partials.signature = (function () {
|
||||
var output, index;
|
||||
config = config || {};
|
||||
config.modelsToIgnore = config.modelsToIgnore || [];
|
||||
|
||||
|
||||
var descriptor = _.isString($ref) ? getDescriptorByRef($ref, name, models, config)
|
||||
: getDescriptor(name, definition, models, config);
|
||||
|
||||
|
||||
if (!descriptor) {
|
||||
return getErrorMessage();
|
||||
}
|
||||
@@ -25098,7 +25098,7 @@ SwaggerUi.partials.signature = (function () {
|
||||
else {
|
||||
name = name || model.name;
|
||||
}
|
||||
|
||||
|
||||
if (config.modelsToIgnore.indexOf($ref) > -1) {
|
||||
type = 'loop';
|
||||
config.loopTo = modelType;
|
||||
@@ -25109,7 +25109,7 @@ SwaggerUi.partials.signature = (function () {
|
||||
if (!model.definition) {
|
||||
return null;
|
||||
}
|
||||
return new Descriptor(name, type, model.definition, models, config);
|
||||
return new Descriptor(name, type, model.definition, models, config);
|
||||
}
|
||||
|
||||
function getDescriptor (name, definition, models, config){
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+57
@@ -0,0 +1,57 @@
|
||||
'use strict';
|
||||
|
||||
/* jshint quotmark: double */
|
||||
window.SwaggerTranslator.learn({
|
||||
"Warning: Deprecated":"Warnung: Deprecated",
|
||||
"Implementation Notes":"Implementierungshinweise",
|
||||
"Response Class":"Response Class",
|
||||
"Status":"Status",
|
||||
"Parameters":"Parameter",
|
||||
"Parameter":"Parameter",
|
||||
"Value":"Wert",
|
||||
"Description":"Beschreibung",
|
||||
"Parameter Type":"Parametertyp",
|
||||
"Data Type":"Datentyp",
|
||||
"Response Messages":"Response Messages",
|
||||
"HTTP Status Code":"HTTP Status Code",
|
||||
"Reason":"Grund",
|
||||
"Response Model":"Response Model",
|
||||
"Request URL":"Request URL",
|
||||
"Response Body":"Response Body",
|
||||
"Response Code":"Response Code",
|
||||
"Response Headers":"Response Headers",
|
||||
"Hide Response":"Response ausblenden",
|
||||
"Headers":"Headers",
|
||||
"Try it out!":"Ausprobieren",
|
||||
"Show/Hide":"Einblenden/Ausblenden",
|
||||
"List Operations":"Endpunkte anzeigen",
|
||||
"Expand Operations":"Endpunkte ausklappen",
|
||||
"Raw":"Raw",
|
||||
"can't parse JSON. Raw result":"Parsen von JSON fehlgeschlagen. Raw result",
|
||||
"Example Value":"Beispielwert",
|
||||
"Model Schema":"Schemamodell",
|
||||
"Model":"Modell",
|
||||
"Click to set as parameter value":"Klicken um Parameter zu setzen",
|
||||
"apply":"anlegen",
|
||||
"Username":"Benutzername",
|
||||
"Password":"Passwort",
|
||||
"Terms of service":"Nutzungsbedingungen",
|
||||
"Created by":"Erstellt von",
|
||||
"See more at":"Mehr unter",
|
||||
"Contact the developer":"Entwickler kontaktieren",
|
||||
"api version":"API-Version",
|
||||
"Response Content Type":"Response Content Type",
|
||||
"Parameter content type:":"Parameter Content Type:",
|
||||
"fetching resource":"Lade Ressourcen",
|
||||
"fetching resource list":"Lade Liste der Ressourcen",
|
||||
"Explore":"Erkunde",
|
||||
"Show Swagger Petstore Example Apis":"Anzeigen der Swagger Petstore Example Apis",
|
||||
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Lesen vom Server nicht möglich. Prüfen Sie die 'access-control-origin' Einstellungen.",
|
||||
"Please specify the protocol for":"Bitte geben Sie das Protokoll an",
|
||||
"Can't read swagger JSON from":"Swagger JSON kann nicht gelesen werden",
|
||||
"Finished Loading Resource Information. Rendering Swagger UI":"Ressourceninformationen sind geladen. Rendern der Swagger UI",
|
||||
"Unable to read api":"API kann nicht gelesen werden",
|
||||
"from path":"von Pfad",
|
||||
"server returned":"Server antwortet",
|
||||
"Authorize":"Autorisieren"
|
||||
});
|
||||
+2
-1
@@ -52,5 +52,6 @@ window.SwaggerTranslator.learn({
|
||||
"Finished Loading Resource Information. Rendering Swagger UI":"Finished Loading Resource Information. Rendering Swagger UI",
|
||||
"Unable to read api":"Unable to read api",
|
||||
"from path":"from path",
|
||||
"server returned":"server returned"
|
||||
"server returned":"server returned",
|
||||
"Authorize":"Authorize"
|
||||
});
|
||||
|
||||
+2
-1
@@ -50,5 +50,6 @@ window.SwaggerTranslator.learn({
|
||||
"Finished Loading Resource Information. Rendering Swagger UI":"Chargement des informations terminé. Affichage de Swagger UI",
|
||||
"Unable to read api":"Impossible de lire l'api",
|
||||
"from path":"à partir du chemin",
|
||||
"server returned":"réponse du serveur"
|
||||
"server returned":"réponse du serveur",
|
||||
"Authorize":"Autorisez"
|
||||
});
|
||||
|
||||
+2
-1
@@ -48,5 +48,6 @@ window.SwaggerTranslator.learn({
|
||||
"Finished Loading Resource Information. Rendering Swagger UI":"Lettura informazioni risorse termianta. Swagger UI viene mostrata",
|
||||
"Unable to read api":"Impossibile leggere la api",
|
||||
"from path":"da cartella",
|
||||
"server returned":"il server ha restituito"
|
||||
"server returned":"il server ha restituito",
|
||||
"Authorize":"Autorizzare"
|
||||
});
|
||||
|
||||
+2
-1
@@ -49,5 +49,6 @@ window.SwaggerTranslator.learn({
|
||||
"Finished Loading Resource Information. Rendering Swagger UI":"Ukończono Ładowanie Informacji o Zasobie. Renderowanie Swagger UI",
|
||||
"Unable to read api":"Nie można odczytać api",
|
||||
"from path":"ze ścieżki",
|
||||
"server returned":"serwer zwrócił"
|
||||
"server returned":"serwer zwrócił",
|
||||
"Authorize":"Autoryzuj"
|
||||
});
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
'use strict';
|
||||
|
||||
/* jshint quotmark: double */
|
||||
window.SwaggerTranslator.learn({
|
||||
"Warning: Deprecated":"Aviso: Descontinuado",
|
||||
"Implementation Notes":"Notas de Implementação",
|
||||
"Response Class":"Classe de resposta",
|
||||
"Status":"Status",
|
||||
"Parameters":"Parâmetros",
|
||||
"Parameter":"Parâmetro",
|
||||
"Value":"Valor",
|
||||
"Description":"Descrição",
|
||||
"Parameter Type":"Tipo de parâmetro",
|
||||
"Data Type":"Tipo de dados",
|
||||
"Response Messages":"Mensagens de resposta",
|
||||
"HTTP Status Code":"Código de status HTTP",
|
||||
"Reason":"Razão",
|
||||
"Response Model":"Modelo de resposta",
|
||||
"Request URL":"Requisição URL",
|
||||
"Response Body":"Corpo da resposta",
|
||||
"Response Code":"Código da resposta",
|
||||
"Response Headers":"Cabeçalho da resposta",
|
||||
"Headers":"Cabeçalhos",
|
||||
"Hide Response":"Esconder resposta",
|
||||
"Try it out!":"Tente agora!",
|
||||
"Show/Hide":"Mostrar/Esconder",
|
||||
"List Operations":"Listar operações",
|
||||
"Expand Operations":"Expandir operações",
|
||||
"Raw":"Cru",
|
||||
"can't parse JSON. Raw result":"Falha ao analisar JSON. Resulto cru",
|
||||
"Model Schema":"Esquema do modelo",
|
||||
"Model":"Modelo",
|
||||
"apply":"Aplicar",
|
||||
"Username":"Usuário",
|
||||
"Password":"Senha",
|
||||
"Terms of service":"Termos de serviço",
|
||||
"Created by":"Criado por",
|
||||
"See more at":"Veja mais em",
|
||||
"Contact the developer":"Contate o desenvolvedor",
|
||||
"api version":"Versão da api",
|
||||
"Response Content Type":"Tipo do conteúdo de resposta",
|
||||
"fetching resource":"buscar recurso",
|
||||
"fetching resource list":"buscar lista de recursos",
|
||||
"Explore":"Explorar",
|
||||
"Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis",
|
||||
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Não é possível ler do servidor. Ele pode não ter as configurações apropriadas de access-control-origin",
|
||||
"Please specify the protocol for":"Por favor especifique o protocolo",
|
||||
"Can't read swagger JSON from":"Não é possível ler o JSON Swagger de",
|
||||
"Finished Loading Resource Information. Rendering Swagger UI":"Carregamento de informação de recurso finalizada. Renderizando Swagger UI",
|
||||
"Unable to read api":"Não foi possível ler a api",
|
||||
"from path":"do caminho",
|
||||
"server returned":"servidor retornou",
|
||||
"Example Value":"Exemplo de Valores"
|
||||
});
|
||||
@@ -53,7 +53,7 @@ function handleLogin() {
|
||||
'<ul class="api-popup-scopes">',
|
||||
'</ul>',
|
||||
'<p class="error-msg"></p>',
|
||||
'<div class="api-popup-actions"><button class="api-popup-authbtn api-button green" type="button">Authorize</button><button class="api-popup-cancel api-button gray" type="button">Cancel</button></div>',
|
||||
'<div class="api-popup-actions"><button class="api-popup-authbtn api-button green" type="button" data-sw-translate>Authorize</button><button class="api-popup-cancel api-button gray" type="button">Cancel</button></div>',
|
||||
'</div>',
|
||||
'</div>'].join(''));
|
||||
$(document.body).append(popupDialog);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<a class='authorize__btn' href="#">Authorize</a>
|
||||
<a class='authorize__btn' href="#" data-sw-translate>Authorize</a>
|
||||
|
||||
@@ -23,7 +23,7 @@ templates['apikey_auth'] = template({"1":function(container,depth0,helpers,parti
|
||||
+ " </div>\n </div>\n</div>\n";
|
||||
},"useData":true});
|
||||
templates['auth_button'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
||||
return "<a class='authorize__btn' href=\"#\">Authorize</a>\n";
|
||||
return "<a class='authorize__btn' href=\"#\" data-sw-translate>Authorize</a>\n";
|
||||
},"useData":true});
|
||||
templates['auth_button_operation'] = template({"1":function(container,depth0,helpers,partials,data) {
|
||||
return " authorize__btn_operation_login\n";
|
||||
|
||||
Reference in New Issue
Block a user