mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +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';
|
'use strict';
|
||||||
|
|
||||||
import {RedocComponent, BaseComponent} from '../base';
|
import {RedocComponent, BaseComponent} from '../base';
|
||||||
import JsonSchemaView from '../JsonSchemaView/json-schema-view';
|
|
||||||
import JsonSchema from '../JsonSchema/json-schema';
|
import JsonSchema from '../JsonSchema/json-schema';
|
||||||
|
|
||||||
@RedocComponent({
|
@RedocComponent({
|
||||||
selector: 'params-list',
|
selector: 'params-list',
|
||||||
templateUrl: './lib/components/ParamsList/params-list.html',
|
templateUrl: './lib/components/ParamsList/params-list.html',
|
||||||
styleUrls: ['./lib/components/ParamsList/params-list.css'],
|
styleUrls: ['./lib/components/ParamsList/params-list.css'],
|
||||||
directives: [JsonSchemaView, JsonSchema]
|
directives: [JsonSchema]
|
||||||
})
|
})
|
||||||
export default class ParamsList extends BaseComponent {
|
export default class ParamsList extends BaseComponent {
|
||||||
constructor(schemaMgr) {
|
constructor(schemaMgr) {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import ApiInfo from './ApiInfo/api-info';
|
import ApiInfo from './ApiInfo/api-info';
|
||||||
import JsonSchemaView from './JsonSchemaView/json-schema-view';
|
|
||||||
import Method from './Method/method.js';
|
import Method from './Method/method.js';
|
||||||
import MethodsList from './MethodsList/methods-list';
|
import MethodsList from './MethodsList/methods-list';
|
||||||
import ParamsList from './ParamsList/params-list';
|
import ParamsList from './ParamsList/params-list';
|
||||||
|
@ -14,7 +13,6 @@ import JsonSchema from './JsonSchema/json-schema';
|
||||||
|
|
||||||
const REDOC_COMPONENTS = [
|
const REDOC_COMPONENTS = [
|
||||||
ApiInfo,
|
ApiInfo,
|
||||||
JsonSchemaView,
|
|
||||||
JsonSchema,
|
JsonSchema,
|
||||||
Method,
|
Method,
|
||||||
MethodsList,
|
MethodsList,
|
||||||
|
@ -28,7 +26,6 @@ const REDOC_COMPONENTS = [
|
||||||
|
|
||||||
export {
|
export {
|
||||||
ApiInfo,
|
ApiInfo,
|
||||||
JsonSchemaView,
|
|
||||||
JsonSchema,
|
JsonSchema,
|
||||||
Method,
|
Method,
|
||||||
MethodsList,
|
MethodsList,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user