mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 08:36:33 +03:00
Remove unused json-schema-view
This commit is contained in:
parent
9f731e960d
commit
d5f529df6f
|
@ -1,30 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
import {RedocComponent, BaseComponent} from '../base';
|
||||
|
||||
/* temporarily this component uses json-schema-view-js lib */
|
||||
import 'json-formatter-js/src/index';
|
||||
import 'json-formatter-js/dist/style.css!';
|
||||
import JSONSchemaView from 'json-schema-view-js/src/index';
|
||||
import 'json-schema-view-js/dist/style.css!';
|
||||
|
||||
import {ElementRef} from 'angular2/core';
|
||||
|
||||
@RedocComponent({
|
||||
selector: 'schema',
|
||||
template: ''
|
||||
})
|
||||
export default class JsonSchemaView extends BaseComponent {
|
||||
constructor(schemaMgr, elementRef) {
|
||||
super(schemaMgr);
|
||||
this.element = elementRef.nativeElement;
|
||||
}
|
||||
|
||||
init() {
|
||||
this.dereference();
|
||||
const formatter = new JSONSchemaView(this.componentSchema, 1);
|
||||
this.element.appendChild(formatter.render());
|
||||
}
|
||||
}
|
||||
|
||||
JsonSchemaView.parameters = JsonSchemaView.parameters.concat([[ElementRef]]);
|
|
@ -1,14 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
import {RedocComponent, BaseComponent} from '../base';
|
||||
import JsonSchemaView from '../JsonSchemaView/json-schema-view';
|
||||
import JsonSchema from '../JsonSchema/json-schema';
|
||||
|
||||
@RedocComponent({
|
||||
selector: 'params-list',
|
||||
templateUrl: './lib/components/ParamsList/params-list.html',
|
||||
styleUrls: ['./lib/components/ParamsList/params-list.css'],
|
||||
directives: [JsonSchemaView, JsonSchema]
|
||||
directives: [JsonSchema]
|
||||
})
|
||||
export default class ParamsList extends BaseComponent {
|
||||
constructor(schemaMgr) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
import ApiInfo from './ApiInfo/api-info';
|
||||
import JsonSchemaView from './JsonSchemaView/json-schema-view';
|
||||
import Method from './Method/method.js';
|
||||
import MethodsList from './MethodsList/methods-list';
|
||||
import ParamsList from './ParamsList/params-list';
|
||||
|
@ -14,7 +13,6 @@ import JsonSchema from './JsonSchema/json-schema';
|
|||
|
||||
const REDOC_COMPONENTS = [
|
||||
ApiInfo,
|
||||
JsonSchemaView,
|
||||
JsonSchema,
|
||||
Method,
|
||||
MethodsList,
|
||||
|
@ -28,7 +26,6 @@ const REDOC_COMPONENTS = [
|
|||
|
||||
export {
|
||||
ApiInfo,
|
||||
JsonSchemaView,
|
||||
JsonSchema,
|
||||
Method,
|
||||
MethodsList,
|
||||
|
|
Loading…
Reference in New Issue
Block a user