Renamed RedocInfo to ApiInfo

This commit is contained in:
Roman Gotsiy 2015-10-08 23:27:02 +03:00
parent 3d1b529222
commit fce4ca1b9f
6 changed files with 10 additions and 10 deletions

View File

@ -1,3 +1,3 @@
h1 strong {
h1 {
color: #1976D3;
}

View File

@ -4,14 +4,14 @@ import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';
import {SchemaManager} from '../../utils/SchemaManager';
@Component({
selector: 'redoc-api-info'
selector: 'api-info'
})
@View({
templateUrl: './lib/components/RedocInfo/redoc-info.html',
styleUrls: ['./lib/components/RedocInfo/redoc-info.css'],
templateUrl: './lib/components/ApiInfo/api-info.html',
styleUrls: ['./lib/components/ApiInfo/api-info.css'],
directives: [CORE_DIRECTIVES]
})
export class RedocInfo {
export class ApiInfo {
constructor(schemaMgr) {
this.data = null;
this.schema = schemaMgr.schema;
@ -24,4 +24,4 @@ export class RedocInfo {
//TODO: check and apply hooks to modify data
}
}
RedocInfo.parameters = [[SchemaManager]]
ApiInfo.parameters = [[SchemaManager]]

View File

@ -1,2 +1,2 @@
<redoc-api-info> </redoc-api-info>
<api-info> </api-info>
<paths-list> </paths-list>

View File

@ -2,7 +2,7 @@
import {Component, View} from 'angular2/angular2';
import {SchemaManager} from '../../utils/SchemaManager';
import {RedocInfo} from '../RedocInfo/redoc-info';
import {ApiInfo} from '../ApiInfo/api-info';
import {PathsList} from '../PathsList/paths-list';
@Component({
@ -11,7 +11,7 @@ import {PathsList} from '../PathsList/paths-list';
})
@View({
templateUrl: './lib/components/Redoc/redoc.html',
directives: [RedocInfo, PathsList]
directives: [ApiInfo, PathsList]
})
export class Redoc {
constructor(schemaMgr) {

View File

@ -1,4 +1,4 @@
'use strict';
export * from './Redoc/redoc';
export * from './RedocInfo/redoc-info';
export * from './ApiInfo/api-info';