Merge commit '2bcff3a7603adcf030a700a242bdb9c92234b557' into releases

This commit is contained in:
RedocBot 2017-02-27 16:58:12 +00:00 committed by travis@localhost
commit 74b0630006
5 changed files with 12 additions and 15 deletions

View File

@ -61,6 +61,7 @@ We host the latest and all the previous ReDoc releases on GitHub Pages-based **C
<head> <head>
<title>ReDoc</title> <title>ReDoc</title>
<!-- needed for adaptive design --> <!-- needed for adaptive design -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <!--

View File

@ -7,7 +7,7 @@
<svg class="expand-icon" xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" viewBox="0 0 24 24" xml:space="preserve"> <svg class="expand-icon" xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" viewBox="0 0 24 24" xml:space="preserve">
<polygon fill="white" points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "/> <polygon fill="white" points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "/>
</svg> </svg>
<div class="servers-overlay" [@overlayExpand]="expanded ? 'expanded' : 'collapsed'"> <div class="servers-overlay">
<div *ngFor="let server of servers" class="server-item"> <div *ngFor="let server of servers" class="server-item">
<div class="description" [innerHtml]="server.description | marked"></div> <div class="description" [innerHtml]="server.description | marked"></div>
<div select-on-click class="url"> <div select-on-click class="url">

View File

@ -91,6 +91,10 @@
position: absolute; position: absolute;
} }
.servers-overlay {
transform: translateY(-50%) scaleY(0);
transition: all 0.25s ease;
}
:host.expanded { :host.expanded {
> .method-endpoint { > .method-endpoint {
border-color: $side-bar-bg-color; border-color: $side-bar-bg-color;
@ -101,4 +105,8 @@
.expand-icon { .expand-icon {
transform: rotateZ(180deg); transform: rotateZ(180deg);
} }
.servers-overlay {
transform: translateY(0%) scaleY(1);
}
} }

View File

@ -1,7 +1,6 @@
'use strict'; 'use strict';
import { Component, ChangeDetectionStrategy, Input, OnInit, HostListener, HostBinding} from '@angular/core'; import { Component, ChangeDetectionStrategy, Input, OnInit, HostListener, HostBinding} from '@angular/core';
import { BaseComponent, SpecManager } from '../base'; import { BaseComponent, SpecManager } from '../base';
import { trigger, state, animate, transition, style } from '@angular/core';
import { OptionsService } from '../../services/'; import { OptionsService } from '../../services/';
export interface ServerInfo { export interface ServerInfo {
@ -13,18 +12,7 @@ export interface ServerInfo {
selector: 'endpoint-link', selector: 'endpoint-link',
styleUrls: ['./endpoint-link.css'], styleUrls: ['./endpoint-link.css'],
templateUrl: './endpoint-link.html', templateUrl: './endpoint-link.html',
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush
animations: [
trigger('overlayExpand', [
state('collapsed, void',
style({ height: '0px' })),
state('expanded',
style({ height: '*' })),
transition('collapsed <=> expanded', [
animate('200ms ease')
])
])
]
}) })
export class EndpointLink implements OnInit { export class EndpointLink implements OnInit {
@Input() path:string; @Input() path:string;

View File

@ -1,7 +1,7 @@
{ {
"name": "redoc", "name": "redoc",
"description": "Swagger-generated API Reference Documentation", "description": "Swagger-generated API Reference Documentation",
"version": "1.10.0", "version": "1.10.1",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/Rebilly/ReDoc" "url": "git://github.com/Rebilly/ReDoc"