Remove unused json-schema-view

This commit is contained in:
Roman Hotsiy 2015-12-19 15:45:47 +02:00
parent 9f731e960d
commit d5f529df6f
3 changed files with 1 additions and 35 deletions

View File

@ -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]]);

View File

@ -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) {

View File

@ -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,