mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-04 17:57:30 +03:00 
			
		
		
		
	Merge 8199abf46e into 34623575ce
				
					
				
			This commit is contained in:
		
						commit
						00fdfc021f
					
				| 
						 | 
				
			
			@ -67,7 +67,7 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
 | 
			
		|||
      )) ||
 | 
			
		||||
      null;
 | 
			
		||||
 | 
			
		||||
    const version = (info.version && <span>({info.version})</span>) || null;
 | 
			
		||||
    const version = (info.version && <span translate="no">({info.version})</span>) || null;
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
      <Section>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,10 +50,10 @@ export class Endpoint extends React.Component<EndpointProps, EndpointState> {
 | 
			
		|||
        {options => (
 | 
			
		||||
          <OperationEndpointWrap>
 | 
			
		||||
            <EndpointInfo onClick={this.toggle} $expanded={expanded} $inverted={inverted}>
 | 
			
		||||
              <HttpVerb type={operation.httpVerb} $compact={this.props.compact}>
 | 
			
		||||
              <HttpVerb type={operation.httpVerb} $compact={this.props.compact} translate="no">
 | 
			
		||||
                {operation.httpVerb}
 | 
			
		||||
              </HttpVerb>
 | 
			
		||||
              <ServerRelativeURL>{operation.path}</ServerRelativeURL>
 | 
			
		||||
              <ServerRelativeURL translate="no">{operation.path}</ServerRelativeURL>
 | 
			
		||||
              <ShelfIcon
 | 
			
		||||
                float={'right'}
 | 
			
		||||
                color={inverted ? 'black' : 'white'}
 | 
			
		||||
| 
						 | 
				
			
			@ -73,7 +73,7 @@ export class Endpoint extends React.Component<EndpointProps, EndpointState> {
 | 
			
		|||
                    <Markdown source={server.description || ''} compact={true} />
 | 
			
		||||
                    <SelectOnClick>
 | 
			
		||||
                      <ServerUrl>
 | 
			
		||||
                        <span>
 | 
			
		||||
                        <span translate="no">
 | 
			
		||||
                          {hideHostname || options.hideHostname
 | 
			
		||||
                            ? basePath === '/'
 | 
			
		||||
                              ? ''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -80,13 +80,13 @@ export class Field extends React.Component<FieldProps> {
 | 
			
		|||
          onKeyPress={this.handleKeyPress}
 | 
			
		||||
          aria-label={`expand ${name}`}
 | 
			
		||||
        >
 | 
			
		||||
          <ShelfIcon direction={expanded ? 'down' : 'right'} />
 | 
			
		||||
        </button>
 | 
			
		||||
        {!hidePropertiesPrefix &&
 | 
			
		||||
          fieldParentsName.map(
 | 
			
		||||
            name => name + '.\u200B', // zero-width space, a special character is used for correct line breaking
 | 
			
		||||
          )}
 | 
			
		||||
          <span className="property-name">{name}</span>
 | 
			
		||||
          <ShelfIcon direction={expanded ? 'down' : 'right'} />
 | 
			
		||||
        </button>
 | 
			
		||||
        <span className="property-name" translate="no">{name}</span>
 | 
			
		||||
        {labels}
 | 
			
		||||
      </ClickablePropertyNameCell>
 | 
			
		||||
    ) : (
 | 
			
		||||
| 
						 | 
				
			
			@ -96,7 +96,7 @@ export class Field extends React.Component<FieldProps> {
 | 
			
		|||
          fieldParentsName.map(
 | 
			
		||||
            name => name + '.\u200B', // zero-width space, a special character is used for correct line breaking
 | 
			
		||||
          )}
 | 
			
		||||
        <span className="property-name">{name}</span>
 | 
			
		||||
        <span className="property-name" translate="no">{name}</span>
 | 
			
		||||
        {labels}
 | 
			
		||||
      </PropertyNameCell>
 | 
			
		||||
    );
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,7 +14,7 @@ export class ConstraintsView extends React.PureComponent<ConstraintsViewProps> {
 | 
			
		|||
      <span>
 | 
			
		||||
        {' '}
 | 
			
		||||
        {this.props.constraints.map(constraint => (
 | 
			
		||||
          <ConstraintItem key={constraint}> {constraint} </ConstraintItem>
 | 
			
		||||
          <ConstraintItem key={constraint} translate="no"> {constraint} </ConstraintItem>
 | 
			
		||||
        ))}
 | 
			
		||||
      </span>
 | 
			
		||||
    );
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ export class SecurityDefs extends React.PureComponent<SecurityDefsProps> {
 | 
			
		|||
            <SecurityDetailsStyle>
 | 
			
		||||
              <SecurityRow>
 | 
			
		||||
                <b>Security Scheme Type: </b>
 | 
			
		||||
                <span>{AUTH_TYPES[scheme.type] || scheme.type}</span>
 | 
			
		||||
                <span translate="no">{AUTH_TYPES[scheme.type] || scheme.type}</span>
 | 
			
		||||
              </SecurityRow>
 | 
			
		||||
              <SecurityDetails scheme={scheme} />
 | 
			
		||||
            </SecurityDetailsStyle>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,11 +27,11 @@ function stringifyStringLiteral(str: string) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
function decorateWithSpan(value, className) {
 | 
			
		||||
  return '<span class="' + className + '">' + htmlEncode(value) + '</span>';
 | 
			
		||||
  return '<span class="' + className + '" translate="no">' + htmlEncode(value) + '</span>';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function punctuation(val) {
 | 
			
		||||
  return '<span class="token punctuation">' + val + '</span>';
 | 
			
		||||
  return '<span class="token punctuation" translate="no">' + val + '</span>';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function valueToHTML(value, maxExpandLevel: number) {
 | 
			
		||||
| 
						 | 
				
			
			@ -106,7 +106,7 @@ function objectToHTML(json, maxExpandLevel: number) {
 | 
			
		|||
    const key = keys[i];
 | 
			
		||||
    hasContents = true;
 | 
			
		||||
    output += '<li><div class="hoverable ' + collapsed + '">';
 | 
			
		||||
    output += '<span class="property token string">"' + htmlEncode(key) + '"</span>: ';
 | 
			
		||||
    output += '<span class="property token string" translate="no">"' + htmlEncode(key) + '"</span>: ';
 | 
			
		||||
    output += valueToHTML(json[key], maxExpandLevel);
 | 
			
		||||
    if (i < length - 1) {
 | 
			
		||||
      output += punctuation(',');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user