mirror of
https://github.com/Redocly/redoc.git
synced 2025-03-28 13:34:19 +03:00
Renamed RedocInfo to ApiInfo
This commit is contained in:
parent
3d1b529222
commit
fce4ca1b9f
|
@ -1,3 +1,3 @@
|
|||
h1 strong {
|
||||
h1 {
|
||||
color: #1976D3;
|
||||
}
|
|
@ -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]]
|
|
@ -1,2 +1,2 @@
|
|||
<redoc-api-info> </redoc-api-info>
|
||||
<api-info> </api-info>
|
||||
<paths-list> </paths-list>
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
'use strict';
|
||||
|
||||
export * from './Redoc/redoc';
|
||||
export * from './RedocInfo/redoc-info';
|
||||
export * from './ApiInfo/api-info';
|
||||
|
|
Loading…
Reference in New Issue
Block a user