mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 14:14:56 +03:00
added disableInfiniteScroll option
This commit is contained in:
parent
dc5430e53d
commit
b10616c340
|
@ -14,7 +14,7 @@ import * as zlib from 'zlib';
|
|||
import { createStore, loadAndBundleSpec, Redoc } from 'redoc';
|
||||
|
||||
import { watch } from 'chokidar';
|
||||
import { createReadStream, existsSync, readFileSync, ReadStream, writeFileSync, lstatSync } from 'fs';
|
||||
import { createReadStream, existsSync, lstatSync, readFileSync, ReadStream, writeFileSync } from 'fs';
|
||||
import * as mkdirp from 'mkdirp';
|
||||
|
||||
import * as YargsParser from 'yargs';
|
||||
|
|
0
e2e/disable-infinite-scroll-index.html
Normal file
0
e2e/disable-infinite-scroll-index.html
Normal file
0
e2e/integration/infinite-scroll.e2e.ts
Normal file
0
e2e/integration/infinite-scroll.e2e.ts
Normal file
0
src/components/ContentItems/SingleContentItem.tsx
Normal file
0
src/components/ContentItems/SingleContentItem.tsx
Normal file
|
@ -24,6 +24,7 @@ export interface RedocRawOptions {
|
|||
hideSingleRequestSampleTab?: boolean | string;
|
||||
menuToggle?: boolean | string;
|
||||
jsonSampleExpandLevel?: number | string | 'all';
|
||||
disableInfiniteScroll?: boolean | string;
|
||||
|
||||
unstable_ignoreMimeParameters?: boolean;
|
||||
|
||||
|
@ -144,6 +145,7 @@ export class RedocNormalizedOptions {
|
|||
menuToggle: boolean;
|
||||
jsonSampleExpandLevel: number;
|
||||
enumSkipQuotes: boolean;
|
||||
disableInfiniteScroll: boolean;
|
||||
|
||||
/* tslint:disable-next-line */
|
||||
unstable_ignoreMimeParameters: boolean;
|
||||
|
@ -182,7 +184,7 @@ export class RedocNormalizedOptions {
|
|||
raw.jsonSampleExpandLevel,
|
||||
);
|
||||
this.enumSkipQuotes = argValueToBoolean(raw.enumSkipQuotes);
|
||||
|
||||
this.disableInfiniteScroll = argValueToBoolean(raw.disableInfiniteScroll);
|
||||
this.unstable_ignoreMimeParameters = argValueToBoolean(raw.unstable_ignoreMimeParameters);
|
||||
|
||||
this.allowedMdComponents = raw.allowedMdComponents || {};
|
||||
|
|
Loading…
Reference in New Issue
Block a user