mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-24 09:33:44 +03:00
23 lines
629 B
JavaScript
23 lines
629 B
JavaScript
'use strict';
|
|
|
|
import {SchemaManager, RedocComponent, BaseComponent} from '../base';
|
|
import OptionsManager from '../../options';
|
|
|
|
@RedocComponent({
|
|
selector: 'api-info',
|
|
styleUrls: ['./lib/components/ApiInfo/api-info.css'],
|
|
templateUrl: './lib/components/ApiInfo/api-info.html'
|
|
})
|
|
@Reflect.metadata('parameters', [[SchemaManager], [OptionsManager]])
|
|
export default class ApiInfo extends BaseComponent {
|
|
constructor(schemaMgr, optionsMgr) {
|
|
super(schemaMgr);
|
|
this.optionsMgr = optionsMgr;
|
|
}
|
|
|
|
prepareModel() {
|
|
this.data = this.componentSchema.info;
|
|
this.specUrl = this.optionsMgr.options.specUrl;
|
|
}
|
|
}
|