diff --git a/scm-ui/ui-webapp/.flowconfig b/scm-ui/ui-webapp/.flowconfig deleted file mode 100644 index f637b93630..0000000000 --- a/scm-ui/ui-webapp/.flowconfig +++ /dev/null @@ -1,16 +0,0 @@ -[ignore] - -[include] -/../../ui-types -/../../ui-components - -[libs] - - -[lints] - -[options] -module.system.node.resolve_dirname=../../node_modules -module.name_mapper='^@scm-manager\/ui-\([a-zA-Z0-9_\-]+\)$' -> '/../ui-\1' - -[strict] diff --git a/scm-ui/ui-webapp/flow-typed/npm/@scm-manager/ui-extensions_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/@scm-manager/ui-extensions_vx.x.x.js deleted file mode 100644 index f7d05cdadd..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/@scm-manager/ui-extensions_vx.x.x.js +++ /dev/null @@ -1,49 +0,0 @@ -// flow-typed signature: e87b860fca7047001bcde4b8780a8655 -// flow-typed version: <>/@scm-manager/ui-extensions_v0.1.2/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * '@scm-manager/ui-extensions' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module '@scm-manager/ui-extensions' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module '@scm-manager/ui-extensions/lib/binder' { - declare module.exports: any; -} - -declare module '@scm-manager/ui-extensions/lib/ExtensionPoint' { - declare module.exports: any; -} - -declare module '@scm-manager/ui-extensions/lib' { - declare module.exports: any; -} - -// Filename aliases -declare module '@scm-manager/ui-extensions/lib/binder.js' { - declare module.exports: $Exports<'@scm-manager/ui-extensions/lib/binder'>; -} -declare module '@scm-manager/ui-extensions/lib/ExtensionPoint.js' { - declare module.exports: $Exports<'@scm-manager/ui-extensions/lib/ExtensionPoint'>; -} -declare module '@scm-manager/ui-extensions/lib/index' { - declare module.exports: $Exports<'@scm-manager/ui-extensions/lib'>; -} -declare module '@scm-manager/ui-extensions/lib/index.js' { - declare module.exports: $Exports<'@scm-manager/ui-extensions/lib'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/classnames_v2.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/classnames_v2.x.x.js deleted file mode 100644 index 2307243eeb..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/classnames_v2.x.x.js +++ /dev/null @@ -1,23 +0,0 @@ -// flow-typed signature: cf86673cc32d185bdab1d2ea90578d37 -// flow-typed version: 614bf49aa8/classnames_v2.x.x/flow_>=v0.25.x - -type $npm$classnames$Classes = - | string - | { [className: string]: * } - | false - | void - | null; - -declare module "classnames" { - declare module.exports: ( - ...classes: Array<$npm$classnames$Classes | $npm$classnames$Classes[]> - ) => string; -} - -declare module "classnames/bind" { - declare module.exports: $Exports<"classnames">; -} - -declare module "classnames/dedupe" { - declare module.exports: $Exports<"classnames">; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/enzyme_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/enzyme_vx.x.x.js deleted file mode 100644 index aae3d366ad..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/enzyme_vx.x.x.js +++ /dev/null @@ -1,269 +0,0 @@ -// flow-typed signature: 761f01d8db9f91fa67135cb2120c2b8e -// flow-typed version: <>/enzyme_v3.10.0/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'enzyme' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'enzyme' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'enzyme/build/configuration' { - declare module.exports: any; -} - -declare module 'enzyme/build/Debug' { - declare module.exports: any; -} - -declare module 'enzyme/build/EnzymeAdapter' { - declare module.exports: any; -} - -declare module 'enzyme/build/getAdapter' { - declare module.exports: any; -} - -declare module 'enzyme/build' { - declare module.exports: any; -} - -declare module 'enzyme/build/mount' { - declare module.exports: any; -} - -declare module 'enzyme/build/ReactWrapper' { - declare module.exports: any; -} - -declare module 'enzyme/build/render' { - declare module.exports: any; -} - -declare module 'enzyme/build/RSTTraversal' { - declare module.exports: any; -} - -declare module 'enzyme/build/selectors' { - declare module.exports: any; -} - -declare module 'enzyme/build/shallow' { - declare module.exports: any; -} - -declare module 'enzyme/build/ShallowWrapper' { - declare module.exports: any; -} - -declare module 'enzyme/build/Utils' { - declare module.exports: any; -} - -declare module 'enzyme/build/validateAdapter' { - declare module.exports: any; -} - -declare module 'enzyme/mount' { - declare module.exports: any; -} - -declare module 'enzyme/ReactWrapper' { - declare module.exports: any; -} - -declare module 'enzyme/render' { - declare module.exports: any; -} - -declare module 'enzyme/shallow' { - declare module.exports: any; -} - -declare module 'enzyme/ShallowWrapper' { - declare module.exports: any; -} - -declare module 'enzyme/src/configuration' { - declare module.exports: any; -} - -declare module 'enzyme/src/Debug' { - declare module.exports: any; -} - -declare module 'enzyme/src/EnzymeAdapter' { - declare module.exports: any; -} - -declare module 'enzyme/src/getAdapter' { - declare module.exports: any; -} - -declare module 'enzyme/src' { - declare module.exports: any; -} - -declare module 'enzyme/src/mount' { - declare module.exports: any; -} - -declare module 'enzyme/src/ReactWrapper' { - declare module.exports: any; -} - -declare module 'enzyme/src/render' { - declare module.exports: any; -} - -declare module 'enzyme/src/RSTTraversal' { - declare module.exports: any; -} - -declare module 'enzyme/src/selectors' { - declare module.exports: any; -} - -declare module 'enzyme/src/shallow' { - declare module.exports: any; -} - -declare module 'enzyme/src/ShallowWrapper' { - declare module.exports: any; -} - -declare module 'enzyme/src/Utils' { - declare module.exports: any; -} - -declare module 'enzyme/src/validateAdapter' { - declare module.exports: any; -} - -declare module 'enzyme/withDom' { - declare module.exports: any; -} - -// Filename aliases -declare module 'enzyme/build/configuration.js' { - declare module.exports: $Exports<'enzyme/build/configuration'>; -} -declare module 'enzyme/build/Debug.js' { - declare module.exports: $Exports<'enzyme/build/Debug'>; -} -declare module 'enzyme/build/EnzymeAdapter.js' { - declare module.exports: $Exports<'enzyme/build/EnzymeAdapter'>; -} -declare module 'enzyme/build/getAdapter.js' { - declare module.exports: $Exports<'enzyme/build/getAdapter'>; -} -declare module 'enzyme/build/index' { - declare module.exports: $Exports<'enzyme/build'>; -} -declare module 'enzyme/build/index.js' { - declare module.exports: $Exports<'enzyme/build'>; -} -declare module 'enzyme/build/mount.js' { - declare module.exports: $Exports<'enzyme/build/mount'>; -} -declare module 'enzyme/build/ReactWrapper.js' { - declare module.exports: $Exports<'enzyme/build/ReactWrapper'>; -} -declare module 'enzyme/build/render.js' { - declare module.exports: $Exports<'enzyme/build/render'>; -} -declare module 'enzyme/build/RSTTraversal.js' { - declare module.exports: $Exports<'enzyme/build/RSTTraversal'>; -} -declare module 'enzyme/build/selectors.js' { - declare module.exports: $Exports<'enzyme/build/selectors'>; -} -declare module 'enzyme/build/shallow.js' { - declare module.exports: $Exports<'enzyme/build/shallow'>; -} -declare module 'enzyme/build/ShallowWrapper.js' { - declare module.exports: $Exports<'enzyme/build/ShallowWrapper'>; -} -declare module 'enzyme/build/Utils.js' { - declare module.exports: $Exports<'enzyme/build/Utils'>; -} -declare module 'enzyme/build/validateAdapter.js' { - declare module.exports: $Exports<'enzyme/build/validateAdapter'>; -} -declare module 'enzyme/mount.js' { - declare module.exports: $Exports<'enzyme/mount'>; -} -declare module 'enzyme/ReactWrapper.js' { - declare module.exports: $Exports<'enzyme/ReactWrapper'>; -} -declare module 'enzyme/render.js' { - declare module.exports: $Exports<'enzyme/render'>; -} -declare module 'enzyme/shallow.js' { - declare module.exports: $Exports<'enzyme/shallow'>; -} -declare module 'enzyme/ShallowWrapper.js' { - declare module.exports: $Exports<'enzyme/ShallowWrapper'>; -} -declare module 'enzyme/src/configuration.js' { - declare module.exports: $Exports<'enzyme/src/configuration'>; -} -declare module 'enzyme/src/Debug.js' { - declare module.exports: $Exports<'enzyme/src/Debug'>; -} -declare module 'enzyme/src/EnzymeAdapter.js' { - declare module.exports: $Exports<'enzyme/src/EnzymeAdapter'>; -} -declare module 'enzyme/src/getAdapter.js' { - declare module.exports: $Exports<'enzyme/src/getAdapter'>; -} -declare module 'enzyme/src/index' { - declare module.exports: $Exports<'enzyme/src'>; -} -declare module 'enzyme/src/index.js' { - declare module.exports: $Exports<'enzyme/src'>; -} -declare module 'enzyme/src/mount.js' { - declare module.exports: $Exports<'enzyme/src/mount'>; -} -declare module 'enzyme/src/ReactWrapper.js' { - declare module.exports: $Exports<'enzyme/src/ReactWrapper'>; -} -declare module 'enzyme/src/render.js' { - declare module.exports: $Exports<'enzyme/src/render'>; -} -declare module 'enzyme/src/RSTTraversal.js' { - declare module.exports: $Exports<'enzyme/src/RSTTraversal'>; -} -declare module 'enzyme/src/selectors.js' { - declare module.exports: $Exports<'enzyme/src/selectors'>; -} -declare module 'enzyme/src/shallow.js' { - declare module.exports: $Exports<'enzyme/src/shallow'>; -} -declare module 'enzyme/src/ShallowWrapper.js' { - declare module.exports: $Exports<'enzyme/src/ShallowWrapper'>; -} -declare module 'enzyme/src/Utils.js' { - declare module.exports: $Exports<'enzyme/src/Utils'>; -} -declare module 'enzyme/src/validateAdapter.js' { - declare module.exports: $Exports<'enzyme/src/validateAdapter'>; -} -declare module 'enzyme/withDom.js' { - declare module.exports: $Exports<'enzyme/withDom'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/fetch-mock_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/fetch-mock_vx.x.x.js deleted file mode 100644 index 194edbfc78..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/fetch-mock_vx.x.x.js +++ /dev/null @@ -1,171 +0,0 @@ -// flow-typed signature: 97b9f493816b5bb72fbf5c9e229affd7 -// flow-typed version: <>/fetch-mock_v6.5.2/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'fetch-mock' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'fetch-mock' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'fetch-mock/dist/es5/client-bundle' { - declare module.exports: any; -} - -declare module 'fetch-mock/es5/client' { - declare module.exports: any; -} - -declare module 'fetch-mock/es5/lib/compile-route' { - declare module.exports: any; -} - -declare module 'fetch-mock/es5/lib/fetch-handler' { - declare module.exports: any; -} - -declare module 'fetch-mock/es5/lib' { - declare module.exports: any; -} - -declare module 'fetch-mock/es5/lib/inspecting' { - declare module.exports: any; -} - -declare module 'fetch-mock/es5/lib/response-builder' { - declare module.exports: any; -} - -declare module 'fetch-mock/es5/lib/set-up-and-tear-down' { - declare module.exports: any; -} - -declare module 'fetch-mock/es5/lib/status-text' { - declare module.exports: any; -} - -declare module 'fetch-mock/es5/server' { - declare module.exports: any; -} - -declare module 'fetch-mock/scripts/support-fetch-mock' { - declare module.exports: any; -} - -declare module 'fetch-mock/src/client' { - declare module.exports: any; -} - -declare module 'fetch-mock/src/lib/compile-route' { - declare module.exports: any; -} - -declare module 'fetch-mock/src/lib/fetch-handler' { - declare module.exports: any; -} - -declare module 'fetch-mock/src/lib' { - declare module.exports: any; -} - -declare module 'fetch-mock/src/lib/inspecting' { - declare module.exports: any; -} - -declare module 'fetch-mock/src/lib/response-builder' { - declare module.exports: any; -} - -declare module 'fetch-mock/src/lib/set-up-and-tear-down' { - declare module.exports: any; -} - -declare module 'fetch-mock/src/lib/status-text' { - declare module.exports: any; -} - -declare module 'fetch-mock/src/server' { - declare module.exports: any; -} - -// Filename aliases -declare module 'fetch-mock/dist/es5/client-bundle.js' { - declare module.exports: $Exports<'fetch-mock/dist/es5/client-bundle'>; -} -declare module 'fetch-mock/es5/client.js' { - declare module.exports: $Exports<'fetch-mock/es5/client'>; -} -declare module 'fetch-mock/es5/lib/compile-route.js' { - declare module.exports: $Exports<'fetch-mock/es5/lib/compile-route'>; -} -declare module 'fetch-mock/es5/lib/fetch-handler.js' { - declare module.exports: $Exports<'fetch-mock/es5/lib/fetch-handler'>; -} -declare module 'fetch-mock/es5/lib/index' { - declare module.exports: $Exports<'fetch-mock/es5/lib'>; -} -declare module 'fetch-mock/es5/lib/index.js' { - declare module.exports: $Exports<'fetch-mock/es5/lib'>; -} -declare module 'fetch-mock/es5/lib/inspecting.js' { - declare module.exports: $Exports<'fetch-mock/es5/lib/inspecting'>; -} -declare module 'fetch-mock/es5/lib/response-builder.js' { - declare module.exports: $Exports<'fetch-mock/es5/lib/response-builder'>; -} -declare module 'fetch-mock/es5/lib/set-up-and-tear-down.js' { - declare module.exports: $Exports<'fetch-mock/es5/lib/set-up-and-tear-down'>; -} -declare module 'fetch-mock/es5/lib/status-text.js' { - declare module.exports: $Exports<'fetch-mock/es5/lib/status-text'>; -} -declare module 'fetch-mock/es5/server.js' { - declare module.exports: $Exports<'fetch-mock/es5/server'>; -} -declare module 'fetch-mock/scripts/support-fetch-mock.js' { - declare module.exports: $Exports<'fetch-mock/scripts/support-fetch-mock'>; -} -declare module 'fetch-mock/src/client.js' { - declare module.exports: $Exports<'fetch-mock/src/client'>; -} -declare module 'fetch-mock/src/lib/compile-route.js' { - declare module.exports: $Exports<'fetch-mock/src/lib/compile-route'>; -} -declare module 'fetch-mock/src/lib/fetch-handler.js' { - declare module.exports: $Exports<'fetch-mock/src/lib/fetch-handler'>; -} -declare module 'fetch-mock/src/lib/index' { - declare module.exports: $Exports<'fetch-mock/src/lib'>; -} -declare module 'fetch-mock/src/lib/index.js' { - declare module.exports: $Exports<'fetch-mock/src/lib'>; -} -declare module 'fetch-mock/src/lib/inspecting.js' { - declare module.exports: $Exports<'fetch-mock/src/lib/inspecting'>; -} -declare module 'fetch-mock/src/lib/response-builder.js' { - declare module.exports: $Exports<'fetch-mock/src/lib/response-builder'>; -} -declare module 'fetch-mock/src/lib/set-up-and-tear-down.js' { - declare module.exports: $Exports<'fetch-mock/src/lib/set-up-and-tear-down'>; -} -declare module 'fetch-mock/src/lib/status-text.js' { - declare module.exports: $Exports<'fetch-mock/src/lib/status-text'>; -} -declare module 'fetch-mock/src/server.js' { - declare module.exports: $Exports<'fetch-mock/src/server'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/gitdiff-parser_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/gitdiff-parser_vx.x.x.js deleted file mode 100644 index e8a1ca308d..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/gitdiff-parser_vx.x.x.js +++ /dev/null @@ -1,66 +0,0 @@ -// flow-typed signature: 9be79ea52a669f6c266677d1d0bd3e9d -// flow-typed version: <>/gitdiff-parser_v0.1.2/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'gitdiff-parser' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'gitdiff-parser' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'gitdiff-parser/test/git.test' { - declare module.exports: any; -} - -declare module 'gitdiff-parser/test/hg' { - declare module.exports: any; -} - -declare module 'gitdiff-parser/test/hg.test' { - declare module.exports: any; -} - -declare module 'gitdiff-parser/test/perf-parse-diff' { - declare module.exports: any; -} - -declare module 'gitdiff-parser/test/perf' { - declare module.exports: any; -} - -// Filename aliases -declare module 'gitdiff-parser/index' { - declare module.exports: $Exports<'gitdiff-parser'>; -} -declare module 'gitdiff-parser/index.js' { - declare module.exports: $Exports<'gitdiff-parser'>; -} -declare module 'gitdiff-parser/test/git.test.js' { - declare module.exports: $Exports<'gitdiff-parser/test/git.test'>; -} -declare module 'gitdiff-parser/test/hg.js' { - declare module.exports: $Exports<'gitdiff-parser/test/hg'>; -} -declare module 'gitdiff-parser/test/hg.test.js' { - declare module.exports: $Exports<'gitdiff-parser/test/hg.test'>; -} -declare module 'gitdiff-parser/test/perf-parse-diff.js' { - declare module.exports: $Exports<'gitdiff-parser/test/perf-parse-diff'>; -} -declare module 'gitdiff-parser/test/perf.js' { - declare module.exports: $Exports<'gitdiff-parser/test/perf'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/history_v4.10.x.js b/scm-ui/ui-webapp/flow-typed/npm/history_v4.10.x.js deleted file mode 100644 index e46d4e7ad4..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/history_v4.10.x.js +++ /dev/null @@ -1,109 +0,0 @@ -// flow-typed signature: 90337b03d736e9bdaa68004c36c4d3ee -// flow-typed version: 51319746df/history_v4.10.x/flow_>=v0.104.x - -declare module 'history' { - declare type Unregister = () => void; - - declare export type Action = 'PUSH' | 'REPLACE' | 'POP'; - - declare export type Location = {| - pathname: string, - search: string, - hash: string, - state: { ... }, - key: string, - |}; - - declare type History = {| - length: number, - location: HistoryLocation, - action: Action, - push: ((path: string, state?: { ... }) => void) & - ((location: $Shape) => void), - replace: ((path: string, state?: { ... }) => void) & - ((location: $Shape) => void), - go(n: number): void, - goBack(): void, - goForward(): void, - listen((location: HistoryLocation, action: Action) => void): Unregister, - block( - prompt: - | string - | boolean - | ((location: HistoryLocation, action: Action) => string | false | void) - ): Unregister, - createHref(location: $Shape): string, - |}; - - declare export type BrowserHistory = History<>; - - declare type BrowserHistoryOpts = {| - basename?: string, - forceRefresh?: boolean, - getUserConfirmation?: ( - message: string, - callback: (willContinue: boolean) => void - ) => void, - keyLength?: number, - |}; - - declare function createBrowserHistory( - opts?: BrowserHistoryOpts - ): BrowserHistory; - - declare export type MemoryHistory = {| - ...History<>, - index: number, - entries: Array, - canGo(n: number): boolean, - |}; - - declare type MemoryHistoryOpts = {| - initialEntries?: Array, - initialIndex?: number, - keyLength?: number, - getUserConfirmation?: ( - message: string, - callback: (willContinue: boolean) => void - ) => void, - |}; - - declare function createMemoryHistory(opts?: MemoryHistoryOpts): MemoryHistory; - - declare export type HashLocation = {| - ...Location, - state: void, - key: void, - |}; - - declare export type HashHistory = History; - - declare type HashHistoryOpts = {| - basename?: string, - hashType: 'slash' | 'noslash' | 'hashbang', - getUserConfirmation?: ( - message: string, - callback: (willContinue: boolean) => void - ) => void, - |}; - - declare function createHashHistory(opts?: HashHistoryOpts): HashHistory; - - // PathUtils - declare function parsePath(path: string): Location; - - declare function createPath(location: $Shape): string; - - // LocationUtils - declare function locationsAreEqual( - a: $Shape, - b: $Shape - ): boolean; - - declare function createLocation( - path: string | $Shape, - state?: { ... }, - key?: string, - currentLocation?: Location - ): Location; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/jest_v20.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/jest_v20.x.x.js deleted file mode 100644 index ef86185d08..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/jest_v20.x.x.js +++ /dev/null @@ -1,597 +0,0 @@ -// flow-typed signature: 002f0912eb0f40f562c348561ea3d850 -// flow-typed version: a5bbe16c29/jest_v20.x.x/flow_>=v0.39.x - -type JestMockFn, TReturn> = { - (...args: TArguments): TReturn, - /** - * An object for introspecting mock calls - */ - mock: { - /** - * An array that represents all calls that have been made into this mock - * function. Each call is represented by an array of arguments that were - * passed during the call. - */ - calls: Array, - /** - * An array that contains all the object instances that have been - * instantiated from this mock function. - */ - instances: Array - }, - /** - * Resets all information stored in the mockFn.mock.calls and - * mockFn.mock.instances arrays. Often this is useful when you want to clean - * up a mock's usage data between two assertions. - */ - mockClear(): void, - /** - * Resets all information stored in the mock. This is useful when you want to - * completely restore a mock back to its initial state. - */ - mockReset(): void, - /** - * Removes the mock and restores the initial implementation. This is useful - * when you want to mock functions in certain test cases and restore the - * original implementation in others. Beware that mockFn.mockRestore only - * works when mock was created with jest.spyOn. Thus you have to take care of - * restoration yourself when manually assigning jest.fn(). - */ - mockRestore(): void, - /** - * Accepts a function that should be used as the implementation of the mock. - * The mock itself will still record all calls that go into and instances - * that come from itself -- the only difference is that the implementation - * will also be executed when the mock is called. - */ - mockImplementation( - fn: (...args: TArguments) => TReturn, - ): JestMockFn, - /** - * Accepts a function that will be used as an implementation of the mock for - * one call to the mocked function. Can be chained so that multiple function - * calls produce different results. - */ - mockImplementationOnce( - fn: (...args: TArguments) => TReturn, - ): JestMockFn, - /** - * Just a simple sugar function for returning `this` - */ - mockReturnThis(): void, - /** - * Deprecated: use jest.fn(() => value) instead - */ - mockReturnValue(value: TReturn): JestMockFn, - /** - * Sugar for only returning a value once inside your mock - */ - mockReturnValueOnce(value: TReturn): JestMockFn -}; - -type JestAsymmetricEqualityType = { - /** - * A custom Jasmine equality tester - */ - asymmetricMatch(value: mixed): boolean -}; - -type JestCallsType = { - allArgs(): mixed, - all(): mixed, - any(): boolean, - count(): number, - first(): mixed, - mostRecent(): mixed, - reset(): void -}; - -type JestClockType = { - install(): void, - mockDate(date: Date): void, - tick(milliseconds?: number): void, - uninstall(): void -}; - -type JestMatcherResult = { - message?: string | (() => string), - pass: boolean -}; - -type JestMatcher = (actual: any, expected: any) => JestMatcherResult; - -type JestPromiseType = { - /** - * Use rejects to unwrap the reason of a rejected promise so any other - * matcher can be chained. If the promise is fulfilled the assertion fails. - */ - rejects: JestExpectType, - /** - * Use resolves to unwrap the value of a fulfilled promise so any other - * matcher can be chained. If the promise is rejected the assertion fails. - */ - resolves: JestExpectType -}; - -/** - * Plugin: jest-enzyme - */ -type EnzymeMatchersType = { - toBeChecked(): void, - toBeDisabled(): void, - toBeEmpty(): void, - toBeEmptyRender(): void, - toBePresent(): void, - toContainReact(element: React$Element): void, - toExist(): void, - toHaveClassName(className: string): void, - toHaveHTML(html: string): void, - toHaveProp: ((propKey: string, propValue?: any) => void) & ((props: Object) => void), - toHaveRef(refName: string): void, - toHaveState: ((stateKey: string, stateValue?: any) => void) & ((state: Object) => void), - toHaveStyle: ((styleKey: string, styleValue?: any) => void) & ((style: Object) => void), - toHaveTagName(tagName: string): void, - toHaveText(text: string): void, - toIncludeText(text: string): void, - toHaveValue(value: any): void, - toMatchElement(element: React$Element): void, - toMatchSelector(selector: string): void -}; - -// DOM testing library extensions https://github.com/kentcdodds/dom-testing-library#custom-jest-matchers -type DomTestingLibraryType = { - toBeInTheDOM(): void, - toHaveTextContent(content: string): void, - toHaveAttribute(name: string, expectedValue?: string): void -}; - -type JestExpectType = { - not: JestExpectType & EnzymeMatchersType & DomTestingLibraryType, - /** - * If you have a mock function, you can use .lastCalledWith to test what - * arguments it was last called with. - */ - lastCalledWith(...args: Array): void, - /** - * toBe just checks that a value is what you expect. It uses === to check - * strict equality. - */ - toBe(value: any): void, - /** - * Use .toHaveBeenCalled to ensure that a mock function got called. - */ - toBeCalled(): void, - /** - * Use .toBeCalledWith to ensure that a mock function was called with - * specific arguments. - */ - toBeCalledWith(...args: Array): void, - /** - * Using exact equality with floating point numbers is a bad idea. Rounding - * means that intuitive things fail. - */ - toBeCloseTo(num: number, delta: any): void, - /** - * Use .toBeDefined to check that a variable is not undefined. - */ - toBeDefined(): void, - /** - * Use .toBeFalsy when you don't care what a value is, you just want to - * ensure a value is false in a boolean context. - */ - toBeFalsy(): void, - /** - * To compare floating point numbers, you can use toBeGreaterThan. - */ - toBeGreaterThan(number: number): void, - /** - * To compare floating point numbers, you can use toBeGreaterThanOrEqual. - */ - toBeGreaterThanOrEqual(number: number): void, - /** - * To compare floating point numbers, you can use toBeLessThan. - */ - toBeLessThan(number: number): void, - /** - * To compare floating point numbers, you can use toBeLessThanOrEqual. - */ - toBeLessThanOrEqual(number: number): void, - /** - * Use .toBeInstanceOf(Class) to check that an object is an instance of a - * class. - */ - toBeInstanceOf(cls: Class<*>): void, - /** - * .toBeNull() is the same as .toBe(null) but the error messages are a bit - * nicer. - */ - toBeNull(): void, - /** - * Use .toBeTruthy when you don't care what a value is, you just want to - * ensure a value is true in a boolean context. - */ - toBeTruthy(): void, - /** - * Use .toBeUndefined to check that a variable is undefined. - */ - toBeUndefined(): void, - /** - * Use .toContain when you want to check that an item is in a list. For - * testing the items in the list, this uses ===, a strict equality check. - */ - toContain(item: any): void, - /** - * Use .toContainEqual when you want to check that an item is in a list. For - * testing the items in the list, this matcher recursively checks the - * equality of all fields, rather than checking for object identity. - */ - toContainEqual(item: any): void, - /** - * Use .toEqual when you want to check that two objects have the same value. - * This matcher recursively checks the equality of all fields, rather than - * checking for object identity. - */ - toEqual(value: any): void, - /** - * Use .toHaveBeenCalled to ensure that a mock function got called. - */ - toHaveBeenCalled(): void, - /** - * Use .toHaveBeenCalledTimes to ensure that a mock function got called exact - * number of times. - */ - toHaveBeenCalledTimes(number: number): void, - /** - * Use .toHaveBeenCalledWith to ensure that a mock function was called with - * specific arguments. - */ - toHaveBeenCalledWith(...args: Array): void, - /** - * Use .toHaveBeenLastCalledWith to ensure that a mock function was last called - * with specific arguments. - */ - toHaveBeenLastCalledWith(...args: Array): void, - /** - * Check that an object has a .length property and it is set to a certain - * numeric value. - */ - toHaveLength(number: number): void, - /** - * - */ - toHaveProperty(propPath: string, value?: any): void, - /** - * Use .toMatch to check that a string matches a regular expression or string. - */ - toMatch(regexpOrString: RegExp | string): void, - /** - * Use .toMatchObject to check that a javascript object matches a subset of the properties of an object. - */ - toMatchObject(object: Object): void, - /** - * This ensures that a React component matches the most recent snapshot. - */ - toMatchSnapshot(name?: string): void, - /** - * Use .toThrow to test that a function throws when it is called. - * If you want to test that a specific error gets thrown, you can provide an - * argument to toThrow. The argument can be a string for the error message, - * a class for the error, or a regex that should match the error. - * - * Alias: .toThrowError - */ - toThrow(message?: string | Error | RegExp): void, - toThrowError(message?: string | Error | RegExp): void, - /** - * Use .toThrowErrorMatchingSnapshot to test that a function throws a error - * matching the most recent snapshot when it is called. - */ - toThrowErrorMatchingSnapshot(): void -}; - -type JestObjectType = { - /** - * Disables automatic mocking in the module loader. - * - * After this method is called, all `require()`s will return the real - * versions of each module (rather than a mocked version). - */ - disableAutomock(): JestObjectType, - /** - * An un-hoisted version of disableAutomock - */ - autoMockOff(): JestObjectType, - /** - * Enables automatic mocking in the module loader. - */ - enableAutomock(): JestObjectType, - /** - * An un-hoisted version of enableAutomock - */ - autoMockOn(): JestObjectType, - /** - * Clears the mock.calls and mock.instances properties of all mocks. - * Equivalent to calling .mockClear() on every mocked function. - */ - clearAllMocks(): JestObjectType, - /** - * Resets the state of all mocks. Equivalent to calling .mockReset() on every - * mocked function. - */ - resetAllMocks(): JestObjectType, - /** - * Removes any pending timers from the timer system. - */ - clearAllTimers(): void, - /** - * The same as `mock` but not moved to the top of the expectation by - * babel-jest. - */ - doMock(moduleName: string, moduleFactory?: any): JestObjectType, - /** - * The same as `unmock` but not moved to the top of the expectation by - * babel-jest. - */ - dontMock(moduleName: string): JestObjectType, - /** - * Returns a new, unused mock function. Optionally takes a mock - * implementation. - */ - fn, TReturn>( - implementation?: (...args: TArguments) => TReturn, - ): JestMockFn, - /** - * Determines if the given function is a mocked function. - */ - isMockFunction(fn: Function): boolean, - /** - * Given the name of a module, use the automatic mocking system to generate a - * mocked version of the module for you. - */ - genMockFromModule(moduleName: string): any, - /** - * Mocks a module with an auto-mocked version when it is being required. - * - * The second argument can be used to specify an explicit module factory that - * is being run instead of using Jest's automocking feature. - * - * The third argument can be used to create virtual mocks -- mocks of modules - * that don't exist anywhere in the system. - */ - mock( - moduleName: string, - moduleFactory?: any, - options?: Object - ): JestObjectType, - /** - * Resets the module registry - the cache of all required modules. This is - * useful to isolate modules where local state might conflict between tests. - */ - resetModules(): JestObjectType, - /** - * Exhausts the micro-task queue (usually interfaced in node via - * process.nextTick). - */ - runAllTicks(): void, - /** - * Exhausts the macro-task queue (i.e., all tasks queued by setTimeout(), - * setInterval(), and setImmediate()). - */ - runAllTimers(): void, - /** - * Exhausts all tasks queued by setImmediate(). - */ - runAllImmediates(): void, - /** - * Executes only the macro task queue (i.e. all tasks queued by setTimeout() - * or setInterval() and setImmediate()). - */ - runTimersToTime(msToRun: number): void, - /** - * Executes only the macro-tasks that are currently pending (i.e., only the - * tasks that have been queued by setTimeout() or setInterval() up to this - * point) - */ - runOnlyPendingTimers(): void, - /** - * Explicitly supplies the mock object that the module system should return - * for the specified module. Note: It is recommended to use jest.mock() - * instead. - */ - setMock(moduleName: string, moduleExports: any): JestObjectType, - /** - * Indicates that the module system should never return a mocked version of - * the specified module from require() (e.g. that it should always return the - * real module). - */ - unmock(moduleName: string): JestObjectType, - /** - * Instructs Jest to use fake versions of the standard timer functions - * (setTimeout, setInterval, clearTimeout, clearInterval, nextTick, - * setImmediate and clearImmediate). - */ - useFakeTimers(): JestObjectType, - /** - * Instructs Jest to use the real versions of the standard timer functions. - */ - useRealTimers(): JestObjectType, - /** - * Creates a mock function similar to jest.fn but also tracks calls to - * object[methodName]. - */ - spyOn(object: Object, methodName: string): JestMockFn -}; - -type JestSpyType = { - calls: JestCallsType -}; - -/** Runs this function after every test inside this context */ -declare function afterEach(fn: (done: () => void) => ?Promise, timeout?: number): void; -/** Runs this function before every test inside this context */ -declare function beforeEach(fn: (done: () => void) => ?Promise, timeout?: number): void; -/** Runs this function after all tests have finished inside this context */ -declare function afterAll(fn: (done: () => void) => ?Promise, timeout?: number): void; -/** Runs this function before any tests have started inside this context */ -declare function beforeAll(fn: (done: () => void) => ?Promise, timeout?: number): void; - -/** A context for grouping tests together */ -declare var describe: { - /** - * Creates a block that groups together several related tests in one "test suite" - */ - (name: string, fn: () => void): void, - - /** - * Only run this describe block - */ - only(name: string, fn: () => void): void, - - /** - * Skip running this describe block - */ - skip(name: string, fn: () => void): void, -}; - - -/** An individual test unit */ -declare var it: { - /** - * An individual test unit - * - * @param {string} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - (name: string, fn?: (done: () => void) => ?Promise, timeout?: number): void, - /** - * Only run this test - * - * @param {string} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - only(name: string, fn?: (done: () => void) => ?Promise, timeout?: number): void, - /** - * Skip running this test - * - * @param {string} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - skip(name: string, fn?: (done: () => void) => ?Promise, timeout?: number): void, - /** - * Run the test concurrently - * - * @param {string} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - concurrent(name: string, fn?: (done: () => void) => ?Promise, timeout?: number): void, -}; -declare function fit( - name: string, - fn: (done: () => void) => ?Promise, - timeout?: number, -): void; -/** An individual test unit */ -declare var test: typeof it; -/** A disabled group of tests */ -declare var xdescribe: typeof describe; -/** A focused group of tests */ -declare var fdescribe: typeof describe; -/** A disabled individual test */ -declare var xit: typeof it; -/** A disabled individual test */ -declare var xtest: typeof it; - -type JestPrettyFormatColors = { - comment: { close: string, open: string }, - content: { close: string, open: string }, - prop: { close: string, open: string }, - tag: { close: string, open: string }, - value: { close: string, open: string }, -}; - -type JestPrettyFormatIndent = string => string; -type JestPrettyFormatRefs = Array; -type JestPrettyFormatPrint = any => string; -type JestPrettyFormatStringOrNull = string | null; - -type JestPrettyFormatOptions = {| - callToJSON: boolean, - edgeSpacing: string, - escapeRegex: boolean, - highlight: boolean, - indent: number, - maxDepth: number, - min: boolean, - plugins: JestPrettyFormatPlugins, - printFunctionName: boolean, - spacing: string, - theme: {| - comment: string, - content: string, - prop: string, - tag: string, - value: string, - |}, -|}; - -type JestPrettyFormatPlugin = { - print: ( - val: any, - serialize: JestPrettyFormatPrint, - indent: JestPrettyFormatIndent, - opts: JestPrettyFormatOptions, - colors: JestPrettyFormatColors, - ) => string, - test: any => boolean, -}; - -type JestPrettyFormatPlugins = Array; - -/** The expect function is used every time you want to test a value */ -declare var expect: { - /** The object that you want to make assertions against */ - (value: any): JestExpectType & JestPromiseType & EnzymeMatchersType & DomTestingLibraryType, - /** Add additional Jasmine matchers to Jest's roster */ - extend(matchers: { [name: string]: JestMatcher }): void, - /** Add a module that formats application-specific data structures. */ - addSnapshotSerializer(pluginModule: JestPrettyFormatPlugin): void, - assertions(expectedAssertions: number): void, - hasAssertions(): void, - any(value: mixed): JestAsymmetricEqualityType, - anything(): void, - arrayContaining(value: Array): void, - objectContaining(value: Object): void, - /** Matches any received string that contains the exact expected string. */ - stringContaining(value: string): void, - stringMatching(value: string | RegExp): void -}; - -// TODO handle return type -// http://jasmine.github.io/2.4/introduction.html#section-Spies -declare function spyOn(value: mixed, method: string): Object; - -/** Holds all functions related to manipulating test runner */ -declare var jest: JestObjectType; - -/** - * The global Jasmine object, this is generally not exposed as the public API, - * using features inside here could break in later versions of Jest. - */ -declare var jasmine: { - DEFAULT_TIMEOUT_INTERVAL: number, - any(value: mixed): JestAsymmetricEqualityType, - anything(): void, - arrayContaining(value: Array): void, - clock(): JestClockType, - createSpy(name: string): JestSpyType, - createSpyObj( - baseName: string, - methodNames: Array - ): { [methodName: string]: JestSpyType }, - objectContaining(value: Object): void, - stringMatching(value: string): void -}; diff --git a/scm-ui/ui-webapp/flow-typed/npm/jest_v23.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/jest_v23.x.x.js deleted file mode 100644 index 23b66b07e5..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/jest_v23.x.x.js +++ /dev/null @@ -1,1108 +0,0 @@ -// flow-typed signature: f5a484315a3dea13d273645306e4076a -// flow-typed version: 7c5d14b3d4/jest_v23.x.x/flow_>=v0.39.x - -type JestMockFn, TReturn> = { - (...args: TArguments): TReturn, - /** - * An object for introspecting mock calls - */ - mock: { - /** - * An array that represents all calls that have been made into this mock - * function. Each call is represented by an array of arguments that were - * passed during the call. - */ - calls: Array, - /** - * An array that contains all the object instances that have been - * instantiated from this mock function. - */ - instances: Array - }, - /** - * Resets all information stored in the mockFn.mock.calls and - * mockFn.mock.instances arrays. Often this is useful when you want to clean - * up a mock's usage data between two assertions. - */ - mockClear(): void, - /** - * Resets all information stored in the mock. This is useful when you want to - * completely restore a mock back to its initial state. - */ - mockReset(): void, - /** - * Removes the mock and restores the initial implementation. This is useful - * when you want to mock functions in certain test cases and restore the - * original implementation in others. Beware that mockFn.mockRestore only - * works when mock was created with jest.spyOn. Thus you have to take care of - * restoration yourself when manually assigning jest.fn(). - */ - mockRestore(): void, - /** - * Accepts a function that should be used as the implementation of the mock. - * The mock itself will still record all calls that go into and instances - * that come from itself -- the only difference is that the implementation - * will also be executed when the mock is called. - */ - mockImplementation( - fn: (...args: TArguments) => TReturn - ): JestMockFn, - /** - * Accepts a function that will be used as an implementation of the mock for - * one call to the mocked function. Can be chained so that multiple function - * calls produce different results. - */ - mockImplementationOnce( - fn: (...args: TArguments) => TReturn - ): JestMockFn, - /** - * Accepts a string to use in test result output in place of "jest.fn()" to - * indicate which mock function is being referenced. - */ - mockName(name: string): JestMockFn, - /** - * Just a simple sugar function for returning `this` - */ - mockReturnThis(): void, - /** - * Accepts a value that will be returned whenever the mock function is called. - */ - mockReturnValue(value: TReturn): JestMockFn, - /** - * Sugar for only returning a value once inside your mock - */ - mockReturnValueOnce(value: TReturn): JestMockFn, - /** - * Sugar for jest.fn().mockImplementation(() => Promise.resolve(value)) - */ - mockResolvedValue(value: TReturn): JestMockFn>, - /** - * Sugar for jest.fn().mockImplementationOnce(() => Promise.resolve(value)) - */ - mockResolvedValueOnce(value: TReturn): JestMockFn>, - /** - * Sugar for jest.fn().mockImplementation(() => Promise.reject(value)) - */ - mockRejectedValue(value: TReturn): JestMockFn>, - /** - * Sugar for jest.fn().mockImplementationOnce(() => Promise.reject(value)) - */ - mockRejectedValueOnce(value: TReturn): JestMockFn> -}; - -type JestAsymmetricEqualityType = { - /** - * A custom Jasmine equality tester - */ - asymmetricMatch(value: mixed): boolean -}; - -type JestCallsType = { - allArgs(): mixed, - all(): mixed, - any(): boolean, - count(): number, - first(): mixed, - mostRecent(): mixed, - reset(): void -}; - -type JestClockType = { - install(): void, - mockDate(date: Date): void, - tick(milliseconds?: number): void, - uninstall(): void -}; - -type JestMatcherResult = { - message?: string | (() => string), - pass: boolean -}; - -type JestMatcher = (actual: any, expected: any) => JestMatcherResult; - -type JestPromiseType = { - /** - * Use rejects to unwrap the reason of a rejected promise so any other - * matcher can be chained. If the promise is fulfilled the assertion fails. - */ - rejects: JestExpectType, - /** - * Use resolves to unwrap the value of a fulfilled promise so any other - * matcher can be chained. If the promise is rejected the assertion fails. - */ - resolves: JestExpectType -}; - -/** - * Jest allows functions and classes to be used as test names in test() and - * describe() - */ -type JestTestName = string | Function; - -/** - * Plugin: jest-styled-components - */ - -type JestStyledComponentsMatcherValue = - | string - | JestAsymmetricEqualityType - | RegExp - | typeof undefined; - -type JestStyledComponentsMatcherOptions = { - media?: string; - modifier?: string; - supports?: string; -} - -type JestStyledComponentsMatchersType = { - toHaveStyleRule( - property: string, - value: JestStyledComponentsMatcherValue, - options?: JestStyledComponentsMatcherOptions - ): void, -}; - -/** - * Plugin: jest-enzyme - */ -type EnzymeMatchersType = { - toBeChecked(): void, - toBeDisabled(): void, - toBeEmpty(): void, - toBeEmptyRender(): void, - toBePresent(): void, - toContainReact(element: React$Element): void, - toExist(): void, - toHaveClassName(className: string): void, - toHaveHTML(html: string): void, - toHaveProp: ((propKey: string, propValue?: any) => void) & ((props: Object) => void), - toHaveRef(refName: string): void, - toHaveState: ((stateKey: string, stateValue?: any) => void) & ((state: Object) => void), - toHaveStyle: ((styleKey: string, styleValue?: any) => void) & ((style: Object) => void), - toHaveTagName(tagName: string): void, - toHaveText(text: string): void, - toIncludeText(text: string): void, - toHaveValue(value: any): void, - toMatchElement(element: React$Element): void, - toMatchSelector(selector: string): void -}; - -// DOM testing library extensions https://github.com/kentcdodds/dom-testing-library#custom-jest-matchers -type DomTestingLibraryType = { - toBeInTheDOM(): void, - toHaveTextContent(content: string): void, - toHaveAttribute(name: string, expectedValue?: string): void -}; - -// Jest JQuery Matchers: https://github.com/unindented/custom-jquery-matchers -type JestJQueryMatchersType = { - toExist(): void, - toHaveLength(len: number): void, - toHaveId(id: string): void, - toHaveClass(className: string): void, - toHaveTag(tag: string): void, - toHaveAttr(key: string, val?: any): void, - toHaveProp(key: string, val?: any): void, - toHaveText(text: string | RegExp): void, - toHaveData(key: string, val?: any): void, - toHaveValue(val: any): void, - toHaveCss(css: {[key: string]: any}): void, - toBeChecked(): void, - toBeDisabled(): void, - toBeEmpty(): void, - toBeHidden(): void, - toBeSelected(): void, - toBeVisible(): void, - toBeFocused(): void, - toBeInDom(): void, - toBeMatchedBy(sel: string): void, - toHaveDescendant(sel: string): void, - toHaveDescendantWithText(sel: string, text: string | RegExp): void -}; - - -// Jest Extended Matchers: https://github.com/jest-community/jest-extended -type JestExtendedMatchersType = { - /** - * Note: Currently unimplemented - * Passing assertion - * - * @param {String} message - */ - // pass(message: string): void; - - /** - * Note: Currently unimplemented - * Failing assertion - * - * @param {String} message - */ - // fail(message: string): void; - - /** - * Use .toBeEmpty when checking if a String '', Array [] or Object {} is empty. - */ - toBeEmpty(): void; - - /** - * Use .toBeOneOf when checking if a value is a member of a given Array. - * @param {Array.<*>} members - */ - toBeOneOf(members: any[]): void; - - /** - * Use `.toBeNil` when checking a value is `null` or `undefined`. - */ - toBeNil(): void; - - /** - * Use `.toSatisfy` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean`. - * @param {Function} predicate - */ - toSatisfy(predicate: (n: any) => boolean): void; - - /** - * Use `.toBeArray` when checking if a value is an `Array`. - */ - toBeArray(): void; - - /** - * Use `.toBeArrayOfSize` when checking if a value is an `Array` of size x. - * @param {Number} x - */ - toBeArrayOfSize(x: number): void; - - /** - * Use `.toIncludeAllMembers` when checking if an `Array` contains all of the same members of a given set. - * @param {Array.<*>} members - */ - toIncludeAllMembers(members: any[]): void; - - /** - * Use `.toIncludeAnyMembers` when checking if an `Array` contains any of the members of a given set. - * @param {Array.<*>} members - */ - toIncludeAnyMembers(members: any[]): void; - - /** - * Use `.toSatisfyAll` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean` for all values in an array. - * @param {Function} predicate - */ - toSatisfyAll(predicate: (n: any) => boolean): void; - - /** - * Use `.toBeBoolean` when checking if a value is a `Boolean`. - */ - toBeBoolean(): void; - - /** - * Use `.toBeTrue` when checking a value is equal (===) to `true`. - */ - toBeTrue(): void; - - /** - * Use `.toBeFalse` when checking a value is equal (===) to `false`. - */ - toBeFalse(): void; - - /** - * Use .toBeDate when checking if a value is a Date. - */ - toBeDate(): void; - - /** - * Use `.toBeFunction` when checking if a value is a `Function`. - */ - toBeFunction(): void; - - /** - * Use `.toHaveBeenCalledBefore` when checking if a `Mock` was called before another `Mock`. - * - * Note: Required Jest version >22 - * Note: Your mock functions will have to be asynchronous to cause the timestamps inside of Jest to occur in a differentJS event loop, otherwise the mock timestamps will all be the same - * - * @param {Mock} mock - */ - toHaveBeenCalledBefore(mock: JestMockFn): void; - - /** - * Use `.toBeNumber` when checking if a value is a `Number`. - */ - toBeNumber(): void; - - /** - * Use `.toBeNaN` when checking a value is `NaN`. - */ - toBeNaN(): void; - - /** - * Use `.toBeFinite` when checking if a value is a `Number`, not `NaN` or `Infinity`. - */ - toBeFinite(): void; - - /** - * Use `.toBePositive` when checking if a value is a positive `Number`. - */ - toBePositive(): void; - - /** - * Use `.toBeNegative` when checking if a value is a negative `Number`. - */ - toBeNegative(): void; - - /** - * Use `.toBeEven` when checking if a value is an even `Number`. - */ - toBeEven(): void; - - /** - * Use `.toBeOdd` when checking if a value is an odd `Number`. - */ - toBeOdd(): void; - - /** - * Use `.toBeWithin` when checking if a number is in between the given bounds of: start (inclusive) and end (exclusive). - * - * @param {Number} start - * @param {Number} end - */ - toBeWithin(start: number, end: number): void; - - /** - * Use `.toBeObject` when checking if a value is an `Object`. - */ - toBeObject(): void; - - /** - * Use `.toContainKey` when checking if an object contains the provided key. - * - * @param {String} key - */ - toContainKey(key: string): void; - - /** - * Use `.toContainKeys` when checking if an object has all of the provided keys. - * - * @param {Array.} keys - */ - toContainKeys(keys: string[]): void; - - /** - * Use `.toContainAllKeys` when checking if an object only contains all of the provided keys. - * - * @param {Array.} keys - */ - toContainAllKeys(keys: string[]): void; - - /** - * Use `.toContainAnyKeys` when checking if an object contains at least one of the provided keys. - * - * @param {Array.} keys - */ - toContainAnyKeys(keys: string[]): void; - - /** - * Use `.toContainValue` when checking if an object contains the provided value. - * - * @param {*} value - */ - toContainValue(value: any): void; - - /** - * Use `.toContainValues` when checking if an object contains all of the provided values. - * - * @param {Array.<*>} values - */ - toContainValues(values: any[]): void; - - /** - * Use `.toContainAllValues` when checking if an object only contains all of the provided values. - * - * @param {Array.<*>} values - */ - toContainAllValues(values: any[]): void; - - /** - * Use `.toContainAnyValues` when checking if an object contains at least one of the provided values. - * - * @param {Array.<*>} values - */ - toContainAnyValues(values: any[]): void; - - /** - * Use `.toContainEntry` when checking if an object contains the provided entry. - * - * @param {Array.} entry - */ - toContainEntry(entry: [string, string]): void; - - /** - * Use `.toContainEntries` when checking if an object contains all of the provided entries. - * - * @param {Array.>} entries - */ - toContainEntries(entries: [string, string][]): void; - - /** - * Use `.toContainAllEntries` when checking if an object only contains all of the provided entries. - * - * @param {Array.>} entries - */ - toContainAllEntries(entries: [string, string][]): void; - - /** - * Use `.toContainAnyEntries` when checking if an object contains at least one of the provided entries. - * - * @param {Array.>} entries - */ - toContainAnyEntries(entries: [string, string][]): void; - - /** - * Use `.toBeExtensible` when checking if an object is extensible. - */ - toBeExtensible(): void; - - /** - * Use `.toBeFrozen` when checking if an object is frozen. - */ - toBeFrozen(): void; - - /** - * Use `.toBeSealed` when checking if an object is sealed. - */ - toBeSealed(): void; - - /** - * Use `.toBeString` when checking if a value is a `String`. - */ - toBeString(): void; - - /** - * Use `.toEqualCaseInsensitive` when checking if a string is equal (===) to another ignoring the casing of both strings. - * - * @param {String} string - */ - toEqualCaseInsensitive(string: string): void; - - /** - * Use `.toStartWith` when checking if a `String` starts with a given `String` prefix. - * - * @param {String} prefix - */ - toStartWith(prefix: string): void; - - /** - * Use `.toEndWith` when checking if a `String` ends with a given `String` suffix. - * - * @param {String} suffix - */ - toEndWith(suffix: string): void; - - /** - * Use `.toInclude` when checking if a `String` includes the given `String` substring. - * - * @param {String} substring - */ - toInclude(substring: string): void; - - /** - * Use `.toIncludeRepeated` when checking if a `String` includes the given `String` substring the correct number of times. - * - * @param {String} substring - * @param {Number} times - */ - toIncludeRepeated(substring: string, times: number): void; - - /** - * Use `.toIncludeMultiple` when checking if a `String` includes all of the given substrings. - * - * @param {Array.} substring - */ - toIncludeMultiple(substring: string[]): void; -}; - -interface JestExpectType { - not: - & JestExpectType - & EnzymeMatchersType - & DomTestingLibraryType - & JestJQueryMatchersType - & JestStyledComponentsMatchersType - & JestExtendedMatchersType, - /** - * If you have a mock function, you can use .lastCalledWith to test what - * arguments it was last called with. - */ - lastCalledWith(...args: Array): void, - /** - * toBe just checks that a value is what you expect. It uses === to check - * strict equality. - */ - toBe(value: any): void, - /** - * Use .toBeCalledWith to ensure that a mock function was called with - * specific arguments. - */ - toBeCalledWith(...args: Array): void, - /** - * Using exact equality with floating point numbers is a bad idea. Rounding - * means that intuitive things fail. - */ - toBeCloseTo(num: number, delta: any): void, - /** - * Use .toBeDefined to check that a variable is not undefined. - */ - toBeDefined(): void, - /** - * Use .toBeFalsy when you don't care what a value is, you just want to - * ensure a value is false in a boolean context. - */ - toBeFalsy(): void, - /** - * To compare floating point numbers, you can use toBeGreaterThan. - */ - toBeGreaterThan(number: number): void, - /** - * To compare floating point numbers, you can use toBeGreaterThanOrEqual. - */ - toBeGreaterThanOrEqual(number: number): void, - /** - * To compare floating point numbers, you can use toBeLessThan. - */ - toBeLessThan(number: number): void, - /** - * To compare floating point numbers, you can use toBeLessThanOrEqual. - */ - toBeLessThanOrEqual(number: number): void, - /** - * Use .toBeInstanceOf(Class) to check that an object is an instance of a - * class. - */ - toBeInstanceOf(cls: Class<*>): void, - /** - * .toBeNull() is the same as .toBe(null) but the error messages are a bit - * nicer. - */ - toBeNull(): void, - /** - * Use .toBeTruthy when you don't care what a value is, you just want to - * ensure a value is true in a boolean context. - */ - toBeTruthy(): void, - /** - * Use .toBeUndefined to check that a variable is undefined. - */ - toBeUndefined(): void, - /** - * Use .toContain when you want to check that an item is in a list. For - * testing the items in the list, this uses ===, a strict equality check. - */ - toContain(item: any): void, - /** - * Use .toContainEqual when you want to check that an item is in a list. For - * testing the items in the list, this matcher recursively checks the - * equality of all fields, rather than checking for object identity. - */ - toContainEqual(item: any): void, - /** - * Use .toEqual when you want to check that two objects have the same value. - * This matcher recursively checks the equality of all fields, rather than - * checking for object identity. - */ - toEqual(value: any): void, - /** - * Use .toHaveBeenCalled to ensure that a mock function got called. - */ - toHaveBeenCalled(): void, - toBeCalled(): void; - /** - * Use .toHaveBeenCalledTimes to ensure that a mock function got called exact - * number of times. - */ - toHaveBeenCalledTimes(number: number): void, - toBeCalledTimes(number: number): void; - /** - * - */ - toHaveBeenNthCalledWith(nthCall: number, ...args: Array): void; - nthCalledWith(nthCall: number, ...args: Array): void; - /** - * - */ - toHaveReturned(): void; - toReturn(): void; - /** - * - */ - toHaveReturnedTimes(number: number): void; - toReturnTimes(number: number): void; - /** - * - */ - toHaveReturnedWith(value: any): void; - toReturnWith(value: any): void; - /** - * - */ - toHaveLastReturnedWith(value: any): void; - lastReturnedWith(value: any): void; - /** - * - */ - toHaveNthReturnedWith(nthCall: number, value: any): void; - nthReturnedWith(nthCall: number, value: any): void; - /** - * Use .toHaveBeenCalledWith to ensure that a mock function was called with - * specific arguments. - */ - toHaveBeenCalledWith(...args: Array): void, - toBeCalledWith(...args: Array): void, - /** - * Use .toHaveBeenLastCalledWith to ensure that a mock function was last called - * with specific arguments. - */ - toHaveBeenLastCalledWith(...args: Array): void, - lastCalledWith(...args: Array): void, - /** - * Check that an object has a .length property and it is set to a certain - * numeric value. - */ - toHaveLength(number: number): void, - /** - * - */ - toHaveProperty(propPath: string, value?: any): void, - /** - * Use .toMatch to check that a string matches a regular expression or string. - */ - toMatch(regexpOrString: RegExp | string): void, - /** - * Use .toMatchObject to check that a javascript object matches a subset of the properties of an object. - */ - toMatchObject(object: Object | Array): void, - /** - * Use .toStrictEqual to check that a javascript object matches a subset of the properties of an object. - */ - toStrictEqual(value: any): void, - /** - * This ensures that an Object matches the most recent snapshot. - */ - toMatchSnapshot(propertyMatchers?: {[key: string]: JestAsymmetricEqualityType}, name?: string): void, - /** - * This ensures that an Object matches the most recent snapshot. - */ - toMatchSnapshot(name: string): void, - - toMatchInlineSnapshot(snapshot?: string): void, - toMatchInlineSnapshot(propertyMatchers?: {[key: string]: JestAsymmetricEqualityType}, snapshot?: string): void, - /** - * Use .toThrow to test that a function throws when it is called. - * If you want to test that a specific error gets thrown, you can provide an - * argument to toThrow. The argument can be a string for the error message, - * a class for the error, or a regex that should match the error. - * - * Alias: .toThrowError - */ - toThrow(message?: string | Error | Class | RegExp): void, - toThrowError(message?: string | Error | Class | RegExp): void, - /** - * Use .toThrowErrorMatchingSnapshot to test that a function throws a error - * matching the most recent snapshot when it is called. - */ - toThrowErrorMatchingSnapshot(): void, - toThrowErrorMatchingInlineSnapshot(snapshot?: string): void, -} - -type JestObjectType = { - /** - * Disables automatic mocking in the module loader. - * - * After this method is called, all `require()`s will return the real - * versions of each module (rather than a mocked version). - */ - disableAutomock(): JestObjectType, - /** - * An un-hoisted version of disableAutomock - */ - autoMockOff(): JestObjectType, - /** - * Enables automatic mocking in the module loader. - */ - enableAutomock(): JestObjectType, - /** - * An un-hoisted version of enableAutomock - */ - autoMockOn(): JestObjectType, - /** - * Clears the mock.calls and mock.instances properties of all mocks. - * Equivalent to calling .mockClear() on every mocked function. - */ - clearAllMocks(): JestObjectType, - /** - * Resets the state of all mocks. Equivalent to calling .mockReset() on every - * mocked function. - */ - resetAllMocks(): JestObjectType, - /** - * Restores all mocks back to their original value. - */ - restoreAllMocks(): JestObjectType, - /** - * Removes any pending timers from the timer system. - */ - clearAllTimers(): void, - /** - * The same as `mock` but not moved to the top of the expectation by - * babel-jest. - */ - doMock(moduleName: string, moduleFactory?: any): JestObjectType, - /** - * The same as `unmock` but not moved to the top of the expectation by - * babel-jest. - */ - dontMock(moduleName: string): JestObjectType, - /** - * Returns a new, unused mock function. Optionally takes a mock - * implementation. - */ - fn, TReturn>( - implementation?: (...args: TArguments) => TReturn - ): JestMockFn, - /** - * Determines if the given function is a mocked function. - */ - isMockFunction(fn: Function): boolean, - /** - * Given the name of a module, use the automatic mocking system to generate a - * mocked version of the module for you. - */ - genMockFromModule(moduleName: string): any, - /** - * Mocks a module with an auto-mocked version when it is being required. - * - * The second argument can be used to specify an explicit module factory that - * is being run instead of using Jest's automocking feature. - * - * The third argument can be used to create virtual mocks -- mocks of modules - * that don't exist anywhere in the system. - */ - mock( - moduleName: string, - moduleFactory?: any, - options?: Object - ): JestObjectType, - /** - * Returns the actual module instead of a mock, bypassing all checks on - * whether the module should receive a mock implementation or not. - */ - requireActual(moduleName: string): any, - /** - * Returns a mock module instead of the actual module, bypassing all checks - * on whether the module should be required normally or not. - */ - requireMock(moduleName: string): any, - /** - * Resets the module registry - the cache of all required modules. This is - * useful to isolate modules where local state might conflict between tests. - */ - resetModules(): JestObjectType, - /** - * Exhausts the micro-task queue (usually interfaced in node via - * process.nextTick). - */ - runAllTicks(): void, - /** - * Exhausts the macro-task queue (i.e., all tasks queued by setTimeout(), - * setInterval(), and setImmediate()). - */ - runAllTimers(): void, - /** - * Exhausts all tasks queued by setImmediate(). - */ - runAllImmediates(): void, - /** - * Executes only the macro task queue (i.e. all tasks queued by setTimeout() - * or setInterval() and setImmediate()). - */ - advanceTimersByTime(msToRun: number): void, - /** - * Executes only the macro task queue (i.e. all tasks queued by setTimeout() - * or setInterval() and setImmediate()). - * - * Renamed to `advanceTimersByTime`. - */ - runTimersToTime(msToRun: number): void, - /** - * Executes only the macro-tasks that are currently pending (i.e., only the - * tasks that have been queued by setTimeout() or setInterval() up to this - * point) - */ - runOnlyPendingTimers(): void, - /** - * Explicitly supplies the mock object that the module system should return - * for the specified module. Note: It is recommended to use jest.mock() - * instead. - */ - setMock(moduleName: string, moduleExports: any): JestObjectType, - /** - * Indicates that the module system should never return a mocked version of - * the specified module from require() (e.g. that it should always return the - * real module). - */ - unmock(moduleName: string): JestObjectType, - /** - * Instructs Jest to use fake versions of the standard timer functions - * (setTimeout, setInterval, clearTimeout, clearInterval, nextTick, - * setImmediate and clearImmediate). - */ - useFakeTimers(): JestObjectType, - /** - * Instructs Jest to use the real versions of the standard timer functions. - */ - useRealTimers(): JestObjectType, - /** - * Creates a mock function similar to jest.fn but also tracks calls to - * object[methodName]. - */ - spyOn(object: Object, methodName: string, accessType?: "get" | "set"): JestMockFn, - /** - * Set the default timeout interval for tests and before/after hooks in milliseconds. - * Note: The default timeout interval is 5 seconds if this method is not called. - */ - setTimeout(timeout: number): JestObjectType -}; - -type JestSpyType = { - calls: JestCallsType -}; - -/** Runs this function after every test inside this context */ -declare function afterEach( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** Runs this function before every test inside this context */ -declare function beforeEach( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** Runs this function after all tests have finished inside this context */ -declare function afterAll( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** Runs this function before any tests have started inside this context */ -declare function beforeAll( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; - -/** A context for grouping tests together */ -declare var describe: { - /** - * Creates a block that groups together several related tests in one "test suite" - */ - (name: JestTestName, fn: () => void): void, - - /** - * Only run this describe block - */ - only(name: JestTestName, fn: () => void): void, - - /** - * Skip running this describe block - */ - skip(name: JestTestName, fn: () => void): void -}; - -/** An individual test unit */ -declare var it: { - /** - * An individual test unit - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - ( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): void, - /** - * each runs this test against array of argument arrays per each run - * - * @param {table} table of Test - */ - each( - table: Array> - ): ( - name: JestTestName, - fn?: (...args: Array) => ?Promise - ) => void, - /** - * Only run this test - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - only( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): { - each( - table: Array> - ): ( - name: JestTestName, - fn?: (...args: Array) => ?Promise - ) => void, - }, - /** - * Skip running this test - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - skip( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): void, - /** - * Run the test concurrently - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - concurrent( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): void -}; -declare function fit( - name: JestTestName, - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** An individual test unit */ -declare var test: typeof it; -/** A disabled group of tests */ -declare var xdescribe: typeof describe; -/** A focused group of tests */ -declare var fdescribe: typeof describe; -/** A disabled individual test */ -declare var xit: typeof it; -/** A disabled individual test */ -declare var xtest: typeof it; - -type JestPrettyFormatColors = { - comment: { close: string, open: string }, - content: { close: string, open: string }, - prop: { close: string, open: string }, - tag: { close: string, open: string }, - value: { close: string, open: string }, -}; - -type JestPrettyFormatIndent = string => string; -type JestPrettyFormatRefs = Array; -type JestPrettyFormatPrint = any => string; -type JestPrettyFormatStringOrNull = string | null; - -type JestPrettyFormatOptions = {| - callToJSON: boolean, - edgeSpacing: string, - escapeRegex: boolean, - highlight: boolean, - indent: number, - maxDepth: number, - min: boolean, - plugins: JestPrettyFormatPlugins, - printFunctionName: boolean, - spacing: string, - theme: {| - comment: string, - content: string, - prop: string, - tag: string, - value: string, - |}, -|}; - -type JestPrettyFormatPlugin = { - print: ( - val: any, - serialize: JestPrettyFormatPrint, - indent: JestPrettyFormatIndent, - opts: JestPrettyFormatOptions, - colors: JestPrettyFormatColors, - ) => string, - test: any => boolean, -}; - -type JestPrettyFormatPlugins = Array; - -/** The expect function is used every time you want to test a value */ -declare var expect: { - /** The object that you want to make assertions against */ - (value: any): - & JestExpectType - & JestPromiseType - & EnzymeMatchersType - & DomTestingLibraryType - & JestJQueryMatchersType - & JestStyledComponentsMatchersType - & JestExtendedMatchersType, - - /** Add additional Jasmine matchers to Jest's roster */ - extend(matchers: { [name: string]: JestMatcher }): void, - /** Add a module that formats application-specific data structures. */ - addSnapshotSerializer(pluginModule: JestPrettyFormatPlugin): void, - assertions(expectedAssertions: number): void, - hasAssertions(): void, - any(value: mixed): JestAsymmetricEqualityType, - anything(): any, - arrayContaining(value: Array): Array, - objectContaining(value: Object): Object, - /** Matches any received string that contains the exact expected string. */ - stringContaining(value: string): string, - stringMatching(value: string | RegExp): string, - not: { - arrayContaining: (value: $ReadOnlyArray) => Array, - objectContaining: (value: {}) => Object, - stringContaining: (value: string) => string, - stringMatching: (value: string | RegExp) => string, - }, -}; - -// TODO handle return type -// http://jasmine.github.io/2.4/introduction.html#section-Spies -declare function spyOn(value: mixed, method: string): Object; - -/** Holds all functions related to manipulating test runner */ -declare var jest: JestObjectType; - -/** - * The global Jasmine object, this is generally not exposed as the public API, - * using features inside here could break in later versions of Jest. - */ -declare var jasmine: { - DEFAULT_TIMEOUT_INTERVAL: number, - any(value: mixed): JestAsymmetricEqualityType, - anything(): any, - arrayContaining(value: Array): Array, - clock(): JestClockType, - createSpy(name: string): JestSpyType, - createSpyObj( - baseName: string, - methodNames: Array - ): { [methodName: string]: JestSpyType }, - objectContaining(value: Object): Object, - stringMatching(value: string): string -}; diff --git a/scm-ui/ui-webapp/flow-typed/npm/moment_v2.3.x.js b/scm-ui/ui-webapp/flow-typed/npm/moment_v2.3.x.js deleted file mode 100644 index c2786e87fd..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/moment_v2.3.x.js +++ /dev/null @@ -1,331 +0,0 @@ -// flow-typed signature: 23b805356f90ad9384dd88489654e380 -// flow-typed version: e9374c5fe9/moment_v2.3.x/flow_>=v0.25.x - -type moment$MomentOptions = { - y?: number | string, - year?: number | string, - years?: number | string, - M?: number | string, - month?: number | string, - months?: number | string, - d?: number | string, - day?: number | string, - days?: number | string, - date?: number | string, - h?: number | string, - hour?: number | string, - hours?: number | string, - m?: number | string, - minute?: number | string, - minutes?: number | string, - s?: number | string, - second?: number | string, - seconds?: number | string, - ms?: number | string, - millisecond?: number | string, - milliseconds?: number | string -}; - -type moment$MomentObject = { - years: number, - months: number, - date: number, - hours: number, - minutes: number, - seconds: number, - milliseconds: number -}; - -type moment$MomentCreationData = { - input: string, - format: string, - locale: Object, - isUTC: boolean, - strict: boolean -}; - -type moment$CalendarFormat = string | ((moment: moment$Moment) => string); - -type moment$CalendarFormats = { - sameDay?: moment$CalendarFormat, - nextDay?: moment$CalendarFormat, - nextWeek?: moment$CalendarFormat, - lastDay?: moment$CalendarFormat, - lastWeek?: moment$CalendarFormat, - sameElse?: moment$CalendarFormat -}; - -declare class moment$LocaleData { - months(moment: moment$Moment): string, - monthsShort(moment: moment$Moment): string, - monthsParse(month: string): number, - weekdays(moment: moment$Moment): string, - weekdaysShort(moment: moment$Moment): string, - weekdaysMin(moment: moment$Moment): string, - weekdaysParse(weekDay: string): number, - longDateFormat(dateFormat: string): string, - isPM(date: string): boolean, - meridiem(hours: number, minutes: number, isLower: boolean): string, - calendar( - key: - | "sameDay" - | "nextDay" - | "lastDay" - | "nextWeek" - | "prevWeek" - | "sameElse", - moment: moment$Moment - ): string, - relativeTime( - number: number, - withoutSuffix: boolean, - key: "s" | "m" | "mm" | "h" | "hh" | "d" | "dd" | "M" | "MM" | "y" | "yy", - isFuture: boolean - ): string, - pastFuture(diff: any, relTime: string): string, - ordinal(number: number): string, - preparse(str: string): any, - postformat(str: string): any, - week(moment: moment$Moment): string, - invalidDate(): string, - firstDayOfWeek(): number, - firstDayOfYear(): number -} -declare class moment$MomentDuration { - humanize(suffix?: boolean): string, - milliseconds(): number, - asMilliseconds(): number, - seconds(): number, - asSeconds(): number, - minutes(): number, - asMinutes(): number, - hours(): number, - asHours(): number, - days(): number, - asDays(): number, - months(): number, - asWeeks(): number, - weeks(): number, - asMonths(): number, - years(): number, - asYears(): number, - add(value: number | moment$MomentDuration | Object, unit?: string): this, - subtract(value: number | moment$MomentDuration | Object, unit?: string): this, - as(unit: string): number, - get(unit: string): number, - toJSON(): string, - toISOString(): string, - isValid(): boolean -} -declare class moment$Moment { - static ISO_8601: string, - static ( - string?: string, - format?: string | Array, - strict?: boolean - ): moment$Moment, - static ( - string?: string, - format?: string | Array, - locale?: string, - strict?: boolean - ): moment$Moment, - static ( - initDate: ?Object | number | Date | Array | moment$Moment | string - ): moment$Moment, - static unix(seconds: number): moment$Moment, - static utc(): moment$Moment, - static utc(number: number | Array): moment$Moment, - static utc( - str: string, - str2?: string | Array, - str3?: string - ): moment$Moment, - static utc(moment: moment$Moment): moment$Moment, - static utc(date: Date): moment$Moment, - static parseZone(): moment$Moment, - static parseZone(rawDate: string): moment$Moment, - static parseZone( - rawDate: string, - format: string | Array - ): moment$Moment, - static parseZone( - rawDate: string, - format: string, - strict: boolean - ): moment$Moment, - static parseZone( - rawDate: string, - format: string, - locale: string, - strict: boolean - ): moment$Moment, - isValid(): boolean, - invalidAt(): 0 | 1 | 2 | 3 | 4 | 5 | 6, - creationData(): moment$MomentCreationData, - millisecond(number: number): this, - milliseconds(number: number): this, - millisecond(): number, - milliseconds(): number, - second(number: number): this, - seconds(number: number): this, - second(): number, - seconds(): number, - minute(number: number): this, - minutes(number: number): this, - minute(): number, - minutes(): number, - hour(number: number): this, - hours(number: number): this, - hour(): number, - hours(): number, - date(number: number): this, - dates(number: number): this, - date(): number, - dates(): number, - day(day: number | string): this, - days(day: number | string): this, - day(): number, - days(): number, - weekday(number: number): this, - weekday(): number, - isoWeekday(number: number): this, - isoWeekday(): number, - dayOfYear(number: number): this, - dayOfYear(): number, - week(number: number): this, - weeks(number: number): this, - week(): number, - weeks(): number, - isoWeek(number: number): this, - isoWeeks(number: number): this, - isoWeek(): number, - isoWeeks(): number, - month(number: number): this, - months(number: number): this, - month(): number, - months(): number, - quarter(number: number): this, - quarter(): number, - year(number: number): this, - years(number: number): this, - year(): number, - years(): number, - weekYear(number: number): this, - weekYear(): number, - isoWeekYear(number: number): this, - isoWeekYear(): number, - weeksInYear(): number, - isoWeeksInYear(): number, - get(string: string): number, - set(unit: string, value: number): this, - set(options: { [unit: string]: number }): this, - static max(...dates: Array): moment$Moment, - static max(dates: Array): moment$Moment, - static min(...dates: Array): moment$Moment, - static min(dates: Array): moment$Moment, - add( - value: number | moment$MomentDuration | moment$Moment | Object, - unit?: string - ): this, - subtract( - value: number | moment$MomentDuration | moment$Moment | string | Object, - unit?: string - ): this, - startOf(unit: string): this, - endOf(unit: string): this, - local(): this, - utc(): this, - utcOffset( - offset: number | string, - keepLocalTime?: boolean, - keepMinutes?: boolean - ): this, - utcOffset(): number, - format(format?: string): string, - fromNow(removeSuffix?: boolean): string, - from( - value: moment$Moment | string | number | Date | Array, - removePrefix?: boolean - ): string, - toNow(removePrefix?: boolean): string, - to( - value: moment$Moment | string | number | Date | Array, - removePrefix?: boolean - ): string, - calendar(refTime?: any, formats?: moment$CalendarFormats): string, - diff( - date: moment$Moment | string | number | Date | Array, - format?: string, - floating?: boolean - ): number, - valueOf(): number, - unix(): number, - daysInMonth(): number, - toDate(): Date, - toArray(): Array, - toJSON(): string, - toISOString( - keepOffset?: boolean - ): string, - toObject(): moment$MomentObject, - isBefore( - date?: moment$Moment | string | number | Date | Array, - units?: ?string - ): boolean, - isSame( - date?: moment$Moment | string | number | Date | Array, - units?: ?string - ): boolean, - isAfter( - date?: moment$Moment | string | number | Date | Array, - units?: ?string - ): boolean, - isSameOrBefore( - date?: moment$Moment | string | number | Date | Array, - units?: ?string - ): boolean, - isSameOrAfter( - date?: moment$Moment | string | number | Date | Array, - units?: ?string - ): boolean, - isBetween( - fromDate: moment$Moment | string | number | Date | Array, - toDate?: ?moment$Moment | string | number | Date | Array, - granularity?: ?string, - inclusion?: ?string - ): boolean, - isDST(): boolean, - isDSTShifted(): boolean, - isLeapYear(): boolean, - clone(): moment$Moment, - static isMoment(obj: any): boolean, - static isDate(obj: any): boolean, - static locale(locale: string, localeData?: Object): string, - static updateLocale(locale: string, localeData?: ?Object): void, - static locale(locales: Array): string, - locale(locale: string, customization?: Object | null): moment$Moment, - locale(): string, - static months(): Array, - static monthsShort(): Array, - static weekdays(): Array, - static weekdaysShort(): Array, - static weekdaysMin(): Array, - static months(): string, - static monthsShort(): string, - static weekdays(): string, - static weekdaysShort(): string, - static weekdaysMin(): string, - static localeData(key?: string): moment$LocaleData, - static duration( - value: number | Object | string, - unit?: string - ): moment$MomentDuration, - static isDuration(obj: any): boolean, - static normalizeUnits(unit: string): string, - static invalid(object: any): moment$Moment -} - -declare module "moment" { - declare module.exports: Class; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/query-string_v5.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/query-string_v5.x.x.js deleted file mode 100644 index 76a0f632e9..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/query-string_v5.x.x.js +++ /dev/null @@ -1,22 +0,0 @@ -// flow-typed signature: 45d44f189fa426ca21dee3f5149a4f99 -// flow-typed version: c6154227d1/query-string_v5.x.x/flow_>=v0.104.x - -declare module "query-string" { - declare type ArrayFormat = "none" | "bracket" | "index"; - declare type ParseOptions = {| - arrayFormat?: ArrayFormat - |}; - - declare type StringifyOptions = {| - arrayFormat?: ArrayFormat, - encode?: boolean, - strict?: boolean - |}; - - declare module.exports: { - extract(str: string): string, - parse(str: string, opts?: ParseOptions): Object, - stringify(obj: Object, opts?: StringifyOptions): string, - ... - }; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/react-diff-view_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/react-diff-view_vx.x.x.js deleted file mode 100644 index ed29697a39..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/react-diff-view_vx.x.x.js +++ /dev/null @@ -1,139 +0,0 @@ -// flow-typed signature: 35264e970923e4f3cda147e7c17e2407 -// flow-typed version: <>/react-diff-view_v1.8.1/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-diff-view' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-diff-view' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-diff-view/parse' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/CodeCell' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/Diff' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/Hunk' { - declare module.exports: any; -} - -declare module 'react-diff-view/src' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/parse' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/propTypes' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/selectors' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/SplitChange' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/SplitHunk' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/SplitWidget' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/UnifiedChange' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/UnifiedHunk' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/UnifiedWidget' { - declare module.exports: any; -} - -declare module 'react-diff-view/src/utils' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-diff-view/index' { - declare module.exports: $Exports<'react-diff-view'>; -} -declare module 'react-diff-view/index.js' { - declare module.exports: $Exports<'react-diff-view'>; -} -declare module 'react-diff-view/parse.js' { - declare module.exports: $Exports<'react-diff-view/parse'>; -} -declare module 'react-diff-view/src/CodeCell.js' { - declare module.exports: $Exports<'react-diff-view/src/CodeCell'>; -} -declare module 'react-diff-view/src/Diff.js' { - declare module.exports: $Exports<'react-diff-view/src/Diff'>; -} -declare module 'react-diff-view/src/Hunk.js' { - declare module.exports: $Exports<'react-diff-view/src/Hunk'>; -} -declare module 'react-diff-view/src/index' { - declare module.exports: $Exports<'react-diff-view/src'>; -} -declare module 'react-diff-view/src/index.js' { - declare module.exports: $Exports<'react-diff-view/src'>; -} -declare module 'react-diff-view/src/parse.js' { - declare module.exports: $Exports<'react-diff-view/src/parse'>; -} -declare module 'react-diff-view/src/propTypes.js' { - declare module.exports: $Exports<'react-diff-view/src/propTypes'>; -} -declare module 'react-diff-view/src/selectors.js' { - declare module.exports: $Exports<'react-diff-view/src/selectors'>; -} -declare module 'react-diff-view/src/SplitChange.js' { - declare module.exports: $Exports<'react-diff-view/src/SplitChange'>; -} -declare module 'react-diff-view/src/SplitHunk.js' { - declare module.exports: $Exports<'react-diff-view/src/SplitHunk'>; -} -declare module 'react-diff-view/src/SplitWidget.js' { - declare module.exports: $Exports<'react-diff-view/src/SplitWidget'>; -} -declare module 'react-diff-view/src/UnifiedChange.js' { - declare module.exports: $Exports<'react-diff-view/src/UnifiedChange'>; -} -declare module 'react-diff-view/src/UnifiedHunk.js' { - declare module.exports: $Exports<'react-diff-view/src/UnifiedHunk'>; -} -declare module 'react-diff-view/src/UnifiedWidget.js' { - declare module.exports: $Exports<'react-diff-view/src/UnifiedWidget'>; -} -declare module 'react-diff-view/src/utils.js' { - declare module.exports: $Exports<'react-diff-view/src/utils'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/react-i18next_v7.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/react-i18next_v7.x.x.js deleted file mode 100644 index c7d36cbae5..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/react-i18next_v7.x.x.js +++ /dev/null @@ -1,110 +0,0 @@ -// flow-typed signature: e48526194d458ea4787ca56d830092da -// flow-typed version: c6154227d1/react-i18next_v7.x.x/flow_>=v0.104.x - -declare module "react-i18next" { - declare type TFunction = (key?: ?string, data?: ?Object) => string; - - declare type TranslatorProps = {| - t: TFunction, - i18nLoadedAt: Date, - i18n: Object - |}; - - declare type TranslatorPropsVoid = { - t: TFunction | void, - i18nLoadedAt: Date | void, - i18n: Object | void, - ... - }; - - declare type Translator> = ( - WrappedComponent: Component - ) => React$ComponentType< - $Diff, TranslatorPropsVoid> - >; - - declare type TranslateOptions = $Shape<{ - wait: boolean, - nsMode: "default" | "fallback", - bindi18n: false | string, - bindStore: false | string, - withRef: boolean, - translateFuncName: string, - i18n: Object, - usePureComponent: boolean, - ... - }>; - - declare function translate>( - namespaces?: | string - | Array - | (($Diff) => string | Array), - options?: TranslateOptions - ): Translator; - - declare type I18nProps = { - i18n?: Object, - ns?: string | Array, - children: (t: TFunction, { - i18n: Object, - t: TFunction, - ... - }) => React$Node, - initialI18nStore?: Object, - initialLanguage?: string, - ... - }; - declare var I18n: React$ComponentType; - - declare type InterpolateProps = { - className?: string, - dangerouslySetInnerHTMLPartElement?: string, - i18n?: Object, - i18nKey?: string, - options?: Object, - parent?: string, - style?: Object, - t?: TFunction, - useDangerouslySetInnerHTML?: boolean, - ... - }; - declare var Interpolate: React$ComponentType; - - declare type TransProps = { - count?: number, - parent?: string, - i18n?: Object, - i18nKey?: string, - t?: TFunction, - ... - }; - declare var Trans: React$ComponentType; - - declare type ProviderProps = { - i18n: Object, - children: React$Element<*>, - ... - }; - declare var I18nextProvider: React$ComponentType; - - declare type NamespacesProps = { - components: Array>, - i18n: { loadNamespaces: Function, ... }, - ... - }; - declare function loadNamespaces(props: NamespacesProps): Promise; - - declare var reactI18nextModule: { - type: "3rdParty", - init: (instance: Object) => void, - ... - }; - - declare function setDefaults(options: TranslateOptions): void; - - declare function getDefaults(): TranslateOptions; - - declare function getI18n(): Object; - - declare function setI18n(instance: Object): void; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/react-jss_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/react-jss_vx.x.x.js deleted file mode 100644 index cf8abae155..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/react-jss_vx.x.x.js +++ /dev/null @@ -1,137 +0,0 @@ -// flow-typed signature: ba35d02d668b0d0a3e04a63a6847974e -// flow-typed version: <>/react-jss_v8.6.1/flow_v0.79.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-jss' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-jss' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-jss/dist/react-jss' { - declare module.exports: any; -} - -declare module 'react-jss/dist/react-jss.min' { - declare module.exports: any; -} - -declare module 'react-jss/lib/compose' { - declare module.exports: any; -} - -declare module 'react-jss/lib/compose.test' { - declare module.exports: any; -} - -declare module 'react-jss/lib/contextTypes' { - declare module.exports: any; -} - -declare module 'react-jss/lib/createHoc' { - declare module.exports: any; -} - -declare module 'react-jss/lib/getDisplayName' { - declare module.exports: any; -} - -declare module 'react-jss/lib/index' { - declare module.exports: any; -} - -declare module 'react-jss/lib/index.test' { - declare module.exports: any; -} - -declare module 'react-jss/lib/injectSheet' { - declare module.exports: any; -} - -declare module 'react-jss/lib/injectSheet.test' { - declare module.exports: any; -} - -declare module 'react-jss/lib/jss' { - declare module.exports: any; -} - -declare module 'react-jss/lib/JssProvider' { - declare module.exports: any; -} - -declare module 'react-jss/lib/JssProvider.test' { - declare module.exports: any; -} - -declare module 'react-jss/lib/ns' { - declare module.exports: any; -} - -declare module 'react-jss/lib/propTypes' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-jss/dist/react-jss.js' { - declare module.exports: $Exports<'react-jss/dist/react-jss'>; -} -declare module 'react-jss/dist/react-jss.min.js' { - declare module.exports: $Exports<'react-jss/dist/react-jss.min'>; -} -declare module 'react-jss/lib/compose.js' { - declare module.exports: $Exports<'react-jss/lib/compose'>; -} -declare module 'react-jss/lib/compose.test.js' { - declare module.exports: $Exports<'react-jss/lib/compose.test'>; -} -declare module 'react-jss/lib/contextTypes.js' { - declare module.exports: $Exports<'react-jss/lib/contextTypes'>; -} -declare module 'react-jss/lib/createHoc.js' { - declare module.exports: $Exports<'react-jss/lib/createHoc'>; -} -declare module 'react-jss/lib/getDisplayName.js' { - declare module.exports: $Exports<'react-jss/lib/getDisplayName'>; -} -declare module 'react-jss/lib/index.js' { - declare module.exports: $Exports<'react-jss/lib/index'>; -} -declare module 'react-jss/lib/index.test.js' { - declare module.exports: $Exports<'react-jss/lib/index.test'>; -} -declare module 'react-jss/lib/injectSheet.js' { - declare module.exports: $Exports<'react-jss/lib/injectSheet'>; -} -declare module 'react-jss/lib/injectSheet.test.js' { - declare module.exports: $Exports<'react-jss/lib/injectSheet.test'>; -} -declare module 'react-jss/lib/jss.js' { - declare module.exports: $Exports<'react-jss/lib/jss'>; -} -declare module 'react-jss/lib/JssProvider.js' { - declare module.exports: $Exports<'react-jss/lib/JssProvider'>; -} -declare module 'react-jss/lib/JssProvider.test.js' { - declare module.exports: $Exports<'react-jss/lib/JssProvider.test'>; -} -declare module 'react-jss/lib/ns.js' { - declare module.exports: $Exports<'react-jss/lib/ns'>; -} -declare module 'react-jss/lib/propTypes.js' { - declare module.exports: $Exports<'react-jss/lib/propTypes'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/react-markdown_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/react-markdown_vx.x.x.js deleted file mode 100644 index 7f910c3008..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/react-markdown_vx.x.x.js +++ /dev/null @@ -1,123 +0,0 @@ -// flow-typed signature: 6bcbadac27a01caf160321668f1e53ce -// flow-typed version: <>/react-markdown_v4.2.2/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-markdown' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-markdown' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-markdown/lib/ast-to-react' { - declare module.exports: any; -} - -declare module 'react-markdown/lib/get-definitions' { - declare module.exports: any; -} - -declare module 'react-markdown/lib/plugins/disallow-node' { - declare module.exports: any; -} - -declare module 'react-markdown/lib/plugins/html-parser' { - declare module.exports: any; -} - -declare module 'react-markdown/lib/plugins/naive-html' { - declare module.exports: any; -} - -declare module 'react-markdown/lib/react-markdown' { - declare module.exports: any; -} - -declare module 'react-markdown/lib/renderers' { - declare module.exports: any; -} - -declare module 'react-markdown/lib/symbols' { - declare module.exports: any; -} - -declare module 'react-markdown/lib/uri-transformer' { - declare module.exports: any; -} - -declare module 'react-markdown/lib/with-html' { - declare module.exports: any; -} - -declare module 'react-markdown/lib/wrap-table-rows' { - declare module.exports: any; -} - -declare module 'react-markdown/plugins/html-parser' { - declare module.exports: any; -} - -declare module 'react-markdown/umd/react-markdown' { - declare module.exports: any; -} - -declare module 'react-markdown/with-html' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-markdown/lib/ast-to-react.js' { - declare module.exports: $Exports<'react-markdown/lib/ast-to-react'>; -} -declare module 'react-markdown/lib/get-definitions.js' { - declare module.exports: $Exports<'react-markdown/lib/get-definitions'>; -} -declare module 'react-markdown/lib/plugins/disallow-node.js' { - declare module.exports: $Exports<'react-markdown/lib/plugins/disallow-node'>; -} -declare module 'react-markdown/lib/plugins/html-parser.js' { - declare module.exports: $Exports<'react-markdown/lib/plugins/html-parser'>; -} -declare module 'react-markdown/lib/plugins/naive-html.js' { - declare module.exports: $Exports<'react-markdown/lib/plugins/naive-html'>; -} -declare module 'react-markdown/lib/react-markdown.js' { - declare module.exports: $Exports<'react-markdown/lib/react-markdown'>; -} -declare module 'react-markdown/lib/renderers.js' { - declare module.exports: $Exports<'react-markdown/lib/renderers'>; -} -declare module 'react-markdown/lib/symbols.js' { - declare module.exports: $Exports<'react-markdown/lib/symbols'>; -} -declare module 'react-markdown/lib/uri-transformer.js' { - declare module.exports: $Exports<'react-markdown/lib/uri-transformer'>; -} -declare module 'react-markdown/lib/with-html.js' { - declare module.exports: $Exports<'react-markdown/lib/with-html'>; -} -declare module 'react-markdown/lib/wrap-table-rows.js' { - declare module.exports: $Exports<'react-markdown/lib/wrap-table-rows'>; -} -declare module 'react-markdown/plugins/html-parser.js' { - declare module.exports: $Exports<'react-markdown/plugins/html-parser'>; -} -declare module 'react-markdown/umd/react-markdown.js' { - declare module.exports: $Exports<'react-markdown/umd/react-markdown'>; -} -declare module 'react-markdown/with-html.js' { - declare module.exports: $Exports<'react-markdown/with-html'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/react-redux_v5.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/react-redux_v5.x.x.js deleted file mode 100644 index 32b3ee0052..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/react-redux_v5.x.x.js +++ /dev/null @@ -1,280 +0,0 @@ -// flow-typed signature: 17b48cc5220dae9fdc0e9614a532a47b -// flow-typed version: c6154227d1/react-redux_v5.x.x/flow_>=v0.104.x - -/** -The order of type arguments for connect() is as follows: - -connect(…) - -In Flow v0.89 only the first two are mandatory to specify. Other 4 can be repaced with the new awesome type placeholder: - -connect(…) - -But beware, in case of weird type errors somewhere in random places -just type everything and get to a green field and only then try to -remove the definitions you see bogus. - -Decrypting the abbreviations: - WC = Component being wrapped - S = State - D = Dispatch - OP = OwnProps - SP = StateProps - DP = DispatchProps - MP = Merge props - RSP = Returned state props - RDP = Returned dispatch props - RMP = Returned merge props - CP = Props for returned component - Com = React Component - ST = Static properties of Com - EFO = Extra factory options (used only in connectAdvanced) -*/ - -declare module "react-redux" { - // ------------------------------------------------------------ - // Typings for connect() - // ------------------------------------------------------------ - - declare export type Options = {| - pure?: boolean, - withRef?: boolean, - areStatesEqual?: (next: S, prev: S) => boolean, - areOwnPropsEqual?: (next: OP, prev: OP) => boolean, - areStatePropsEqual?: (next: SP, prev: SP) => boolean, - areMergedPropsEqual?: (next: MP, prev: MP) => boolean, - storeKey?: string, - |}; - - declare type MapStateToProps<-S, -OP, +SP> = - | ((state: S, ownProps: OP) => SP) - // If you want to use the factory function but get a strange error - // like "function is not an object" then just type the factory function - // like this: - // const factory: (State, OwnProps) => (State, OwnProps) => StateProps - // and provide the StateProps type to the SP type parameter. - | ((state: S, ownProps: OP) => (state: S, ownProps: OP) => SP); - - declare type Bind = ((...A) => R) => (...A) => $Call; - - declare type MapDispatchToPropsFn = - | ((dispatch: D, ownProps: OP) => DP) - // If you want to use the factory function but get a strange error - // like "function is not an object" then just type the factory function - // like this: - // const factory: (Dispatch, OwnProps) => (Dispatch, OwnProps) => DispatchProps - // and provide the DispatchProps type to the DP type parameter. - | ((dispatch: D, ownProps: OP) => (dispatch: D, ownProps: OP) => DP); - - declare class ConnectedComponent extends React$Component { - static +WrappedComponent: WC; - getWrappedInstance(): React$ElementRef; - } - // The connection of the Wrapped Component and the Connected Component - // happens here in `MP: P`. It means that type wise MP belongs to P, - // so to say MP >= P. - declare type Connector = >( - WC, - ) => Class> & WC; - - // No `mergeProps` argument - - // Got error like inexact OwnProps is incompatible with exact object type? - // Just make the OP parameter for `connect()` an exact object. - declare type MergeOP = {| ...$Exact, dispatch: D |}; - declare type MergeOPSP = {| ...$Exact, ...SP, dispatch: D |}; - declare type MergeOPDP = {| ...$Exact, ...DP |}; - declare type MergeOPSPDP = {| ...$Exact, ...SP, ...DP |}; - - declare export function connect<-P, -OP, -SP, -DP, -S, -D>( - mapStateToProps?: null | void, - mapDispatchToProps?: null | void, - mergeProps?: null | void, - options?: ?Options>, - ): Connector>; - - declare export function connect<-P, -OP, -SP, -DP, -S, -D>( - // If you get error here try adding return type to your mapStateToProps function - mapStateToProps: MapStateToProps, - mapDispatchToProps?: null | void, - mergeProps?: null | void, - options?: ?Options>, - ): Connector>; - - // In this case DP is an object of functions which has been bound to dispatch - // by the given mapDispatchToProps function. - declare export function connect<-P, -OP, -SP, -DP, S, D>( - mapStateToProps: null | void, - mapDispatchToProps: MapDispatchToPropsFn, - mergeProps?: null | void, - options?: ?Options>, - ): Connector>; - - // In this case DP is an object of action creators not yet bound to dispatch, - // this difference is not important in the vanila redux, - // but in case of usage with redux-thunk, the return type may differ. - declare export function connect<-P, -OP, -SP, -DP, S, D>( - mapStateToProps: null | void, - mapDispatchToProps: DP, - mergeProps?: null | void, - options?: ?Options>, - ): Connector>>>; - - declare export function connect<-P, -OP, -SP, -DP, S, D>( - // If you get error here try adding return type to your mapStateToProps function - mapStateToProps: MapStateToProps, - mapDispatchToProps: MapDispatchToPropsFn, - mergeProps?: null | void, - options?: ?Options, - ): Connector; - - declare export function connect<-P, -OP, -SP, -DP, S, D>( - // If you get error here try adding return type to your mapStateToProps function - mapStateToProps: MapStateToProps, - mapDispatchToProps: DP, - mergeProps?: null | void, - options?: ?Options>, - ): Connector>>>; - - // With `mergeProps` argument - - declare type MergeProps<+P, -OP, -SP, -DP> = ( - stateProps: SP, - dispatchProps: DP, - ownProps: OP, - ) => P; - - declare export function connect<-P, -OP, -SP: {||}, -DP: {||}, S, D>( - mapStateToProps: null | void, - mapDispatchToProps: null | void, - // If you get error here try adding return type to you mapStateToProps function - mergeProps: MergeProps, - options?: ?Options, - ): Connector; - - declare export function connect<-P, -OP, -SP, -DP: {||}, S, D>( - mapStateToProps: MapStateToProps, - mapDispatchToProps: null | void, - // If you get error here try adding return type to you mapStateToProps function - mergeProps: MergeProps, - options?: ?Options, - ): Connector; - - // In this case DP is an object of functions which has been bound to dispatch - // by the given mapDispatchToProps function. - declare export function connect<-P, -OP, -SP: {||}, -DP, S, D>( - mapStateToProps: null | void, - mapDispatchToProps: MapDispatchToPropsFn, - mergeProps: MergeProps, - options?: ?Options, - ): Connector; - - // In this case DP is an object of action creators not yet bound to dispatch, - // this difference is not important in the vanila redux, - // but in case of usage with redux-thunk, the return type may differ. - declare export function connect<-P, -OP, -SP: {||}, -DP, S, D>( - mapStateToProps: null | void, - mapDispatchToProps: DP, - mergeProps: MergeProps>>, - options?: ?Options, - ): Connector; - - // In this case DP is an object of functions which has been bound to dispatch - // by the given mapDispatchToProps function. - declare export function connect<-P, -OP, -SP, -DP, S, D>( - mapStateToProps: MapStateToProps, - mapDispatchToProps: MapDispatchToPropsFn, - mergeProps: MergeProps, - options?: ?Options, - ): Connector; - - // In this case DP is an object of action creators not yet bound to dispatch, - // this difference is not important in the vanila redux, - // but in case of usage with redux-thunk, the return type may differ. - declare export function connect<-P, -OP, -SP, -DP, S, D>( - mapStateToProps: MapStateToProps, - mapDispatchToProps: DP, - mergeProps: MergeProps>>, - options?: ?Options, - ): Connector; - - // ------------------------------------------------------------ - // Typings for Provider - // ------------------------------------------------------------ - - declare export class Provider extends React$Component<{ - store: Store, - children?: React$Node, - ... - }> {} - - declare export function createProvider( - storeKey?: string, - subKey?: string, - ): Class>; - - // ------------------------------------------------------------ - // Typings for connectAdvanced() - // ------------------------------------------------------------ - - declare type ConnectAdvancedOptions = { - getDisplayName?: (name: string) => string, - methodName?: string, - renderCountProp?: string, - shouldHandleStateChanges?: boolean, - storeKey?: string, - withRef?: boolean, - ... - }; - - declare type SelectorFactoryOptions = { - getDisplayName: (name: string) => string, - methodName: string, - renderCountProp: ?string, - shouldHandleStateChanges: boolean, - storeKey: string, - withRef: boolean, - displayName: string, - wrappedComponentName: string, - WrappedComponent: Com, - ... - }; - - declare type MapStateToPropsEx = ( - state: S, - props: SP, - ) => RSP; - - declare type SelectorFactory< - Com: React$ComponentType<*>, - Dispatch, - S: Object, - OP: Object, - EFO: Object, - CP: Object, - > = ( - dispatch: Dispatch, - factoryOptions: SelectorFactoryOptions & EFO, - ) => MapStateToPropsEx; - - declare export function connectAdvanced< - Com: React$ComponentType<*>, - D, - S: Object, - OP: Object, - CP: Object, - EFO: Object, - ST: { [_: $Keys]: any, ... }, - >( - selectorFactory: SelectorFactory, - connectAdvancedOptions: ?(ConnectAdvancedOptions & EFO), - ): (component: Com) => React$ComponentType & $Shape; - - declare export default { - Provider: typeof Provider, - createProvider: typeof createProvider, - connect: typeof connect, - connectAdvanced: typeof connectAdvanced, - ... - }; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/react-router-dom_v4.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/react-router-dom_v4.x.x.js deleted file mode 100644 index eb345e4c2b..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/react-router-dom_v4.x.x.js +++ /dev/null @@ -1,182 +0,0 @@ -// flow-typed signature: 0bc486c8fc04d0bb37efa138223e4f67 -// flow-typed version: c6154227d1/react-router-dom_v4.x.x/flow_>=v0.104.x - -declare module "react-router-dom" { - declare export var BrowserRouter: React$ComponentType<{| - basename?: string, - forceRefresh?: boolean, - getUserConfirmation?: GetUserConfirmation, - keyLength?: number, - children?: React$Node - |}> - - declare export var HashRouter: React$ComponentType<{| - basename?: string, - getUserConfirmation?: GetUserConfirmation, - hashType?: "slash" | "noslash" | "hashbang", - children?: React$Node - |}> - - declare export var Link: React$ComponentType<{ - className?: string, - to: string | LocationShape, - replace?: boolean, - children?: React$Node, - ... - }> - - declare export var NavLink: React$ComponentType<{ - to: string | LocationShape, - activeClassName?: string, - className?: string, - activeStyle?: Object, - style?: Object, - isActive?: (match: Match, location: Location) => boolean, - children?: React$Node, - exact?: boolean, - strict?: boolean, - ... - }> - - // NOTE: Below are duplicated from react-router. If updating these, please - // update the react-router and react-router-native types as well. - declare export type Location = { - pathname: string, - search: string, - hash: string, - state?: any, - key?: string, - ... - }; - - declare export type LocationShape = { - pathname?: string, - search?: string, - hash?: string, - state?: any, - ... - }; - - declare export type HistoryAction = "PUSH" | "REPLACE" | "POP"; - - declare export type RouterHistory = { - length: number, - location: Location, - action: HistoryAction, - listen( - callback: (location: Location, action: HistoryAction) => void - ): () => void, - push(path: string | LocationShape, state?: any): void, - replace(path: string | LocationShape, state?: any): void, - go(n: number): void, - goBack(): void, - goForward(): void, - canGo?: (n: number) => boolean, - block( - callback: string | (location: Location, action: HistoryAction) => ?string - ): () => void, - // createMemoryHistory - index?: number, - entries?: Array, - ... - }; - - declare export type Match = { - params: { [key: string]: ?string, ... }, - isExact: boolean, - path: string, - url: string, - ... - }; - - declare export type ContextRouter = {| - history: RouterHistory, - location: Location, - match: Match, - staticContext?: StaticRouterContext - |}; - - declare type ContextRouterVoid = { - history: RouterHistory | void, - location: Location | void, - match: Match | void, - staticContext?: StaticRouterContext | void, - ... - }; - - declare export type GetUserConfirmation = ( - message: string, - callback: (confirmed: boolean) => void - ) => void; - - declare export type StaticRouterContext = { url?: string, ... }; - - declare export var StaticRouter: React$ComponentType<{| - basename?: string, - location?: string | Location, - context: StaticRouterContext, - children?: React$Node - |}> - - declare export var MemoryRouter: React$ComponentType<{| - initialEntries?: Array, - initialIndex?: number, - getUserConfirmation?: GetUserConfirmation, - keyLength?: number, - children?: React$Node - |}> - - declare export var Router: React$ComponentType<{| - history: RouterHistory, - children?: React$Node - |}> - - declare export var Prompt: React$ComponentType<{| - message: string | ((location: Location) => string | boolean), - when?: boolean - |}> - - declare export var Redirect: React$ComponentType<{| - to: string | LocationShape, - push?: boolean, - from?: string, - exact?: boolean, - strict?: boolean - |}> - - declare export var Route: React$ComponentType<{| - component?: React$ComponentType<*>, - render?: (router: ContextRouter) => React$Node, - children?: React$ComponentType | React$Node, - path?: string | Array, - exact?: boolean, - strict?: boolean, - location?: LocationShape, - sensitive?: boolean - |}> - - declare export var Switch: React$ComponentType<{| - children?: React$Node, - location?: Location - |}> - - declare export function withRouter>( - WrappedComponent: Component - ): React$ComponentType<$Diff, ContextRouterVoid>>; - - declare type MatchPathOptions = { - path?: string, - exact?: boolean, - sensitive?: boolean, - strict?: boolean, - ... - }; - - declare export function matchPath( - pathname: string, - options?: MatchPathOptions | string, - parent?: Match - ): null | Match; - - declare export function generatePath(pattern?: string, params?: Object): string; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/react-router-enzyme-context_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/react-router-enzyme-context_vx.x.x.js deleted file mode 100644 index 55586eeaf1..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/react-router-enzyme-context_vx.x.x.js +++ /dev/null @@ -1,56 +0,0 @@ -// flow-typed signature: 030a0d51d7da2db8716b0c796bcd8992 -// flow-typed version: <>/react-router-enzyme-context_v1.2.0/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-router-enzyme-context' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-router-enzyme-context' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-router-enzyme-context/dist/react-router-enzyme-context.cjs' { - declare module.exports: any; -} - -declare module 'react-router-enzyme-context/dist/react-router-enzyme-context.esm' { - declare module.exports: any; -} - -declare module 'react-router-enzyme-context/rollup.config' { - declare module.exports: any; -} - -declare module 'react-router-enzyme-context/src' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-router-enzyme-context/dist/react-router-enzyme-context.cjs.js' { - declare module.exports: $Exports<'react-router-enzyme-context/dist/react-router-enzyme-context.cjs'>; -} -declare module 'react-router-enzyme-context/dist/react-router-enzyme-context.esm.js' { - declare module.exports: $Exports<'react-router-enzyme-context/dist/react-router-enzyme-context.esm'>; -} -declare module 'react-router-enzyme-context/rollup.config.js' { - declare module.exports: $Exports<'react-router-enzyme-context/rollup.config'>; -} -declare module 'react-router-enzyme-context/src/index' { - declare module.exports: $Exports<'react-router-enzyme-context/src'>; -} -declare module 'react-router-enzyme-context/src/index.js' { - declare module.exports: $Exports<'react-router-enzyme-context/src'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/react-select_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/react-select_vx.x.x.js deleted file mode 100644 index 68ef98c870..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/react-select_vx.x.x.js +++ /dev/null @@ -1,726 +0,0 @@ -// flow-typed signature: 0b6edc6705aa28ab46a24d08242af068 -// flow-typed version: <>/react-select_v2.4.4/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-select' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-select' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-select/dist/react-select.esm' { - declare module.exports: any; -} - -declare module 'react-select/dist/react-select' { - declare module.exports: any; -} - -declare module 'react-select/dist/react-select.min' { - declare module.exports: any; -} - -declare module 'react-select/lib/accessibility' { - declare module.exports: any; -} - -declare module 'react-select/lib/animated' { - declare module.exports: any; -} - -declare module 'react-select/lib/animated/Input' { - declare module.exports: any; -} - -declare module 'react-select/lib/animated/MultiValue' { - declare module.exports: any; -} - -declare module 'react-select/lib/animated/Placeholder' { - declare module.exports: any; -} - -declare module 'react-select/lib/animated/SingleValue' { - declare module.exports: any; -} - -declare module 'react-select/lib/animated/transitions' { - declare module.exports: any; -} - -declare module 'react-select/lib/animated/ValueContainer' { - declare module.exports: any; -} - -declare module 'react-select/lib/Async' { - declare module.exports: any; -} - -declare module 'react-select/lib/AsyncCreatable' { - declare module.exports: any; -} - -declare module 'react-select/lib/builtins' { - declare module.exports: any; -} - -declare module 'react-select/lib/components/containers' { - declare module.exports: any; -} - -declare module 'react-select/lib/components/Control' { - declare module.exports: any; -} - -declare module 'react-select/lib/components/Group' { - declare module.exports: any; -} - -declare module 'react-select/lib/components' { - declare module.exports: any; -} - -declare module 'react-select/lib/components/indicators' { - declare module.exports: any; -} - -declare module 'react-select/lib/components/Input' { - declare module.exports: any; -} - -declare module 'react-select/lib/components/Menu' { - declare module.exports: any; -} - -declare module 'react-select/lib/components/MultiValue' { - declare module.exports: any; -} - -declare module 'react-select/lib/components/Option' { - declare module.exports: any; -} - -declare module 'react-select/lib/components/Placeholder' { - declare module.exports: any; -} - -declare module 'react-select/lib/components/SingleValue' { - declare module.exports: any; -} - -declare module 'react-select/lib/Creatable' { - declare module.exports: any; -} - -declare module 'react-select/lib/diacritics' { - declare module.exports: any; -} - -declare module 'react-select/lib/filters' { - declare module.exports: any; -} - -declare module 'react-select/lib' { - declare module.exports: any; -} - -declare module 'react-select/lib/index.umd' { - declare module.exports: any; -} - -declare module 'react-select/lib/internal/A11yText' { - declare module.exports: any; -} - -declare module 'react-select/lib/internal/DummyInput' { - declare module.exports: any; -} - -declare module 'react-select/lib/internal' { - declare module.exports: any; -} - -declare module 'react-select/lib/internal/NodeResolver' { - declare module.exports: any; -} - -declare module 'react-select/lib/internal/react-fast-compare' { - declare module.exports: any; -} - -declare module 'react-select/lib/internal/ScrollBlock' { - declare module.exports: any; -} - -declare module 'react-select/lib/internal/ScrollCaptor' { - declare module.exports: any; -} - -declare module 'react-select/lib/internal/ScrollLock/constants' { - declare module.exports: any; -} - -declare module 'react-select/lib/internal/ScrollLock' { - declare module.exports: any; -} - -declare module 'react-select/lib/internal/ScrollLock/utils' { - declare module.exports: any; -} - -declare module 'react-select/lib/Select' { - declare module.exports: any; -} - -declare module 'react-select/lib/stateManager' { - declare module.exports: any; -} - -declare module 'react-select/lib/styles' { - declare module.exports: any; -} - -declare module 'react-select/lib/theme' { - declare module.exports: any; -} - -declare module 'react-select/lib/types' { - declare module.exports: any; -} - -declare module 'react-select/lib/utils' { - declare module.exports: any; -} - -declare module 'react-select/src/__tests__/Async.test' { - declare module.exports: any; -} - -declare module 'react-select/src/__tests__/AsyncCreatable.test' { - declare module.exports: any; -} - -declare module 'react-select/src/__tests__/constants' { - declare module.exports: any; -} - -declare module 'react-select/src/__tests__/Creatable.test' { - declare module.exports: any; -} - -declare module 'react-select/src/__tests__/Select.test' { - declare module.exports: any; -} - -declare module 'react-select/src/__tests__/StateManaged.test' { - declare module.exports: any; -} - -declare module 'react-select/src/accessibility' { - declare module.exports: any; -} - -declare module 'react-select/src/animated' { - declare module.exports: any; -} - -declare module 'react-select/src/animated/Input' { - declare module.exports: any; -} - -declare module 'react-select/src/animated/MultiValue' { - declare module.exports: any; -} - -declare module 'react-select/src/animated/Placeholder' { - declare module.exports: any; -} - -declare module 'react-select/src/animated/SingleValue' { - declare module.exports: any; -} - -declare module 'react-select/src/animated/transitions' { - declare module.exports: any; -} - -declare module 'react-select/src/animated/ValueContainer' { - declare module.exports: any; -} - -declare module 'react-select/src/Async' { - declare module.exports: any; -} - -declare module 'react-select/src/AsyncCreatable' { - declare module.exports: any; -} - -declare module 'react-select/src/builtins' { - declare module.exports: any; -} - -declare module 'react-select/src/components/containers' { - declare module.exports: any; -} - -declare module 'react-select/src/components/Control' { - declare module.exports: any; -} - -declare module 'react-select/src/components/Group' { - declare module.exports: any; -} - -declare module 'react-select/src/components' { - declare module.exports: any; -} - -declare module 'react-select/src/components/indicators' { - declare module.exports: any; -} - -declare module 'react-select/src/components/Input' { - declare module.exports: any; -} - -declare module 'react-select/src/components/Menu' { - declare module.exports: any; -} - -declare module 'react-select/src/components/MultiValue' { - declare module.exports: any; -} - -declare module 'react-select/src/components/Option' { - declare module.exports: any; -} - -declare module 'react-select/src/components/Placeholder' { - declare module.exports: any; -} - -declare module 'react-select/src/components/SingleValue' { - declare module.exports: any; -} - -declare module 'react-select/src/Creatable' { - declare module.exports: any; -} - -declare module 'react-select/src/diacritics' { - declare module.exports: any; -} - -declare module 'react-select/src/filters' { - declare module.exports: any; -} - -declare module 'react-select/src' { - declare module.exports: any; -} - -declare module 'react-select/src/index.umd' { - declare module.exports: any; -} - -declare module 'react-select/src/internal/A11yText' { - declare module.exports: any; -} - -declare module 'react-select/src/internal/DummyInput' { - declare module.exports: any; -} - -declare module 'react-select/src/internal' { - declare module.exports: any; -} - -declare module 'react-select/src/internal/NodeResolver' { - declare module.exports: any; -} - -declare module 'react-select/src/internal/react-fast-compare' { - declare module.exports: any; -} - -declare module 'react-select/src/internal/ScrollBlock' { - declare module.exports: any; -} - -declare module 'react-select/src/internal/ScrollCaptor' { - declare module.exports: any; -} - -declare module 'react-select/src/internal/ScrollLock/constants' { - declare module.exports: any; -} - -declare module 'react-select/src/internal/ScrollLock' { - declare module.exports: any; -} - -declare module 'react-select/src/internal/ScrollLock/utils' { - declare module.exports: any; -} - -declare module 'react-select/src/Select' { - declare module.exports: any; -} - -declare module 'react-select/src/stateManager' { - declare module.exports: any; -} - -declare module 'react-select/src/styles' { - declare module.exports: any; -} - -declare module 'react-select/src/theme' { - declare module.exports: any; -} - -declare module 'react-select/src/types' { - declare module.exports: any; -} - -declare module 'react-select/src/utils' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-select/dist/react-select.esm.js' { - declare module.exports: $Exports<'react-select/dist/react-select.esm'>; -} -declare module 'react-select/dist/react-select.js' { - declare module.exports: $Exports<'react-select/dist/react-select'>; -} -declare module 'react-select/dist/react-select.min.js' { - declare module.exports: $Exports<'react-select/dist/react-select.min'>; -} -declare module 'react-select/lib/accessibility/index' { - declare module.exports: $Exports<'react-select/lib/accessibility'>; -} -declare module 'react-select/lib/accessibility/index.js' { - declare module.exports: $Exports<'react-select/lib/accessibility'>; -} -declare module 'react-select/lib/animated/index' { - declare module.exports: $Exports<'react-select/lib/animated'>; -} -declare module 'react-select/lib/animated/index.js' { - declare module.exports: $Exports<'react-select/lib/animated'>; -} -declare module 'react-select/lib/animated/Input.js' { - declare module.exports: $Exports<'react-select/lib/animated/Input'>; -} -declare module 'react-select/lib/animated/MultiValue.js' { - declare module.exports: $Exports<'react-select/lib/animated/MultiValue'>; -} -declare module 'react-select/lib/animated/Placeholder.js' { - declare module.exports: $Exports<'react-select/lib/animated/Placeholder'>; -} -declare module 'react-select/lib/animated/SingleValue.js' { - declare module.exports: $Exports<'react-select/lib/animated/SingleValue'>; -} -declare module 'react-select/lib/animated/transitions.js' { - declare module.exports: $Exports<'react-select/lib/animated/transitions'>; -} -declare module 'react-select/lib/animated/ValueContainer.js' { - declare module.exports: $Exports<'react-select/lib/animated/ValueContainer'>; -} -declare module 'react-select/lib/Async.js' { - declare module.exports: $Exports<'react-select/lib/Async'>; -} -declare module 'react-select/lib/AsyncCreatable.js' { - declare module.exports: $Exports<'react-select/lib/AsyncCreatable'>; -} -declare module 'react-select/lib/builtins.js' { - declare module.exports: $Exports<'react-select/lib/builtins'>; -} -declare module 'react-select/lib/components/containers.js' { - declare module.exports: $Exports<'react-select/lib/components/containers'>; -} -declare module 'react-select/lib/components/Control.js' { - declare module.exports: $Exports<'react-select/lib/components/Control'>; -} -declare module 'react-select/lib/components/Group.js' { - declare module.exports: $Exports<'react-select/lib/components/Group'>; -} -declare module 'react-select/lib/components/index' { - declare module.exports: $Exports<'react-select/lib/components'>; -} -declare module 'react-select/lib/components/index.js' { - declare module.exports: $Exports<'react-select/lib/components'>; -} -declare module 'react-select/lib/components/indicators.js' { - declare module.exports: $Exports<'react-select/lib/components/indicators'>; -} -declare module 'react-select/lib/components/Input.js' { - declare module.exports: $Exports<'react-select/lib/components/Input'>; -} -declare module 'react-select/lib/components/Menu.js' { - declare module.exports: $Exports<'react-select/lib/components/Menu'>; -} -declare module 'react-select/lib/components/MultiValue.js' { - declare module.exports: $Exports<'react-select/lib/components/MultiValue'>; -} -declare module 'react-select/lib/components/Option.js' { - declare module.exports: $Exports<'react-select/lib/components/Option'>; -} -declare module 'react-select/lib/components/Placeholder.js' { - declare module.exports: $Exports<'react-select/lib/components/Placeholder'>; -} -declare module 'react-select/lib/components/SingleValue.js' { - declare module.exports: $Exports<'react-select/lib/components/SingleValue'>; -} -declare module 'react-select/lib/Creatable.js' { - declare module.exports: $Exports<'react-select/lib/Creatable'>; -} -declare module 'react-select/lib/diacritics.js' { - declare module.exports: $Exports<'react-select/lib/diacritics'>; -} -declare module 'react-select/lib/filters.js' { - declare module.exports: $Exports<'react-select/lib/filters'>; -} -declare module 'react-select/lib/index' { - declare module.exports: $Exports<'react-select/lib'>; -} -declare module 'react-select/lib/index.js' { - declare module.exports: $Exports<'react-select/lib'>; -} -declare module 'react-select/lib/index.umd.js' { - declare module.exports: $Exports<'react-select/lib/index.umd'>; -} -declare module 'react-select/lib/internal/A11yText.js' { - declare module.exports: $Exports<'react-select/lib/internal/A11yText'>; -} -declare module 'react-select/lib/internal/DummyInput.js' { - declare module.exports: $Exports<'react-select/lib/internal/DummyInput'>; -} -declare module 'react-select/lib/internal/index' { - declare module.exports: $Exports<'react-select/lib/internal'>; -} -declare module 'react-select/lib/internal/index.js' { - declare module.exports: $Exports<'react-select/lib/internal'>; -} -declare module 'react-select/lib/internal/NodeResolver.js' { - declare module.exports: $Exports<'react-select/lib/internal/NodeResolver'>; -} -declare module 'react-select/lib/internal/react-fast-compare.js' { - declare module.exports: $Exports<'react-select/lib/internal/react-fast-compare'>; -} -declare module 'react-select/lib/internal/ScrollBlock.js' { - declare module.exports: $Exports<'react-select/lib/internal/ScrollBlock'>; -} -declare module 'react-select/lib/internal/ScrollCaptor.js' { - declare module.exports: $Exports<'react-select/lib/internal/ScrollCaptor'>; -} -declare module 'react-select/lib/internal/ScrollLock/constants.js' { - declare module.exports: $Exports<'react-select/lib/internal/ScrollLock/constants'>; -} -declare module 'react-select/lib/internal/ScrollLock/index' { - declare module.exports: $Exports<'react-select/lib/internal/ScrollLock'>; -} -declare module 'react-select/lib/internal/ScrollLock/index.js' { - declare module.exports: $Exports<'react-select/lib/internal/ScrollLock'>; -} -declare module 'react-select/lib/internal/ScrollLock/utils.js' { - declare module.exports: $Exports<'react-select/lib/internal/ScrollLock/utils'>; -} -declare module 'react-select/lib/Select.js' { - declare module.exports: $Exports<'react-select/lib/Select'>; -} -declare module 'react-select/lib/stateManager.js' { - declare module.exports: $Exports<'react-select/lib/stateManager'>; -} -declare module 'react-select/lib/styles.js' { - declare module.exports: $Exports<'react-select/lib/styles'>; -} -declare module 'react-select/lib/theme.js' { - declare module.exports: $Exports<'react-select/lib/theme'>; -} -declare module 'react-select/lib/types.js' { - declare module.exports: $Exports<'react-select/lib/types'>; -} -declare module 'react-select/lib/utils.js' { - declare module.exports: $Exports<'react-select/lib/utils'>; -} -declare module 'react-select/src/__tests__/Async.test.js' { - declare module.exports: $Exports<'react-select/src/__tests__/Async.test'>; -} -declare module 'react-select/src/__tests__/AsyncCreatable.test.js' { - declare module.exports: $Exports<'react-select/src/__tests__/AsyncCreatable.test'>; -} -declare module 'react-select/src/__tests__/constants.js' { - declare module.exports: $Exports<'react-select/src/__tests__/constants'>; -} -declare module 'react-select/src/__tests__/Creatable.test.js' { - declare module.exports: $Exports<'react-select/src/__tests__/Creatable.test'>; -} -declare module 'react-select/src/__tests__/Select.test.js' { - declare module.exports: $Exports<'react-select/src/__tests__/Select.test'>; -} -declare module 'react-select/src/__tests__/StateManaged.test.js' { - declare module.exports: $Exports<'react-select/src/__tests__/StateManaged.test'>; -} -declare module 'react-select/src/accessibility/index' { - declare module.exports: $Exports<'react-select/src/accessibility'>; -} -declare module 'react-select/src/accessibility/index.js' { - declare module.exports: $Exports<'react-select/src/accessibility'>; -} -declare module 'react-select/src/animated/index' { - declare module.exports: $Exports<'react-select/src/animated'>; -} -declare module 'react-select/src/animated/index.js' { - declare module.exports: $Exports<'react-select/src/animated'>; -} -declare module 'react-select/src/animated/Input.js' { - declare module.exports: $Exports<'react-select/src/animated/Input'>; -} -declare module 'react-select/src/animated/MultiValue.js' { - declare module.exports: $Exports<'react-select/src/animated/MultiValue'>; -} -declare module 'react-select/src/animated/Placeholder.js' { - declare module.exports: $Exports<'react-select/src/animated/Placeholder'>; -} -declare module 'react-select/src/animated/SingleValue.js' { - declare module.exports: $Exports<'react-select/src/animated/SingleValue'>; -} -declare module 'react-select/src/animated/transitions.js' { - declare module.exports: $Exports<'react-select/src/animated/transitions'>; -} -declare module 'react-select/src/animated/ValueContainer.js' { - declare module.exports: $Exports<'react-select/src/animated/ValueContainer'>; -} -declare module 'react-select/src/Async.js' { - declare module.exports: $Exports<'react-select/src/Async'>; -} -declare module 'react-select/src/AsyncCreatable.js' { - declare module.exports: $Exports<'react-select/src/AsyncCreatable'>; -} -declare module 'react-select/src/builtins.js' { - declare module.exports: $Exports<'react-select/src/builtins'>; -} -declare module 'react-select/src/components/containers.js' { - declare module.exports: $Exports<'react-select/src/components/containers'>; -} -declare module 'react-select/src/components/Control.js' { - declare module.exports: $Exports<'react-select/src/components/Control'>; -} -declare module 'react-select/src/components/Group.js' { - declare module.exports: $Exports<'react-select/src/components/Group'>; -} -declare module 'react-select/src/components/index' { - declare module.exports: $Exports<'react-select/src/components'>; -} -declare module 'react-select/src/components/index.js' { - declare module.exports: $Exports<'react-select/src/components'>; -} -declare module 'react-select/src/components/indicators.js' { - declare module.exports: $Exports<'react-select/src/components/indicators'>; -} -declare module 'react-select/src/components/Input.js' { - declare module.exports: $Exports<'react-select/src/components/Input'>; -} -declare module 'react-select/src/components/Menu.js' { - declare module.exports: $Exports<'react-select/src/components/Menu'>; -} -declare module 'react-select/src/components/MultiValue.js' { - declare module.exports: $Exports<'react-select/src/components/MultiValue'>; -} -declare module 'react-select/src/components/Option.js' { - declare module.exports: $Exports<'react-select/src/components/Option'>; -} -declare module 'react-select/src/components/Placeholder.js' { - declare module.exports: $Exports<'react-select/src/components/Placeholder'>; -} -declare module 'react-select/src/components/SingleValue.js' { - declare module.exports: $Exports<'react-select/src/components/SingleValue'>; -} -declare module 'react-select/src/Creatable.js' { - declare module.exports: $Exports<'react-select/src/Creatable'>; -} -declare module 'react-select/src/diacritics.js' { - declare module.exports: $Exports<'react-select/src/diacritics'>; -} -declare module 'react-select/src/filters.js' { - declare module.exports: $Exports<'react-select/src/filters'>; -} -declare module 'react-select/src/index' { - declare module.exports: $Exports<'react-select/src'>; -} -declare module 'react-select/src/index.js' { - declare module.exports: $Exports<'react-select/src'>; -} -declare module 'react-select/src/index.umd.js' { - declare module.exports: $Exports<'react-select/src/index.umd'>; -} -declare module 'react-select/src/internal/A11yText.js' { - declare module.exports: $Exports<'react-select/src/internal/A11yText'>; -} -declare module 'react-select/src/internal/DummyInput.js' { - declare module.exports: $Exports<'react-select/src/internal/DummyInput'>; -} -declare module 'react-select/src/internal/index' { - declare module.exports: $Exports<'react-select/src/internal'>; -} -declare module 'react-select/src/internal/index.js' { - declare module.exports: $Exports<'react-select/src/internal'>; -} -declare module 'react-select/src/internal/NodeResolver.js' { - declare module.exports: $Exports<'react-select/src/internal/NodeResolver'>; -} -declare module 'react-select/src/internal/react-fast-compare.js' { - declare module.exports: $Exports<'react-select/src/internal/react-fast-compare'>; -} -declare module 'react-select/src/internal/ScrollBlock.js' { - declare module.exports: $Exports<'react-select/src/internal/ScrollBlock'>; -} -declare module 'react-select/src/internal/ScrollCaptor.js' { - declare module.exports: $Exports<'react-select/src/internal/ScrollCaptor'>; -} -declare module 'react-select/src/internal/ScrollLock/constants.js' { - declare module.exports: $Exports<'react-select/src/internal/ScrollLock/constants'>; -} -declare module 'react-select/src/internal/ScrollLock/index' { - declare module.exports: $Exports<'react-select/src/internal/ScrollLock'>; -} -declare module 'react-select/src/internal/ScrollLock/index.js' { - declare module.exports: $Exports<'react-select/src/internal/ScrollLock'>; -} -declare module 'react-select/src/internal/ScrollLock/utils.js' { - declare module.exports: $Exports<'react-select/src/internal/ScrollLock/utils'>; -} -declare module 'react-select/src/Select.js' { - declare module.exports: $Exports<'react-select/src/Select'>; -} -declare module 'react-select/src/stateManager.js' { - declare module.exports: $Exports<'react-select/src/stateManager'>; -} -declare module 'react-select/src/styles.js' { - declare module.exports: $Exports<'react-select/src/styles'>; -} -declare module 'react-select/src/theme.js' { - declare module.exports: $Exports<'react-select/src/theme'>; -} -declare module 'react-select/src/types.js' { - declare module.exports: $Exports<'react-select/src/types'>; -} -declare module 'react-select/src/utils.js' { - declare module.exports: $Exports<'react-select/src/utils'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/react-syntax-highlighter_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/react-syntax-highlighter_vx.x.x.js deleted file mode 100644 index 7b0ff7da20..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/react-syntax-highlighter_vx.x.x.js +++ /dev/null @@ -1,19463 +0,0 @@ -// flow-typed signature: 254d4b9408fc024395e3ee73e488cf11 -// flow-typed version: <>/react-syntax-highlighter_v10.3.5/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-syntax-highlighter' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-syntax-highlighter' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-syntax-highlighter/babel.config' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/async-languages/create-language-async-loader' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/async-languages/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/async-languages/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/async-syntax-highlighter' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/create-element' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/default-highlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/highlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/1c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/abnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/accesslog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/angelscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/apache' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/arcade' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/armasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/aspectj' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/avrasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/awk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/axapta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/bnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/cal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/capnproto' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ceylon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/clean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/clojure-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/cmake' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/coq' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/cos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/crmsh' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/cs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/delphi' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dns' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dockerfile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dsconfig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ebnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/erlang-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/excel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/fix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/flix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gams' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gauss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/golo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gradle' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/hsp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/htmlbars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/hy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/irpf90' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/isbl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/jboss-cli' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/julia-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/lasso' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ldif' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/leaf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/livecodeserver' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/llvm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/lsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mathematica' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/maxima' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mercury' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mipsasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mojolicious' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/moonscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/n1ql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/nimrod' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/openscad' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/oxygene' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/parser3' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/pf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/pgsql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/plaintext' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/pony' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/profile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/properties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/qml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/reasonml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/rib' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/rsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ruleslanguage' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/sas' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/scilab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/shell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/smali' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/sml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/sqf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/stan' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/stata' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/step21' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/subunit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/supported-languages' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/taggerscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/tex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/thrift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/tp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vbscript-html' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vbscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/x86asm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/xl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/xml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/zephir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/abap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/apacheconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/apl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/arff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/asm6502' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/aspnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/batch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/bison' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/bro' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/clike' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/core' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/csharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/css-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/docker' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/eiffel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/flow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/gedcom' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/git' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/graphql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/hpkp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/hsts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/ichigojam' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/icon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/io' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/j' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/jolie' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/jsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/keyman' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/latex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/liquid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/lolcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/markup-templating' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/markup' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/n4js' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/nasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/nim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/opencl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/oz' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/parigp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/parser' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/pascal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/php-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/plsql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/properties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/pug' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/pure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/qore' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/reason' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/renpy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/rest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/rip' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/sas' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/sass' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/smarty' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/soy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/supported-languages' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/textile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/tsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/tt2' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/velocity' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/visual-basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/wasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/wiki' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/xeora' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/xojo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/light-async' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/prism-async-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/prism-async' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/prism-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/a11y-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/a11y-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/agate' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/an-old-hope' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/androidstudio' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/arduino-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/arta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/ascetic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-cave-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-cave-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-dune-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-dune-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-estuary-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-estuary-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-forest-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-forest-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-heath-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-heath-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-lakeside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-lakeside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-plateau-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-plateau-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-savanna-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-savanna-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-seaside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-seaside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-sulphurpool-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-sulphurpool-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atom-one-dark-reasonable' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atom-one-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atom-one-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/brown-paper' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/codepen-embed' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/color-brewer' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/darkula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/default-style' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/docco' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/dracula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/far' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/foundation' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/github-gist' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/github' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/gml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/googlecode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/grayscale' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/gruvbox-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/gruvbox-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/hybrid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/idea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/ir-black' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/isbl-editor-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/isbl-editor-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/kimbie.dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/kimbie.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/lightfair' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/magula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/mono-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/monokai-sublime' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/monokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/nord' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/obsidian' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/ocean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/paraiso-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/paraiso-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/qtcreator_dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/qtcreator_light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/railscasts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/rainbow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/school-book' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/shades-of-purple' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/solarized-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/solarized-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/sunburst' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night-bright' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night-eighties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/vs2015' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/xcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/xt256' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/zenburn' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/atom-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/cb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/coy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-space' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/funky' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/ghcolors' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/okaidia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/twilight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/vs-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/vscode-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/xonokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/create-element' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/async-languages/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/async-languages/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/async-syntax-highlighter' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/create-element' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/default-highlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/highlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/1c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/abnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/accesslog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/angelscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/apache' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/arcade' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/armasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/aspectj' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/avrasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/awk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/axapta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/bnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/cal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/capnproto' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ceylon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/clean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/clojure-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/cmake' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/coq' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/cos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/crmsh' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/cs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/delphi' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dns' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dockerfile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dsconfig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ebnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/erlang-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/excel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/fix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/flix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gams' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gauss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/golo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gradle' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/hsp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/htmlbars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/hy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/irpf90' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/isbl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/jboss-cli' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/julia-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/lasso' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ldif' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/leaf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/livecodeserver' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/llvm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/lsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mathematica' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/maxima' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mercury' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mipsasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mojolicious' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/moonscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/n1ql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/nimrod' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/openscad' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/oxygene' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/parser3' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/pf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/pgsql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/plaintext' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/pony' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/profile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/properties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/qml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/reasonml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/rib' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/rsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ruleslanguage' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/sas' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/scilab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/shell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/smali' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/sml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/sqf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/stan' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/stata' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/step21' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/subunit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/supported-languages' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/taggerscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/tex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/thrift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/tp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vbscript-html' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vbscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/x86asm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/xl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/xml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/zephir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/abap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/apacheconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/apl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/arff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/asm6502' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/aspnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/batch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/bison' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/bro' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/clike' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/core' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/csharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/css-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/docker' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/eiffel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/flow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/gedcom' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/git' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/graphql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/hpkp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/hsts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/ichigojam' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/icon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/io' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/j' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/jolie' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/jsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/keyman' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/latex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/liquid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/lolcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/markup-templating' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/markup' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/n4js' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/nasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/nim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/opencl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/oz' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/parigp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/parser' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/pascal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/php-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/plsql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/properties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/pug' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/pure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/qore' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/reason' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/renpy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/rest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/rip' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/sas' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/sass' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/smarty' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/soy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/supported-languages' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/textile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/tsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/tt2' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/velocity' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/visual-basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/wasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/wiki' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/xeora' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/xojo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/languages/prism/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/light-async' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/prism-async-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/prism-async' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/prism-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/a11y-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/a11y-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/agate' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/an-old-hope' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/androidstudio' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/arduino-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/arta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/ascetic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-cave-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-cave-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-dune-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-dune-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-estuary-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-estuary-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-forest-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-forest-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-heath-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-heath-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-lakeside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-lakeside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-plateau-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-plateau-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-savanna-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-savanna-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-seaside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-seaside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-sulphurpool-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-sulphurpool-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atom-one-dark-reasonable' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atom-one-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atom-one-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/brown-paper' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/codepen-embed' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/color-brewer' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/darkula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/default-style' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/docco' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/dracula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/far' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/foundation' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/github-gist' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/github' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/gml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/googlecode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/grayscale' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/gruvbox-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/gruvbox-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/hybrid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/idea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/ir-black' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/isbl-editor-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/isbl-editor-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/kimbie.dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/kimbie.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/lightfair' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/magula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/mono-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/monokai-sublime' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/monokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/nord' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/obsidian' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/ocean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/paraiso-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/paraiso-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/qtcreator_dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/qtcreator_light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/railscasts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/rainbow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/school-book' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/shades-of-purple' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/solarized-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/solarized-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/sunburst' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night-bright' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night-eighties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/vs2015' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/xcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/xt256' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/zenburn' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/atom-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/base16-ateliersulphurpool.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/cb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/coy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-earth' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-forest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-sea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-space' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/funky' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/ghcolors' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/okaidia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/solarizedlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/twilight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/vs-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/esm/styles/prism/xonokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/highlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/1c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/abnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/accesslog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/apache' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/armasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/aspectj' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/avrasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/awk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/axapta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/bnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/cal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/capnproto' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/ceylon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/clean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/clojure-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/cmake' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/coq' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/cos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/crmsh' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/cs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/delphi' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/dns' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/dockerfile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/dos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/dsconfig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/dts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/dust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/ebnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/erlang-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/excel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/fix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/flix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/gams' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/gauss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/gcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/golo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/gradle' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/hsp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/htmlbars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/hy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/irpf90' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/jboss-cli' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/julia-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/lasso' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/ldif' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/leaf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/livecodeserver' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/llvm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/lsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/mathematica' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/maxima' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/mercury' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/mipsasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/mojolicious' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/moonscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/n1ql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/nimrod' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/openscad' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/oxygene' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/parser3' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/pf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/pony' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/profile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/qml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/rib' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/rsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/ruleslanguage' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/scilab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/shell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/smali' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/sml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/sqf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/stan' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/stata' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/step21' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/subunit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/taggerscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/tex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/thrift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/tp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/vala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/vbscript-html' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/vbscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/x86asm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/xl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/xml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/hljs/zephir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/abap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/apacheconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/apl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/arff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/asm6502' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/aspnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/batch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/bison' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/bro' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/clike' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/core' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/csharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/css-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/docker' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/eiffel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/flow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/gedcom' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/git' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/graphql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/hpkp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/hsts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/ichigojam' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/icon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/io' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/j' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/jolie' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/jsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/keyman' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/latex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/liquid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/lolcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/markup-templating' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/markup' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/n4js' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/nasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/nim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/opencl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/oz' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/parigp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/parser' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/pascal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/php-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/plsql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/properties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/pug' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/pure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/qore' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/reason' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/renpy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/rest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/rip' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/sas' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/sass' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/smarty' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/soy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/textile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/tsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/velocity' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/visual-basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/wasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/wiki' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/xeora' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/xojo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/languages/prism/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/prism-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/agate' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/androidstudio' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/arduino-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/arta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/ascetic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-cave-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-cave-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-dune-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-dune-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-estuary-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-estuary-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-forest-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-forest-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-heath-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-heath-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-lakeside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-lakeside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-plateau-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-plateau-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-savanna-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-savanna-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-seaside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-seaside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-sulphurpool-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-sulphurpool-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atom-one-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/atom-one-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/brown-paper' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/codepen-embed' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/color-brewer' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/darkula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/default-style' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/docco' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/dracula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/far' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/foundation' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/github-gist' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/github' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/googlecode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/grayscale' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/gruvbox-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/gruvbox-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/hybrid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/idea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/ir-black' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/kimbie.dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/kimbie.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/magula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/mono-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/monokai-sublime' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/monokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/obsidian' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/ocean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/paraiso-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/paraiso-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/qtcreator_dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/qtcreator_light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/railscasts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/rainbow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/school-book' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/solarized-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/solarized-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/sunburst' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/tomorrow-night-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/tomorrow-night-bright' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/tomorrow-night-eighties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/tomorrow-night' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/vs2015' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/xcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/xt256' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/hljs/zenburn' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/atom-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/base16-ateliersulphurpool.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/cb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/coy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-earth' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-forest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-sea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-space' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/funky' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/ghcolors' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/okaidia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/solarizedlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/twilight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/dist/styles/prism/xonokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/languages/prism/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/languages/prism/tt2' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/languages/prism/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/build-languages-highlightjs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/build-languages-refractor' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/build-stylesheets-highlightjs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/build-stylesheets-refractor' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/async-languages/create-language-async-loader' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/async-languages/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/async-languages/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/async-syntax-highlighter' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/create-element' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/default-highlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/highlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/1c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/abnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/accesslog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/angelscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/apache' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/arcade' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/armasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/aspectj' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/avrasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/awk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/axapta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/bnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/capnproto' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ceylon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/clean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/clojure-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cmake' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/coq' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/crmsh' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/delphi' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dns' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dockerfile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dsconfig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ebnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/erlang-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/excel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/fix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/flix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gams' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gauss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/golo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gradle' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/hsp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/htmlbars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/hy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/irpf90' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/isbl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/jboss-cli' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/julia-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lasso' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ldif' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/leaf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/livecodeserver' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/llvm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mathematica' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/maxima' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mercury' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mipsasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mojolicious' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/moonscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/n1ql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nimrod' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/openscad' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/oxygene' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/parser3' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/pf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/pgsql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/plaintext' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/pony' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/profile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/properties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/qml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/reasonml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/rib' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/rsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ruleslanguage' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sas' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scilab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/shell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/smali' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sqf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/stan' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/stata' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/step21' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/subunit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/supported-languages' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/taggerscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/thrift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vbscript-html' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vbscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/x86asm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/xl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/xml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/zephir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/abap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/apacheconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/apl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/arff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/asm6502' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/aspnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/batch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/bison' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/bro' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/clike' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/core' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/csharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/css-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/docker' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/eiffel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/flow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/gedcom' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/git' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/graphql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/hpkp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/hsts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/ichigojam' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/icon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/io' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/j' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/jolie' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/jsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/keyman' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/latex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/liquid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/lolcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/markup-templating' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/markup' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/n4js' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/nasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/nim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/opencl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/oz' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/parigp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/parser' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/pascal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/php-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/plsql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/properties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/pug' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/pure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/qore' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/reason' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/renpy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/rest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/rip' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/sas' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/sass' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/smarty' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/soy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/supported-languages' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/textile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/tsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/tt2' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/velocity' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/visual-basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/wasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/wiki' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/xeora' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/xojo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/light-async' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/prism-async-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/prism-async' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/prism-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/a11y-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/a11y-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/agate' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/an-old-hope' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/androidstudio' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/arduino-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/arta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/ascetic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-cave-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-cave-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-dune-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-dune-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-estuary-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-estuary-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-forest-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-forest-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-heath-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-heath-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-lakeside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-lakeside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-plateau-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-plateau-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-savanna-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-savanna-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-seaside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-seaside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-sulphurpool-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-sulphurpool-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atom-one-dark-reasonable' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atom-one-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atom-one-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/brown-paper' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/codepen-embed' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/color-brewer' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/darkula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/default-style' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/docco' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/dracula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/far' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/foundation' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/github-gist' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/github' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/gml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/googlecode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/grayscale' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/gruvbox-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/gruvbox-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/hybrid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/idea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/ir-black' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/isbl-editor-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/isbl-editor-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/kimbie.dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/kimbie.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/lightfair' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/magula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/mono-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/monokai-sublime' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/monokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/nord' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/obsidian' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/ocean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/paraiso-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/paraiso-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/qtcreator_dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/qtcreator_light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/railscasts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/rainbow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/school-book' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/shades-of-purple' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/solarized-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/solarized-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/sunburst' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night-bright' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night-eighties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/vs2015' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/xcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/xt256' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/zenburn' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/atom-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/base16-ateliersulphurpool.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/cb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/coy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-earth' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-forest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-sea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-space' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/funky' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/ghcolors' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/okaidia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/solarizedlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/twilight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/vs-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/vscode-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/xonokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/create-element' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/async-languages/create-language-async-loader' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/async-languages/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/async-languages/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/async-syntax-highlighter' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/create-element' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/default-highlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/highlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/1c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/abnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/accesslog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/angelscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/apache' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/arcade' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/armasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/aspectj' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/avrasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/awk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/axapta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/bnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/cal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/capnproto' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ceylon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/clean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/clojure-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/cmake' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/coq' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/cos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/crmsh' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/cs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/delphi' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dns' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dockerfile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dsconfig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ebnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/erlang-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/excel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/fix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/flix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gams' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gauss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/golo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gradle' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/hsp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/htmlbars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/hy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/irpf90' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/isbl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/jboss-cli' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/julia-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/lasso' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ldif' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/leaf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/livecodeserver' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/llvm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/lsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mathematica' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/maxima' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mercury' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mipsasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mojolicious' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/moonscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/n1ql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/nimrod' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/openscad' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/oxygene' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/parser3' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/pf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/pgsql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/plaintext' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/pony' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/profile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/properties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/qml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/reasonml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/rib' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/rsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ruleslanguage' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/sas' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/scilab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/shell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/smali' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/sml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/sqf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/stan' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/stata' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/step21' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/subunit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/supported-languages' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/taggerscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/tex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/thrift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/tp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vbscript-html' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vbscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/x86asm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/xl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/xml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/zephir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/abap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/apacheconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/apl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/arff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/asm6502' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/aspnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/batch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/bison' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/bro' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/clike' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/core' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/csharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/css-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/docker' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/eiffel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/flow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/gedcom' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/git' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/graphql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/hpkp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/hsts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/ichigojam' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/icon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/io' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/j' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/jolie' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/jsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/keyman' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/latex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/liquid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/lolcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/markup-templating' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/markup' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/n4js' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/nasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/nim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/opencl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/oz' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/parigp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/parser' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/pascal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/php-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/plsql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/properties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/pug' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/pure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/qore' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/reason' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/renpy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/rest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/rip' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/sas' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/sass' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/smarty' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/soy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/supported-languages' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/textile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/tsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/tt2' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/velocity' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/visual-basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/wasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/wiki' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/xeora' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/xojo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/light-async' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/prism-async-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/prism-async' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/prism-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/a11y-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/a11y-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/agate' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/an-old-hope' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/androidstudio' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/arduino-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/arta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/ascetic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-cave-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-cave-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-dune-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-dune-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-estuary-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-estuary-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-forest-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-forest-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-heath-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-heath-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-lakeside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-lakeside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-plateau-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-plateau-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-savanna-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-savanna-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-seaside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-seaside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-sulphurpool-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-sulphurpool-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atom-one-dark-reasonable' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atom-one-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atom-one-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/brown-paper' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/codepen-embed' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/color-brewer' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/darkula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/default-style' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/docco' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/dracula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/far' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/foundation' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/github-gist' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/github' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/gml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/googlecode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/grayscale' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/gruvbox-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/gruvbox-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/hybrid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/idea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/ir-black' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/isbl-editor-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/isbl-editor-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/kimbie.dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/kimbie.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/lightfair' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/magula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/mono-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/monokai-sublime' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/monokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/nord' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/obsidian' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/ocean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/paraiso-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/paraiso-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/qtcreator_dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/qtcreator_light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/railscasts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/rainbow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/school-book' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/shades-of-purple' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/solarized-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/solarized-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/sunburst' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night-bright' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night-eighties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/vs2015' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/xcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/xt256' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/zenburn' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/atom-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/base16-ateliersulphurpool.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/cb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/coy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-earth' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-forest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-sea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-space' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/funky' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/ghcolors' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/okaidia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/solarizedlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/twilight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/vs-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/xonokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/highlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/1c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/abnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/accesslog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/apache' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/armasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/aspectj' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/avrasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/awk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/axapta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/bnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/cal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/capnproto' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ceylon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/clean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/clojure-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/cmake' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/coq' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/cos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/crmsh' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/cs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/delphi' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dns' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dockerfile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dos' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dsconfig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ebnf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/erlang-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/excel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/fix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/flix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/gams' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/gauss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/gcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/golo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/gradle' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/hsp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/htmlbars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/hy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/irpf90' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/jboss-cli' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/julia-repl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/lasso' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ldif' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/leaf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/livecodeserver' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/llvm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/lsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mathematica' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/maxima' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mercury' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mipsasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mojolicious' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/moonscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/n1ql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/nimrod' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/openscad' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/oxygene' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/parser3' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/pf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/pony' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/profile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/qml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/rib' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/rsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ruleslanguage' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/scilab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/shell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/smali' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/sml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/sqf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/stan' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/stata' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/step21' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/subunit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/taggerscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/tap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/tex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/thrift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/tp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vbscript-html' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vbscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/x86asm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/xl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/xml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/xquery' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/zephir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/abap' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/actionscript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/ada' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/apacheconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/apl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/applescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/arduino' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/arff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/asciidoc' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/asm6502' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/aspnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/autohotkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/autoit' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/bash' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/batch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/bison' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/brainfuck' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/bro' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/c' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/clike' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/clojure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/coffeescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/core' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/cpp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/crystal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/csharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/csp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/css-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/css' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/d' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/dart' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/diff' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/django' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/docker' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/eiffel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/elixir' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/elm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/erb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/erlang' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/flow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/fortran' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/fsharp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/gedcom' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/gherkin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/git' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/glsl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/go' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/graphql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/groovy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/haml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/handlebars' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/haskell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/haxe' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/hpkp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/hsts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/http' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/ichigojam' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/icon' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/inform7' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/ini' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/io' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/j' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/java' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/javascript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/jolie' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/json' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/jsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/julia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/keyman' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/kotlin' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/latex' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/less' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/liquid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/lisp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/livescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/lolcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/lua' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/makefile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/markdown' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/markup-templating' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/markup' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/matlab' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/mel' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/mizar' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/monkey' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/n4js' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/nasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/nginx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/nim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/nix' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/nsis' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/objectivec' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/ocaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/opencl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/oz' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/parigp' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/parser' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/pascal' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/perl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/php-extras' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/php' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/plsql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/powershell' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/processing' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/prolog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/properties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/protobuf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/pug' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/puppet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/pure' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/python' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/q' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/qore' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/r' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/reason' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/renpy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/rest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/rip' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/roboconf' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/ruby' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/rust' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/sas' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/sass' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/scala' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/scheme' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/scss' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/smalltalk' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/smarty' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/soy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/sql' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/stylus' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/swift' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/tcl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/textile' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/tsx' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/twig' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/typescript' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/vbnet' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/velocity' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/verilog' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/vhdl' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/vim' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/visual-basic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/wasm' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/wiki' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/xeora' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/xojo' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/languages/prism/yaml' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/prism-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/agate' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/androidstudio' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/arduino-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/arta' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/ascetic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-cave-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-cave-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-dune-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-dune-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-estuary-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-estuary-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-forest-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-forest-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-heath-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-heath-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-lakeside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-lakeside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-plateau-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-plateau-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-savanna-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-savanna-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-seaside-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-seaside-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-sulphurpool-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-sulphurpool-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atom-one-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atom-one-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/brown-paper' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/codepen-embed' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/color-brewer' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/darkula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/default-style' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/docco' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/dracula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/far' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/foundation' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/github-gist' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/github' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/googlecode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/grayscale' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/gruvbox-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/gruvbox-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/hybrid' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/idea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/ir-black' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/kimbie.dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/kimbie.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/magula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/mono-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/monokai-sublime' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/monokai' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/obsidian' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/ocean' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/paraiso-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/paraiso-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/purebasic' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/qtcreator_dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/qtcreator_light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/railscasts' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/rainbow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/routeros' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/school-book' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/solarized-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/solarized-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/sunburst' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night-blue' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night-bright' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night-eighties' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/vs2015' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/xcode' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/xt256' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/zenburn' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/atom-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/base16-ateliersulphurpool.light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/cb' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/coy' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/darcula' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-dark' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-earth' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-forest' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-light' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-sea' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-space' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/funky' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/ghcolors' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/hopscotch' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/okaidia' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/pojoaque' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/prism' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/solarizedlight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/tomorrow' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/twilight' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/vs' { - declare module.exports: any; -} - -declare module 'react-syntax-highlighter/lib/dist/styles/prism/xonokai' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-syntax-highlighter/babel.config.js' { - declare module.exports: $Exports<'react-syntax-highlighter/babel.config'>; -} -declare module 'react-syntax-highlighter/dist/cjs/async-languages/create-language-async-loader.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/async-languages/create-language-async-loader'>; -} -declare module 'react-syntax-highlighter/dist/cjs/async-languages/hljs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/async-languages/hljs'>; -} -declare module 'react-syntax-highlighter/dist/cjs/async-languages/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/async-languages/prism'>; -} -declare module 'react-syntax-highlighter/dist/cjs/async-syntax-highlighter.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/async-syntax-highlighter'>; -} -declare module 'react-syntax-highlighter/dist/cjs/create-element.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/create-element'>; -} -declare module 'react-syntax-highlighter/dist/cjs/default-highlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/default-highlight'>; -} -declare module 'react-syntax-highlighter/dist/cjs/highlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/highlight'>; -} -declare module 'react-syntax-highlighter/dist/cjs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs'>; -} -declare module 'react-syntax-highlighter/dist/cjs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/1c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/1c'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/abnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/abnf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/accesslog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/accesslog'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/actionscript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/ada'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/angelscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/angelscript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/apache.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/apache'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/applescript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/arcade.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/arcade'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/arduino'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/armasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/armasm'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/asciidoc'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/aspectj.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/aspectj'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/autohotkey'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/autoit'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/avrasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/avrasm'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/awk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/awk'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/axapta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/axapta'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/bash'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/basic'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/bnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/bnf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/brainfuck'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/cal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/cal'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/capnproto.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/capnproto'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ceylon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/ceylon'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/clean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/clean'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/clojure-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/clojure-repl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/clojure'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/cmake.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/cmake'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/coffeescript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/coq.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/coq'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/cos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/cos'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/cpp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/crmsh.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/crmsh'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/crystal'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/cs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/cs'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/csp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/css'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/d'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/dart'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/delphi.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/delphi'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/diff'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/django'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dns.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/dns'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dockerfile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/dockerfile'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/dos'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dsconfig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/dsconfig'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/dts'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/dust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/dust'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ebnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/ebnf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/elixir'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/elm'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/erb'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/erlang-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/erlang-repl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/erlang'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/excel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/excel'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/fix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/fix'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/flix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/flix'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/fortran'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/fsharp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gams.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/gams'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gauss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/gauss'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/gcode'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/gherkin'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/glsl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/gml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/go'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/golo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/golo'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/gradle.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/gradle'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/groovy'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/haml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/handlebars'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/haskell'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/haxe'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/hsp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/hsp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/htmlbars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/htmlbars'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/http'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/hy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/hy'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/inform7'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/ini'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/irpf90.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/irpf90'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/isbl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/isbl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/java'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/javascript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/jboss-cli.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/jboss-cli'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/json'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/julia-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/julia-repl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/julia'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/kotlin'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/lasso.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/lasso'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ldif.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/ldif'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/leaf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/leaf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/less'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/lisp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/livecodeserver.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/livecodeserver'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/livescript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/llvm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/llvm'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/lsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/lsl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/lua'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/makefile'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/markdown'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mathematica.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/mathematica'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/matlab'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/maxima.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/maxima'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/mel'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mercury.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/mercury'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mipsasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/mipsasm'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/mizar'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/mojolicious.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/mojolicious'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/monkey'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/moonscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/moonscript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/n1ql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/n1ql'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/nginx'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/nimrod.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/nimrod'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/nix'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/nsis'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/objectivec'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/ocaml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/openscad.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/openscad'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/oxygene.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/oxygene'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/parser3.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/parser3'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/perl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/pf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/pf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/pgsql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/pgsql'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/php'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/plaintext.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/plaintext'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/pony.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/pony'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/powershell'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/processing'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/profile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/profile'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/prolog'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/properties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/properties'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/protobuf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/puppet'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/python'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/q'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/qml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/qml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/r'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/reasonml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/reasonml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/rib.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/rib'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/roboconf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/rsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/rsl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/ruby'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/ruleslanguage.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/ruleslanguage'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/rust'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/sas.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/sas'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/scala'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/scheme'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/scilab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/scilab'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/scss'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/shell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/shell'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/smali.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/smali'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/smalltalk'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/sml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/sml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/sqf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/sqf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/sql'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/stan.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/stan'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/stata.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/stata'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/step21.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/step21'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/stylus'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/subunit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/subunit'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/supported-languages.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/supported-languages'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/swift'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/taggerscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/taggerscript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/tap'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/tcl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/tex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/tex'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/thrift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/thrift'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/tp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/tp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/twig'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/typescript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/vala'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/vbnet'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vbscript-html.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/vbscript-html'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vbscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/vbscript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/verilog'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/vhdl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/vim'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/x86asm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/x86asm'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/xl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/xl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/xml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/xml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/xquery'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/yaml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/hljs/zephir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/hljs/zephir'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/abap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/abap'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/actionscript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/ada'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/apacheconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/apacheconf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/apl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/apl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/applescript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/arduino'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/arff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/arff'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/asciidoc'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/asm6502.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/asm6502'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/aspnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/aspnet'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/autohotkey'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/autoit'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/bash'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/basic'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/batch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/batch'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/bison.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/bison'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/brainfuck'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/bro.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/bro'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/c'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/clike.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/clike'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/clojure'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/coffeescript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/core.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/core'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/cpp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/crystal'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/csharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/csharp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/csp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/css-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/css-extras'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/css'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/d'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/dart'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/diff'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/django'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/docker.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/docker'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/eiffel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/eiffel'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/elixir'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/elm'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/erb'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/erlang'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/flow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/flow'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/fortran'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/fsharp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/gedcom.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/gedcom'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/gherkin'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/git.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/git'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/glsl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/go'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/graphql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/graphql'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/groovy'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/haml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/handlebars'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/haskell'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/haxe'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/hpkp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/hpkp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/hsts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/hsts'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/http'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/ichigojam.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/ichigojam'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/icon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/icon'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/inform7'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/ini'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/io.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/io'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/j.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/j'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/java'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/javascript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/jolie.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/jolie'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/json'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/jsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/jsx'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/julia'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/keyman.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/keyman'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/kotlin'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/latex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/latex'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/less'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/liquid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/liquid'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/lisp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/livescript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/lolcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/lolcode'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/lua'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/makefile'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/markdown'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/markup-templating.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/markup-templating'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/markup.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/markup'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/matlab'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/mel'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/mizar'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/monkey'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/n4js.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/n4js'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/nasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/nasm'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/nginx'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/nim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/nim'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/nix'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/nsis'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/objectivec'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/ocaml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/opencl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/opencl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/oz.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/oz'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/parigp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/parigp'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/parser.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/parser'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/pascal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/pascal'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/perl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/php-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/php-extras'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/php'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/plsql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/plsql'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/powershell'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/processing'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/prolog'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/properties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/properties'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/protobuf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/pug.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/pug'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/puppet'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/pure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/pure'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/python'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/q'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/qore.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/qore'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/r'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/reason.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/reason'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/renpy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/renpy'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/rest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/rest'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/rip.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/rip'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/roboconf'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/ruby'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/rust'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/sas.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/sas'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/sass.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/sass'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/scala'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/scheme'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/scss'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/smalltalk'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/smarty.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/smarty'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/soy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/soy'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/sql'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/stylus'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/supported-languages.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/supported-languages'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/swift'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/tap'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/tcl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/textile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/textile'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/tsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/tsx'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/tt2.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/tt2'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/twig'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/typescript'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/vbnet'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/velocity.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/velocity'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/verilog'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/vhdl'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/vim'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/visual-basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/visual-basic'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/wasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/wasm'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/wiki.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/wiki'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/xeora.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/xeora'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/xojo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/xojo'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/xquery'>; -} -declare module 'react-syntax-highlighter/dist/cjs/languages/prism/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/languages/prism/yaml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/light-async.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/light-async'>; -} -declare module 'react-syntax-highlighter/dist/cjs/light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/prism-async-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/prism-async-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/prism-async.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/prism-async'>; -} -declare module 'react-syntax-highlighter/dist/cjs/prism-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/prism-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/prism'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/a11y-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/a11y-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/a11y-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/a11y-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/agate.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/agate'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/an-old-hope.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/an-old-hope'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/androidstudio.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/androidstudio'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/arduino-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/arduino-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/arta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/arta'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/ascetic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/ascetic'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-cave-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-cave-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-cave-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-cave-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-dune-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-dune-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-dune-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-dune-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-estuary-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-estuary-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-estuary-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-estuary-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-forest-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-forest-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-forest-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-forest-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-heath-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-heath-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-heath-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-heath-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-lakeside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-lakeside-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-lakeside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-lakeside-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-plateau-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-plateau-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-plateau-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-plateau-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-savanna-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-savanna-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-savanna-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-savanna-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-seaside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-seaside-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-seaside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-seaside-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-sulphurpool-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-sulphurpool-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-sulphurpool-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atelier-sulphurpool-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atom-one-dark-reasonable.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atom-one-dark-reasonable'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atom-one-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atom-one-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/atom-one-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/atom-one-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/brown-paper.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/brown-paper'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/codepen-embed.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/codepen-embed'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/color-brewer.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/color-brewer'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/darcula'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/darkula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/darkula'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/default-style.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/default-style'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/docco.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/docco'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/dracula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/dracula'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/far.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/far'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/foundation.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/foundation'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/github-gist.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/github-gist'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/github.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/github'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/gml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/gml'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/googlecode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/googlecode'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/grayscale.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/grayscale'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/gruvbox-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/gruvbox-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/gruvbox-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/gruvbox-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/hopscotch'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/hybrid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/hybrid'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/idea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/idea'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/ir-black.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/ir-black'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/isbl-editor-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/isbl-editor-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/isbl-editor-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/isbl-editor-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/kimbie.dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/kimbie.dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/kimbie.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/kimbie.light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/lightfair.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/lightfair'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/magula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/magula'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/mono-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/mono-blue'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/monokai-sublime.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/monokai-sublime'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/monokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/monokai'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/nord.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/nord'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/obsidian.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/obsidian'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/ocean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/ocean'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/paraiso-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/paraiso-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/paraiso-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/paraiso-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/pojoaque'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/qtcreator_dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/qtcreator_dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/qtcreator_light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/qtcreator_light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/railscasts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/railscasts'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/rainbow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/rainbow'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/school-book.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/school-book'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/shades-of-purple.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/shades-of-purple'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/solarized-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/solarized-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/solarized-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/solarized-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/sunburst.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/sunburst'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night-blue'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night-bright.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night-bright'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night-eighties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night-eighties'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow-night'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/tomorrow'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/vs'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/vs2015.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/vs2015'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/xcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/xcode'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/xt256.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/xt256'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/hljs/zenburn.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/hljs/zenburn'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/atom-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/cb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/cb'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/coy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/coy'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/darcula'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/duotone-light'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/duotone-space'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/funky.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/funky'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/ghcolors'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/hopscotch'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/okaidia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/okaidia'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/pojoaque'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/prism'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/tomorrow'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/twilight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/twilight'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/vs-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/vs-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/vs'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/vscode-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/vscode-dark'>; -} -declare module 'react-syntax-highlighter/dist/cjs/styles/prism/xonokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/cjs/styles/prism/xonokai'>; -} -declare module 'react-syntax-highlighter/dist/create-element.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/create-element'>; -} -declare module 'react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader'>; -} -declare module 'react-syntax-highlighter/dist/esm/async-languages/hljs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/async-languages/hljs'>; -} -declare module 'react-syntax-highlighter/dist/esm/async-languages/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/async-languages/prism'>; -} -declare module 'react-syntax-highlighter/dist/esm/async-syntax-highlighter.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/async-syntax-highlighter'>; -} -declare module 'react-syntax-highlighter/dist/esm/create-element.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/create-element'>; -} -declare module 'react-syntax-highlighter/dist/esm/default-highlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/default-highlight'>; -} -declare module 'react-syntax-highlighter/dist/esm/highlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/highlight'>; -} -declare module 'react-syntax-highlighter/dist/esm/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm'>; -} -declare module 'react-syntax-highlighter/dist/esm/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/1c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/1c'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/abnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/abnf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/accesslog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/accesslog'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/actionscript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/ada'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/angelscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/angelscript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/apache.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/apache'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/applescript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/arcade.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/arcade'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/arduino'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/armasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/armasm'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/asciidoc'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/aspectj.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/aspectj'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/autohotkey'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/autoit'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/avrasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/avrasm'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/awk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/awk'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/axapta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/axapta'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/bash'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/basic'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/bnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/bnf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/brainfuck'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/cal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/cal'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/capnproto.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/capnproto'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ceylon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/ceylon'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/clean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/clean'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/clojure-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/clojure-repl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/clojure'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/cmake.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/cmake'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/coffeescript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/coq.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/coq'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/cos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/cos'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/cpp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/crmsh.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/crmsh'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/crystal'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/cs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/cs'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/csp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/css'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/d'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/dart'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/delphi.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/delphi'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/diff'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/django'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dns.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/dns'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dockerfile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/dockerfile'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/dos'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dsconfig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/dsconfig'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/dts'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/dust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/dust'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ebnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/ebnf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/elixir'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/elm'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/erb'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/erlang-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/erlang-repl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/erlang'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/excel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/excel'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/fix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/fix'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/flix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/flix'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/fortran'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/fsharp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gams.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/gams'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gauss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/gauss'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/gcode'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/gherkin'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/glsl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/gml'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/go'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/golo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/golo'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/gradle.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/gradle'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/groovy'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/haml'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/handlebars'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/haskell'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/haxe'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/hsp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/hsp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/htmlbars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/htmlbars'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/http'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/hy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/hy'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/inform7'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/ini'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/irpf90.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/irpf90'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/isbl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/isbl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/java'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/javascript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/jboss-cli.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/jboss-cli'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/json'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/julia-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/julia-repl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/julia'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/kotlin'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/lasso.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/lasso'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ldif.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/ldif'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/leaf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/leaf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/less'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/lisp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/livecodeserver.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/livecodeserver'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/livescript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/llvm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/llvm'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/lsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/lsl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/lua'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/makefile'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/markdown'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mathematica.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/mathematica'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/matlab'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/maxima.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/maxima'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/mel'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mercury.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/mercury'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mipsasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/mipsasm'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/mizar'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/mojolicious.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/mojolicious'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/monkey'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/moonscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/moonscript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/n1ql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/n1ql'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/nginx'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/nimrod.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/nimrod'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/nix'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/nsis'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/objectivec'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/ocaml'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/openscad.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/openscad'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/oxygene.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/oxygene'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/parser3.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/parser3'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/perl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/pf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/pf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/pgsql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/pgsql'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/php'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/plaintext.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/plaintext'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/pony.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/pony'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/powershell'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/processing'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/profile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/profile'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/prolog'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/properties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/properties'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/protobuf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/puppet'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/python'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/q'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/qml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/qml'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/r'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/reasonml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/reasonml'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/rib.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/rib'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/roboconf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/rsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/rsl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/ruby'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/ruleslanguage.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/ruleslanguage'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/rust'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/sas.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/sas'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/scala'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/scheme'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/scilab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/scilab'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/scss'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/shell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/shell'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/smali.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/smali'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/smalltalk'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/sml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/sml'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/sqf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/sqf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/sql'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/stan.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/stan'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/stata.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/stata'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/step21.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/step21'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/stylus'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/subunit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/subunit'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/supported-languages.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/supported-languages'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/swift'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/taggerscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/taggerscript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/tap'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/tcl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/tex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/tex'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/thrift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/thrift'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/tp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/tp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/twig'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/typescript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/vala'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/vbnet'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vbscript-html.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/vbscript-html'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vbscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/vbscript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/verilog'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/vhdl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/vim'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/x86asm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/x86asm'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/xl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/xl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/xml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/xml'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/xquery'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/yaml'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/hljs/zephir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/hljs/zephir'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/abap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/abap'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/actionscript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/ada'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/apacheconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/apacheconf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/apl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/apl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/applescript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/arduino'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/arff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/arff'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/asciidoc'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/asm6502.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/asm6502'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/aspnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/aspnet'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/autohotkey'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/autoit'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/bash'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/basic'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/batch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/batch'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/bison.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/bison'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/brainfuck'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/bro.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/bro'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/c'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/clike.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/clike'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/clojure'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/coffeescript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/core.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/core'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/cpp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/crystal'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/csharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/csharp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/csp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/css-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/css-extras'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/css'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/d'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/dart'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/diff'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/django'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/docker.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/docker'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/eiffel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/eiffel'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/elixir'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/elm'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/erb'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/erlang'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/flow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/flow'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/fortran'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/fsharp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/gedcom.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/gedcom'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/gherkin'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/git.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/git'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/glsl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/go'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/graphql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/graphql'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/groovy'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/haml'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/handlebars'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/haskell'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/haxe'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/hpkp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/hpkp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/hsts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/hsts'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/http'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/ichigojam.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/ichigojam'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/icon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/icon'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/inform7'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/ini'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/io.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/io'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/j.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/j'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/java'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/javascript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/jolie.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/jolie'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/json'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/jsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/jsx'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/julia'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/keyman.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/keyman'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/kotlin'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/latex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/latex'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/less'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/liquid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/liquid'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/lisp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/livescript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/lolcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/lolcode'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/lua'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/makefile'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/markdown'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/markup-templating.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/markup-templating'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/markup.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/markup'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/matlab'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/mel'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/mizar'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/monkey'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/n4js.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/n4js'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/nasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/nasm'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/nginx'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/nim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/nim'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/nix'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/nsis'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/objectivec'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/ocaml'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/opencl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/opencl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/oz.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/oz'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/parigp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/parigp'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/parser.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/parser'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/pascal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/pascal'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/perl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/php-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/php-extras'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/php'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/plsql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/plsql'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/powershell'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/processing'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/prolog'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/properties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/properties'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/protobuf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/pug.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/pug'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/puppet'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/pure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/pure'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/python'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/q'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/qore.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/qore'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/r'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/reason.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/reason'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/renpy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/renpy'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/rest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/rest'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/rip.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/rip'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/roboconf'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/ruby'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/rust'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/sas.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/sas'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/sass.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/sass'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/scala'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/scheme'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/scss'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/smalltalk'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/smarty.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/smarty'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/soy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/soy'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/sql'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/stylus'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/supported-languages.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/supported-languages'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/swift'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/tap'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/tcl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/textile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/textile'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/tsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/tsx'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/tt2.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/tt2'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/twig'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/typescript'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/vbnet'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/velocity.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/velocity'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/verilog'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/vhdl'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/vim'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/visual-basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/visual-basic'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/wasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/wasm'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/wiki.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/wiki'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/xeora.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/xeora'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/xojo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/xojo'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/xquery'>; -} -declare module 'react-syntax-highlighter/dist/esm/languages/prism/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/languages/prism/yaml'>; -} -declare module 'react-syntax-highlighter/dist/esm/light-async.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/light-async'>; -} -declare module 'react-syntax-highlighter/dist/esm/light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/light'>; -} -declare module 'react-syntax-highlighter/dist/esm/prism-async-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/prism-async-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/prism-async.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/prism-async'>; -} -declare module 'react-syntax-highlighter/dist/esm/prism-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/prism-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/prism'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/a11y-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/a11y-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/a11y-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/a11y-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/agate.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/agate'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/an-old-hope.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/an-old-hope'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/androidstudio.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/androidstudio'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/arduino-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/arduino-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/arta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/arta'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/ascetic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/ascetic'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-cave-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-cave-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-cave-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-cave-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-dune-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-dune-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-dune-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-dune-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-estuary-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-estuary-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-estuary-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-estuary-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-forest-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-forest-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-forest-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-forest-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-heath-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-heath-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-heath-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-heath-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-lakeside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-lakeside-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-lakeside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-lakeside-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-plateau-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-plateau-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-plateau-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-plateau-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-savanna-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-savanna-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-savanna-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-savanna-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-seaside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-seaside-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-seaside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-seaside-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-sulphurpool-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-sulphurpool-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atelier-sulphurpool-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atelier-sulphurpool-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atom-one-dark-reasonable.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atom-one-dark-reasonable'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atom-one-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atom-one-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/atom-one-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/atom-one-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/brown-paper.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/brown-paper'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/codepen-embed.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/codepen-embed'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/color-brewer.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/color-brewer'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/darcula'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/darkula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/darkula'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/default-style.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/default-style'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/docco.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/docco'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/dracula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/dracula'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/far.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/far'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/foundation.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/foundation'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/github-gist.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/github-gist'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/github.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/github'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/gml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/gml'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/googlecode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/googlecode'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/grayscale.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/grayscale'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/gruvbox-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/gruvbox-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/gruvbox-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/gruvbox-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/hopscotch'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/hybrid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/hybrid'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/idea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/idea'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/ir-black.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/ir-black'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/isbl-editor-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/isbl-editor-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/isbl-editor-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/isbl-editor-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/kimbie.dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/kimbie.dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/kimbie.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/kimbie.light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/lightfair.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/lightfair'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/magula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/magula'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/mono-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/mono-blue'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/monokai-sublime.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/monokai-sublime'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/monokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/monokai'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/nord.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/nord'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/obsidian.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/obsidian'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/ocean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/ocean'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/paraiso-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/paraiso-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/paraiso-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/paraiso-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/pojoaque'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/qtcreator_dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/qtcreator_dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/qtcreator_light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/qtcreator_light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/railscasts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/railscasts'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/rainbow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/rainbow'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/school-book.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/school-book'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/shades-of-purple.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/shades-of-purple'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/solarized-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/solarized-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/solarized-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/solarized-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/sunburst.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/sunburst'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night-blue'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night-bright.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night-bright'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night-eighties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night-eighties'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/tomorrow'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/vs'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/vs2015.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/vs2015'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/xcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/xcode'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/xt256.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/xt256'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/hljs/zenburn.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/hljs/zenburn'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/atom-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/atom-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/base16-ateliersulphurpool.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/base16-ateliersulphurpool.light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/cb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/cb'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/coy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/coy'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/darcula'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/duotone-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-earth.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/duotone-earth'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-forest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/duotone-forest'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/duotone-light'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-sea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/duotone-sea'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/duotone-space.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/duotone-space'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/funky.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/funky'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/ghcolors.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/ghcolors'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/hopscotch'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/okaidia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/okaidia'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/pojoaque'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/prism'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/solarizedlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/solarizedlight'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/tomorrow'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/twilight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/twilight'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/vs-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/vs-dark'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/vs'>; -} -declare module 'react-syntax-highlighter/dist/esm/styles/prism/xonokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/esm/styles/prism/xonokai'>; -} -declare module 'react-syntax-highlighter/dist/highlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/highlight'>; -} -declare module 'react-syntax-highlighter/dist/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist'>; -} -declare module 'react-syntax-highlighter/dist/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/1c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/1c'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/abnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/abnf'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/accesslog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/accesslog'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/actionscript'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/ada'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/apache.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/apache'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/applescript'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/arduino'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/armasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/armasm'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/asciidoc'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/aspectj.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/aspectj'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/autohotkey'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/autoit'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/avrasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/avrasm'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/awk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/awk'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/axapta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/axapta'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/bash'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/basic'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/bnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/bnf'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/brainfuck'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/cal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/cal'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/capnproto.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/capnproto'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/ceylon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/ceylon'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/clean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/clean'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/clojure-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/clojure-repl'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/clojure'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/cmake.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/cmake'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/coffeescript'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/coq.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/coq'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/cos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/cos'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/cpp'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/crmsh.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/crmsh'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/crystal'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/cs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/cs'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/csp'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/css'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/d'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/dart'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/delphi.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/delphi'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/diff'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/django'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/dns.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/dns'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/dockerfile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/dockerfile'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/dos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/dos'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/dsconfig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/dsconfig'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/dts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/dts'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/dust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/dust'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/ebnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/ebnf'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/elixir'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/elm'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/erb'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/erlang-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/erlang-repl'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/erlang'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/excel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/excel'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/fix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/fix'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/flix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/flix'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/fortran'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/fsharp'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/gams.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/gams'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/gauss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/gauss'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/gcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/gcode'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/gherkin'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/glsl'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/go'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/golo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/golo'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/gradle.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/gradle'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/groovy'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/haml'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/handlebars'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/haskell'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/haxe'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/hsp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/hsp'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/htmlbars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/htmlbars'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/http'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/hy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/hy'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/inform7'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/ini'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/irpf90.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/irpf90'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/java'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/javascript'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/jboss-cli.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/jboss-cli'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/json'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/julia-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/julia-repl'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/julia'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/kotlin'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/lasso.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/lasso'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/ldif.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/ldif'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/leaf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/leaf'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/less'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/lisp'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/livecodeserver.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/livecodeserver'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/livescript'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/llvm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/llvm'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/lsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/lsl'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/lua'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/makefile'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/markdown'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/mathematica.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/mathematica'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/matlab'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/maxima.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/maxima'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/mel'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/mercury.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/mercury'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/mipsasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/mipsasm'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/mizar'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/mojolicious.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/mojolicious'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/monkey'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/moonscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/moonscript'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/n1ql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/n1ql'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/nginx'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/nimrod.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/nimrod'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/nix'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/nsis'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/objectivec'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/ocaml'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/openscad.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/openscad'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/oxygene.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/oxygene'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/parser3.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/parser3'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/perl'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/pf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/pf'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/php'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/pony.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/pony'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/powershell'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/processing'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/profile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/profile'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/prolog'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/protobuf'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/puppet'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/python'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/q'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/qml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/qml'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/r'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/rib.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/rib'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/roboconf'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/rsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/rsl'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/ruby'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/ruleslanguage.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/ruleslanguage'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/rust'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/scala'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/scheme'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/scilab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/scilab'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/scss'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/shell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/shell'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/smali.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/smali'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/smalltalk'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/sml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/sml'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/sqf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/sqf'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/sql'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/stan.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/stan'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/stata.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/stata'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/step21.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/step21'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/stylus'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/subunit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/subunit'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/swift'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/taggerscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/taggerscript'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/tap'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/tcl'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/tex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/tex'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/thrift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/thrift'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/tp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/tp'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/twig'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/typescript'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/vala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/vala'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/vbnet'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/vbscript-html.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/vbscript-html'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/vbscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/vbscript'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/verilog'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/vhdl'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/vim'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/x86asm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/x86asm'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/xl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/xl'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/xml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/xml'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/xquery'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/yaml'>; -} -declare module 'react-syntax-highlighter/dist/languages/hljs/zephir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/hljs/zephir'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/abap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/abap'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/actionscript'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/ada'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/apacheconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/apacheconf'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/apl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/apl'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/applescript'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/arduino'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/arff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/arff'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/asciidoc'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/asm6502.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/asm6502'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/aspnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/aspnet'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/autohotkey'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/autoit'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/bash'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/basic'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/batch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/batch'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/bison.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/bison'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/brainfuck'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/bro.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/bro'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/c'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/clike.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/clike'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/clojure'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/coffeescript'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/core.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/core'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/cpp'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/crystal'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/csharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/csharp'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/csp'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/css-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/css-extras'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/css'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/d'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/dart'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/diff'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/django'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/docker.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/docker'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/eiffel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/eiffel'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/elixir'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/elm'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/erb'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/erlang'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/flow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/flow'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/fortran'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/fsharp'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/gedcom.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/gedcom'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/gherkin'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/git.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/git'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/glsl'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/go'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/graphql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/graphql'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/groovy'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/haml'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/handlebars'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/haskell'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/haxe'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/hpkp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/hpkp'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/hsts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/hsts'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/http'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/ichigojam.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/ichigojam'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/icon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/icon'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/inform7'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/ini'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/io.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/io'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/j.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/j'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/java'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/javascript'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/jolie.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/jolie'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/json'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/jsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/jsx'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/julia'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/keyman.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/keyman'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/kotlin'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/latex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/latex'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/less'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/liquid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/liquid'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/lisp'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/livescript'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/lolcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/lolcode'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/lua'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/makefile'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/markdown'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/markup-templating.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/markup-templating'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/markup.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/markup'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/matlab'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/mel'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/mizar'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/monkey'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/n4js.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/n4js'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/nasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/nasm'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/nginx'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/nim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/nim'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/nix'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/nsis'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/objectivec'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/ocaml'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/opencl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/opencl'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/oz.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/oz'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/parigp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/parigp'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/parser.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/parser'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/pascal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/pascal'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/perl'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/php-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/php-extras'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/php'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/plsql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/plsql'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/powershell'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/processing'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/prolog'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/properties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/properties'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/protobuf'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/pug.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/pug'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/puppet'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/pure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/pure'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/python'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/q'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/qore.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/qore'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/r'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/reason.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/reason'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/renpy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/renpy'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/rest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/rest'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/rip.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/rip'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/roboconf'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/ruby'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/rust'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/sas.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/sas'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/sass.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/sass'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/scala'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/scheme'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/scss'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/smalltalk'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/smarty.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/smarty'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/soy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/soy'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/sql'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/stylus'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/swift'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/tcl'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/textile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/textile'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/tsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/tsx'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/twig'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/typescript'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/vbnet'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/velocity.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/velocity'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/verilog'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/vhdl'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/vim'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/visual-basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/visual-basic'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/wasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/wasm'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/wiki.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/wiki'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/xeora.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/xeora'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/xojo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/xojo'>; -} -declare module 'react-syntax-highlighter/dist/languages/prism/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/languages/prism/yaml'>; -} -declare module 'react-syntax-highlighter/dist/light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/light'>; -} -declare module 'react-syntax-highlighter/dist/prism-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/prism-light'>; -} -declare module 'react-syntax-highlighter/dist/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/prism'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/agate.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/agate'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/androidstudio.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/androidstudio'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/arduino-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/arduino-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/arta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/arta'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/ascetic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/ascetic'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-cave-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-cave-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-cave-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-cave-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-dune-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-dune-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-dune-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-dune-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-estuary-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-estuary-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-estuary-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-estuary-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-forest-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-forest-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-forest-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-forest-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-heath-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-heath-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-heath-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-heath-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-lakeside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-lakeside-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-lakeside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-lakeside-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-plateau-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-plateau-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-plateau-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-plateau-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-savanna-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-savanna-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-savanna-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-savanna-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-seaside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-seaside-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-seaside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-seaside-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-sulphurpool-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-sulphurpool-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atelier-sulphurpool-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atelier-sulphurpool-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atom-one-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atom-one-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/atom-one-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/atom-one-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/brown-paper.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/brown-paper'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/codepen-embed.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/codepen-embed'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/color-brewer.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/color-brewer'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/darcula'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/darkula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/darkula'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/default-style.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/default-style'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/docco.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/docco'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/dracula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/dracula'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/far.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/far'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/foundation.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/foundation'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/github-gist.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/github-gist'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/github.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/github'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/googlecode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/googlecode'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/grayscale.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/grayscale'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/gruvbox-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/gruvbox-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/gruvbox-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/gruvbox-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/hopscotch'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/hybrid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/hybrid'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/idea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/idea'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/ir-black.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/ir-black'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/kimbie.dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/kimbie.dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/kimbie.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/kimbie.light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/magula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/magula'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/mono-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/mono-blue'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/monokai-sublime.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/monokai-sublime'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/monokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/monokai'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/obsidian.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/obsidian'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/ocean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/ocean'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/paraiso-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/paraiso-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/paraiso-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/paraiso-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/pojoaque'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/qtcreator_dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/qtcreator_dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/qtcreator_light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/qtcreator_light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/railscasts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/railscasts'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/rainbow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/rainbow'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/school-book.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/school-book'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/solarized-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/solarized-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/solarized-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/solarized-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/sunburst.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/sunburst'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/tomorrow-night-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/tomorrow-night-blue'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/tomorrow-night-bright.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/tomorrow-night-bright'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/tomorrow-night-eighties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/tomorrow-night-eighties'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/tomorrow-night.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/tomorrow-night'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/tomorrow'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/vs'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/vs2015.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/vs2015'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/xcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/xcode'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/xt256.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/xt256'>; -} -declare module 'react-syntax-highlighter/dist/styles/hljs/zenburn.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/hljs/zenburn'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/atom-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/atom-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/base16-ateliersulphurpool.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/base16-ateliersulphurpool.light'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/cb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/cb'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/coy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/coy'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/darcula'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/duotone-dark'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-earth.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/duotone-earth'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-forest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/duotone-forest'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/duotone-light'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-sea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/duotone-sea'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/duotone-space.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/duotone-space'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/funky.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/funky'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/ghcolors.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/ghcolors'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/hopscotch'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/okaidia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/okaidia'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/pojoaque'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/prism'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/solarizedlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/solarizedlight'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/tomorrow'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/twilight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/twilight'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/vs'>; -} -declare module 'react-syntax-highlighter/dist/styles/prism/xonokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/dist/styles/prism/xonokai'>; -} -declare module 'react-syntax-highlighter/languages/prism/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/languages/prism/tap'>; -} -declare module 'react-syntax-highlighter/languages/prism/tt2.js' { - declare module.exports: $Exports<'react-syntax-highlighter/languages/prism/tt2'>; -} -declare module 'react-syntax-highlighter/languages/prism/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/languages/prism/xquery'>; -} -declare module 'react-syntax-highlighter/lib/build-languages-highlightjs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/build-languages-highlightjs'>; -} -declare module 'react-syntax-highlighter/lib/build-languages-refractor.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/build-languages-refractor'>; -} -declare module 'react-syntax-highlighter/lib/build-stylesheets-highlightjs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/build-stylesheets-highlightjs'>; -} -declare module 'react-syntax-highlighter/lib/build-stylesheets-refractor.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/build-stylesheets-refractor'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/async-languages/create-language-async-loader.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/async-languages/create-language-async-loader'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/async-languages/hljs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/async-languages/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/async-languages/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/async-languages/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/async-syntax-highlighter.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/async-syntax-highlighter'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/create-element.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/create-element'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/default-highlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/default-highlight'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/highlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/highlight'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/1c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/1c'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/abnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/abnf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/accesslog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/accesslog'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/actionscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ada'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/angelscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/angelscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/apache.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/apache'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/applescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/arcade.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/arcade'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/arduino'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/armasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/armasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/asciidoc'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/aspectj.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/aspectj'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/autohotkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/autoit'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/avrasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/avrasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/awk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/awk'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/axapta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/axapta'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/bash'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/basic'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/bnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/bnf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/brainfuck'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cal'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/capnproto.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/capnproto'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ceylon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ceylon'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/clean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/clean'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/clojure-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/clojure-repl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/clojure'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cmake.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cmake'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/coffeescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/coq.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/coq'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cos'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cpp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/crmsh.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/crmsh'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/crystal'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/cs'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/csp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/css'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/d'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dart'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/delphi.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/delphi'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/diff'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/django'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dns.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dns'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dockerfile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dockerfile'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dos'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dsconfig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dsconfig'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dts'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/dust'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ebnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ebnf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/elixir'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/elm'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/erb'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/erlang-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/erlang-repl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/erlang'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/excel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/excel'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/fix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/fix'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/flix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/flix'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/fortran'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/fsharp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gams.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gams'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gauss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gauss'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gcode'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gherkin'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/glsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/go'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/golo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/golo'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gradle.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/gradle'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/groovy'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/haml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/handlebars'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/haskell'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/haxe'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/hsp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/hsp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/htmlbars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/htmlbars'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/http'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/hy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/hy'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/inform7'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ini'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/irpf90.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/irpf90'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/isbl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/isbl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/java'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/javascript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/jboss-cli.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/jboss-cli'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/json'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/julia-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/julia-repl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/julia'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/kotlin'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lasso.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lasso'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ldif.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ldif'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/leaf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/leaf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/less'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lisp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/livecodeserver.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/livecodeserver'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/livescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/llvm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/llvm'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/lua'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/makefile'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/markdown'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mathematica.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mathematica'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/matlab'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/maxima.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/maxima'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mel'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mercury.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mercury'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mipsasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mipsasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mizar'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mojolicious.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/mojolicious'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/monkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/moonscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/moonscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/n1ql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/n1ql'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nginx'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nimrod.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nimrod'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nix'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/nsis'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/objectivec'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ocaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/openscad.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/openscad'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/oxygene.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/oxygene'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/parser3.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/parser3'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/perl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/pf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/pf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/pgsql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/pgsql'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/php'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/plaintext.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/plaintext'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/pony.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/pony'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/powershell'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/processing'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/profile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/profile'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/prolog'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/properties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/properties'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/protobuf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/puppet'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/python'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/q'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/qml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/qml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/r'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/reasonml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/reasonml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/rib.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/rib'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/roboconf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/rsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/rsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ruby'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ruleslanguage.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/ruleslanguage'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/rust'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sas.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sas'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scala'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scheme'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scilab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scilab'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/scss'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/shell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/shell'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/smali.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/smali'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/smalltalk'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sqf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sqf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/sql'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/stan.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/stan'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/stata.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/stata'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/step21.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/step21'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/stylus'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/subunit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/subunit'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/supported-languages.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/supported-languages'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/swift'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/taggerscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/taggerscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tap'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tcl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tex'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/thrift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/thrift'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/tp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/twig'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/typescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vala'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vbnet'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vbscript-html.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vbscript-html'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vbscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vbscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/verilog'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vhdl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/vim'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/x86asm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/x86asm'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/xl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/xl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/xml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/xml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/xquery'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/yaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/hljs/zephir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/hljs/zephir'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/abap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/abap'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/actionscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/ada'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/apacheconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/apacheconf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/apl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/apl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/applescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/arduino'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/arff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/arff'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/asciidoc'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/asm6502.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/asm6502'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/aspnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/aspnet'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/autohotkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/autoit'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/bash'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/basic'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/batch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/batch'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/bison.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/bison'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/brainfuck'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/bro.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/bro'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/c'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/clike.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/clike'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/clojure'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/coffeescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/core.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/core'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/cpp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/crystal'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/csharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/csharp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/csp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/css-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/css-extras'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/css'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/d'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/dart'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/diff'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/django'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/docker.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/docker'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/eiffel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/eiffel'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/elixir'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/elm'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/erb'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/erlang'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/flow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/flow'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/fortran'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/fsharp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/gedcom.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/gedcom'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/gherkin'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/git.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/git'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/glsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/go'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/graphql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/graphql'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/groovy'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/haml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/handlebars'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/haskell'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/haxe'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/hpkp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/hpkp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/hsts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/hsts'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/http'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/ichigojam.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/ichigojam'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/icon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/icon'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/inform7'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/ini'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/io.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/io'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/j.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/j'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/java'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/javascript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/jolie.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/jolie'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/json'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/jsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/jsx'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/julia'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/keyman.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/keyman'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/kotlin'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/latex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/latex'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/less'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/liquid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/liquid'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/lisp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/livescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/lolcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/lolcode'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/lua'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/makefile'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/markdown'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/markup-templating.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/markup-templating'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/markup.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/markup'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/matlab'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/mel'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/mizar'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/monkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/n4js.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/n4js'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/nasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/nasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/nginx'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/nim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/nim'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/nix'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/nsis'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/objectivec'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/ocaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/opencl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/opencl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/oz.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/oz'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/parigp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/parigp'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/parser.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/parser'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/pascal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/pascal'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/perl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/php-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/php-extras'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/php'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/plsql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/plsql'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/powershell'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/processing'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/prolog'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/properties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/properties'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/protobuf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/pug.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/pug'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/puppet'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/pure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/pure'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/python'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/q'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/qore.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/qore'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/r'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/reason.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/reason'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/renpy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/renpy'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/rest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/rest'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/rip.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/rip'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/roboconf'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/ruby'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/rust'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/sas.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/sas'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/sass.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/sass'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/scala'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/scheme'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/scss'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/smalltalk'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/smarty.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/smarty'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/soy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/soy'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/sql'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/stylus'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/supported-languages.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/supported-languages'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/swift'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/tap'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/tcl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/textile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/textile'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/tsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/tsx'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/tt2.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/tt2'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/twig'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/typescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/vbnet'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/velocity.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/velocity'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/verilog'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/vhdl'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/vim'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/visual-basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/visual-basic'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/wasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/wasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/wiki.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/wiki'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/xeora.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/xeora'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/xojo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/xojo'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/xquery'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/languages/prism/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/languages/prism/yaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/light-async.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/light-async'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/prism-async-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/prism-async-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/prism-async.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/prism-async'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/prism-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/prism-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/a11y-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/a11y-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/a11y-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/a11y-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/agate.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/agate'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/an-old-hope.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/an-old-hope'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/androidstudio.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/androidstudio'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/arduino-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/arduino-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/arta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/arta'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/ascetic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/ascetic'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-cave-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-cave-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-cave-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-cave-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-dune-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-dune-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-dune-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-dune-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-estuary-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-estuary-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-estuary-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-estuary-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-forest-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-forest-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-forest-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-forest-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-heath-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-heath-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-heath-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-heath-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-lakeside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-lakeside-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-lakeside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-lakeside-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-plateau-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-plateau-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-plateau-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-plateau-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-savanna-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-savanna-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-savanna-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-savanna-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-seaside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-seaside-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-seaside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-seaside-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-sulphurpool-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-sulphurpool-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-sulphurpool-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atelier-sulphurpool-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atom-one-dark-reasonable.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atom-one-dark-reasonable'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atom-one-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atom-one-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atom-one-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/atom-one-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/brown-paper.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/brown-paper'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/codepen-embed.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/codepen-embed'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/color-brewer.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/color-brewer'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/darcula'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/darkula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/darkula'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/default-style.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/default-style'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/docco.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/docco'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/dracula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/dracula'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/far.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/far'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/foundation.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/foundation'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/github-gist.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/github-gist'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/github.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/github'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/gml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/gml'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/googlecode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/googlecode'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/grayscale.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/grayscale'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/gruvbox-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/gruvbox-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/gruvbox-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/gruvbox-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/hopscotch'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/hybrid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/hybrid'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/idea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/idea'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/ir-black.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/ir-black'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/isbl-editor-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/isbl-editor-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/isbl-editor-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/isbl-editor-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/kimbie.dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/kimbie.dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/kimbie.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/kimbie.light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/lightfair.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/lightfair'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/magula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/magula'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/mono-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/mono-blue'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/monokai-sublime.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/monokai-sublime'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/monokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/monokai'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/nord.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/nord'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/obsidian.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/obsidian'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/ocean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/ocean'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/paraiso-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/paraiso-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/paraiso-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/paraiso-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/pojoaque'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/qtcreator_dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/qtcreator_dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/qtcreator_light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/qtcreator_light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/railscasts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/railscasts'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/rainbow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/rainbow'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/school-book.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/school-book'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/shades-of-purple.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/shades-of-purple'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/solarized-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/solarized-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/solarized-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/solarized-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/sunburst.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/sunburst'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night-blue'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night-bright.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night-bright'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night-eighties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night-eighties'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow-night'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/tomorrow'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/vs'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/vs2015.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/vs2015'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/xcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/xcode'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/xt256.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/xt256'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/hljs/zenburn.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/hljs/zenburn'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/atom-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/atom-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/base16-ateliersulphurpool.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/base16-ateliersulphurpool.light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/cb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/cb'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/coy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/coy'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/darcula'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-earth.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-earth'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-forest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-forest'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-sea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-sea'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-space.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/duotone-space'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/funky.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/funky'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/ghcolors.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/ghcolors'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/hopscotch'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/okaidia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/okaidia'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/pojoaque'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/solarizedlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/solarizedlight'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/tomorrow'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/twilight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/twilight'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/vs-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/vs-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/vs'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/vscode-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/vscode-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/cjs/styles/prism/xonokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/cjs/styles/prism/xonokai'>; -} -declare module 'react-syntax-highlighter/lib/dist/create-element.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/create-element'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/async-languages/create-language-async-loader.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/async-languages/create-language-async-loader'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/async-languages/hljs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/async-languages/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/async-languages/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/async-languages/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/async-syntax-highlighter.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/async-syntax-highlighter'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/create-element.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/create-element'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/default-highlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/default-highlight'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/highlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/highlight'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/1c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/1c'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/abnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/abnf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/accesslog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/accesslog'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/actionscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/ada'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/angelscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/angelscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/apache.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/apache'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/applescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/arcade.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/arcade'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/arduino'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/armasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/armasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/asciidoc'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/aspectj.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/aspectj'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/autohotkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/autoit'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/avrasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/avrasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/awk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/awk'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/axapta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/axapta'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/bash'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/basic'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/bnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/bnf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/brainfuck'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/cal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/cal'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/capnproto.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/capnproto'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ceylon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/ceylon'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/clean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/clean'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/clojure-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/clojure-repl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/clojure'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/cmake.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/cmake'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/coffeescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/coq.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/coq'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/cos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/cos'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/cpp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/crmsh.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/crmsh'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/crystal'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/cs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/cs'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/csp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/css'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/d'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/dart'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/delphi.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/delphi'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/diff'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/django'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dns.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/dns'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dockerfile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/dockerfile'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/dos'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dsconfig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/dsconfig'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/dts'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/dust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/dust'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ebnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/ebnf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/elixir'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/elm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/erb'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/erlang-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/erlang-repl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/erlang'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/excel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/excel'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/fix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/fix'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/flix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/flix'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/fortran'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/fsharp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gams.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/gams'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gauss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/gauss'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/gcode'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/gherkin'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/glsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/gml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/go'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/golo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/golo'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/gradle.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/gradle'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/groovy'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/haml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/handlebars'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/haskell'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/haxe'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/hsp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/hsp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/htmlbars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/htmlbars'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/http'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/hy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/hy'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/inform7'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/ini'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/irpf90.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/irpf90'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/isbl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/isbl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/java'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/javascript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/jboss-cli.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/jboss-cli'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/json'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/julia-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/julia-repl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/julia'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/kotlin'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/lasso.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/lasso'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ldif.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/ldif'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/leaf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/leaf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/less'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/lisp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/livecodeserver.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/livecodeserver'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/livescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/llvm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/llvm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/lsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/lsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/lua'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/makefile'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/markdown'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mathematica.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/mathematica'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/matlab'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/maxima.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/maxima'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/mel'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mercury.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/mercury'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mipsasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/mipsasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/mizar'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/mojolicious.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/mojolicious'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/monkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/moonscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/moonscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/n1ql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/n1ql'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/nginx'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/nimrod.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/nimrod'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/nix'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/nsis'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/objectivec'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/ocaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/openscad.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/openscad'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/oxygene.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/oxygene'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/parser3.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/parser3'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/perl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/pf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/pf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/pgsql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/pgsql'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/php'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/plaintext.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/plaintext'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/pony.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/pony'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/powershell'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/processing'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/profile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/profile'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/prolog'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/properties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/properties'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/protobuf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/puppet'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/python'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/q'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/qml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/qml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/r'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/reasonml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/reasonml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/rib.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/rib'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/roboconf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/rsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/rsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/ruby'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/ruleslanguage.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/ruleslanguage'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/rust'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/sas.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/sas'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/scala'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/scheme'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/scilab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/scilab'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/scss'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/shell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/shell'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/smali.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/smali'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/smalltalk'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/sml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/sml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/sqf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/sqf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/sql'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/stan.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/stan'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/stata.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/stata'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/step21.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/step21'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/stylus'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/subunit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/subunit'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/supported-languages.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/supported-languages'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/swift'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/taggerscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/taggerscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/tap'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/tcl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/tex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/tex'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/thrift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/thrift'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/tp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/tp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/twig'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/typescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/vala'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/vbnet'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vbscript-html.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/vbscript-html'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vbscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/vbscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/verilog'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/vhdl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/vim'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/x86asm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/x86asm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/xl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/xl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/xml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/xml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/xquery'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/yaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/hljs/zephir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/hljs/zephir'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/abap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/abap'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/actionscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/ada'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/apacheconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/apacheconf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/apl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/apl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/applescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/arduino'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/arff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/arff'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/asciidoc'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/asm6502.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/asm6502'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/aspnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/aspnet'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/autohotkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/autoit'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/bash'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/basic'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/batch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/batch'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/bison.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/bison'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/brainfuck'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/bro.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/bro'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/c'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/clike.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/clike'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/clojure'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/coffeescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/core.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/core'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/cpp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/crystal'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/csharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/csharp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/csp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/css-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/css-extras'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/css'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/d'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/dart'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/diff'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/django'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/docker.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/docker'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/eiffel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/eiffel'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/elixir'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/elm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/erb'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/erlang'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/flow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/flow'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/fortran'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/fsharp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/gedcom.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/gedcom'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/gherkin'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/git.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/git'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/glsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/go'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/graphql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/graphql'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/groovy'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/haml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/handlebars'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/haskell'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/haxe'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/hpkp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/hpkp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/hsts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/hsts'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/http'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/ichigojam.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/ichigojam'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/icon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/icon'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/inform7'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/ini'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/io.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/io'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/j.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/j'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/java'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/javascript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/jolie.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/jolie'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/json'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/jsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/jsx'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/julia'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/keyman.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/keyman'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/kotlin'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/latex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/latex'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/less'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/liquid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/liquid'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/lisp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/livescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/lolcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/lolcode'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/lua'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/makefile'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/markdown'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/markup-templating.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/markup-templating'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/markup.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/markup'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/matlab'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/mel'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/mizar'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/monkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/n4js.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/n4js'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/nasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/nasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/nginx'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/nim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/nim'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/nix'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/nsis'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/objectivec'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/ocaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/opencl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/opencl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/oz.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/oz'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/parigp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/parigp'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/parser.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/parser'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/pascal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/pascal'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/perl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/php-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/php-extras'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/php'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/plsql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/plsql'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/powershell'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/processing'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/prolog'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/properties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/properties'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/protobuf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/pug.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/pug'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/puppet'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/pure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/pure'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/python'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/q'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/qore.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/qore'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/r'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/reason.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/reason'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/renpy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/renpy'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/rest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/rest'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/rip.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/rip'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/roboconf'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/ruby'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/rust'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/sas.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/sas'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/sass.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/sass'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/scala'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/scheme'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/scss'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/smalltalk'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/smarty.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/smarty'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/soy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/soy'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/sql'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/stylus'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/supported-languages.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/supported-languages'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/swift'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/tap'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/tcl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/textile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/textile'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/tsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/tsx'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/tt2.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/tt2'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/twig'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/typescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/vbnet'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/velocity.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/velocity'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/verilog'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/vhdl'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/vim'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/visual-basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/visual-basic'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/wasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/wasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/wiki.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/wiki'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/xeora.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/xeora'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/xojo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/xojo'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/xquery'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/languages/prism/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/languages/prism/yaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/light-async.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/light-async'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/prism-async-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/prism-async-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/prism-async.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/prism-async'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/prism-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/prism-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/a11y-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/a11y-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/a11y-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/a11y-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/agate.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/agate'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/an-old-hope.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/an-old-hope'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/androidstudio.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/androidstudio'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/arduino-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/arduino-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/arta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/arta'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/ascetic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/ascetic'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-cave-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-cave-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-cave-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-cave-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-dune-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-dune-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-dune-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-dune-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-estuary-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-estuary-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-estuary-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-estuary-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-forest-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-forest-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-forest-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-forest-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-heath-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-heath-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-heath-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-heath-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-lakeside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-lakeside-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-lakeside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-lakeside-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-plateau-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-plateau-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-plateau-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-plateau-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-savanna-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-savanna-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-savanna-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-savanna-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-seaside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-seaside-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-seaside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-seaside-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-sulphurpool-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-sulphurpool-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-sulphurpool-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atelier-sulphurpool-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atom-one-dark-reasonable.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atom-one-dark-reasonable'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atom-one-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atom-one-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/atom-one-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/atom-one-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/brown-paper.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/brown-paper'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/codepen-embed.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/codepen-embed'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/color-brewer.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/color-brewer'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/darcula'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/darkula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/darkula'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/default-style.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/default-style'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/docco.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/docco'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/dracula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/dracula'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/far.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/far'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/foundation.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/foundation'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/github-gist.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/github-gist'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/github.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/github'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/gml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/gml'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/googlecode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/googlecode'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/grayscale.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/grayscale'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/gruvbox-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/gruvbox-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/gruvbox-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/gruvbox-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/hopscotch'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/hybrid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/hybrid'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/idea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/idea'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/ir-black.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/ir-black'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/isbl-editor-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/isbl-editor-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/isbl-editor-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/isbl-editor-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/kimbie.dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/kimbie.dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/kimbie.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/kimbie.light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/lightfair.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/lightfair'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/magula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/magula'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/mono-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/mono-blue'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/monokai-sublime.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/monokai-sublime'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/monokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/monokai'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/nord.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/nord'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/obsidian.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/obsidian'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/ocean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/ocean'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/paraiso-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/paraiso-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/paraiso-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/paraiso-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/pojoaque'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/qtcreator_dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/qtcreator_dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/qtcreator_light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/qtcreator_light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/railscasts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/railscasts'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/rainbow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/rainbow'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/school-book.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/school-book'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/shades-of-purple.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/shades-of-purple'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/solarized-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/solarized-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/solarized-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/solarized-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/sunburst.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/sunburst'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night-blue'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night-bright.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night-bright'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night-eighties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night-eighties'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow-night'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/tomorrow'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/vs'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/vs2015.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/vs2015'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/xcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/xcode'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/xt256.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/xt256'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/hljs/zenburn.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/hljs/zenburn'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/atom-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/atom-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/base16-ateliersulphurpool.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/base16-ateliersulphurpool.light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/cb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/cb'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/coy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/coy'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/darcula'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-earth.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-earth'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-forest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-forest'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-sea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-sea'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-space.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/duotone-space'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/funky.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/funky'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/ghcolors.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/ghcolors'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/hopscotch'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/okaidia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/okaidia'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/pojoaque'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/solarizedlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/solarizedlight'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/tomorrow'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/twilight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/twilight'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/vs-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/vs-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/vs'>; -} -declare module 'react-syntax-highlighter/lib/dist/esm/styles/prism/xonokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/esm/styles/prism/xonokai'>; -} -declare module 'react-syntax-highlighter/lib/dist/highlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/highlight'>; -} -declare module 'react-syntax-highlighter/lib/dist/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist'>; -} -declare module 'react-syntax-highlighter/lib/dist/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/1c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/1c'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/abnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/abnf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/accesslog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/accesslog'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/actionscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/ada'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/apache.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/apache'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/applescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/arduino'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/armasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/armasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/asciidoc'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/aspectj.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/aspectj'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/autohotkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/autoit'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/avrasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/avrasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/awk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/awk'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/axapta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/axapta'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/bash'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/basic'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/bnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/bnf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/brainfuck'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/cal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/cal'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/capnproto.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/capnproto'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ceylon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/ceylon'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/clean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/clean'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/clojure-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/clojure-repl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/clojure'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/cmake.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/cmake'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/coffeescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/coq.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/coq'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/cos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/cos'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/cpp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/crmsh.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/crmsh'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/crystal'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/cs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/cs'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/csp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/css'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/d'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/dart'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/delphi.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/delphi'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/diff'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/django'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dns.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/dns'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dockerfile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/dockerfile'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dos.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/dos'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dsconfig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/dsconfig'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/dts'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/dust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/dust'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ebnf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/ebnf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/elixir'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/elm'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/erb'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/erlang-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/erlang-repl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/erlang'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/excel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/excel'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/fix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/fix'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/flix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/flix'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/fortran'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/fsharp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/gams.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/gams'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/gauss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/gauss'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/gcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/gcode'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/gherkin'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/glsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/go'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/golo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/golo'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/gradle.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/gradle'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/groovy'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/haml'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/handlebars'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/haskell'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/haxe'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/hsp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/hsp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/htmlbars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/htmlbars'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/http'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/hy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/hy'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/inform7'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/ini'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/irpf90.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/irpf90'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/java'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/javascript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/jboss-cli.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/jboss-cli'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/json'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/julia-repl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/julia-repl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/julia'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/kotlin'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/lasso.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/lasso'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ldif.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/ldif'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/leaf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/leaf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/less'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/lisp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/livecodeserver.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/livecodeserver'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/livescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/llvm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/llvm'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/lsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/lsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/lua'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/makefile'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/markdown'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mathematica.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/mathematica'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/matlab'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/maxima.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/maxima'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/mel'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mercury.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/mercury'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mipsasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/mipsasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/mizar'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/mojolicious.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/mojolicious'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/monkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/moonscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/moonscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/n1ql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/n1ql'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/nginx'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/nimrod.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/nimrod'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/nix'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/nsis'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/objectivec'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/ocaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/openscad.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/openscad'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/oxygene.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/oxygene'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/parser3.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/parser3'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/perl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/pf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/pf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/php'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/pony.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/pony'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/powershell'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/processing'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/profile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/profile'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/prolog'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/protobuf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/puppet'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/python'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/q'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/qml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/qml'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/r'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/rib.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/rib'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/roboconf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/rsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/rsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/ruby'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/ruleslanguage.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/ruleslanguage'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/rust'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/scala'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/scheme'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/scilab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/scilab'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/scss'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/shell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/shell'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/smali.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/smali'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/smalltalk'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/sml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/sml'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/sqf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/sqf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/sql'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/stan.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/stan'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/stata.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/stata'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/step21.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/step21'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/stylus'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/subunit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/subunit'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/swift'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/taggerscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/taggerscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/tap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/tap'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/tcl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/tex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/tex'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/thrift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/thrift'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/tp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/tp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/twig'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/typescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/vala'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/vbnet'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vbscript-html.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/vbscript-html'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vbscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/vbscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/verilog'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/vhdl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/vim'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/x86asm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/x86asm'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/xl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/xl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/xml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/xml'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/xquery.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/xquery'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/yaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/hljs/zephir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/hljs/zephir'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/abap.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/abap'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/actionscript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/actionscript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/ada.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/ada'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/apacheconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/apacheconf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/apl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/apl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/applescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/applescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/arduino.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/arduino'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/arff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/arff'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/asciidoc.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/asciidoc'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/asm6502.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/asm6502'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/aspnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/aspnet'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/autohotkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/autohotkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/autoit.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/autoit'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/bash.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/bash'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/basic'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/batch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/batch'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/bison.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/bison'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/brainfuck.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/brainfuck'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/bro.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/bro'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/c.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/c'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/clike.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/clike'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/clojure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/clojure'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/coffeescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/coffeescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/core.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/core'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/cpp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/cpp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/crystal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/crystal'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/csharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/csharp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/csp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/csp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/css-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/css-extras'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/css.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/css'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/d.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/d'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/dart.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/dart'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/diff.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/diff'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/django.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/django'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/docker.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/docker'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/eiffel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/eiffel'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/elixir.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/elixir'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/elm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/elm'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/erb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/erb'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/erlang.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/erlang'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/flow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/flow'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/fortran.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/fortran'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/fsharp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/fsharp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/gedcom.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/gedcom'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/gherkin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/gherkin'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/git.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/git'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/glsl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/glsl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/go.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/go'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/graphql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/graphql'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/groovy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/groovy'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/haml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/haml'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/handlebars.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/handlebars'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/haskell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/haskell'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/haxe.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/haxe'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/hpkp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/hpkp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/hsts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/hsts'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/http.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/http'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/ichigojam.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/ichigojam'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/icon.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/icon'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/inform7.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/inform7'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/ini.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/ini'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/io.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/io'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/j.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/j'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/java.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/java'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/javascript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/javascript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/jolie.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/jolie'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/json.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/json'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/jsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/jsx'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/julia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/julia'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/keyman.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/keyman'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/kotlin.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/kotlin'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/latex.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/latex'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/less.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/less'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/liquid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/liquid'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/lisp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/lisp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/livescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/livescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/lolcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/lolcode'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/lua.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/lua'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/makefile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/makefile'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/markdown.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/markdown'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/markup-templating.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/markup-templating'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/markup.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/markup'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/matlab.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/matlab'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/mel.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/mel'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/mizar.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/mizar'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/monkey.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/monkey'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/n4js.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/n4js'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/nasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/nasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/nginx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/nginx'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/nim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/nim'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/nix.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/nix'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/nsis.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/nsis'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/objectivec.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/objectivec'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/ocaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/ocaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/opencl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/opencl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/oz.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/oz'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/parigp.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/parigp'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/parser.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/parser'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/pascal.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/pascal'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/perl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/perl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/php-extras.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/php-extras'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/php.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/php'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/plsql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/plsql'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/powershell.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/powershell'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/processing.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/processing'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/prolog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/prolog'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/properties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/properties'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/protobuf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/protobuf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/pug.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/pug'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/puppet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/puppet'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/pure.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/pure'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/python.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/python'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/q.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/q'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/qore.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/qore'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/r.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/r'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/reason.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/reason'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/renpy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/renpy'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/rest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/rest'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/rip.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/rip'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/roboconf.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/roboconf'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/ruby.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/ruby'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/rust.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/rust'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/sas.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/sas'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/sass.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/sass'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/scala.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/scala'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/scheme.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/scheme'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/scss.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/scss'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/smalltalk.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/smalltalk'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/smarty.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/smarty'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/soy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/soy'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/sql.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/sql'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/stylus.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/stylus'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/swift.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/swift'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/tcl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/tcl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/textile.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/textile'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/tsx.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/tsx'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/twig.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/twig'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/typescript.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/typescript'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/vbnet.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/vbnet'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/velocity.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/velocity'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/verilog.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/verilog'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/vhdl.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/vhdl'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/vim.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/vim'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/visual-basic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/visual-basic'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/wasm.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/wasm'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/wiki.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/wiki'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/xeora.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/xeora'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/xojo.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/xojo'>; -} -declare module 'react-syntax-highlighter/lib/dist/languages/prism/yaml.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/languages/prism/yaml'>; -} -declare module 'react-syntax-highlighter/lib/dist/light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/light'>; -} -declare module 'react-syntax-highlighter/lib/dist/prism-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/prism-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/agate.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/agate'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/androidstudio.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/androidstudio'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/arduino-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/arduino-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/arta.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/arta'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/ascetic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/ascetic'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-cave-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-cave-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-cave-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-cave-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-dune-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-dune-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-dune-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-dune-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-estuary-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-estuary-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-estuary-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-estuary-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-forest-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-forest-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-forest-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-forest-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-heath-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-heath-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-heath-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-heath-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-lakeside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-lakeside-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-lakeside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-lakeside-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-plateau-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-plateau-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-plateau-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-plateau-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-savanna-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-savanna-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-savanna-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-savanna-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-seaside-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-seaside-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-seaside-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-seaside-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-sulphurpool-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-sulphurpool-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atelier-sulphurpool-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atelier-sulphurpool-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atom-one-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atom-one-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/atom-one-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/atom-one-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/brown-paper.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/brown-paper'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/codepen-embed.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/codepen-embed'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/color-brewer.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/color-brewer'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/darcula'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/darkula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/darkula'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/default-style.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/default-style'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/docco.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/docco'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/dracula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/dracula'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/far.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/far'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/foundation.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/foundation'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/github-gist.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/github-gist'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/github.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/github'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/googlecode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/googlecode'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/grayscale.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/grayscale'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/gruvbox-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/gruvbox-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/gruvbox-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/gruvbox-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/hopscotch'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/hybrid.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/hybrid'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/idea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/idea'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/ir-black.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/ir-black'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/kimbie.dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/kimbie.dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/kimbie.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/kimbie.light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/magula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/magula'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/mono-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/mono-blue'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/monokai-sublime.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/monokai-sublime'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/monokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/monokai'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/obsidian.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/obsidian'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/ocean.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/ocean'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/paraiso-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/paraiso-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/paraiso-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/paraiso-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/pojoaque'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/purebasic.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/purebasic'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/qtcreator_dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/qtcreator_dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/qtcreator_light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/qtcreator_light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/railscasts.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/railscasts'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/rainbow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/rainbow'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/routeros.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/routeros'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/school-book.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/school-book'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/solarized-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/solarized-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/solarized-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/solarized-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/sunburst.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/sunburst'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night-blue.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night-blue'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night-bright.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night-bright'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night-eighties.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night-eighties'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow-night'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/tomorrow'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/vs'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/vs2015.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/vs2015'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/xcode.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/xcode'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/xt256.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/xt256'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/hljs/zenburn.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/hljs/zenburn'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/atom-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/atom-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/base16-ateliersulphurpool.light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/base16-ateliersulphurpool.light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/cb.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/cb'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/coy.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/coy'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/darcula.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/darcula'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-dark.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/duotone-dark'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-earth.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/duotone-earth'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-forest.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/duotone-forest'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-light.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/duotone-light'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-sea.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/duotone-sea'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/duotone-space.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/duotone-space'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/funky.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/funky'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/ghcolors.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/ghcolors'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/hopscotch.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/hopscotch'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/index' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/index.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/okaidia.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/okaidia'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/pojoaque.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/pojoaque'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/prism.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/prism'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/solarizedlight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/solarizedlight'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/tomorrow.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/tomorrow'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/twilight.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/twilight'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/vs.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/vs'>; -} -declare module 'react-syntax-highlighter/lib/dist/styles/prism/xonokai.js' { - declare module.exports: $Exports<'react-syntax-highlighter/lib/dist/styles/prism/xonokai'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/redux-mock-store_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/redux-mock-store_vx.x.x.js deleted file mode 100644 index ffa803fc5d..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/redux-mock-store_vx.x.x.js +++ /dev/null @@ -1,52 +0,0 @@ -// flow-typed signature: bfde320a1fcb9c4e387bc5bee5186189 -// flow-typed version: <>/redux-mock-store_v1.5.3/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'redux-mock-store' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'redux-mock-store' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'redux-mock-store/lib' { - declare module.exports: any; -} - -declare module 'redux-mock-store/test' { - declare module.exports: any; -} - -declare module 'redux-mock-store/test/mock/middleware' { - declare module.exports: any; -} - -// Filename aliases -declare module 'redux-mock-store/lib/index' { - declare module.exports: $Exports<'redux-mock-store/lib'>; -} -declare module 'redux-mock-store/lib/index.js' { - declare module.exports: $Exports<'redux-mock-store/lib'>; -} -declare module 'redux-mock-store/test/index' { - declare module.exports: $Exports<'redux-mock-store/test'>; -} -declare module 'redux-mock-store/test/index.js' { - declare module.exports: $Exports<'redux-mock-store/test'>; -} -declare module 'redux-mock-store/test/mock/middleware.js' { - declare module.exports: $Exports<'redux-mock-store/test/mock/middleware'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/redux-thunk_vx.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/redux-thunk_vx.x.x.js deleted file mode 100644 index db3ae03794..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/redux-thunk_vx.x.x.js +++ /dev/null @@ -1,69 +0,0 @@ -// flow-typed signature: 2dd998b0c8ef2beb4cf28fc074992c98 -// flow-typed version: <>/redux-thunk_v2.3.0/flow_v0.109.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'redux-thunk' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'redux-thunk' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'redux-thunk/dist/redux-thunk' { - declare module.exports: any; -} - -declare module 'redux-thunk/dist/redux-thunk.min' { - declare module.exports: any; -} - -declare module 'redux-thunk/es' { - declare module.exports: any; -} - -declare module 'redux-thunk/lib' { - declare module.exports: any; -} - -declare module 'redux-thunk/src' { - declare module.exports: any; -} - -// Filename aliases -declare module 'redux-thunk/dist/redux-thunk.js' { - declare module.exports: $Exports<'redux-thunk/dist/redux-thunk'>; -} -declare module 'redux-thunk/dist/redux-thunk.min.js' { - declare module.exports: $Exports<'redux-thunk/dist/redux-thunk.min'>; -} -declare module 'redux-thunk/es/index' { - declare module.exports: $Exports<'redux-thunk/es'>; -} -declare module 'redux-thunk/es/index.js' { - declare module.exports: $Exports<'redux-thunk/es'>; -} -declare module 'redux-thunk/lib/index' { - declare module.exports: $Exports<'redux-thunk/lib'>; -} -declare module 'redux-thunk/lib/index.js' { - declare module.exports: $Exports<'redux-thunk/lib'>; -} -declare module 'redux-thunk/src/index' { - declare module.exports: $Exports<'redux-thunk/src'>; -} -declare module 'redux-thunk/src/index.js' { - declare module.exports: $Exports<'redux-thunk/src'>; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/redux_v4.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/redux_v4.x.x.js deleted file mode 100644 index 4ba5f34b51..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/redux_v4.x.x.js +++ /dev/null @@ -1,99 +0,0 @@ -// flow-typed signature: f62df6dbce399d55b0f2954c5ac1bd4e -// flow-typed version: c6154227d1/redux_v4.x.x/flow_>=v0.104.x - -declare module 'redux' { - /* - - S = State - A = Action - D = Dispatch - - */ - - declare export type Action = { type: T, ... } - - declare export type DispatchAPI = (action: A) => A; - - declare export type Dispatch = DispatchAPI; - - declare export type MiddlewareAPI> = { - dispatch: D, - getState(): S, - ... - }; - - declare export type Store> = { - // rewrite MiddlewareAPI members in order to get nicer error messages (intersections produce long messages) - dispatch: D, - getState(): S, - subscribe(listener: () => void): () => void, - replaceReducer(nextReducer: Reducer): void, - ... - }; - - declare export type Reducer = (state: S | void, action: A) => S; - - declare export type CombinedReducer = ( - state: ($Shape & {...}) | void, - action: A - ) => S; - - declare export type Middleware> = ( - api: MiddlewareAPI - ) => (next: D) => D; - - declare export type StoreCreator> = { - (reducer: Reducer, enhancer?: StoreEnhancer): Store, - ( - reducer: Reducer, - preloadedState: S, - enhancer?: StoreEnhancer - ): Store, - ... - }; - - declare export type StoreEnhancer> = ( - next: StoreCreator - ) => StoreCreator; - - declare export function createStore( - reducer: Reducer, - enhancer?: StoreEnhancer - ): Store; - declare export function createStore( - reducer: Reducer, - preloadedState?: S, - enhancer?: StoreEnhancer - ): Store; - - declare export function applyMiddleware( - ...middlewares: Array> - ): StoreEnhancer; - - declare export type ActionCreator = (...args: Array) => A; - declare export type ActionCreators = { [key: K]: ActionCreator, ... }; - - declare export function bindActionCreators< - A, - C: ActionCreator, - D: DispatchAPI - >( - actionCreator: C, - dispatch: D - ): C; - declare export function bindActionCreators< - A, - K, - C: ActionCreators, - D: DispatchAPI - >( - actionCreators: C, - dispatch: D - ): C; - - declare export function combineReducers( - reducers: O - ): CombinedReducer<$ObjMap(r: Reducer) => S>, A>; - - declare export var compose: $Compose; -} diff --git a/scm-ui/ui-webapp/flow-typed/npm/styled-components_v4.x.x.js b/scm-ui/ui-webapp/flow-typed/npm/styled-components_v4.x.x.js deleted file mode 100644 index c0f85a0aeb..0000000000 --- a/scm-ui/ui-webapp/flow-typed/npm/styled-components_v4.x.x.js +++ /dev/null @@ -1,484 +0,0 @@ -// flow-typed signature: a55c22479779e4f28ad4dd10c702882a -// flow-typed version: a29423bb31/styled-components_v4.x.x/flow_>=v0.104.x - -// @flow - -declare module 'styled-components' { - declare type BuiltinElementInstances = { - a: React$ElementRef<'a'>, - abbr: React$ElementRef<'abbr'>, - address: React$ElementRef<'address'>, - area: React$ElementRef<'area'>, - article: React$ElementRef<'article'>, - aside: React$ElementRef<'aside'>, - audio: React$ElementRef<'audio'>, - b: React$ElementRef<'b'>, - base: React$ElementRef<'base'>, - bdi: React$ElementRef<'bdi'>, - bdo: React$ElementRef<'bdo'>, - big: React$ElementRef<'big'>, - blockquote: React$ElementRef<'blockquote'>, - body: React$ElementRef<'body'>, - br: React$ElementRef<'br'>, - button: React$ElementRef<'button'>, - canvas: React$ElementRef<'canvas'>, - caption: React$ElementRef<'caption'>, - cite: React$ElementRef<'cite'>, - code: React$ElementRef<'code'>, - col: React$ElementRef<'col'>, - colgroup: React$ElementRef<'colgroup'>, - data: React$ElementRef<'data'>, - datalist: React$ElementRef<'datalist'>, - dd: React$ElementRef<'dd'>, - del: React$ElementRef<'del'>, - details: React$ElementRef<'details'>, - dfn: React$ElementRef<'dfn'>, - dialog: React$ElementRef<'dialog'>, - div: React$ElementRef<'div'>, - dl: React$ElementRef<'dl'>, - dt: React$ElementRef<'dt'>, - em: React$ElementRef<'em'>, - embed: React$ElementRef<'embed'>, - fieldset: React$ElementRef<'fieldset'>, - figcaption: React$ElementRef<'figcaption'>, - figure: React$ElementRef<'figure'>, - footer: React$ElementRef<'footer'>, - form: React$ElementRef<'form'>, - h1: React$ElementRef<'h1'>, - h2: React$ElementRef<'h2'>, - h3: React$ElementRef<'h3'>, - h4: React$ElementRef<'h4'>, - h5: React$ElementRef<'h5'>, - h6: React$ElementRef<'h6'>, - head: React$ElementRef<'head'>, - header: React$ElementRef<'header'>, - hgroup: React$ElementRef<'hgroup'>, - hr: React$ElementRef<'hr'>, - html: React$ElementRef<'html'>, - i: React$ElementRef<'i'>, - iframe: React$ElementRef<'iframe'>, - img: React$ElementRef<'img'>, - input: React$ElementRef<'input'>, - ins: React$ElementRef<'ins'>, - kbd: React$ElementRef<'kbd'>, - label: React$ElementRef<'label'>, - legend: React$ElementRef<'legend'>, - li: React$ElementRef<'li'>, - link: React$ElementRef<'link'>, - main: React$ElementRef<'main'>, - map: React$ElementRef<'map'>, - mark: React$ElementRef<'mark'>, - menu: React$ElementRef<'menu'>, - meta: React$ElementRef<'meta'>, - meter: React$ElementRef<'meter'>, - nav: React$ElementRef<'nav'>, - noscript: React$ElementRef<'noscript'>, - object: React$ElementRef<'object'>, - ol: React$ElementRef<'ol'>, - optgroup: React$ElementRef<'optgroup'>, - option: React$ElementRef<'option'>, - output: React$ElementRef<'output'>, - p: React$ElementRef<'p'>, - param: React$ElementRef<'param'>, - picture: React$ElementRef<'picture'>, - pre: React$ElementRef<'pre'>, - progress: React$ElementRef<'progress'>, - q: React$ElementRef<'q'>, - rp: React$ElementRef<'rp'>, - rt: React$ElementRef<'rt'>, - ruby: React$ElementRef<'ruby'>, - s: React$ElementRef<'s'>, - samp: React$ElementRef<'samp'>, - script: React$ElementRef<'script'>, - section: React$ElementRef<'section'>, - select: React$ElementRef<'select'>, - small: React$ElementRef<'small'>, - source: React$ElementRef<'source'>, - span: React$ElementRef<'span'>, - strong: React$ElementRef<'strong'>, - style: React$ElementRef<'style'>, - sub: React$ElementRef<'sub'>, - summary: React$ElementRef<'summary'>, - sup: React$ElementRef<'sup'>, - table: React$ElementRef<'table'>, - tbody: React$ElementRef<'tbody'>, - td: React$ElementRef<'td'>, - textarea: React$ElementRef<'textarea'>, - tfoot: React$ElementRef<'tfoot'>, - th: React$ElementRef<'th'>, - thead: React$ElementRef<'thead'>, - time: React$ElementRef<'time'>, - title: React$ElementRef<'title'>, - tr: React$ElementRef<'tr'>, - track: React$ElementRef<'track'>, - u: React$ElementRef<'u'>, - ul: React$ElementRef<'ul'>, - var: React$ElementRef<'var'>, - video: React$ElementRef<'video'>, - wbr: React$ElementRef<'wbr'>, - // SVG - circle: React$ElementRef<'circle'>, - clipPath: React$ElementRef<'clipPath'>, - defs: React$ElementRef<'defs'>, - ellipse: React$ElementRef<'ellipse'>, - g: React$ElementRef<'g'>, - image: React$ElementRef<'image'>, - line: React$ElementRef<'line'>, - linearGradient: React$ElementRef<'linearGradient'>, - mask: React$ElementRef<'mask'>, - path: React$ElementRef<'path'>, - pattern: React$ElementRef<'pattern'>, - polygon: React$ElementRef<'polygon'>, - polyline: React$ElementRef<'polyline'>, - radialGradient: React$ElementRef<'radialGradient'>, - rect: React$ElementRef<'rect'>, - stop: React$ElementRef<'stop'>, - svg: React$ElementRef<'svg'>, - text: React$ElementRef<'text'>, - tspan: React$ElementRef<'tspan'>, - // Deprecated, should be HTMLUnknownElement, but Flow doesn't support it - keygen: React$ElementRef<'keygen'>, - menuitem: React$ElementRef<'menuitem'>, - ... - } - - declare type BuiltinElementType = $ElementType - - declare class InterpolatableComponent

extends React$Component

{ - static +styledComponentId: string; - } - - declare export type Interpolation

= - | ((executionContext: P) => - | ((executionContext: P) => InterpolationBase) - | InterpolationBase - ) - | Class> - | InterpolationBase - - declare export type InterpolationBase = - | CSSRules - | KeyFrames - | string - | number - - - // Should this be `mixed` perhaps? - declare export type CSSRules = Interpolation[] // eslint-disable-line flowtype/no-weak-types - - // This is not exported on purpose, since it's an implementation detail - declare type TaggedTemplateLiteral = (strings: string[], ...interpolations: Interpolation[]) => R - - declare export type CSSConstructor = TaggedTemplateLiteral // eslint-disable-line flowtype/no-weak-types - declare export type KeyFramesConstructor = TaggedTemplateLiteral // eslint-disable-line flowtype/no-weak-types - declare export type CreateGlobalStyleConstructor = TaggedTemplateLiteral> // eslint-disable-line flowtype/no-weak-types - - declare interface Tag { - styleTag: HTMLStyleElement | null; - getIds(): string[]; - hasNameForId(id: string, name: string): boolean; - insertMarker(id: string): T; - insertRules(id: string, cssRules: string[], name: ?string): void; - removeRules(id: string): void; - css(): string; - toHTML(additionalAttrs: ?string): string; - toElement(): React$Element<*>; - clone(): Tag; - sealed: boolean; - } - - // The `any`/weak types in here all come from `styled-components` directly, since those definitions were just copied over - declare export class StyleSheet { - static get master() : StyleSheet; - static get instance() : StyleSheet; - static reset(forceServer? : boolean) : void; - - id : number; - forceServer : boolean; - target : ?HTMLElement; - tagMap : { [string]: Tag, ... }; // eslint-disable-line flowtype/no-weak-types - deferred: { [string]: string[] | void, ... }; - rehydratedNames: { [string]: boolean, ... }; - ignoreRehydratedNames: { [string]: boolean, ... }; - tags: Tag[]; // eslint-disable-line flowtype/no-weak-types - importRuleTag: Tag; // eslint-disable-line flowtype/no-weak-types - capacity: number; - clones: StyleSheet[]; - - constructor(?HTMLElement) : this; - rehydrate() : this; - clone() : StyleSheet; - sealAllTags() : void; - makeTag(tag : ?Tag) : Tag; // eslint-disable-line flowtype/no-weak-types - getImportRuleTag() : Tag; // eslint-disable-line flowtype/no-weak-types - getTagForId(id : string): Tag; // eslint-disable-line flowtype/no-weak-types - hasId(id: string) : boolean; - hasNameForId(id: string, name: string) : boolean; - deferredInject(id : string, cssRules : string[]) : void; - inject(id: string, cssRules : string[], name? : string) : void; - remove(id : string) : void; - toHtml() : string; - toReactElements() : React$ElementType[]; - } - - declare export class KeyFrames { - id : string; - name : string; - rules : string[]; - - constructor(name : string, rules : string[]) : this; - inject(StyleSheet) : void; - toString() : string; - getName() : string; - } - - // I think any is appropriate here? - // eslint-disable-next-line flowtype/no-weak-types - declare export var css : CSSConstructor; - declare export var keyframes : KeyFramesConstructor; - declare export var createGlobalStyle : CreateGlobalStyleConstructor - declare export var ThemeProvider: React$ComponentType<{ - children?: ?React$Node, - theme: mixed | (mixed) => mixed, - ... - }> - - declare type ThemeProps = {| - theme: T - |} - - declare type PropsWithTheme = {| - ...ThemeProps, - ...$Exact - |} - - declare export function withTheme(Component: React$AbstractComponent): React$AbstractComponent<$Diff>, Instance> - - declare export type StyledComponent = React$AbstractComponent & Class> - - declare type StyledFactory = {| - [[call]]: TaggedTemplateLiteral, StyledComponent>; - +attrs: (((StyleProps) => A) | A) => TaggedTemplateLiteral< - PropsWithTheme<{|...$Exact, ...$Exact|}, Theme>, - StyledComponent, ...$Exact|}, $Exact>, Theme, Instance> - >; - |} - - declare type StyledShorthandFactory = {| - [[call]]: (string[], ...Interpolation>[]) => StyledComponent; - +attrs: (((StyleProps) => A) | A) => TaggedTemplateLiteral< - PropsWithTheme<{|...$Exact, ...$Exact|}, Theme>, - StyledComponent, ...$Exact|}, $Exact>, Theme, V> - >; - |} - - - declare type ConvenientShorthands = $ObjMap< - BuiltinElementInstances, - (V) => StyledShorthandFactory - > - - declare interface Styled { - >(ElementName): StyledFactory>; - , Theme, OwnProps = React$ElementConfig>(Comp): StyledFactory<{|...$Exact|}, Theme, Comp>; - } - - declare export default Styled & ConvenientShorthands -} - - -declare module 'styled-components/native' { - - declare class InterpolatableComponent

extends React$Component

{ - static +styledComponentId: string; - } - - declare export type Interpolation

= - | ((executionContext: P) => - | ((executionContext: P) => InterpolationBase) // eslint-disable-line flowtype/no-weak-types - | InterpolationBase - ) - | Class> - | InterpolationBase - - declare export type InterpolationBase = - | CSSRules - | KeyFrames - | string - | number - - // Should this be `mixed` perhaps? - declare export type CSSRules = Interpolation[] // eslint-disable-line flowtype/no-weak-types - - // This is not exported on purpose, since it's an implementation detail - declare type TaggedTemplateLiteral = (strings: string[], ...interpolations: Interpolation[]) => R - - declare export type CSSConstructor = TaggedTemplateLiteral // eslint-disable-line flowtype/no-weak-types - declare export type KeyFramesConstructor = TaggedTemplateLiteral // eslint-disable-line flowtype/no-weak-types - declare export type CreateGlobalStyleConstructor = TaggedTemplateLiteral> // eslint-disable-line flowtype/no-weak-types - - declare interface Tag { - styleTag: HTMLStyleElement | null; - getIds(): string[]; - hasNameForId(id: string, name: string): boolean; - insertMarker(id: string): T; - insertRules(id: string, cssRules: string[], name: ?string): void; - removeRules(id: string): void; - css(): string; - toHTML(additionalAttrs: ?string): string; - toElement(): React$Element<*>; - clone(): Tag; - sealed: boolean; - } - - // The `any`/weak types in here all come from `styled-components` directly, since those definitions were just copied over - declare export class StyleSheet { - static get master() : StyleSheet; - static get instance() : StyleSheet; - static reset(forceServer? : boolean) : void; - - id : number; - forceServer : boolean; - target : ?HTMLElement; - tagMap : { [string]: Tag, ... }; // eslint-disable-line flowtype/no-weak-types - deferred: { [string]: string[] | void, ... }; - rehydratedNames: { [string]: boolean, ... }; - ignoreRehydratedNames: { [string]: boolean, ... }; - tags: Tag[]; // eslint-disable-line flowtype/no-weak-types - importRuleTag: Tag; // eslint-disable-line flowtype/no-weak-types - capacity: number; - clones: StyleSheet[]; - - constructor(?HTMLElement) : this; - rehydrate() : this; - clone() : StyleSheet; - sealAllTags() : void; - makeTag(tag : ?Tag) : Tag; // eslint-disable-line flowtype/no-weak-types - getImportRuleTag() : Tag; // eslint-disable-line flowtype/no-weak-types - getTagForId(id : string): Tag; // eslint-disable-line flowtype/no-weak-types - hasId(id: string) : boolean; - hasNameForId(id: string, name: string) : boolean; - deferredInject(id : string, cssRules : string[]) : void; - inject(id: string, cssRules : string[], name? : string) : void; - remove(id : string) : void; - toHtml() : string; - toReactElements() : React$ElementType[]; - } - - declare export class KeyFrames { - id : string; - name : string; - rules : string[]; - - constructor(name : string, rules : string[]) : this; - inject(StyleSheet) : void; - toString() : string; - getName() : string; - } - - // I think any is appropriate here? - // eslint-disable-next-line flowtype/no-weak-types - declare export var css : CSSConstructor; - declare export var keyframes : KeyFramesConstructor; - declare export var createGlobalStyle : CreateGlobalStyleConstructor - declare export var ThemeProvider: React$ComponentType<{ - children?: ?React$Node, - theme: mixed | (mixed) => mixed, - ... - }> - - declare type ThemeProps = {| - theme: T - |} - - declare type PropsWithTheme = {| - ...ThemeProps, - ...$Exact - |} - - declare export function withTheme(Component: React$AbstractComponent): React$AbstractComponent<$Diff>, Instance> - - declare export type StyledComponent = React$AbstractComponent & Class> - - declare type StyledFactory = {| - [[call]]: TaggedTemplateLiteral, StyledComponent>; - +attrs: (((StyleProps) => A) | A) => TaggedTemplateLiteral< - PropsWithTheme<{|...$Exact, ...$Exact|}, Theme>, - StyledComponent, ...$Exact|}, $Exact>, Theme, Instance> - >; - |} - - declare type StyledShorthandFactory = {| - [[call]]: (string[], ...Interpolation>[]) => StyledComponent; - +attrs: (((StyleProps) => A) | A) => TaggedTemplateLiteral< - PropsWithTheme<{|...$Exact, ...$Exact|}, Theme>, - StyledComponent, ...$Exact|}, $Exact>, Theme, V> - >; - |} - - declare type BuiltinElementInstances = { - ActivityIndicator: React$ComponentType<{...}>, - ActivityIndicatorIOS: React$ComponentType<{...}>, - ART: React$ComponentType<{...}>, - Button: React$ComponentType<{...}>, - DatePickerIOS: React$ComponentType<{...}>, - DrawerLayoutAndroid: React$ComponentType<{...}>, - Image: React$ComponentType<{...}>, - ImageBackground: React$ComponentType<{...}>, - ImageEditor: React$ComponentType<{...}>, - ImageStore: React$ComponentType<{...}>, - KeyboardAvoidingView: React$ComponentType<{...}>, - ListView: React$ComponentType<{...}>, - MapView: React$ComponentType<{...}>, - Modal: React$ComponentType<{...}>, - NavigatorIOS: React$ComponentType<{...}>, - Picker: React$ComponentType<{...}>, - PickerIOS: React$ComponentType<{...}>, - ProgressBarAndroid: React$ComponentType<{...}>, - ProgressViewIOS: React$ComponentType<{...}>, - ScrollView: React$ComponentType<{...}>, - SegmentedControlIOS: React$ComponentType<{...}>, - Slider: React$ComponentType<{...}>, - SliderIOS: React$ComponentType<{...}>, - SnapshotViewIOS: React$ComponentType<{...}>, - Switch: React$ComponentType<{...}>, - RecyclerViewBackedScrollView: React$ComponentType<{...}>, - RefreshControl: React$ComponentType<{...}>, - SafeAreaView: React$ComponentType<{...}>, - StatusBar: React$ComponentType<{...}>, - SwipeableListView: React$ComponentType<{...}>, - SwitchAndroid: React$ComponentType<{...}>, - SwitchIOS: React$ComponentType<{...}>, - TabBarIOS: React$ComponentType<{...}>, - Text: React$ComponentType<{...}>, - TextInput: React$ComponentType<{...}>, - ToastAndroid: React$ComponentType<{...}>, - ToolbarAndroid: React$ComponentType<{...}>, - Touchable: React$ComponentType<{...}>, - TouchableHighlight: React$ComponentType<{...}>, - TouchableNativeFeedback: React$ComponentType<{...}>, - TouchableOpacity: React$ComponentType<{...}>, - TouchableWithoutFeedback: React$ComponentType<{...}>, - View: React$ComponentType<{...}>, - ViewPagerAndroid: React$ComponentType<{...}>, - WebView: React$ComponentType<{...}>, - FlatList: React$ComponentType<{...}>, - SectionList: React$ComponentType<{...}>, - VirtualizedList: React$ComponentType<{...}>, - ... - } - - declare type BuiltinElementType = $ElementType - - declare type ConvenientShorthands = $ObjMap< - BuiltinElementInstances, - (V) => StyledShorthandFactory - > - - declare interface Styled { - >(ElementName): StyledFactory>; - , Theme, OwnProps = React$ElementConfig>(Comp): StyledFactory<{|...$Exact|}, Theme, Comp>; - } - - declare export default Styled & ConvenientShorthands -} diff --git a/scm-ui/ui-webapp/src/admin/components/form/BaseUrlSettings.tsx b/scm-ui/ui-webapp/src/admin/components/form/BaseUrlSettings.tsx index d455aeb9a8..0042f863fd 100644 --- a/scm-ui/ui-webapp/src/admin/components/form/BaseUrlSettings.tsx +++ b/scm-ui/ui-webapp/src/admin/components/form/BaseUrlSettings.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Checkbox, InputField, Subtitle } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { Checkbox, InputField, Subtitle } from "@scm-manager/ui-components"; type Props = { baseUrl: string; @@ -16,24 +16,24 @@ class BaseUrlSettings extends React.Component { return (

- +
@@ -42,11 +42,11 @@ class BaseUrlSettings extends React.Component { } handleBaseUrlChange = (value: string) => { - this.props.onChange(true, value, 'baseUrl'); + this.props.onChange(true, value, "baseUrl"); }; handleForceBaseUrlChange = (value: boolean) => { - this.props.onChange(true, value, 'forceBaseUrl'); + this.props.onChange(true, value, "forceBaseUrl"); }; } -export default translate('config')(BaseUrlSettings); +export default translate("config")(BaseUrlSettings); diff --git a/scm-ui/ui-webapp/src/admin/components/form/ConfigForm.tsx b/scm-ui/ui-webapp/src/admin/components/form/ConfigForm.tsx index 8cf52e1354..3bd5a67bc1 100644 --- a/scm-ui/ui-webapp/src/admin/components/form/ConfigForm.tsx +++ b/scm-ui/ui-webapp/src/admin/components/form/ConfigForm.tsx @@ -1,11 +1,11 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { SubmitButton, Notification } from '@scm-manager/ui-components'; -import { NamespaceStrategies, Config } from '@scm-manager/ui-types'; -import ProxySettings from './ProxySettings'; -import GeneralSettings from './GeneralSettings'; -import BaseUrlSettings from './BaseUrlSettings'; -import LoginAttempt from './LoginAttempt'; +import React from "react"; +import { translate } from "react-i18next"; +import { SubmitButton, Notification } from "@scm-manager/ui-components"; +import { NamespaceStrategies, Config } from "@scm-manager/ui-types"; +import ProxySettings from "./ProxySettings"; +import GeneralSettings from "./GeneralSettings"; +import BaseUrlSettings from "./BaseUrlSettings"; +import LoginAttempt from "./LoginAttempt"; type Props = { submitForm: (p: Config) => void; @@ -36,31 +36,31 @@ class ConfigForm extends React.Component { config: { proxyPassword: null, proxyPort: 0, - proxyServer: '', + proxyServer: "", proxyUser: null, enableProxy: false, - realmDescription: '', + realmDescription: "", disableGroupingGrid: false, - dateFormat: '', + dateFormat: "", anonymousAccessEnabled: false, - baseUrl: '', + baseUrl: "", forceBaseUrl: false, loginAttemptLimit: 0, proxyExcludes: [], skipFailedAuthenticators: false, - pluginUrl: '', + pluginUrl: "", loginAttemptLimitTimeout: 0, enabledXsrfProtection: true, - namespaceStrategy: '', - loginInfoUrl: '', - _links: {}, + namespaceStrategy: "", + loginInfoUrl: "", + _links: {} }, showNotification: false, error: { loginAttemptLimitTimeout: false, - loginAttemptLimit: false, + loginAttemptLimit: false }, - changed: false, + changed: false }; } @@ -70,14 +70,14 @@ class ConfigForm extends React.Component { this.setState({ ...this.state, config: { - ...config, - }, + ...config + } }); } if (!configUpdatePermission) { this.setState({ ...this.state, - showNotification: true, + showNotification: true }); } } @@ -85,7 +85,7 @@ class ConfigForm extends React.Component { submit = (event: Event) => { event.preventDefault(); this.setState({ - changed: false, + changed: false }); this.props.submitForm(this.state.config); }; @@ -96,7 +96,7 @@ class ConfigForm extends React.Component { t, namespaceStrategies, configReadPermission, - configUpdatePermission, + configUpdatePermission } = this.props; const config = this.state.config; @@ -105,8 +105,8 @@ class ConfigForm extends React.Component { if (!configReadPermission) { return ( ); } @@ -114,8 +114,8 @@ class ConfigForm extends React.Component { if (this.state.showNotification) { noPermissionNotification = ( this.onClose()} /> ); @@ -160,10 +160,10 @@ class ConfigForm extends React.Component { />
@@ -174,7 +174,7 @@ class ConfigForm extends React.Component {
{ ...this.state, config: { ...this.state.config, - [name]: changedValue, + [name]: changedValue }, error: { ...this.state.error, - [name]: !isValid, + [name]: !isValid }, - changed: true, + changed: true }); }; @@ -208,9 +208,9 @@ class ConfigForm extends React.Component { onClose = () => { this.setState({ ...this.state, - showNotification: false, + showNotification: false }); }; } -export default translate('config')(ConfigForm); +export default translate("config")(ConfigForm); diff --git a/scm-ui/ui-webapp/src/admin/components/form/GeneralSettings.tsx b/scm-ui/ui-webapp/src/admin/components/form/GeneralSettings.tsx index bc19e50ac2..fe9d6191d4 100644 --- a/scm-ui/ui-webapp/src/admin/components/form/GeneralSettings.tsx +++ b/scm-ui/ui-webapp/src/admin/components/form/GeneralSettings.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Checkbox, InputField } from '@scm-manager/ui-components'; -import { NamespaceStrategies } from '@scm-manager/ui-types'; -import NamespaceStrategySelect from './NamespaceStrategySelect'; +import React from "react"; +import { translate } from "react-i18next"; +import { Checkbox, InputField } from "@scm-manager/ui-components"; +import { NamespaceStrategies } from "@scm-manager/ui-types"; +import NamespaceStrategySelect from "./NamespaceStrategySelect"; type Props = { realmDescription: string; @@ -32,7 +32,7 @@ class GeneralSettings extends React.Component { anonymousAccessEnabled, namespaceStrategy, hasUpdatePermission, - namespaceStrategies, + namespaceStrategies } = this.props; return ( @@ -40,61 +40,61 @@ class GeneralSettings extends React.Component {
@@ -103,23 +103,23 @@ class GeneralSettings extends React.Component { } handleLoginInfoUrlChange = (value: string) => { - this.props.onChange(true, value, 'loginInfoUrl'); + this.props.onChange(true, value, "loginInfoUrl"); }; handleRealmDescriptionChange = (value: string) => { - this.props.onChange(true, value, 'realmDescription'); + this.props.onChange(true, value, "realmDescription"); }; handleEnabledXsrfProtectionChange = (value: boolean) => { - this.props.onChange(true, value, 'enabledXsrfProtection'); + this.props.onChange(true, value, "enabledXsrfProtection"); }; handleEnableAnonymousAccess = (value: boolean) => { - this.props.onChange(true, value, 'anonymousAccessEnabled'); + this.props.onChange(true, value, "anonymousAccessEnabled"); }; handleNamespaceStrategyChange = (value: string) => { - this.props.onChange(true, value, 'namespaceStrategy'); + this.props.onChange(true, value, "namespaceStrategy"); }; handlePluginCenterUrlChange = (value: string) => { - this.props.onChange(true, value, 'pluginUrl'); + this.props.onChange(true, value, "pluginUrl"); }; } -export default translate('config')(GeneralSettings); +export default translate("config")(GeneralSettings); diff --git a/scm-ui/ui-webapp/src/admin/components/form/LoginAttempt.tsx b/scm-ui/ui-webapp/src/admin/components/form/LoginAttempt.tsx index ba982ee518..9c56a7b7fb 100644 --- a/scm-ui/ui-webapp/src/admin/components/form/LoginAttempt.tsx +++ b/scm-ui/ui-webapp/src/admin/components/form/LoginAttempt.tsx @@ -1,10 +1,10 @@ -import React from 'react'; -import { translate } from 'react-i18next'; +import React from "react"; +import { translate } from "react-i18next"; import { InputField, Subtitle, - validation as validator, -} from '@scm-manager/ui-components'; + validation as validator +} from "@scm-manager/ui-components"; type Props = { loginAttemptLimit: number; @@ -25,7 +25,7 @@ class LoginAttempt extends React.Component { this.state = { loginAttemptLimitError: false, - loginAttemptLimitTimeoutError: false, + loginAttemptLimitTimeoutError: false }; } render() { @@ -33,33 +33,33 @@ class LoginAttempt extends React.Component { t, loginAttemptLimit, loginAttemptLimitTimeout, - hasUpdatePermission, + hasUpdatePermission } = this.props; return (
- +
@@ -71,26 +71,26 @@ class LoginAttempt extends React.Component { handleLoginAttemptLimitChange = (value: string) => { this.setState({ ...this.state, - loginAttemptLimitError: !validator.isNumberValid(value), + loginAttemptLimitError: !validator.isNumberValid(value) }); this.props.onChange( validator.isNumberValid(value), value, - 'loginAttemptLimit', + "loginAttemptLimit" ); }; handleLoginAttemptLimitTimeoutChange = (value: string) => { this.setState({ ...this.state, - loginAttemptLimitTimeoutError: !validator.isNumberValid(value), + loginAttemptLimitTimeoutError: !validator.isNumberValid(value) }); this.props.onChange( validator.isNumberValid(value), value, - 'loginAttemptLimitTimeout', + "loginAttemptLimitTimeout" ); }; } -export default translate('config')(LoginAttempt); +export default translate("config")(LoginAttempt); diff --git a/scm-ui/ui-webapp/src/admin/components/form/NamespaceStrategySelect.tsx b/scm-ui/ui-webapp/src/admin/components/form/NamespaceStrategySelect.tsx index d63b1b3b9d..221a7f3ec3 100644 --- a/scm-ui/ui-webapp/src/admin/components/form/NamespaceStrategySelect.tsx +++ b/scm-ui/ui-webapp/src/admin/components/form/NamespaceStrategySelect.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate, TFunction } from 'react-i18next'; -import { Select } from '@scm-manager/ui-components'; -import { NamespaceStrategies } from '@scm-manager/ui-types'; +import React from "react"; +import { translate, TFunction } from "react-i18next"; +import { Select } from "@scm-manager/ui-components"; +import { NamespaceStrategies } from "@scm-manager/ui-types"; type Props = { namespaceStrategies: NamespaceStrategies; @@ -23,14 +23,14 @@ class NamespaceStrategySelect extends React.Component { } return available.map(ns => { - const key = 'namespaceStrategies.' + ns; + const key = "namespaceStrategies." + ns; let label = t(key); if (label === key) { label = ns; } return { value: ns, - label: label, + label: label }; }); }; @@ -63,4 +63,4 @@ class NamespaceStrategySelect extends React.Component { } } -export default translate('plugins')(NamespaceStrategySelect); +export default translate("plugins")(NamespaceStrategySelect); diff --git a/scm-ui/ui-webapp/src/admin/components/form/ProxySettings.tsx b/scm-ui/ui-webapp/src/admin/components/form/ProxySettings.tsx index df6df13849..2d8ac642d2 100644 --- a/scm-ui/ui-webapp/src/admin/components/form/ProxySettings.tsx +++ b/scm-ui/ui-webapp/src/admin/components/form/ProxySettings.tsx @@ -1,12 +1,12 @@ -import React from 'react'; -import { translate } from 'react-i18next'; +import React from "react"; +import { translate } from "react-i18next"; import { Checkbox, InputField, Subtitle, - AddEntryToTableField, -} from '@scm-manager/ui-components'; -import ProxyExcludesTable from '../table/ProxyExcludesTable'; + AddEntryToTableField +} from "@scm-manager/ui-components"; +import ProxyExcludesTable from "../table/ProxyExcludesTable"; type Props = { proxyPassword: string; @@ -30,61 +30,61 @@ class ProxySettings extends React.Component { proxyUser, enableProxy, proxyExcludes, - hasUpdatePermission, + hasUpdatePermission } = this.props; return (
- +
@@ -100,9 +100,9 @@ class ProxySettings extends React.Component {
@@ -111,19 +111,19 @@ class ProxySettings extends React.Component { } handleProxyPasswordChange = (value: string) => { - this.props.onChange(true, value, 'proxyPassword'); + this.props.onChange(true, value, "proxyPassword"); }; handleProxyPortChange = (value: string) => { - this.props.onChange(true, value, 'proxyPort'); + this.props.onChange(true, value, "proxyPort"); }; handleProxyServerChange = (value: string) => { - this.props.onChange(true, value, 'proxyServer'); + this.props.onChange(true, value, "proxyServer"); }; handleProxyUserChange = (value: string) => { - this.props.onChange(true, value, 'proxyUser'); + this.props.onChange(true, value, "proxyUser"); }; handleEnableProxyChange = (value: string) => { - this.props.onChange(true, value, 'enableProxy'); + this.props.onChange(true, value, "enableProxy"); }; addProxyExclude = (proxyExcludeName: string) => { @@ -133,7 +133,7 @@ class ProxySettings extends React.Component { this.props.onChange( true, [...this.props.proxyExcludes, proxyExcludeName], - 'proxyExcludes', + "proxyExcludes" ); }; @@ -142,4 +142,4 @@ class ProxySettings extends React.Component { }; } -export default translate('config')(ProxySettings); +export default translate("config")(ProxySettings); diff --git a/scm-ui/ui-webapp/src/admin/components/table/ArrayConfigTable.tsx b/scm-ui/ui-webapp/src/admin/components/table/ArrayConfigTable.tsx index 86bde1d0f8..ec11901705 100644 --- a/scm-ui/ui-webapp/src/admin/components/table/ArrayConfigTable.tsx +++ b/scm-ui/ui-webapp/src/admin/components/table/ArrayConfigTable.tsx @@ -1,8 +1,8 @@ -import React from 'react'; +import React from "react"; import { RemoveEntryOfTableButton, - LabelWithHelpIcon, -} from '@scm-manager/ui-components'; + LabelWithHelpIcon +} from "@scm-manager/ui-components"; type Props = { items: string[]; diff --git a/scm-ui/ui-webapp/src/admin/components/table/ProxyExcludesTable.tsx b/scm-ui/ui-webapp/src/admin/components/table/ProxyExcludesTable.tsx index 10aed45420..a934ef8a15 100644 --- a/scm-ui/ui-webapp/src/admin/components/table/ProxyExcludesTable.tsx +++ b/scm-ui/ui-webapp/src/admin/components/table/ProxyExcludesTable.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import ArrayConfigTable from './ArrayConfigTable'; +import React from "react"; +import { translate } from "react-i18next"; +import ArrayConfigTable from "./ArrayConfigTable"; type Props = { proxyExcludes: string[]; @@ -17,18 +17,18 @@ class ProxyExcludesTable extends React.Component { return ( ); } removeEntry = (newExcludes: string[]) => { - this.props.onChange(true, newExcludes, 'proxyExcludes'); + this.props.onChange(true, newExcludes, "proxyExcludes"); }; } -export default translate('config')(ProxyExcludesTable); +export default translate("config")(ProxyExcludesTable); diff --git a/scm-ui/ui-webapp/src/admin/containers/Admin.tsx b/scm-ui/ui-webapp/src/admin/containers/Admin.tsx index 555dd8f2c1..e103fe0582 100644 --- a/scm-ui/ui-webapp/src/admin/containers/Admin.tsx +++ b/scm-ui/ui-webapp/src/admin/containers/Admin.tsx @@ -1,29 +1,29 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Redirect, Route, Switch } from 'react-router-dom'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; -import { History } from 'history'; -import { connect } from 'react-redux'; -import { compose } from 'redux'; -import { Links } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import { Redirect, Route, Switch } from "react-router-dom"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import { History } from "history"; +import { connect } from "react-redux"; +import { compose } from "redux"; +import { Links } from "@scm-manager/ui-types"; import { Page, Navigation, NavLink, Section, - SubNavigation, -} from '@scm-manager/ui-components'; + SubNavigation +} from "@scm-manager/ui-components"; import { getLinks, getAvailablePluginsLink, - getInstalledPluginsLink, -} from '../../modules/indexResource'; -import AdminDetails from './AdminDetails'; -import PluginsOverview from '../plugins/containers/PluginsOverview'; -import GlobalConfig from './GlobalConfig'; -import RepositoryRoles from '../roles/containers/RepositoryRoles'; -import SingleRepositoryRole from '../roles/containers/SingleRepositoryRole'; -import CreateRepositoryRole from '../roles/containers/CreateRepositoryRole'; + getInstalledPluginsLink +} from "../../modules/indexResource"; +import AdminDetails from "./AdminDetails"; +import PluginsOverview from "../plugins/containers/PluginsOverview"; +import GlobalConfig from "./GlobalConfig"; +import RepositoryRoles from "../roles/containers/RepositoryRoles"; +import SingleRepositoryRole from "../roles/containers/SingleRepositoryRole"; +import CreateRepositoryRole from "../roles/containers/CreateRepositoryRole"; type Props = { links: Links; @@ -38,8 +38,8 @@ type Props = { class Admin extends React.Component { stripEndingSlash = (url: string) => { - if (url.endsWith('/')) { - if (url.includes('role')) { + if (url.endsWith("/")) { + if (url.includes("role")) { return url.substring(0, url.length - 2); } return url.substring(0, url.length - 1); @@ -63,7 +63,7 @@ class Admin extends React.Component { const url = this.matchedUrl(); const extensionProps = { links, - url, + url }; return ( @@ -157,28 +157,28 @@ class Admin extends React.Component {
-
+
{(availablePluginsLink || installedPluginsLink) && ( {installedPluginsLink && ( )} {availablePluginsLink && ( )} @@ -186,7 +186,7 @@ class Admin extends React.Component { @@ -197,11 +197,11 @@ class Admin extends React.Component { /> { return { links, availablePluginsLink, - installedPluginsLink, + installedPluginsLink }; }; export default compose( connect(mapStateToProps), - translate('admin'), + translate("admin") )(Admin); diff --git a/scm-ui/ui-webapp/src/admin/containers/AdminDetails.tsx b/scm-ui/ui-webapp/src/admin/containers/AdminDetails.tsx index affa47656d..8c661ec58a 100644 --- a/scm-ui/ui-webapp/src/admin/containers/AdminDetails.tsx +++ b/scm-ui/ui-webapp/src/admin/containers/AdminDetails.tsx @@ -1,9 +1,9 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import styled from 'styled-components'; -import { Image, Loading, Subtitle, Title } from '@scm-manager/ui-components'; -import { getAppVersion } from '../../modules/indexResource'; +import React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import styled from "styled-components"; +import { Image, Loading, Subtitle, Title } from "@scm-manager/ui-components"; +import { getAppVersion } from "../../modules/indexResource"; type Props = { loading: boolean; @@ -33,28 +33,28 @@ class AdminDetails extends React.Component { return ( <> - + <Title title={t("admin.info.currentAppVersion")} /> <Subtitle subtitle={this.props.version} /> <BoxShadowBox className="box"> <article className="media"> <ImageWrapper className="media-left"> <Image src="/images/iconCommunitySupport.png" - alt={t('admin.info.communityIconAlt')} + alt={t("admin.info.communityIconAlt")} /> </ImageWrapper> <div className="media-content"> <div className="content"> <h3 className="has-text-weight-medium"> - {t('admin.info.communityTitle')} + {t("admin.info.communityTitle")} </h3> - <p>{t('admin.info.communityInfo')}</p> + <p>{t("admin.info.communityInfo")}</p> <a className="button is-info is-pulled-right" target="_blank" href="https://scm-manager.org/support/" > - {t('admin.info.communityButton')} + {t("admin.info.communityButton")} </a> </div> </div> @@ -65,25 +65,25 @@ class AdminDetails extends React.Component<Props> { <ImageWrapper className="media-left"> <Image src="/images/iconEnterpriseSupport.png" - alt={t('admin.info.enterpriseIconAlt')} + alt={t("admin.info.enterpriseIconAlt")} /> </ImageWrapper> <div className="media-content"> <div className="content"> <h3 className="has-text-weight-medium"> - {t('admin.info.enterpriseTitle')} + {t("admin.info.enterpriseTitle")} </h3> <p> - {t('admin.info.enterpriseInfo')} + {t("admin.info.enterpriseInfo")} <br /> - <strong>{t('admin.info.enterprisePartner')}</strong> + <strong>{t("admin.info.enterprisePartner")}</strong> </p> <a className="button is-info is-pulled-right is-normal" target="_blank" - href={t('admin.info.enterpriseLink')} + href={t("admin.info.enterpriseLink")} > - {t('admin.info.enterpriseButton')} + {t("admin.info.enterpriseButton")} </a> </div> </div> @@ -97,8 +97,8 @@ class AdminDetails extends React.Component<Props> { const mapStateToProps = (state: any) => { const version = getAppVersion(state); return { - version, + version }; }; -export default connect(mapStateToProps)(translate('admin')(AdminDetails)); +export default connect(mapStateToProps)(translate("admin")(AdminDetails)); diff --git a/scm-ui/ui-webapp/src/admin/containers/GlobalConfig.tsx b/scm-ui/ui-webapp/src/admin/containers/GlobalConfig.tsx index 485197a3bf..c690b62ab5 100644 --- a/scm-ui/ui-webapp/src/admin/containers/GlobalConfig.tsx +++ b/scm-ui/ui-webapp/src/admin/containers/GlobalConfig.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Title, Loading, ErrorNotification } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { Title, Loading, ErrorNotification } from "@scm-manager/ui-components"; import { fetchConfig, getFetchConfigFailure, @@ -10,18 +10,18 @@ import { isModifyConfigPending, getConfigUpdatePermission, getModifyConfigFailure, - modifyConfigReset, -} from '../modules/config'; -import { connect } from 'react-redux'; -import { Config, NamespaceStrategies } from '@scm-manager/ui-types'; -import ConfigForm from '../components/form/ConfigForm'; -import { getConfigLink } from '../../modules/indexResource'; + modifyConfigReset +} from "../modules/config"; +import { connect } from "react-redux"; +import { Config, NamespaceStrategies } from "@scm-manager/ui-types"; +import ConfigForm from "../components/form/ConfigForm"; +import { getConfigLink } from "../../modules/indexResource"; import { fetchNamespaceStrategiesIfNeeded, getFetchNamespaceStrategiesFailure, getNamespaceStrategies, - isFetchNamespaceStrategiesPending, -} from '../modules/namespaceStrategies'; + isFetchNamespaceStrategiesPending +} from "../modules/namespaceStrategies"; type Props = { loading: boolean; @@ -52,7 +52,7 @@ class GlobalConfig extends React.Component<Props, State> { this.state = { configReadPermission: true, - configChanged: false, + configChanged: false }; } @@ -63,7 +63,7 @@ class GlobalConfig extends React.Component<Props, State> { this.props.fetchConfig(this.props.configLink); } else { this.setState({ - configReadPermission: false, + configReadPermission: false }); } } @@ -71,7 +71,7 @@ class GlobalConfig extends React.Component<Props, State> { modifyConfig = (config: Config) => { this.props.modifyConfig(config); this.setState({ - configChanged: true, + configChanged: true }); }; @@ -83,11 +83,11 @@ class GlobalConfig extends React.Component<Props, State> { className="delete" onClick={() => this.setState({ - configChanged: false, + configChanged: false }) } /> - {this.props.t('config.form.submit-success-notification')} + {this.props.t("config.form.submit-success-notification")} </div> ); } @@ -103,7 +103,7 @@ class GlobalConfig extends React.Component<Props, State> { return ( <div> - <Title title={t('config.title')} /> + <Title title={t("config.title")} /> {this.renderError()} {this.renderContent()} </div> @@ -124,7 +124,7 @@ class GlobalConfig extends React.Component<Props, State> { loading, config, configUpdatePermission, - namespaceStrategies, + namespaceStrategies } = this.props; const { configReadPermission } = this.state; if (!error) { @@ -159,7 +159,7 @@ const mapDispatchToProps = dispatch => { }, fetchNamespaceStrategiesIfNeeded: () => { dispatch(fetchNamespaceStrategiesIfNeeded()); - }, + } }; }; @@ -184,11 +184,11 @@ const mapStateToProps = state => { config, configUpdatePermission, configLink, - namespaceStrategies, + namespaceStrategies }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('config')(GlobalConfig)); + mapDispatchToProps +)(translate("config")(GlobalConfig)); diff --git a/scm-ui/ui-webapp/src/admin/modules/config.test.ts b/scm-ui/ui-webapp/src/admin/modules/config.test.ts index 81a17d5783..aecbe4a7d6 100644 --- a/scm-ui/ui-webapp/src/admin/modules/config.test.ts +++ b/scm-ui/ui-webapp/src/admin/modules/config.test.ts @@ -1,6 +1,6 @@ -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import reducer, { FETCH_CONFIG, @@ -19,118 +19,118 @@ import reducer, { isModifyConfigPending, getModifyConfigFailure, getConfig, - getConfigUpdatePermission, -} from './config'; + getConfigUpdatePermission +} from "./config"; -const CONFIG_URL = '/config'; -const URL = '/api/v2' + CONFIG_URL; +const CONFIG_URL = "/config"; +const URL = "/api/v2" + CONFIG_URL; -const error = new Error('You have an error!'); +const error = new Error("You have an error!"); const config = { proxyPassword: null, proxyPort: 8080, - proxyServer: 'proxy.mydomain.com', + proxyServer: "proxy.mydomain.com", proxyUser: null, enableProxy: false, - realmDescription: 'SONIA :: SCM Manager', + realmDescription: "SONIA :: SCM Manager", disableGroupingGrid: false, - dateFormat: 'YYYY-MM-DD HH:mm:ss', + dateFormat: "YYYY-MM-DD HH:mm:ss", anonymousAccessEnabled: false, adminGroups: [], adminUsers: [], - baseUrl: 'http://localhost:8081', + baseUrl: "http://localhost:8081", forceBaseUrl: false, loginAttemptLimit: -1, proxyExcludes: [], skipFailedAuthenticators: false, pluginUrl: - 'http://plugins.scm-manager.org/scm-plugin-backend/api/{version}/plugins?os={os}&arch={arch}&snapshot=false', + "http://plugins.scm-manager.org/scm-plugin-backend/api/{version}/plugins?os={os}&arch={arch}&snapshot=false", loginAttemptLimitTimeout: 300, enabledXsrfProtection: true, - namespaceStrategy: 'UsernameNamespaceStrategy', + namespaceStrategy: "UsernameNamespaceStrategy", _links: { self: { - href: 'http://localhost:8081/api/v2/config', + href: "http://localhost:8081/api/v2/config" }, update: { - href: 'http://localhost:8081/api/v2/config', - }, - }, + href: "http://localhost:8081/api/v2/config" + } + } }; const configWithNullValues = { proxyPassword: null, proxyPort: 8080, - proxyServer: 'proxy.mydomain.com', + proxyServer: "proxy.mydomain.com", proxyUser: null, enableProxy: false, - realmDescription: 'SONIA :: SCM Manager', + realmDescription: "SONIA :: SCM Manager", disableGroupingGrid: false, - dateFormat: 'YYYY-MM-DD HH:mm:ss', + dateFormat: "YYYY-MM-DD HH:mm:ss", anonymousAccessEnabled: false, adminGroups: null, adminUsers: null, - baseUrl: 'http://localhost:8081', + baseUrl: "http://localhost:8081", forceBaseUrl: false, loginAttemptLimit: -1, proxyExcludes: null, skipFailedAuthenticators: false, pluginUrl: - 'http://plugins.scm-manager.org/scm-plugin-backend/api/{version}/plugins?os={os}&arch={arch}&snapshot=false', + "http://plugins.scm-manager.org/scm-plugin-backend/api/{version}/plugins?os={os}&arch={arch}&snapshot=false", loginAttemptLimitTimeout: 300, enabledXsrfProtection: true, - namespaceStrategy: 'UsernameNamespaceStrategy', + namespaceStrategy: "UsernameNamespaceStrategy", _links: { self: { - href: 'http://localhost:8081/api/v2/config', + href: "http://localhost:8081/api/v2/config" }, update: { - href: 'http://localhost:8081/api/v2/config', - }, - }, + href: "http://localhost:8081/api/v2/config" + } + } }; const responseBody = { entries: config, - configUpdatePermission: false, + configUpdatePermission: false }; const response = { headers: { - 'content-type': 'application/json', + "content-type": "application/json" }, - responseBody, + responseBody }; -describe('config fetch()', () => { +describe("config fetch()", () => { const mockStore = configureMockStore([thunk]); afterEach(() => { fetchMock.reset(); fetchMock.restore(); }); - it('should successfully fetch config', () => { + it("should successfully fetch config", () => { fetchMock.getOnce(URL, response); const expectedActions = [ { - type: FETCH_CONFIG_PENDING, + type: FETCH_CONFIG_PENDING }, { type: FETCH_CONFIG_SUCCESS, - payload: response, - }, + payload: response + } ]; const store = mockStore({ indexResources: { links: { config: { - href: CONFIG_URL, - }, - }, - }, + href: CONFIG_URL + } + } + } }); return store.dispatch(fetchConfig(CONFIG_URL)).then(() => { @@ -138,19 +138,19 @@ describe('config fetch()', () => { }); }); - it('should fail getting config on HTTP 500', () => { + it("should fail getting config on HTTP 500", () => { fetchMock.getOnce(URL, { - status: 500, + status: 500 }); const store = mockStore({ indexResources: { links: { config: { - href: CONFIG_URL, - }, - }, - }, + href: CONFIG_URL + } + } + } }); return store.dispatch(fetchConfig(CONFIG_URL)).then(() => { const actions = store.getActions(); @@ -160,9 +160,9 @@ describe('config fetch()', () => { }); }); - it('should successfully modify config', () => { - fetchMock.putOnce('http://localhost:8081/api/v2/config', { - status: 204, + it("should successfully modify config", () => { + fetchMock.putOnce("http://localhost:8081/api/v2/config", { + status: 204 }); const store = mockStore({}); @@ -175,9 +175,9 @@ describe('config fetch()', () => { }); }); - it('should call the callback after modifying config', () => { - fetchMock.putOnce('http://localhost:8081/api/v2/config', { - status: 204, + it("should call the callback after modifying config", () => { + fetchMock.putOnce("http://localhost:8081/api/v2/config", { + status: 204 }); let called = false; @@ -194,9 +194,9 @@ describe('config fetch()', () => { }); }); - it('should fail modifying config on HTTP 500', () => { - fetchMock.putOnce('http://localhost:8081/api/v2/config', { - status: 500, + it("should fail modifying config on HTTP 500", () => { + fetchMock.putOnce("http://localhost:8081/api/v2/config", { + status: 500 }); const store = mockStore({}); @@ -210,28 +210,28 @@ describe('config fetch()', () => { }); }); -describe('config reducer', () => { - it('should update state correctly according to FETCH_CONFIG_SUCCESS action', () => { +describe("config reducer", () => { + it("should update state correctly according to FETCH_CONFIG_SUCCESS action", () => { const newState = reducer({}, fetchConfigSuccess(config)); expect(newState).toEqual({ entries: config, - configUpdatePermission: true, + configUpdatePermission: true }); }); - it('should set configUpdatePermission to true if update link is present', () => { + it("should set configUpdatePermission to true if update link is present", () => { const newState = reducer({}, fetchConfigSuccess(config)); expect(newState.configUpdatePermission).toBeTruthy(); }); - it('should update state according to FETCH_CONFIG_SUCCESS action', () => { + it("should update state according to FETCH_CONFIG_SUCCESS action", () => { const newState = reducer({}, fetchConfigSuccess(config)); expect(newState.entries).toBe(config); }); - it('should return empty arrays for null values', () => { + it("should return empty arrays for null values", () => { // $FlowFixMe const config = reducer({}, fetchConfigSuccess(configWithNullValues)) .entries; @@ -241,73 +241,73 @@ describe('config reducer', () => { }); }); -describe('selector tests', () => { - it('should return true, when fetch config is pending', () => { +describe("selector tests", () => { + it("should return true, when fetch config is pending", () => { const state = { pending: { - [FETCH_CONFIG]: true, - }, + [FETCH_CONFIG]: true + } }; expect(isFetchConfigPending(state)).toEqual(true); }); - it('should return false, when fetch config is not pending', () => { + it("should return false, when fetch config is not pending", () => { expect(isFetchConfigPending({})).toEqual(false); }); - it('should return error when fetch config did fail', () => { + it("should return error when fetch config did fail", () => { const state = { failure: { - [FETCH_CONFIG]: error, - }, + [FETCH_CONFIG]: error + } }; expect(getFetchConfigFailure(state)).toEqual(error); }); - it('should return undefined when fetch config did not fail', () => { + it("should return undefined when fetch config did not fail", () => { expect(getFetchConfigFailure({})).toBe(undefined); }); - it('should return true, when modify group is pending', () => { + it("should return true, when modify group is pending", () => { const state = { pending: { - [MODIFY_CONFIG]: true, - }, + [MODIFY_CONFIG]: true + } }; expect(isModifyConfigPending(state)).toEqual(true); }); - it('should return false, when modify config is not pending', () => { + it("should return false, when modify config is not pending", () => { expect(isModifyConfigPending({})).toEqual(false); }); - it('should return error when modify config did fail', () => { + it("should return error when modify config did fail", () => { const state = { failure: { - [MODIFY_CONFIG]: error, - }, + [MODIFY_CONFIG]: error + } }; expect(getModifyConfigFailure(state)).toEqual(error); }); - it('should return undefined when modify config did not fail', () => { + it("should return undefined when modify config did not fail", () => { expect(getModifyConfigFailure({})).toBe(undefined); }); - it('should return config', () => { + it("should return config", () => { const state = { config: { - entries: config, - }, + entries: config + } }; expect(getConfig(state)).toEqual(config); }); - it('should return configUpdatePermission', () => { + it("should return configUpdatePermission", () => { const state = { config: { - configUpdatePermission: true, - }, + configUpdatePermission: true + } }; expect(getConfigUpdatePermission(state)).toEqual(true); }); diff --git a/scm-ui/ui-webapp/src/admin/modules/config.ts b/scm-ui/ui-webapp/src/admin/modules/config.ts index 9a81f492c0..0494e59fef 100644 --- a/scm-ui/ui-webapp/src/admin/modules/config.ts +++ b/scm-ui/ui-webapp/src/admin/modules/config.ts @@ -1,23 +1,23 @@ -import { apiClient } from '@scm-manager/ui-components'; -import * as types from '../../modules/types'; -import { Action } from '@scm-manager/ui-types'; -import { isPending } from '../../modules/pending'; -import { getFailure } from '../../modules/failure'; -import { Dispatch } from 'redux'; -import { Config } from '@scm-manager/ui-types'; +import { apiClient } from "@scm-manager/ui-components"; +import * as types from "../../modules/types"; +import { Action } from "@scm-manager/ui-types"; +import { isPending } from "../../modules/pending"; +import { getFailure } from "../../modules/failure"; +import { Dispatch } from "redux"; +import { Config } from "@scm-manager/ui-types"; -export const FETCH_CONFIG = 'scm/config/FETCH_CONFIG'; +export const FETCH_CONFIG = "scm/config/FETCH_CONFIG"; export const FETCH_CONFIG_PENDING = `${FETCH_CONFIG}_${types.PENDING_SUFFIX}`; export const FETCH_CONFIG_SUCCESS = `${FETCH_CONFIG}_${types.SUCCESS_SUFFIX}`; export const FETCH_CONFIG_FAILURE = `${FETCH_CONFIG}_${types.FAILURE_SUFFIX}`; -export const MODIFY_CONFIG = 'scm/config/MODIFY_CONFIG'; +export const MODIFY_CONFIG = "scm/config/MODIFY_CONFIG"; export const MODIFY_CONFIG_PENDING = `${MODIFY_CONFIG}_${types.PENDING_SUFFIX}`; export const MODIFY_CONFIG_SUCCESS = `${MODIFY_CONFIG}_${types.SUCCESS_SUFFIX}`; export const MODIFY_CONFIG_FAILURE = `${MODIFY_CONFIG}_${types.FAILURE_SUFFIX}`; export const MODIFY_CONFIG_RESET = `${MODIFY_CONFIG}_${types.RESET_SUFFIX}`; -const CONTENT_TYPE_CONFIG = 'application/vnd.scmm-config+json;v=2'; +const CONTENT_TYPE_CONFIG = "application/vnd.scmm-config+json;v=2"; //fetch config export function fetchConfig(link: string) { @@ -39,14 +39,14 @@ export function fetchConfig(link: string) { export function fetchConfigPending(): Action { return { - type: FETCH_CONFIG_PENDING, + type: FETCH_CONFIG_PENDING }; } export function fetchConfigSuccess(config: Config): Action { return { type: FETCH_CONFIG_SUCCESS, - payload: config, + payload: config }; } @@ -54,8 +54,8 @@ export function fetchConfigFailure(error: Error): Action { return { type: FETCH_CONFIG_FAILURE, payload: { - error, - }, + error + } }; } @@ -80,14 +80,14 @@ export function modifyConfig(config: Config, callback?: () => void) { export function modifyConfigPending(config: Config): Action { return { type: MODIFY_CONFIG_PENDING, - payload: config, + payload: config }; } export function modifyConfigSuccess(config: Config): Action { return { type: MODIFY_CONFIG_SUCCESS, - payload: config, + payload: config }; } @@ -96,14 +96,14 @@ export function modifyConfigFailure(config: Config, error: Error): Action { type: MODIFY_CONFIG_FAILURE, payload: { error, - config, - }, + config + } }; } export function modifyConfigReset() { return { - type: MODIFY_CONFIG_RESET, + type: MODIFY_CONFIG_RESET }; } @@ -130,7 +130,7 @@ function reducer(state: any = {}, action: any = {}) { return { ...state, entries: config, - configUpdatePermission: action.payload._links.update ? true : false, + configUpdatePermission: action.payload._links.update ? true : false }; default: return state; diff --git a/scm-ui/ui-webapp/src/admin/modules/namespaceStrategies.test.ts b/scm-ui/ui-webapp/src/admin/modules/namespaceStrategies.test.ts index 7527f205e1..483815793a 100644 --- a/scm-ui/ui-webapp/src/admin/modules/namespaceStrategies.test.ts +++ b/scm-ui/ui-webapp/src/admin/modules/namespaceStrategies.test.ts @@ -1,6 +1,6 @@ -import fetchMock from 'fetch-mock'; -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; +import fetchMock from "fetch-mock"; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; import { FETCH_NAMESPACESTRATEGIES_TYPES, FETCH_NAMESPACESTRATEGIES_TYPES_FAILURE, @@ -12,67 +12,67 @@ import { default as reducer, getNamespaceStrategies, isFetchNamespaceStrategiesPending, - getFetchNamespaceStrategiesFailure, -} from './namespaceStrategies'; -import { MODIFY_CONFIG_SUCCESS } from './config'; + getFetchNamespaceStrategiesFailure +} from "./namespaceStrategies"; +import { MODIFY_CONFIG_SUCCESS } from "./config"; const strategies = { - current: 'UsernameNamespaceStrategy', + current: "UsernameNamespaceStrategy", available: [ - 'UsernameNamespaceStrategy', - 'CustomNamespaceStrategy', - 'CurrentYearNamespaceStrategy', - 'RepositoryTypeNamespaceStrategy', + "UsernameNamespaceStrategy", + "CustomNamespaceStrategy", + "CurrentYearNamespaceStrategy", + "RepositoryTypeNamespaceStrategy" ], _links: { self: { - href: 'http://localhost:8081/scm/api/v2/namespaceStrategies', - }, - }, + href: "http://localhost:8081/scm/api/v2/namespaceStrategies" + } + } }; -describe('namespace strategy caching', () => { - it('should fetch strategies, on empty state', () => { +describe("namespace strategy caching", () => { + it("should fetch strategies, on empty state", () => { expect(shouldFetchNamespaceStrategies({})).toBe(true); }); - it('should fetch strategies, on empty namespaceStrategies node', () => { + it("should fetch strategies, on empty namespaceStrategies node", () => { const state = { - namespaceStrategies: {}, + namespaceStrategies: {} }; expect(shouldFetchNamespaceStrategies(state)).toBe(true); }); - it('should not fetch strategies, on pending state', () => { + it("should not fetch strategies, on pending state", () => { const state = { pending: { - [FETCH_NAMESPACESTRATEGIES_TYPES]: true, - }, + [FETCH_NAMESPACESTRATEGIES_TYPES]: true + } }; expect(shouldFetchNamespaceStrategies(state)).toBe(false); }); - it('should not fetch strategies, on failure state', () => { + it("should not fetch strategies, on failure state", () => { const state = { failure: { - [FETCH_NAMESPACESTRATEGIES_TYPES]: new Error('no...'), - }, + [FETCH_NAMESPACESTRATEGIES_TYPES]: new Error("no...") + } }; expect(shouldFetchNamespaceStrategies(state)).toBe(false); }); - it('should not fetch strategies, if they are already fetched', () => { + it("should not fetch strategies, if they are already fetched", () => { const state = { namespaceStrategies: { - current: 'some', - }, + current: "some" + } }; expect(shouldFetchNamespaceStrategies(state)).toBe(false); }); }); -describe('namespace strategies fetch', () => { - const URL = 'http://scm.hitchhiker.com/api/v2/namespaceStrategies'; +describe("namespace strategies fetch", () => { + const URL = "http://scm.hitchhiker.com/api/v2/namespaceStrategies"; const mockStore = configureMockStore([thunk]); afterEach(() => { @@ -86,24 +86,24 @@ describe('namespace strategies fetch', () => { indexResources: { links: { namespaceStrategies: { - href: URL, - }, - }, - }, + href: URL + } + } + } }); }; - it('should successfully fetch strategies', () => { + it("should successfully fetch strategies", () => { fetchMock.getOnce(URL, strategies); const expectedActions = [ { - type: FETCH_NAMESPACESTRATEGIES_TYPES_PENDING, + type: FETCH_NAMESPACESTRATEGIES_TYPES_PENDING }, { type: FETCH_NAMESPACESTRATEGIES_TYPES_SUCCESS, - payload: strategies, - }, + payload: strategies + } ]; const store = createStore(); @@ -112,9 +112,9 @@ describe('namespace strategies fetch', () => { }); }); - it('should dispatch FETCH_NAMESPACESTRATEGIES_TYPES_FAILURE on server error', () => { + it("should dispatch FETCH_NAMESPACESTRATEGIES_TYPES_FAILURE on server error", () => { fetchMock.getOnce(URL, { - status: 500, + status: 500 }); const store = createStore(); @@ -126,75 +126,75 @@ describe('namespace strategies fetch', () => { }); }); - it('should not dispatch any action, if the strategies are already fetched', () => { + it("should not dispatch any action, if the strategies are already fetched", () => { const store = createStore({ - namespaceStrategies: strategies, + namespaceStrategies: strategies }); store.dispatch(fetchNamespaceStrategiesIfNeeded()); expect(store.getActions().length).toBe(0); }); }); -describe('namespace strategies reducer', () => { - it('should return unmodified state on unknown action', () => { +describe("namespace strategies reducer", () => { + it("should return unmodified state on unknown action", () => { const state = {}; expect(reducer(state)).toBe(state); }); - it('should store the strategies on success', () => { + it("should store the strategies on success", () => { const newState = reducer({}, fetchNamespaceStrategiesSuccess(strategies)); expect(newState).toBe(strategies); }); - it('should clear store if config was modified', () => { + it("should clear store if config was modified", () => { const modifyConfigAction = { type: MODIFY_CONFIG_SUCCESS, payload: { - namespaceStrategy: 'CustomNamespaceStrategy', - }, + namespaceStrategy: "CustomNamespaceStrategy" + } }; const newState = reducer(strategies, modifyConfigAction); - expect(newState.current).toEqual('CustomNamespaceStrategy'); + expect(newState.current).toEqual("CustomNamespaceStrategy"); }); }); -describe('namespace strategy selectors', () => { - const error = new Error('The end of the universe'); +describe("namespace strategy selectors", () => { + const error = new Error("The end of the universe"); - it('should return an empty object', () => { + it("should return an empty object", () => { expect(getNamespaceStrategies({})).toEqual({}); }); - it('should return the namespace strategies', () => { + it("should return the namespace strategies", () => { const state = { - namespaceStrategies: strategies, + namespaceStrategies: strategies }; expect(getNamespaceStrategies(state)).toBe(strategies); }); - it('should return true, when fetch namespace strategies is pending', () => { + it("should return true, when fetch namespace strategies is pending", () => { const state = { pending: { - [FETCH_NAMESPACESTRATEGIES_TYPES]: true, - }, + [FETCH_NAMESPACESTRATEGIES_TYPES]: true + } }; expect(isFetchNamespaceStrategiesPending(state)).toEqual(true); }); - it('should return false, when fetch strategies is not pending', () => { + it("should return false, when fetch strategies is not pending", () => { expect(isFetchNamespaceStrategiesPending({})).toEqual(false); }); - it('should return error when fetch namespace strategies did fail', () => { + it("should return error when fetch namespace strategies did fail", () => { const state = { failure: { - [FETCH_NAMESPACESTRATEGIES_TYPES]: error, - }, + [FETCH_NAMESPACESTRATEGIES_TYPES]: error + } }; expect(getFetchNamespaceStrategiesFailure(state)).toEqual(error); }); - it('should return undefined when fetch strategies did not fail', () => { + it("should return undefined when fetch strategies did not fail", () => { expect(getFetchNamespaceStrategiesFailure({})).toBe(undefined); }); }); diff --git a/scm-ui/ui-webapp/src/admin/modules/namespaceStrategies.ts b/scm-ui/ui-webapp/src/admin/modules/namespaceStrategies.ts index 48601e79dc..92d01a8424 100644 --- a/scm-ui/ui-webapp/src/admin/modules/namespaceStrategies.ts +++ b/scm-ui/ui-webapp/src/admin/modules/namespaceStrategies.ts @@ -1,12 +1,12 @@ -import * as types from '../../modules/types'; -import { Action, NamespaceStrategies } from '@scm-manager/ui-types'; -import { apiClient } from '@scm-manager/ui-components'; -import { isPending } from '../../modules/pending'; -import { getFailure } from '../../modules/failure'; -import { MODIFY_CONFIG_SUCCESS } from './config'; +import * as types from "../../modules/types"; +import { Action, NamespaceStrategies } from "@scm-manager/ui-types"; +import { apiClient } from "@scm-manager/ui-components"; +import { isPending } from "../../modules/pending"; +import { getFailure } from "../../modules/failure"; +import { MODIFY_CONFIG_SUCCESS } from "./config"; export const FETCH_NAMESPACESTRATEGIES_TYPES = - 'scm/config/FETCH_NAMESPACESTRATEGIES_TYPES'; + "scm/config/FETCH_NAMESPACESTRATEGIES_TYPES"; export const FETCH_NAMESPACESTRATEGIES_TYPES_PENDING = `${FETCH_NAMESPACESTRATEGIES_TYPES}_${types.PENDING_SUFFIX}`; export const FETCH_NAMESPACESTRATEGIES_TYPES_SUCCESS = `${FETCH_NAMESPACESTRATEGIES_TYPES}_${types.SUCCESS_SUFFIX}`; export const FETCH_NAMESPACESTRATEGIES_TYPES_FAILURE = `${FETCH_NAMESPACESTRATEGIES_TYPES}_${types.FAILURE_SUFFIX}`; @@ -17,7 +17,7 @@ export function fetchNamespaceStrategiesIfNeeded() { if (shouldFetchNamespaceStrategies(state)) { return fetchNamespaceStrategies( dispatch, - state.indexResources.links.namespaceStrategies.href, + state.indexResources.links.namespaceStrategies.href ); } }; @@ -48,23 +48,23 @@ export function shouldFetchNamespaceStrategies(state: object) { export function fetchNamespaceStrategiesPending(): Action { return { - type: FETCH_NAMESPACESTRATEGIES_TYPES_PENDING, + type: FETCH_NAMESPACESTRATEGIES_TYPES_PENDING }; } export function fetchNamespaceStrategiesSuccess( - namespaceStrategies: NamespaceStrategies, + namespaceStrategies: NamespaceStrategies ): Action { return { type: FETCH_NAMESPACESTRATEGIES_TYPES_SUCCESS, - payload: namespaceStrategies, + payload: namespaceStrategies }; } export function fetchNamespaceStrategiesFailure(error: Error): Action { return { type: FETCH_NAMESPACESTRATEGIES_TYPES_FAILURE, - payload: error, + payload: error }; } @@ -73,8 +73,8 @@ export function fetchNamespaceStrategiesFailure(error: Error): Action { export default function reducer( state: object = {}, action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): object { if ( action.type === FETCH_NAMESPACESTRATEGIES_TYPES_SUCCESS && @@ -85,7 +85,7 @@ export default function reducer( const config = action.payload; return { ...state, - current: config.namespaceStrategy, + current: config.namespaceStrategy }; } return state; diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/CancelPendingActionModal.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/CancelPendingActionModal.tsx index 1551e58821..dbec21b866 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/CancelPendingActionModal.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/CancelPendingActionModal.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import PluginActionModal from './PluginActionModal'; -import { PendingPlugins } from '@scm-manager/ui-types'; -import { apiClient } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; +import React from "react"; +import PluginActionModal from "./PluginActionModal"; +import { PendingPlugins } from "@scm-manager/ui-types"; +import { apiClient } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; type Props = { onClose: () => void; @@ -19,8 +19,8 @@ class CancelPendingActionModal extends React.Component<Props> { return ( <PluginActionModal - description={t('plugins.modal.cancelPending')} - label={t('plugins.cancelPending')} + description={t("plugins.modal.cancelPending")} + label={t("plugins.cancelPending")} onClose={onClose} pendingPlugins={pendingPlugins} execute={this.cancelPending} @@ -37,4 +37,4 @@ class CancelPendingActionModal extends React.Component<Props> { }; } -export default translate('admin')(CancelPendingActionModal); +export default translate("admin")(CancelPendingActionModal); diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx index 2045bb2469..4f067681d8 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import { Button } from '@scm-manager/ui-components'; -import { PendingPlugins } from '@scm-manager/ui-types'; -import { translate } from 'react-i18next'; -import ExecutePendingModal from './ExecutePendingModal'; +import React from "react"; +import { Button } from "@scm-manager/ui-components"; +import { PendingPlugins } from "@scm-manager/ui-types"; +import { translate } from "react-i18next"; +import ExecutePendingModal from "./ExecutePendingModal"; type Props = { pendingPlugins: PendingPlugins; @@ -19,19 +19,19 @@ class ExecutePendingAction extends React.Component<Props, State> { constructor(props: Props) { super(props); this.state = { - showModal: false, + showModal: false }; } openModal = () => { this.setState({ - showModal: true, + showModal: true }); }; closeModal = () => { this.setState({ - showModal: false, + showModal: false }); }; @@ -56,7 +56,7 @@ class ExecutePendingAction extends React.Component<Props, State> { {this.renderModal()} <Button color="primary" - label={t('plugins.executePending')} + label={t("plugins.executePending")} action={this.openModal} /> </> @@ -64,4 +64,4 @@ class ExecutePendingAction extends React.Component<Props, State> { } } -export default translate('admin')(ExecutePendingAction); +export default translate("admin")(ExecutePendingAction); diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingActionModal.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingActionModal.tsx index 3d81cec229..bbba20e0fa 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingActionModal.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingActionModal.tsx @@ -1,9 +1,9 @@ -import React from 'react'; -import PluginActionModal from './PluginActionModal'; -import { PendingPlugins } from '@scm-manager/ui-types'; -import waitForRestart from './waitForRestart'; -import { apiClient, Notification } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; +import React from "react"; +import PluginActionModal from "./PluginActionModal"; +import { PendingPlugins } from "@scm-manager/ui-types"; +import waitForRestart from "./waitForRestart"; +import { apiClient, Notification } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; type Props = { onClose: () => void; @@ -19,14 +19,14 @@ class ExecutePendingActionModal extends React.Component<Props> { return ( <PluginActionModal - description={t('plugins.modal.executePending')} - label={t('plugins.modal.executeAndRestart')} + description={t("plugins.modal.executePending")} + label={t("plugins.modal.executeAndRestart")} onClose={onClose} pendingPlugins={pendingPlugins} execute={this.executeAndRestart} > <Notification type="warning"> - {t('plugins.modal.restartNotification')} + {t("plugins.modal.restartNotification")} </Notification> </PluginActionModal> ); @@ -40,4 +40,4 @@ class ExecutePendingActionModal extends React.Component<Props> { }; } -export default translate('admin')(ExecutePendingActionModal); +export default translate("admin")(ExecutePendingActionModal); diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingModal.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingModal.tsx index 27fb1b4dc2..b66709d1e1 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingModal.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingModal.tsx @@ -1,16 +1,16 @@ -import React from 'react'; +import React from "react"; import { apiClient, Button, ButtonGroup, ErrorNotification, Modal, - Notification, -} from '@scm-manager/ui-components'; -import { PendingPlugins } from '@scm-manager/ui-types'; -import { translate } from 'react-i18next'; -import waitForRestart from './waitForRestart'; -import SuccessNotification from './SuccessNotification'; + Notification +} from "@scm-manager/ui-components"; +import { PendingPlugins } from "@scm-manager/ui-types"; +import { translate } from "react-i18next"; +import waitForRestart from "./waitForRestart"; +import SuccessNotification from "./SuccessNotification"; type Props = { onClose: () => void; @@ -31,7 +31,7 @@ class ExecutePendingModal extends React.Component<Props, State> { super(props); this.state = { loading: false, - success: false, + success: false }; } @@ -45,7 +45,7 @@ class ExecutePendingModal extends React.Component<Props, State> { } else { return ( <Notification type="warning"> - {t('plugins.modal.restartNotification')} + {t("plugins.modal.restartNotification")} </Notification> ); } @@ -54,7 +54,7 @@ class ExecutePendingModal extends React.Component<Props, State> { executeAndRestart = () => { const { pendingPlugins } = this.props; this.setState({ - loading: true, + loading: true }); apiClient @@ -64,14 +64,14 @@ class ExecutePendingModal extends React.Component<Props, State> { this.setState({ success: true, loading: false, - error: undefined, + error: undefined }); }) .catch(error => { this.setState({ success: false, loading: false, - error: error, + error: error }); }); }; @@ -82,7 +82,7 @@ class ExecutePendingModal extends React.Component<Props, State> { <> {pendingPlugins._embedded && pendingPlugins._embedded.new.length > 0 && ( <> - <strong>{t('plugins.modal.installQueue')}</strong> + <strong>{t("plugins.modal.installQueue")}</strong> <ul> {pendingPlugins._embedded.new.map(plugin => ( <li key={plugin.name}>{plugin.name}</li> @@ -101,7 +101,7 @@ class ExecutePendingModal extends React.Component<Props, State> { {pendingPlugins._embedded && pendingPlugins._embedded.update.length > 0 && ( <> - <strong>{t('plugins.modal.updateQueue')}</strong> + <strong>{t("plugins.modal.updateQueue")}</strong> <ul> {pendingPlugins._embedded.update.map(plugin => ( <li key={plugin.name}>{plugin.name}</li> @@ -120,7 +120,7 @@ class ExecutePendingModal extends React.Component<Props, State> { {pendingPlugins._embedded && pendingPlugins._embedded.uninstall.length > 0 && ( <> - <strong>{t('plugins.modal.uninstallQueue')}</strong> + <strong>{t("plugins.modal.uninstallQueue")}</strong> <ul> {pendingPlugins._embedded.uninstall.map(plugin => ( <li key={plugin.name}>{plugin.name}</li> @@ -138,7 +138,7 @@ class ExecutePendingModal extends React.Component<Props, State> { <> <div className="media"> <div className="content"> - <p>{t('plugins.modal.executePending')}</p> + <p>{t("plugins.modal.executePending")}</p> {this.renderInstallQueue()} {this.renderUpdateQueue()} {this.renderUninstallQueue()} @@ -156,12 +156,12 @@ class ExecutePendingModal extends React.Component<Props, State> { <ButtonGroup> <Button color="warning" - label={t('plugins.modal.executeAndRestart')} + label={t("plugins.modal.executeAndRestart")} loading={loading} action={this.executeAndRestart} disabled={error || success} /> - <Button label={t('plugins.modal.abort')} action={onClose} /> + <Button label={t("plugins.modal.abort")} action={onClose} /> </ButtonGroup> ); }; @@ -170,7 +170,7 @@ class ExecutePendingModal extends React.Component<Props, State> { const { onClose, t } = this.props; return ( <Modal - title={t('plugins.modal.executeAndRestart')} + title={t("plugins.modal.executeAndRestart")} closeFunction={onClose} body={this.renderBody()} footer={this.renderFooter()} @@ -180,4 +180,4 @@ class ExecutePendingModal extends React.Component<Props, State> { } } -export default translate('admin')(ExecutePendingModal); +export default translate("admin")(ExecutePendingModal); diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/PluginActionModal.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/PluginActionModal.tsx index 6eae36e25c..6b4e743a24 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/PluginActionModal.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/PluginActionModal.tsx @@ -1,13 +1,13 @@ -import * as React from 'react'; +import * as React from "react"; import { Button, ButtonGroup, ErrorNotification, - Modal, -} from '@scm-manager/ui-components'; -import { PendingPlugins, PluginCollection } from '@scm-manager/ui-types'; -import { translate } from 'react-i18next'; -import SuccessNotification from './SuccessNotification'; + Modal +} from "@scm-manager/ui-components"; +import { PendingPlugins, PluginCollection } from "@scm-manager/ui-types"; +import { translate } from "react-i18next"; +import SuccessNotification from "./SuccessNotification"; type Props = { onClose: () => void; @@ -36,7 +36,7 @@ class PluginActionModal extends React.Component<Props, State> { super(props); this.state = { loading: false, - success: false, + success: false }; } @@ -54,7 +54,7 @@ class PluginActionModal extends React.Component<Props, State> { executeAction = () => { this.setState({ - loading: true, + loading: true }); this.props @@ -62,14 +62,14 @@ class PluginActionModal extends React.Component<Props, State> { .then(() => { this.setState({ success: true, - loading: false, + loading: false }); }) .catch(error => { this.setState({ success: false, loading: false, - error: error, + error: error }); }); }; @@ -93,7 +93,7 @@ class PluginActionModal extends React.Component<Props, State> { installedPlugins._embedded && installedPlugins._embedded.plugins && ( <> - <strong>{t('plugins.modal.updateQueue')}</strong> + <strong>{t("plugins.modal.updateQueue")}</strong> <ul> {installedPlugins._embedded.plugins .filter(plugin => plugin._links && plugin._links.update) @@ -115,7 +115,7 @@ class PluginActionModal extends React.Component<Props, State> { pendingPlugins._embedded && pendingPlugins._embedded.new.length > 0 && ( <> - <strong>{t('plugins.modal.installQueue')}</strong> + <strong>{t("plugins.modal.installQueue")}</strong> <ul> {pendingPlugins._embedded.new.map(plugin => ( <li key={plugin.name}>{plugin.name}</li> @@ -135,7 +135,7 @@ class PluginActionModal extends React.Component<Props, State> { pendingPlugins._embedded && pendingPlugins._embedded.update.length > 0 && ( <> - <strong>{t('plugins.modal.updateQueue')}</strong> + <strong>{t("plugins.modal.updateQueue")}</strong> <ul> {pendingPlugins._embedded.update.map(plugin => ( <li key={plugin.name}>{plugin.name}</li> @@ -155,7 +155,7 @@ class PluginActionModal extends React.Component<Props, State> { pendingPlugins._embedded && pendingPlugins._embedded.uninstall.length > 0 && ( <> - <strong>{t('plugins.modal.uninstallQueue')}</strong> + <strong>{t("plugins.modal.uninstallQueue")}</strong> <ul> {pendingPlugins._embedded.uninstall.map(plugin => ( <li key={plugin.name}>{plugin.name}</li> @@ -193,7 +193,7 @@ class PluginActionModal extends React.Component<Props, State> { action={this.executeAction} disabled={error || success} /> - <Button label={t('plugins.modal.abort')} action={onClose} /> + <Button label={t("plugins.modal.abort")} action={onClose} /> </ButtonGroup> ); }; @@ -212,4 +212,4 @@ class PluginActionModal extends React.Component<Props, State> { } } -export default translate('admin')(PluginActionModal); +export default translate("admin")(PluginActionModal); diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/PluginAvatar.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/PluginAvatar.tsx index 5b24000c09..6a1863f982 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/PluginAvatar.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/PluginAvatar.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; -import { Plugin } from '@scm-manager/ui-types'; -import { Image } from '@scm-manager/ui-components'; +import React from "react"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import { Plugin } from "@scm-manager/ui-types"; +import { Image } from "@scm-manager/ui-components"; type Props = { plugin: Plugin; @@ -15,11 +15,11 @@ export default class PluginAvatar extends React.Component<Props> { <ExtensionPoint name="plugins.plugin-avatar" props={{ - plugin, + plugin }} > <Image - src={plugin.avatarUrl ? plugin.avatarUrl : '/images/blib.jpg'} + src={plugin.avatarUrl ? plugin.avatarUrl : "/images/blib.jpg"} alt="Logo" /> </ExtensionPoint> diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/PluginBottomActions.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/PluginBottomActions.tsx index c67876ad15..07225c366d 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/PluginBottomActions.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/PluginBottomActions.tsx @@ -1,5 +1,5 @@ -import * as React from 'react'; -import styled from 'styled-components'; +import * as React from "react"; +import styled from "styled-components"; type Props = { children?: React.Node; diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/PluginEntry.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/PluginEntry.tsx index 20f214c405..a2ef8bf9d2 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/PluginEntry.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/PluginEntry.tsx @@ -1,16 +1,16 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import classNames from 'classnames'; -import styled from 'styled-components'; -import { Plugin } from '@scm-manager/ui-types'; -import { CardColumn, Icon } from '@scm-manager/ui-components'; -import PluginAvatar from './PluginAvatar'; -import PluginModal from './PluginModal'; +import React from "react"; +import { translate } from "react-i18next"; +import classNames from "classnames"; +import styled from "styled-components"; +import { Plugin } from "@scm-manager/ui-types"; +import { CardColumn, Icon } from "@scm-manager/ui-components"; +import PluginAvatar from "./PluginAvatar"; +import PluginModal from "./PluginModal"; export const PluginAction = { - INSTALL: 'install', - UPDATE: 'update', - UNINSTALL: 'uninstall', + INSTALL: "install", + UPDATE: "update", + UNINSTALL: "uninstall" }; type Props = { @@ -53,7 +53,7 @@ class PluginEntry extends React.Component<Props, State> { this.state = { showInstallModal: false, showUpdateModal: false, - showUninstallModal: false, + showUninstallModal: false }; } @@ -64,7 +64,7 @@ class PluginEntry extends React.Component<Props, State> { toggleModal = (showModal: string) => { const oldValue = this.state[showModal]; this.setState({ - [showModal]: !oldValue, + [showModal]: !oldValue }); }; @@ -96,10 +96,10 @@ class PluginEntry extends React.Component<Props, State> { {this.isInstallable() && ( <IconWrapper className="level-item" - onClick={() => this.toggleModal('showInstallModal')} + onClick={() => this.toggleModal("showInstallModal")} > <Icon - title={t('plugins.modal.install')} + title={t("plugins.modal.install")} name="download" color="info" /> @@ -108,10 +108,10 @@ class PluginEntry extends React.Component<Props, State> { {this.isUninstallable() && ( <IconWrapper className="level-item" - onClick={() => this.toggleModal('showUninstallModal')} + onClick={() => this.toggleModal("showUninstallModal")} > <Icon - title={t('plugins.modal.uninstall')} + title={t("plugins.modal.uninstall")} name="trash" color="info" /> @@ -120,10 +120,10 @@ class PluginEntry extends React.Component<Props, State> { {this.isUpdatable() && ( <IconWrapper className="level-item" - onClick={() => this.toggleModal('showUpdateModal')} + onClick={() => this.toggleModal("showUpdateModal")} > <Icon - title={t('plugins.modal.update')} + title={t("plugins.modal.update")} name="sync-alt" color="info" /> @@ -141,7 +141,7 @@ class PluginEntry extends React.Component<Props, State> { plugin={plugin} pluginAction={PluginAction.INSTALL} refresh={refresh} - onClose={() => this.toggleModal('showInstallModal')} + onClose={() => this.toggleModal("showInstallModal")} /> ); } else if (this.state.showUpdateModal && this.isUpdatable()) { @@ -150,7 +150,7 @@ class PluginEntry extends React.Component<Props, State> { plugin={plugin} pluginAction={PluginAction.UPDATE} refresh={refresh} - onClose={() => this.toggleModal('showUpdateModal')} + onClose={() => this.toggleModal("showUpdateModal")} /> ); } else if (this.state.showUninstallModal && this.isUninstallable()) { @@ -159,7 +159,7 @@ class PluginEntry extends React.Component<Props, State> { plugin={plugin} pluginAction={PluginAction.UNINSTALL} refresh={refresh} - onClose={() => this.toggleModal('showUninstallModal')} + onClose={() => this.toggleModal("showUninstallModal")} /> ); } else { @@ -173,7 +173,7 @@ class PluginEntry extends React.Component<Props, State> { <Icon className="fa-spin fa-lg" name="spinner" - color={plugin.markedForUninstall ? 'danger' : 'info'} + color={plugin.markedForUninstall ? "danger" : "info"} /> ); }; @@ -191,7 +191,7 @@ class PluginEntry extends React.Component<Props, State> { <CardColumn action={ this.isInstallable() - ? () => this.toggleModal('showInstallModal') + ? () => this.toggleModal("showInstallModal") : null } avatar={avatar} @@ -210,4 +210,4 @@ class PluginEntry extends React.Component<Props, State> { } } -export default translate('admin')(PluginEntry); +export default translate("admin")(PluginEntry); diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/PluginGroupEntry.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/PluginGroupEntry.tsx index 9bb604f252..0f181e9ecc 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/PluginGroupEntry.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/PluginGroupEntry.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { CardColumnGroup } from '@scm-manager/ui-components'; -import { PluginGroup } from '@scm-manager/ui-types'; -import PluginEntry from './PluginEntry'; +import React from "react"; +import { CardColumnGroup } from "@scm-manager/ui-components"; +import { PluginGroup } from "@scm-manager/ui-types"; +import PluginEntry from "./PluginEntry"; type Props = { group: PluginGroup; diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/PluginList.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/PluginList.tsx index 82b13cfd63..8affc903f5 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/PluginList.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/PluginList.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { Plugin } from '@scm-manager/ui-types'; -import PluginGroupEntry from '../components/PluginGroupEntry'; -import groupByCategory from './groupByCategory'; +import React from "react"; +import { Plugin } from "@scm-manager/ui-types"; +import PluginGroupEntry from "../components/PluginGroupEntry"; +import groupByCategory from "./groupByCategory"; type Props = { plugins: Plugin[]; diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/PluginModal.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/PluginModal.tsx index 49cec83d20..f26f3d5e91 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/PluginModal.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/PluginModal.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import classNames from 'classnames'; -import styled from 'styled-components'; -import { Plugin } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import classNames from "classnames"; +import styled from "styled-components"; +import { Plugin } from "@scm-manager/ui-types"; import { apiClient, Button, @@ -10,11 +10,11 @@ import { Checkbox, ErrorNotification, Modal, - Notification, -} from '@scm-manager/ui-components'; -import waitForRestart from './waitForRestart'; -import SuccessNotification from './SuccessNotification'; -import { PluginAction } from './PluginEntry'; + Notification +} from "@scm-manager/ui-components"; +import waitForRestart from "./waitForRestart"; +import SuccessNotification from "./SuccessNotification"; +import { PluginAction } from "./PluginEntry"; type Props = { plugin: Plugin; @@ -36,7 +36,7 @@ type State = { const ListParent = styled.div` margin-right: 0; min-width: ${props => - props.pluginAction === PluginAction.INSTALL ? '5.5em' : '10em'}; + props.pluginAction === PluginAction.INSTALL ? "5.5em" : "10em"}; text-align: left; `; @@ -50,7 +50,7 @@ class PluginModal extends React.Component<Props, State> { this.state = { loading: false, restart: false, - success: false, + success: false }; } @@ -60,7 +60,7 @@ class PluginModal extends React.Component<Props, State> { const newState = { loading: false, - error: undefined, + error: undefined }; if (restart) { @@ -68,14 +68,14 @@ class PluginModal extends React.Component<Props, State> { .then(() => { this.setState({ ...newState, - success: true, + success: true }); }) .catch(error => { this.setState({ loading: false, success: false, - error, + error }); }); } else { @@ -90,7 +90,7 @@ class PluginModal extends React.Component<Props, State> { const { plugin, pluginAction } = this.props; const { restart } = this.state; - let pluginActionLink = ''; + let pluginActionLink = ""; if (pluginAction === PluginAction.INSTALL) { pluginActionLink = plugin._links.install.href; @@ -99,12 +99,12 @@ class PluginModal extends React.Component<Props, State> { } else if (pluginAction === PluginAction.UNINSTALL) { pluginActionLink = plugin._links.uninstall.href; } - return pluginActionLink + '?restart=' + restart.toString(); + return pluginActionLink + "?restart=" + restart.toString(); }; handlePluginAction = (e: Event) => { this.setState({ - loading: true, + loading: true }); e.preventDefault(); apiClient @@ -114,7 +114,7 @@ class PluginModal extends React.Component<Props, State> { this.setState({ loading: false, success: false, - error: error, + error: error }); }); }; @@ -123,10 +123,10 @@ class PluginModal extends React.Component<Props, State> { const { pluginAction, onClose, t } = this.props; const { loading, error, restart, success } = this.state; - let color = pluginAction === PluginAction.UNINSTALL ? 'warning' : 'primary'; + let color = pluginAction === PluginAction.UNINSTALL ? "warning" : "primary"; let label = `plugins.modal.${pluginAction}`; if (restart) { - color = 'warning'; + color = "warning"; label = `plugins.modal.${pluginAction}AndRestart`; } return ( @@ -138,7 +138,7 @@ class PluginModal extends React.Component<Props, State> { loading={loading} disabled={!!error || success} /> - <Button label={t('plugins.modal.abort')} action={onClose} /> + <Button label={t("plugins.modal.abort")} action={onClose} /> </ButtonGroup> ); }; @@ -151,7 +151,7 @@ class PluginModal extends React.Component<Props, State> { dependencies = ( <div className="media"> <Notification type="warning"> - <strong>{t('plugins.modal.dependencyNotification')}</strong> + <strong>{t("plugins.modal.dependencyNotification")}</strong> <ul> {plugin.dependencies.map((dependency, index) => { return <li key={index}>{dependency}</li>; @@ -183,7 +183,7 @@ class PluginModal extends React.Component<Props, State> { return ( <div className="media"> <Notification type="warning"> - {t('plugins.modal.restartNotification')} + {t("plugins.modal.restartNotification")} </Notification> </div> ); @@ -193,7 +193,7 @@ class PluginModal extends React.Component<Props, State> { handleRestartChange = (value: boolean) => { this.setState({ - restart: value, + restart: value }); }; @@ -212,25 +212,25 @@ class PluginModal extends React.Component<Props, State> { <div className="media-content"> <div className="field is-horizontal"> <ListParent - className={classNames('field-label', 'is-inline-flex')} + className={classNames("field-label", "is-inline-flex")} pluginAction={pluginAction} > - {t('plugins.modal.author')}: + {t("plugins.modal.author")}: </ListParent> - <ListChild className={classNames('field-body', 'is-inline-flex')}> + <ListChild className={classNames("field-body", "is-inline-flex")}> {plugin.author} </ListChild> </div> {pluginAction === PluginAction.INSTALL && ( <div className="field is-horizontal"> <ListParent - className={classNames('field-label', 'is-inline-flex')} + className={classNames("field-label", "is-inline-flex")} pluginAction={pluginAction} > - {t('plugins.modal.version')}: + {t("plugins.modal.version")}: </ListParent> <ListChild - className={classNames('field-body', 'is-inline-flex')} + className={classNames("field-body", "is-inline-flex")} > {plugin.version} </ListChild> @@ -240,12 +240,12 @@ class PluginModal extends React.Component<Props, State> { pluginAction === PluginAction.UNINSTALL) && ( <div className="field is-horizontal"> <ListParent - className={classNames('field-label', 'is-inline-flex')} + className={classNames("field-label", "is-inline-flex")} > - {t('plugins.modal.currentVersion')}: + {t("plugins.modal.currentVersion")}: </ListParent> <ListChild - className={classNames('field-body', 'is-inline-flex')} + className={classNames("field-body", "is-inline-flex")} > {plugin.version} </ListChild> @@ -254,12 +254,12 @@ class PluginModal extends React.Component<Props, State> { {pluginAction === PluginAction.UPDATE && ( <div className="field is-horizontal"> <ListParent - className={classNames('field-label', 'is-inline-flex')} + className={classNames("field-label", "is-inline-flex")} > - {t('plugins.modal.newVersion')}: + {t("plugins.modal.newVersion")}: </ListParent> <ListChild - className={classNames('field-body', 'is-inline-flex')} + className={classNames("field-body", "is-inline-flex")} > {plugin.newVersion} </ListChild> @@ -272,7 +272,7 @@ class PluginModal extends React.Component<Props, State> { <div className="media-content"> <Checkbox checked={restart} - label={t('plugins.modal.restart')} + label={t("plugins.modal.restart")} onChange={this.handleRestartChange} disabled={false} /> @@ -285,7 +285,7 @@ class PluginModal extends React.Component<Props, State> { return ( <Modal title={t(`plugins.modal.title.${pluginAction}`, { - name: plugin.displayName ? plugin.displayName : plugin.name, + name: plugin.displayName ? plugin.displayName : plugin.name })} closeFunction={() => onClose()} body={body} @@ -296,4 +296,4 @@ class PluginModal extends React.Component<Props, State> { } } -export default translate('admin')(PluginModal); +export default translate("admin")(PluginModal); diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/PluginTopActions.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/PluginTopActions.tsx index 3741f98454..74ec5c9d2a 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/PluginTopActions.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/PluginTopActions.tsx @@ -1,6 +1,6 @@ -import * as React from 'react'; -import classNames from 'classnames'; -import styled from 'styled-components'; +import * as React from "react"; +import classNames from "classnames"; +import styled from "styled-components"; type Props = { children?: React.Node; @@ -17,10 +17,10 @@ export default class PluginTopActions extends React.Component<Props> { return ( <ChildWrapper className={classNames( - 'column', - 'is-flex', - 'is-one-fifths', - 'is-mobile-action-spacing', + "column", + "is-flex", + "is-one-fifths", + "is-mobile-action-spacing" )} > {children} diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/SuccessNotification.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/SuccessNotification.tsx index bdb4e94fa9..3732b3b70c 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/SuccessNotification.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/SuccessNotification.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Notification } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { Notification } from "@scm-manager/ui-components"; type Props = { // context props @@ -12,13 +12,13 @@ class InstallSuccessNotification extends React.Component<Props> { const { t } = this.props; return ( <Notification type="success"> - {t('plugins.modal.successNotification')}{' '} + {t("plugins.modal.successNotification")}{" "} <a onClick={e => window.location.reload(true)}> - {t('plugins.modal.reload')} + {t("plugins.modal.reload")} </a> </Notification> ); } } -export default translate('admin')(InstallSuccessNotification); +export default translate("admin")(InstallSuccessNotification); diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/UpdateAllActionModal.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/UpdateAllActionModal.tsx index f5b7b1d0b8..5f074e8335 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/UpdateAllActionModal.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/UpdateAllActionModal.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import PluginActionModal from './PluginActionModal'; -import { PluginCollection } from '@scm-manager/ui-types'; -import { apiClient } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; +import React from "react"; +import PluginActionModal from "./PluginActionModal"; +import { PluginCollection } from "@scm-manager/ui-types"; +import { apiClient } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; type Props = { onClose: () => void; @@ -19,8 +19,8 @@ class UpdateAllActionModal extends React.Component<Props> { return ( <PluginActionModal - description={t('plugins.modal.updateAll')} - label={t('plugins.updateAll')} + description={t("plugins.modal.updateAll")} + label={t("plugins.updateAll")} onClose={onClose} installedPlugins={installedPlugins} execute={this.updateAll} @@ -37,4 +37,4 @@ class UpdateAllActionModal extends React.Component<Props> { }; } -export default translate('admin')(UpdateAllActionModal); +export default translate("admin")(UpdateAllActionModal); diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/groupByCategory.ts b/scm-ui/ui-webapp/src/admin/plugins/components/groupByCategory.ts index 280509988d..91a56b496e 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/groupByCategory.ts +++ b/scm-ui/ui-webapp/src/admin/plugins/components/groupByCategory.ts @@ -1,4 +1,4 @@ -import { Plugin, PluginGroup } from '@scm-manager/ui-types'; +import { Plugin, PluginGroup } from "@scm-manager/ui-types"; export default function groupByCategory(plugins: Plugin[]): PluginGroup[] { let groups = {}; @@ -9,7 +9,7 @@ export default function groupByCategory(plugins: Plugin[]): PluginGroup[] { if (!group) { group = { name: groupName, - plugins: [], + plugins: [] }; groups[groupName] = group; } diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/waitForRestart.ts b/scm-ui/ui-webapp/src/admin/plugins/components/waitForRestart.ts index 3ab1b9ef28..48fbc8002c 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/waitForRestart.ts +++ b/scm-ui/ui-webapp/src/admin/plugins/components/waitForRestart.ts @@ -1,4 +1,4 @@ -import { apiClient } from '@scm-manager/ui-components'; +import { apiClient } from "@scm-manager/ui-components"; const waitForRestart = () => { const endTime = Number(new Date()) + 10000; @@ -11,13 +11,13 @@ const waitForRestart = () => { setTimeout(executor, 1000, resolve, reject); } else { apiClient - .get('') + .get("") .then(resolve) .catch(() => { if (Number(new Date()) < endTime) { setTimeout(executor, 500, resolve, reject); } else { - reject(new Error('timeout reached')); + reject(new Error("timeout reached")); } }); } diff --git a/scm-ui/ui-webapp/src/admin/plugins/containers/PluginsOverview.tsx b/scm-ui/ui-webapp/src/admin/plugins/containers/PluginsOverview.tsx index 376fa323a8..e67543cfbc 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/containers/PluginsOverview.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/containers/PluginsOverview.tsx @@ -1,8 +1,8 @@ -import * as React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { compose } from 'redux'; -import { PendingPlugins, PluginCollection } from '@scm-manager/ui-types'; +import * as React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { compose } from "redux"; +import { PendingPlugins, PluginCollection } from "@scm-manager/ui-types"; import { ButtonGroup, ErrorNotification, @@ -10,27 +10,27 @@ import { Notification, Subtitle, Title, - Button, -} from '@scm-manager/ui-components'; + Button +} from "@scm-manager/ui-components"; import { fetchPendingPlugins, fetchPluginsByLink, getFetchPluginsFailure, getPendingPlugins, getPluginCollection, - isFetchPluginsPending, -} from '../modules/plugins'; -import PluginsList from '../components/PluginList'; + isFetchPluginsPending +} from "../modules/plugins"; +import PluginsList from "../components/PluginList"; import { getAvailablePluginsLink, getInstalledPluginsLink, - getPendingPluginsLink, -} from '../../../modules/indexResource'; -import PluginTopActions from '../components/PluginTopActions'; -import PluginBottomActions from '../components/PluginBottomActions'; -import ExecutePendingActionModal from '../components/ExecutePendingActionModal'; -import CancelPendingActionModal from '../components/CancelPendingActionModal'; -import UpdateAllActionModal from '../components/UpdateAllActionModal'; + getPendingPluginsLink +} from "../../../modules/indexResource"; +import PluginTopActions from "../components/PluginTopActions"; +import PluginBottomActions from "../components/PluginBottomActions"; +import ExecutePendingActionModal from "../components/ExecutePendingActionModal"; +import CancelPendingActionModal from "../components/CancelPendingActionModal"; +import UpdateAllActionModal from "../components/UpdateAllActionModal"; type Props = { loading: boolean; @@ -63,7 +63,7 @@ class PluginsOverview extends React.Component<Props, State> { this.state = { showPendingModal: false, showUpdateAllModal: false, - showCancelModal: false, + showCancelModal: false }; } @@ -85,7 +85,7 @@ class PluginsOverview extends React.Component<Props, State> { availablePluginsLink, installedPluginsLink, pendingPluginsLink, - fetchPendingPlugins, + fetchPendingPlugins } = this.props; fetchPluginsByLink(installed ? installedPluginsLink : availablePluginsLink); if (pendingPluginsLink) { @@ -98,12 +98,12 @@ class PluginsOverview extends React.Component<Props, State> { return ( <div className="columns"> <div className="column"> - <Title title={t('plugins.title')} /> + <Title title={t("plugins.title")} /> <Subtitle subtitle={ installed - ? t('plugins.installedSubtitle') - : t('plugins.availableSubtitle') + ? t("plugins.installedSubtitle") + : t("plugins.availableSubtitle") } /> </div> @@ -132,15 +132,15 @@ class PluginsOverview extends React.Component<Props, State> { <Button color="primary" reducedMobile={true} - key={'executePending'} - icon={'arrow-circle-right'} - label={t('plugins.executePending')} + key={"executePending"} + icon={"arrow-circle-right"} + label={t("plugins.executePending")} action={() => this.setState({ - showPendingModal: true, + showPendingModal: true }) } - />, + /> ); } @@ -153,15 +153,15 @@ class PluginsOverview extends React.Component<Props, State> { <Button color="primary" reducedMobile={true} - key={'cancelPending'} - icon={'times'} - label={t('plugins.cancelPending')} + key={"cancelPending"} + icon={"times"} + label={t("plugins.cancelPending")} action={() => this.setState({ - showCancelModal: true, + showCancelModal: true }) } - />, + /> ); } @@ -170,15 +170,15 @@ class PluginsOverview extends React.Component<Props, State> { <Button color="primary" reducedMobile={true} - key={'updateAll'} - icon={'sync-alt'} + key={"updateAll"} + icon={"sync-alt"} label={this.computeUpdateAllSize()} action={() => this.setState({ - showUpdateAllModal: true, + showUpdateAllModal: true }) } - />, + /> ); } @@ -191,10 +191,10 @@ class PluginsOverview extends React.Component<Props, State> { computeUpdateAllSize = () => { const { collection, t } = this.props; const outdatedPlugins = collection._embedded.plugins.filter( - p => p._links.update, + p => p._links.update ).length; - return t('plugins.outdatedPlugins', { - count: outdatedPlugins, + return t("plugins.outdatedPlugins", { + count: outdatedPlugins }); }; @@ -226,7 +226,7 @@ class PluginsOverview extends React.Component<Props, State> { const { showPendingModal, showCancelModal, - showUpdateAllModal, + showUpdateAllModal } = this.state; if (showPendingModal) { @@ -234,7 +234,7 @@ class PluginsOverview extends React.Component<Props, State> { <ExecutePendingActionModal onClose={() => this.setState({ - showPendingModal: false, + showPendingModal: false }) } pendingPlugins={pendingPlugins} @@ -246,7 +246,7 @@ class PluginsOverview extends React.Component<Props, State> { <CancelPendingActionModal onClose={() => this.setState({ - showCancelModal: false, + showCancelModal: false }) } refresh={this.fetchPlugins} @@ -259,7 +259,7 @@ class PluginsOverview extends React.Component<Props, State> { <UpdateAllActionModal onClose={() => this.setState({ - showUpdateAllModal: false, + showUpdateAllModal: false }) } refresh={this.fetchPlugins} @@ -280,7 +280,7 @@ class PluginsOverview extends React.Component<Props, State> { /> ); } - return <Notification type="info">{t('plugins.noPlugins')}</Notification>; + return <Notification type="info">{t("plugins.noPlugins")}</Notification>; } } @@ -300,7 +300,7 @@ const mapStateToProps = state => { availablePluginsLink, installedPluginsLink, pendingPluginsLink, - pendingPlugins, + pendingPlugins }; }; @@ -311,14 +311,14 @@ const mapDispatchToProps = dispatch => { }, fetchPendingPlugins: (link: string) => { dispatch(fetchPendingPlugins(link)); - }, + } }; }; export default compose( - translate('admin'), + translate("admin"), connect( mapStateToProps, - mapDispatchToProps, - ), + mapDispatchToProps + ) )(PluginsOverview); diff --git a/scm-ui/ui-webapp/src/admin/plugins/modules/plugins.test.ts b/scm-ui/ui-webapp/src/admin/plugins/modules/plugins.test.ts index 450f622fdb..45d6ad3281 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/modules/plugins.test.ts +++ b/scm-ui/ui-webapp/src/admin/plugins/modules/plugins.test.ts @@ -1,6 +1,6 @@ -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import reducer, { FETCH_PLUGINS, FETCH_PLUGINS_PENDING, @@ -20,77 +20,77 @@ import reducer, { fetchPluginSuccess, getPlugin, isFetchPluginPending, - getFetchPluginFailure, -} from './plugins'; -import { Plugin, PluginCollection } from '@scm-manager/ui-types'; + getFetchPluginFailure +} from "./plugins"; +import { Plugin, PluginCollection } from "@scm-manager/ui-types"; const groupManagerPlugin: Plugin = { - name: 'scm-groupmanager-plugin', - bundles: ['/scm/groupmanager-plugin.bundle.js'], - type: 'Administration', - version: '2.0.0-SNAPSHOT', - author: 'Sebastian Sdorra', - description: 'Notify a remote webserver whenever a plugin is pushed to.', + name: "scm-groupmanager-plugin", + bundles: ["/scm/groupmanager-plugin.bundle.js"], + type: "Administration", + version: "2.0.0-SNAPSHOT", + author: "Sebastian Sdorra", + description: "Notify a remote webserver whenever a plugin is pushed to.", _links: { self: { - href: 'http://localhost:8081/api/v2/ui/plugins/scm-groupmanager-plugin', - }, - }, + href: "http://localhost:8081/api/v2/ui/plugins/scm-groupmanager-plugin" + } + } }; const scriptPlugin: Plugin = { - name: 'scm-script-plugin', - bundles: ['/scm/script-plugin.bundle.js'], - type: 'Miscellaneous', - version: '2.0.0-SNAPSHOT', - author: 'Sebastian Sdorra', - description: 'Script support for scm-manager.', + name: "scm-script-plugin", + bundles: ["/scm/script-plugin.bundle.js"], + type: "Miscellaneous", + version: "2.0.0-SNAPSHOT", + author: "Sebastian Sdorra", + description: "Script support for scm-manager.", _links: { self: { - href: 'http://localhost:8081/api/v2/ui/plugins/scm-script-plugin', - }, - }, + href: "http://localhost:8081/api/v2/ui/plugins/scm-script-plugin" + } + } }; const branchwpPlugin: Plugin = { - name: 'scm-branchwp-plugin', - bundles: ['/scm/branchwp-plugin.bundle.js'], - type: 'Miscellaneous', - version: '2.0.0-SNAPSHOT', - author: 'Sebastian Sdorra', - description: 'This plugin adds branch write protection for plugins.', + name: "scm-branchwp-plugin", + bundles: ["/scm/branchwp-plugin.bundle.js"], + type: "Miscellaneous", + version: "2.0.0-SNAPSHOT", + author: "Sebastian Sdorra", + description: "This plugin adds branch write protection for plugins.", _links: { self: { - href: 'http://localhost:8081/api/v2/ui/plugins/scm-branchwp-plugin', - }, - }, + href: "http://localhost:8081/api/v2/ui/plugins/scm-branchwp-plugin" + } + } }; const pluginCollectionWithNames: PluginCollection = { _links: { self: { - href: 'http://localhost:8081/api/v2/ui/plugins', - }, + href: "http://localhost:8081/api/v2/ui/plugins" + } }, _embedded: { - plugins: [groupManagerPlugin.name, scriptPlugin.name, branchwpPlugin.name], - }, + plugins: [groupManagerPlugin.name, scriptPlugin.name, branchwpPlugin.name] + } }; const pluginCollection: PluginCollection = { _links: { self: { - href: 'http://localhost:8081/api/v2/ui/plugins', - }, + href: "http://localhost:8081/api/v2/ui/plugins" + } }, _embedded: { - plugins: [groupManagerPlugin, scriptPlugin, branchwpPlugin], - }, + plugins: [groupManagerPlugin, scriptPlugin, branchwpPlugin] + } }; -describe('plugins fetch', () => { - const URL = 'ui/plugins'; - const PLUGINS_URL = '/api/v2/ui/plugins'; +describe("plugins fetch", () => { + const URL = "ui/plugins"; + const PLUGINS_URL = "/api/v2/ui/plugins"; const mockStore = configureMockStore([thunk]); afterEach(() => { @@ -98,17 +98,17 @@ describe('plugins fetch', () => { fetchMock.restore(); }); - it('should successfully fetch plugins from link', () => { + it("should successfully fetch plugins from link", () => { fetchMock.getOnce(PLUGINS_URL, pluginCollection); const expectedActions = [ { - type: FETCH_PLUGINS_PENDING, + type: FETCH_PLUGINS_PENDING }, { type: FETCH_PLUGINS_SUCCESS, - payload: pluginCollection, - }, + payload: pluginCollection + } ]; const store = mockStore({}); @@ -117,9 +117,9 @@ describe('plugins fetch', () => { }); }); - it('should dispatch FETCH_PLUGINS_FAILURE if request fails', () => { + it("should dispatch FETCH_PLUGINS_FAILURE if request fails", () => { fetchMock.getOnce(PLUGINS_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -131,72 +131,72 @@ describe('plugins fetch', () => { }); }); - it('should successfully fetch scm-groupmanager-plugin by name', () => { + it("should successfully fetch scm-groupmanager-plugin by name", () => { fetchMock.getOnce( - PLUGINS_URL + '/scm-groupmanager-plugin', - groupManagerPlugin, + PLUGINS_URL + "/scm-groupmanager-plugin", + groupManagerPlugin ); const expectedActions = [ { type: FETCH_PLUGIN_PENDING, payload: { - name: 'scm-groupmanager-plugin', + name: "scm-groupmanager-plugin" }, - itemId: 'scm-groupmanager-plugin', + itemId: "scm-groupmanager-plugin" }, { type: FETCH_PLUGIN_SUCCESS, payload: groupManagerPlugin, - itemId: 'scm-groupmanager-plugin', - }, + itemId: "scm-groupmanager-plugin" + } ]; const store = mockStore({}); return store - .dispatch(fetchPluginByName(URL, 'scm-groupmanager-plugin')) + .dispatch(fetchPluginByName(URL, "scm-groupmanager-plugin")) .then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should dispatch FETCH_PLUGIN_FAILURE, if the request for scm-groupmanager-plugin by name fails', () => { - fetchMock.getOnce(PLUGINS_URL + '/scm-groupmanager-plugin', { - status: 500, + it("should dispatch FETCH_PLUGIN_FAILURE, if the request for scm-groupmanager-plugin by name fails", () => { + fetchMock.getOnce(PLUGINS_URL + "/scm-groupmanager-plugin", { + status: 500 }); const store = mockStore({}); return store - .dispatch(fetchPluginByName(URL, 'scm-groupmanager-plugin')) + .dispatch(fetchPluginByName(URL, "scm-groupmanager-plugin")) .then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_PLUGIN_PENDING); expect(actions[1].type).toEqual(FETCH_PLUGIN_FAILURE); - expect(actions[1].payload.name).toBe('scm-groupmanager-plugin'); + expect(actions[1].payload.name).toBe("scm-groupmanager-plugin"); expect(actions[1].payload.error).toBeDefined(); - expect(actions[1].itemId).toBe('scm-groupmanager-plugin'); + expect(actions[1].itemId).toBe("scm-groupmanager-plugin"); }); }); - it('should successfully fetch scm-groupmanager-plugin', () => { + it("should successfully fetch scm-groupmanager-plugin", () => { fetchMock.getOnce( - 'http://localhost:8081/api/v2/ui/plugins/scm-groupmanager-plugin', - groupManagerPlugin, + "http://localhost:8081/api/v2/ui/plugins/scm-groupmanager-plugin", + groupManagerPlugin ); const expectedActions = [ { type: FETCH_PLUGIN_PENDING, payload: { - name: 'scm-groupmanager-plugin', + name: "scm-groupmanager-plugin" }, - itemId: 'scm-groupmanager-plugin', + itemId: "scm-groupmanager-plugin" }, { type: FETCH_PLUGIN_SUCCESS, payload: groupManagerPlugin, - itemId: 'scm-groupmanager-plugin', - }, + itemId: "scm-groupmanager-plugin" + } ]; const store = mockStore({}); @@ -205,12 +205,12 @@ describe('plugins fetch', () => { }); }); - it('should dispatch FETCH_PLUGIN_FAILURE, it the request for scm-groupmanager-plugin fails', () => { + it("should dispatch FETCH_PLUGIN_FAILURE, it the request for scm-groupmanager-plugin fails", () => { fetchMock.getOnce( - 'http://localhost:8081/api/v2/ui/plugins/scm-groupmanager-plugin', + "http://localhost:8081/api/v2/ui/plugins/scm-groupmanager-plugin", { - status: 500, - }, + status: 500 + } ); const store = mockStore({}); @@ -218,145 +218,145 @@ describe('plugins fetch', () => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_PLUGIN_PENDING); expect(actions[1].type).toEqual(FETCH_PLUGIN_FAILURE); - expect(actions[1].payload.name).toBe('scm-groupmanager-plugin'); + expect(actions[1].payload.name).toBe("scm-groupmanager-plugin"); expect(actions[1].payload.error).toBeDefined(); - expect(actions[1].itemId).toBe('scm-groupmanager-plugin'); + expect(actions[1].itemId).toBe("scm-groupmanager-plugin"); }); }); }); -describe('plugins reducer', () => { - it('should return empty object, if state and action is undefined', () => { +describe("plugins reducer", () => { + it("should return empty object, if state and action is undefined", () => { expect(reducer()).toEqual({}); }); - it('should return the same state, if the action is undefined', () => { + it("should return the same state, if the action is undefined", () => { const state = { - x: true, + x: true }; expect(reducer(state)).toBe(state); }); - it('should return the same state, if the action is unknown to the reducer', () => { + it("should return the same state, if the action is unknown to the reducer", () => { const state = { - x: true, + x: true }; expect( reducer(state, { - type: 'EL_SPECIALE', - }), + type: "EL_SPECIALE" + }) ).toBe(state); }); it("should store the plugins by it's type and name on FETCH_PLUGINS_SUCCESS", () => { const newState = reducer({}, fetchPluginsSuccess(pluginCollection)); expect(newState.list._embedded.plugins).toEqual([ - 'scm-groupmanager-plugin', - 'scm-script-plugin', - 'scm-branchwp-plugin', + "scm-groupmanager-plugin", + "scm-script-plugin", + "scm-branchwp-plugin" ]); - expect(newState.byNames['scm-groupmanager-plugin']).toBe( - groupManagerPlugin, + expect(newState.byNames["scm-groupmanager-plugin"]).toBe( + groupManagerPlugin ); - expect(newState.byNames['scm-script-plugin']).toBe(scriptPlugin); - expect(newState.byNames['scm-branchwp-plugin']).toBe(branchwpPlugin); + expect(newState.byNames["scm-script-plugin"]).toBe(scriptPlugin); + expect(newState.byNames["scm-branchwp-plugin"]).toBe(branchwpPlugin); }); - it('should store the plugin at byNames', () => { + it("should store the plugin at byNames", () => { const newState = reducer({}, fetchPluginSuccess(groupManagerPlugin)); - expect(newState.byNames['scm-groupmanager-plugin']).toBe( - groupManagerPlugin, + expect(newState.byNames["scm-groupmanager-plugin"]).toBe( + groupManagerPlugin ); }); }); -describe('plugins selectors', () => { - const error = new Error('something went wrong'); +describe("plugins selectors", () => { + const error = new Error("something went wrong"); - it('should return the plugins collection', () => { + it("should return the plugins collection", () => { const state = { plugins: { list: pluginCollectionWithNames, byNames: { - 'scm-groupmanager-plugin': groupManagerPlugin, - 'scm-script-plugin': scriptPlugin, - 'scm-branchwp-plugin': branchwpPlugin, - }, - }, + "scm-groupmanager-plugin": groupManagerPlugin, + "scm-script-plugin": scriptPlugin, + "scm-branchwp-plugin": branchwpPlugin + } + } }; const collection = getPluginCollection(state); expect(collection).toEqual(pluginCollection); }); - it('should return true, when fetch plugins is pending', () => { + it("should return true, when fetch plugins is pending", () => { const state = { pending: { - [FETCH_PLUGINS]: true, - }, + [FETCH_PLUGINS]: true + } }; expect(isFetchPluginsPending(state)).toEqual(true); }); - it('should return false, when fetch plugins is not pending', () => { + it("should return false, when fetch plugins is not pending", () => { expect(isFetchPluginsPending({})).toEqual(false); }); - it('should return error when fetch plugins did fail', () => { + it("should return error when fetch plugins did fail", () => { const state = { failure: { - [FETCH_PLUGINS]: error, - }, + [FETCH_PLUGINS]: error + } }; expect(getFetchPluginsFailure(state)).toEqual(error); }); - it('should return undefined when fetch plugins did not fail', () => { + it("should return undefined when fetch plugins did not fail", () => { expect(getFetchPluginsFailure({})).toBe(undefined); }); - it('should return the plugin collection', () => { + it("should return the plugin collection", () => { const state = { plugins: { byNames: { - 'scm-groupmanager-plugin': groupManagerPlugin, - }, - }, + "scm-groupmanager-plugin": groupManagerPlugin + } + } }; - const plugin = getPlugin(state, 'scm-groupmanager-plugin'); + const plugin = getPlugin(state, "scm-groupmanager-plugin"); expect(plugin).toEqual(groupManagerPlugin); }); - it('should return true, when fetch plugin is pending', () => { + it("should return true, when fetch plugin is pending", () => { const state = { pending: { - [FETCH_PLUGIN + '/scm-groupmanager-plugin']: true, - }, + [FETCH_PLUGIN + "/scm-groupmanager-plugin"]: true + } }; - expect(isFetchPluginPending(state, 'scm-groupmanager-plugin')).toEqual( - true, + expect(isFetchPluginPending(state, "scm-groupmanager-plugin")).toEqual( + true ); }); - it('should return false, when fetch plugin is not pending', () => { - expect(isFetchPluginPending({}, 'scm-groupmanager-plugin')).toEqual(false); + it("should return false, when fetch plugin is not pending", () => { + expect(isFetchPluginPending({}, "scm-groupmanager-plugin")).toEqual(false); }); - it('should return error when fetch plugin did fail', () => { + it("should return error when fetch plugin did fail", () => { const state = { failure: { - [FETCH_PLUGIN + '/scm-groupmanager-plugin']: error, - }, + [FETCH_PLUGIN + "/scm-groupmanager-plugin"]: error + } }; - expect(getFetchPluginFailure(state, 'scm-groupmanager-plugin')).toEqual( - error, + expect(getFetchPluginFailure(state, "scm-groupmanager-plugin")).toEqual( + error ); }); - it('should return undefined when fetch plugin did not fail', () => { - expect(getFetchPluginFailure({}, 'scm-groupmanager-plugin')).toBe( - undefined, + it("should return undefined when fetch plugin did not fail", () => { + expect(getFetchPluginFailure({}, "scm-groupmanager-plugin")).toBe( + undefined ); }); }); diff --git a/scm-ui/ui-webapp/src/admin/plugins/modules/plugins.ts b/scm-ui/ui-webapp/src/admin/plugins/modules/plugins.ts index e6b46d511c..412f3a2145 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/modules/plugins.ts +++ b/scm-ui/ui-webapp/src/admin/plugins/modules/plugins.ts @@ -1,20 +1,20 @@ -import * as types from '../../../modules/types'; -import { isPending } from '../../../modules/pending'; -import { getFailure } from '../../../modules/failure'; -import { Action, Plugin, PluginCollection } from '@scm-manager/ui-types'; -import { apiClient } from '@scm-manager/ui-components'; +import * as types from "../../../modules/types"; +import { isPending } from "../../../modules/pending"; +import { getFailure } from "../../../modules/failure"; +import { Action, Plugin, PluginCollection } from "@scm-manager/ui-types"; +import { apiClient } from "@scm-manager/ui-components"; -export const FETCH_PLUGINS = 'scm/plugins/FETCH_PLUGINS'; +export const FETCH_PLUGINS = "scm/plugins/FETCH_PLUGINS"; export const FETCH_PLUGINS_PENDING = `${FETCH_PLUGINS}_${types.PENDING_SUFFIX}`; export const FETCH_PLUGINS_SUCCESS = `${FETCH_PLUGINS}_${types.SUCCESS_SUFFIX}`; export const FETCH_PLUGINS_FAILURE = `${FETCH_PLUGINS}_${types.FAILURE_SUFFIX}`; -export const FETCH_PLUGIN = 'scm/plugins/FETCH_PLUGIN'; +export const FETCH_PLUGIN = "scm/plugins/FETCH_PLUGIN"; export const FETCH_PLUGIN_PENDING = `${FETCH_PLUGIN}_${types.PENDING_SUFFIX}`; export const FETCH_PLUGIN_SUCCESS = `${FETCH_PLUGIN}_${types.SUCCESS_SUFFIX}`; export const FETCH_PLUGIN_FAILURE = `${FETCH_PLUGIN}_${types.FAILURE_SUFFIX}`; -export const FETCH_PENDING_PLUGINS = 'scm/plugins/FETCH_PENDING_PLUGINS'; +export const FETCH_PENDING_PLUGINS = "scm/plugins/FETCH_PENDING_PLUGINS"; export const FETCH_PENDING_PLUGINS_PENDING = `${FETCH_PENDING_PLUGINS}_${types.PENDING_SUFFIX}`; export const FETCH_PENDING_PLUGINS_SUCCESS = `${FETCH_PENDING_PLUGINS}_${types.SUCCESS_SUFFIX}`; export const FETCH_PENDING_PLUGINS_FAILURE = `${FETCH_PENDING_PLUGINS}_${types.FAILURE_SUFFIX}`; @@ -37,21 +37,21 @@ export function fetchPluginsByLink(link: string) { export function fetchPluginsPending(): Action { return { - type: FETCH_PLUGINS_PENDING, + type: FETCH_PLUGINS_PENDING }; } export function fetchPluginsSuccess(plugins: PluginCollection): Action { return { type: FETCH_PLUGINS_SUCCESS, - payload: plugins, + payload: plugins }; } export function fetchPluginsFailure(err: Error): Action { return { type: FETCH_PLUGINS_FAILURE, - payload: err, + payload: err }; } @@ -61,7 +61,7 @@ export function fetchPluginByLink(plugin: Plugin) { } export function fetchPluginByName(link: string, name: string) { - const pluginUrl = link.endsWith('/') ? link : link + '/'; + const pluginUrl = link.endsWith("/") ? link : link + "/"; return fetchPlugin(pluginUrl + name, name); } @@ -84,9 +84,9 @@ export function fetchPluginPending(name: string): Action { return { type: FETCH_PLUGIN_PENDING, payload: { - name, + name }, - itemId: name, + itemId: name }; } @@ -94,7 +94,7 @@ export function fetchPluginSuccess(plugin: Plugin): Action { return { type: FETCH_PLUGIN_SUCCESS, payload: plugin, - itemId: plugin.name, + itemId: plugin.name }; } @@ -103,9 +103,9 @@ export function fetchPluginFailure(name: string, error: Error): Action { type: FETCH_PLUGIN_FAILURE, payload: { name, - error, + error }, - itemId: name, + itemId: name }; } @@ -127,21 +127,21 @@ export function fetchPendingPlugins(link: string) { export function fetchPendingPluginsPending(): Action { return { - type: FETCH_PENDING_PLUGINS_PENDING, + type: FETCH_PENDING_PLUGINS_PENDING }; } export function fetchPendingPluginsSuccess(PendingPlugins: {}): Action { return { type: FETCH_PENDING_PLUGINS_SUCCESS, - payload: PendingPlugins, + payload: PendingPlugins }; } export function fetchPendingPluginsFailure(err: Error): Action { return { type: FETCH_PENDING_PLUGINS_FAILURE, - payload: err, + payload: err }; } @@ -158,10 +158,10 @@ function normalizeByName(state: object, pluginCollection: PluginCollection) { list: { ...pluginCollection, _embedded: { - plugins: names, - }, + plugins: names + } }, - byNames: byNames, + byNames: byNames }; } @@ -170,16 +170,16 @@ const reducerByNames = (state: object, plugin: Plugin) => { ...state, byNames: { ...state.byNames, - [plugin.name]: plugin, - }, + [plugin.name]: plugin + } }; }; export default function reducer( state: object = {}, action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): object { if (!action.payload) { return state; @@ -193,7 +193,7 @@ export default function reducer( case FETCH_PENDING_PLUGINS_SUCCESS: return { ...state, - pending: action.payload, + pending: action.payload }; default: return state; @@ -210,8 +210,8 @@ export function getPluginCollection(state: object) { return { ...state.plugins.list, _embedded: { - plugins, - }, + plugins + } }; } } diff --git a/scm-ui/ui-webapp/src/admin/roles/components/AvailableVerbs.tsx b/scm-ui/ui-webapp/src/admin/roles/components/AvailableVerbs.tsx index d2972be6c7..b0f3803853 100644 --- a/scm-ui/ui-webapp/src/admin/roles/components/AvailableVerbs.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/components/AvailableVerbs.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { RepositoryRole } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import { RepositoryRole } from "@scm-manager/ui-types"; type Props = { role: RepositoryRole; @@ -21,7 +21,7 @@ class AvailableVerbs extends React.Component<Props> { <ul> {role.verbs.map(verb => { return ( - <li>{t('verbs.repository.' + verb + '.displayName')}</li> + <li>{t("verbs.repository." + verb + ".displayName")}</li> ); })} </ul> @@ -33,4 +33,4 @@ class AvailableVerbs extends React.Component<Props> { } } -export default translate('plugins')(AvailableVerbs); +export default translate("plugins")(AvailableVerbs); diff --git a/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleDetails.tsx b/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleDetails.tsx index 0b90e5f0f6..3a388a5f38 100644 --- a/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleDetails.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleDetails.tsx @@ -1,9 +1,9 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { RepositoryRole } from '@scm-manager/ui-types'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; -import PermissionRoleDetailsTable from './PermissionRoleDetailsTable'; -import { Button } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { RepositoryRole } from "@scm-manager/ui-types"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import PermissionRoleDetailsTable from "./PermissionRoleDetailsTable"; +import { Button } from "@scm-manager/ui-components"; type Props = { role: RepositoryRole; @@ -19,7 +19,7 @@ class PermissionRoleDetails extends React.Component<Props> { if (!!this.props.role._links.update) { return ( <Button - label={t('repositoryRole.editButton')} + label={t("repositoryRole.editButton")} link={`${url}/edit`} color="primary" /> @@ -40,7 +40,7 @@ class PermissionRoleDetails extends React.Component<Props> { name="repositoryRole.role-details.information" renderAll={true} props={{ - role, + role }} /> </> @@ -48,4 +48,4 @@ class PermissionRoleDetails extends React.Component<Props> { } } -export default translate('admin')(PermissionRoleDetails); +export default translate("admin")(PermissionRoleDetails); diff --git a/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleDetailsTable.tsx b/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleDetailsTable.tsx index b8bf9181fe..aab4c2f973 100644 --- a/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleDetailsTable.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleDetailsTable.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { RepositoryRole } from '@scm-manager/ui-types'; -import { translate } from 'react-i18next'; -import AvailableVerbs from './AvailableVerbs'; +import React from "react"; +import { RepositoryRole } from "@scm-manager/ui-types"; +import { translate } from "react-i18next"; +import AvailableVerbs from "./AvailableVerbs"; type Props = { role: RepositoryRole; @@ -17,15 +17,15 @@ class PermissionRoleDetailsTable extends React.Component<Props> { <table className="table content"> <tbody> <tr> - <th>{t('repositoryRole.name')}</th> + <th>{t("repositoryRole.name")}</th> <td>{role.name}</td> </tr> <tr> - <th>{t('repositoryRole.type')}</th> + <th>{t("repositoryRole.type")}</th> <td>{role.type}</td> </tr> <tr> - <th>{t('repositoryRole.verbs')}</th> + <th>{t("repositoryRole.verbs")}</th> <AvailableVerbs role={role} /> </tr> </tbody> @@ -34,4 +34,4 @@ class PermissionRoleDetailsTable extends React.Component<Props> { } } -export default translate('admin')(PermissionRoleDetailsTable); +export default translate("admin")(PermissionRoleDetailsTable); diff --git a/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleRow.tsx b/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleRow.tsx index 40219dce25..987f271d67 100644 --- a/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleRow.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleRow.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { Link } from 'react-router-dom'; -import { RepositoryRole } from '@scm-manager/ui-types'; -import SystemRoleTag from './SystemRoleTag'; +import React from "react"; +import { Link } from "react-router-dom"; +import { RepositoryRole } from "@scm-manager/ui-types"; +import SystemRoleTag from "./SystemRoleTag"; type Props = { baseUrl: string; diff --git a/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleTable.tsx b/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleTable.tsx index 12c7b9a3c9..5936095752 100644 --- a/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleTable.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/components/PermissionRoleTable.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { RepositoryRole } from '@scm-manager/ui-types'; -import PermissionRoleRow from './PermissionRoleRow'; +import React from "react"; +import { translate } from "react-i18next"; +import { RepositoryRole } from "@scm-manager/ui-types"; +import PermissionRoleRow from "./PermissionRoleRow"; type Props = { baseUrl: string; @@ -18,7 +18,7 @@ class PermissionRoleTable extends React.Component<Props> { <table className="card-table table is-hoverable is-fullwidth"> <thead> <tr> - <th>{t('repositoryRole.name')}</th> + <th>{t("repositoryRole.name")}</th> </tr> </thead> <tbody> @@ -33,4 +33,4 @@ class PermissionRoleTable extends React.Component<Props> { } } -export default translate('admin')(PermissionRoleTable); +export default translate("admin")(PermissionRoleTable); diff --git a/scm-ui/ui-webapp/src/admin/roles/components/SystemRoleTag.tsx b/scm-ui/ui-webapp/src/admin/roles/components/SystemRoleTag.tsx index 6e3fd93114..4931bf6f32 100644 --- a/scm-ui/ui-webapp/src/admin/roles/components/SystemRoleTag.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/components/SystemRoleTag.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import styled from 'styled-components'; -import { Tag } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import styled from "styled-components"; +import { Tag } from "@scm-manager/ui-components"; type Props = { system?: boolean; @@ -20,10 +20,10 @@ class SystemRoleTag extends React.Component<Props> { const { system, t } = this.props; if (system) { - return <LeftMarginTag color="dark" label={t('repositoryRole.system')} />; + return <LeftMarginTag color="dark" label={t("repositoryRole.system")} />; } return null; } } -export default translate('admin')(SystemRoleTag); +export default translate("admin")(SystemRoleTag); diff --git a/scm-ui/ui-webapp/src/admin/roles/containers/CreateRepositoryRole.tsx b/scm-ui/ui-webapp/src/admin/roles/containers/CreateRepositoryRole.tsx index 2595f63487..fa9e181bfa 100644 --- a/scm-ui/ui-webapp/src/admin/roles/containers/CreateRepositoryRole.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/containers/CreateRepositoryRole.tsx @@ -1,20 +1,20 @@ -import React from 'react'; -import RepositoryRoleForm from './RepositoryRoleForm'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { ErrorNotification, Subtitle, Title } from '@scm-manager/ui-components'; +import React from "react"; +import RepositoryRoleForm from "./RepositoryRoleForm"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { ErrorNotification, Subtitle, Title } from "@scm-manager/ui-components"; import { createRole, getCreateRoleFailure, getFetchVerbsFailure, - isFetchVerbsPending, -} from '../modules/roles'; -import { RepositoryRole } from '@scm-manager/ui-types'; + isFetchVerbsPending +} from "../modules/roles"; +import { RepositoryRole } from "@scm-manager/ui-types"; import { getRepositoryRolesLink, - getRepositoryVerbsLink, -} from '../../../modules/indexResource'; -import { History } from 'history'; + getRepositoryVerbsLink +} from "../../../modules/indexResource"; +import { History } from "history"; type Props = { repositoryRolesLink: string; @@ -31,12 +31,12 @@ type Props = { class CreateRepositoryRole extends React.Component<Props> { repositoryRoleCreated = (role: RepositoryRole) => { const { history } = this.props; - history.push('/admin/role/' + role.name + '/info'); + history.push("/admin/role/" + role.name + "/info"); }; createRepositoryRole = (role: RepositoryRole) => { this.props.addRole(this.props.repositoryRolesLink, role, () => - this.repositoryRoleCreated(role), + this.repositoryRoleCreated(role) ); }; @@ -49,8 +49,8 @@ class CreateRepositoryRole extends React.Component<Props> { return ( <> - <Title title={t('repositoryRole.title')} /> - <Subtitle subtitle={t('repositoryRole.createSubtitle')} /> + <Title title={t("repositoryRole.title")} /> + <Subtitle subtitle={t("repositoryRole.createSubtitle")} /> <RepositoryRoleForm submitForm={role => this.createRepositoryRole(role)} /> @@ -69,7 +69,7 @@ const mapStateToProps = (state, ownProps) => { loading, error, verbsLink, - repositoryRolesLink, + repositoryRolesLink }; }; @@ -77,11 +77,11 @@ const mapDispatchToProps = dispatch => { return { addRole: (link: string, role: RepositoryRole, callback?: () => void) => { dispatch(createRole(link, role, callback)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('admin')(CreateRepositoryRole)); + mapDispatchToProps +)(translate("admin")(CreateRepositoryRole)); diff --git a/scm-ui/ui-webapp/src/admin/roles/containers/DeleteRepositoryRole.tsx b/scm-ui/ui-webapp/src/admin/roles/containers/DeleteRepositoryRole.tsx index bb68610bb4..440ccf2b49 100644 --- a/scm-ui/ui-webapp/src/admin/roles/containers/DeleteRepositoryRole.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/containers/DeleteRepositoryRole.tsx @@ -1,20 +1,20 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { RepositoryRole } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import { RepositoryRole } from "@scm-manager/ui-types"; import { Subtitle, DeleteButton, confirmAlert, - ErrorNotification, -} from '@scm-manager/ui-components'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import { History } from 'history'; + ErrorNotification +} from "@scm-manager/ui-components"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import { History } from "history"; import { deleteRole, getDeleteRoleFailure, - isDeleteRolePending, -} from '../modules/roles'; + isDeleteRolePending +} from "../modules/roles"; type Props = { loading: boolean; @@ -30,11 +30,11 @@ type Props = { class DeleteRepositoryRole extends React.Component<Props> { static defaultProps = { - confirmDialog: true, + confirmDialog: true }; roleDeleted = () => { - this.props.history.push('/admin/roles/'); + this.props.history.push("/admin/roles/"); }; deleteRole = () => { @@ -44,18 +44,18 @@ class DeleteRepositoryRole extends React.Component<Props> { confirmDelete = () => { const { t } = this.props; confirmAlert({ - title: t('repositoryRole.delete.confirmAlert.title'), - message: t('repositoryRole.delete.confirmAlert.message'), + title: t("repositoryRole.delete.confirmAlert.title"), + message: t("repositoryRole.delete.confirmAlert.message"), buttons: [ { - label: t('repositoryRole.delete.confirmAlert.submit'), - onClick: () => this.deleteRole(), + label: t("repositoryRole.delete.confirmAlert.submit"), + onClick: () => this.deleteRole() }, { - label: t('repositoryRole.delete.confirmAlert.cancel'), - onClick: () => null, - }, - ], + label: t("repositoryRole.delete.confirmAlert.cancel"), + onClick: () => null + } + ] }); }; @@ -73,12 +73,12 @@ class DeleteRepositoryRole extends React.Component<Props> { return ( <> - <Subtitle subtitle={t('repositoryRole.delete.subtitle')} /> + <Subtitle subtitle={t("repositoryRole.delete.subtitle")} /> <div className="columns"> <div className="column"> <ErrorNotification error={error} /> <DeleteButton - label={t('repositoryRole.delete.button')} + label={t("repositoryRole.delete.button")} action={action} loading={loading} /> @@ -94,7 +94,7 @@ const mapStateToProps = (state, ownProps) => { const error = getDeleteRoleFailure(state, ownProps.role.name); return { loading, - error, + error }; }; @@ -102,11 +102,11 @@ const mapDispatchToProps = dispatch => { return { deleteRole: (role: RepositoryRole, callback?: () => void) => { dispatch(deleteRole(role, callback)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(withRouter(translate('admin')(DeleteRepositoryRole))); + mapDispatchToProps +)(withRouter(translate("admin")(DeleteRepositoryRole))); diff --git a/scm-ui/ui-webapp/src/admin/roles/containers/EditRepositoryRole.tsx b/scm-ui/ui-webapp/src/admin/roles/containers/EditRepositoryRole.tsx index 5bb158bf58..a43fd38fcf 100644 --- a/scm-ui/ui-webapp/src/admin/roles/containers/EditRepositoryRole.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/containers/EditRepositoryRole.tsx @@ -1,16 +1,16 @@ -import React from 'react'; -import RepositoryRoleForm from './RepositoryRoleForm'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; +import React from "react"; +import RepositoryRoleForm from "./RepositoryRoleForm"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; import { getModifyRoleFailure, isModifyRolePending, - modifyRole, -} from '../modules/roles'; -import { ErrorNotification, Subtitle } from '@scm-manager/ui-components'; -import { RepositoryRole } from '@scm-manager/ui-types'; -import { History } from 'history'; -import DeleteRepositoryRole from './DeleteRepositoryRole'; + modifyRole +} from "../modules/roles"; +import { ErrorNotification, Subtitle } from "@scm-manager/ui-components"; +import { RepositoryRole } from "@scm-manager/ui-types"; +import { History } from "history"; +import DeleteRepositoryRole from "./DeleteRepositoryRole"; type Props = { disabled: boolean; @@ -28,7 +28,7 @@ type Props = { class EditRepositoryRole extends React.Component<Props> { repositoryRoleUpdated = () => { - this.props.history.push('/admin/roles/'); + this.props.history.push("/admin/roles/"); }; updateRepositoryRole = (role: RepositoryRole) => { @@ -44,7 +44,7 @@ class EditRepositoryRole extends React.Component<Props> { return ( <> - <Subtitle subtitle={t('repositoryRole.editSubtitle')} /> + <Subtitle subtitle={t("repositoryRole.editSubtitle")} /> <RepositoryRoleForm role={this.props.role} submitForm={role => this.updateRepositoryRole(role)} @@ -62,7 +62,7 @@ const mapStateToProps = (state, ownProps) => { return { loading, - error, + error }; }; @@ -70,11 +70,11 @@ const mapDispatchToProps = dispatch => { return { updateRole: (role: RepositoryRole, callback?: () => void) => { dispatch(modifyRole(role, callback)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('admin')(EditRepositoryRole)); + mapDispatchToProps +)(translate("admin")(EditRepositoryRole)); diff --git a/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoleForm.tsx b/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoleForm.tsx index 322f08b040..de84a606f0 100644 --- a/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoleForm.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoleForm.tsx @@ -1,19 +1,19 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { RepositoryRole } from '@scm-manager/ui-types'; -import { InputField, SubmitButton } from '@scm-manager/ui-components'; -import PermissionCheckbox from '../../../repos/permissions/components/PermissionCheckbox'; +import React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { RepositoryRole } from "@scm-manager/ui-types"; +import { InputField, SubmitButton } from "@scm-manager/ui-components"; +import PermissionCheckbox from "../../../repos/permissions/components/PermissionCheckbox"; import { fetchAvailableVerbs, getFetchVerbsFailure, getVerbsFromState, - isFetchVerbsPending, -} from '../modules/roles'; + isFetchVerbsPending +} from "../modules/roles"; import { getRepositoryRolesLink, - getRepositoryVerbsLink, -} from '../../../modules/indexResource'; + getRepositoryVerbsLink +} from "../../../modules/indexResource"; type Props = { role?: RepositoryRole; @@ -39,11 +39,11 @@ class RepositoryRoleForm extends React.Component<Props, State> { this.state = { role: { - name: '', + name: "", verbs: [], system: false, - _links: {}, - }, + _links: {} + } }; } @@ -52,7 +52,7 @@ class RepositoryRoleForm extends React.Component<Props, State> { fetchAvailableVerbs(verbsLink); if (this.props.role) { this.setState({ - role: this.props.role, + role: this.props.role }); } } @@ -74,8 +74,8 @@ class RepositoryRoleForm extends React.Component<Props, State> { this.setState({ role: { ...this.state.role, - name, - }, + name + } }); }; @@ -90,8 +90,8 @@ class RepositoryRoleForm extends React.Component<Props, State> { ...this.state, role: { ...role, - verbs: newVerbs, - }, + verbs: newVerbs + } }); }; @@ -121,21 +121,21 @@ class RepositoryRoleForm extends React.Component<Props, State> { <form onSubmit={this.submit}> <InputField name="name" - label={t('repositoryRole.form.name')} + label={t("repositoryRole.form.name")} onChange={this.handleNameChange} - value={role.name ? role.name : ''} + value={role.name ? role.name : ""} disabled={!!this.props.role} /> <div className="field"> <label className="label"> - {t('repositoryRole.form.permissions')} + {t("repositoryRole.form.permissions")} </label> {verbSelectBoxes} </div> <hr /> <SubmitButton loading={loading} - label={t('repositoryRole.form.submit')} + label={t("repositoryRole.form.submit")} disabled={!this.isValid()} /> </form> @@ -155,7 +155,7 @@ const mapStateToProps = (state, ownProps) => { error, verbsLink, availableVerbs, - repositoryRolesLink, + repositoryRolesLink }; }; @@ -163,11 +163,11 @@ const mapDispatchToProps = dispatch => { return { fetchAvailableVerbs: (link: string) => { dispatch(fetchAvailableVerbs(link)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('admin')(RepositoryRoleForm)); + mapDispatchToProps +)(translate("admin")(RepositoryRoleForm)); diff --git a/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoles.tsx b/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoles.tsx index d577c3d869..ca31b09ad0 100644 --- a/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoles.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoles.tsx @@ -1,9 +1,9 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import { translate } from 'react-i18next'; -import { History } from 'history'; -import { RepositoryRole, PagedCollection } from '@scm-manager/ui-types'; +import React from "react"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import { translate } from "react-i18next"; +import { History } from "history"; +import { RepositoryRole, PagedCollection } from "@scm-manager/ui-types"; import { Title, Subtitle, @@ -11,18 +11,18 @@ import { Notification, LinkPaginator, urls, - CreateButton, -} from '@scm-manager/ui-components'; + CreateButton +} from "@scm-manager/ui-components"; import { fetchRolesByPage, getRolesFromState, selectListAsCollection, isPermittedToCreateRoles, isFetchRolesPending, - getFetchRolesFailure, -} from '../modules/roles'; -import PermissionRoleTable from '../components/PermissionRoleTable'; -import { getRepositoryRolesLink } from '../../../modules/indexResource'; + getFetchRolesFailure +} from "../modules/roles"; +import PermissionRoleTable from "../components/PermissionRoleTable"; +import { getRepositoryRolesLink } from "../../../modules/indexResource"; type Props = { baseUrl: string; @@ -56,7 +56,7 @@ class RepositoryRoles extends React.Component<Props> { page, rolesLink, location, - fetchRolesByPage, + fetchRolesByPage } = this.props; if (list && page && !loading) { const statePage: number = list.page + 1; @@ -75,8 +75,8 @@ class RepositoryRoles extends React.Component<Props> { return ( <> - <Title title={t('repositoryRole.title')} /> - <Subtitle subtitle={t('repositoryRole.overview.title')} /> + <Title title={t("repositoryRole.title")} /> + <Subtitle subtitle={t("repositoryRole.overview.title")} /> {this.renderPermissionsTable()} {this.renderCreateButton()} </> @@ -95,7 +95,7 @@ class RepositoryRoles extends React.Component<Props> { } return ( <Notification type="info"> - {t('repositoryRole.overview.noPermissionRoles')} + {t("repositoryRole.overview.noPermissionRoles")} </Notification> ); } @@ -105,7 +105,7 @@ class RepositoryRoles extends React.Component<Props> { if (canAddRoles) { return ( <CreateButton - label={t('repositoryRole.overview.createButton')} + label={t("repositoryRole.overview.createButton")} link={`${baseUrl}/create`} /> ); @@ -131,7 +131,7 @@ const mapStateToProps = (state, ownProps) => { canAddRoles, list, page, - rolesLink, + rolesLink }; }; @@ -139,13 +139,13 @@ const mapDispatchToProps = dispatch => { return { fetchRolesByPage: (link: string, page: number) => { dispatch(fetchRolesByPage(link, page)); - }, + } }; }; export default withRouter( connect( mapStateToProps, - mapDispatchToProps, - )(translate('admin')(RepositoryRoles)), + mapDispatchToProps + )(translate("admin")(RepositoryRoles)) ); diff --git a/scm-ui/ui-webapp/src/admin/roles/containers/SingleRepositoryRole.tsx b/scm-ui/ui-webapp/src/admin/roles/containers/SingleRepositoryRole.tsx index cadaafbd19..8b9e3c3384 100644 --- a/scm-ui/ui-webapp/src/admin/roles/containers/SingleRepositoryRole.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/containers/SingleRepositoryRole.tsx @@ -1,21 +1,21 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { Loading, ErrorPage, Title } from '@scm-manager/ui-components'; -import { Route } from 'react-router-dom'; -import { History } from 'history'; -import { translate } from 'react-i18next'; -import { RepositoryRole } from '@scm-manager/ui-types'; -import { getRepositoryRolesLink } from '../../../modules/indexResource'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; +import React from "react"; +import { connect } from "react-redux"; +import { Loading, ErrorPage, Title } from "@scm-manager/ui-components"; +import { Route } from "react-router-dom"; +import { History } from "history"; +import { translate } from "react-i18next"; +import { RepositoryRole } from "@scm-manager/ui-types"; +import { getRepositoryRolesLink } from "../../../modules/indexResource"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; import { fetchRoleByName, getFetchRoleFailure, getRoleByName, - isFetchRolePending, -} from '../modules/roles'; -import { withRouter } from 'react-router-dom'; -import PermissionRoleDetail from '../components/PermissionRoleDetails'; -import EditRepositoryRole from './EditRepositoryRole'; + isFetchRolePending +} from "../modules/roles"; +import { withRouter } from "react-router-dom"; +import PermissionRoleDetail from "../components/PermissionRoleDetails"; +import EditRepositoryRole from "./EditRepositoryRole"; type Props = { roleName: string; @@ -38,12 +38,12 @@ class SingleRepositoryRole extends React.Component<Props> { componentDidMount() { this.props.fetchRoleByName( this.props.repositoryRolesLink, - this.props.roleName, + this.props.roleName ); } stripEndingSlash = (url: string) => { - if (url.endsWith('/')) { + if (url.endsWith("/")) { return url.substring(0, url.length - 2); } return url; @@ -59,8 +59,8 @@ class SingleRepositoryRole extends React.Component<Props> { if (error) { return ( <ErrorPage - title={t('repositoryRole.errorTitle')} - subtitle={t('repositoryRole.errorSubtitle')} + title={t("repositoryRole.errorTitle")} + subtitle={t("repositoryRole.errorSubtitle")} error={error} /> ); @@ -74,12 +74,12 @@ class SingleRepositoryRole extends React.Component<Props> { const extensionProps = { role, - url, + url }; return ( <> - <Title title={t('repositoryRole.title')} /> + <Title title={t("repositoryRole.title")} /> <Route path={`${url}/info`} component={() => <PermissionRoleDetail role={role} url={url} />} @@ -112,7 +112,7 @@ const mapStateToProps = (state, ownProps) => { roleName, role, loading, - error, + error }; }; @@ -120,13 +120,13 @@ const mapDispatchToProps = dispatch => { return { fetchRoleByName: (link: string, name: string) => { dispatch(fetchRoleByName(link, name)); - }, + } }; }; export default withRouter( connect( mapStateToProps, - mapDispatchToProps, - )(translate('admin')(SingleRepositoryRole)), + mapDispatchToProps + )(translate("admin")(SingleRepositoryRole)) ); diff --git a/scm-ui/ui-webapp/src/admin/roles/modules/roles.test.ts b/scm-ui/ui-webapp/src/admin/roles/modules/roles.test.ts index d0958d911a..c2dd79c843 100644 --- a/scm-ui/ui-webapp/src/admin/roles/modules/roles.test.ts +++ b/scm-ui/ui-webapp/src/admin/roles/modules/roles.test.ts @@ -1,6 +1,6 @@ -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import reducer, { FETCH_ROLES, @@ -45,42 +45,42 @@ import reducer, { deleteRoleSuccess, getDeleteRoleFailure, selectListAsCollection, - isPermittedToCreateRoles, -} from './roles'; + isPermittedToCreateRoles +} from "./roles"; const role1 = { - name: 'specialrole', - verbs: ['read', 'pull', 'push', 'readPullRequest'], + name: "specialrole", + verbs: ["read", "pull", "push", "readPullRequest"], system: false, _links: { self: { - href: 'http://localhost:8081/scm/api/v2/repositoryRoles/specialrole', + href: "http://localhost:8081/scm/api/v2/repositoryRoles/specialrole" }, delete: { - href: 'http://localhost:8081/scm/api/v2/repositoryRoles/specialrole', + href: "http://localhost:8081/scm/api/v2/repositoryRoles/specialrole" }, update: { - href: 'http://localhost:8081/scm/api/v2/repositoryRoles/specialrole', - }, - }, + href: "http://localhost:8081/scm/api/v2/repositoryRoles/specialrole" + } + } }; const role2 = { - name: 'WRITE', + name: "WRITE", verbs: [ - 'read', - 'pull', - 'push', - 'createPullRequest', - 'readPullRequest', - 'commentPullRequest', - 'mergePullRequest', + "read", + "pull", + "push", + "createPullRequest", + "readPullRequest", + "commentPullRequest", + "mergePullRequest" ], system: true, _links: { self: { - href: 'http://localhost:8081/scm/api/v2/repositoryRoles/WRITE', - }, - }, + href: "http://localhost:8081/scm/api/v2/repositoryRoles/WRITE" + } + } }; const responseBody = { @@ -89,57 +89,57 @@ const responseBody = { _links: { self: { href: - 'http://localhost:8081/scm/api/v2/repositoryRoles/?page=0&pageSize=10', + "http://localhost:8081/scm/api/v2/repositoryRoles/?page=0&pageSize=10" }, first: { href: - 'http://localhost:8081/scm/api/v2/repositoryRoles/?page=0&pageSize=10', + "http://localhost:8081/scm/api/v2/repositoryRoles/?page=0&pageSize=10" }, last: { href: - 'http://localhost:8081/scm/api/v2/repositoryRoles/?page=0&pageSize=10', + "http://localhost:8081/scm/api/v2/repositoryRoles/?page=0&pageSize=10" }, create: { - href: 'http://localhost:8081/scm/api/v2/repositoryRoles/', - }, + href: "http://localhost:8081/scm/api/v2/repositoryRoles/" + } }, _embedded: { - repositoryRoles: [role1, role2], - }, + repositoryRoles: [role1, role2] + } }; const response = { headers: { - 'content-type': 'application/json', + "content-type": "application/json" }, - responseBody, + responseBody }; -const URL = 'repositoryRoles'; -const ROLES_URL = '/api/v2/repositoryRoles'; +const URL = "repositoryRoles"; +const ROLES_URL = "/api/v2/repositoryRoles"; const ROLE1_URL = - 'http://localhost:8081/scm/api/v2/repositoryRoles/specialrole'; + "http://localhost:8081/scm/api/v2/repositoryRoles/specialrole"; -const error = new Error('FEHLER!'); +const error = new Error("FEHLER!"); -describe('repository roles fetch', () => { +describe("repository roles fetch", () => { const mockStore = configureMockStore([thunk]); afterEach(() => { fetchMock.reset(); fetchMock.restore(); }); - it('should successfully fetch repository roles', () => { + it("should successfully fetch repository roles", () => { fetchMock.getOnce(ROLES_URL, response); const expectedActions = [ { - type: FETCH_ROLES_PENDING, + type: FETCH_ROLES_PENDING }, { type: FETCH_ROLES_SUCCESS, - payload: response, - }, + payload: response + } ]; const store = mockStore({}); @@ -149,9 +149,9 @@ describe('repository roles fetch', () => { }); }); - it('should fail getting repository roles on HTTP 500', () => { + it("should fail getting repository roles on HTTP 500", () => { fetchMock.getOnce(ROLES_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -164,11 +164,11 @@ describe('repository roles fetch', () => { }); }); - it('should sucessfully fetch single role by name', () => { - fetchMock.getOnce(ROLES_URL + '/specialrole', role1); + it("should sucessfully fetch single role by name", () => { + fetchMock.getOnce(ROLES_URL + "/specialrole", role1); const store = mockStore({}); - return store.dispatch(fetchRoleByName(URL, 'specialrole')).then(() => { + return store.dispatch(fetchRoleByName(URL, "specialrole")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_ROLE_PENDING); expect(actions[1].type).toEqual(FETCH_ROLE_SUCCESS); @@ -176,13 +176,13 @@ describe('repository roles fetch', () => { }); }); - it('should fail fetching single role by name on HTTP 500', () => { - fetchMock.getOnce(ROLES_URL + '/specialrole', { - status: 500, + it("should fail fetching single role by name on HTTP 500", () => { + fetchMock.getOnce(ROLES_URL + "/specialrole", { + status: 500 }); const store = mockStore({}); - return store.dispatch(fetchRoleByName(URL, 'specialrole')).then(() => { + return store.dispatch(fetchRoleByName(URL, "specialrole")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_ROLE_PENDING); expect(actions[1].type).toEqual(FETCH_ROLE_FAILURE); @@ -190,7 +190,7 @@ describe('repository roles fetch', () => { }); }); - it('should sucessfully fetch single role', () => { + it("should sucessfully fetch single role", () => { fetchMock.getOnce(ROLE1_URL, role1); const store = mockStore({}); @@ -202,9 +202,9 @@ describe('repository roles fetch', () => { }); }); - it('should fail fetching single role on HTTP 500', () => { + it("should fail fetching single role on HTTP 500", () => { fetchMock.getOnce(ROLE1_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -216,10 +216,10 @@ describe('repository roles fetch', () => { }); }); - it('should add a role successfully', () => { + it("should add a role successfully", () => { // unmatched fetchMock.postOnce(ROLES_URL, { - status: 204, + status: 204 }); // after create, the roles are fetched again @@ -234,9 +234,9 @@ describe('repository roles fetch', () => { }); }); - it('should fail adding a role on HTTP 500', () => { + it("should fail adding a role on HTTP 500", () => { fetchMock.postOnce(ROLES_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -249,27 +249,27 @@ describe('repository roles fetch', () => { }); }); - it('should call the callback after role successfully created', () => { + it("should call the callback after role successfully created", () => { // unmatched fetchMock.postOnce(ROLES_URL, { - status: 204, + status: 204 }); - let callMe = 'not yet'; + let callMe = "not yet"; const callback = () => { - callMe = 'yeah'; + callMe = "yeah"; }; const store = mockStore({}); return store.dispatch(createRole(URL, role1, callback)).then(() => { - expect(callMe).toBe('yeah'); + expect(callMe).toBe("yeah"); }); }); - it('successfully update role', () => { + it("successfully update role", () => { fetchMock.putOnce(ROLE1_URL, { - status: 204, + status: 204 }); fetchMock.getOnce(ROLE1_URL, role1); @@ -283,9 +283,9 @@ describe('repository roles fetch', () => { }); }); - it('should call callback, after successful modified role', () => { + it("should call callback, after successful modified role", () => { fetchMock.putOnce(ROLE1_URL, { - status: 204, + status: 204 }); fetchMock.getOnce(ROLE1_URL, role1); @@ -300,9 +300,9 @@ describe('repository roles fetch', () => { }); }); - it('should fail updating role on HTTP 500', () => { + it("should fail updating role on HTTP 500", () => { fetchMock.putOnce(ROLE1_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -314,9 +314,9 @@ describe('repository roles fetch', () => { }); }); - it('should delete successfully role1', () => { + it("should delete successfully role1", () => { fetchMock.deleteOnce(ROLE1_URL, { - status: 204, + status: 204 }); const store = mockStore({}); @@ -329,9 +329,9 @@ describe('repository roles fetch', () => { }); }); - it('should call the callback after successful delete', () => { + it("should call the callback after successful delete", () => { fetchMock.deleteOnce(ROLE1_URL, { - status: 204, + status: 204 }); let called = false; @@ -345,9 +345,9 @@ describe('repository roles fetch', () => { }); }); - it('should fail to delete role1', () => { + it("should fail to delete role1", () => { fetchMock.deleteOnce(ROLE1_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -361,325 +361,325 @@ describe('repository roles fetch', () => { }); }); -describe('repository roles reducer', () => { - it('should update state correctly according to FETCH_ROLES_SUCCESS action', () => { +describe("repository roles reducer", () => { + it("should update state correctly according to FETCH_ROLES_SUCCESS action", () => { const newState = reducer({}, fetchRolesSuccess(responseBody)); expect(newState.list).toEqual({ - entries: ['specialrole', 'WRITE'], + entries: ["specialrole", "WRITE"], entry: { roleCreatePermission: true, page: 0, pageTotal: 1, - _links: responseBody._links, - }, + _links: responseBody._links + } }); expect(newState.byNames).toEqual({ specialrole: role1, - WRITE: role2, + WRITE: role2 }); expect(newState.list.entry.roleCreatePermission).toBeTruthy(); }); - it('should set roleCreatePermission to true if update link is present', () => { + it("should set roleCreatePermission to true if update link is present", () => { const newState = reducer({}, fetchRolesSuccess(responseBody)); expect(newState.list.entry.roleCreatePermission).toBeTruthy(); }); - it('should not replace whole byNames map when fetching roles', () => { + it("should not replace whole byNames map when fetching roles", () => { const oldState = { byNames: { - WRITE: role2, - }, + WRITE: role2 + } }; const newState = reducer(oldState, fetchRolesSuccess(responseBody)); - expect(newState.byNames['specialrole']).toBeDefined(); - expect(newState.byNames['WRITE']).toBeDefined(); + expect(newState.byNames["specialrole"]).toBeDefined(); + expect(newState.byNames["WRITE"]).toBeDefined(); }); - it('should remove role from state when delete succeeds', () => { + it("should remove role from state when delete succeeds", () => { const state = { list: { - entries: ['WRITE', 'specialrole'], + entries: ["WRITE", "specialrole"] }, byNames: { specialrole: role1, - WRITE: role2, - }, + WRITE: role2 + } }; const newState = reducer(state, deleteRoleSuccess(role2)); - expect(newState.byNames['specialrole']).toBeDefined(); - expect(newState.byNames['WRITE']).toBeFalsy(); - expect(newState.list.entries).toEqual(['specialrole']); + expect(newState.byNames["specialrole"]).toBeDefined(); + expect(newState.byNames["WRITE"]).toBeFalsy(); + expect(newState.list.entries).toEqual(["specialrole"]); }); - it('should set roleCreatePermission to true if create link is present', () => { + it("should set roleCreatePermission to true if create link is present", () => { const newState = reducer({}, fetchRolesSuccess(responseBody)); expect(newState.list.entry.roleCreatePermission).toBeTruthy(); - expect(newState.list.entries).toEqual(['specialrole', 'WRITE']); - expect(newState.byNames['WRITE']).toBeTruthy(); - expect(newState.byNames['specialrole']).toBeTruthy(); + expect(newState.list.entries).toEqual(["specialrole", "WRITE"]); + expect(newState.byNames["WRITE"]).toBeTruthy(); + expect(newState.byNames["specialrole"]).toBeTruthy(); }); - it('should update state according to FETCH_ROLE_SUCCESS action', () => { + it("should update state according to FETCH_ROLE_SUCCESS action", () => { const newState = reducer({}, fetchRoleSuccess(role2)); - expect(newState.byNames['WRITE']).toBe(role2); + expect(newState.byNames["WRITE"]).toBe(role2); }); - it('should affect roles state nor the state of other roles', () => { + it("should affect roles state nor the state of other roles", () => { const newState = reducer( { list: { - entries: ['specialrole'], - }, + entries: ["specialrole"] + } }, - fetchRoleSuccess(role2), + fetchRoleSuccess(role2) ); - expect(newState.byNames['WRITE']).toBe(role2); - expect(newState.list.entries).toEqual(['specialrole']); + expect(newState.byNames["WRITE"]).toBe(role2); + expect(newState.list.entries).toEqual(["specialrole"]); }); }); -describe('repository roles selector', () => { - it('should return an empty object', () => { +describe("repository roles selector", () => { + it("should return an empty object", () => { expect(selectListAsCollection({})).toEqual({}); expect( selectListAsCollection({ roles: { - a: 'a', - }, - }), + a: "a" + } + }) ).toEqual({}); }); - it('should return a state slice collection', () => { + it("should return a state slice collection", () => { const collection = { page: 3, - totalPages: 42, + totalPages: 42 }; const state = { roles: { list: { - entry: collection, - }, - }, + entry: collection + } + } }; expect(selectListAsCollection(state)).toBe(collection); }); - it('should return false', () => { + it("should return false", () => { expect(isPermittedToCreateRoles({})).toBe(false); expect( isPermittedToCreateRoles({ roles: { list: { - entry: {}, - }, - }, - }), + entry: {} + } + } + }) ).toBe(false); expect( isPermittedToCreateRoles({ roles: { list: { entry: { - roleCreatePermission: false, - }, - }, - }, - }), + roleCreatePermission: false + } + } + } + }) ).toBe(false); }); - it('should return true', () => { + it("should return true", () => { const state = { roles: { list: { entry: { - roleCreatePermission: true, - }, - }, - }, + roleCreatePermission: true + } + } + } }; expect(isPermittedToCreateRoles(state)).toBe(true); }); - it('should get repositoryRoles from state', () => { + it("should get repositoryRoles from state", () => { const state = { roles: { list: { - entries: ['a', 'b'], + entries: ["a", "b"] }, byNames: { a: { - name: 'a', + name: "a" }, b: { - name: 'b', - }, - }, - }, + name: "b" + } + } + } }; expect(getRolesFromState(state)).toEqual([ { - name: 'a', + name: "a" }, { - name: 'b', - }, + name: "b" + } ]); }); - it('should return true, when fetch repositoryRoles is pending', () => { + it("should return true, when fetch repositoryRoles is pending", () => { const state = { pending: { - [FETCH_ROLES]: true, - }, + [FETCH_ROLES]: true + } }; expect(isFetchRolesPending(state)).toEqual(true); }); - it('should return false, when fetch repositoryRoles is not pending', () => { + it("should return false, when fetch repositoryRoles is not pending", () => { expect(isFetchRolesPending({})).toEqual(false); }); - it('should return error when fetch repositoryRoles did fail', () => { + it("should return error when fetch repositoryRoles did fail", () => { const state = { failure: { - [FETCH_ROLES]: error, - }, + [FETCH_ROLES]: error + } }; expect(getFetchRolesFailure(state)).toEqual(error); }); - it('should return undefined when fetch repositoryRoles did not fail', () => { + it("should return undefined when fetch repositoryRoles did not fail", () => { expect(getFetchRolesFailure({})).toBe(undefined); }); - it('should return true if create role is pending', () => { + it("should return true if create role is pending", () => { const state = { pending: { - [CREATE_ROLE]: true, - }, + [CREATE_ROLE]: true + } }; expect(isCreateRolePending(state)).toBe(true); }); - it('should return false if create role is not pending', () => { + it("should return false if create role is not pending", () => { const state = { pending: { - [CREATE_ROLE]: false, - }, + [CREATE_ROLE]: false + } }; expect(isCreateRolePending(state)).toBe(false); }); - it('should return error when create role did fail', () => { + it("should return error when create role did fail", () => { const state = { failure: { - [CREATE_ROLE]: error, - }, + [CREATE_ROLE]: error + } }; expect(getCreateRoleFailure(state)).toEqual(error); }); - it('should return undefined when create role did not fail', () => { + it("should return undefined when create role did not fail", () => { expect(getCreateRoleFailure({})).toBe(undefined); }); - it('should return role1', () => { + it("should return role1", () => { const state = { roles: { byNames: { - role1: role1, - }, - }, + role1: role1 + } + } }; - expect(getRoleByName(state, 'role1')).toEqual(role1); + expect(getRoleByName(state, "role1")).toEqual(role1); }); - it('should return true, when fetch role2 is pending', () => { + it("should return true, when fetch role2 is pending", () => { const state = { pending: { - [FETCH_ROLE + '/role2']: true, - }, + [FETCH_ROLE + "/role2"]: true + } }; - expect(isFetchRolePending(state, 'role2')).toEqual(true); + expect(isFetchRolePending(state, "role2")).toEqual(true); }); - it('should return false, when fetch role2 is not pending', () => { - expect(isFetchRolePending({}, 'role2')).toEqual(false); + it("should return false, when fetch role2 is not pending", () => { + expect(isFetchRolePending({}, "role2")).toEqual(false); }); - it('should return error when fetch role2 did fail', () => { + it("should return error when fetch role2 did fail", () => { const state = { failure: { - [FETCH_ROLE + '/role2']: error, - }, + [FETCH_ROLE + "/role2"]: error + } }; - expect(getFetchRoleFailure(state, 'role2')).toEqual(error); + expect(getFetchRoleFailure(state, "role2")).toEqual(error); }); - it('should return undefined when fetch role2 did not fail', () => { - expect(getFetchRoleFailure({}, 'role2')).toBe(undefined); + it("should return undefined when fetch role2 did not fail", () => { + expect(getFetchRoleFailure({}, "role2")).toBe(undefined); }); - it('should return true, when modify role1 is pending', () => { + it("should return true, when modify role1 is pending", () => { const state = { pending: { - [MODIFY_ROLE + '/role1']: true, - }, + [MODIFY_ROLE + "/role1"]: true + } }; - expect(isModifyRolePending(state, 'role1')).toEqual(true); + expect(isModifyRolePending(state, "role1")).toEqual(true); }); - it('should return false, when modify role1 is not pending', () => { - expect(isModifyRolePending({}, 'role1')).toEqual(false); + it("should return false, when modify role1 is not pending", () => { + expect(isModifyRolePending({}, "role1")).toEqual(false); }); - it('should return error when modify role1 did fail', () => { + it("should return error when modify role1 did fail", () => { const state = { failure: { - [MODIFY_ROLE + '/role1']: error, - }, + [MODIFY_ROLE + "/role1"]: error + } }; - expect(getModifyRoleFailure(state, 'role1')).toEqual(error); + expect(getModifyRoleFailure(state, "role1")).toEqual(error); }); - it('should return undefined when modify role1 did not fail', () => { - expect(getModifyRoleFailure({}, 'role1')).toBe(undefined); + it("should return undefined when modify role1 did not fail", () => { + expect(getModifyRoleFailure({}, "role1")).toBe(undefined); }); - it('should return true, when delete role2 is pending', () => { + it("should return true, when delete role2 is pending", () => { const state = { pending: { - [DELETE_ROLE + '/role2']: true, - }, + [DELETE_ROLE + "/role2"]: true + } }; - expect(isDeleteRolePending(state, 'role2')).toEqual(true); + expect(isDeleteRolePending(state, "role2")).toEqual(true); }); - it('should return false, when delete role2 is not pending', () => { - expect(isDeleteRolePending({}, 'role2')).toEqual(false); + it("should return false, when delete role2 is not pending", () => { + expect(isDeleteRolePending({}, "role2")).toEqual(false); }); - it('should return error when delete role2 did fail', () => { + it("should return error when delete role2 did fail", () => { const state = { failure: { - [DELETE_ROLE + '/role2']: error, - }, + [DELETE_ROLE + "/role2"]: error + } }; - expect(getDeleteRoleFailure(state, 'role2')).toEqual(error); + expect(getDeleteRoleFailure(state, "role2")).toEqual(error); }); - it('should return undefined when delete role2 did not fail', () => { - expect(getDeleteRoleFailure({}, 'role2')).toBe(undefined); + it("should return undefined when delete role2 did not fail", () => { + expect(getDeleteRoleFailure({}, "role2")).toBe(undefined); }); }); diff --git a/scm-ui/ui-webapp/src/admin/roles/modules/roles.ts b/scm-ui/ui-webapp/src/admin/roles/modules/roles.ts index 15375ad36a..7bc07525b7 100644 --- a/scm-ui/ui-webapp/src/admin/roles/modules/roles.ts +++ b/scm-ui/ui-webapp/src/admin/roles/modules/roles.ts @@ -1,55 +1,55 @@ -import { apiClient } from '@scm-manager/ui-components'; -import { isPending } from '../../../modules/pending'; -import { getFailure } from '../../../modules/failure'; -import * as types from '../../../modules/types'; -import { combineReducers, Dispatch } from 'redux'; -import { Action, PagedCollection, RepositoryRole } from '@scm-manager/ui-types'; +import { apiClient } from "@scm-manager/ui-components"; +import { isPending } from "../../../modules/pending"; +import { getFailure } from "../../../modules/failure"; +import * as types from "../../../modules/types"; +import { combineReducers, Dispatch } from "redux"; +import { Action, PagedCollection, RepositoryRole } from "@scm-manager/ui-types"; -export const FETCH_ROLES = 'scm/roles/FETCH_ROLES'; +export const FETCH_ROLES = "scm/roles/FETCH_ROLES"; export const FETCH_ROLES_PENDING = `${FETCH_ROLES}_${types.PENDING_SUFFIX}`; export const FETCH_ROLES_SUCCESS = `${FETCH_ROLES}_${types.SUCCESS_SUFFIX}`; export const FETCH_ROLES_FAILURE = `${FETCH_ROLES}_${types.FAILURE_SUFFIX}`; -export const FETCH_ROLE = 'scm/roles/FETCH_ROLE'; +export const FETCH_ROLE = "scm/roles/FETCH_ROLE"; export const FETCH_ROLE_PENDING = `${FETCH_ROLE}_${types.PENDING_SUFFIX}`; export const FETCH_ROLE_SUCCESS = `${FETCH_ROLE}_${types.SUCCESS_SUFFIX}`; export const FETCH_ROLE_FAILURE = `${FETCH_ROLE}_${types.FAILURE_SUFFIX}`; -export const CREATE_ROLE = 'scm/roles/CREATE_ROLE'; +export const CREATE_ROLE = "scm/roles/CREATE_ROLE"; export const CREATE_ROLE_PENDING = `${CREATE_ROLE}_${types.PENDING_SUFFIX}`; export const CREATE_ROLE_SUCCESS = `${CREATE_ROLE}_${types.SUCCESS_SUFFIX}`; export const CREATE_ROLE_FAILURE = `${CREATE_ROLE}_${types.FAILURE_SUFFIX}`; export const CREATE_ROLE_RESET = `${CREATE_ROLE}_${types.RESET_SUFFIX}`; -export const MODIFY_ROLE = 'scm/roles/MODIFY_ROLE'; +export const MODIFY_ROLE = "scm/roles/MODIFY_ROLE"; export const MODIFY_ROLE_PENDING = `${MODIFY_ROLE}_${types.PENDING_SUFFIX}`; export const MODIFY_ROLE_SUCCESS = `${MODIFY_ROLE}_${types.SUCCESS_SUFFIX}`; export const MODIFY_ROLE_FAILURE = `${MODIFY_ROLE}_${types.FAILURE_SUFFIX}`; export const MODIFY_ROLE_RESET = `${MODIFY_ROLE}_${types.RESET_SUFFIX}`; -export const DELETE_ROLE = 'scm/roles/DELETE_ROLE'; +export const DELETE_ROLE = "scm/roles/DELETE_ROLE"; export const DELETE_ROLE_PENDING = `${DELETE_ROLE}_${types.PENDING_SUFFIX}`; export const DELETE_ROLE_SUCCESS = `${DELETE_ROLE}_${types.SUCCESS_SUFFIX}`; export const DELETE_ROLE_FAILURE = `${DELETE_ROLE}_${types.FAILURE_SUFFIX}`; -export const FETCH_VERBS = 'scm/roles/FETCH_VERBS'; +export const FETCH_VERBS = "scm/roles/FETCH_VERBS"; export const FETCH_VERBS_PENDING = `${FETCH_VERBS}_${types.PENDING_SUFFIX}`; export const FETCH_VERBS_SUCCESS = `${FETCH_VERBS}_${types.SUCCESS_SUFFIX}`; export const FETCH_VERBS_FAILURE = `${FETCH_VERBS}_${types.FAILURE_SUFFIX}`; -const CONTENT_TYPE_ROLE = 'application/vnd.scmm-repositoryRole+json;v=2'; +const CONTENT_TYPE_ROLE = "application/vnd.scmm-repositoryRole+json;v=2"; // fetch roles export function fetchRolesPending(): Action { return { - type: FETCH_ROLES_PENDING, + type: FETCH_ROLES_PENDING }; } export function fetchRolesSuccess(roles: any): Action { return { type: FETCH_ROLES_SUCCESS, - payload: roles, + payload: roles }; } @@ -58,8 +58,8 @@ export function fetchRolesFailure(url: string, error: Error): Action { type: FETCH_ROLES_FAILURE, payload: { error, - url, - }, + url + } }; } @@ -92,7 +92,7 @@ export function fetchRolePending(name: string): Action { return { type: FETCH_ROLE_PENDING, payload: name, - itemId: name, + itemId: name }; } @@ -100,7 +100,7 @@ export function fetchRoleSuccess(role: any): Action { return { type: FETCH_ROLE_SUCCESS, payload: role, - itemId: role.name, + itemId: role.name }; } @@ -109,9 +109,9 @@ export function fetchRoleFailure(name: string, error: Error): Action { type: FETCH_ROLE_FAILURE, payload: { name, - error, + error }, - itemId: name, + itemId: name }; } @@ -133,7 +133,7 @@ function fetchRole(link: string, name: string) { } export function fetchRoleByName(link: string, name: string) { - const roleUrl = link.endsWith('/') ? link + name : link + '/' + name; + const roleUrl = link.endsWith("/") ? link + name : link + "/" + name; return fetchRole(roleUrl, name); } @@ -145,33 +145,33 @@ export function fetchRoleByLink(role: RepositoryRole) { export function createRolePending(role: RepositoryRole): Action { return { type: CREATE_ROLE_PENDING, - role, + role }; } export function createRoleSuccess(): Action { return { - type: CREATE_ROLE_SUCCESS, + type: CREATE_ROLE_SUCCESS }; } export function createRoleFailure(error: Error): Action { return { type: CREATE_ROLE_FAILURE, - payload: error, + payload: error }; } export function createRoleReset() { return { - type: CREATE_ROLE_RESET, + type: CREATE_ROLE_RESET }; } export function createRole( link: string, role: RepositoryRole, - callback?: () => void, + callback?: () => void ) { return function(dispatch: Dispatch) { dispatch(createRolePending(role)); @@ -190,21 +190,21 @@ export function createRole( //fetch verbs export function fetchVerbsPending(): Action { return { - type: FETCH_VERBS_PENDING, + type: FETCH_VERBS_PENDING }; } export function fetchVerbsSuccess(verbs: any): Action { return { type: FETCH_VERBS_SUCCESS, - payload: verbs, + payload: verbs }; } export function fetchVerbsFailure(error: Error): Action { return { type: FETCH_VERBS_FAILURE, - payload: error, + payload: error }; } @@ -231,7 +231,7 @@ function verbReducer(state: any = {}, action: any = {}) { const verbs = action.payload.verbs; return { ...state, - verbs, + verbs }; default: return state; @@ -243,7 +243,7 @@ export function modifyRolePending(role: RepositoryRole): Action { return { type: MODIFY_ROLE_PENDING, payload: role, - itemId: role.name, + itemId: role.name }; } @@ -251,7 +251,7 @@ export function modifyRoleSuccess(role: RepositoryRole): Action { return { type: MODIFY_ROLE_SUCCESS, payload: role, - itemId: role.name, + itemId: role.name }; } @@ -260,16 +260,16 @@ export function modifyRoleFailure(role: RepositoryRole, error: Error): Action { type: MODIFY_ROLE_FAILURE, payload: { error, - role, + role }, - itemId: role.name, + itemId: role.name }; } export function modifyRoleReset(role: RepositoryRole): Action { return { type: MODIFY_ROLE_RESET, - itemId: role.name, + itemId: role.name }; } @@ -298,7 +298,7 @@ export function deleteRolePending(role: RepositoryRole): Action { return { type: DELETE_ROLE_PENDING, payload: role, - itemId: role.name, + itemId: role.name }; } @@ -306,7 +306,7 @@ export function deleteRoleSuccess(role: RepositoryRole): Action { return { type: DELETE_ROLE_SUCCESS, payload: role, - itemId: role.name, + itemId: role.name }; } @@ -315,9 +315,9 @@ export function deleteRoleFailure(role: RepositoryRole, error: Error): Action { type: DELETE_ROLE_FAILURE, payload: { error, - role, + role }, - itemId: role.name, + itemId: role.name }; } @@ -341,7 +341,7 @@ export function deleteRole(role: RepositoryRole, callback?: () => void) { function extractRolesByNames( roles: RepositoryRole[], roleNames: string[], - oldRolesByNames: object, + oldRolesByNames: object ) { const rolesByNames = {}; @@ -374,7 +374,7 @@ function deleteRoleInEntries(roles: [], roleName: string) { const reducerByName = (state: any, rolename: string, newRoleState: any) => { return { ...state, - [rolename]: newRoleState, + [rolename]: newRoleState }; }; @@ -390,19 +390,19 @@ function listReducer(state: any = {}, action: any = {}) { roleCreatePermission: !!action.payload._links.create, page: action.payload.page, pageTotal: action.payload.pageTotal, - _links: action.payload._links, - }, + _links: action.payload._links + } }; // Delete single role actions case DELETE_ROLE_SUCCESS: const newRoleEntries = deleteRoleInEntries( state.entries, - action.payload.name, + action.payload.name ); return { ...state, - entries: newRoleEntries, + entries: newRoleEntries }; default: return state; @@ -417,7 +417,7 @@ function byNamesReducer(state: any = {}, action: any = {}) { const roleNames = roles.map(role => role.name); const byNames = extractRolesByNames(roles, roleNames, state.byNames); return { - ...byNames, + ...byNames }; // Fetch single role actions @@ -435,7 +435,7 @@ function byNamesReducer(state: any = {}, action: any = {}) { export default combineReducers({ list: listReducer, byNames: byNamesReducer, - verbs: verbReducer, + verbs: verbReducer }); // selectors diff --git a/scm-ui/ui-webapp/src/components/InfoBox.tsx b/scm-ui/ui-webapp/src/components/InfoBox.tsx index 816739c174..8bb3842d2e 100644 --- a/scm-ui/ui-webapp/src/components/InfoBox.tsx +++ b/scm-ui/ui-webapp/src/components/InfoBox.tsx @@ -1,12 +1,12 @@ -import * as React from 'react'; -import { translate } from 'react-i18next'; -import classNames from 'classnames'; -import styled from 'styled-components'; -import { InfoItem } from './InfoItem'; -import { Icon } from '@scm-manager/ui-components'; +import * as React from "react"; +import { translate } from "react-i18next"; +import classNames from "classnames"; +import styled from "styled-components"; +import { InfoItem } from "./InfoItem"; +import { Icon } from "@scm-manager/ui-components"; type Props = { - type: 'plugin' | 'feature'; + type: "plugin" | "feature"; item: InfoItem; // context props @@ -40,11 +40,11 @@ const ContentWrapper = styled.div` class InfoBox extends React.Component<Props> { renderBody = () => { const { item, t } = this.props; - const title = item ? item.title : t('login.loading'); - const summary = item ? item.summary : t('login.loading'); + const title = item ? item.title : t("login.loading"); + const summary = item ? item.summary : t("login.loading"); return ( - <ContentWrapper className={classNames('media-content', 'content')}> + <ContentWrapper className={classNames("media-content", "content")}> <h4 className="has-text-link">{title}</h4> <p>{summary}</p> </ContentWrapper> @@ -53,23 +53,23 @@ class InfoBox extends React.Component<Props> { render() { const { item, type, t } = this.props; - const icon = type === 'plugin' ? 'puzzle-piece' : 'star'; + const icon = type === "plugin" ? "puzzle-piece" : "star"; return ( <BottomMarginA href={item._links.self.href}> <div className="box media"> <figure className="media-left"> <FixedSizedIconWrapper className={classNames( - 'image', - 'box', - 'has-text-weight-bold', - 'has-text-white', - 'has-background-info', + "image", + "box", + "has-text-weight-bold", + "has-text-white", + "has-background-info" )} > <LightBlueIcon className="fa-2x" name={icon} color="inherit" /> - <div className="is-size-4">{t('login.' + type)}</div> - <div className="is-size-4">{t('login.tip')}</div> + <div className="is-size-4">{t("login." + type)}</div> + <div className="is-size-4">{t("login.tip")}</div> </FixedSizedIconWrapper> </figure> {this.renderBody()} @@ -79,4 +79,4 @@ class InfoBox extends React.Component<Props> { } } -export default translate('commons')(InfoBox); +export default translate("commons")(InfoBox); diff --git a/scm-ui/ui-webapp/src/components/InfoItem.ts b/scm-ui/ui-webapp/src/components/InfoItem.ts index 732cd7b2eb..a9ab867431 100644 --- a/scm-ui/ui-webapp/src/components/InfoItem.ts +++ b/scm-ui/ui-webapp/src/components/InfoItem.ts @@ -1,4 +1,4 @@ -import { Link } from '@scm-manager/ui-types'; +import { Link } from "@scm-manager/ui-types"; export type InfoItem = { title: string; diff --git a/scm-ui/ui-webapp/src/components/LoginForm.tsx b/scm-ui/ui-webapp/src/components/LoginForm.tsx index 896000fe97..6878f39d0b 100644 --- a/scm-ui/ui-webapp/src/components/LoginForm.tsx +++ b/scm-ui/ui-webapp/src/components/LoginForm.tsx @@ -1,13 +1,13 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import styled from 'styled-components'; +import React from "react"; +import { translate } from "react-i18next"; +import styled from "styled-components"; import { Image, ErrorNotification, InputField, SubmitButton, - UnauthorizedError, -} from '@scm-manager/ui-components'; + UnauthorizedError +} from "@scm-manager/ui-components"; type Props = { error?: Error; @@ -45,8 +45,8 @@ class LoginForm extends React.Component<Props, State> { constructor(props: Props) { super(props); this.state = { - username: '', - password: '', + username: "", + password: "" }; } @@ -59,13 +59,13 @@ class LoginForm extends React.Component<Props, State> { handleUsernameChange = (value: string) => { this.setState({ - username: value, + username: value }); }; handlePasswordChange = (value: string) => { this.setState({ - password: value, + password: value }); }; @@ -76,7 +76,7 @@ class LoginForm extends React.Component<Props, State> { areCredentialsInvalid() { const { t, error } = this.props; if (error instanceof UnauthorizedError) { - return new Error(t('errorNotification.wrongLoginCredentials')); + return new Error(t("errorNotification.wrongLoginCredentials")); } else { return error; } @@ -86,26 +86,26 @@ class LoginForm extends React.Component<Props, State> { const { loading, t } = this.props; return ( <div className="column is-4 box has-text-centered has-background-white-ter"> - <h3 className="title">{t('login.title')}</h3> - <p className="subtitle">{t('login.subtitle')}</p> + <h3 className="title">{t("login.title")}</h3> + <p className="subtitle">{t("login.subtitle")}</p> <TopMarginBox className="box"> <AvatarWrapper> - <AvatarImage src="/images/blib.jpg" alt={t('login.logo-alt')} /> + <AvatarImage src="/images/blib.jpg" alt={t("login.logo-alt")} /> </AvatarWrapper> <ErrorNotification error={this.areCredentialsInvalid()} /> <form onSubmit={this.handleSubmit}> <InputField - placeholder={t('login.username-placeholder')} + placeholder={t("login.username-placeholder")} autofocus={true} onChange={this.handleUsernameChange} /> <InputField - placeholder={t('login.password-placeholder')} + placeholder={t("login.password-placeholder")} type="password" onChange={this.handlePasswordChange} /> <SubmitButton - label={t('login.submit')} + label={t("login.submit")} fullWidth={true} loading={loading} /> @@ -116,4 +116,4 @@ class LoginForm extends React.Component<Props, State> { } } -export default translate('commons')(LoginForm); +export default translate("commons")(LoginForm); diff --git a/scm-ui/ui-webapp/src/components/LoginInfo.tsx b/scm-ui/ui-webapp/src/components/LoginInfo.tsx index 29cefc39dc..2994b141cd 100644 --- a/scm-ui/ui-webapp/src/components/LoginInfo.tsx +++ b/scm-ui/ui-webapp/src/components/LoginInfo.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import InfoBox from './InfoBox'; -import { InfoItem } from './InfoItem'; -import LoginForm from './LoginForm'; -import { Loading } from '@scm-manager/ui-components'; +import React from "react"; +import InfoBox from "./InfoBox"; +import { InfoItem } from "./InfoItem"; +import LoginForm from "./LoginForm"; +import { Loading } from "@scm-manager/ui-components"; type Props = { loginInfoLink?: string; @@ -25,7 +25,7 @@ class LoginInfo extends React.Component<Props, State> { constructor(props: Props) { super(props); this.state = { - loading: !!props.loginInfoLink, + loading: !!props.loginInfoLink }; } @@ -35,7 +35,7 @@ class LoginInfo extends React.Component<Props, State> { .then(info => { this.setState({ info, - loading: false, + loading: false }); }); }; @@ -43,7 +43,7 @@ class LoginInfo extends React.Component<Props, State> { timeout = (ms: number, promise: Promise<any>) => { return new Promise<LoginInfoResponse>((resolve, reject) => { setTimeout(() => { - reject(new Error('timeout during fetch of login info')); + reject(new Error("timeout during fetch of login info")); }, ms); promise.then(resolve, reject); }); @@ -56,7 +56,7 @@ class LoginInfo extends React.Component<Props, State> { } this.timeout(1000, this.fetchLoginInfo(loginInfoLink)).catch(() => { this.setState({ - loading: false, + loading: false }); }); } diff --git a/scm-ui/ui-webapp/src/containers/App.tsx b/scm-ui/ui-webapp/src/containers/App.tsx index dadb529bb2..e559d00c4d 100644 --- a/scm-ui/ui-webapp/src/containers/App.tsx +++ b/scm-ui/ui-webapp/src/containers/App.tsx @@ -1,30 +1,30 @@ -import React, { Component } from 'react'; -import Main from './Main'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { withRouter } from 'react-router-dom'; +import React, { Component } from "react"; +import Main from "./Main"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { withRouter } from "react-router-dom"; import { fetchMe, getFetchMeFailure, getMe, isAuthenticated, - isFetchMePending, -} from '../modules/auth'; + isFetchMePending +} from "../modules/auth"; import { ErrorPage, Footer, Header, Loading, - PrimaryNavigation, -} from '@scm-manager/ui-components'; -import { Links, Me } from '@scm-manager/ui-types'; + PrimaryNavigation +} from "@scm-manager/ui-components"; +import { Links, Me } from "@scm-manager/ui-types"; import { getFetchIndexResourcesFailure, getLinks, getMeLink, - isFetchIndexResourcesPending, -} from '../modules/indexResource'; + isFetchIndexResourcesPending +} from "../modules/indexResource"; type Props = { me: Me; @@ -52,15 +52,15 @@ class App extends Component<Props> { const { me, loading, error, authenticated, links, t } = this.props; let content; - const navigation = authenticated ? <PrimaryNavigation links={links} /> : ''; + const navigation = authenticated ? <PrimaryNavigation links={links} /> : ""; if (loading) { content = <Loading />; } else if (error) { content = ( <ErrorPage - title={t('app.error.title')} - subtitle={t('app.error.subtitle')} + title={t("app.error.title")} + subtitle={t("app.error.subtitle")} error={error} /> ); @@ -79,7 +79,7 @@ class App extends Component<Props> { const mapDispatchToProps = (dispatch: any) => { return { - fetchMe: (link: string) => dispatch(fetchMe(link)), + fetchMe: (link: string) => dispatch(fetchMe(link)) }; }; @@ -98,13 +98,13 @@ const mapStateToProps = state => { loading, error, links, - meLink, + meLink }; }; export default withRouter( connect( mapStateToProps, - mapDispatchToProps, - )(translate('commons')(App)), + mapDispatchToProps + )(translate("commons")(App)) ); diff --git a/scm-ui/ui-webapp/src/containers/ChangeUserPassword.tsx b/scm-ui/ui-webapp/src/containers/ChangeUserPassword.tsx index 5c731439f8..06fa71a27a 100644 --- a/scm-ui/ui-webapp/src/containers/ChangeUserPassword.tsx +++ b/scm-ui/ui-webapp/src/containers/ChangeUserPassword.tsx @@ -1,14 +1,14 @@ -import React from 'react'; +import React from "react"; import { ErrorNotification, InputField, Notification, PasswordConfirmation, - SubmitButton, -} from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; -import { Me } from '@scm-manager/ui-types'; -import { changePassword } from '../modules/changePassword'; + SubmitButton +} from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; +import { Me } from "@scm-manager/ui-types"; +import { changePassword } from "../modules/changePassword"; type Props = { me: Me; @@ -29,21 +29,21 @@ class ChangeUserPassword extends React.Component<Props, State> { super(props); this.state = { - oldPassword: '', - password: '', + oldPassword: "", + password: "", loading: false, passwordConfirmationError: false, validatePasswordError: false, - validatePassword: '', + validatePassword: "", passwordChanged: false, - passwordValid: false, + passwordValid: false }; } setLoadingState = () => { this.setState({ ...this.state, - loading: true, + loading: true }); }; @@ -51,7 +51,7 @@ class ChangeUserPassword extends React.Component<Props, State> { this.setState({ ...this.state, error: error, - loading: false, + loading: false }); }; @@ -60,8 +60,8 @@ class ChangeUserPassword extends React.Component<Props, State> { ...this.state, loading: false, passwordChanged: true, - oldPassword: '', - password: '', + oldPassword: "", + password: "" }); }; @@ -97,8 +97,8 @@ class ChangeUserPassword extends React.Component<Props, State> { if (passwordChanged) { message = ( <Notification - type={'success'} - children={t('password.changedSuccessfully')} + type={"success"} + children={t("password.changedSuccessfully")} onClose={() => this.onClose()} /> ); @@ -112,29 +112,29 @@ class ChangeUserPassword extends React.Component<Props, State> { <div className="columns"> <div className="column"> <InputField - label={t('password.currentPassword')} + label={t("password.currentPassword")} type="password" onChange={oldPassword => this.setState({ ...this.state, - oldPassword, + oldPassword }) } - value={this.state.oldPassword ? this.state.oldPassword : ''} - helpText={t('password.currentPasswordHelpText')} + value={this.state.oldPassword ? this.state.oldPassword : ""} + helpText={t("password.currentPasswordHelpText")} /> </div> </div> <PasswordConfirmation passwordChanged={this.passwordChanged} - key={this.state.passwordChanged ? 'changed' : 'unchanged'} + key={this.state.passwordChanged ? "changed" : "unchanged"} /> <div className="columns"> <div className="column"> <SubmitButton disabled={!this.isValid()} loading={loading} - label={t('password.submit')} + label={t("password.submit")} /> </div> </div> @@ -146,16 +146,16 @@ class ChangeUserPassword extends React.Component<Props, State> { this.setState({ ...this.state, password, - passwordValid: !!password && passwordValid, + passwordValid: !!password && passwordValid }); }; onClose = () => { this.setState({ ...this.state, - passwordChanged: false, + passwordChanged: false }); }; } -export default translate('commons')(ChangeUserPassword); +export default translate("commons")(ChangeUserPassword); diff --git a/scm-ui/ui-webapp/src/containers/Index.tsx b/scm-ui/ui-webapp/src/containers/Index.tsx index 3e3cd58923..faee72ac96 100644 --- a/scm-ui/ui-webapp/src/containers/Index.tsx +++ b/scm-ui/ui-webapp/src/containers/Index.tsx @@ -1,20 +1,20 @@ -import React, { Component } from 'react'; -import App from './App'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { withRouter } from 'react-router-dom'; +import React, { Component } from "react"; +import App from "./App"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { withRouter } from "react-router-dom"; -import { Loading, ErrorBoundary } from '@scm-manager/ui-components'; +import { Loading, ErrorBoundary } from "@scm-manager/ui-components"; import { fetchIndexResources, getFetchIndexResourcesFailure, getLinks, - isFetchIndexResourcesPending, -} from '../modules/indexResource'; -import PluginLoader from './PluginLoader'; -import { IndexResources } from '@scm-manager/ui-types'; -import ScrollToTop from './ScrollToTop'; -import IndexErrorPage from './IndexErrorPage'; + isFetchIndexResourcesPending +} from "../modules/indexResource"; +import PluginLoader from "./PluginLoader"; +import { IndexResources } from "@scm-manager/ui-types"; +import ScrollToTop from "./ScrollToTop"; +import IndexErrorPage from "./IndexErrorPage"; type Props = { error: Error; @@ -36,7 +36,7 @@ class Index extends Component<Props, State> { constructor(props: Props) { super(props); this.state = { - pluginsLoaded: false, + pluginsLoaded: false }; } @@ -46,7 +46,7 @@ class Index extends Component<Props, State> { pluginLoaderCallback = () => { this.setState({ - pluginsLoaded: true, + pluginsLoaded: true }); }; @@ -77,7 +77,7 @@ class Index extends Component<Props, State> { const mapDispatchToProps = (dispatch: any) => { return { - fetchIndexResources: () => dispatch(fetchIndexResources()), + fetchIndexResources: () => dispatch(fetchIndexResources()) }; }; @@ -88,13 +88,13 @@ const mapStateToProps = state => { return { loading, error, - indexResources, + indexResources }; }; export default withRouter( connect( mapStateToProps, - mapDispatchToProps, - )(translate('commons')(Index)), + mapDispatchToProps + )(translate("commons")(Index)) ); diff --git a/scm-ui/ui-webapp/src/containers/IndexErrorPage.tsx b/scm-ui/ui-webapp/src/containers/IndexErrorPage.tsx index 7050b18802..80826923b0 100644 --- a/scm-ui/ui-webapp/src/containers/IndexErrorPage.tsx +++ b/scm-ui/ui-webapp/src/containers/IndexErrorPage.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate, TFunction } from 'react-i18next'; -import { ErrorPage } from '@scm-manager/ui-components'; +import React from "react"; +import { translate, TFunction } from "react-i18next"; +import { ErrorPage } from "@scm-manager/ui-components"; type Props = { error: Error; @@ -12,12 +12,12 @@ class IndexErrorPage extends React.Component<Props> { const { error, t } = this.props; return ( <ErrorPage - title={t('app.error.title')} - subtitle={t('app.error.subtitle')} + title={t("app.error.title")} + subtitle={t("app.error.subtitle")} error={error} /> ); } } -export default translate('commons')(IndexErrorPage); +export default translate("commons")(IndexErrorPage); diff --git a/scm-ui/ui-webapp/src/containers/Login.tsx b/scm-ui/ui-webapp/src/containers/Login.tsx index 7b3a180591..90b5155e27 100644 --- a/scm-ui/ui-webapp/src/containers/Login.tsx +++ b/scm-ui/ui-webapp/src/containers/Login.tsx @@ -1,17 +1,17 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { Redirect, withRouter } from 'react-router-dom'; -import { compose } from 'redux'; -import { translate } from 'react-i18next'; -import styled from 'styled-components'; +import React from "react"; +import { connect } from "react-redux"; +import { Redirect, withRouter } from "react-router-dom"; +import { compose } from "redux"; +import { translate } from "react-i18next"; +import styled from "styled-components"; import { getLoginFailure, isAuthenticated, isLoginPending, - login, -} from '../modules/auth'; -import { getLoginInfoLink, getLoginLink } from '../modules/indexResource'; -import LoginInfo from '../components/LoginInfo'; + login +} from "../modules/auth"; +import { getLoginInfoLink, getLoginLink } from "../modules/indexResource"; +import LoginInfo from "../components/LoginInfo"; type Props = { authenticated: boolean; @@ -42,8 +42,8 @@ class Login extends React.Component<Props> { renderRedirect = () => { const { from } = this.props.location.state || { from: { - pathname: '/', - }, + pathname: "/" + } }; return <Redirect to={from} />; }; @@ -80,14 +80,14 @@ const mapStateToProps = state => { loading, error, link, - loginInfoLink, + loginInfoLink }; }; const mapDispatchToProps = dispatch => { return { login: (loginLink: string, username: string, password: string) => - dispatch(login(loginLink, username, password)), + dispatch(login(loginLink, username, password)) }; }; @@ -95,6 +95,6 @@ export default compose( withRouter, connect( mapStateToProps, - mapDispatchToProps, - ), + mapDispatchToProps + ) )(Login); diff --git a/scm-ui/ui-webapp/src/containers/Logout.tsx b/scm-ui/ui-webapp/src/containers/Logout.tsx index 3479f57632..0ea97179e9 100644 --- a/scm-ui/ui-webapp/src/containers/Logout.tsx +++ b/scm-ui/ui-webapp/src/containers/Logout.tsx @@ -1,17 +1,17 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { Redirect } from 'react-router-dom'; +import React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { Redirect } from "react-router-dom"; import { logout, isAuthenticated, isLogoutPending, getLogoutFailure, - isRedirecting, -} from '../modules/auth'; -import { Loading, ErrorPage } from '@scm-manager/ui-components'; -import { getLogoutLink } from '../modules/indexResource'; + isRedirecting +} from "../modules/auth"; +import { Loading, ErrorPage } from "@scm-manager/ui-components"; +import { getLogoutLink } from "../modules/indexResource"; type Props = { authenticated: boolean; @@ -37,8 +37,8 @@ class Logout extends React.Component<Props> { if (error) { return ( <ErrorPage - title={t('logout.error.title')} - subtitle={t('logout.error.subtitle')} + title={t("logout.error.title")} + subtitle={t("logout.error.subtitle")} error={error} /> ); @@ -61,17 +61,17 @@ const mapStateToProps = state => { loading, redirecting, error, - logoutLink, + logoutLink }; }; const mapDispatchToProps = dispatch => { return { - logout: (link: string) => dispatch(logout(link)), + logout: (link: string) => dispatch(logout(link)) }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('commons')(Logout)); + mapDispatchToProps +)(translate("commons")(Logout)); diff --git a/scm-ui/ui-webapp/src/containers/Main.tsx b/scm-ui/ui-webapp/src/containers/Main.tsx index 1268a94b78..f6a88de4cd 100644 --- a/scm-ui/ui-webapp/src/containers/Main.tsx +++ b/scm-ui/ui-webapp/src/containers/Main.tsx @@ -1,28 +1,28 @@ -import React from 'react'; +import React from "react"; -import { Redirect, Route, Switch, withRouter } from 'react-router-dom'; -import { Links } from '@scm-manager/ui-types'; +import { Redirect, Route, Switch, withRouter } from "react-router-dom"; +import { Links } from "@scm-manager/ui-types"; -import Overview from '../repos/containers/Overview'; -import Users from '../users/containers/Users'; -import Login from '../containers/Login'; -import Logout from '../containers/Logout'; +import Overview from "../repos/containers/Overview"; +import Users from "../users/containers/Users"; +import Login from "../containers/Login"; +import Logout from "../containers/Logout"; -import { ProtectedRoute } from '@scm-manager/ui-components'; -import { binder, ExtensionPoint } from '@scm-manager/ui-extensions'; +import { ProtectedRoute } from "@scm-manager/ui-components"; +import { binder, ExtensionPoint } from "@scm-manager/ui-extensions"; -import CreateUser from '../users/containers/CreateUser'; -import SingleUser from '../users/containers/SingleUser'; -import RepositoryRoot from '../repos/containers/RepositoryRoot'; -import Create from '../repos/containers/Create'; +import CreateUser from "../users/containers/CreateUser"; +import SingleUser from "../users/containers/SingleUser"; +import RepositoryRoot from "../repos/containers/RepositoryRoot"; +import Create from "../repos/containers/Create"; -import Groups from '../groups/containers/Groups'; -import SingleGroup from '../groups/containers/SingleGroup'; -import CreateGroup from '../groups/containers/CreateGroup'; +import Groups from "../groups/containers/Groups"; +import SingleGroup from "../groups/containers/SingleGroup"; +import CreateGroup from "../groups/containers/CreateGroup"; -import Admin from '../admin/containers/Admin'; +import Admin from "../admin/containers/Admin"; -import Profile from './Profile'; +import Profile from "./Profile"; type Props = { authenticated?: boolean; @@ -32,8 +32,8 @@ type Props = { class Main extends React.Component<Props> { render() { const { authenticated, links } = this.props; - const redirectUrlFactory = binder.getExtension('main.redirect', this.props); - let url = '/repos/'; + const redirectUrlFactory = binder.getExtension("main.redirect", this.props); + let url = "/repos/"; if (redirectUrlFactory) { url = redirectUrlFactory(this.props); } @@ -128,7 +128,7 @@ class Main extends React.Component<Props> { renderAll={true} props={{ authenticated, - links, + links }} /> </Switch> diff --git a/scm-ui/ui-webapp/src/containers/PluginLoader.tsx b/scm-ui/ui-webapp/src/containers/PluginLoader.tsx index 9df10cc016..e610bf9d6c 100644 --- a/scm-ui/ui-webapp/src/containers/PluginLoader.tsx +++ b/scm-ui/ui-webapp/src/containers/PluginLoader.tsx @@ -1,8 +1,8 @@ -import * as React from 'react'; -import { apiClient, Loading } from '@scm-manager/ui-components'; -import { getUiPluginsLink } from '../modules/indexResource'; -import { connect } from 'react-redux'; -import loadBundle from './loadBundle'; +import * as React from "react"; +import { apiClient, Loading } from "@scm-manager/ui-components"; +import { getUiPluginsLink } from "../modules/indexResource"; +import { connect } from "react-redux"; +import loadBundle from "./loadBundle"; type Props = { loaded: boolean; @@ -24,7 +24,7 @@ class PluginLoader extends React.Component<Props, State> { constructor(props: Props) { super(props); this.state = { - message: 'booting', + message: "booting" }; } @@ -32,7 +32,7 @@ class PluginLoader extends React.Component<Props, State> { const { loaded } = this.props; if (!loaded) { this.setState({ - message: 'loading plugin information', + message: "loading plugin information" }); this.getPlugins(this.props.link); @@ -51,7 +51,7 @@ class PluginLoader extends React.Component<Props, State> { loadPlugins = (plugins: Plugin[]) => { this.setState({ - message: 'loading plugins', + message: "loading plugins" }); const promises = []; @@ -68,7 +68,7 @@ class PluginLoader extends React.Component<Props, State> { loadPlugin = (plugin: Plugin) => { this.setState({ - message: `loading ${plugin.name}`, + message: `loading ${plugin.name}` }); const promises = []; @@ -99,7 +99,7 @@ const comparePluginsByName = (a: Plugin, b: Plugin) => { const mapStateToProps = state => { const link = getUiPluginsLink(state); return { - link, + link }; }; diff --git a/scm-ui/ui-webapp/src/containers/Profile.tsx b/scm-ui/ui-webapp/src/containers/Profile.tsx index e5937f510d..6613fae297 100644 --- a/scm-ui/ui-webapp/src/containers/Profile.tsx +++ b/scm-ui/ui-webapp/src/containers/Profile.tsx @@ -1,22 +1,22 @@ -import React from 'react'; +import React from "react"; -import { Route, withRouter } from 'react-router-dom'; -import { getMe } from '../modules/auth'; -import { compose } from 'redux'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { Me } from '@scm-manager/ui-types'; +import { Route, withRouter } from "react-router-dom"; +import { getMe } from "../modules/auth"; +import { compose } from "redux"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { Me } from "@scm-manager/ui-types"; import { ErrorPage, Page, Navigation, SubNavigation, Section, - NavLink, -} from '@scm-manager/ui-components'; -import ChangeUserPassword from './ChangeUserPassword'; -import ProfileInfo from './ProfileInfo'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; + NavLink +} from "@scm-manager/ui-components"; +import ChangeUserPassword from "./ChangeUserPassword"; +import ProfileInfo from "./ProfileInfo"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; type Props = { me: Me; @@ -29,7 +29,7 @@ type State = {}; class Profile extends React.Component<Props, State> { stripEndingSlash = (url: string) => { - if (url.endsWith('/')) { + if (url.endsWith("/")) { return url.substring(0, url.length - 2); } return url; @@ -47,11 +47,11 @@ class Profile extends React.Component<Props, State> { if (!me) { return ( <ErrorPage - title={t('profile.error-title')} - subtitle={t('profile.error-subtitle')} + title={t("profile.error-title")} + subtitle={t("profile.error-subtitle")} error={{ - name: t('profile.error'), - message: t('profile.error-message'), + name: t("profile.error"), + message: t("profile.error-message") }} /> ); @@ -59,7 +59,7 @@ class Profile extends React.Component<Props, State> { const extensionProps = { me, - url, + url }; return ( @@ -79,19 +79,19 @@ class Profile extends React.Component<Props, State> { </div> <div className="column"> <Navigation> - <Section label={t('profile.navigationLabel')}> + <Section label={t("profile.navigationLabel")}> <NavLink to={`${url}`} icon="fas fa-info-circle" - label={t('profile.informationNavLink')} + label={t("profile.informationNavLink")} /> <SubNavigation to={`${url}/settings/password`} - label={t('profile.settingsNavLink')} + label={t("profile.settingsNavLink")} > <NavLink to={`${url}/settings/password`} - label={t('profile.changePasswordNavLink')} + label={t("profile.changePasswordNavLink")} /> <ExtensionPoint name="profile.setting" @@ -110,12 +110,12 @@ class Profile extends React.Component<Props, State> { const mapStateToProps = state => { return { - me: getMe(state), + me: getMe(state) }; }; export default compose( - translate('commons'), + translate("commons"), connect(mapStateToProps), - withRouter, + withRouter )(Profile); diff --git a/scm-ui/ui-webapp/src/containers/ProfileInfo.tsx b/scm-ui/ui-webapp/src/containers/ProfileInfo.tsx index 83ea88df6f..05da2a1c0c 100644 --- a/scm-ui/ui-webapp/src/containers/ProfileInfo.tsx +++ b/scm-ui/ui-webapp/src/containers/ProfileInfo.tsx @@ -1,11 +1,11 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Me } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import { Me } from "@scm-manager/ui-types"; import { MailLink, AvatarWrapper, - AvatarImage, -} from '@scm-manager/ui-components'; + AvatarImage +} from "@scm-manager/ui-components"; type Props = { me: Me; @@ -30,15 +30,15 @@ class ProfileInfo extends React.Component<Props> { <table className="table content"> <tbody> <tr> - <th>{t('profile.username')}</th> + <th>{t("profile.username")}</th> <td>{me.name}</td> </tr> <tr> - <th>{t('profile.displayName')}</th> + <th>{t("profile.displayName")}</th> <td>{me.displayName}</td> </tr> <tr> - <th>{t('profile.mail')}</th> + <th>{t("profile.mail")}</th> <td> <MailLink address={me.mail} /> </td> @@ -58,7 +58,7 @@ class ProfileInfo extends React.Component<Props> { if (me.groups.length > 0) { groups = ( <tr> - <th>{t('profile.groups')}</th> + <th>{t("profile.groups")}</th> <td className="is-paddingless"> <ul> {me.groups.map(group => { @@ -73,4 +73,4 @@ class ProfileInfo extends React.Component<Props> { } } -export default translate('commons')(ProfileInfo); +export default translate("commons")(ProfileInfo); diff --git a/scm-ui/ui-webapp/src/containers/ScrollToTop.ts b/scm-ui/ui-webapp/src/containers/ScrollToTop.ts index 758db8c1da..c2bbc89cab 100644 --- a/scm-ui/ui-webapp/src/containers/ScrollToTop.ts +++ b/scm-ui/ui-webapp/src/containers/ScrollToTop.ts @@ -1,5 +1,5 @@ -import React from 'react'; -import { withRouter } from 'react-router-dom'; +import React from "react"; +import { withRouter } from "react-router-dom"; type Props = { location: any; diff --git a/scm-ui/ui-webapp/src/containers/loadBundle.ts b/scm-ui/ui-webapp/src/containers/loadBundle.ts index a2ab19d3b1..0a7c6af01b 100644 --- a/scm-ui/ui-webapp/src/containers/loadBundle.ts +++ b/scm-ui/ui-webapp/src/containers/loadBundle.ts @@ -1,33 +1,33 @@ /* global SystemJS */ // eslint-disable-next-line import/no-webpack-loader-syntax -import 'script-loader!../../../../node_modules/systemjs/dist/system.js'; +import "script-loader!../../../../node_modules/systemjs/dist/system.js"; -import * as React from 'react'; -import * as ReactDOM from 'react-dom'; -import * as ReactRouterDom from 'react-router-dom'; -import * as Redux from 'redux'; -import * as ReactRedux from 'react-redux'; -import SytleComponentsDefault from 'styled-components'; -import * as SytleComponents from 'styled-components'; -import * as ReactI18Next from 'react-i18next'; -import ClassNamesDefault from 'classnames'; -import * as ClassNames from 'classnames'; -import QueryStringDefault from 'query-string'; -import * as QueryString from 'query-string'; -import * as UIExtensions from '@scm-manager/ui-extensions'; -import * as UIComponents from '@scm-manager/ui-components'; -import { urls } from '@scm-manager/ui-components'; +import * as React from "react"; +import * as ReactDOM from "react-dom"; +import * as ReactRouterDom from "react-router-dom"; +import * as Redux from "redux"; +import * as ReactRedux from "react-redux"; +import SytleComponentsDefault from "styled-components"; +import * as SytleComponents from "styled-components"; +import * as ReactI18Next from "react-i18next"; +import ClassNamesDefault from "classnames"; +import * as ClassNames from "classnames"; +import QueryStringDefault from "query-string"; +import * as QueryString from "query-string"; +import * as UIExtensions from "@scm-manager/ui-extensions"; +import * as UIComponents from "@scm-manager/ui-components"; +import { urls } from "@scm-manager/ui-components"; // TODO add headers "Cache": "no-cache", "X-Requested-With": "XMLHttpRequest" SystemJS.config({ - baseURL: urls.withContextPath('/assets'), + baseURL: urls.withContextPath("/assets"), meta: { - '/*': { + "/*": { esModule: true, - authorization: true, - }, - }, + authorization: true + } + } }); const expose = (name, cmp, defaultCmp) => { @@ -37,22 +37,22 @@ const expose = (name, cmp, defaultCmp) => { // https://github.com/systemjs/systemjs/issues/1749 mod = { ...cmp, - __useDefault: defaultCmp, + __useDefault: defaultCmp }; } SystemJS.set(name, SystemJS.newModule(mod)); }; -expose('react', React); -expose('react-dom', ReactDOM); -expose('react-router-dom', ReactRouterDom); -expose('styled-components', SytleComponents, SytleComponentsDefault); -expose('redux', Redux); -expose('react-redux', ReactRedux); -expose('react-i18next', ReactI18Next); -expose('classnames', ClassNames, ClassNamesDefault); -expose('query-string', QueryString, QueryStringDefault); -expose('@scm-manager/ui-extensions', UIExtensions); -expose('@scm-manager/ui-components', UIComponents); +expose("react", React); +expose("react-dom", ReactDOM); +expose("react-router-dom", ReactRouterDom); +expose("styled-components", SytleComponents, SytleComponentsDefault); +expose("redux", Redux); +expose("react-redux", ReactRedux); +expose("react-i18next", ReactI18Next); +expose("classnames", ClassNames, ClassNamesDefault); +expose("query-string", QueryString, QueryStringDefault); +expose("@scm-manager/ui-extensions", UIExtensions); +expose("@scm-manager/ui-components", UIComponents); export default plugin => SystemJS.import(plugin); diff --git a/scm-ui/ui-webapp/src/createReduxStore.ts b/scm-ui/ui-webapp/src/createReduxStore.ts index bb2297cebd..b16b4d0615 100644 --- a/scm-ui/ui-webapp/src/createReduxStore.ts +++ b/scm-ui/ui-webapp/src/createReduxStore.ts @@ -1,23 +1,23 @@ -import thunk from 'redux-thunk'; -import logger from 'redux-logger'; -import { createStore, compose, applyMiddleware, combineReducers } from 'redux'; -import users from './users/modules/users'; -import repos from './repos/modules/repos'; -import repositoryTypes from './repos/modules/repositoryTypes'; -import changesets from './repos/modules/changesets'; -import sources from './repos/sources/modules/sources'; -import groups from './groups/modules/groups'; -import auth from './modules/auth'; -import pending from './modules/pending'; -import failure from './modules/failure'; -import permissions from './repos/permissions/modules/permissions'; -import config from './admin/modules/config'; -import roles from './admin/roles/modules/roles'; -import namespaceStrategies from './admin/modules/namespaceStrategies'; -import indexResources from './modules/indexResource'; -import plugins from './admin/plugins/modules/plugins'; +import thunk from "redux-thunk"; +import logger from "redux-logger"; +import { createStore, compose, applyMiddleware, combineReducers } from "redux"; +import users from "./users/modules/users"; +import repos from "./repos/modules/repos"; +import repositoryTypes from "./repos/modules/repositoryTypes"; +import changesets from "./repos/modules/changesets"; +import sources from "./repos/sources/modules/sources"; +import groups from "./groups/modules/groups"; +import auth from "./modules/auth"; +import pending from "./modules/pending"; +import failure from "./modules/failure"; +import permissions from "./repos/permissions/modules/permissions"; +import config from "./admin/modules/config"; +import roles from "./admin/roles/modules/roles"; +import namespaceStrategies from "./admin/modules/namespaceStrategies"; +import indexResources from "./modules/indexResource"; +import plugins from "./admin/plugins/modules/plugins"; -import branches from './repos/branches/modules/branches'; +import branches from "./repos/branches/modules/branches"; function createReduxStore() { const composeEnhancers = @@ -39,7 +39,7 @@ function createReduxStore() { roles, sources, namespaceStrategies, - plugins, + plugins }); return createStore(reducer, composeEnhancers(applyMiddleware(thunk, logger))); diff --git a/scm-ui/ui-webapp/src/groups/components/GroupForm.tsx b/scm-ui/ui-webapp/src/groups/components/GroupForm.tsx index af2766cfa6..ddf2a68a88 100644 --- a/scm-ui/ui-webapp/src/groups/components/GroupForm.tsx +++ b/scm-ui/ui-webapp/src/groups/components/GroupForm.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import { translate } from 'react-i18next'; +import React from "react"; +import { translate } from "react-i18next"; import { Subtitle, AutocompleteAddEntryToTableField, @@ -7,11 +7,11 @@ import { InputField, SubmitButton, Textarea, - Checkbox, -} from '@scm-manager/ui-components'; -import { Group, SelectValue } from '@scm-manager/ui-types'; + Checkbox +} from "@scm-manager/ui-components"; +import { Group, SelectValue } from "@scm-manager/ui-types"; -import * as validator from './groupValidation'; +import * as validator from "./groupValidation"; type Props = { t: (p: string) => string; @@ -31,17 +31,17 @@ class GroupForm extends React.Component<Props, State> { super(props); this.state = { group: { - name: '', - description: '', + name: "", + description: "", _embedded: { - members: [], + members: [] }, _links: {}, members: [], - type: '', - external: false, + type: "", + external: false }, - nameValidationError: false, + nameValidationError: false }; } @@ -51,8 +51,8 @@ class GroupForm extends React.Component<Props, State> { this.setState({ ...this.state, group: { - ...group, - }, + ...group + } }); } } @@ -92,12 +92,12 @@ class GroupForm extends React.Component<Props, State> { <AutocompleteAddEntryToTableField addEntry={this.addMember} disabled={false} - buttonLabel={t('add-member-button.label')} - errorMessage={t('add-member-textfield.error')} + buttonLabel={t("add-member-button.label")} + errorMessage={t("add-member-textfield.error")} loadSuggestions={loadUserSuggestions} - placeholder={t('add-member-autocomplete.placeholder')} - loadingMessage={t('add-member-autocomplete.loading')} - noOptionsMessage={t('add-member-autocomplete.no-options')} + placeholder={t("add-member-autocomplete.placeholder")} + loadingMessage={t("add-member-autocomplete.loading")} + noOptionsMessage={t("add-member-autocomplete.no-options")} /> </> ); @@ -110,9 +110,9 @@ class GroupForm extends React.Component<Props, State> { } return ( <Checkbox - label={t('group.external')} + label={t("group.external")} checked={group.external} - helpText={t('groupForm.help.externalHelpText')} + helpText={t("groupForm.help.externalHelpText")} onChange={this.handleExternalChange} /> ); @@ -129,18 +129,18 @@ class GroupForm extends React.Component<Props, State> { // create new group nameField = ( <InputField - label={t('group.name')} - errorMessage={t('groupForm.nameError')} + label={t("group.name")} + errorMessage={t("groupForm.nameError")} onChange={this.handleGroupNameChange} value={group.name} validationError={this.state.nameValidationError} - helpText={t('groupForm.help.nameHelpText')} + helpText={t("groupForm.help.nameHelpText")} /> ); } else if (group.external) { - subtitle = <Subtitle subtitle={t('groupForm.externalSubtitle')} />; + subtitle = <Subtitle subtitle={t("groupForm.externalSubtitle")} />; } else { - subtitle = <Subtitle subtitle={t('groupForm.subtitle')} />; + subtitle = <Subtitle subtitle={t("groupForm.subtitle")} />; } return ( @@ -149,18 +149,18 @@ class GroupForm extends React.Component<Props, State> { <form onSubmit={this.submit}> {nameField} <Textarea - label={t('group.description')} - errorMessage={t('groupForm.descriptionError')} + label={t("group.description")} + errorMessage={t("groupForm.descriptionError")} onChange={this.handleDescriptionChange} value={group.description} validationError={false} - helpText={t('groupForm.help.descriptionHelpText')} + helpText={t("groupForm.help.descriptionHelpText")} /> {this.renderExternalField(group)} {this.renderMemberfields(group)} <SubmitButton disabled={!this.isValid()} - label={t('groupForm.submit')} + label={t("groupForm.submit")} loading={loading} /> </form> @@ -173,8 +173,8 @@ class GroupForm extends React.Component<Props, State> { ...this.state, group: { ...this.state.group, - members: membernames, - }, + members: membernames + } }); }; @@ -187,8 +187,8 @@ class GroupForm extends React.Component<Props, State> { ...this.state, group: { ...this.state.group, - members: [...this.state.group.members, value.value.id], - }, + members: [...this.state.group.members, value.value.id] + } }); }; @@ -201,8 +201,8 @@ class GroupForm extends React.Component<Props, State> { nameValidationError: !validator.isNameValid(name), group: { ...this.state.group, - name, - }, + name + } }); }; @@ -210,8 +210,8 @@ class GroupForm extends React.Component<Props, State> { this.setState({ group: { ...this.state.group, - description, - }, + description + } }); }; @@ -219,10 +219,10 @@ class GroupForm extends React.Component<Props, State> { this.setState({ group: { ...this.state.group, - external, - }, + external + } }); }; } -export default translate('groups')(GroupForm); +export default translate("groups")(GroupForm); diff --git a/scm-ui/ui-webapp/src/groups/components/groupValidation.ts b/scm-ui/ui-webapp/src/groups/components/groupValidation.ts index 310d7a4d62..326ae24a59 100644 --- a/scm-ui/ui-webapp/src/groups/components/groupValidation.ts +++ b/scm-ui/ui-webapp/src/groups/components/groupValidation.ts @@ -1,4 +1,4 @@ -import { validation } from '@scm-manager/ui-components'; +import { validation } from "@scm-manager/ui-components"; const isNameValid = validation.isNameValid; diff --git a/scm-ui/ui-webapp/src/groups/components/navLinks/EditGroupNavLink.test.tsx b/scm-ui/ui-webapp/src/groups/components/navLinks/EditGroupNavLink.test.tsx index 32abf03a5e..6f5a6afc33 100644 --- a/scm-ui/ui-webapp/src/groups/components/navLinks/EditGroupNavLink.test.tsx +++ b/scm-ui/ui-webapp/src/groups/components/navLinks/EditGroupNavLink.test.tsx @@ -1,31 +1,31 @@ -import React from 'react'; -import { shallow } from 'enzyme'; -import '@scm-manager/ui-tests/enzyme'; -import '@scm-manager/ui-tests/i18n'; -import EditGroupNavLink from './EditGroupNavLink'; +import React from "react"; +import { shallow } from "enzyme"; +import "@scm-manager/ui-tests/enzyme"; +import "@scm-manager/ui-tests/i18n"; +import EditGroupNavLink from "./EditGroupNavLink"; -it('should render nothing, if the edit link is missing', () => { +it("should render nothing, if the edit link is missing", () => { const group = { - _links: {}, + _links: {} }; const navLink = shallow( - <EditGroupNavLink group={group} editUrl="/group/edit" />, + <EditGroupNavLink group={group} editUrl="/group/edit" /> ); - expect(navLink.text()).toBe(''); + expect(navLink.text()).toBe(""); }); -it('should render the navLink', () => { +it("should render the navLink", () => { const group = { _links: { update: { - href: '/groups', - }, - }, + href: "/groups" + } + } }; const navLink = shallow( - <EditGroupNavLink group={group} editUrl="/group/edit" />, + <EditGroupNavLink group={group} editUrl="/group/edit" /> ); - expect(navLink.text()).not.toBe(''); + expect(navLink.text()).not.toBe(""); }); diff --git a/scm-ui/ui-webapp/src/groups/components/navLinks/EditGroupNavLink.tsx b/scm-ui/ui-webapp/src/groups/components/navLinks/EditGroupNavLink.tsx index 8760778660..b07a9fef27 100644 --- a/scm-ui/ui-webapp/src/groups/components/navLinks/EditGroupNavLink.tsx +++ b/scm-ui/ui-webapp/src/groups/components/navLinks/EditGroupNavLink.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { Group } from '@scm-manager/ui-types'; -import { NavLink } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; +import React from "react"; +import { Group } from "@scm-manager/ui-types"; +import { NavLink } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; type Props = { group: Group; @@ -21,9 +21,9 @@ class EditGroupNavLink extends React.Component<Props> { return null; } return ( - <NavLink to={editUrl} label={t('singleGroup.menu.generalNavLink')} /> + <NavLink to={editUrl} label={t("singleGroup.menu.generalNavLink")} /> ); } } -export default translate('groups')(EditGroupNavLink); +export default translate("groups")(EditGroupNavLink); diff --git a/scm-ui/ui-webapp/src/groups/components/navLinks/SetPermissionsNavLink.tsx b/scm-ui/ui-webapp/src/groups/components/navLinks/SetPermissionsNavLink.tsx index abc5a7e79a..53fc88ad52 100644 --- a/scm-ui/ui-webapp/src/groups/components/navLinks/SetPermissionsNavLink.tsx +++ b/scm-ui/ui-webapp/src/groups/components/navLinks/SetPermissionsNavLink.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Group } from '@scm-manager/ui-types'; -import { NavLink } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { Group } from "@scm-manager/ui-types"; +import { NavLink } from "@scm-manager/ui-components"; type Props = { t: (p: string) => string; @@ -19,7 +19,7 @@ class ChangePermissionNavLink extends React.Component<Props> { return ( <NavLink to={permissionsUrl} - label={t('singleGroup.menu.setPermissionsNavLink')} + label={t("singleGroup.menu.setPermissionsNavLink")} /> ); } @@ -29,4 +29,4 @@ class ChangePermissionNavLink extends React.Component<Props> { }; } -export default translate('groups')(ChangePermissionNavLink); +export default translate("groups")(ChangePermissionNavLink); diff --git a/scm-ui/ui-webapp/src/groups/components/navLinks/index.ts b/scm-ui/ui-webapp/src/groups/components/navLinks/index.ts index 66ecb56bb5..992e9ab9a3 100644 --- a/scm-ui/ui-webapp/src/groups/components/navLinks/index.ts +++ b/scm-ui/ui-webapp/src/groups/components/navLinks/index.ts @@ -1,2 +1,2 @@ -export { default as EditGroupNavLink } from './EditGroupNavLink'; -export { default as SetPermissionsNavLink } from './SetPermissionsNavLink'; +export { default as EditGroupNavLink } from "./EditGroupNavLink"; +export { default as SetPermissionsNavLink } from "./SetPermissionsNavLink"; diff --git a/scm-ui/ui-webapp/src/groups/components/table/Details.tsx b/scm-ui/ui-webapp/src/groups/components/table/Details.tsx index 867df482b0..40cb21fdf3 100644 --- a/scm-ui/ui-webapp/src/groups/components/table/Details.tsx +++ b/scm-ui/ui-webapp/src/groups/components/table/Details.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Group } from '@scm-manager/ui-types'; -import { DateFromNow, Checkbox } from '@scm-manager/ui-components'; -import GroupMember from './GroupMember'; +import React from "react"; +import { translate } from "react-i18next"; +import { Group } from "@scm-manager/ui-types"; +import { DateFromNow, Checkbox } from "@scm-manager/ui-components"; +import GroupMember from "./GroupMember"; type Props = { group: Group; @@ -18,31 +18,31 @@ class Details extends React.Component<Props> { <table className="table content"> <tbody> <tr> - <th>{t('group.name')}</th> + <th>{t("group.name")}</th> <td>{group.name}</td> </tr> <tr> - <th>{t('group.description')}</th> + <th>{t("group.description")}</th> <td>{group.description}</td> </tr> <tr> - <th>{t('group.external')}</th> + <th>{t("group.external")}</th> <td> <Checkbox checked={group.external} /> </td> </tr> <tr> - <th>{t('group.type')}</th> + <th>{t("group.type")}</th> <td>{group.type}</td> </tr> <tr> - <th>{t('group.creationDate')}</th> + <th>{t("group.creationDate")}</th> <td> <DateFromNow date={group.creationDate} /> </td> </tr> <tr> - <th>{t('group.lastModified')}</th> + <th>{t("group.lastModified")}</th> <td> <DateFromNow date={group.lastModified} /> </td> @@ -60,7 +60,7 @@ class Details extends React.Component<Props> { if (group.members.length > 0) { member = ( <tr> - <th>{t('group.members')}</th> + <th>{t("group.members")}</th> <td className="is-paddingless"> <ul> {group._embedded.members.map((member, index) => { @@ -75,4 +75,4 @@ class Details extends React.Component<Props> { } } -export default translate('groups')(Details); +export default translate("groups")(Details); diff --git a/scm-ui/ui-webapp/src/groups/components/table/GroupMember.tsx b/scm-ui/ui-webapp/src/groups/components/table/GroupMember.tsx index 9b736ccd80..f84a0f5b8a 100644 --- a/scm-ui/ui-webapp/src/groups/components/table/GroupMember.tsx +++ b/scm-ui/ui-webapp/src/groups/components/table/GroupMember.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { Link } from 'react-router-dom'; -import { Member } from '@scm-manager/ui-types'; +import React from "react"; +import { Link } from "react-router-dom"; +import { Member } from "@scm-manager/ui-types"; type Props = { member: Member; diff --git a/scm-ui/ui-webapp/src/groups/components/table/GroupRow.tsx b/scm-ui/ui-webapp/src/groups/components/table/GroupRow.tsx index 9658278547..2ba8310ebb 100644 --- a/scm-ui/ui-webapp/src/groups/components/table/GroupRow.tsx +++ b/scm-ui/ui-webapp/src/groups/components/table/GroupRow.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Link } from 'react-router-dom'; -import { Group } from '@scm-manager/ui-types'; -import { Icon } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { Link } from "react-router-dom"; +import { Group } from "@scm-manager/ui-types"; +import { Icon } from "@scm-manager/ui-components"; type Props = { group: Group; @@ -20,9 +20,9 @@ class GroupRow extends React.Component<Props> { const { group, t } = this.props; const to = `/group/${group.name}`; const iconType = group.external ? ( - <Icon title={t('group.external')} name="sign-out-alt fa-rotate-270" /> + <Icon title={t("group.external")} name="sign-out-alt fa-rotate-270" /> ) : ( - <Icon title={t('group.internal')} name="sign-in-alt fa-rotate-90" /> + <Icon title={t("group.internal")} name="sign-in-alt fa-rotate-90" /> ); return ( @@ -36,4 +36,4 @@ class GroupRow extends React.Component<Props> { } } -export default translate('groups')(GroupRow); +export default translate("groups")(GroupRow); diff --git a/scm-ui/ui-webapp/src/groups/components/table/GroupTable.tsx b/scm-ui/ui-webapp/src/groups/components/table/GroupTable.tsx index 2f5342d1d8..526659b25b 100644 --- a/scm-ui/ui-webapp/src/groups/components/table/GroupTable.tsx +++ b/scm-ui/ui-webapp/src/groups/components/table/GroupTable.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import GroupRow from './GroupRow'; -import { Group } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import GroupRow from "./GroupRow"; +import { Group } from "@scm-manager/ui-types"; type Props = { t: (p: string) => string; @@ -15,8 +15,8 @@ class GroupTable extends React.Component<Props> { <table className="card-table table is-hoverable is-fullwidth"> <thead> <tr> - <th>{t('group.name')}</th> - <th className="is-hidden-mobile">{t('group.description')}</th> + <th>{t("group.name")}</th> + <th className="is-hidden-mobile">{t("group.description")}</th> </tr> </thead> <tbody> @@ -29,4 +29,4 @@ class GroupTable extends React.Component<Props> { } } -export default translate('groups')(GroupTable); +export default translate("groups")(GroupTable); diff --git a/scm-ui/ui-webapp/src/groups/components/table/index.ts b/scm-ui/ui-webapp/src/groups/components/table/index.ts index aec3473ddc..e82be3f5ee 100644 --- a/scm-ui/ui-webapp/src/groups/components/table/index.ts +++ b/scm-ui/ui-webapp/src/groups/components/table/index.ts @@ -1,3 +1,3 @@ -export { default as Details } from './Details'; -export { default as GroupRow } from './GroupRow'; -export { default as GroupTable } from './GroupTable'; +export { default as Details } from "./Details"; +export { default as GroupRow } from "./GroupRow"; +export { default as GroupTable } from "./GroupTable"; diff --git a/scm-ui/ui-webapp/src/groups/containers/CreateGroup.tsx b/scm-ui/ui-webapp/src/groups/containers/CreateGroup.tsx index 3800933d44..d43daec789 100644 --- a/scm-ui/ui-webapp/src/groups/containers/CreateGroup.tsx +++ b/scm-ui/ui-webapp/src/groups/containers/CreateGroup.tsx @@ -1,21 +1,21 @@ -import React from 'react'; +import React from "react"; -import { Page } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; -import GroupForm from '../components/GroupForm'; -import { connect } from 'react-redux'; +import { Page } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; +import GroupForm from "../components/GroupForm"; +import { connect } from "react-redux"; import { createGroup, isCreateGroupPending, getCreateGroupFailure, - createGroupReset, -} from '../modules/groups'; -import { Group } from '@scm-manager/ui-types'; -import { History } from 'history'; + createGroupReset +} from "../modules/groups"; +import { Group } from "@scm-manager/ui-types"; +import { History } from "history"; import { getGroupsLink, - getUserAutoCompleteLink, -} from '../../modules/indexResource'; + getUserAutoCompleteLink +} from "../../modules/indexResource"; type Props = { t: (p: string) => string; @@ -39,8 +39,8 @@ class CreateGroup extends React.Component<Props, State> { const { t, loading, error } = this.props; return ( <Page - title={t('add-group.title')} - subtitle={t('add-group.subtitle')} + title={t("add-group.title")} + subtitle={t("add-group.subtitle")} error={error} > <div> @@ -55,24 +55,24 @@ class CreateGroup extends React.Component<Props, State> { } loadUserAutocompletion = (inputValue: string) => { - const url = this.props.autocompleteLink + '?q='; + const url = this.props.autocompleteLink + "?q="; return fetch(url + inputValue) .then(response => response.json()) .then(json => { return json.map(element => { return { value: element, - label: `${element.displayName} (${element.id})`, + label: `${element.displayName} (${element.id})` }; }); }); }; groupCreated = (group: Group) => { - this.props.history.push('/group/' + group.name); + this.props.history.push("/group/" + group.name); }; createGroup = (group: Group) => { this.props.createGroup(this.props.createLink, group, () => - this.groupCreated(group), + this.groupCreated(group) ); }; } @@ -83,7 +83,7 @@ const mapDispatchToProps = dispatch => { dispatch(createGroup(link, group, callback)), resetForm: () => { dispatch(createGroupReset()); - }, + } }; }; @@ -96,11 +96,11 @@ const mapStateToProps = state => { createLink, loading, error, - autocompleteLink, + autocompleteLink }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('groups')(CreateGroup)); + mapDispatchToProps +)(translate("groups")(CreateGroup)); diff --git a/scm-ui/ui-webapp/src/groups/containers/DeleteGroup.tsx b/scm-ui/ui-webapp/src/groups/containers/DeleteGroup.tsx index 0e367a8e84..c2280ca90b 100644 --- a/scm-ui/ui-webapp/src/groups/containers/DeleteGroup.tsx +++ b/scm-ui/ui-webapp/src/groups/containers/DeleteGroup.tsx @@ -1,20 +1,20 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Group } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import { Group } from "@scm-manager/ui-types"; import { Subtitle, DeleteButton, confirmAlert, - ErrorNotification, -} from '@scm-manager/ui-components'; + ErrorNotification +} from "@scm-manager/ui-components"; import { deleteGroup, getDeleteGroupFailure, - isDeleteGroupPending, -} from '../modules/groups'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import { History } from 'history'; + isDeleteGroupPending +} from "../modules/groups"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import { History } from "history"; type Props = { loading: boolean; @@ -30,7 +30,7 @@ type Props = { export class DeleteGroup extends React.Component<Props> { static defaultProps = { - confirmDialog: true, + confirmDialog: true }; deleteGroup = () => { @@ -38,24 +38,24 @@ export class DeleteGroup extends React.Component<Props> { }; groupDeleted = () => { - this.props.history.push('/groups/'); + this.props.history.push("/groups/"); }; confirmDelete = () => { const { t } = this.props; confirmAlert({ - title: t('deleteGroup.confirmAlert.title'), - message: t('deleteGroup.confirmAlert.message'), + title: t("deleteGroup.confirmAlert.title"), + message: t("deleteGroup.confirmAlert.message"), buttons: [ { - label: t('deleteGroup.confirmAlert.submit'), - onClick: () => this.deleteGroup(), + label: t("deleteGroup.confirmAlert.submit"), + onClick: () => this.deleteGroup() }, { - label: t('deleteGroup.confirmAlert.cancel'), - onClick: () => null, - }, - ], + label: t("deleteGroup.confirmAlert.cancel"), + onClick: () => null + } + ] }); }; @@ -73,12 +73,12 @@ export class DeleteGroup extends React.Component<Props> { return ( <> - <Subtitle subtitle={t('deleteGroup.subtitle')} /> + <Subtitle subtitle={t("deleteGroup.subtitle")} /> <ErrorNotification error={error} /> <div className="columns"> <div className="column"> <DeleteButton - label={t('deleteGroup.button')} + label={t("deleteGroup.button")} action={action} loading={loading} /> @@ -94,7 +94,7 @@ const mapStateToProps = (state, ownProps) => { const error = getDeleteGroupFailure(state, ownProps.group.name); return { loading, - error, + error }; }; @@ -102,11 +102,11 @@ const mapDispatchToProps = dispatch => { return { deleteGroup: (group: Group, callback?: () => void) => { dispatch(deleteGroup(group, callback)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(withRouter(translate('groups')(DeleteGroup))); + mapDispatchToProps +)(withRouter(translate("groups")(DeleteGroup))); diff --git a/scm-ui/ui-webapp/src/groups/containers/EditGroup.tsx b/scm-ui/ui-webapp/src/groups/containers/EditGroup.tsx index 3b15a96271..675453ce3d 100644 --- a/scm-ui/ui-webapp/src/groups/containers/EditGroup.tsx +++ b/scm-ui/ui-webapp/src/groups/containers/EditGroup.tsx @@ -1,18 +1,18 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import GroupForm from '../components/GroupForm'; +import React from "react"; +import { connect } from "react-redux"; +import GroupForm from "../components/GroupForm"; import { modifyGroup, getModifyGroupFailure, isModifyGroupPending, - modifyGroupReset, -} from '../modules/groups'; -import { History } from 'history'; -import { withRouter } from 'react-router-dom'; -import { Group } from '@scm-manager/ui-types'; -import { ErrorNotification } from '@scm-manager/ui-components'; -import { getUserAutoCompleteLink } from '../../modules/indexResource'; -import DeleteGroup from './DeleteGroup'; + modifyGroupReset +} from "../modules/groups"; +import { History } from "history"; +import { withRouter } from "react-router-dom"; +import { Group } from "@scm-manager/ui-types"; +import { ErrorNotification } from "@scm-manager/ui-components"; +import { getUserAutoCompleteLink } from "../../modules/indexResource"; +import DeleteGroup from "./DeleteGroup"; type Props = { group: Group; @@ -40,14 +40,14 @@ class EditGroup extends React.Component<Props> { }; loadUserAutocompletion = (inputValue: string) => { - const url = this.props.autocompleteLink + '?q='; + const url = this.props.autocompleteLink + "?q="; return fetch(url + inputValue) .then(response => response.json()) .then(json => { return json.map(element => { return { value: element, - label: `${element.displayName} (${element.id})`, + label: `${element.displayName} (${element.id})` }; }); }); @@ -80,7 +80,7 @@ const mapStateToProps = (state, ownProps) => { return { loading, error, - autocompleteLink, + autocompleteLink }; }; @@ -91,11 +91,11 @@ const mapDispatchToProps = dispatch => { }, modifyGroupReset: (group: Group) => { dispatch(modifyGroupReset(group)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, + mapDispatchToProps )(withRouter(EditGroup)); diff --git a/scm-ui/ui-webapp/src/groups/containers/Groups.tsx b/scm-ui/ui-webapp/src/groups/containers/Groups.tsx index 5be0ca3727..ad9c9ee14f 100644 --- a/scm-ui/ui-webapp/src/groups/containers/Groups.tsx +++ b/scm-ui/ui-webapp/src/groups/containers/Groups.tsx @@ -1,16 +1,16 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { History } from 'history'; -import { Group, PagedCollection } from '@scm-manager/ui-types'; +import React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { History } from "history"; +import { Group, PagedCollection } from "@scm-manager/ui-types"; import { fetchGroupsByPage, getGroupsFromState, isFetchGroupsPending, getFetchGroupsFailure, isPermittedToCreateGroups, - selectListAsCollection, -} from '../modules/groups'; + selectListAsCollection +} from "../modules/groups"; import { Page, PageActions, @@ -18,10 +18,10 @@ import { Notification, LinkPaginator, urls, - CreateButton, -} from '@scm-manager/ui-components'; -import { GroupTable } from './../components/table'; -import { getGroupsLink } from '../../modules/indexResource'; + CreateButton +} from "@scm-manager/ui-components"; +import { GroupTable } from "./../components/table"; +import { getGroupsLink } from "../../modules/indexResource"; type Props = { groups: Group[]; @@ -47,7 +47,7 @@ class Groups extends React.Component<Props> { fetchGroupsByPage( groupLink, page, - urls.getQueryStringFromLocation(location), + urls.getQueryStringFromLocation(location) ); } @@ -58,7 +58,7 @@ class Groups extends React.Component<Props> { page, groupLink, location, - fetchGroupsByPage, + fetchGroupsByPage } = this.props; if (list && page && !loading) { const statePage: number = list.page + 1; @@ -66,7 +66,7 @@ class Groups extends React.Component<Props> { fetchGroupsByPage( groupLink, page, - urls.getQueryStringFromLocation(location), + urls.getQueryStringFromLocation(location) ); } } @@ -76,8 +76,8 @@ class Groups extends React.Component<Props> { const { groups, loading, error, canAddGroups, t } = this.props; return ( <Page - title={t('groups.title')} - subtitle={t('groups.subtitle')} + title={t("groups.title")} + subtitle={t("groups.subtitle")} loading={loading || !groups} error={error} > @@ -87,7 +87,7 @@ class Groups extends React.Component<Props> { <OverviewPageActions showCreateButton={canAddGroups} link="groups" - label={t('create-group-button.label')} + label={t("create-group-button.label")} /> </PageActions> </Page> @@ -108,7 +108,7 @@ class Groups extends React.Component<Props> { </> ); } - return <Notification type="info">{t('groups.noGroups')}</Notification>; + return <Notification type="info">{t("groups.noGroups")}</Notification>; } renderCreateButton() { @@ -116,7 +116,7 @@ class Groups extends React.Component<Props> { if (canAddGroups) { return ( <CreateButton - label={t('create-group-button.label')} + label={t("create-group-button.label")} link="/groups/create" /> ); @@ -142,7 +142,7 @@ const mapStateToProps = (state, ownProps) => { canAddGroups, list, page, - groupLink, + groupLink }; }; @@ -150,11 +150,11 @@ const mapDispatchToProps = dispatch => { return { fetchGroupsByPage: (link: string, page: number, filter?: string) => { dispatch(fetchGroupsByPage(link, page, filter)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('groups')(Groups)); + mapDispatchToProps +)(translate("groups")(Groups)); diff --git a/scm-ui/ui-webapp/src/groups/containers/SingleGroup.tsx b/scm-ui/ui-webapp/src/groups/containers/SingleGroup.tsx index b413adb9cc..a8e7c48871 100644 --- a/scm-ui/ui-webapp/src/groups/containers/SingleGroup.tsx +++ b/scm-ui/ui-webapp/src/groups/containers/SingleGroup.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import { connect } from 'react-redux'; +import React from "react"; +import { connect } from "react-redux"; import { Page, ErrorPage, @@ -7,28 +7,28 @@ import { Navigation, SubNavigation, Section, - NavLink, -} from '@scm-manager/ui-components'; -import { Route } from 'react-router-dom'; -import { Details } from './../components/table'; + NavLink +} from "@scm-manager/ui-components"; +import { Route } from "react-router-dom"; +import { Details } from "./../components/table"; import { EditGroupNavLink, - SetPermissionsNavLink, -} from './../components/navLinks'; -import { Group } from '@scm-manager/ui-types'; -import { History } from 'history'; + SetPermissionsNavLink +} from "./../components/navLinks"; +import { Group } from "@scm-manager/ui-types"; +import { History } from "history"; import { fetchGroupByName, getGroupByName, isFetchGroupPending, - getFetchGroupFailure, -} from '../modules/groups'; + getFetchGroupFailure +} from "../modules/groups"; -import { translate } from 'react-i18next'; -import EditGroup from './EditGroup'; -import { getGroupsLink } from '../../modules/indexResource'; -import SetPermissions from '../../permissions/components/SetPermissions'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; +import { translate } from "react-i18next"; +import EditGroup from "./EditGroup"; +import { getGroupsLink } from "../../modules/indexResource"; +import SetPermissions from "../../permissions/components/SetPermissions"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; type Props = { name: string; @@ -52,7 +52,7 @@ class SingleGroup extends React.Component<Props> { } stripEndingSlash = (url: string) => { - if (url.endsWith('/')) { + if (url.endsWith("/")) { return url.substring(0, url.length - 2); } return url; @@ -68,8 +68,8 @@ class SingleGroup extends React.Component<Props> { if (error) { return ( <ErrorPage - title={t('singleGroup.errorTitle')} - subtitle={t('singleGroup.errorSubtitle')} + title={t("singleGroup.errorTitle")} + subtitle={t("singleGroup.errorSubtitle")} error={error} /> ); @@ -83,7 +83,7 @@ class SingleGroup extends React.Component<Props> { const extensionProps = { group, - url, + url }; return ( @@ -117,11 +117,11 @@ class SingleGroup extends React.Component<Props> { </div> <div className="column"> <Navigation> - <Section label={t('singleGroup.menu.navigationLabel')}> + <Section label={t("singleGroup.menu.navigationLabel")}> <NavLink to={`${url}`} icon="fas fa-info-circle" - label={t('singleGroup.menu.informationNavLink')} + label={t("singleGroup.menu.informationNavLink")} /> <ExtensionPoint name="group.navigation" @@ -130,7 +130,7 @@ class SingleGroup extends React.Component<Props> { /> <SubNavigation to={`${url}/settings/general`} - label={t('singleGroup.menu.settingsNavLink')} + label={t("singleGroup.menu.settingsNavLink")} > <EditGroupNavLink group={group} @@ -167,7 +167,7 @@ const mapStateToProps = (state, ownProps) => { group, loading, error, - groupLink, + groupLink }; }; @@ -175,11 +175,11 @@ const mapDispatchToProps = dispatch => { return { fetchGroupByName: (link: string, name: string) => { dispatch(fetchGroupByName(link, name)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('groups')(SingleGroup)); + mapDispatchToProps +)(translate("groups")(SingleGroup)); diff --git a/scm-ui/ui-webapp/src/groups/modules/groups.test.ts b/scm-ui/ui-webapp/src/groups/modules/groups.test.ts index 3f1ae64015..f37cba80d1 100644 --- a/scm-ui/ui-webapp/src/groups/modules/groups.test.ts +++ b/scm-ui/ui-webapp/src/groups/modules/groups.test.ts @@ -1,6 +1,6 @@ -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import reducer, { fetchGroups, @@ -43,67 +43,67 @@ import reducer, { MODIFY_GROUP_PENDING, MODIFY_GROUP_SUCCESS, MODIFY_GROUP_FAILURE, - getCreateGroupLink, -} from './groups'; -const GROUPS_URL = '/api/v2/groups'; -const URL_HUMAN_GROUP = 'http://localhost:8081/api/v2/groups/humanGroup'; -const URL = '/groups'; + getCreateGroupLink +} from "./groups"; +const GROUPS_URL = "/api/v2/groups"; +const URL_HUMAN_GROUP = "http://localhost:8081/api/v2/groups/humanGroup"; +const URL = "/groups"; -const error = new Error('You have an error!'); +const error = new Error("You have an error!"); const humanGroup = { - creationDate: '2018-07-31T08:39:07.860Z', - description: 'This is a group', - name: 'humanGroup', - type: 'xml', + creationDate: "2018-07-31T08:39:07.860Z", + description: "This is a group", + name: "humanGroup", + type: "xml", properties: {}, - members: ['userZaphod'], + members: ["userZaphod"], _links: { self: { - href: URL_HUMAN_GROUP, + href: URL_HUMAN_GROUP }, delete: { - href: URL_HUMAN_GROUP, + href: URL_HUMAN_GROUP }, update: { - href: URL_HUMAN_GROUP, - }, + href: URL_HUMAN_GROUP + } }, _embedded: { members: [ { - name: 'userZaphod', + name: "userZaphod", _links: { self: { - href: 'http://localhost:8081/api/v2/users/userZaphod', - }, - }, - }, - ], - }, + href: "http://localhost:8081/api/v2/users/userZaphod" + } + } + } + ] + } }; const emptyGroup = { - creationDate: '2018-07-31T08:39:07.860Z', - description: 'This is a group', - name: 'emptyGroup', - type: 'xml', + creationDate: "2018-07-31T08:39:07.860Z", + description: "This is a group", + name: "emptyGroup", + type: "xml", properties: {}, members: [], _links: { self: { - href: 'http://localhost:8081/api/v2/groups/emptyGroup', + href: "http://localhost:8081/api/v2/groups/emptyGroup" }, delete: { - href: 'http://localhost:8081/api/v2/groups/emptyGroup', + href: "http://localhost:8081/api/v2/groups/emptyGroup" }, update: { - href: 'http://localhost:8081/api/v2/groups/emptyGroup', - }, + href: "http://localhost:8081/api/v2/groups/emptyGroup" + } }, _embedded: { - members: [], - }, + members: [] + } }; const responseBody = { @@ -111,48 +111,48 @@ const responseBody = { pageTotal: 1, _links: { self: { - href: 'http://localhost:3000/api/v2/groups/?page=0&pageSize=10', + href: "http://localhost:3000/api/v2/groups/?page=0&pageSize=10" }, first: { - href: 'http://localhost:3000/api/v2/groups/?page=0&pageSize=10', + href: "http://localhost:3000/api/v2/groups/?page=0&pageSize=10" }, last: { - href: 'http://localhost:3000/api/v2/groups/?page=0&pageSize=10', + href: "http://localhost:3000/api/v2/groups/?page=0&pageSize=10" }, create: { - href: 'http://localhost:3000/api/v2/groups/', - }, + href: "http://localhost:3000/api/v2/groups/" + } }, _embedded: { - groups: [humanGroup, emptyGroup], - }, + groups: [humanGroup, emptyGroup] + } }; const response = { headers: { - 'content-type': 'application/json', + "content-type": "application/json" }, - responseBody, + responseBody }; -describe('groups fetch()', () => { +describe("groups fetch()", () => { const mockStore = configureMockStore([thunk]); afterEach(() => { fetchMock.reset(); fetchMock.restore(); }); - it('should successfully fetch groups', () => { + it("should successfully fetch groups", () => { fetchMock.getOnce(GROUPS_URL, response); const expectedActions = [ { - type: FETCH_GROUPS_PENDING, + type: FETCH_GROUPS_PENDING }, { type: FETCH_GROUPS_SUCCESS, - payload: response, - }, + payload: response + } ]; const store = mockStore({}); @@ -162,9 +162,9 @@ describe('groups fetch()', () => { }); }); - it('should fail getting groups on HTTP 500', () => { + it("should fail getting groups on HTTP 500", () => { fetchMock.getOnce(GROUPS_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -176,11 +176,11 @@ describe('groups fetch()', () => { }); }); - it('should sucessfully fetch single group by name', () => { - fetchMock.getOnce(GROUPS_URL + '/humanGroup', humanGroup); + it("should sucessfully fetch single group by name", () => { + fetchMock.getOnce(GROUPS_URL + "/humanGroup", humanGroup); const store = mockStore({}); - return store.dispatch(fetchGroupByName(URL, 'humanGroup')).then(() => { + return store.dispatch(fetchGroupByName(URL, "humanGroup")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_GROUP_PENDING); expect(actions[1].type).toEqual(FETCH_GROUP_SUCCESS); @@ -188,13 +188,13 @@ describe('groups fetch()', () => { }); }); - it('should fail fetching single group by name on HTTP 500', () => { - fetchMock.getOnce(GROUPS_URL + '/humanGroup', { - status: 500, + it("should fail fetching single group by name on HTTP 500", () => { + fetchMock.getOnce(GROUPS_URL + "/humanGroup", { + status: 500 }); const store = mockStore({}); - return store.dispatch(fetchGroupByName(URL, 'humanGroup')).then(() => { + return store.dispatch(fetchGroupByName(URL, "humanGroup")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_GROUP_PENDING); expect(actions[1].type).toEqual(FETCH_GROUP_FAILURE); @@ -202,7 +202,7 @@ describe('groups fetch()', () => { }); }); - it('should sucessfully fetch single group', () => { + it("should sucessfully fetch single group", () => { fetchMock.getOnce(URL_HUMAN_GROUP, humanGroup); const store = mockStore({}); @@ -214,9 +214,9 @@ describe('groups fetch()', () => { }); }); - it('should fail fetching single group on HTTP 500', () => { + it("should fail fetching single group on HTTP 500", () => { fetchMock.getOnce(URL_HUMAN_GROUP, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -228,9 +228,9 @@ describe('groups fetch()', () => { }); }); - it('should successfully create group', () => { + it("should successfully create group", () => { fetchMock.postOnce(GROUPS_URL, { - status: 201, + status: 201 }); const store = mockStore({}); @@ -241,9 +241,9 @@ describe('groups fetch()', () => { }); }); - it('should call the callback after creating group', () => { + it("should call the callback after creating group", () => { fetchMock.postOnce(GROUPS_URL, { - status: 201, + status: 201 }); let called = false; @@ -259,9 +259,9 @@ describe('groups fetch()', () => { }); }); - it('should fail creating group on HTTP 500', () => { + it("should fail creating group on HTTP 500", () => { fetchMock.postOnce(GROUPS_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -274,9 +274,9 @@ describe('groups fetch()', () => { }); }); - it('should successfully modify group', () => { + it("should successfully modify group", () => { fetchMock.putOnce(URL_HUMAN_GROUP, { - status: 204, + status: 204 }); fetchMock.getOnce(URL_HUMAN_GROUP, humanGroup); @@ -291,9 +291,9 @@ describe('groups fetch()', () => { }); }); - it('should call the callback after modifying group', () => { + it("should call the callback after modifying group", () => { fetchMock.putOnce(URL_HUMAN_GROUP, { - status: 204, + status: 204 }); fetchMock.getOnce(URL_HUMAN_GROUP, humanGroup); @@ -312,9 +312,9 @@ describe('groups fetch()', () => { }); }); - it('should fail modifying group on HTTP 500', () => { + it("should fail modifying group on HTTP 500", () => { fetchMock.putOnce(URL_HUMAN_GROUP, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -327,9 +327,9 @@ describe('groups fetch()', () => { }); }); - it('should delete successfully group humanGroup', () => { + it("should delete successfully group humanGroup", () => { fetchMock.deleteOnce(URL_HUMAN_GROUP, { - status: 204, + status: 204 }); const store = mockStore({}); @@ -342,9 +342,9 @@ describe('groups fetch()', () => { }); }); - it('should call the callback, after successful delete', () => { + it("should call the callback, after successful delete", () => { fetchMock.deleteOnce(URL_HUMAN_GROUP, { - status: 204, + status: 204 }); let called = false; @@ -358,9 +358,9 @@ describe('groups fetch()', () => { }); }); - it('should fail to delete group humanGroup', () => { + it("should fail to delete group humanGroup", () => { fetchMock.deleteOnce(URL_HUMAN_GROUP, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -374,339 +374,339 @@ describe('groups fetch()', () => { }); }); -describe('groups reducer', () => { - it('should update state correctly according to FETCH_GROUPS_SUCCESS action', () => { +describe("groups reducer", () => { + it("should update state correctly according to FETCH_GROUPS_SUCCESS action", () => { const newState = reducer({}, fetchGroupsSuccess(responseBody)); expect(newState.list).toEqual({ - entries: ['humanGroup', 'emptyGroup'], + entries: ["humanGroup", "emptyGroup"], entry: { groupCreatePermission: true, page: 0, pageTotal: 1, - _links: responseBody._links, - }, + _links: responseBody._links + } }); expect(newState.byNames).toEqual({ humanGroup: humanGroup, - emptyGroup: emptyGroup, + emptyGroup: emptyGroup }); expect(newState.list.entry.groupCreatePermission).toBeTruthy(); }); - it('should set groupCreatePermission to true if update link is present', () => { + it("should set groupCreatePermission to true if update link is present", () => { const newState = reducer({}, fetchGroupsSuccess(responseBody)); expect(newState.list.entry.groupCreatePermission).toBeTruthy(); }); - it('should not replace whole byNames map when fetching groups', () => { + it("should not replace whole byNames map when fetching groups", () => { const oldState = { byNames: { - emptyGroup: emptyGroup, - }, + emptyGroup: emptyGroup + } }; const newState = reducer(oldState, fetchGroupsSuccess(responseBody)); - expect(newState.byNames['humanGroup']).toBeDefined(); - expect(newState.byNames['emptyGroup']).toBeDefined(); + expect(newState.byNames["humanGroup"]).toBeDefined(); + expect(newState.byNames["emptyGroup"]).toBeDefined(); }); - it('should set groupCreatePermission to true if create link is present', () => { + it("should set groupCreatePermission to true if create link is present", () => { const newState = reducer({}, fetchGroupsSuccess(responseBody)); expect(newState.list.entry.groupCreatePermission).toBeTruthy(); - expect(newState.list.entries).toEqual(['humanGroup', 'emptyGroup']); - expect(newState.byNames['emptyGroup']).toBeTruthy(); - expect(newState.byNames['humanGroup']).toBeTruthy(); + expect(newState.list.entries).toEqual(["humanGroup", "emptyGroup"]); + expect(newState.byNames["emptyGroup"]).toBeTruthy(); + expect(newState.byNames["humanGroup"]).toBeTruthy(); }); - it('should update state according to FETCH_GROUP_SUCCESS action', () => { + it("should update state according to FETCH_GROUP_SUCCESS action", () => { const newState = reducer({}, fetchGroupSuccess(emptyGroup)); - expect(newState.byNames['emptyGroup']).toBe(emptyGroup); + expect(newState.byNames["emptyGroup"]).toBe(emptyGroup); }); - it('should affect groups state nor the state of other groups', () => { + it("should affect groups state nor the state of other groups", () => { const newState = reducer( { list: { - entries: ['humanGroup'], - }, + entries: ["humanGroup"] + } }, - fetchGroupSuccess(emptyGroup), + fetchGroupSuccess(emptyGroup) ); - expect(newState.byNames['emptyGroup']).toBe(emptyGroup); - expect(newState.list.entries).toEqual(['humanGroup']); + expect(newState.byNames["emptyGroup"]).toBe(emptyGroup); + expect(newState.list.entries).toEqual(["humanGroup"]); }); - it('should remove group from state when delete succeeds', () => { + it("should remove group from state when delete succeeds", () => { const state = { list: { - entries: ['humanGroup', 'emptyGroup'], + entries: ["humanGroup", "emptyGroup"] }, byNames: { humanGroup: humanGroup, - emptyGroup: emptyGroup, - }, + emptyGroup: emptyGroup + } }; const newState = reducer(state, deleteGroupSuccess(emptyGroup)); - expect(newState.byNames['humanGroup']).toBeDefined(); - expect(newState.byNames['emptyGroup']).toBeFalsy(); - expect(newState.list.entries).toEqual(['humanGroup']); + expect(newState.byNames["humanGroup"]).toBeDefined(); + expect(newState.byNames["emptyGroup"]).toBeFalsy(); + expect(newState.list.entries).toEqual(["humanGroup"]); }); }); -describe('selector tests', () => { - it('should return an empty object', () => { +describe("selector tests", () => { + it("should return an empty object", () => { expect(selectListAsCollection({})).toEqual({}); expect( selectListAsCollection({ groups: { - a: 'a', - }, - }), + a: "a" + } + }) ).toEqual({}); }); - it('should return a state slice collection', () => { + it("should return a state slice collection", () => { const collection = { page: 3, - totalPages: 42, + totalPages: 42 }; const state = { groups: { list: { - entry: collection, - }, - }, + entry: collection + } + } }; expect(selectListAsCollection(state)).toBe(collection); }); - it('should return false when groupCreatePermission is false', () => { + it("should return false when groupCreatePermission is false", () => { expect(isPermittedToCreateGroups({})).toBe(false); expect( isPermittedToCreateGroups({ groups: { list: { - entry: {}, - }, - }, - }), + entry: {} + } + } + }) ).toBe(false); expect( isPermittedToCreateGroups({ groups: { list: { entry: { - groupCreatePermission: false, - }, - }, - }, - }), + groupCreatePermission: false + } + } + } + }) ).toBe(false); }); - it('should return true when groupCreatePermission is true', () => { + it("should return true when groupCreatePermission is true", () => { const state = { groups: { list: { entry: { - groupCreatePermission: true, - }, - }, - }, + groupCreatePermission: true + } + } + } }; expect(isPermittedToCreateGroups(state)).toBe(true); }); - it('should return create Group link', () => { + it("should return create Group link", () => { const state = { groups: { list: { entry: { _links: { create: { - href: '/create', - }, - }, - }, - }, - }, + href: "/create" + } + } + } + } + } }; - expect(getCreateGroupLink(state)).toBe('/create'); + expect(getCreateGroupLink(state)).toBe("/create"); }); - it('should get groups from state', () => { + it("should get groups from state", () => { const state = { groups: { list: { - entries: ['a', 'b'], + entries: ["a", "b"] }, byNames: { a: { - name: 'a', + name: "a" }, b: { - name: 'b', - }, - }, - }, + name: "b" + } + } + } }; expect(getGroupsFromState(state)).toEqual([ { - name: 'a', + name: "a" }, { - name: 'b', - }, + name: "b" + } ]); }); - it('should return null when there are no groups in the state', () => { + it("should return null when there are no groups in the state", () => { expect(getGroupsFromState({})).toBe(null); }); - it('should return true, when fetch groups is pending', () => { + it("should return true, when fetch groups is pending", () => { const state = { pending: { - [FETCH_GROUPS]: true, - }, + [FETCH_GROUPS]: true + } }; expect(isFetchGroupsPending(state)).toEqual(true); }); - it('should return false, when fetch groups is not pending', () => { + it("should return false, when fetch groups is not pending", () => { expect(isFetchGroupsPending({})).toEqual(false); }); - it('should return error when fetch groups did fail', () => { + it("should return error when fetch groups did fail", () => { const state = { failure: { - [FETCH_GROUPS]: error, - }, + [FETCH_GROUPS]: error + } }; expect(getFetchGroupsFailure(state)).toEqual(error); }); - it('should return undefined when fetch groups did not fail', () => { + it("should return undefined when fetch groups did not fail", () => { expect(getFetchGroupsFailure({})).toBe(undefined); }); - it('should return group emptyGroup', () => { + it("should return group emptyGroup", () => { const state = { groups: { byNames: { - emptyGroup: emptyGroup, - }, - }, + emptyGroup: emptyGroup + } + } }; - expect(getGroupByName(state, 'emptyGroup')).toEqual(emptyGroup); + expect(getGroupByName(state, "emptyGroup")).toEqual(emptyGroup); }); - it('should return true, when fetch group humanGroup is pending', () => { + it("should return true, when fetch group humanGroup is pending", () => { const state = { pending: { - [FETCH_GROUP + '/humanGroup']: true, - }, + [FETCH_GROUP + "/humanGroup"]: true + } }; - expect(isFetchGroupPending(state, 'humanGroup')).toEqual(true); + expect(isFetchGroupPending(state, "humanGroup")).toEqual(true); }); - it('should return false, when fetch group humanGroup is not pending', () => { - expect(isFetchGroupPending({}, 'humanGroup')).toEqual(false); + it("should return false, when fetch group humanGroup is not pending", () => { + expect(isFetchGroupPending({}, "humanGroup")).toEqual(false); }); - it('should return error when fetch group humanGroup did fail', () => { + it("should return error when fetch group humanGroup did fail", () => { const state = { failure: { - [FETCH_GROUP + '/humanGroup']: error, - }, + [FETCH_GROUP + "/humanGroup"]: error + } }; - expect(getFetchGroupFailure(state, 'humanGroup')).toEqual(error); + expect(getFetchGroupFailure(state, "humanGroup")).toEqual(error); }); - it('should return undefined when fetch group humanGroup did not fail', () => { - expect(getFetchGroupFailure({}, 'humanGroup')).toBe(undefined); + it("should return undefined when fetch group humanGroup did not fail", () => { + expect(getFetchGroupFailure({}, "humanGroup")).toBe(undefined); }); - it('should return true if create group is pending', () => { + it("should return true if create group is pending", () => { expect( isCreateGroupPending({ pending: { - [CREATE_GROUP]: true, - }, - }), + [CREATE_GROUP]: true + } + }) ).toBeTruthy(); }); - it('should return false if create group is not pending', () => { + it("should return false if create group is not pending", () => { expect(isCreateGroupPending({})).toBe(false); }); - it('should return error if creating group failed', () => { + it("should return error if creating group failed", () => { expect( getCreateGroupFailure({ failure: { - [CREATE_GROUP]: error, - }, - }), + [CREATE_GROUP]: error + } + }) ).toEqual(error); }); - it('should return undefined if creating group did not fail', () => { + it("should return undefined if creating group did not fail", () => { expect(getCreateGroupFailure({})).toBeUndefined(); }); - it('should return true, when delete group humanGroup is pending', () => { + it("should return true, when delete group humanGroup is pending", () => { const state = { pending: { - [DELETE_GROUP + '/humanGroup']: true, - }, + [DELETE_GROUP + "/humanGroup"]: true + } }; - expect(isDeleteGroupPending(state, 'humanGroup')).toEqual(true); + expect(isDeleteGroupPending(state, "humanGroup")).toEqual(true); }); - it('should return false, when delete group humanGroup is not pending', () => { - expect(isDeleteGroupPending({}, 'humanGroup')).toEqual(false); + it("should return false, when delete group humanGroup is not pending", () => { + expect(isDeleteGroupPending({}, "humanGroup")).toEqual(false); }); - it('should return error when delete group humanGroup did fail', () => { + it("should return error when delete group humanGroup did fail", () => { const state = { failure: { - [DELETE_GROUP + '/humanGroup']: error, - }, + [DELETE_GROUP + "/humanGroup"]: error + } }; - expect(getDeleteGroupFailure(state, 'humanGroup')).toEqual(error); + expect(getDeleteGroupFailure(state, "humanGroup")).toEqual(error); }); - it('should return undefined when delete group humanGroup did not fail', () => { - expect(getDeleteGroupFailure({}, 'humanGroup')).toBe(undefined); + it("should return undefined when delete group humanGroup did not fail", () => { + expect(getDeleteGroupFailure({}, "humanGroup")).toBe(undefined); }); - it('should return true, if createGroup is pending', () => { + it("should return true, if createGroup is pending", () => { const state = { pending: { - [CREATE_GROUP]: true, - }, + [CREATE_GROUP]: true + } }; expect(isCreateGroupPending(state)).toBe(true); }); - it('should return false, if createGroup is not pending', () => { + it("should return false, if createGroup is not pending", () => { expect(isCreateGroupPending({})).toBe(false); }); - it('should return error of createGroup failed', () => { + it("should return error of createGroup failed", () => { const state = { failure: { - [CREATE_GROUP]: error, - }, + [CREATE_GROUP]: error + } }; expect(getCreateGroupFailure(state)).toEqual(error); }); diff --git a/scm-ui/ui-webapp/src/groups/modules/groups.ts b/scm-ui/ui-webapp/src/groups/modules/groups.ts index ffac749c57..dfca66f00a 100644 --- a/scm-ui/ui-webapp/src/groups/modules/groups.ts +++ b/scm-ui/ui-webapp/src/groups/modules/groups.ts @@ -1,38 +1,38 @@ -import { apiClient } from '@scm-manager/ui-components'; -import { isPending } from '../../modules/pending'; -import { getFailure } from '../../modules/failure'; -import * as types from '../../modules/types'; -import { combineReducers, Dispatch } from 'redux'; -import { Action, PagedCollection, Group } from '@scm-manager/ui-types'; +import { apiClient } from "@scm-manager/ui-components"; +import { isPending } from "../../modules/pending"; +import { getFailure } from "../../modules/failure"; +import * as types from "../../modules/types"; +import { combineReducers, Dispatch } from "redux"; +import { Action, PagedCollection, Group } from "@scm-manager/ui-types"; -export const FETCH_GROUPS = 'scm/groups/FETCH_GROUPS'; +export const FETCH_GROUPS = "scm/groups/FETCH_GROUPS"; export const FETCH_GROUPS_PENDING = `${FETCH_GROUPS}_${types.PENDING_SUFFIX}`; export const FETCH_GROUPS_SUCCESS = `${FETCH_GROUPS}_${types.SUCCESS_SUFFIX}`; export const FETCH_GROUPS_FAILURE = `${FETCH_GROUPS}_${types.FAILURE_SUFFIX}`; -export const FETCH_GROUP = 'scm/groups/FETCH_GROUP'; +export const FETCH_GROUP = "scm/groups/FETCH_GROUP"; export const FETCH_GROUP_PENDING = `${FETCH_GROUP}_${types.PENDING_SUFFIX}`; export const FETCH_GROUP_SUCCESS = `${FETCH_GROUP}_${types.SUCCESS_SUFFIX}`; export const FETCH_GROUP_FAILURE = `${FETCH_GROUP}_${types.FAILURE_SUFFIX}`; -export const CREATE_GROUP = 'scm/groups/CREATE_GROUP'; +export const CREATE_GROUP = "scm/groups/CREATE_GROUP"; export const CREATE_GROUP_PENDING = `${CREATE_GROUP}_${types.PENDING_SUFFIX}`; export const CREATE_GROUP_SUCCESS = `${CREATE_GROUP}_${types.SUCCESS_SUFFIX}`; export const CREATE_GROUP_FAILURE = `${CREATE_GROUP}_${types.FAILURE_SUFFIX}`; export const CREATE_GROUP_RESET = `${CREATE_GROUP}_${types.RESET_SUFFIX}`; -export const MODIFY_GROUP = 'scm/groups/MODIFY_GROUP'; +export const MODIFY_GROUP = "scm/groups/MODIFY_GROUP"; export const MODIFY_GROUP_PENDING = `${MODIFY_GROUP}_${types.PENDING_SUFFIX}`; export const MODIFY_GROUP_SUCCESS = `${MODIFY_GROUP}_${types.SUCCESS_SUFFIX}`; export const MODIFY_GROUP_FAILURE = `${MODIFY_GROUP}_${types.FAILURE_SUFFIX}`; export const MODIFY_GROUP_RESET = `${MODIFY_GROUP}_${types.RESET_SUFFIX}`; -export const DELETE_GROUP = 'scm/groups/DELETE_GROUP'; +export const DELETE_GROUP = "scm/groups/DELETE_GROUP"; export const DELETE_GROUP_PENDING = `${DELETE_GROUP}_${types.PENDING_SUFFIX}`; export const DELETE_GROUP_SUCCESS = `${DELETE_GROUP}_${types.SUCCESS_SUFFIX}`; export const DELETE_GROUP_FAILURE = `${DELETE_GROUP}_${types.FAILURE_SUFFIX}`; -const CONTENT_TYPE_GROUP = 'application/vnd.scmm-group+json;v=2'; +const CONTENT_TYPE_GROUP = "application/vnd.scmm-group+json;v=2"; // fetch groups export function fetchGroups(link: string) { @@ -43,7 +43,7 @@ export function fetchGroupsByPage(link: string, page: number, filter?: string) { // backend start counting by 0 if (filter) { return fetchGroupsByLink( - `${link}?page=${page - 1}&q=${decodeURIComponent(filter)}`, + `${link}?page=${page - 1}&q=${decodeURIComponent(filter)}` ); } return fetchGroupsByLink(`${link}?page=${page - 1}`); @@ -66,14 +66,14 @@ export function fetchGroupsByLink(link: string) { export function fetchGroupsPending(): Action { return { - type: FETCH_GROUPS_PENDING, + type: FETCH_GROUPS_PENDING }; } export function fetchGroupsSuccess(groups: any): Action { return { type: FETCH_GROUPS_SUCCESS, - payload: groups, + payload: groups }; } @@ -82,8 +82,8 @@ export function fetchGroupsFailure(url: string, error: Error): Action { type: FETCH_GROUPS_FAILURE, payload: { error, - url, - }, + url + } }; } @@ -93,7 +93,7 @@ export function fetchGroupByLink(group: Group) { } export function fetchGroupByName(link: string, name: string) { - const groupUrl = link.endsWith('/') ? link + name : link + '/' + name; + const groupUrl = link.endsWith("/") ? link + name : link + "/" + name; return fetchGroup(groupUrl, name); } @@ -118,7 +118,7 @@ export function fetchGroupPending(name: string): Action { return { type: FETCH_GROUP_PENDING, payload: name, - itemId: name, + itemId: name }; } @@ -126,7 +126,7 @@ export function fetchGroupSuccess(group: any): Action { return { type: FETCH_GROUP_SUCCESS, payload: group, - itemId: group.name, + itemId: group.name }; } @@ -135,9 +135,9 @@ export function fetchGroupFailure(name: string, error: Error): Action { type: FETCH_GROUP_FAILURE, payload: { name, - error, + error }, - itemId: name, + itemId: name }; } @@ -161,26 +161,26 @@ export function createGroup(link: string, group: Group, callback?: () => void) { export function createGroupPending() { return { - type: CREATE_GROUP_PENDING, + type: CREATE_GROUP_PENDING }; } export function createGroupSuccess() { return { - type: CREATE_GROUP_SUCCESS, + type: CREATE_GROUP_SUCCESS }; } export function createGroupFailure(error: Error) { return { type: CREATE_GROUP_FAILURE, - payload: error, + payload: error }; } export function createGroupReset() { return { - type: CREATE_GROUP_RESET, + type: CREATE_GROUP_RESET }; } @@ -209,7 +209,7 @@ export function modifyGroupPending(group: Group): Action { return { type: MODIFY_GROUP_PENDING, payload: group, - itemId: group.name, + itemId: group.name }; } @@ -217,7 +217,7 @@ export function modifyGroupSuccess(group: Group): Action { return { type: MODIFY_GROUP_SUCCESS, payload: group, - itemId: group.name, + itemId: group.name }; } @@ -226,16 +226,16 @@ export function modifyGroupFailure(group: Group, error: Error): Action { type: MODIFY_GROUP_FAILURE, payload: { error, - group, + group }, - itemId: group.name, + itemId: group.name }; } export function modifyGroupReset(group: Group): Action { return { type: MODIFY_GROUP_RESET, - itemId: group.name, + itemId: group.name }; } @@ -262,7 +262,7 @@ export function deleteGroupPending(group: Group): Action { return { type: DELETE_GROUP_PENDING, payload: group, - itemId: group.name, + itemId: group.name }; } @@ -270,7 +270,7 @@ export function deleteGroupSuccess(group: Group): Action { return { type: DELETE_GROUP_SUCCESS, payload: group, - itemId: group.name, + itemId: group.name }; } @@ -279,9 +279,9 @@ export function deleteGroupFailure(group: Group, error: Error): Action { type: DELETE_GROUP_FAILURE, payload: { error, - group, + group }, - itemId: group.name, + itemId: group.name }; } @@ -289,7 +289,7 @@ export function deleteGroupFailure(group: Group, error: Error): Action { function extractGroupsByNames( groups: Group[], groupNames: string[], - oldGroupsByNames: object, + oldGroupsByNames: object ) { const groupsByNames = {}; @@ -322,7 +322,7 @@ function deleteGroupInEntries(groups: [], groupName: string) { const reducerByName = (state: any, groupname: string, newGroupState: any) => { const newGroupsByNames = { ...state, - [groupname]: newGroupState, + [groupname]: newGroupState }; return newGroupsByNames; @@ -340,18 +340,18 @@ function listReducer(state: any = {}, action: any = {}) { groupCreatePermission: !!action.payload._links.create, page: action.payload.page, pageTotal: action.payload.pageTotal, - _links: action.payload._links, - }, + _links: action.payload._links + } }; // Delete single group actions case DELETE_GROUP_SUCCESS: const newGroupEntries = deleteGroupInEntries( state.entries, - action.payload.name, + action.payload.name ); return { ...state, - entries: newGroupEntries, + entries: newGroupEntries }; default: return state; @@ -366,14 +366,14 @@ function byNamesReducer(state: any = {}, action: any = {}) { const groupNames = groups.map(group => group.name); const byNames = extractGroupsByNames(groups, groupNames, state.byNames); return { - ...byNames, + ...byNames }; case FETCH_GROUP_SUCCESS: return reducerByName(state, action.payload.name, action.payload); case DELETE_GROUP_SUCCESS: const newGroupByNames = deleteGroupInGroupsByNames( state, - action.payload.name, + action.payload.name ); return newGroupByNames; @@ -384,7 +384,7 @@ function byNamesReducer(state: any = {}, action: any = {}) { export default combineReducers({ list: listReducer, - byNames: byNamesReducer, + byNames: byNamesReducer }); // selectors diff --git a/scm-ui/ui-webapp/src/i18n.ts b/scm-ui/ui-webapp/src/i18n.ts index cfc485f75f..b0898eaabb 100644 --- a/scm-ui/ui-webapp/src/i18n.ts +++ b/scm-ui/ui-webapp/src/i18n.ts @@ -1,10 +1,10 @@ -import i18n from 'i18next'; -import Backend from 'i18next-fetch-backend'; -import LanguageDetector from 'i18next-browser-languagedetector'; -import { reactI18nextModule } from 'react-i18next'; -import { urls } from '@scm-manager/ui-components'; +import i18n from "i18next"; +import Backend from "i18next-fetch-backend"; +import LanguageDetector from "i18next-browser-languagedetector"; +import { reactI18nextModule } from "react-i18next"; +import { urls } from "@scm-manager/ui-components"; -const loadPath = urls.withContextPath('/locales/{{lng}}/{{ns}}.json'); +const loadPath = urls.withContextPath("/locales/{{lng}}/{{ns}}.json"); // TODO load locales for moment @@ -13,31 +13,31 @@ i18n .use(LanguageDetector) .use(reactI18nextModule) .init({ - fallbackLng: 'en', + fallbackLng: "en", // try to load only "en" and not "en_US" - load: 'languageOnly', + load: "languageOnly", // have a common namespace used around the full app - ns: ['commons'], - defaultNS: 'commons', + ns: ["commons"], + defaultNS: "commons", debug: false, interpolation: { - escapeValue: false, // not needed for react!! + escapeValue: false // not needed for react!! }, react: { - wait: true, + wait: true }, backend: { loadPath: loadPath, init: { - credentials: 'same-origin', - }, - }, + credentials: "same-origin" + } + } }); export default i18n; diff --git a/scm-ui/ui-webapp/src/index.tsx b/scm-ui/ui-webapp/src/index.tsx index ff06b28ad7..be732b3b51 100644 --- a/scm-ui/ui-webapp/src/index.tsx +++ b/scm-ui/ui-webapp/src/index.tsx @@ -1,22 +1,22 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; -import Index from './containers/Index'; +import React from "react"; +import ReactDOM from "react-dom"; +import Index from "./containers/Index"; -import { I18nextProvider } from 'react-i18next'; -import i18n from './i18n'; +import { I18nextProvider } from "react-i18next"; +import i18n from "./i18n"; -import { Provider } from 'react-redux'; +import { Provider } from "react-redux"; -import createReduxStore from './createReduxStore'; -import { BrowserRouter as Router } from 'react-router-dom'; +import createReduxStore from "./createReduxStore"; +import { BrowserRouter as Router } from "react-router-dom"; -import { urls } from '@scm-manager/ui-components'; +import { urls } from "@scm-manager/ui-components"; const store = createReduxStore(); -const root = document.getElementById('root'); +const root = document.getElementById("root"); if (!root) { - throw new Error('could not find root element'); + throw new Error("could not find root element"); } ReactDOM.render( @@ -27,5 +27,5 @@ ReactDOM.render( </Router> </I18nextProvider> </Provider>, - root, + root ); diff --git a/scm-ui/ui-webapp/src/modules/auth.test.ts b/scm-ui/ui-webapp/src/modules/auth.test.ts index a1377c7569..86cf4cf892 100644 --- a/scm-ui/ui-webapp/src/modules/auth.test.ts +++ b/scm-ui/ui-webapp/src/modules/auth.test.ts @@ -29,62 +29,62 @@ import reducer, { LOGOUT_REDIRECT, LOGOUT_SUCCESS, logoutSuccess, - redirectAfterLogout, -} from './auth'; + redirectAfterLogout +} from "./auth"; -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import { FETCH_INDEXRESOURCES_PENDING, - FETCH_INDEXRESOURCES_SUCCESS, -} from './indexResource'; + FETCH_INDEXRESOURCES_SUCCESS +} from "./indexResource"; const me = { - name: 'tricia', - displayName: 'Tricia McMillian', - mail: 'trillian@heartofgold.universe', + name: "tricia", + displayName: "Tricia McMillian", + mail: "trillian@heartofgold.universe" }; -describe('auth reducer', () => { - it('should set me and login on successful fetch of me', () => { +describe("auth reducer", () => { + it("should set me and login on successful fetch of me", () => { const state = reducer(undefined, fetchMeSuccess(me)); expect(state.me).toBe(me); }); - it('should set authenticated to false', () => { + it("should set authenticated to false", () => { const initialState = { - me, + me }; const state = reducer(initialState, fetchMeUnauthenticated()); expect(state.me.name).toBeUndefined(); }); - it('should reset the state after logout', () => { + it("should reset the state after logout", () => { const initialState = { - me, + me }; const state = reducer(initialState, logoutSuccess()); expect(state.me).toBeUndefined(); expect(state.authenticated).toBeUndefined(); }); - it('should keep state and set redirecting to true', () => { + it("should keep state and set redirecting to true", () => { const initialState = { - me, + me }; const state = reducer(initialState, redirectAfterLogout()); expect(state.me).toBe(initialState.me); expect(state.redirecting).toBe(true); }); - it('should set state authenticated and me after login', () => { + it("should set state authenticated and me after login", () => { const state = reducer(undefined, loginSuccess(me)); expect(state.me).toBe(me); }); }); -describe('auth actions', () => { +describe("auth actions", () => { const mockStore = configureMockStore([thunk]); afterEach(() => { @@ -92,72 +92,72 @@ describe('auth actions', () => { fetchMock.restore(); }); - it('should dispatch login success and dispatch fetch me', () => { - fetchMock.postOnce('/api/v2/auth/access_token', { + it("should dispatch login success and dispatch fetch me", () => { + fetchMock.postOnce("/api/v2/auth/access_token", { body: { cookie: true, - grant_type: 'password', - username: 'tricia', - password: 'secret123', + grant_type: "password", + username: "tricia", + password: "secret123" }, headers: { - 'content-type': 'application/json', - }, + "content-type": "application/json" + } }); - fetchMock.getOnce('/api/v2/me', { + fetchMock.getOnce("/api/v2/me", { body: me, headers: { - 'content-type': 'application/json', - }, + "content-type": "application/json" + } }); const meLink = { me: { - href: '/me', - }, + href: "/me" + } }; - fetchMock.getOnce('/api/v2/', { - _links: meLink, + fetchMock.getOnce("/api/v2/", { + _links: meLink }); const expectedActions = [ { - type: LOGIN_PENDING, + type: LOGIN_PENDING }, { - type: FETCH_INDEXRESOURCES_PENDING, + type: FETCH_INDEXRESOURCES_PENDING }, { type: FETCH_INDEXRESOURCES_SUCCESS, payload: { - _links: meLink, - }, + _links: meLink + } }, { type: LOGIN_SUCCESS, - payload: me, - }, + payload: me + } ]; const store = mockStore({}); return store - .dispatch(login('/auth/access_token', 'tricia', 'secret123')) + .dispatch(login("/auth/access_token", "tricia", "secret123")) .then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should dispatch login failure', () => { - fetchMock.postOnce('/api/v2/auth/access_token', { - status: 400, + it("should dispatch login failure", () => { + fetchMock.postOnce("/api/v2/auth/access_token", { + status: 400 }); const store = mockStore({}); return store - .dispatch(login('/auth/access_token', 'tricia', 'secret123')) + .dispatch(login("/auth/access_token", "tricia", "secret123")) .then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(LOGIN_PENDING); @@ -166,38 +166,38 @@ describe('auth actions', () => { }); }); - it('should dispatch fetch me success', () => { - fetchMock.getOnce('/api/v2/me', { + it("should dispatch fetch me success", () => { + fetchMock.getOnce("/api/v2/me", { body: me, headers: { - 'content-type': 'application/json', - }, + "content-type": "application/json" + } }); const expectedActions = [ { - type: FETCH_ME_PENDING, + type: FETCH_ME_PENDING }, { type: FETCH_ME_SUCCESS, - payload: me, - }, + payload: me + } ]; const store = mockStore({}); - return store.dispatch(fetchMe('me')).then(() => { + return store.dispatch(fetchMe("me")).then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should dispatch fetch me failure', () => { - fetchMock.getOnce('/api/v2/me', { - status: 500, + it("should dispatch fetch me failure", () => { + fetchMock.getOnce("/api/v2/me", { + status: 500 }); const store = mockStore({}); - return store.dispatch(fetchMe('me')).then(() => { + return store.dispatch(fetchMe("me")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_ME_PENDING); expect(actions[1].type).toEqual(FETCH_ME_FAILURE); @@ -205,111 +205,111 @@ describe('auth actions', () => { }); }); - it('should dispatch fetch me unauthorized', () => { - fetchMock.getOnce('/api/v2/me', 401); + it("should dispatch fetch me unauthorized", () => { + fetchMock.getOnce("/api/v2/me", 401); const expectedActions = [ { - type: FETCH_ME_PENDING, + type: FETCH_ME_PENDING }, { type: FETCH_ME_UNAUTHORIZED, - resetPending: true, - }, + resetPending: true + } ]; const store = mockStore({}); - return store.dispatch(fetchMe('me')).then(() => { + return store.dispatch(fetchMe("me")).then(() => { // return of async actions expect(store.getActions()).toEqual(expectedActions); }); }); - it('should dispatch logout success', () => { - fetchMock.deleteOnce('/api/v2/auth/access_token', { - status: 204, + it("should dispatch logout success", () => { + fetchMock.deleteOnce("/api/v2/auth/access_token", { + status: 204 }); - fetchMock.getOnce('/api/v2/me', { - status: 401, + fetchMock.getOnce("/api/v2/me", { + status: 401 }); - fetchMock.getOnce('/api/v2/', { + fetchMock.getOnce("/api/v2/", { _links: { login: { - login: '/login', - }, - }, + login: "/login" + } + } }); const expectedActions = [ { - type: LOGOUT_PENDING, + type: LOGOUT_PENDING }, { - type: LOGOUT_SUCCESS, + type: LOGOUT_SUCCESS }, { - type: FETCH_INDEXRESOURCES_PENDING, - }, + type: FETCH_INDEXRESOURCES_PENDING + } ]; const store = mockStore({}); - return store.dispatch(logout('/auth/access_token')).then(() => { + return store.dispatch(logout("/auth/access_token")).then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should dispatch logout success and redirect', () => { - fetchMock.deleteOnce('/api/v2/auth/access_token', { + it("should dispatch logout success and redirect", () => { + fetchMock.deleteOnce("/api/v2/auth/access_token", { status: 200, body: { - logoutRedirect: 'http://example.com/cas/logout', - }, + logoutRedirect: "http://example.com/cas/logout" + } }); - fetchMock.getOnce('/api/v2/me', { - status: 401, + fetchMock.getOnce("/api/v2/me", { + status: 401 }); - fetchMock.getOnce('/api/v2/', { + fetchMock.getOnce("/api/v2/", { _links: { login: { - login: '/login', - }, - }, + login: "/login" + } + } }); window.location.assign = jest.fn(); const expectedActions = [ { - type: LOGOUT_PENDING, + type: LOGOUT_PENDING }, { - type: LOGOUT_REDIRECT, - }, + type: LOGOUT_REDIRECT + } ]; const store = mockStore({}); - return store.dispatch(logout('/auth/access_token')).then(() => { + return store.dispatch(logout("/auth/access_token")).then(() => { expect(window.location.assign.mock.calls[0][0]).toBe( - 'http://example.com/cas/logout', + "http://example.com/cas/logout" ); expect(store.getActions()).toEqual(expectedActions); }); }); - it('should dispatch logout failure', () => { - fetchMock.deleteOnce('/api/v2/auth/access_token', { - status: 500, + it("should dispatch logout failure", () => { + fetchMock.deleteOnce("/api/v2/auth/access_token", { + status: 500 }); const store = mockStore({}); - return store.dispatch(logout('/auth/access_token')).then(() => { + return store.dispatch(logout("/auth/access_token")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(LOGOUT_PENDING); expect(actions[1].type).toEqual(LOGOUT_FAILURE); @@ -318,170 +318,170 @@ describe('auth actions', () => { }); }); -describe('auth selectors', () => { - const error = new Error('yo it failed'); +describe("auth selectors", () => { + const error = new Error("yo it failed"); - it('should return true if me exist and login Link does not exist', () => { + it("should return true if me exist and login Link does not exist", () => { expect( isAuthenticated({ auth: { - me, + me }, indexResources: { - links: {}, - }, - }), + links: {} + } + }) ).toBe(true); }); - it('should return false if me exist and login Link does exist', () => { + it("should return false if me exist and login Link does exist", () => { expect( isAuthenticated({ auth: { - me, + me }, indexResources: { links: { login: { - href: 'login.href', - }, - }, - }, - }), + href: "login.href" + } + } + } + }) ).toBe(false); }); - it('should return me', () => { + it("should return me", () => { expect( getMe({ auth: { - me, - }, - }), + me + } + }) ).toBe(me); }); - it('should return undefined, if me is not set', () => { + it("should return undefined, if me is not set", () => { expect(getMe({})).toBeUndefined(); }); - it('should return true, if FETCH_ME is pending', () => { + it("should return true, if FETCH_ME is pending", () => { expect( isFetchMePending({ pending: { - [FETCH_ME]: true, - }, - }), + [FETCH_ME]: true + } + }) ).toBe(true); }); - it('should return false, if FETCH_ME is not in pending state', () => { + it("should return false, if FETCH_ME is not in pending state", () => { expect( isFetchMePending({ - pending: {}, - }), + pending: {} + }) ).toBe(false); }); - it('should return true, if LOGIN is pending', () => { + it("should return true, if LOGIN is pending", () => { expect( isLoginPending({ pending: { - [LOGIN]: true, - }, - }), + [LOGIN]: true + } + }) ).toBe(true); }); - it('should return false, if LOGIN is not in pending state', () => { + it("should return false, if LOGIN is not in pending state", () => { expect( isLoginPending({ - pending: {}, - }), + pending: {} + }) ).toBe(false); }); - it('should return true, if LOGOUT is pending', () => { + it("should return true, if LOGOUT is pending", () => { expect( isLogoutPending({ pending: { - [LOGOUT]: true, - }, - }), + [LOGOUT]: true + } + }) ).toBe(true); }); - it('should return false, if LOGOUT is not in pending state', () => { + it("should return false, if LOGOUT is not in pending state", () => { expect( isLogoutPending({ - pending: {}, - }), + pending: {} + }) ).toBe(false); }); - it('should return the error, if failure state is set for FETCH_ME', () => { + it("should return the error, if failure state is set for FETCH_ME", () => { expect( getFetchMeFailure({ failure: { - [FETCH_ME]: error, - }, - }), + [FETCH_ME]: error + } + }) ).toBe(error); }); - it('should return unknown, if failure state is not set for FETCH_ME', () => { + it("should return unknown, if failure state is not set for FETCH_ME", () => { expect(getFetchMeFailure({})).toBeUndefined(); }); - it('should return the error, if failure state is set for LOGIN', () => { + it("should return the error, if failure state is set for LOGIN", () => { expect( getLoginFailure({ failure: { - [LOGIN]: error, - }, - }), + [LOGIN]: error + } + }) ).toBe(error); }); - it('should return unknown, if failure state is not set for LOGIN', () => { + it("should return unknown, if failure state is not set for LOGIN", () => { expect(getLoginFailure({})).toBeUndefined(); }); - it('should return the error, if failure state is set for LOGOUT', () => { + it("should return the error, if failure state is set for LOGOUT", () => { expect( getLogoutFailure({ failure: { - [LOGOUT]: error, - }, - }), + [LOGOUT]: error + } + }) ).toBe(error); }); - it('should return unknown, if failure state is not set for LOGOUT', () => { + it("should return unknown, if failure state is not set for LOGOUT", () => { expect(getLogoutFailure({})).toBeUndefined(); }); - it('should return false, if redirecting is not set', () => { + it("should return false, if redirecting is not set", () => { expect(isRedirecting({})).toBe(false); }); - it('should return false, if redirecting is false', () => { + it("should return false, if redirecting is false", () => { expect( isRedirecting({ auth: { - redirecting: false, - }, - }), + redirecting: false + } + }) ).toBe(false); }); - it('should return true, if redirecting is true', () => { + it("should return true, if redirecting is true", () => { expect( isRedirecting({ auth: { - redirecting: true, - }, - }), + redirecting: true + } + }) ).toBe(true); }); }); diff --git a/scm-ui/ui-webapp/src/modules/auth.ts b/scm-ui/ui-webapp/src/modules/auth.ts index 66613a6b02..9ad8b986e4 100644 --- a/scm-ui/ui-webapp/src/modules/auth.ts +++ b/scm-ui/ui-webapp/src/modules/auth.ts @@ -1,31 +1,31 @@ -import { Me } from '@scm-manager/ui-types'; -import * as types from './types'; +import { Me } from "@scm-manager/ui-types"; +import * as types from "./types"; -import { apiClient, UnauthorizedError } from '@scm-manager/ui-components'; -import { isPending } from './pending'; -import { getFailure } from './failure'; +import { apiClient, UnauthorizedError } from "@scm-manager/ui-components"; +import { isPending } from "./pending"; +import { getFailure } from "./failure"; import { callFetchIndexResources, fetchIndexResources, fetchIndexResourcesPending, fetchIndexResourcesSuccess, - getLoginLink, -} from './indexResource'; + getLoginLink +} from "./indexResource"; // Action -export const LOGIN = 'scm/auth/LOGIN'; +export const LOGIN = "scm/auth/LOGIN"; export const LOGIN_PENDING = `${LOGIN}_${types.PENDING_SUFFIX}`; export const LOGIN_SUCCESS = `${LOGIN}_${types.SUCCESS_SUFFIX}`; export const LOGIN_FAILURE = `${LOGIN}_${types.FAILURE_SUFFIX}`; -export const FETCH_ME = 'scm/auth/FETCH_ME'; +export const FETCH_ME = "scm/auth/FETCH_ME"; export const FETCH_ME_PENDING = `${FETCH_ME}_${types.PENDING_SUFFIX}`; export const FETCH_ME_SUCCESS = `${FETCH_ME}_${types.SUCCESS_SUFFIX}`; export const FETCH_ME_FAILURE = `${FETCH_ME}_${types.FAILURE_SUFFIX}`; export const FETCH_ME_UNAUTHORIZED = `${FETCH_ME}_UNAUTHORIZED`; -export const LOGOUT = 'scm/auth/LOGOUT'; +export const LOGOUT = "scm/auth/LOGOUT"; export const LOGOUT_PENDING = `${LOGOUT}_${types.PENDING_SUFFIX}`; export const LOGOUT_SUCCESS = `${LOGOUT}_${types.SUCCESS_SUFFIX}`; export const LOGOUT_FAILURE = `${LOGOUT}_${types.FAILURE_SUFFIX}`; @@ -38,19 +38,19 @@ const initialState = {}; export default function reducer( state: object = initialState, action: object = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ) { switch (action.type) { case LOGIN_SUCCESS: case FETCH_ME_SUCCESS: return { ...state, - me: action.payload, + me: action.payload }; case FETCH_ME_UNAUTHORIZED: return { - me: {}, + me: {} }; case LOGOUT_SUCCESS: return initialState; @@ -59,7 +59,7 @@ export default function reducer( // we keep the current state until we are redirected to the new page return { ...state, - redirecting: true, + redirecting: true }; } default: @@ -71,73 +71,73 @@ export default function reducer( export const loginPending = () => { return { - type: LOGIN_PENDING, + type: LOGIN_PENDING }; }; export const loginSuccess = (me: Me) => { return { type: LOGIN_SUCCESS, - payload: me, + payload: me }; }; export const loginFailure = (error: Error) => { return { type: LOGIN_FAILURE, - payload: error, + payload: error }; }; export const logoutPending = () => { return { - type: LOGOUT_PENDING, + type: LOGOUT_PENDING }; }; export const logoutSuccess = () => { return { - type: LOGOUT_SUCCESS, + type: LOGOUT_SUCCESS }; }; export const redirectAfterLogout = () => { return { - type: LOGOUT_REDIRECT, + type: LOGOUT_REDIRECT }; }; export const logoutFailure = (error: Error) => { return { type: LOGOUT_FAILURE, - payload: error, + payload: error }; }; export const fetchMePending = () => { return { - type: FETCH_ME_PENDING, + type: FETCH_ME_PENDING }; }; export const fetchMeSuccess = (me: Me) => { return { type: FETCH_ME_SUCCESS, - payload: me, + payload: me }; }; export const fetchMeUnauthenticated = () => { return { type: FETCH_ME_UNAUTHORIZED, - resetPending: true, + resetPending: true }; }; export const fetchMeFailure = (error: Error) => { return { type: FETCH_ME_FAILURE, - payload: error, + payload: error }; }; @@ -152,13 +152,13 @@ const callFetchMe = (link: string): Promise<Me> => { export const login = ( loginLink: string, username: string, - password: string, + password: string ) => { const login_data = { cookie: true, - grant_type: 'password', + grant_type: "password", username, - password, + password }; return function(dispatch: any) { dispatch(loginPending()); diff --git a/scm-ui/ui-webapp/src/modules/changePassword.test.ts b/scm-ui/ui-webapp/src/modules/changePassword.test.ts index 0b470a2a4b..94ad2b304a 100644 --- a/scm-ui/ui-webapp/src/modules/changePassword.test.ts +++ b/scm-ui/ui-webapp/src/modules/changePassword.test.ts @@ -1,27 +1,27 @@ -import fetchMock from 'fetch-mock'; -import { changePassword, CONTENT_TYPE_PASSWORD_CHANGE } from './changePassword'; +import fetchMock from "fetch-mock"; +import { changePassword, CONTENT_TYPE_PASSWORD_CHANGE } from "./changePassword"; -describe('change password', () => { - const CHANGE_PASSWORD_URL = '/me/password'; - const oldPassword = 'old'; - const newPassword = 'new'; +describe("change password", () => { + const CHANGE_PASSWORD_URL = "/me/password"; + const oldPassword = "old"; + const newPassword = "new"; afterEach(() => { fetchMock.reset(); fetchMock.restore(); }); - it('should update password', done => { - fetchMock.put('/api/v2' + CHANGE_PASSWORD_URL, 204, { + it("should update password", done => { + fetchMock.put("/api/v2" + CHANGE_PASSWORD_URL, 204, { headers: { - 'content-type': CONTENT_TYPE_PASSWORD_CHANGE, - }, + "content-type": CONTENT_TYPE_PASSWORD_CHANGE + } }); changePassword(CHANGE_PASSWORD_URL, oldPassword, newPassword).then( content => { done(); - }, + } ); }); }); diff --git a/scm-ui/ui-webapp/src/modules/changePassword.ts b/scm-ui/ui-webapp/src/modules/changePassword.ts index a5042e6bc5..1ca5ef2cdb 100644 --- a/scm-ui/ui-webapp/src/modules/changePassword.ts +++ b/scm-ui/ui-webapp/src/modules/changePassword.ts @@ -1,20 +1,20 @@ -import { apiClient } from '@scm-manager/ui-components'; +import { apiClient } from "@scm-manager/ui-components"; export const CONTENT_TYPE_PASSWORD_CHANGE = - 'application/vnd.scmm-passwordChange+json;v=2'; + "application/vnd.scmm-passwordChange+json;v=2"; export function changePassword( url: string, oldPassword: string, - newPassword: string, + newPassword: string ) { return apiClient .put( url, { oldPassword, - newPassword, + newPassword }, - CONTENT_TYPE_PASSWORD_CHANGE, + CONTENT_TYPE_PASSWORD_CHANGE ) .then(response => { return response; diff --git a/scm-ui/ui-webapp/src/modules/failure.test.ts b/scm-ui/ui-webapp/src/modules/failure.test.ts index 2df146cdb9..90c69daf9c 100644 --- a/scm-ui/ui-webapp/src/modules/failure.test.ts +++ b/scm-ui/ui-webapp/src/modules/failure.test.ts @@ -1,158 +1,158 @@ -import reducer, { getFailure } from './failure'; +import reducer, { getFailure } from "./failure"; -const err = new Error('something failed'); -const otherErr = new Error('something else failed'); +const err = new Error("something failed"); +const otherErr = new Error("something else failed"); -describe('failure reducer', () => { - it('should set the error for FETCH_ITEMS', () => { +describe("failure reducer", () => { + it("should set the error for FETCH_ITEMS", () => { const newState = reducer( {}, { - type: 'FETCH_ITEMS_FAILURE', - payload: err, - }, + type: "FETCH_ITEMS_FAILURE", + payload: err + } ); - expect(newState['FETCH_ITEMS']).toBe(err); + expect(newState["FETCH_ITEMS"]).toBe(err); }); - it('should do nothing for unknown action types', () => { + it("should do nothing for unknown action types", () => { const state = {}; const newState = reducer(state, { - type: 'UNKNOWN', + type: "UNKNOWN" }); expect(newState).toBe(state); }); - it('should set the error for FETCH_ITEMS, if payload has multiple values', () => { + it("should set the error for FETCH_ITEMS, if payload has multiple values", () => { const newState = reducer( {}, { - type: 'FETCH_ITEMS_FAILURE', + type: "FETCH_ITEMS_FAILURE", payload: { - something: 'something', - error: err, - }, - }, + something: "something", + error: err + } + } ); - expect(newState['FETCH_ITEMS']).toBe(err); + expect(newState["FETCH_ITEMS"]).toBe(err); }); - it('should set the error for FETCH_ITEMS, but should not affect others', () => { + it("should set the error for FETCH_ITEMS, but should not affect others", () => { const newState = reducer( { - FETCH_USERS: otherErr, + FETCH_USERS: otherErr }, { - type: 'FETCH_ITEMS_FAILURE', - payload: err, - }, + type: "FETCH_ITEMS_FAILURE", + payload: err + } ); - expect(newState['FETCH_ITEMS']).toBe(err); - expect(newState['FETCH_USERS']).toBe(otherErr); + expect(newState["FETCH_ITEMS"]).toBe(err); + expect(newState["FETCH_USERS"]).toBe(otherErr); }); - it('should reset FETCH_ITEMS after FETCH_ITEMS_SUCCESS', () => { + it("should reset FETCH_ITEMS after FETCH_ITEMS_SUCCESS", () => { + const newState = reducer( + { + FETCH_ITEMS: err + }, + { + type: "FETCH_ITEMS_SUCCESS" + } + ); + expect(newState["FETCH_ITEMS"]).toBeFalsy(); + }); + + it("should reset FETCH_ITEMS after FETCH_ITEMS_RESET", () => { + const newState = reducer( + { + FETCH_ITEMS: err + }, + { + type: "FETCH_ITEMS_RESET" + } + ); + expect(newState["FETCH_ITEMS"]).toBeFalsy(); + }); + + it("should reset FETCH_ITEMS after FETCH_ITEMS_RESET, but should not affect others", () => { const newState = reducer( { FETCH_ITEMS: err, + FETCH_USERS: err }, { - type: 'FETCH_ITEMS_SUCCESS', - }, + type: "FETCH_ITEMS_RESET" + } ); - expect(newState['FETCH_ITEMS']).toBeFalsy(); + expect(newState["FETCH_ITEMS"]).toBeFalsy(); + expect(newState["FETCH_USERS"]).toBe(err); }); - it('should reset FETCH_ITEMS after FETCH_ITEMS_RESET', () => { - const newState = reducer( - { - FETCH_ITEMS: err, - }, - { - type: 'FETCH_ITEMS_RESET', - }, - ); - expect(newState['FETCH_ITEMS']).toBeFalsy(); - }); - - it('should reset FETCH_ITEMS after FETCH_ITEMS_RESET, but should not affect others', () => { - const newState = reducer( - { - FETCH_ITEMS: err, - FETCH_USERS: err, - }, - { - type: 'FETCH_ITEMS_RESET', - }, - ); - expect(newState['FETCH_ITEMS']).toBeFalsy(); - expect(newState['FETCH_USERS']).toBe(err); - }); - - it('should set the error for a single item of FETCH_ITEM', () => { + it("should set the error for a single item of FETCH_ITEM", () => { const newState = reducer( {}, { - type: 'FETCH_ITEM_FAILURE', + type: "FETCH_ITEM_FAILURE", payload: err, - itemId: 42, - }, + itemId: 42 + } ); - expect(newState['FETCH_ITEM/42']).toBe(err); + expect(newState["FETCH_ITEM/42"]).toBe(err); }); - it('should reset error for a single item of FETCH_ITEM', () => { + it("should reset error for a single item of FETCH_ITEM", () => { const newState = reducer( { - 'FETCH_ITEM/42': err, + "FETCH_ITEM/42": err }, { - type: 'FETCH_ITEM_SUCCESS', + type: "FETCH_ITEM_SUCCESS", payload: err, - itemId: 42, - }, + itemId: 42 + } ); - expect(newState['FETCH_ITEM/42']).toBeUndefined(); + expect(newState["FETCH_ITEM/42"]).toBeUndefined(); }); }); -describe('failure selector', () => { - it('should return failure, if FETCH_ITEMS failure exists', () => { +describe("failure selector", () => { + it("should return failure, if FETCH_ITEMS failure exists", () => { const failure = getFailure( { failure: { - FETCH_ITEMS: err, - }, + FETCH_ITEMS: err + } }, - 'FETCH_ITEMS', + "FETCH_ITEMS" ); expect(failure).toBe(err); }); - it('should return undefined, if state has no failure', () => { - const failure = getFailure({}, 'FETCH_ITEMS'); + it("should return undefined, if state has no failure", () => { + const failure = getFailure({}, "FETCH_ITEMS"); expect(failure).toBeUndefined(); }); - it('should return undefined, if FETCH_ITEMS is not defined', () => { + it("should return undefined, if FETCH_ITEMS is not defined", () => { const failure = getFailure( { - failure: {}, + failure: {} }, - 'FETCH_ITEMS', + "FETCH_ITEMS" ); expect(failure).toBeFalsy(); }); - it('should return failure, if FETCH_ITEM 42 failure exists', () => { + it("should return failure, if FETCH_ITEM 42 failure exists", () => { const failure = getFailure( { failure: { - 'FETCH_ITEM/42': err, - }, + "FETCH_ITEM/42": err + } }, - 'FETCH_ITEM', - 42, + "FETCH_ITEM", + 42 ); expect(failure).toBe(err); }); diff --git a/scm-ui/ui-webapp/src/modules/failure.ts b/scm-ui/ui-webapp/src/modules/failure.ts index f91cd5061e..b27929d31c 100644 --- a/scm-ui/ui-webapp/src/modules/failure.ts +++ b/scm-ui/ui-webapp/src/modules/failure.ts @@ -1,13 +1,13 @@ -import { Action } from '@scm-manager/ui-types'; +import { Action } from "@scm-manager/ui-types"; -const FAILURE_SUFFIX = '_FAILURE'; +const FAILURE_SUFFIX = "_FAILURE"; const RESET_PATTERN = /^(.*)_(SUCCESS|RESET)$/; function extractIdentifierFromFailure(action: Action) { const type = action.type; let identifier = type.substring(0, type.length - FAILURE_SUFFIX.length); if (action.itemId) { - identifier += '/' + action.itemId; + identifier += "/" + action.itemId; } return identifier; } @@ -15,7 +15,7 @@ function extractIdentifierFromFailure(action: Action) { function removeAllEntriesOfIdentifierFromState( state: object, payload: any, - identifier: string, + identifier: string ) { const newState = {}; for (let failureType in state) { @@ -39,8 +39,8 @@ function removeFromState(state: object, identifier: string) { export default function reducer( state: object = {}, action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): object { const type = action.type; if (type.endsWith(FAILURE_SUFFIX)) { @@ -53,20 +53,20 @@ export default function reducer( } return { ...state, - [identifier]: payload, + [identifier]: payload }; } else { const match = RESET_PATTERN.exec(type); if (match) { let identifier = match[1]; if (action.itemId) { - identifier += '/' + action.itemId; + identifier += "/" + action.itemId; } if (action.payload) return removeAllEntriesOfIdentifierFromState( state, action.payload, - identifier, + identifier ); else return removeFromState(state, identifier); } @@ -77,12 +77,12 @@ export default function reducer( export function getFailure( state: object, actionType: string, - itemId?: string | number, + itemId?: string | number ) { if (state.failure) { let identifier = actionType; if (itemId) { - identifier += '/' + itemId; + identifier += "/" + itemId; } return state.failure[identifier]; } diff --git a/scm-ui/ui-webapp/src/modules/indexResource.test.ts b/scm-ui/ui-webapp/src/modules/indexResource.test.ts index 7d62f02e50..2fcb9e6ed0 100644 --- a/scm-ui/ui-webapp/src/modules/indexResource.test.ts +++ b/scm-ui/ui-webapp/src/modules/indexResource.test.ts @@ -1,6 +1,6 @@ -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import reducer, { FETCH_INDEXRESOURCES_PENDING, FETCH_INDEXRESOURCES_SUCCESS, @@ -24,76 +24,76 @@ import reducer, { getGroupsLink, getLinkCollection, getUserAutoCompleteLink, - getGroupAutoCompleteLink, -} from './indexResource'; + getGroupAutoCompleteLink +} from "./indexResource"; const indexResourcesUnauthenticated = { - version: '2.0.0-SNAPSHOT', + version: "2.0.0-SNAPSHOT", _links: { self: { - href: 'http://localhost:8081/scm/api/v2/', + href: "http://localhost:8081/scm/api/v2/" }, uiPlugins: { - href: 'http://localhost:8081/scm/api/v2/ui/plugins', + href: "http://localhost:8081/scm/api/v2/ui/plugins" }, login: { - href: 'http://localhost:8081/scm/api/v2/auth/access_token', - }, - }, + href: "http://localhost:8081/scm/api/v2/auth/access_token" + } + } }; const indexResourcesAuthenticated = { - version: '2.0.0-SNAPSHOT', + version: "2.0.0-SNAPSHOT", _links: { self: { - href: 'http://localhost:8081/scm/api/v2/', + href: "http://localhost:8081/scm/api/v2/" }, uiPlugins: { - href: 'http://localhost:8081/scm/api/v2/ui/plugins', + href: "http://localhost:8081/scm/api/v2/ui/plugins" }, me: { - href: 'http://localhost:8081/scm/api/v2/me/', + href: "http://localhost:8081/scm/api/v2/me/" }, logout: { - href: 'http://localhost:8081/scm/api/v2/auth/access_token', + href: "http://localhost:8081/scm/api/v2/auth/access_token" }, users: { - href: 'http://localhost:8081/scm/api/v2/users/', + href: "http://localhost:8081/scm/api/v2/users/" }, groups: { - href: 'http://localhost:8081/scm/api/v2/groups/', + href: "http://localhost:8081/scm/api/v2/groups/" }, config: { - href: 'http://localhost:8081/scm/api/v2/config', + href: "http://localhost:8081/scm/api/v2/config" }, repositories: { - href: 'http://localhost:8081/scm/api/v2/repositories/', + href: "http://localhost:8081/scm/api/v2/repositories/" }, hgConfig: { - href: 'http://localhost:8081/scm/api/v2/config/hg', + href: "http://localhost:8081/scm/api/v2/config/hg" }, gitConfig: { - href: 'http://localhost:8081/scm/api/v2/config/git', + href: "http://localhost:8081/scm/api/v2/config/git" }, svnConfig: { - href: 'http://localhost:8081/scm/api/v2/config/svn', + href: "http://localhost:8081/scm/api/v2/config/svn" }, autocomplete: [ { - href: 'http://localhost:8081/scm/api/v2/autocomplete/users', - name: 'users', + href: "http://localhost:8081/scm/api/v2/autocomplete/users", + name: "users" }, { - href: 'http://localhost:8081/scm/api/v2/autocomplete/groups', - name: 'groups', - }, - ], - }, + href: "http://localhost:8081/scm/api/v2/autocomplete/groups", + name: "groups" + } + ] + } }; -describe('index resource', () => { - describe('fetch index resource', () => { - const index_url = '/api/v2/'; +describe("index resource", () => { + describe("fetch index resource", () => { + const index_url = "/api/v2/"; const mockStore = configureMockStore([thunk]); afterEach(() => { @@ -101,17 +101,17 @@ describe('index resource', () => { fetchMock.restore(); }); - it('should successfully fetch index resources when unauthenticated', () => { + it("should successfully fetch index resources when unauthenticated", () => { fetchMock.getOnce(index_url, indexResourcesUnauthenticated); const expectedActions = [ { - type: FETCH_INDEXRESOURCES_PENDING, + type: FETCH_INDEXRESOURCES_PENDING }, { type: FETCH_INDEXRESOURCES_SUCCESS, - payload: indexResourcesUnauthenticated, - }, + payload: indexResourcesUnauthenticated + } ]; const store = mockStore({}); @@ -120,17 +120,17 @@ describe('index resource', () => { }); }); - it('should successfully fetch index resources when authenticated', () => { + it("should successfully fetch index resources when authenticated", () => { fetchMock.getOnce(index_url, indexResourcesAuthenticated); const expectedActions = [ { - type: FETCH_INDEXRESOURCES_PENDING, + type: FETCH_INDEXRESOURCES_PENDING }, { type: FETCH_INDEXRESOURCES_SUCCESS, - payload: indexResourcesAuthenticated, - }, + payload: indexResourcesAuthenticated + } ]; const store = mockStore({}); @@ -139,9 +139,9 @@ describe('index resource', () => { }); }); - it('should dispatch FETCH_INDEX_RESOURCES_FAILURE if request fails', () => { + it("should dispatch FETCH_INDEX_RESOURCES_FAILURE if request fails", () => { fetchMock.getOnce(index_url, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -154,338 +154,338 @@ describe('index resource', () => { }); }); - describe('index resources reducer', () => { - it('should return empty object, if state and action is undefined', () => { + describe("index resources reducer", () => { + it("should return empty object, if state and action is undefined", () => { expect(reducer()).toEqual({}); }); - it('should return the same state, if the action is undefined', () => { + it("should return the same state, if the action is undefined", () => { const state = { - x: true, + x: true }; expect(reducer(state)).toBe(state); }); - it('should return the same state, if the action is unknown to the reducer', () => { + it("should return the same state, if the action is unknown to the reducer", () => { const state = { - x: true, + x: true }; expect( reducer(state, { - type: 'EL_SPECIALE', - }), + type: "EL_SPECIALE" + }) ).toBe(state); }); - it('should store the index resources on FETCH_INDEXRESOURCES_SUCCESS', () => { + it("should store the index resources on FETCH_INDEXRESOURCES_SUCCESS", () => { const newState = reducer( {}, - fetchIndexResourcesSuccess(indexResourcesAuthenticated), + fetchIndexResourcesSuccess(indexResourcesAuthenticated) ); expect(newState.links).toBe(indexResourcesAuthenticated._links); }); }); - describe('index resources selectors', () => { - const error = new Error('something goes wrong'); + describe("index resources selectors", () => { + const error = new Error("something goes wrong"); - it('should return true, when fetch index resources is pending', () => { + it("should return true, when fetch index resources is pending", () => { const state = { pending: { - [FETCH_INDEXRESOURCES]: true, - }, + [FETCH_INDEXRESOURCES]: true + } }; expect(isFetchIndexResourcesPending(state)).toEqual(true); }); - it('should return false, when fetch index resources is not pending', () => { + it("should return false, when fetch index resources is not pending", () => { expect(isFetchIndexResourcesPending({})).toEqual(false); }); - it('should return error when fetch index resources did fail', () => { + it("should return error when fetch index resources did fail", () => { const state = { failure: { - [FETCH_INDEXRESOURCES]: error, - }, + [FETCH_INDEXRESOURCES]: error + } }; expect(getFetchIndexResourcesFailure(state)).toEqual(error); }); - it('should return undefined when fetch index resources did not fail', () => { + it("should return undefined when fetch index resources did not fail", () => { expect(getFetchIndexResourcesFailure({})).toBe(undefined); }); - it('should return all links', () => { + it("should return all links", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getLinks(state)).toBe(indexResourcesAuthenticated._links); }); // ui plugins link - it('should return ui plugins link when authenticated and has permission to see it', () => { + it("should return ui plugins link when authenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getUiPluginsLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/ui/plugins', + "http://localhost:8081/scm/api/v2/ui/plugins" ); }); - it('should return ui plugins links when unauthenticated and has permission to see it', () => { + it("should return ui plugins links when unauthenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getUiPluginsLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/ui/plugins', + "http://localhost:8081/scm/api/v2/ui/plugins" ); }); // me link - it('should return me link when authenticated and has permission to see it', () => { + it("should return me link when authenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; - expect(getMeLink(state)).toBe('http://localhost:8081/scm/api/v2/me/'); + expect(getMeLink(state)).toBe("http://localhost:8081/scm/api/v2/me/"); }); - it('should return undefined for me link when unauthenticated or has not permission to see it', () => { + it("should return undefined for me link when unauthenticated or has not permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getMeLink(state)).toBe(undefined); }); // logout link - it('should return logout link when authenticated and has permission to see it', () => { + it("should return logout link when authenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getLogoutLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/auth/access_token', + "http://localhost:8081/scm/api/v2/auth/access_token" ); }); - it('should return undefined for logout link when unauthenticated or has not permission to see it', () => { + it("should return undefined for logout link when unauthenticated or has not permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getLogoutLink(state)).toBe(undefined); }); // login link - it('should return login link when unauthenticated and has permission to see it', () => { + it("should return login link when unauthenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getLoginLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/auth/access_token', + "http://localhost:8081/scm/api/v2/auth/access_token" ); }); - it('should return undefined for login link when authenticated or has not permission to see it', () => { + it("should return undefined for login link when authenticated or has not permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getLoginLink(state)).toBe(undefined); }); // users link - it('should return users link when authenticated and has permission to see it', () => { + it("should return users link when authenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getUsersLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/users/', + "http://localhost:8081/scm/api/v2/users/" ); }); - it('should return undefined for users link when unauthenticated or has not permission to see it', () => { + it("should return undefined for users link when unauthenticated or has not permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getUsersLink(state)).toBe(undefined); }); // groups link - it('should return groups link when authenticated and has permission to see it', () => { + it("should return groups link when authenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getGroupsLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/groups/', + "http://localhost:8081/scm/api/v2/groups/" ); }); - it('should return undefined for groups link when unauthenticated or has not permission to see it', () => { + it("should return undefined for groups link when unauthenticated or has not permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getGroupsLink(state)).toBe(undefined); }); // config link - it('should return config link when authenticated and has permission to see it', () => { + it("should return config link when authenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getConfigLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/config', + "http://localhost:8081/scm/api/v2/config" ); }); - it('should return undefined for config link when unauthenticated or has not permission to see it', () => { + it("should return undefined for config link when unauthenticated or has not permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getConfigLink(state)).toBe(undefined); }); // repositories link - it('should return repositories link when authenticated and has permission to see it', () => { + it("should return repositories link when authenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getRepositoriesLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/repositories/', + "http://localhost:8081/scm/api/v2/repositories/" ); }); - it('should return config for repositories link when unauthenticated or has not permission to see it', () => { + it("should return config for repositories link when unauthenticated or has not permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getRepositoriesLink(state)).toBe(undefined); }); // hgConfig link - it('should return hgConfig link when authenticated and has permission to see it', () => { + it("should return hgConfig link when authenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getHgConfigLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/config/hg', + "http://localhost:8081/scm/api/v2/config/hg" ); }); - it('should return config for hgConfig link when unauthenticated or has not permission to see it', () => { + it("should return config for hgConfig link when unauthenticated or has not permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getHgConfigLink(state)).toBe(undefined); }); // gitConfig link - it('should return gitConfig link when authenticated and has permission to see it', () => { + it("should return gitConfig link when authenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getGitConfigLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/config/git', + "http://localhost:8081/scm/api/v2/config/git" ); }); - it('should return config for gitConfig link when unauthenticated or has not permission to see it', () => { + it("should return config for gitConfig link when unauthenticated or has not permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getGitConfigLink(state)).toBe(undefined); }); // svnConfig link - it('should return svnConfig link when authenticated and has permission to see it', () => { + it("should return svnConfig link when authenticated and has permission to see it", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getSvnConfigLink(state)).toBe( - 'http://localhost:8081/scm/api/v2/config/svn', + "http://localhost:8081/scm/api/v2/config/svn" ); }); - it('should return config for svnConfig link when unauthenticated or has not permission to see it', () => { + it("should return config for svnConfig link when unauthenticated or has not permission to see it", () => { const state = { indexResources: { - links: indexResourcesUnauthenticated._links, - }, + links: indexResourcesUnauthenticated._links + } }; expect(getSvnConfigLink(state)).toBe(undefined); }); // Autocomplete links - it('should return link collection', () => { + it("should return link collection", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; - expect(getLinkCollection(state, 'autocomplete')).toEqual( - indexResourcesAuthenticated._links.autocomplete, + expect(getLinkCollection(state, "autocomplete")).toEqual( + indexResourcesAuthenticated._links.autocomplete ); }); - it('should return user autocomplete link', () => { + it("should return user autocomplete link", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getUserAutoCompleteLink(state)).toEqual( - 'http://localhost:8081/scm/api/v2/autocomplete/users', + "http://localhost:8081/scm/api/v2/autocomplete/users" ); }); - it('should return group autocomplete link', () => { + it("should return group autocomplete link", () => { const state = { indexResources: { - links: indexResourcesAuthenticated._links, - }, + links: indexResourcesAuthenticated._links + } }; expect(getGroupAutoCompleteLink(state)).toEqual( - 'http://localhost:8081/scm/api/v2/autocomplete/groups', + "http://localhost:8081/scm/api/v2/autocomplete/groups" ); }); }); diff --git a/scm-ui/ui-webapp/src/modules/indexResource.ts b/scm-ui/ui-webapp/src/modules/indexResource.ts index bf0ec1a9c9..e599eb2323 100644 --- a/scm-ui/ui-webapp/src/modules/indexResource.ts +++ b/scm-ui/ui-webapp/src/modules/indexResource.ts @@ -1,18 +1,18 @@ -import * as types from './types'; +import * as types from "./types"; -import { apiClient } from '@scm-manager/ui-components'; -import { Action, IndexResources, Link } from '@scm-manager/ui-types'; -import { isPending } from './pending'; -import { getFailure } from './failure'; +import { apiClient } from "@scm-manager/ui-components"; +import { Action, IndexResources, Link } from "@scm-manager/ui-types"; +import { isPending } from "./pending"; +import { getFailure } from "./failure"; // Action -export const FETCH_INDEXRESOURCES = 'scm/INDEXRESOURCES'; +export const FETCH_INDEXRESOURCES = "scm/INDEXRESOURCES"; export const FETCH_INDEXRESOURCES_PENDING = `${FETCH_INDEXRESOURCES}_${types.PENDING_SUFFIX}`; export const FETCH_INDEXRESOURCES_SUCCESS = `${FETCH_INDEXRESOURCES}_${types.SUCCESS_SUFFIX}`; export const FETCH_INDEXRESOURCES_FAILURE = `${FETCH_INDEXRESOURCES}_${types.FAILURE_SUFFIX}`; -const INDEX_RESOURCES_LINK = '/'; +const INDEX_RESOURCES_LINK = "/"; export const callFetchIndexResources = (): Promise<IndexResources> => { return apiClient.get(INDEX_RESOURCES_LINK).then(response => { @@ -35,21 +35,21 @@ export function fetchIndexResources() { export function fetchIndexResourcesPending(): Action { return { - type: FETCH_INDEXRESOURCES_PENDING, + type: FETCH_INDEXRESOURCES_PENDING }; } export function fetchIndexResourcesSuccess(resources: IndexResources): Action { return { type: FETCH_INDEXRESOURCES_SUCCESS, - payload: resources, + payload: resources }; } export function fetchIndexResourcesFailure(err: Error): Action { return { type: FETCH_INDEXRESOURCES_FAILURE, - payload: err, + payload: err }; } @@ -57,8 +57,8 @@ export function fetchIndexResourcesFailure(err: Error): Action { export default function reducer( state: object = {}, action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): object { if (!action.payload) { return state; @@ -69,7 +69,7 @@ export default function reducer( return { ...state, version: action.payload.version, - links: action.payload._links, + links: action.payload._links }; default: return state; @@ -108,89 +108,89 @@ export function getAppVersion(state: object) { } export function getUiPluginsLink(state: object) { - return getLink(state, 'uiPlugins'); + return getLink(state, "uiPlugins"); } export function getAvailablePluginsLink(state: object) { - return getLink(state, 'availablePlugins'); + return getLink(state, "availablePlugins"); } export function getInstalledPluginsLink(state: object) { - return getLink(state, 'installedPlugins'); + return getLink(state, "installedPlugins"); } export function getPendingPluginsLink(state: object) { - return getLink(state, 'pendingPlugins'); + return getLink(state, "pendingPlugins"); } export function getMeLink(state: object) { - return getLink(state, 'me'); + return getLink(state, "me"); } export function getLogoutLink(state: object) { - return getLink(state, 'logout'); + return getLink(state, "logout"); } export function getLoginLink(state: object) { - return getLink(state, 'login'); + return getLink(state, "login"); } export function getUsersLink(state: object) { - return getLink(state, 'users'); + return getLink(state, "users"); } export function getRepositoryRolesLink(state: object) { - return getLink(state, 'repositoryRoles'); + return getLink(state, "repositoryRoles"); } export function getRepositoryVerbsLink(state: object) { - return getLink(state, 'repositoryVerbs'); + return getLink(state, "repositoryVerbs"); } export function getGroupsLink(state: object) { - return getLink(state, 'groups'); + return getLink(state, "groups"); } export function getConfigLink(state: object) { - return getLink(state, 'config'); + return getLink(state, "config"); } export function getRepositoriesLink(state: object) { - return getLink(state, 'repositories'); + return getLink(state, "repositories"); } export function getHgConfigLink(state: object) { - return getLink(state, 'hgConfig'); + return getLink(state, "hgConfig"); } export function getGitConfigLink(state: object) { - return getLink(state, 'gitConfig'); + return getLink(state, "gitConfig"); } export function getSvnConfigLink(state: object) { - return getLink(state, 'svnConfig'); + return getLink(state, "svnConfig"); } export function getLoginInfoLink(state: object) { - return getLink(state, 'loginInfo'); + return getLink(state, "loginInfo"); } export function getUserAutoCompleteLink(state: object): string { - const link = getLinkCollection(state, 'autocomplete').find( - i => i.name === 'users', + const link = getLinkCollection(state, "autocomplete").find( + i => i.name === "users" ); if (link) { return link.href; } - return ''; + return ""; } export function getGroupAutoCompleteLink(state: object): string { - const link = getLinkCollection(state, 'autocomplete').find( - i => i.name === 'groups', + const link = getLinkCollection(state, "autocomplete").find( + i => i.name === "groups" ); if (link) { return link.href; } - return ''; + return ""; } diff --git a/scm-ui/ui-webapp/src/modules/pending.test.ts b/scm-ui/ui-webapp/src/modules/pending.test.ts index d02fb37a83..28fed4f657 100644 --- a/scm-ui/ui-webapp/src/modules/pending.test.ts +++ b/scm-ui/ui-webapp/src/modules/pending.test.ts @@ -1,168 +1,168 @@ -import reducer, { isPending } from './pending'; +import reducer, { isPending } from "./pending"; -describe('pending reducer', () => { - it('should set pending for FETCH_ITEMS to true', () => { +describe("pending reducer", () => { + it("should set pending for FETCH_ITEMS to true", () => { const newState = reducer( {}, { - type: 'FETCH_ITEMS_PENDING', - }, + type: "FETCH_ITEMS_PENDING" + } ); - expect(newState['FETCH_ITEMS']).toBe(true); + expect(newState["FETCH_ITEMS"]).toBe(true); }); - it('should do nothing for unknown action types', () => { + it("should do nothing for unknown action types", () => { const state = {}; const newState = reducer(state, { - type: 'UNKNOWN', + type: "UNKNOWN" }); expect(newState).toBe(state); }); - it('should set pending for FETCH_ITEMS to true, but should not affect others', () => { + it("should set pending for FETCH_ITEMS to true, but should not affect others", () => { + const newState = reducer( + { + FETCH_USERS: true + }, + { + type: "FETCH_ITEMS_PENDING" + } + ); + expect(newState["FETCH_ITEMS"]).toBe(true); + expect(newState["FETCH_USERS"]).toBe(true); + }); + + it("should reset pending state for FETCH_ITEMS after FETCH_ITEMS_SUCCESS", () => { + const newState = reducer( + { + FETCH_ITEMS: true + }, + { + type: "FETCH_ITEMS_SUCCESS" + } + ); + expect(newState["FETCH_ITEMS"]).toBeFalsy(); + }); + + it("should reset pending state for FETCH_ITEMS after FETCH_ITEMS_FAILURE", () => { + const newState = reducer( + { + FETCH_ITEMS: true + }, + { + type: "FETCH_ITEMS_FAILURE" + } + ); + expect(newState["FETCH_ITEMS"]).toBeFalsy(); + }); + + it("should reset pending state for FETCH_ITEMS after FETCH_ITEMS_RESET", () => { + const newState = reducer( + { + FETCH_ITEMS: true + }, + { + type: "FETCH_ITEMS_RESET" + } + ); + expect(newState["FETCH_ITEMS"]).toBeFalsy(); + }); + + it("should reset pending state for FETCH_ITEMS, if resetPending prop is available", () => { + const newState = reducer( + { + FETCH_ITEMS: true + }, + { + type: "FETCH_ITEMS_SOMETHING", + resetPending: true + } + ); + expect(newState["FETCH_ITEMS"]).toBeFalsy(); + }); + + it("should reset pending state for FETCH_ITEMS after FETCH_ITEMS_SUCCESS, but should not affect others", () => { const newState = reducer( { FETCH_USERS: true, + FETCH_ITEMS: true }, { - type: 'FETCH_ITEMS_PENDING', - }, + type: "FETCH_ITEMS_SUCCESS" + } ); - expect(newState['FETCH_ITEMS']).toBe(true); - expect(newState['FETCH_USERS']).toBe(true); + expect(newState["FETCH_ITEMS"]).toBeFalsy(); + expect(newState["FETCH_USERS"]).toBe(true); }); - it('should reset pending state for FETCH_ITEMS after FETCH_ITEMS_SUCCESS', () => { + it("should set pending for a single item", () => { const newState = reducer( { - FETCH_ITEMS: true, + "FETCH_USER/42": false }, { - type: 'FETCH_ITEMS_SUCCESS', - }, + type: "FETCH_USER_PENDING", + itemId: 21 + } ); - expect(newState['FETCH_ITEMS']).toBeFalsy(); + expect(newState["FETCH_USER/21"]).toBe(true); + expect(newState["FETCH_USER/42"]).toBe(false); }); - it('should reset pending state for FETCH_ITEMS after FETCH_ITEMS_FAILURE', () => { + it("should reset pending for a single item", () => { const newState = reducer( { - FETCH_ITEMS: true, + "FETCH_USER/42": true }, { - type: 'FETCH_ITEMS_FAILURE', - }, + type: "FETCH_USER_SUCCESS", + itemId: 42 + } ); - expect(newState['FETCH_ITEMS']).toBeFalsy(); - }); - - it('should reset pending state for FETCH_ITEMS after FETCH_ITEMS_RESET', () => { - const newState = reducer( - { - FETCH_ITEMS: true, - }, - { - type: 'FETCH_ITEMS_RESET', - }, - ); - expect(newState['FETCH_ITEMS']).toBeFalsy(); - }); - - it('should reset pending state for FETCH_ITEMS, if resetPending prop is available', () => { - const newState = reducer( - { - FETCH_ITEMS: true, - }, - { - type: 'FETCH_ITEMS_SOMETHING', - resetPending: true, - }, - ); - expect(newState['FETCH_ITEMS']).toBeFalsy(); - }); - - it('should reset pending state for FETCH_ITEMS after FETCH_ITEMS_SUCCESS, but should not affect others', () => { - const newState = reducer( - { - FETCH_USERS: true, - FETCH_ITEMS: true, - }, - { - type: 'FETCH_ITEMS_SUCCESS', - }, - ); - expect(newState['FETCH_ITEMS']).toBeFalsy(); - expect(newState['FETCH_USERS']).toBe(true); - }); - - it('should set pending for a single item', () => { - const newState = reducer( - { - 'FETCH_USER/42': false, - }, - { - type: 'FETCH_USER_PENDING', - itemId: 21, - }, - ); - expect(newState['FETCH_USER/21']).toBe(true); - expect(newState['FETCH_USER/42']).toBe(false); - }); - - it('should reset pending for a single item', () => { - const newState = reducer( - { - 'FETCH_USER/42': true, - }, - { - type: 'FETCH_USER_SUCCESS', - itemId: 42, - }, - ); - expect(newState['FETCH_USER/42']).toBeFalsy(); + expect(newState["FETCH_USER/42"]).toBeFalsy(); }); }); -describe('pending selectors', () => { - it('should return true, while FETCH_ITEMS is pending', () => { +describe("pending selectors", () => { + it("should return true, while FETCH_ITEMS is pending", () => { const result = isPending( { pending: { - FETCH_ITEMS: true, - }, + FETCH_ITEMS: true + } }, - 'FETCH_ITEMS', + "FETCH_ITEMS" ); expect(result).toBe(true); }); - it('should return false, if pending is not defined', () => { - const result = isPending({}, 'FETCH_ITEMS'); + it("should return false, if pending is not defined", () => { + const result = isPending({}, "FETCH_ITEMS"); expect(result).toBe(false); }); - it('should return true, while FETCH_ITEM 42 is pending', () => { + it("should return true, while FETCH_ITEM 42 is pending", () => { const result = isPending( { pending: { - 'FETCH_ITEM/42': true, - }, + "FETCH_ITEM/42": true + } }, - 'FETCH_ITEM', - 42, + "FETCH_ITEM", + 42 ); expect(result).toBe(true); }); - it('should return true, while FETCH_ITEM 42 is undefined', () => { + it("should return true, while FETCH_ITEM 42 is undefined", () => { const result = isPending( { pending: { - 'FETCH_ITEM/21': true, - }, + "FETCH_ITEM/21": true + } }, - 'FETCH_ITEM', - 42, + "FETCH_ITEM", + 42 ); expect(result).toBe(false); }); diff --git a/scm-ui/ui-webapp/src/modules/pending.ts b/scm-ui/ui-webapp/src/modules/pending.ts index 17300fd8ef..39d7ad3972 100644 --- a/scm-ui/ui-webapp/src/modules/pending.ts +++ b/scm-ui/ui-webapp/src/modules/pending.ts @@ -1,11 +1,11 @@ -import { Action } from '@scm-manager/ui-types'; -import * as types from './types'; +import { Action } from "@scm-manager/ui-types"; +import * as types from "./types"; -const PENDING_SUFFIX = '_' + types.PENDING_SUFFIX; +const PENDING_SUFFIX = "_" + types.PENDING_SUFFIX; const RESET_ACTIONTYPES = [ types.SUCCESS_SUFFIX, types.FAILURE_SUFFIX, - types.RESET_SUFFIX, + types.RESET_SUFFIX ]; function removeFromState(state: object, identifier: string) { @@ -21,7 +21,7 @@ function removeFromState(state: object, identifier: string) { function removeAllEntriesOfIdentifierFromState( state: object, payload: any, - identifier: string, + identifier: string ) { const newState = {}; for (let childType in state) { @@ -36,7 +36,7 @@ function extractIdentifierFromPending(action: Action) { const type = action.type; let identifier = type.substring(0, type.length - PENDING_SUFFIX.length); if (action.itemId) { - identifier += '/' + action.itemId; + identifier += "/" + action.itemId; } return identifier; } @@ -44,30 +44,30 @@ function extractIdentifierFromPending(action: Action) { export default function reducer( state: object = {}, action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): object { const type = action.type; if (type.endsWith(PENDING_SUFFIX)) { const identifier = extractIdentifierFromPending(action); return { ...state, - [identifier]: true, + [identifier]: true }; } else { - const index = type.lastIndexOf('_'); + const index = type.lastIndexOf("_"); if (index > 0) { const actionType = type.substring(index + 1); if (RESET_ACTIONTYPES.indexOf(actionType) >= 0 || action.resetPending) { let identifier = type.substring(0, index); if (action.itemId) { - identifier += '/' + action.itemId; + identifier += "/" + action.itemId; } if (action.payload) return removeAllEntriesOfIdentifierFromState( state, action.payload, - identifier, + identifier ); else return removeFromState(state, identifier); } @@ -79,11 +79,11 @@ export default function reducer( export function isPending( state: object, actionType: string, - itemId?: string | number, + itemId?: string | number ) { let type = actionType; if (itemId) { - type += '/' + itemId; + type += "/" + itemId; } if (state.pending && state.pending[type]) { return true; diff --git a/scm-ui/ui-webapp/src/modules/types.ts b/scm-ui/ui-webapp/src/modules/types.ts index 4f1a3be24e..8bf67ab44d 100644 --- a/scm-ui/ui-webapp/src/modules/types.ts +++ b/scm-ui/ui-webapp/src/modules/types.ts @@ -1,4 +1,4 @@ -export const PENDING_SUFFIX = 'PENDING'; -export const SUCCESS_SUFFIX = 'SUCCESS'; -export const FAILURE_SUFFIX = 'FAILURE'; -export const RESET_SUFFIX = 'RESET'; +export const PENDING_SUFFIX = "PENDING"; +export const SUCCESS_SUFFIX = "SUCCESS"; +export const FAILURE_SUFFIX = "FAILURE"; +export const RESET_SUFFIX = "RESET"; diff --git a/scm-ui/ui-webapp/src/permissions/components/PermissionCheckbox.tsx b/scm-ui/ui-webapp/src/permissions/components/PermissionCheckbox.tsx index fdfc2d8cd8..d81a37dc50 100644 --- a/scm-ui/ui-webapp/src/permissions/components/PermissionCheckbox.tsx +++ b/scm-ui/ui-webapp/src/permissions/components/PermissionCheckbox.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Checkbox } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { Checkbox } from "@scm-manager/ui-components"; type Props = { permission: string; @@ -13,20 +13,20 @@ type Props = { class PermissionCheckbox extends React.Component<Props> { render() { const { t, permission, checked, onChange, disabled } = this.props; - const key = permission.split(':').join('.'); + const key = permission.split(":").join("."); return ( <Checkbox name={permission} label={this.translateOrDefault( - 'permissions.' + key + '.displayName', - key, + "permissions." + key + ".displayName", + key )} checked={checked} onChange={onChange} disabled={disabled} helpText={this.translateOrDefault( - 'permissions.' + key + '.description', - t('permissions.unknown'), + "permissions." + key + ".description", + t("permissions.unknown") )} /> ); @@ -42,4 +42,4 @@ class PermissionCheckbox extends React.Component<Props> { }; } -export default translate('plugins')(PermissionCheckbox); +export default translate("plugins")(PermissionCheckbox); diff --git a/scm-ui/ui-webapp/src/permissions/components/SetPermissions.tsx b/scm-ui/ui-webapp/src/permissions/components/SetPermissions.tsx index 9864cbfaa0..96e17725ea 100644 --- a/scm-ui/ui-webapp/src/permissions/components/SetPermissions.tsx +++ b/scm-ui/ui-webapp/src/permissions/components/SetPermissions.tsx @@ -1,17 +1,17 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import classNames from 'classnames'; -import styled from 'styled-components'; -import { Link } from '@scm-manager/ui-types'; +import React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import classNames from "classnames"; +import styled from "styled-components"; +import { Link } from "@scm-manager/ui-types"; import { Notification, ErrorNotification, - SubmitButton, -} from '@scm-manager/ui-components'; -import { getLink } from '../../modules/indexResource'; -import { loadPermissionsForEntity, setPermissions } from './handlePermissions'; -import PermissionCheckbox from './PermissionCheckbox'; + SubmitButton +} from "@scm-manager/ui-components"; +import { getLink } from "../../modules/indexResource"; +import { loadPermissionsForEntity, setPermissions } from "./handlePermissions"; +import PermissionCheckbox from "./PermissionCheckbox"; type Props = { availablePermissionLink: string; @@ -51,20 +51,20 @@ class SetPermissions extends React.Component<Props, State> { permissionsChanged: false, permissionsSubmitted: false, modifiable: false, - overwritePermissionsLink: undefined, + overwritePermissionsLink: undefined }; } setLoadingState = () => { this.setState({ - loading: true, + loading: true }); }; setErrorState = (error: Error) => { this.setState({ error: error, - loading: false, + loading: false }); }; @@ -73,20 +73,20 @@ class SetPermissions extends React.Component<Props, State> { loading: false, error: undefined, permissionsSubmitted: true, - permissionsChanged: false, + permissionsChanged: false }); }; componentDidMount(): void { loadPermissionsForEntity( this.props.availablePermissionLink, - this.props.selectedPermissionsLink.href, + this.props.selectedPermissionsLink.href ).then(response => { const { permissions, overwriteLink } = response; this.setState({ permissions: permissions, loading: false, - overwritePermissionsLink: overwriteLink, + overwritePermissionsLink: overwriteLink }); }); } @@ -102,7 +102,7 @@ class SetPermissions extends React.Component<Props, State> { if (this.state.overwritePermissionsLink) { setPermissions( this.state.overwritePermissionsLink.href, - selectedPermissions, + selectedPermissions ) .then(result => { this.setSuccessfulState(); @@ -123,8 +123,8 @@ class SetPermissions extends React.Component<Props, State> { if (permissionsSubmitted) { message = ( <Notification - type={'success'} - children={t('setPermissions.setPermissionsSuccessful')} + type={"success"} + children={t("setPermissions.setPermissionsSuccessful")} onClose={() => this.onClose()} /> ); @@ -139,7 +139,7 @@ class SetPermissions extends React.Component<Props, State> { <SubmitButton disabled={!this.state.permissionsChanged} loading={loading} - label={t('setPermissions.button')} + label={t("setPermissions.button")} /> </form> ); @@ -150,7 +150,7 @@ class SetPermissions extends React.Component<Props, State> { const permissionArray = Object.keys(permissions); return ( <div className="columns"> - <PermissionsWrapper className={classNames('column', 'is-half')}> + <PermissionsWrapper className={classNames("column", "is-half")}> {permissionArray.slice(0, permissionArray.length / 2 + 1).map(p => ( <PermissionCheckbox key={p} @@ -161,7 +161,7 @@ class SetPermissions extends React.Component<Props, State> { /> ))} </PermissionsWrapper> - <PermissionsWrapper className={classNames('column', 'is-half')}> + <PermissionsWrapper className={classNames("column", "is-half")}> {permissionArray .slice(permissionArray.length / 2 + 1, permissionArray.length) .map(p => ( @@ -184,25 +184,25 @@ class SetPermissions extends React.Component<Props, State> { newPermissions[name] = value; return { permissions: newPermissions, - permissionsChanged: true, + permissionsChanged: true }; }); }; onClose = () => { this.setState({ - permissionsSubmitted: false, + permissionsSubmitted: false }); }; } const mapStateToProps = state => { - const availablePermissionLink = getLink(state, 'permissions'); + const availablePermissionLink = getLink(state, "permissions"); return { - availablePermissionLink, + availablePermissionLink }; }; export default connect(mapStateToProps)( - translate('permissions')(SetPermissions), + translate("permissions")(SetPermissions) ); diff --git a/scm-ui/ui-webapp/src/permissions/components/handlePermissions.test.ts b/scm-ui/ui-webapp/src/permissions/components/handlePermissions.test.ts index b3cb6d00dc..c23a68faf8 100644 --- a/scm-ui/ui-webapp/src/permissions/components/handlePermissions.test.ts +++ b/scm-ui/ui-webapp/src/permissions/components/handlePermissions.test.ts @@ -1,9 +1,9 @@ -import fetchMock from 'fetch-mock'; -import { loadPermissionsForEntity } from './handlePermissions'; +import fetchMock from "fetch-mock"; +import { loadPermissionsForEntity } from "./handlePermissions"; -describe('load permissions for entity', () => { - const AVAILABLE_PERMISSIONS_URL = '/permissions'; - const USER_PERMISSIONS_URL = '/user/scmadmin/permissions'; +describe("load permissions for entity", () => { + const AVAILABLE_PERMISSIONS_URL = "/permissions"; + const USER_PERMISSIONS_URL = "/user/scmadmin/permissions"; const availablePermissions = `{ "permissions": [ @@ -28,10 +28,10 @@ describe('load permissions for entity', () => { beforeEach(() => { fetchMock.getOnce( - '/api/v2' + AVAILABLE_PERMISSIONS_URL, - availablePermissions, + "/api/v2" + AVAILABLE_PERMISSIONS_URL, + availablePermissions ); - fetchMock.getOnce('/api/v2' + USER_PERMISSIONS_URL, userPermissions); + fetchMock.getOnce("/api/v2" + USER_PERMISSIONS_URL, userPermissions); }); afterEach(() => { @@ -39,27 +39,27 @@ describe('load permissions for entity', () => { fetchMock.restore(); }); - it('should return permissions array', done => { + it("should return permissions array", done => { loadPermissionsForEntity( AVAILABLE_PERMISSIONS_URL, - USER_PERMISSIONS_URL, + USER_PERMISSIONS_URL ).then(result => { const { permissions } = result; expect(Object.entries(permissions).length).toBe(3); - expect(permissions['repository:read,pull:*']).toBe(true); - expect(permissions['repository:read,pull,push:*']).toBe(false); - expect(permissions['repository:*:*']).toBe(false); + expect(permissions["repository:read,pull:*"]).toBe(true); + expect(permissions["repository:read,pull,push:*"]).toBe(false); + expect(permissions["repository:*:*"]).toBe(false); done(); }); }); - it('should return overwrite link', done => { + it("should return overwrite link", done => { loadPermissionsForEntity( AVAILABLE_PERMISSIONS_URL, - USER_PERMISSIONS_URL, + USER_PERMISSIONS_URL ).then(result => { const { overwriteLink } = result; - expect(overwriteLink.href).toBe('/api/v2/users/rene/permissions'); + expect(overwriteLink.href).toBe("/api/v2/users/rene/permissions"); done(); }); }); diff --git a/scm-ui/ui-webapp/src/permissions/components/handlePermissions.ts b/scm-ui/ui-webapp/src/permissions/components/handlePermissions.ts index 31f04544ae..2ec52ab3bc 100644 --- a/scm-ui/ui-webapp/src/permissions/components/handlePermissions.ts +++ b/scm-ui/ui-webapp/src/permissions/components/handlePermissions.ts @@ -1,16 +1,16 @@ -import { apiClient } from '@scm-manager/ui-components'; +import { apiClient } from "@scm-manager/ui-components"; export const CONTENT_TYPE_PERMISSIONS = - 'application/vnd.scmm-permissionCollection+json;v=2'; + "application/vnd.scmm-permissionCollection+json;v=2"; export function setPermissions(url: string, permissions: string[]) { return apiClient .put( url, { - permissions: permissions, + permissions: permissions }, - CONTENT_TYPE_PERMISSIONS, + CONTENT_TYPE_PERMISSIONS ) .then(response => { return response; @@ -19,7 +19,7 @@ export function setPermissions(url: string, permissions: string[]) { export function loadPermissionsForEntity( availableUrl: string, - userUrl: string, + userUrl: string ) { return Promise.all([ apiClient.get(availableUrl).then(response => { @@ -27,7 +27,7 @@ export function loadPermissionsForEntity( }), apiClient.get(userUrl).then(response => { return response.json(); - }), + }) ]).then(values => { const [availablePermissions, checkedPermissions] = values; const permissions = {}; @@ -35,7 +35,7 @@ export function loadPermissionsForEntity( checkedPermissions.permissions.forEach(p => (permissions[p] = true)); return { permissions, - overwriteLink: checkedPermissions._links.overwrite, + overwriteLink: checkedPermissions._links.overwrite }; }); } diff --git a/scm-ui/ui-webapp/src/repos/branches/components/BranchButtonGroup.tsx b/scm-ui/ui-webapp/src/repos/branches/components/BranchButtonGroup.tsx index da1790b961..e35715ec4e 100644 --- a/scm-ui/ui-webapp/src/repos/branches/components/BranchButtonGroup.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/components/BranchButtonGroup.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { Repository, Branch } from '@scm-manager/ui-types'; -import { ButtonAddons, Button } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; +import React from "react"; +import { Repository, Branch } from "@scm-manager/ui-types"; +import { ButtonAddons, Button } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; type Props = { repository: Repository; @@ -27,13 +27,13 @@ class BranchButtonGroup extends React.Component<Props> { <Button link={changesetLink} icon="exchange-alt" - label={t('branch.commits')} + label={t("branch.commits")} reducedMobile={true} /> <Button link={sourcesLink} icon="code" - label={t('branch.sources')} + label={t("branch.sources")} reducedMobile={true} /> </ButtonAddons> @@ -41,4 +41,4 @@ class BranchButtonGroup extends React.Component<Props> { } } -export default translate('repos')(BranchButtonGroup); +export default translate("repos")(BranchButtonGroup); diff --git a/scm-ui/ui-webapp/src/repos/branches/components/BranchDetail.tsx b/scm-ui/ui-webapp/src/repos/branches/components/BranchDetail.tsx index c7cc9426ef..688ffb8cb2 100644 --- a/scm-ui/ui-webapp/src/repos/branches/components/BranchDetail.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/components/BranchDetail.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import { Repository, Branch } from '@scm-manager/ui-types'; -import { translate } from 'react-i18next'; -import BranchButtonGroup from './BranchButtonGroup'; -import DefaultBranchTag from './DefaultBranchTag'; +import React from "react"; +import { Repository, Branch } from "@scm-manager/ui-types"; +import { translate } from "react-i18next"; +import BranchButtonGroup from "./BranchButtonGroup"; +import DefaultBranchTag from "./DefaultBranchTag"; type Props = { repository: Repository; @@ -18,7 +18,7 @@ class BranchDetail extends React.Component<Props> { return ( <div className="media"> <div className="media-content subtitle"> - <strong>{t('branch.name')}</strong> {branch.name}{' '} + <strong>{t("branch.name")}</strong> {branch.name}{" "} <DefaultBranchTag defaultBranch={branch.defaultBranch} /> </div> <div className="media-right"> @@ -29,4 +29,4 @@ class BranchDetail extends React.Component<Props> { } } -export default translate('repos')(BranchDetail); +export default translate("repos")(BranchDetail); diff --git a/scm-ui/ui-webapp/src/repos/branches/components/BranchForm.tsx b/scm-ui/ui-webapp/src/repos/branches/components/BranchForm.tsx index 0f64624206..e65a3abffa 100644 --- a/scm-ui/ui-webapp/src/repos/branches/components/BranchForm.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/components/BranchForm.tsx @@ -1,13 +1,13 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Repository, Branch, BranchRequest } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import { Repository, Branch, BranchRequest } from "@scm-manager/ui-types"; import { Select, InputField, SubmitButton, - validation as validator, -} from '@scm-manager/ui-components'; -import { orderBranches } from '../util/orderBranches'; + validation as validator +} from "@scm-manager/ui-components"; +import { orderBranches } from "../util/orderBranches"; type Props = { submitForm: (p: BranchRequest) => void; @@ -31,7 +31,7 @@ class BranchForm extends React.Component<Props, State> { this.state = { nameValidationError: false, - name: props.transmittedName, + name: props.transmittedName }; } @@ -53,7 +53,7 @@ class BranchForm extends React.Component<Props, State> { if (this.isValid()) { this.props.submitForm({ name: this.state.name, - parent: this.state.source, + parent: this.state.source }); } }; @@ -64,7 +64,7 @@ class BranchForm extends React.Component<Props, State> { orderBranches(branches); const options = branches.map(branch => ({ label: branch.name, - value: branch.name, + value: branch.name })); return ( @@ -74,7 +74,7 @@ class BranchForm extends React.Component<Props, State> { <div className="column"> <Select name="source" - label={t('branches.create.source')} + label={t("branches.create.source")} options={options} onChange={this.handleSourceChange} loading={loading} @@ -82,11 +82,11 @@ class BranchForm extends React.Component<Props, State> { /> <InputField name="name" - label={t('branches.create.name')} + label={t("branches.create.name")} onChange={this.handleNameChange} - value={name ? name : ''} + value={name ? name : ""} validationError={this.state.nameValidationError} - errorMessage={t('validation.branch.nameInvalid')} + errorMessage={t("validation.branch.nameInvalid")} disabled={!!transmittedName || disabled} /> </div> @@ -96,7 +96,7 @@ class BranchForm extends React.Component<Props, State> { <SubmitButton disabled={disabled || !this.isValid()} loading={loading} - label={t('branches.create.submit')} + label={t("branches.create.submit")} /> </div> </div> @@ -108,7 +108,7 @@ class BranchForm extends React.Component<Props, State> { handleSourceChange = (source: string) => { this.setState({ ...this.state, - source, + source }); }; @@ -116,9 +116,9 @@ class BranchForm extends React.Component<Props, State> { this.setState({ nameValidationError: !validator.isNameValid(name), ...this.state, - name, + name }); }; } -export default translate('repos')(BranchForm); +export default translate("repos")(BranchForm); diff --git a/scm-ui/ui-webapp/src/repos/branches/components/BranchRow.tsx b/scm-ui/ui-webapp/src/repos/branches/components/BranchRow.tsx index e9381a681e..889247349e 100644 --- a/scm-ui/ui-webapp/src/repos/branches/components/BranchRow.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/components/BranchRow.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { Link } from 'react-router-dom'; -import { Branch } from '@scm-manager/ui-types'; -import DefaultBranchTag from './DefaultBranchTag'; +import React from "react"; +import { Link } from "react-router-dom"; +import { Branch } from "@scm-manager/ui-types"; +import DefaultBranchTag from "./DefaultBranchTag"; type Props = { baseUrl: string; diff --git a/scm-ui/ui-webapp/src/repos/branches/components/BranchTable.tsx b/scm-ui/ui-webapp/src/repos/branches/components/BranchTable.tsx index ea5d573a1e..c9fd7d99e1 100644 --- a/scm-ui/ui-webapp/src/repos/branches/components/BranchTable.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/components/BranchTable.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import BranchRow from './BranchRow'; -import { Branch } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import BranchRow from "./BranchRow"; +import { Branch } from "@scm-manager/ui-types"; type Props = { baseUrl: string; @@ -16,7 +16,7 @@ class BranchTable extends React.Component<Props> { <table className="card-table table is-hoverable is-fullwidth"> <thead> <tr> - <th>{t('branches.table.branches')}</th> + <th>{t("branches.table.branches")}</th> </tr> </thead> <tbody>{this.renderRow()}</tbody> @@ -36,4 +36,4 @@ class BranchTable extends React.Component<Props> { } } -export default translate('repos')(BranchTable); +export default translate("repos")(BranchTable); diff --git a/scm-ui/ui-webapp/src/repos/branches/components/BranchView.tsx b/scm-ui/ui-webapp/src/repos/branches/components/BranchView.tsx index c64a411707..13e394eda6 100644 --- a/scm-ui/ui-webapp/src/repos/branches/components/BranchView.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/components/BranchView.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import BranchDetail from './BranchDetail'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; -import { Repository, Branch } from '@scm-manager/ui-types'; +import React from "react"; +import BranchDetail from "./BranchDetail"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import { Repository, Branch } from "@scm-manager/ui-types"; type Props = { repository: Repository; @@ -22,7 +22,7 @@ class BranchView extends React.Component<Props> { renderAll={true} props={{ repository, - branch, + branch }} /> </div> diff --git a/scm-ui/ui-webapp/src/repos/branches/components/DefaultBranchTag.tsx b/scm-ui/ui-webapp/src/repos/branches/components/DefaultBranchTag.tsx index d459b0fb2e..51ff40d78d 100644 --- a/scm-ui/ui-webapp/src/repos/branches/components/DefaultBranchTag.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/components/DefaultBranchTag.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import styled from 'styled-components'; -import { Tag } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import styled from "styled-components"; +import { Tag } from "@scm-manager/ui-components"; type Props = { defaultBranch?: boolean; @@ -20,10 +20,10 @@ class DefaultBranchTag extends React.Component<Props> { const { defaultBranch, t } = this.props; if (defaultBranch) { - return <LeftMarginTag color="dark" label={t('branch.defaultTag')} />; + return <LeftMarginTag color="dark" label={t("branch.defaultTag")} />; } return null; } } -export default translate('repos')(DefaultBranchTag); +export default translate("repos")(DefaultBranchTag); diff --git a/scm-ui/ui-webapp/src/repos/branches/containers/BranchRoot.tsx b/scm-ui/ui-webapp/src/repos/branches/containers/BranchRoot.tsx index 67367cc3c6..0e7f8cfdeb 100644 --- a/scm-ui/ui-webapp/src/repos/branches/containers/BranchRoot.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/containers/BranchRoot.tsx @@ -1,18 +1,18 @@ -import React from 'react'; -import BranchView from '../components/BranchView'; -import { connect } from 'react-redux'; -import { Redirect, Route, Switch, withRouter } from 'react-router-dom'; -import { Repository, Branch } from '@scm-manager/ui-types'; +import React from "react"; +import BranchView from "../components/BranchView"; +import { connect } from "react-redux"; +import { Redirect, Route, Switch, withRouter } from "react-router-dom"; +import { Repository, Branch } from "@scm-manager/ui-types"; import { fetchBranch, getBranch, getFetchBranchFailure, - isFetchBranchPending, -} from '../modules/branches'; -import { ErrorNotification, Loading } from '@scm-manager/ui-components'; -import { History } from 'history'; -import { NotFoundError } from '@scm-manager/ui-components'; -import queryString from 'query-string'; + isFetchBranchPending +} from "../modules/branches"; +import { ErrorNotification, Loading } from "@scm-manager/ui-components"; +import { History } from "history"; +import { NotFoundError } from "@scm-manager/ui-components"; +import queryString from "query-string"; type Props = { repository: Repository; @@ -38,7 +38,7 @@ class BranchRoot extends React.Component<Props> { } stripEndingSlash = (url: string) => { - if (url.endsWith('/')) { + if (url.endsWith("/")) { return url.substring(0, url.length - 1); } return url; @@ -56,7 +56,7 @@ class BranchRoot extends React.Component<Props> { if (error) { if ( error instanceof NotFoundError && - queryString.parse(location.search).create === 'true' + queryString.parse(location.search).create === "true" ) { return ( <Redirect @@ -97,7 +97,7 @@ const mapStateToProps = (state, ownProps) => { branchName, branch, loading, - error, + error }; }; @@ -105,13 +105,13 @@ const mapDispatchToProps = dispatch => { return { fetchBranch: (repository: Repository, branchName: string) => { dispatch(fetchBranch(repository, branchName)); - }, + } }; }; export default withRouter( connect( mapStateToProps, - mapDispatchToProps, - )(BranchRoot), + mapDispatchToProps + )(BranchRoot) ); diff --git a/scm-ui/ui-webapp/src/repos/branches/containers/BranchesOverview.tsx b/scm-ui/ui-webapp/src/repos/branches/containers/BranchesOverview.tsx index c0c28ac1fb..644e43074a 100644 --- a/scm-ui/ui-webapp/src/repos/branches/containers/BranchesOverview.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/containers/BranchesOverview.tsx @@ -1,25 +1,25 @@ -import React from 'react'; +import React from "react"; import { fetchBranches, getBranches, getFetchBranchesFailure, isFetchBranchesPending, - isPermittedToCreateBranches, -} from '../modules/branches'; -import { orderBranches } from '../util/orderBranches'; -import { connect } from 'react-redux'; -import { Branch, Repository } from '@scm-manager/ui-types'; -import { compose } from 'redux'; -import { translate } from 'react-i18next'; -import { withRouter } from 'react-router-dom'; + isPermittedToCreateBranches +} from "../modules/branches"; +import { orderBranches } from "../util/orderBranches"; +import { connect } from "react-redux"; +import { Branch, Repository } from "@scm-manager/ui-types"; +import { compose } from "redux"; +import { translate } from "react-i18next"; +import { withRouter } from "react-router-dom"; import { CreateButton, ErrorNotification, Loading, Notification, - Subtitle, -} from '@scm-manager/ui-components'; -import BranchTable from '../components/BranchTable'; + Subtitle +} from "@scm-manager/ui-components"; +import BranchTable from "../components/BranchTable"; type Props = { repository: Repository; @@ -57,7 +57,7 @@ class BranchesOverview extends React.Component<Props> { return ( <> - <Subtitle subtitle={t('branches.overview.title')} /> + <Subtitle subtitle={t("branches.overview.title")} /> {this.renderBranchesTable()} {this.renderCreateButton()} </> @@ -72,7 +72,7 @@ class BranchesOverview extends React.Component<Props> { } return ( <Notification type="info"> - {t('branches.overview.noBranches')} + {t("branches.overview.noBranches")} </Notification> ); } @@ -82,7 +82,7 @@ class BranchesOverview extends React.Component<Props> { if (showCreateButton) { return ( <CreateButton - label={t('branches.overview.createButton')} + label={t("branches.overview.createButton")} link="./create" /> ); @@ -103,7 +103,7 @@ const mapStateToProps = (state, ownProps) => { loading, error, branches, - showCreateButton, + showCreateButton }; }; @@ -111,15 +111,15 @@ const mapDispatchToProps = dispatch => { return { fetchBranches: (repository: Repository) => { dispatch(fetchBranches(repository)); - }, + } }; }; export default compose( - translate('repos'), + translate("repos"), withRouter, connect( mapStateToProps, - mapDispatchToProps, - ), + mapDispatchToProps + ) )(BranchesOverview); diff --git a/scm-ui/ui-webapp/src/repos/branches/containers/CreateBranch.tsx b/scm-ui/ui-webapp/src/repos/branches/containers/CreateBranch.tsx index e245ad44e4..505c497222 100644 --- a/scm-ui/ui-webapp/src/repos/branches/containers/CreateBranch.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/containers/CreateBranch.tsx @@ -1,12 +1,12 @@ -import React from 'react'; +import React from "react"; import { ErrorNotification, Loading, - Subtitle, -} from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; -import BranchForm from '../components/BranchForm'; -import { Repository, Branch, BranchRequest } from '@scm-manager/ui-types'; + Subtitle +} from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; +import BranchForm from "../components/BranchForm"; +import { Repository, Branch, BranchRequest } from "@scm-manager/ui-types"; import { fetchBranches, getBranches, @@ -16,12 +16,12 @@ import { isCreateBranchPending, getCreateBranchFailure, isFetchBranchesPending, - getFetchBranchesFailure, -} from '../modules/branches'; -import { History } from 'history'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import queryString from 'query-string'; + getFetchBranchesFailure +} from "../modules/branches"; +import { History } from "history"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import queryString from "query-string"; type Props = { loading?: boolean; @@ -37,7 +37,7 @@ type Props = { createLink: string, repository: Repository, branch: BranchRequest, - callback?: (p: Branch) => void, + callback?: (p: Branch) => void ) => void; resetForm: (p: Repository) => void; @@ -59,7 +59,7 @@ class CreateBranch extends React.Component<Props> { history.push( `/repo/${repository.namespace}/${ repository.name - }/branch/${encodeURIComponent(branch.name)}/info`, + }/branch/${encodeURIComponent(branch.name)}/info` ); }; @@ -68,7 +68,7 @@ class CreateBranch extends React.Component<Props> { this.props.createBranchesLink, this.props.repository, branch, - newBranch => this.branchCreated(newBranch), + newBranch => this.branchCreated(newBranch) ); }; @@ -85,7 +85,7 @@ class CreateBranch extends React.Component<Props> { repository, branches, createBranchesLink, - location, + location } = this.props; if (error) { @@ -98,7 +98,7 @@ class CreateBranch extends React.Component<Props> { return ( <> - <Subtitle subtitle={t('branches.create.title')} /> + <Subtitle subtitle={t("branches.create.title")} /> <BranchForm submitForm={branchRequest => this.createBranch(branchRequest)} loading={loading} @@ -121,13 +121,13 @@ const mapDispatchToProps = dispatch => { createLink: string, repository: Repository, branchRequest: BranchRequest, - callback?: (newBranch: Branch) => void, + callback?: (newBranch: Branch) => void ) => { dispatch(createBranch(createLink, repository, branchRequest, callback)); }, resetForm: (repository: Repository) => { dispatch(createBranchReset(repository)); - }, + } }; }; @@ -145,13 +145,13 @@ const mapStateToProps = (state, ownProps) => { loading, error, branches, - createBranchesLink, + createBranchesLink }; }; export default withRouter( connect( mapStateToProps, - mapDispatchToProps, - )(translate('repos')(CreateBranch)), + mapDispatchToProps + )(translate("repos")(CreateBranch)) ); diff --git a/scm-ui/ui-webapp/src/repos/branches/modules/branches.test.ts b/scm-ui/ui-webapp/src/repos/branches/modules/branches.test.ts index ea45734ba9..fb7d70a98c 100644 --- a/scm-ui/ui-webapp/src/repos/branches/modules/branches.test.ts +++ b/scm-ui/ui-webapp/src/repos/branches/modules/branches.test.ts @@ -1,6 +1,6 @@ -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import reducer, { FETCH_BRANCHES, FETCH_BRANCHES_FAILURE, @@ -23,46 +23,46 @@ import reducer, { createBranch, isCreateBranchPending, getCreateBranchFailure, - isPermittedToCreateBranches, -} from './branches'; + isPermittedToCreateBranches +} from "./branches"; -const namespace = 'foo'; -const name = 'bar'; -const key = namespace + '/' + name; +const namespace = "foo"; +const name = "bar"; +const key = namespace + "/" + name; const repository = { - namespace: 'foo', - name: 'bar', + namespace: "foo", + name: "bar", _links: { branches: { - href: 'http://scm/api/rest/v2/repositories/foo/bar/branches', - }, - }, + href: "http://scm/api/rest/v2/repositories/foo/bar/branches" + } + } }; const branch1 = { - name: 'branch1', - revision: 'revision1', + name: "branch1", + revision: "revision1" }; const branch2 = { - name: 'branch2', - revision: 'revision2', + name: "branch2", + revision: "revision2" }; const branch3 = { - name: 'branch3', - revision: 'revision3', + name: "branch3", + revision: "revision3" }; const branchRequest = { - name: 'newBranch', - source: 'master', + name: "newBranch", + source: "master" }; const newBranch = { - name: 'newBranch', - revision: 'rev3', + name: "newBranch", + revision: "rev3" }; -describe('branches', () => { - describe('fetch branches', () => { - const URL = 'http://scm/api/rest/v2/repositories/foo/bar/branches'; +describe("branches", () => { + describe("fetch branches", () => { + const URL = "http://scm/api/rest/v2/repositories/foo/bar/branches"; const mockStore = configureMockStore([thunk]); afterEach(() => { @@ -70,27 +70,27 @@ describe('branches', () => { fetchMock.restore(); }); - it('should fetch branches', () => { + it("should fetch branches", () => { const collection = {}; - fetchMock.getOnce(URL, '{}'); + fetchMock.getOnce(URL, "{}"); const expectedActions = [ { type: FETCH_BRANCHES_PENDING, payload: { - repository, + repository }, - itemId: key, + itemId: key }, { type: FETCH_BRANCHES_SUCCESS, payload: { data: collection, - repository, + repository }, - itemId: key, - }, + itemId: key + } ]; const store = mockStore({}); @@ -99,7 +99,7 @@ describe('branches', () => { }); }); - it('should fail fetching branches on HTTP 500', () => { + it("should fail fetching branches on HTTP 500", () => { const collection = {}; fetchMock.getOnce(URL, 500); @@ -108,18 +108,18 @@ describe('branches', () => { { type: FETCH_BRANCHES_PENDING, payload: { - repository, + repository }, - itemId: key, + itemId: key }, { type: FETCH_BRANCHES_FAILURE, payload: { error: collection, - repository, + repository }, - itemId: key, - }, + itemId: key + } ]; const store = mockStore({}); @@ -129,11 +129,11 @@ describe('branches', () => { }); }); - it('should successfully fetch single branch', () => { - fetchMock.getOnce(URL + '/branch1', branch1); + it("should successfully fetch single branch", () => { + fetchMock.getOnce(URL + "/branch1", branch1); const store = mockStore({}); - return store.dispatch(fetchBranch(repository, 'branch1')).then(() => { + return store.dispatch(fetchBranch(repository, "branch1")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_BRANCH_PENDING); expect(actions[1].type).toEqual(FETCH_BRANCH_SUCCESS); @@ -141,13 +141,13 @@ describe('branches', () => { }); }); - it('should fail fetching single branch on HTTP 500', () => { - fetchMock.getOnce(URL + '/branch2', { - status: 500, + it("should fail fetching single branch on HTTP 500", () => { + fetchMock.getOnce(URL + "/branch2", { + status: 500 }); const store = mockStore({}); - return store.dispatch(fetchBranch(repository, 'branch2')).then(() => { + return store.dispatch(fetchBranch(repository, "branch2")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_BRANCH_PENDING); expect(actions[1].type).toEqual(FETCH_BRANCH_FAILURE); @@ -155,17 +155,17 @@ describe('branches', () => { }); }); - it('should create a branch successfully', () => { + it("should create a branch successfully", () => { //branchrequest answer fetchMock.postOnce(URL, { status: 201, headers: { - location: URL + '/newBranch', - }, + location: URL + "/newBranch" + } }); //branch answer - fetchMock.getOnce(URL + '/newBranch', newBranch); + fetchMock.getOnce(URL + "/newBranch", newBranch); const store = mockStore({}); return store @@ -177,17 +177,17 @@ describe('branches', () => { }); }); - it('should call the callback with the branch from the location header', () => { + it("should call the callback with the branch from the location header", () => { //branchrequest answer fetchMock.postOnce(URL, { status: 201, headers: { - location: URL + '/newBranch', - }, + location: URL + "/newBranch" + } }); //branch answer - fetchMock.getOnce(URL + '/newBranch', newBranch); + fetchMock.getOnce(URL + "/newBranch", newBranch); const store = mockStore({}); @@ -204,9 +204,9 @@ describe('branches', () => { }); }); - it('should fail creating a branch on HTTP 500', () => { + it("should fail creating a branch on HTTP 500", () => { fetchMock.postOnce(URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -220,179 +220,179 @@ describe('branches', () => { }); }); - describe('branches reducer', () => { + describe("branches reducer", () => { const branches = { _embedded: { - branches: [branch1, branch2], + branches: [branch1, branch2] }, _links: { self: { - href: '/self', + href: "/self" }, create: { - href: '/create', - }, - }, + href: "/create" + } + } }; const action = { type: FETCH_BRANCHES_SUCCESS, payload: { repository, - data: branches, - }, + data: branches + } }; - it('should store the branches', () => { + it("should store the branches", () => { const newState = reducer({}, action); - const repoState = newState['foo/bar']; + const repoState = newState["foo/bar"]; - expect(repoState.list._links.create.href).toEqual('/create'); - expect(repoState.list._embedded.branches).toEqual(['branch1', 'branch2']); + expect(repoState.list._links.create.href).toEqual("/create"); + expect(repoState.list._embedded.branches).toEqual(["branch1", "branch2"]); expect(repoState.byName.branch1).toEqual(branch1); expect(repoState.byName.branch2).toEqual(branch2); }); - it('should store a single branch', () => { + it("should store a single branch", () => { const newState = reducer({}, fetchBranchSuccess(repository, branch1)); - const repoState = newState['foo/bar']; + const repoState = newState["foo/bar"]; expect(repoState.list).toBeUndefined(); expect(repoState.byName.branch1).toEqual(branch1); }); - it('should add a single branch', () => { + it("should add a single branch", () => { const state = { - 'foo/bar': { + "foo/bar": { list: { _links: {}, _embedded: { - branches: ['branch1'], - }, + branches: ["branch1"] + } }, byName: { - branch1: branch1, - }, - }, + branch1: branch1 + } + } }; const newState = reducer(state, fetchBranchSuccess(repository, branch2)); - const repoState = newState['foo/bar']; + const repoState = newState["foo/bar"]; const byName = repoState.byName; - expect(repoState.list._embedded.branches).toEqual(['branch1']); + expect(repoState.list._embedded.branches).toEqual(["branch1"]); expect(byName.branch1).toEqual(branch1); expect(byName.branch2).toEqual(branch2); }); - it('should not overwrite non related repositories', () => { + it("should not overwrite non related repositories", () => { const state = { - 'scm/core': { + "scm/core": { byName: { - branch1: branch1, - }, - }, + branch1: branch1 + } + } }; const newState = reducer(state, fetchBranchSuccess(repository, branch1)); - const byName = newState['scm/core'].byName; + const byName = newState["scm/core"].byName; expect(byName.branch1).toEqual(branch1); }); - it('should overwrite existing branch', () => { + it("should overwrite existing branch", () => { const state = { - 'foo/bar': { + "foo/bar": { byName: { branch1: { - name: 'branch1', - revision: 'xyz', - }, - }, - }, + name: "branch1", + revision: "xyz" + } + } + } }; const newState = reducer(state, fetchBranchSuccess(repository, branch1)); - const byName = newState['foo/bar'].byName; + const byName = newState["foo/bar"].byName; - expect(byName.branch1.revision).toEqual('revision1'); + expect(byName.branch1.revision).toEqual("revision1"); }); - it('should not overwrite existing branches', () => { + it("should not overwrite existing branches", () => { const state = { - 'foo/bar': { + "foo/bar": { byName: { branch1, branch2, - branch3, - }, - }, + branch3 + } + } }; const newState = reducer(state, action); - expect(newState['foo/bar'].byName.branch1).toEqual(branch1); - expect(newState['foo/bar'].byName.branch2).toEqual(branch2); - expect(newState['foo/bar'].byName.branch3).toEqual(branch3); + expect(newState["foo/bar"].byName.branch1).toEqual(branch1); + expect(newState["foo/bar"].byName.branch2).toEqual(branch2); + expect(newState["foo/bar"].byName.branch3).toEqual(branch3); }); }); - describe('branch selectors', () => { - const error = new Error('Something went wrong'); + describe("branch selectors", () => { + const error = new Error("Something went wrong"); const state = { branches: { - 'foo/bar': { + "foo/bar": { list: { _links: {}, _embedded: { - branches: ['branch1', 'branch2'], - }, + branches: ["branch1", "branch2"] + } }, byName: { branch1: branch1, - branch2: branch2, - }, - }, - }, + branch2: branch2 + } + } + } }; - it('should return true, when fetching branches is pending', () => { + it("should return true, when fetching branches is pending", () => { const state = { pending: { - [FETCH_BRANCHES + '/foo/bar']: true, - }, + [FETCH_BRANCHES + "/foo/bar"]: true + } }; expect(isFetchBranchesPending(state, repository)).toBeTruthy(); }); - it('should return branches', () => { + it("should return branches", () => { const branches = getBranches(state, repository); expect(branches.length).toEqual(2); expect(branches).toContain(branch1); expect(branches).toContain(branch2); }); - it('should return always the same reference for branches', () => { + it("should return always the same reference for branches", () => { const one = getBranches(state, repository); const two = getBranches(state, repository); expect(one).toBe(two); }); - it('should not return cached reference, if branches have changed', () => { + it("should not return cached reference, if branches have changed", () => { const one = getBranches(state, repository); const newState = { branches: { - 'foo/bar': { + "foo/bar": { list: { _links: {}, _embedded: { - branches: ['branch2', 'branch3'], - }, + branches: ["branch2", "branch3"] + } }, byName: { branch2, - branch3, - }, - }, - }, + branch3 + } + } + } }; const two = getBranches(newState, repository); expect(one).not.toBe(two); @@ -401,100 +401,100 @@ describe('branches', () => { expect(two).toContain(branch3); }); - it('should return undefined, if no branches for the repository available', () => { + it("should return undefined, if no branches for the repository available", () => { const branches = getBranches( { - branches: {}, + branches: {} }, - repository, + repository ); expect(branches).toBeUndefined(); }); - it('should return single branch by name', () => { - const branch = getBranch(state, repository, 'branch1'); + it("should return single branch by name", () => { + const branch = getBranch(state, repository, "branch1"); expect(branch).toEqual(branch1); }); - it('should return same reference for single branch by name', () => { - const one = getBranch(state, repository, 'branch1'); - const two = getBranch(state, repository, 'branch1'); + it("should return same reference for single branch by name", () => { + const one = getBranch(state, repository, "branch1"); + const two = getBranch(state, repository, "branch1"); expect(one).toBe(two); }); - it('should return undefined if branch does not exist', () => { - const branch = getBranch(state, repository, 'branch42'); + it("should return undefined if branch does not exist", () => { + const branch = getBranch(state, repository, "branch42"); expect(branch).toBeUndefined(); }); - it('should return true if the branches list contains the create link', () => { + it("should return true if the branches list contains the create link", () => { const stateWithLink = { branches: { - 'foo/bar': { - ...state.branches['foo/bar'], + "foo/bar": { + ...state.branches["foo/bar"], list: { - ...state.branches['foo/bar'].list, + ...state.branches["foo/bar"].list, _links: { create: { - href: 'http://create-it', - }, - }, - }, - }, - }, + href: "http://create-it" + } + } + } + } + } }; const permitted = isPermittedToCreateBranches(stateWithLink, repository); expect(permitted).toBe(true); }); - it('should return false if the create link is missing', () => { + it("should return false if the create link is missing", () => { const permitted = isPermittedToCreateBranches(state, repository); expect(permitted).toBe(false); }); - it('should return error if fetching branches failed', () => { + it("should return error if fetching branches failed", () => { const state = { failure: { - [FETCH_BRANCHES + '/foo/bar']: error, - }, + [FETCH_BRANCHES + "/foo/bar"]: error + } }; expect(getFetchBranchesFailure(state, repository)).toEqual(error); }); - it('should return false if fetching branches did not fail', () => { + it("should return false if fetching branches did not fail", () => { expect(getFetchBranchesFailure({}, repository)).toBeUndefined(); }); - it('should return true if create branch is pending', () => { + it("should return true if create branch is pending", () => { const state = { pending: { - [CREATE_BRANCH + '/foo/bar']: true, - }, + [CREATE_BRANCH + "/foo/bar"]: true + } }; expect(isCreateBranchPending(state, repository)).toBe(true); }); - it('should return false if create branch is not pending', () => { + it("should return false if create branch is not pending", () => { const state = { pending: { - [CREATE_BRANCH + '/foo/bar']: false, - }, + [CREATE_BRANCH + "/foo/bar"]: false + } }; expect(isCreateBranchPending(state, repository)).toBe(false); }); - it('should return error when create branch did fail', () => { + it("should return error when create branch did fail", () => { const state = { failure: { - [CREATE_BRANCH]: error, - }, + [CREATE_BRANCH]: error + } }; expect(getCreateBranchFailure(state)).toEqual(error); }); - it('should return undefined when create branch did not fail', () => { + it("should return undefined when create branch did not fail", () => { expect(getCreateBranchFailure({})).toBe(undefined); }); }); diff --git a/scm-ui/ui-webapp/src/repos/branches/modules/branches.ts b/scm-ui/ui-webapp/src/repos/branches/modules/branches.ts index c1f3c61119..62c0098945 100644 --- a/scm-ui/ui-webapp/src/repos/branches/modules/branches.ts +++ b/scm-ui/ui-webapp/src/repos/branches/modules/branches.ts @@ -2,38 +2,38 @@ import { FAILURE_SUFFIX, PENDING_SUFFIX, SUCCESS_SUFFIX, - RESET_SUFFIX, -} from '../../../modules/types'; -import { apiClient } from '@scm-manager/ui-components'; + RESET_SUFFIX +} from "../../../modules/types"; +import { apiClient } from "@scm-manager/ui-components"; import { Action, Branch, BranchRequest, - Repository, -} from '@scm-manager/ui-types'; -import { isPending } from '../../../modules/pending'; -import { getFailure } from '../../../modules/failure'; + Repository +} from "@scm-manager/ui-types"; +import { isPending } from "../../../modules/pending"; +import { getFailure } from "../../../modules/failure"; -import memoizeOne from 'memoize-one'; +import memoizeOne from "memoize-one"; -export const FETCH_BRANCHES = 'scm/repos/FETCH_BRANCHES'; +export const FETCH_BRANCHES = "scm/repos/FETCH_BRANCHES"; export const FETCH_BRANCHES_PENDING = `${FETCH_BRANCHES}_${PENDING_SUFFIX}`; export const FETCH_BRANCHES_SUCCESS = `${FETCH_BRANCHES}_${SUCCESS_SUFFIX}`; export const FETCH_BRANCHES_FAILURE = `${FETCH_BRANCHES}_${FAILURE_SUFFIX}`; -export const FETCH_BRANCH = 'scm/repos/FETCH_BRANCH'; +export const FETCH_BRANCH = "scm/repos/FETCH_BRANCH"; export const FETCH_BRANCH_PENDING = `${FETCH_BRANCH}_${PENDING_SUFFIX}`; export const FETCH_BRANCH_SUCCESS = `${FETCH_BRANCH}_${SUCCESS_SUFFIX}`; export const FETCH_BRANCH_FAILURE = `${FETCH_BRANCH}_${FAILURE_SUFFIX}`; -export const CREATE_BRANCH = 'scm/repos/CREATE_BRANCH'; +export const CREATE_BRANCH = "scm/repos/CREATE_BRANCH"; export const CREATE_BRANCH_PENDING = `${CREATE_BRANCH}_${PENDING_SUFFIX}`; export const CREATE_BRANCH_SUCCESS = `${CREATE_BRANCH}_${SUCCESS_SUFFIX}`; export const CREATE_BRANCH_FAILURE = `${CREATE_BRANCH}_${FAILURE_SUFFIX}`; export const CREATE_BRANCH_RESET = `${CREATE_BRANCH}_${RESET_SUFFIX}`; const CONTENT_TYPE_BRANCH_REQUEST = - 'application/vnd.scmm-branchRequest+json;v=2'; + "application/vnd.scmm-branchRequest+json;v=2"; // Fetching branches @@ -43,9 +43,9 @@ export function fetchBranches(repository: Repository) { type: FETCH_BRANCHES_SUCCESS, payload: { repository, - data: {}, + data: {} }, - itemId: createKey(repository), + itemId: createKey(repository) }; } @@ -65,8 +65,8 @@ export function fetchBranches(repository: Repository) { export function fetchBranch(repository: Repository, name: string) { let link = repository._links.branches.href; - if (!link.endsWith('/')) { - link += '/'; + if (!link.endsWith("/")) { + link += "/"; } link += encodeURIComponent(name); return function(dispatch: any) { @@ -91,13 +91,13 @@ export function createBranch( link: string, repository: Repository, branchRequest: BranchRequest, - callback?: (branch: Branch) => void, + callback?: (branch: Branch) => void ) { return function(dispatch: any) { dispatch(createBranchPending(repository)); return apiClient .post(link, branchRequest, CONTENT_TYPE_BRANCH_REQUEST) - .then(response => response.headers.get('Location')) + .then(response => response.headers.get("Location")) .then(location => apiClient.get(location)) .then(response => response.json()) .then(branch => { @@ -147,7 +147,7 @@ function getRepoState(state: object, repository: Repository) { export const isPermittedToCreateBranches = ( state: object, - repository: Repository, + repository: Repository ): boolean => { const repoState = getRepoState(state, repository); return !!( @@ -161,7 +161,7 @@ export const isPermittedToCreateBranches = ( export function getBranch( state: object, repository: Repository, - name: string, + name: string ): Branch | null | undefined { const repoState = getRepoState(state, repository); if (repoState) { @@ -172,7 +172,7 @@ export function getBranch( // Action creators export function isFetchBranchesPending( state: object, - repository: Repository, + repository: Repository ): boolean { return isPending(state, FETCH_BRANCHES, createKey(repository)); } @@ -185,9 +185,9 @@ export function fetchBranchesPending(repository: Repository) { return { type: FETCH_BRANCHES_PENDING, payload: { - repository, + repository }, - itemId: createKey(repository), + itemId: createKey(repository) }; } @@ -196,9 +196,9 @@ export function fetchBranchesSuccess(data: string, repository: Repository) { type: FETCH_BRANCHES_SUCCESS, payload: { data, - repository, + repository }, - itemId: createKey(repository), + itemId: createKey(repository) }; } @@ -207,9 +207,9 @@ export function fetchBranchesFailure(repository: Repository, error: Error) { type: FETCH_BRANCHES_FAILURE, payload: { error, - repository, + repository }, - itemId: createKey(repository), + itemId: createKey(repository) }; } @@ -225,9 +225,9 @@ export function createBranchPending(repository: Repository): Action { return { type: CREATE_BRANCH_PENDING, payload: { - repository, + repository }, - itemId: createKey(repository), + itemId: createKey(repository) }; } @@ -235,23 +235,23 @@ export function createBranchSuccess(repository: Repository): Action { return { type: CREATE_BRANCH_SUCCESS, payload: { - repository, + repository }, - itemId: createKey(repository), + itemId: createKey(repository) }; } export function createBranchFailure( repository: Repository, - error: Error, + error: Error ): Action { return { type: CREATE_BRANCH_FAILURE, payload: { repository, - error, + error }, - itemId: createKey(repository), + itemId: createKey(repository) }; } @@ -259,69 +259,69 @@ export function createBranchReset(repository: Repository): Action { return { type: CREATE_BRANCH_RESET, payload: { - repository, + repository }, - itemId: createKey(repository), + itemId: createKey(repository) }; } export function isFetchBranchPending( state: object, repository: Repository, - name: string, + name: string ) { - return isPending(state, FETCH_BRANCH, createKey(repository) + '/' + name); + return isPending(state, FETCH_BRANCH, createKey(repository) + "/" + name); } export function getFetchBranchFailure( state: object, repository: Repository, - name: string, + name: string ) { - return getFailure(state, FETCH_BRANCH, createKey(repository) + '/' + name); + return getFailure(state, FETCH_BRANCH, createKey(repository) + "/" + name); } export function fetchBranchPending( repository: Repository, - name: string, + name: string ): Action { return { type: FETCH_BRANCH_PENDING, payload: { repository, - name, + name }, - itemId: createKey(repository) + '/' + name, + itemId: createKey(repository) + "/" + name }; } export function fetchBranchSuccess( repository: Repository, - branch: Branch, + branch: Branch ): Action { return { type: FETCH_BRANCH_SUCCESS, payload: { repository, - branch, + branch }, - itemId: createKey(repository) + '/' + branch.name, + itemId: createKey(repository) + "/" + branch.name }; } export function fetchBranchFailure( repository: Repository, name: string, - error: Error, + error: Error ): Action { return { type: FETCH_BRANCH_FAILURE, payload: { error, repository, - name, + name }, - itemId: createKey(repository) + '/' + name, + itemId: createKey(repository) + "/" + name }; } @@ -345,12 +345,12 @@ const reduceByBranchesSuccess = (state, payload) => { return { [key]: { list: response, - byName, - }, + byName + } }; } return { - [key]: [], + [key]: [] }; }; @@ -369,15 +369,15 @@ const reduceByBranchSuccess = (state, payload) => { return { ...state, - [key]: repoState, + [key]: repoState }; }; export default function reducer( state: {} = {}, action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): object { if (!action.payload) { return state; diff --git a/scm-ui/ui-webapp/src/repos/branches/util/orderBranches.test.ts b/scm-ui/ui-webapp/src/repos/branches/util/orderBranches.test.ts index 4385a0bc9a..83655b090e 100644 --- a/scm-ui/ui-webapp/src/repos/branches/util/orderBranches.test.ts +++ b/scm-ui/ui-webapp/src/repos/branches/util/orderBranches.test.ts @@ -1,61 +1,61 @@ -import { orderBranches } from './orderBranches'; +import { orderBranches } from "./orderBranches"; const branch1 = { - name: 'branch1', - revision: 'revision1', + name: "branch1", + revision: "revision1" }; const branch2 = { - name: 'branch2', - revision: 'revision2', + name: "branch2", + revision: "revision2" }; const branch3 = { - name: 'branch3', - revision: 'revision3', - defaultBranch: true, + name: "branch3", + revision: "revision3", + defaultBranch: true }; const defaultBranch = { - name: 'default', - revision: 'revision4', - defaultBranch: false, + name: "default", + revision: "revision4", + defaultBranch: false }; const developBranch = { - name: 'develop', - revision: 'revision5', - defaultBranch: false, + name: "develop", + revision: "revision5", + defaultBranch: false }; const masterBranch = { - name: 'master', - revision: 'revision6', - defaultBranch: false, + name: "master", + revision: "revision6", + defaultBranch: false }; -describe('order branches', () => { - it('should return branches', () => { +describe("order branches", () => { + it("should return branches", () => { let branches = [branch1, branch2]; orderBranches(branches); expect(branches).toEqual([branch1, branch2]); }); - it('should return defaultBranch first', () => { + it("should return defaultBranch first", () => { let branches = [branch1, branch2, branch3]; orderBranches(branches); expect(branches).toEqual([branch3, branch1, branch2]); }); - it('should order special branches as follows: master > default > develop', () => { + it("should order special branches as follows: master > default > develop", () => { let branches = [defaultBranch, developBranch, masterBranch]; orderBranches(branches); expect(branches).toEqual([masterBranch, defaultBranch, developBranch]); }); - it('should order special branches but starting with defaultBranch', () => { + it("should order special branches but starting with defaultBranch", () => { let branches = [masterBranch, developBranch, defaultBranch, branch3]; orderBranches(branches); expect(branches).toEqual([ branch3, masterBranch, defaultBranch, - developBranch, + developBranch ]); }); }); diff --git a/scm-ui/ui-webapp/src/repos/branches/util/orderBranches.ts b/scm-ui/ui-webapp/src/repos/branches/util/orderBranches.ts index 7f65c0fe8d..d231464b85 100644 --- a/scm-ui/ui-webapp/src/repos/branches/util/orderBranches.ts +++ b/scm-ui/ui-webapp/src/repos/branches/util/orderBranches.ts @@ -1,6 +1,6 @@ // master, default should always be the first one, // followed by develop the rest should be ordered by its name -import { Branch } from '@scm-manager/ui-types'; +import { Branch } from "@scm-manager/ui-types"; export function orderBranches(branches: Branch[]) { branches.sort((a, b) => { @@ -8,17 +8,17 @@ export function orderBranches(branches: Branch[]) { return -20; } else if (!a.defaultBranch && b.defaultBranch) { return 20; - } else if (a.name === 'master' && b.name !== 'master') { + } else if (a.name === "master" && b.name !== "master") { return -10; - } else if (a.name !== 'master' && b.name === 'master') { + } else if (a.name !== "master" && b.name === "master") { return 10; - } else if (a.name === 'default' && b.name !== 'default') { + } else if (a.name === "default" && b.name !== "default") { return -10; - } else if (a.name !== 'default' && b.name === 'default') { + } else if (a.name !== "default" && b.name === "default") { return 10; - } else if (a.name === 'develop' && b.name !== 'develop') { + } else if (a.name === "develop" && b.name !== "develop") { return -5; - } else if (a.name !== 'develop' && b.name === 'develop') { + } else if (a.name !== "develop" && b.name === "develop") { return 5; } else if (a.name < b.name) { return -1; diff --git a/scm-ui/ui-webapp/src/repos/components/EditRepoNavLink.test.tsx b/scm-ui/ui-webapp/src/repos/components/EditRepoNavLink.test.tsx index 00b8c49d10..f4b17dbeb9 100644 --- a/scm-ui/ui-webapp/src/repos/components/EditRepoNavLink.test.tsx +++ b/scm-ui/ui-webapp/src/repos/components/EditRepoNavLink.test.tsx @@ -1,34 +1,34 @@ -import React from 'react'; -import { shallow, mount } from '@scm-manager/ui-tests/enzyme-router'; -import '@scm-manager/ui-tests/enzyme'; -import '@scm-manager/ui-tests/i18n'; +import React from "react"; +import { shallow, mount } from "@scm-manager/ui-tests/enzyme-router"; +import "@scm-manager/ui-tests/enzyme"; +import "@scm-manager/ui-tests/i18n"; -import EditRepoNavLink from './EditRepoNavLink'; +import EditRepoNavLink from "./EditRepoNavLink"; -describe('GeneralNavLink', () => { - it('should render nothing, if the modify link is missing', () => { +describe("GeneralNavLink", () => { + it("should render nothing, if the modify link is missing", () => { const repository = { - _links: {}, + _links: {} }; const navLink = shallow( - <EditRepoNavLink repository={repository} editUrl="" />, + <EditRepoNavLink repository={repository} editUrl="" /> ); - expect(navLink.text()).toBe(''); + expect(navLink.text()).toBe(""); }); - it('should render the navLink', () => { + it("should render the navLink", () => { const repository = { _links: { update: { - href: '/repositories', - }, - }, + href: "/repositories" + } + } }; const navLink = mount( - <EditRepoNavLink repository={repository} editUrl="" />, + <EditRepoNavLink repository={repository} editUrl="" /> ); - expect(navLink.text()).toBe('repositoryRoot.menu.generalNavLink'); + expect(navLink.text()).toBe("repositoryRoot.menu.generalNavLink"); }); }); diff --git a/scm-ui/ui-webapp/src/repos/components/EditRepoNavLink.tsx b/scm-ui/ui-webapp/src/repos/components/EditRepoNavLink.tsx index 072c92057b..73989f42cc 100644 --- a/scm-ui/ui-webapp/src/repos/components/EditRepoNavLink.tsx +++ b/scm-ui/ui-webapp/src/repos/components/EditRepoNavLink.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { Repository } from '@scm-manager/ui-types'; -import { NavLink } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; +import React from "react"; +import { Repository } from "@scm-manager/ui-types"; +import { NavLink } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; type Props = { repository: Repository; @@ -21,9 +21,9 @@ class EditRepoNavLink extends React.Component<Props> { return null; } return ( - <NavLink to={editUrl} label={t('repositoryRoot.menu.generalNavLink')} /> + <NavLink to={editUrl} label={t("repositoryRoot.menu.generalNavLink")} /> ); } } -export default translate('repos')(EditRepoNavLink); +export default translate("repos")(EditRepoNavLink); diff --git a/scm-ui/ui-webapp/src/repos/components/PermissionsNavLink.test.tsx b/scm-ui/ui-webapp/src/repos/components/PermissionsNavLink.test.tsx index 91936d7952..2d822c41c3 100644 --- a/scm-ui/ui-webapp/src/repos/components/PermissionsNavLink.test.tsx +++ b/scm-ui/ui-webapp/src/repos/components/PermissionsNavLink.test.tsx @@ -1,33 +1,33 @@ -import React from 'react'; -import { mount, shallow } from '@scm-manager/ui-tests/enzyme-router'; -import '@scm-manager/ui-tests/enzyme'; -import '@scm-manager/ui-tests/i18n'; -import PermissionsNavLink from './PermissionsNavLink'; +import React from "react"; +import { mount, shallow } from "@scm-manager/ui-tests/enzyme-router"; +import "@scm-manager/ui-tests/enzyme"; +import "@scm-manager/ui-tests/i18n"; +import PermissionsNavLink from "./PermissionsNavLink"; -describe('PermissionsNavLink', () => { - it('should render nothing, if the modify link is missing', () => { +describe("PermissionsNavLink", () => { + it("should render nothing, if the modify link is missing", () => { const repository = { - _links: {}, + _links: {} }; const navLink = shallow( - <PermissionsNavLink repository={repository} permissionUrl="" />, + <PermissionsNavLink repository={repository} permissionUrl="" /> ); - expect(navLink.text()).toBe(''); + expect(navLink.text()).toBe(""); }); - it('should render the navLink', () => { + it("should render the navLink", () => { const repository = { _links: { permissions: { - href: '/permissions', - }, - }, + href: "/permissions" + } + } }; const navLink = mount( - <PermissionsNavLink repository={repository} permissionUrl="" />, + <PermissionsNavLink repository={repository} permissionUrl="" /> ); - expect(navLink.text()).toBe('repositoryRoot.menu.permissionsNavLink'); + expect(navLink.text()).toBe("repositoryRoot.menu.permissionsNavLink"); }); }); diff --git a/scm-ui/ui-webapp/src/repos/components/PermissionsNavLink.tsx b/scm-ui/ui-webapp/src/repos/components/PermissionsNavLink.tsx index 1d3f5c3dc6..821d4f4dac 100644 --- a/scm-ui/ui-webapp/src/repos/components/PermissionsNavLink.tsx +++ b/scm-ui/ui-webapp/src/repos/components/PermissionsNavLink.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { NavLink } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; -import { Repository } from '@scm-manager/ui-types'; +import React from "react"; +import { NavLink } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; +import { Repository } from "@scm-manager/ui-types"; type Props = { permissionUrl: string; @@ -21,10 +21,10 @@ class PermissionsNavLink extends React.Component<Props> { return ( <NavLink to={permissionUrl} - label={t('repositoryRoot.menu.permissionsNavLink')} + label={t("repositoryRoot.menu.permissionsNavLink")} /> ); } } -export default translate('repos')(PermissionsNavLink); +export default translate("repos")(PermissionsNavLink); diff --git a/scm-ui/ui-webapp/src/repos/components/RepositoryDetailTable.tsx b/scm-ui/ui-webapp/src/repos/components/RepositoryDetailTable.tsx index 6c11618561..0a1476384f 100644 --- a/scm-ui/ui-webapp/src/repos/components/RepositoryDetailTable.tsx +++ b/scm-ui/ui-webapp/src/repos/components/RepositoryDetailTable.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { Repository } from '@scm-manager/ui-types'; -import { MailLink, DateFromNow } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; +import React from "react"; +import { Repository } from "@scm-manager/ui-types"; +import { MailLink, DateFromNow } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; type Props = { repository: Repository; @@ -16,31 +16,31 @@ class RepositoryDetailTable extends React.Component<Props> { <table className="table"> <tbody> <tr> - <th>{t('repository.name')}</th> + <th>{t("repository.name")}</th> <td>{repository.name}</td> </tr> <tr> - <th>{t('repository.type')}</th> + <th>{t("repository.type")}</th> <td>{repository.type}</td> </tr> <tr> - <th>{t('repository.contact')}</th> + <th>{t("repository.contact")}</th> <td> <MailLink address={repository.contact} /> </td> </tr> <tr> - <th>{t('repository.description')}</th> + <th>{t("repository.description")}</th> <td>{repository.description}</td> </tr> <tr> - <th>{t('repository.creationDate')}</th> + <th>{t("repository.creationDate")}</th> <td> <DateFromNow date={repository.creationDate} /> </td> </tr> <tr> - <th>{t('repository.lastModified')}</th> + <th>{t("repository.lastModified")}</th> <td> <DateFromNow date={repository.lastModified} /> </td> @@ -51,4 +51,4 @@ class RepositoryDetailTable extends React.Component<Props> { } } -export default translate('repos')(RepositoryDetailTable); +export default translate("repos")(RepositoryDetailTable); diff --git a/scm-ui/ui-webapp/src/repos/components/RepositoryDetails.tsx b/scm-ui/ui-webapp/src/repos/components/RepositoryDetails.tsx index 8ff518ce3f..277d1258db 100644 --- a/scm-ui/ui-webapp/src/repos/components/RepositoryDetails.tsx +++ b/scm-ui/ui-webapp/src/repos/components/RepositoryDetails.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { Repository } from '@scm-manager/ui-types'; -import RepositoryDetailTable from './RepositoryDetailTable'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; +import React from "react"; +import { Repository } from "@scm-manager/ui-types"; +import RepositoryDetailTable from "./RepositoryDetailTable"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; type Props = { repository: Repository; @@ -19,7 +19,7 @@ class RepositoryDetails extends React.Component<Props> { name="repos.repository-details.information" renderAll={true} props={{ - repository, + repository }} /> </div> diff --git a/scm-ui/ui-webapp/src/repos/components/RepositoryNavLink.test.tsx b/scm-ui/ui-webapp/src/repos/components/RepositoryNavLink.test.tsx index 42b646dd93..ed50b7c556 100644 --- a/scm-ui/ui-webapp/src/repos/components/RepositoryNavLink.test.tsx +++ b/scm-ui/ui-webapp/src/repos/components/RepositoryNavLink.test.tsx @@ -1,15 +1,15 @@ -import React from 'react'; -import { shallow, mount } from '@scm-manager/ui-tests/enzyme-router'; -import '@scm-manager/ui-tests/i18n'; -import RepositoryNavLink from './RepositoryNavLink'; +import React from "react"; +import { shallow, mount } from "@scm-manager/ui-tests/enzyme-router"; +import "@scm-manager/ui-tests/i18n"; +import RepositoryNavLink from "./RepositoryNavLink"; -describe('RepositoryNavLink', () => { - it('should render nothing, if the sources link is missing', () => { +describe("RepositoryNavLink", () => { + it("should render nothing, if the sources link is missing", () => { const repository = { - namespace: 'Namespace', - name: 'Repo', - type: 'GIT', - _links: {}, + namespace: "Namespace", + name: "Repo", + type: "GIT", + _links: {} }; const navLink = shallow( @@ -19,21 +19,21 @@ describe('RepositoryNavLink', () => { to="/sources" label="Sources" activeOnlyWhenExact={true} - />, + /> ); - expect(navLink.text()).toBe(''); + expect(navLink.text()).toBe(""); }); - it('should render the navLink', () => { + it("should render the navLink", () => { const repository = { - namespace: 'Namespace', - name: 'Repo', - type: 'GIT', + namespace: "Namespace", + name: "Repo", + type: "GIT", _links: { sources: { - href: '/sources', - }, - }, + href: "/sources" + } + } }; const navLink = mount( @@ -43,8 +43,8 @@ describe('RepositoryNavLink', () => { to="/sources" label="Sources" activeOnlyWhenExact={true} - />, + /> ); - expect(navLink.text()).toBe('Sources'); + expect(navLink.text()).toBe("Sources"); }); }); diff --git a/scm-ui/ui-webapp/src/repos/components/RepositoryNavLink.tsx b/scm-ui/ui-webapp/src/repos/components/RepositoryNavLink.tsx index 1a40074d1d..4f501853a9 100644 --- a/scm-ui/ui-webapp/src/repos/components/RepositoryNavLink.tsx +++ b/scm-ui/ui-webapp/src/repos/components/RepositoryNavLink.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { Repository } from '@scm-manager/ui-types'; -import { NavLink } from '@scm-manager/ui-components'; +import React from "react"; +import { Repository } from "@scm-manager/ui-types"; +import { NavLink } from "@scm-manager/ui-components"; type Props = { repository: Repository; diff --git a/scm-ui/ui-webapp/src/repos/components/changesets/ChangesetDetails.tsx b/scm-ui/ui-webapp/src/repos/components/changesets/ChangesetDetails.tsx index fefba56c0d..4c3b658d67 100644 --- a/scm-ui/ui-webapp/src/repos/components/changesets/ChangesetDetails.tsx +++ b/scm-ui/ui-webapp/src/repos/components/changesets/ChangesetDetails.tsx @@ -1,9 +1,9 @@ -import React from 'react'; -import { Interpolate, translate } from 'react-i18next'; -import classNames from 'classnames'; -import styled from 'styled-components'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; -import { Changeset, Repository, Tag } from '@scm-manager/ui-types'; +import React from "react"; +import { Interpolate, translate } from "react-i18next"; +import classNames from "classnames"; +import styled from "styled-components"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import { Changeset, Repository, Tag } from "@scm-manager/ui-types"; import { DateFromNow, ChangesetId, @@ -14,8 +14,8 @@ import { AvatarImage, changesets, Level, - Button, -} from '@scm-manager/ui-components'; + Button +} from "@scm-manager/ui-components"; type Props = { changeset: Changeset; @@ -47,7 +47,7 @@ class ChangesetDetails extends React.Component<Props, State> { constructor(props: Props) { super(props); this.state = { - collapsed: false, + collapsed: false }; } @@ -63,13 +63,13 @@ class ChangesetDetails extends React.Component<Props, State> { return ( <> - <div className={classNames('content', 'is-marginless')}> + <div className={classNames("content", "is-marginless")}> <h4> <ExtensionPoint name="changeset.description" props={{ changeset, - value: description.title, + value: description.title }} renderAll={false} > @@ -78,7 +78,7 @@ class ChangesetDetails extends React.Component<Props, State> { </h4> <article className="media"> <AvatarWrapper> - <RightMarginP className={classNames('image', 'is-64x64')}> + <RightMarginP className={classNames("image", "is-64x64")}> <AvatarImage person={changeset.author} /> </RightMarginP> </AvatarWrapper> @@ -94,14 +94,14 @@ class ChangesetDetails extends React.Component<Props, State> { </article> <p> - {description.message.split('\n').map((item, key) => { + {description.message.split("\n").map((item, key) => { return ( <span key={key}> <ExtensionPoint name="changeset.description" props={{ changeset, - value: item, + value: item }} renderAll={false} > @@ -119,8 +119,8 @@ class ChangesetDetails extends React.Component<Props, State> { <Button action={this.collapseDiffs} color="default" - icon={collapsed ? 'eye' : 'eye-slash'} - label={t('changesets.collapseDiffs')} + icon={collapsed ? "eye" : "eye-slash"} + label={t("changesets.collapseDiffs")} reducedMobile={true} /> } @@ -151,9 +151,9 @@ class ChangesetDetails extends React.Component<Props, State> { collapseDiffs = () => { this.setState(state => ({ - collapsed: !state.collapsed, + collapsed: !state.collapsed })); }; } -export default translate('repos')(ChangesetDetails); +export default translate("repos")(ChangesetDetails); diff --git a/scm-ui/ui-webapp/src/repos/components/form/RepositoryForm.tsx b/scm-ui/ui-webapp/src/repos/components/form/RepositoryForm.tsx index 19989dd67b..175b9b9f8b 100644 --- a/scm-ui/ui-webapp/src/repos/components/form/RepositoryForm.tsx +++ b/scm-ui/ui-webapp/src/repos/components/form/RepositoryForm.tsx @@ -1,15 +1,15 @@ -import React from 'react'; -import { translate } from 'react-i18next'; +import React from "react"; +import { translate } from "react-i18next"; import { Subtitle, InputField, Select, SubmitButton, - Textarea, -} from '@scm-manager/ui-components'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; -import { Repository, RepositoryType } from '@scm-manager/ui-types'; -import * as validator from './repositoryValidation'; + Textarea +} from "@scm-manager/ui-components"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import { Repository, RepositoryType } from "@scm-manager/ui-types"; +import * as validator from "./repositoryValidation"; type Props = { submitForm: (p: Repository) => void; @@ -27,7 +27,7 @@ type State = { contactValidationError: boolean; }; -const CUSTOM_NAMESPACE_STRATEGY = 'CustomNamespaceStrategy'; +const CUSTOM_NAMESPACE_STRATEGY = "CustomNamespaceStrategy"; class RepositoryForm extends React.Component<Props, State> { constructor(props: Props) { @@ -35,16 +35,16 @@ class RepositoryForm extends React.Component<Props, State> { this.state = { repository: { - name: '', - namespace: '', - type: '', - contact: '', - description: '', - _links: {}, + name: "", + namespace: "", + type: "", + contact: "", + description: "", + _links: {} }, namespaceValidationError: false, nameValidationError: false, - contactValidationError: false, + contactValidationError: false }; } @@ -53,8 +53,8 @@ class RepositoryForm extends React.Component<Props, State> { if (repository) { this.setState({ repository: { - ...repository, - }, + ...repository + } }); } } @@ -104,14 +104,14 @@ class RepositoryForm extends React.Component<Props, State> { <SubmitButton disabled={!this.isValid()} loading={loading} - label={t('repositoryForm.submit')} + label={t("repositoryForm.submit")} /> ); let subtitle = null; if (this.props.repository) { // edit existing repo - subtitle = <Subtitle subtitle={t('repositoryForm.subtitle')} />; + subtitle = <Subtitle subtitle={t("repositoryForm.subtitle")} />; } return ( @@ -120,20 +120,20 @@ class RepositoryForm extends React.Component<Props, State> { <form onSubmit={this.submit}> {this.renderCreateOnlyFields()} <InputField - label={t('repository.contact')} + label={t("repository.contact")} onChange={this.handleContactChange} - value={repository ? repository.contact : ''} + value={repository ? repository.contact : ""} validationError={this.state.contactValidationError} - errorMessage={t('validation.contact-invalid')} - helpText={t('help.contactHelpText')} + errorMessage={t("validation.contact-invalid")} + helpText={t("help.contactHelpText")} disabled={disabled} /> <Textarea - label={t('repository.description')} + label={t("repository.description")} onChange={this.handleDescriptionChange} - value={repository ? repository.description : ''} - helpText={t('help.descriptionHelpText')} + value={repository ? repository.description : ""} + helpText={t("help.descriptionHelpText")} disabled={disabled} /> {submitButton} @@ -146,7 +146,7 @@ class RepositoryForm extends React.Component<Props, State> { return repositoryTypes.map(repositoryType => { return { label: repositoryType.displayName, - value: repositoryType.name, + value: repositoryType.name }; }); } @@ -155,12 +155,12 @@ class RepositoryForm extends React.Component<Props, State> { const { namespaceStrategy, t } = this.props; const repository = this.state.repository; const props = { - label: t('repository.namespace'), - helpText: t('help.namespaceHelpText'), - value: repository ? repository.namespace : '', + label: t("repository.namespace"), + helpText: t("help.namespaceHelpText"), + value: repository ? repository.namespace : "", onChange: this.handleNamespaceChange, - errorMessage: t('validation.namespace-invalid'), - validationError: this.state.namespaceValidationError, + errorMessage: t("validation.namespace-invalid"), + validationError: this.state.namespaceValidationError }; if (namespaceStrategy === CUSTOM_NAMESPACE_STRATEGY) { @@ -186,19 +186,19 @@ class RepositoryForm extends React.Component<Props, State> { <> {this.renderNamespaceField()} <InputField - label={t('repository.name')} + label={t("repository.name")} onChange={this.handleNameChange} - value={repository ? repository.name : ''} + value={repository ? repository.name : ""} validationError={this.state.nameValidationError} - errorMessage={t('validation.name-invalid')} - helpText={t('help.nameHelpText')} + errorMessage={t("validation.name-invalid")} + helpText={t("help.nameHelpText")} /> <Select - label={t('repository.type')} + label={t("repository.type")} onChange={this.handleTypeChange} - value={repository ? repository.type : ''} + value={repository ? repository.type : ""} options={this.createSelectOptions(repositoryTypes)} - helpText={t('help.typeHelpText')} + helpText={t("help.typeHelpText")} /> </> ); @@ -209,8 +209,8 @@ class RepositoryForm extends React.Component<Props, State> { namespaceValidationError: !validator.isNameValid(namespace), repository: { ...this.state.repository, - namespace, - }, + namespace + } }); }; @@ -219,8 +219,8 @@ class RepositoryForm extends React.Component<Props, State> { nameValidationError: !validator.isNameValid(name), repository: { ...this.state.repository, - name, - }, + name + } }); }; @@ -228,8 +228,8 @@ class RepositoryForm extends React.Component<Props, State> { this.setState({ repository: { ...this.state.repository, - type, - }, + type + } }); }; @@ -238,8 +238,8 @@ class RepositoryForm extends React.Component<Props, State> { contactValidationError: !validator.isContactValid(contact), repository: { ...this.state.repository, - contact, - }, + contact + } }); }; @@ -247,10 +247,10 @@ class RepositoryForm extends React.Component<Props, State> { this.setState({ repository: { ...this.state.repository, - description, - }, + description + } }); }; } -export default translate('repos')(RepositoryForm); +export default translate("repos")(RepositoryForm); diff --git a/scm-ui/ui-webapp/src/repos/components/form/index.ts b/scm-ui/ui-webapp/src/repos/components/form/index.ts index ed11fa35a9..4af39bf51e 100644 --- a/scm-ui/ui-webapp/src/repos/components/form/index.ts +++ b/scm-ui/ui-webapp/src/repos/components/form/index.ts @@ -1,2 +1,2 @@ -import RepositoryForm from './RepositoryForm'; +import RepositoryForm from "./RepositoryForm"; export default RepositoryForm; diff --git a/scm-ui/ui-webapp/src/repos/components/form/repositoryValidation.test.ts b/scm-ui/ui-webapp/src/repos/components/form/repositoryValidation.test.ts index 03fd176490..a085afcb13 100644 --- a/scm-ui/ui-webapp/src/repos/components/form/repositoryValidation.test.ts +++ b/scm-ui/ui-webapp/src/repos/components/form/repositoryValidation.test.ts @@ -1,104 +1,104 @@ -import * as validator from './repositoryValidation'; +import * as validator from "./repositoryValidation"; -describe('repository name validation', () => { +describe("repository name validation", () => { // we don't need rich tests, because they are in validation.test.js - it('should validate the name', () => { - expect(validator.isNameValid('scm-manager')).toBe(true); + it("should validate the name", () => { + expect(validator.isNameValid("scm-manager")).toBe(true); }); - it('should fail for old nested repository names', () => { + it("should fail for old nested repository names", () => { // in v2 this is not allowed - expect(validator.isNameValid('scm/manager')).toBe(false); - expect(validator.isNameValid('scm/ma/nager')).toBe(false); + expect(validator.isNameValid("scm/manager")).toBe(false); + expect(validator.isNameValid("scm/ma/nager")).toBe(false); }); - it('should allow same names as the backend', () => { + it("should allow same names as the backend", () => { const validPaths = [ - 'scm', - 's', - 'sc', - '.hiddenrepo', - 'b.', - '...', - '..c', - 'd..', - 'a..c', + "scm", + "s", + "sc", + ".hiddenrepo", + "b.", + "...", + "..c", + "d..", + "a..c" ]; validPaths.forEach(path => expect(validator.isNameValid(path)).toBe(true)); }); - it('should deny same names as the backend', () => { + it("should deny same names as the backend", () => { const invalidPaths = [ - '.', - '/', - '//', - '..', - '/.', - '/..', - './', - '../', - '/../', - '/./', - '/...', - '/abc', - '.../', - '/sdf/', - 'asdf/', - './b', - 'scm/plugins/.', - 'scm/../plugins', - 'scm/main/', - '/scm/main/', - 'scm/./main', - 'scm//main', - 'scm\\main', - 'scm/main-$HOME', - 'scm/main-${HOME}-home', - 'scm/main-%HOME-home', - 'scm/main-%HOME%-home', - 'abc$abc', - 'abc%abc', - 'abc<abc', - 'abc>abc', - 'abc#abc', - 'abc+abc', - 'abc{abc', - 'abc}abc', - 'abc(abc', - 'abc)abc', - 'abc[abc', - 'abc]abc', - 'abc|abc', - 'scm/main', - 'scm/plugins/git-plugin', - '.scm/plugins', - 'a/b..', - 'a/..b', - 'scm/main', - 'scm/plugins/git-plugin', - 'scm/plugins/git-plugin', + ".", + "/", + "//", + "..", + "/.", + "/..", + "./", + "../", + "/../", + "/./", + "/...", + "/abc", + ".../", + "/sdf/", + "asdf/", + "./b", + "scm/plugins/.", + "scm/../plugins", + "scm/main/", + "/scm/main/", + "scm/./main", + "scm//main", + "scm\\main", + "scm/main-$HOME", + "scm/main-${HOME}-home", + "scm/main-%HOME-home", + "scm/main-%HOME%-home", + "abc$abc", + "abc%abc", + "abc<abc", + "abc>abc", + "abc#abc", + "abc+abc", + "abc{abc", + "abc}abc", + "abc(abc", + "abc)abc", + "abc[abc", + "abc]abc", + "abc|abc", + "scm/main", + "scm/plugins/git-plugin", + ".scm/plugins", + "a/b..", + "a/..b", + "scm/main", + "scm/plugins/git-plugin", + "scm/plugins/git-plugin" ]; invalidPaths.forEach(path => - expect(validator.isNameValid(path)).toBe(false), + expect(validator.isNameValid(path)).toBe(false) ); }); }); -describe('repository contact validation', () => { - it('should allow empty contact', () => { - expect(validator.isContactValid('')).toBe(true); +describe("repository contact validation", () => { + it("should allow empty contact", () => { + expect(validator.isContactValid("")).toBe(true); }); // we don't need rich tests, because they are in validation.test.js - it('should allow real mail addresses', () => { - expect(validator.isContactValid('trici.mcmillian@hitchhiker.com')).toBe( - true, + it("should allow real mail addresses", () => { + expect(validator.isContactValid("trici.mcmillian@hitchhiker.com")).toBe( + true ); }); - it('should fail on invalid mail addresses', () => { - expect(validator.isContactValid('tricia')).toBe(false); + it("should fail on invalid mail addresses", () => { + expect(validator.isContactValid("tricia")).toBe(false); }); }); diff --git a/scm-ui/ui-webapp/src/repos/components/form/repositoryValidation.ts b/scm-ui/ui-webapp/src/repos/components/form/repositoryValidation.ts index 33d8ab39a9..25fc4c7723 100644 --- a/scm-ui/ui-webapp/src/repos/components/form/repositoryValidation.ts +++ b/scm-ui/ui-webapp/src/repos/components/form/repositoryValidation.ts @@ -1,4 +1,4 @@ -import { validation } from '@scm-manager/ui-components'; +import { validation } from "@scm-manager/ui-components"; const nameRegex = /(?!^\.\.$)(?!^\.$)(?!.*[\\\[\]])^[A-Za-z0-9\.][A-Za-z0-9\.\-_]*$/; @@ -7,5 +7,5 @@ export const isNameValid = (name: string) => { }; export function isContactValid(mail: string) { - return '' === mail || validation.isMailValid(mail); + return "" === mail || validation.isMailValid(mail); } diff --git a/scm-ui/ui-webapp/src/repos/components/list/RepositoryAvatar.tsx b/scm-ui/ui-webapp/src/repos/components/list/RepositoryAvatar.tsx index bf40b5d25d..5aed41296d 100644 --- a/scm-ui/ui-webapp/src/repos/components/list/RepositoryAvatar.tsx +++ b/scm-ui/ui-webapp/src/repos/components/list/RepositoryAvatar.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; -import { Repository } from '@scm-manager/ui-types'; -import { Image } from '@scm-manager/ui-components'; +import React from "react"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import { Repository } from "@scm-manager/ui-types"; +import { Image } from "@scm-manager/ui-components"; type Props = { repository: Repository; @@ -15,7 +15,7 @@ class RepositoryAvatar extends React.Component<Props> { <ExtensionPoint name="repos.repository-avatar" props={{ - repository, + repository }} > <Image src="/images/blib.jpg" alt="Logo" /> diff --git a/scm-ui/ui-webapp/src/repos/components/list/RepositoryEntry.tsx b/scm-ui/ui-webapp/src/repos/components/list/RepositoryEntry.tsx index cf94177e68..89404f6689 100644 --- a/scm-ui/ui-webapp/src/repos/components/list/RepositoryEntry.tsx +++ b/scm-ui/ui-webapp/src/repos/components/list/RepositoryEntry.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import { Repository } from '@scm-manager/ui-types'; -import { CardColumn, DateFromNow } from '@scm-manager/ui-components'; -import RepositoryEntryLink from './RepositoryEntryLink'; -import RepositoryAvatar from './RepositoryAvatar'; +import React from "react"; +import { Repository } from "@scm-manager/ui-types"; +import { CardColumn, DateFromNow } from "@scm-manager/ui-components"; +import RepositoryEntryLink from "./RepositoryEntryLink"; +import RepositoryAvatar from "./RepositoryAvatar"; type Props = { repository: Repository; @@ -14,11 +14,11 @@ class RepositoryEntry extends React.Component<Props> { }; renderBranchesLink = (repository: Repository, repositoryLink: string) => { - if (repository._links['branches']) { + if (repository._links["branches"]) { return ( <RepositoryEntryLink icon="code-branch" - to={repositoryLink + '/branches'} + to={repositoryLink + "/branches"} /> ); } @@ -26,11 +26,11 @@ class RepositoryEntry extends React.Component<Props> { }; renderChangesetsLink = (repository: Repository, repositoryLink: string) => { - if (repository._links['changesets']) { + if (repository._links["changesets"]) { return ( <RepositoryEntryLink icon="exchange-alt" - to={repositoryLink + '/changesets'} + to={repositoryLink + "/changesets"} /> ); } @@ -38,20 +38,20 @@ class RepositoryEntry extends React.Component<Props> { }; renderSourcesLink = (repository: Repository, repositoryLink: string) => { - if (repository._links['sources']) { + if (repository._links["sources"]) { return ( - <RepositoryEntryLink icon="code" to={repositoryLink + '/sources'} /> + <RepositoryEntryLink icon="code" to={repositoryLink + "/sources"} /> ); } return null; }; renderModifyLink = (repository: Repository, repositoryLink: string) => { - if (repository._links['update']) { + if (repository._links["update"]) { return ( <RepositoryEntryLink icon="cog" - to={repositoryLink + '/settings/general'} + to={repositoryLink + "/settings/general"} /> ); } diff --git a/scm-ui/ui-webapp/src/repos/components/list/RepositoryEntryLink.tsx b/scm-ui/ui-webapp/src/repos/components/list/RepositoryEntryLink.tsx index 897184cd09..639287ff76 100644 --- a/scm-ui/ui-webapp/src/repos/components/list/RepositoryEntryLink.tsx +++ b/scm-ui/ui-webapp/src/repos/components/list/RepositoryEntryLink.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { Link } from 'react-router-dom'; -import styled from 'styled-components'; -import { Icon } from '@scm-manager/ui-components'; +import React from "react"; +import { Link } from "react-router-dom"; +import styled from "styled-components"; +import { Icon } from "@scm-manager/ui-components"; type Props = { to: string; diff --git a/scm-ui/ui-webapp/src/repos/components/list/RepositoryGroupEntry.tsx b/scm-ui/ui-webapp/src/repos/components/list/RepositoryGroupEntry.tsx index 4c4832f656..49de1c6645 100644 --- a/scm-ui/ui-webapp/src/repos/components/list/RepositoryGroupEntry.tsx +++ b/scm-ui/ui-webapp/src/repos/components/list/RepositoryGroupEntry.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { CardColumnGroup } from '@scm-manager/ui-components'; -import { RepositoryGroup } from '@scm-manager/ui-types'; -import RepositoryEntry from './RepositoryEntry'; +import React from "react"; +import { CardColumnGroup } from "@scm-manager/ui-components"; +import { RepositoryGroup } from "@scm-manager/ui-types"; +import RepositoryEntry from "./RepositoryEntry"; type Props = { group: RepositoryGroup; diff --git a/scm-ui/ui-webapp/src/repos/components/list/RepositoryList.tsx b/scm-ui/ui-webapp/src/repos/components/list/RepositoryList.tsx index f0767bda9b..15584ff38e 100644 --- a/scm-ui/ui-webapp/src/repos/components/list/RepositoryList.tsx +++ b/scm-ui/ui-webapp/src/repos/components/list/RepositoryList.tsx @@ -1,9 +1,9 @@ -import React from 'react'; +import React from "react"; -import { Repository } from '@scm-manager/ui-types'; +import { Repository } from "@scm-manager/ui-types"; -import groupByNamespace from './groupByNamespace'; -import RepositoryGroupEntry from './RepositoryGroupEntry'; +import groupByNamespace from "./groupByNamespace"; +import RepositoryGroupEntry from "./RepositoryGroupEntry"; type Props = { repositories: Repository[]; diff --git a/scm-ui/ui-webapp/src/repos/components/list/groupByNamespace.test.ts b/scm-ui/ui-webapp/src/repos/components/list/groupByNamespace.test.ts index 1bd2dd60fa..26246732c6 100644 --- a/scm-ui/ui-webapp/src/repos/components/list/groupByNamespace.test.ts +++ b/scm-ui/ui-webapp/src/repos/components/list/groupByNamespace.test.ts @@ -1,72 +1,72 @@ -import groupByNamespace from './groupByNamespace'; +import groupByNamespace from "./groupByNamespace"; const base = { - type: 'git', - _links: {}, + type: "git", + _links: {} }; const slartiBlueprintsFjords = { ...base, - namespace: 'slarti', - name: 'fjords-blueprints', + namespace: "slarti", + name: "fjords-blueprints" }; const slartiFjords = { ...base, - namespace: 'slarti', - name: 'fjords', + namespace: "slarti", + name: "fjords" }; const hitchhikerRestand = { ...base, - namespace: 'hitchhiker', - name: 'restand', + namespace: "hitchhiker", + name: "restand" }; const hitchhikerPuzzle42 = { ...base, - namespace: 'hitchhiker', - name: 'puzzle42', + namespace: "hitchhiker", + name: "puzzle42" }; const hitchhikerHeartOfGold = { ...base, - namespace: 'hitchhiker', - name: 'heartOfGold', + namespace: "hitchhiker", + name: "heartOfGold" }; const zaphodMarvinFirmware = { ...base, - namespace: 'zaphod', - name: 'marvin-firmware', + namespace: "zaphod", + name: "marvin-firmware" }; -it('should group the repositories by their namespace', () => { +it("should group the repositories by their namespace", () => { const repositories = [ zaphodMarvinFirmware, slartiBlueprintsFjords, hitchhikerRestand, slartiFjords, hitchhikerHeartOfGold, - hitchhikerPuzzle42, + hitchhikerPuzzle42 ]; const expected = [ { - name: 'hitchhiker', + name: "hitchhiker", repositories: [ hitchhikerHeartOfGold, hitchhikerPuzzle42, - hitchhikerRestand, - ], + hitchhikerRestand + ] }, { - name: 'slarti', - repositories: [slartiFjords, slartiBlueprintsFjords], + name: "slarti", + repositories: [slartiFjords, slartiBlueprintsFjords] }, { - name: 'zaphod', - repositories: [zaphodMarvinFirmware], - }, + name: "zaphod", + repositories: [zaphodMarvinFirmware] + } ]; expect(groupByNamespace(repositories)).toEqual(expected); diff --git a/scm-ui/ui-webapp/src/repos/components/list/groupByNamespace.ts b/scm-ui/ui-webapp/src/repos/components/list/groupByNamespace.ts index 6d85533882..4fae906b2c 100644 --- a/scm-ui/ui-webapp/src/repos/components/list/groupByNamespace.ts +++ b/scm-ui/ui-webapp/src/repos/components/list/groupByNamespace.ts @@ -1,7 +1,7 @@ -import { Repository, RepositoryGroup } from '@scm-manager/ui-types'; +import { Repository, RepositoryGroup } from "@scm-manager/ui-types"; export default function groupByNamespace( - repositories: Repository[], + repositories: Repository[] ): RepositoryGroup[] { let groups = {}; for (let repository of repositories) { @@ -11,7 +11,7 @@ export default function groupByNamespace( if (!group) { group = { name: groupName, - repositories: [], + repositories: [] }; groups[groupName] = group; } diff --git a/scm-ui/ui-webapp/src/repos/components/list/index.ts b/scm-ui/ui-webapp/src/repos/components/list/index.ts index a71916560c..62c264cb7b 100644 --- a/scm-ui/ui-webapp/src/repos/components/list/index.ts +++ b/scm-ui/ui-webapp/src/repos/components/list/index.ts @@ -1,2 +1,2 @@ -import RepositoryList from './RepositoryList'; +import RepositoryList from "./RepositoryList"; export default RepositoryList; diff --git a/scm-ui/ui-webapp/src/repos/containers/ChangesetView.tsx b/scm-ui/ui-webapp/src/repos/containers/ChangesetView.tsx index 75e101737d..998cb9111e 100644 --- a/scm-ui/ui-webapp/src/repos/containers/ChangesetView.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/ChangesetView.tsx @@ -1,16 +1,16 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import { Changeset, Repository } from '@scm-manager/ui-types'; +import React from "react"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import { Changeset, Repository } from "@scm-manager/ui-types"; import { fetchChangesetIfNeeded, getChangeset, getFetchChangesetFailure, - isFetchChangesetPending, -} from '../modules/changesets'; -import ChangesetDetails from '../components/changesets/ChangesetDetails'; -import { translate } from 'react-i18next'; -import { ErrorPage, Loading } from '@scm-manager/ui-components'; + isFetchChangesetPending +} from "../modules/changesets"; +import ChangesetDetails from "../components/changesets/ChangesetDetails"; +import { translate } from "react-i18next"; +import { ErrorPage, Loading } from "@scm-manager/ui-components"; type Props = { id: string; @@ -36,8 +36,8 @@ class ChangesetView extends React.Component<Props> { if (error) { return ( <ErrorPage - title={t('changesets.errorTitle')} - subtitle={t('changesets.errorSubtitle')} + title={t("changesets.errorTitle")} + subtitle={t("changesets.errorSubtitle")} error={error} /> ); @@ -58,7 +58,7 @@ const mapStateToProps = (state, ownProps: Props) => { return { changeset, error, - loading, + loading }; }; @@ -66,13 +66,13 @@ const mapDispatchToProps = dispatch => { return { fetchChangesetIfNeeded: (repository: Repository, id: string) => { dispatch(fetchChangesetIfNeeded(repository, id)); - }, + } }; }; export default withRouter( connect( mapStateToProps, - mapDispatchToProps, - )(translate('repos')(ChangesetView)), + mapDispatchToProps + )(translate("repos")(ChangesetView)) ); diff --git a/scm-ui/ui-webapp/src/repos/containers/Changesets.tsx b/scm-ui/ui-webapp/src/repos/containers/Changesets.tsx index 2e71c14022..b22f0ec547 100644 --- a/scm-ui/ui-webapp/src/repos/containers/Changesets.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/Changesets.tsx @@ -1,30 +1,30 @@ -import React from 'react'; -import { withRouter } from 'react-router-dom'; +import React from "react"; +import { withRouter } from "react-router-dom"; import { Branch, Changeset, PagedCollection, - Repository, -} from '@scm-manager/ui-types'; + Repository +} from "@scm-manager/ui-types"; import { fetchChangesets, getChangesets, getFetchChangesetsFailure, isFetchChangesetsPending, - selectListAsCollection, -} from '../modules/changesets'; + selectListAsCollection +} from "../modules/changesets"; -import { connect } from 'react-redux'; +import { connect } from "react-redux"; import { ErrorNotification, getPageFromMatch, LinkPaginator, ChangesetList, Loading, - Notification, -} from '@scm-manager/ui-components'; -import { compose } from 'redux'; -import { translate } from 'react-i18next'; + Notification +} from "@scm-manager/ui-components"; +import { compose } from "redux"; +import { translate } from "react-i18next"; type Props = { repository: Repository; @@ -67,7 +67,7 @@ class Changesets extends React.Component<Props> { return ( <div className="panel-block"> <Notification type="info"> - {t('changesets.noChangesets')} + {t("changesets.noChangesets")} </Notification> </div> ); @@ -106,7 +106,7 @@ const mapDispatchToProps = dispatch => { return { fetchChangesets: (repo: Repository, branch: Branch, page: number) => { dispatch(fetchChangesets(repo, branch, page)); - }, + } }; }; @@ -123,15 +123,15 @@ const mapStateToProps = (state: any, ownProps: Props) => { list, page, loading, - error, + error }; }; export default compose( - translate('repos'), + translate("repos"), withRouter, connect( mapStateToProps, - mapDispatchToProps, - ), + mapDispatchToProps + ) )(Changesets); diff --git a/scm-ui/ui-webapp/src/repos/containers/ChangesetsRoot.tsx b/scm-ui/ui-webapp/src/repos/containers/ChangesetsRoot.tsx index 8ba0116eb5..f24de6f59c 100644 --- a/scm-ui/ui-webapp/src/repos/containers/ChangesetsRoot.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/ChangesetsRoot.tsx @@ -1,21 +1,21 @@ -import React from 'react'; -import { Branch, Repository } from '@scm-manager/ui-types'; -import { translate } from 'react-i18next'; -import { Route, withRouter } from 'react-router-dom'; -import Changesets from './Changesets'; -import { connect } from 'react-redux'; +import React from "react"; +import { Branch, Repository } from "@scm-manager/ui-types"; +import { translate } from "react-i18next"; +import { Route, withRouter } from "react-router-dom"; +import Changesets from "./Changesets"; +import { connect } from "react-redux"; import { BranchSelector, ErrorNotification, - Loading, -} from '@scm-manager/ui-components'; + Loading +} from "@scm-manager/ui-components"; import { fetchBranches, getBranches, getFetchBranchesFailure, - isFetchBranchesPending, -} from '../branches/modules/branches'; -import { compose } from 'redux'; + isFetchBranchesPending +} from "../branches/modules/branches"; +import { compose } from "redux"; type Props = { repository: Repository; @@ -47,7 +47,7 @@ class ChangesetsRoot extends React.Component<Props> { redirectToDefaultBranch = () => { if (this.shouldRedirectToDefaultBranch()) { const defaultBranches = this.props.branches.filter( - b => b.defaultBranch === true, + b => b.defaultBranch === true ); if (defaultBranches.length > 0) { this.branchSelected(defaultBranches[0]); @@ -65,7 +65,7 @@ class ChangesetsRoot extends React.Component<Props> { }; stripEndingSlash = (url: string) => { - if (url.endsWith('/')) { + if (url.endsWith("/")) { return url.substring(0, url.length - 1); } return url; @@ -75,7 +75,7 @@ class ChangesetsRoot extends React.Component<Props> { let url; if (branch) { url = `${this.props.baseUrlWithBranch}/${encodeURIComponent( - branch.name, + branch.name )}/changesets/`; } else { url = `${this.props.baseUrlWithoutBranch}/`; @@ -121,7 +121,7 @@ class ChangesetsRoot extends React.Component<Props> { return ( <div className="panel-heading"> <BranchSelector - label={t('changesets.branchSelectorLabel')} + label={t("changesets.branchSelectorLabel")} branches={branches} selectedBranch={selected} selected={(b: Branch) => { @@ -139,7 +139,7 @@ const mapDispatchToProps = dispatch => { return { fetchBranches: (repo: Repository) => { dispatch(fetchBranches(repo)); - }, + } }; }; @@ -154,15 +154,15 @@ const mapStateToProps = (state: any, ownProps: Props) => { loading, error, branches, - selected, + selected }; }; export default compose( withRouter, - translate('repos'), + translate("repos"), connect( mapStateToProps, - mapDispatchToProps, - ), + mapDispatchToProps + ) )(ChangesetsRoot); diff --git a/scm-ui/ui-webapp/src/repos/containers/Create.tsx b/scm-ui/ui-webapp/src/repos/containers/Create.tsx index 36b1cf00cd..a1aa18da98 100644 --- a/scm-ui/ui-webapp/src/repos/containers/Create.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/Create.tsx @@ -1,33 +1,33 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { Page } from '@scm-manager/ui-components'; -import RepositoryForm from '../components/form'; +import React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { Page } from "@scm-manager/ui-components"; +import RepositoryForm from "../components/form"; import { Repository, RepositoryType, - NamespaceStrategies, -} from '@scm-manager/ui-types'; + NamespaceStrategies +} from "@scm-manager/ui-types"; import { fetchRepositoryTypesIfNeeded, getFetchRepositoryTypesFailure, getRepositoryTypes, - isFetchRepositoryTypesPending, -} from '../modules/repositoryTypes'; + isFetchRepositoryTypesPending +} from "../modules/repositoryTypes"; import { createRepo, createRepoReset, getCreateRepoFailure, - isCreateRepoPending, -} from '../modules/repos'; -import { History } from 'history'; -import { getRepositoriesLink } from '../../modules/indexResource'; + isCreateRepoPending +} from "../modules/repos"; +import { History } from "history"; +import { getRepositoriesLink } from "../../modules/indexResource"; import { fetchNamespaceStrategiesIfNeeded, getFetchNamespaceStrategiesFailure, getNamespaceStrategies, - isFetchNamespaceStrategiesPending, -} from '../../admin/modules/namespaceStrategies'; + isFetchNamespaceStrategiesPending +} from "../../admin/modules/namespaceStrategies"; type Props = { repositoryTypes: RepositoryType[]; @@ -43,7 +43,7 @@ type Props = { createRepo: ( link: string, p2: Repository, - callback: (repo: Repository) => void, + callback: (repo: Repository) => void ) => void; resetForm: () => void; @@ -62,7 +62,7 @@ class Create extends React.Component<Props> { repoCreated = (repo: Repository) => { const { history } = this.props; - history.push('/repo/' + repo.namespace + '/' + repo.name); + history.push("/repo/" + repo.namespace + "/" + repo.name); }; render() { @@ -72,14 +72,14 @@ class Create extends React.Component<Props> { repositoryTypes, namespaceStrategies, createRepo, - error, + error } = this.props; const { t, repoLink } = this.props; return ( <Page - title={t('create.title')} - subtitle={t('create.subtitle')} + title={t("create.title")} + subtitle={t("create.subtitle")} loading={pageLoading} error={error} showContentOnError={true} @@ -90,7 +90,7 @@ class Create extends React.Component<Props> { namespaceStrategy={namespaceStrategies.current} submitForm={repo => { createRepo(repoLink, repo, (repo: Repository) => - this.repoCreated(repo), + this.repoCreated(repo) ); }} /> @@ -117,7 +117,7 @@ const mapStateToProps = state => { pageLoading, createLoading, error, - repoLink, + repoLink }; }; @@ -132,17 +132,17 @@ const mapDispatchToProps = dispatch => { createRepo: ( link: string, repository: Repository, - callback: () => void, + callback: () => void ) => { dispatch(createRepo(link, repository, callback)); }, resetForm: () => { dispatch(createRepoReset()); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('repos')(Create)); + mapDispatchToProps +)(translate("repos")(Create)); diff --git a/scm-ui/ui-webapp/src/repos/containers/DeleteRepo.tsx b/scm-ui/ui-webapp/src/repos/containers/DeleteRepo.tsx index 9cba29669b..f38a64dea6 100644 --- a/scm-ui/ui-webapp/src/repos/containers/DeleteRepo.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/DeleteRepo.tsx @@ -1,20 +1,20 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Repository } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import { Repository } from "@scm-manager/ui-types"; import { Subtitle, DeleteButton, confirmAlert, - ErrorNotification, -} from '@scm-manager/ui-components'; + ErrorNotification +} from "@scm-manager/ui-components"; import { deleteRepo, getDeleteRepoFailure, - isDeleteRepoPending, -} from '../modules/repos'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import { History } from 'history'; + isDeleteRepoPending +} from "../modules/repos"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import { History } from "history"; type Props = { loading: boolean; @@ -30,11 +30,11 @@ type Props = { class DeleteRepo extends React.Component<Props> { static defaultProps = { - confirmDialog: true, + confirmDialog: true }; deleted = () => { - this.props.history.push('/repos/'); + this.props.history.push("/repos/"); }; deleteRepo = () => { @@ -44,18 +44,18 @@ class DeleteRepo extends React.Component<Props> { confirmDelete = () => { const { t } = this.props; confirmAlert({ - title: t('deleteRepo.confirmAlert.title'), - message: t('deleteRepo.confirmAlert.message'), + title: t("deleteRepo.confirmAlert.title"), + message: t("deleteRepo.confirmAlert.message"), buttons: [ { - label: t('deleteRepo.confirmAlert.submit'), - onClick: () => this.deleteRepo(), + label: t("deleteRepo.confirmAlert.submit"), + onClick: () => this.deleteRepo() }, { - label: t('deleteRepo.confirmAlert.cancel'), - onClick: () => null, - }, - ], + label: t("deleteRepo.confirmAlert.cancel"), + onClick: () => null + } + ] }); }; @@ -74,12 +74,12 @@ class DeleteRepo extends React.Component<Props> { return ( <> <hr /> - <Subtitle subtitle={t('deleteRepo.subtitle')} /> + <Subtitle subtitle={t("deleteRepo.subtitle")} /> <ErrorNotification error={error} /> <div className="columns"> <div className="column"> <DeleteButton - label={t('deleteRepo.button')} + label={t("deleteRepo.button")} action={action} loading={loading} /> @@ -96,7 +96,7 @@ const mapStateToProps = (state, ownProps) => { const error = getDeleteRepoFailure(state, namespace, name); return { loading, - error, + error }; }; @@ -104,11 +104,11 @@ const mapDispatchToProps = dispatch => { return { deleteRepo: (repo: Repository, callback: () => void) => { dispatch(deleteRepo(repo, callback)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(withRouter(translate('repos')(DeleteRepo))); + mapDispatchToProps +)(withRouter(translate("repos")(DeleteRepo))); diff --git a/scm-ui/ui-webapp/src/repos/containers/EditRepo.tsx b/scm-ui/ui-webapp/src/repos/containers/EditRepo.tsx index d8094402d8..3b221eac8a 100644 --- a/scm-ui/ui-webapp/src/repos/containers/EditRepo.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/EditRepo.tsx @@ -1,18 +1,18 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import RepositoryForm from '../components/form'; -import DeleteRepo from './DeleteRepo'; -import { Repository } from '@scm-manager/ui-types'; +import React from "react"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import RepositoryForm from "../components/form"; +import DeleteRepo from "./DeleteRepo"; +import { Repository } from "@scm-manager/ui-types"; import { modifyRepo, isModifyRepoPending, getModifyRepoFailure, - modifyRepoReset, -} from '../modules/repos'; -import { History } from 'history'; -import { ErrorNotification } from '@scm-manager/ui-components'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; + modifyRepoReset +} from "../modules/repos"; +import { History } from "history"; +import { ErrorNotification } from "@scm-manager/ui-components"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; type Props = { loading: boolean; @@ -39,7 +39,7 @@ class EditRepo extends React.Component<Props> { }; stripEndingSlash = (url: string) => { - if (url.endsWith('/')) { + if (url.endsWith("/")) { return url.substring(0, url.length - 2); } return url; @@ -56,7 +56,7 @@ class EditRepo extends React.Component<Props> { const extensionProps = { repository, - url, + url }; return ( @@ -86,7 +86,7 @@ const mapStateToProps = (state, ownProps) => { const error = getModifyRepoFailure(state, namespace, name); return { loading, - error, + error }; }; @@ -97,11 +97,11 @@ const mapDispatchToProps = dispatch => { }, modifyRepoReset: (repo: Repository) => { dispatch(modifyRepoReset(repo)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, + mapDispatchToProps )(withRouter(EditRepo)); diff --git a/scm-ui/ui-webapp/src/repos/containers/Overview.tsx b/scm-ui/ui-webapp/src/repos/containers/Overview.tsx index 74acdcc5c3..928795722a 100644 --- a/scm-ui/ui-webapp/src/repos/containers/Overview.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/Overview.tsx @@ -1,16 +1,16 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { History } from 'history'; -import { withRouter } from 'react-router-dom'; -import { RepositoryCollection } from '@scm-manager/ui-types'; +import React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { History } from "history"; +import { withRouter } from "react-router-dom"; +import { RepositoryCollection } from "@scm-manager/ui-types"; import { fetchReposByPage, getFetchReposFailure, getRepositoryCollection, isAbleToCreateRepos, - isFetchReposPending, -} from '../modules/repos'; + isFetchReposPending +} from "../modules/repos"; import { Page, PageActions, @@ -18,10 +18,10 @@ import { CreateButton, Notification, LinkPaginator, - urls, -} from '@scm-manager/ui-components'; -import RepositoryList from '../components/list'; -import { getRepositoriesLink } from '../../modules/indexResource'; + urls +} from "@scm-manager/ui-components"; +import RepositoryList from "../components/list"; +import { getRepositoriesLink } from "../../modules/indexResource"; type Props = { loading: boolean; @@ -46,7 +46,7 @@ class Overview extends React.Component<Props> { fetchReposByPage( reposLink, page, - urls.getQueryStringFromLocation(location), + urls.getQueryStringFromLocation(location) ); } @@ -57,7 +57,7 @@ class Overview extends React.Component<Props> { page, reposLink, location, - fetchReposByPage, + fetchReposByPage } = this.props; if (collection && page && !loading) { const statePage: number = collection.page + 1; @@ -65,7 +65,7 @@ class Overview extends React.Component<Props> { fetchReposByPage( reposLink, page, - urls.getQueryStringFromLocation(location), + urls.getQueryStringFromLocation(location) ); } } @@ -75,8 +75,8 @@ class Overview extends React.Component<Props> { const { error, loading, showCreateButton, t } = this.props; return ( <Page - title={t('overview.title')} - subtitle={t('overview.subtitle')} + title={t("overview.title")} + subtitle={t("overview.subtitle")} loading={loading} error={error} > @@ -85,7 +85,7 @@ class Overview extends React.Component<Props> { <OverviewPageActions showCreateButton={showCreateButton} link="repos" - label={t('overview.createButton')} + label={t("overview.createButton")} /> </PageActions> </Page> @@ -108,7 +108,7 @@ class Overview extends React.Component<Props> { ); } return ( - <Notification type="info">{t('overview.noRepositories')}</Notification> + <Notification type="info">{t("overview.noRepositories")}</Notification> ); } @@ -129,7 +129,7 @@ class Overview extends React.Component<Props> { const { showCreateButton, t } = this.props; if (showCreateButton) { return ( - <CreateButton label={t('overview.createButton')} link="/repos/create" /> + <CreateButton label={t("overview.createButton")} link="/repos/create" /> ); } return null; @@ -150,7 +150,7 @@ const mapStateToProps = (state, ownProps) => { error, page, showCreateButton, - reposLink, + reposLink }; }; @@ -158,10 +158,10 @@ const mapDispatchToProps = dispatch => { return { fetchReposByPage: (link: string, page: number, filter?: string) => { dispatch(fetchReposByPage(link, page, filter)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('repos')(withRouter(Overview))); + mapDispatchToProps +)(translate("repos")(withRouter(Overview))); diff --git a/scm-ui/ui-webapp/src/repos/containers/RepositoryRoot.tsx b/scm-ui/ui-webapp/src/repos/containers/RepositoryRoot.tsx index 50c8073ab2..672df57337 100644 --- a/scm-ui/ui-webapp/src/repos/containers/RepositoryRoot.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/RepositoryRoot.tsx @@ -1,14 +1,14 @@ -import React from 'react'; +import React from "react"; import { fetchRepoByName, getFetchRepoFailure, getRepository, - isFetchRepoPending, -} from '../modules/repos'; + isFetchRepoPending +} from "../modules/repos"; -import { connect } from 'react-redux'; -import { Redirect, Route, Switch } from 'react-router-dom'; -import { Repository } from '@scm-manager/ui-types'; +import { connect } from "react-redux"; +import { Redirect, Route, Switch } from "react-router-dom"; +import { Repository } from "@scm-manager/ui-types"; import { ErrorPage, @@ -17,25 +17,25 @@ import { NavLink, Page, Section, - SubNavigation, -} from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; -import RepositoryDetails from '../components/RepositoryDetails'; -import EditRepo from './EditRepo'; -import BranchesOverview from '../branches/containers/BranchesOverview'; -import CreateBranch from '../branches/containers/CreateBranch'; -import Permissions from '../permissions/containers/Permissions'; + SubNavigation +} from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; +import RepositoryDetails from "../components/RepositoryDetails"; +import EditRepo from "./EditRepo"; +import BranchesOverview from "../branches/containers/BranchesOverview"; +import CreateBranch from "../branches/containers/CreateBranch"; +import Permissions from "../permissions/containers/Permissions"; -import { History } from 'history'; -import EditRepoNavLink from '../components/EditRepoNavLink'; -import BranchRoot from '../branches/containers/BranchRoot'; -import ChangesetsRoot from './ChangesetsRoot'; -import ChangesetView from './ChangesetView'; -import PermissionsNavLink from '../components/PermissionsNavLink'; -import Sources from '../sources/containers/Sources'; -import RepositoryNavLink from '../components/RepositoryNavLink'; -import { getLinks, getRepositoriesLink } from '../../modules/indexResource'; -import { binder, ExtensionPoint } from '@scm-manager/ui-extensions'; +import { History } from "history"; +import EditRepoNavLink from "../components/EditRepoNavLink"; +import BranchRoot from "../branches/containers/BranchRoot"; +import ChangesetsRoot from "./ChangesetsRoot"; +import ChangesetView from "./ChangesetView"; +import PermissionsNavLink from "../components/PermissionsNavLink"; +import Sources from "../sources/containers/Sources"; +import RepositoryNavLink from "../components/RepositoryNavLink"; +import { getLinks, getRepositoriesLink } from "../../modules/indexResource"; +import { binder, ExtensionPoint } from "@scm-manager/ui-extensions"; type Props = { namespace: string; @@ -63,7 +63,7 @@ class RepositoryRoot extends React.Component<Props> { } stripEndingSlash = (url: string) => { - if (url.endsWith('/')) { + if (url.endsWith("/")) { return url.substring(0, url.length - 1); } return url; @@ -91,8 +91,8 @@ class RepositoryRoot extends React.Component<Props> { if (error) { return ( <ErrorPage - title={t('repositoryRoot.errorTitle')} - subtitle={t('repositoryRoot.errorSubtitle')} + title={t("repositoryRoot.errorTitle")} + subtitle={t("repositoryRoot.errorSubtitle")} error={error} /> ); @@ -107,22 +107,22 @@ class RepositoryRoot extends React.Component<Props> { const extensionProps = { repository, url, - indexLinks, + indexLinks }; const redirectUrlFactory = binder.getExtension( - 'repository.redirect', - this.props, + "repository.redirect", + this.props ); let redirectedUrl; if (redirectUrlFactory) { redirectedUrl = url + redirectUrlFactory(this.props); } else { - redirectedUrl = url + '/info'; + redirectedUrl = url + "/info"; } return ( - <Page title={repository.namespace + '/' + repository.name}> + <Page title={repository.namespace + "/" + repository.name}> <div className="columns"> <div className="column is-three-quarters"> <Switch> @@ -215,7 +215,7 @@ class RepositoryRoot extends React.Component<Props> { </div> <div className="column"> <Navigation> - <Section label={t('repositoryRoot.menu.navigationLabel')}> + <Section label={t("repositoryRoot.menu.navigationLabel")}> <ExtensionPoint name="repository.navigation.topLevel" props={extensionProps} @@ -224,14 +224,14 @@ class RepositoryRoot extends React.Component<Props> { <NavLink to={`${url}/info`} icon="fas fa-info-circle" - label={t('repositoryRoot.menu.informationNavLink')} + label={t("repositoryRoot.menu.informationNavLink")} /> <RepositoryNavLink repository={repository} linkName="branches" to={`${url}/branches/`} icon="fas fa-code-branch" - label={t('repositoryRoot.menu.branchesNavLink')} + label={t("repositoryRoot.menu.branchesNavLink")} activeWhenMatch={this.matchesBranches} activeOnlyWhenExact={false} /> @@ -240,7 +240,7 @@ class RepositoryRoot extends React.Component<Props> { linkName="changesets" to={`${url}/changesets/`} icon="fas fa-exchange-alt" - label={t('repositoryRoot.menu.historyNavLink')} + label={t("repositoryRoot.menu.historyNavLink")} activeWhenMatch={this.matchesChangesets} activeOnlyWhenExact={false} /> @@ -249,7 +249,7 @@ class RepositoryRoot extends React.Component<Props> { linkName="sources" to={`${url}/sources`} icon="fas fa-code" - label={t('repositoryRoot.menu.sourcesNavLink')} + label={t("repositoryRoot.menu.sourcesNavLink")} activeOnlyWhenExact={false} /> <ExtensionPoint @@ -259,7 +259,7 @@ class RepositoryRoot extends React.Component<Props> { /> <SubNavigation to={`${url}/settings/general`} - label={t('repositoryRoot.menu.settingsNavLink')} + label={t("repositoryRoot.menu.settingsNavLink")} > <EditRepoNavLink repository={repository} @@ -298,7 +298,7 @@ const mapStateToProps = (state, ownProps) => { loading, error, repoLink, - indexLinks, + indexLinks }; }; @@ -306,11 +306,11 @@ const mapDispatchToProps = dispatch => { return { fetchRepoByName: (link: string, namespace: string, name: string) => { dispatch(fetchRepoByName(link, namespace, name)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('repos')(RepositoryRoot)); + mapDispatchToProps +)(translate("repos")(RepositoryRoot)); diff --git a/scm-ui/ui-webapp/src/repos/modules/changesets.test.ts b/scm-ui/ui-webapp/src/repos/modules/changesets.test.ts index 7ba5619bff..ba15af81a7 100644 --- a/scm-ui/ui-webapp/src/repos/modules/changesets.test.ts +++ b/scm-ui/ui-webapp/src/repos/modules/changesets.test.ts @@ -1,6 +1,6 @@ -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import reducer, { FETCH_CHANGESET, FETCH_CHANGESET_FAILURE, @@ -22,46 +22,46 @@ import reducer, { isFetchChangesetPending, isFetchChangesetsPending, selectListAsCollection, - shouldFetchChangeset, -} from './changesets'; + shouldFetchChangeset +} from "./changesets"; const branch = { - name: 'specific', - revision: '123', + name: "specific", + revision: "123", _links: { history: { href: - 'http://scm.hitchhicker.com/api/v2/repositories/foo/bar/branches/specific/changesets', - }, - }, + "http://scm.hitchhicker.com/api/v2/repositories/foo/bar/branches/specific/changesets" + } + } }; const repository = { - namespace: 'foo', - name: 'bar', - type: 'GIT', + namespace: "foo", + name: "bar", + type: "GIT", _links: { self: { - href: 'http://scm.hitchhicker.com/api/v2/repositories/foo/bar', + href: "http://scm.hitchhicker.com/api/v2/repositories/foo/bar" }, changesets: { - href: 'http://scm.hitchhicker.com/api/v2/repositories/foo/bar/changesets', + href: "http://scm.hitchhicker.com/api/v2/repositories/foo/bar/changesets" }, branches: { href: - 'http://scm.hitchhicker.com/api/v2/repositories/foo/bar/branches/specific/branches', - }, - }, + "http://scm.hitchhicker.com/api/v2/repositories/foo/bar/branches/specific/branches" + } + } }; const changesets = {}; -describe('changesets', () => { - describe('fetching of changesets', () => { +describe("changesets", () => { + describe("fetching of changesets", () => { const DEFAULT_BRANCH_URL = - 'http://scm.hitchhicker.com/api/v2/repositories/foo/bar/changesets'; + "http://scm.hitchhicker.com/api/v2/repositories/foo/bar/changesets"; const SPECIFIC_BRANCH_URL = - 'http://scm.hitchhicker.com/api/v2/repositories/foo/bar/branches/specific/changesets'; + "http://scm.hitchhicker.com/api/v2/repositories/foo/bar/branches/specific/changesets"; const mockStore = configureMockStore([thunk]); @@ -70,25 +70,25 @@ describe('changesets', () => { fetchMock.restore(); }); - const changesetId = 'aba876c0625d90a6aff1494f3d161aaa7008b958'; + const changesetId = "aba876c0625d90a6aff1494f3d161aaa7008b958"; - it('should fetch changeset', () => { - fetchMock.getOnce(DEFAULT_BRANCH_URL + '/' + changesetId, '{}'); + it("should fetch changeset", () => { + fetchMock.getOnce(DEFAULT_BRANCH_URL + "/" + changesetId, "{}"); const expectedActions = [ { type: FETCH_CHANGESET_PENDING, - itemId: 'foo/bar/' + changesetId, + itemId: "foo/bar/" + changesetId }, { type: FETCH_CHANGESET_SUCCESS, payload: { changeset: {}, id: changesetId, - repository: repository, + repository: repository }, - itemId: 'foo/bar/' + changesetId, - }, + itemId: "foo/bar/" + changesetId + } ]; const store = mockStore({}); @@ -99,14 +99,14 @@ describe('changesets', () => { }); }); - it('should fail fetching changeset on error', () => { - fetchMock.getOnce(DEFAULT_BRANCH_URL + '/' + changesetId, 500); + it("should fail fetching changeset on error", () => { + fetchMock.getOnce(DEFAULT_BRANCH_URL + "/" + changesetId, 500); const expectedActions = [ { type: FETCH_CHANGESET_PENDING, - itemId: 'foo/bar/' + changesetId, - }, + itemId: "foo/bar/" + changesetId + } ]; const store = mockStore({}); @@ -119,74 +119,74 @@ describe('changesets', () => { }); }); - it('should fetch changeset if needed', () => { - fetchMock.getOnce(DEFAULT_BRANCH_URL + '/id3', '{}'); + it("should fetch changeset if needed", () => { + fetchMock.getOnce(DEFAULT_BRANCH_URL + "/id3", "{}"); const expectedActions = [ { type: FETCH_CHANGESET_PENDING, - itemId: 'foo/bar/id3', + itemId: "foo/bar/id3" }, { type: FETCH_CHANGESET_SUCCESS, payload: { changeset: {}, - id: 'id3', - repository: repository, + id: "id3", + repository: repository }, - itemId: 'foo/bar/id3', - }, + itemId: "foo/bar/id3" + } ]; const store = mockStore({}); return store - .dispatch(fetchChangesetIfNeeded(repository, 'id3')) + .dispatch(fetchChangesetIfNeeded(repository, "id3")) .then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should not fetch changeset if not needed', () => { - fetchMock.getOnce(DEFAULT_BRANCH_URL + '/id1', 500); + it("should not fetch changeset if not needed", () => { + fetchMock.getOnce(DEFAULT_BRANCH_URL + "/id1", 500); const state = { changesets: { - 'foo/bar': { + "foo/bar": { byId: { id1: { - id: 'id1', + id: "id1" }, id2: { - id: 'id2', - }, - }, - }, - }, + id: "id2" + } + } + } + } }; const store = mockStore(state); return expect( - store.dispatch(fetchChangesetIfNeeded(repository, 'id1')), + store.dispatch(fetchChangesetIfNeeded(repository, "id1")) ).toEqual(undefined); }); - it('should fetch changesets for default branch', () => { - fetchMock.getOnce(DEFAULT_BRANCH_URL, '{}'); + it("should fetch changesets for default branch", () => { + fetchMock.getOnce(DEFAULT_BRANCH_URL, "{}"); const expectedActions = [ { type: FETCH_CHANGESETS_PENDING, - itemId: 'foo/bar', + itemId: "foo/bar" }, { type: FETCH_CHANGESETS_SUCCESS, payload: { repository, undefined, - changesets, + changesets }, - itemId: 'foo/bar', - }, + itemId: "foo/bar" + } ]; const store = mockStore({}); @@ -195,24 +195,24 @@ describe('changesets', () => { }); }); - it('should fetch changesets for specific branch', () => { - const itemId = 'foo/bar/specific'; - fetchMock.getOnce(SPECIFIC_BRANCH_URL, '{}'); + it("should fetch changesets for specific branch", () => { + const itemId = "foo/bar/specific"; + fetchMock.getOnce(SPECIFIC_BRANCH_URL, "{}"); const expectedActions = [ { type: FETCH_CHANGESETS_PENDING, - itemId, + itemId }, { type: FETCH_CHANGESETS_SUCCESS, payload: { repository, branch, - changesets, + changesets }, - itemId, - }, + itemId + } ]; const store = mockStore({}); @@ -221,15 +221,15 @@ describe('changesets', () => { }); }); - it('should fail fetching changesets on error', () => { - const itemId = 'foo/bar'; + it("should fail fetching changesets on error", () => { + const itemId = "foo/bar"; fetchMock.getOnce(DEFAULT_BRANCH_URL, 500); const expectedActions = [ { type: FETCH_CHANGESETS_PENDING, - itemId, - }, + itemId + } ]; const store = mockStore({}); @@ -240,15 +240,15 @@ describe('changesets', () => { }); }); - it('should fail fetching changesets for specific branch on error', () => { - const itemId = 'foo/bar/specific'; + it("should fail fetching changesets for specific branch on error", () => { + const itemId = "foo/bar/specific"; fetchMock.getOnce(SPECIFIC_BRANCH_URL, 500); const expectedActions = [ { type: FETCH_CHANGESETS_PENDING, - itemId, - }, + itemId + } ]; const store = mockStore({}); @@ -259,23 +259,23 @@ describe('changesets', () => { }); }); - it('should fetch changesets by page', () => { - fetchMock.getOnce(DEFAULT_BRANCH_URL + '?page=4', '{}'); + it("should fetch changesets by page", () => { + fetchMock.getOnce(DEFAULT_BRANCH_URL + "?page=4", "{}"); const expectedActions = [ { type: FETCH_CHANGESETS_PENDING, - itemId: 'foo/bar', + itemId: "foo/bar" }, { type: FETCH_CHANGESETS_SUCCESS, payload: { repository, undefined, - changesets, + changesets }, - itemId: 'foo/bar', - }, + itemId: "foo/bar" + } ]; const store = mockStore({}); @@ -286,23 +286,23 @@ describe('changesets', () => { }); }); - it('should fetch changesets by branch and page', () => { - fetchMock.getOnce(SPECIFIC_BRANCH_URL + '?page=4', '{}'); + it("should fetch changesets by branch and page", () => { + fetchMock.getOnce(SPECIFIC_BRANCH_URL + "?page=4", "{}"); const expectedActions = [ { type: FETCH_CHANGESETS_PENDING, - itemId: 'foo/bar/specific', + itemId: "foo/bar/specific" }, { type: FETCH_CHANGESETS_SUCCESS, payload: { repository, branch, - changesets, + changesets }, - itemId: 'foo/bar/specific', - }, + itemId: "foo/bar/specific" + } ]; const store = mockStore({}); @@ -312,7 +312,7 @@ describe('changesets', () => { }); }); - describe('changesets reducer', () => { + describe("changesets reducer", () => { const responseBody = { page: 1, pageTotal: 10, @@ -320,354 +320,354 @@ describe('changesets', () => { _embedded: { changesets: [ { - id: 'changeset1', + id: "changeset1", author: { - mail: 'z@phod.com', - name: 'zaphod', - }, + mail: "z@phod.com", + name: "zaphod" + } }, { - id: 'changeset2', - description: 'foo', + id: "changeset2", + description: "foo" }, { - id: 'changeset3', - description: 'bar', - }, + id: "changeset3", + description: "bar" + } ], _embedded: { tags: [], branches: [], - parents: [], - }, - }, + parents: [] + } + } }; - it('should set state to received changesets', () => { + it("should set state to received changesets", () => { const newState = reducer( {}, - fetchChangesetsSuccess(repository, undefined, responseBody), + fetchChangesetsSuccess(repository, undefined, responseBody) ); expect(newState).toBeDefined(); - expect(newState['foo/bar'].byId['changeset1'].author.mail).toEqual( - 'z@phod.com', + expect(newState["foo/bar"].byId["changeset1"].author.mail).toEqual( + "z@phod.com" ); - expect(newState['foo/bar'].byId['changeset2'].description).toEqual('foo'); - expect(newState['foo/bar'].byId['changeset3'].description).toEqual('bar'); - expect(newState['foo/bar'].byBranch['']).toEqual({ + expect(newState["foo/bar"].byId["changeset2"].description).toEqual("foo"); + expect(newState["foo/bar"].byId["changeset3"].description).toEqual("bar"); + expect(newState["foo/bar"].byBranch[""]).toEqual({ entry: { page: 1, pageTotal: 10, - _links: {}, + _links: {} }, - entries: ['changeset1', 'changeset2', 'changeset3'], + entries: ["changeset1", "changeset2", "changeset3"] }); }); - it('should store the changeset list to branch', () => { + it("should store the changeset list to branch", () => { const newState = reducer( {}, - fetchChangesetsSuccess(repository, branch, responseBody), + fetchChangesetsSuccess(repository, branch, responseBody) ); - expect(newState['foo/bar'].byId['changeset1']).toBeDefined(); - expect(newState['foo/bar'].byBranch['specific'].entries).toEqual([ - 'changeset1', - 'changeset2', - 'changeset3', + expect(newState["foo/bar"].byId["changeset1"]).toBeDefined(); + expect(newState["foo/bar"].byBranch["specific"].entries).toEqual([ + "changeset1", + "changeset2", + "changeset3" ]); }); - it('should not remove existing changesets', () => { + it("should not remove existing changesets", () => { const state = { - 'foo/bar': { + "foo/bar": { byId: { id2: { - id: 'id2', + id: "id2" }, id1: { - id: 'id1', - }, + id: "id1" + } }, byBranch: { - '': { - entries: ['id1', 'id2'], - }, - }, - }, + "": { + entries: ["id1", "id2"] + } + } + } }; const newState = reducer( state, - fetchChangesetsSuccess(repository, undefined, responseBody), + fetchChangesetsSuccess(repository, undefined, responseBody) ); - const fooBar = newState['foo/bar']; + const fooBar = newState["foo/bar"]; - expect(fooBar.byBranch[''].entries).toEqual([ - 'changeset1', - 'changeset2', - 'changeset3', + expect(fooBar.byBranch[""].entries).toEqual([ + "changeset1", + "changeset2", + "changeset3" ]); - expect(fooBar.byId['id2']).toEqual({ - id: 'id2', + expect(fooBar.byId["id2"]).toEqual({ + id: "id2" }); - expect(fooBar.byId['id1']).toEqual({ - id: 'id1', + expect(fooBar.byId["id1"]).toEqual({ + id: "id1" }); }); const responseBodySingleChangeset = { - id: 'id3', + id: "id3", author: { - mail: 'z@phod.com', - name: 'zaphod', + mail: "z@phod.com", + name: "zaphod" }, - date: '2018-09-13T08:46:22Z', - description: 'added testChangeset', + date: "2018-09-13T08:46:22Z", + description: "added testChangeset", _links: {}, _embedded: { tags: [], - branches: [], - }, + branches: [] + } }; - it('should add changeset to state', () => { + it("should add changeset to state", () => { const newState = reducer( { - 'foo/bar': { + "foo/bar": { byId: { id2: { - id: 'id2', + id: "id2", author: { - mail: 'mail@author.com', - name: 'author', - }, - }, + mail: "mail@author.com", + name: "author" + } + } }, list: { entry: { page: 1, pageTotal: 10, - _links: {}, + _links: {} }, - entries: ['id2'], - }, - }, + entries: ["id2"] + } + } }, - fetchChangesetSuccess(responseBodySingleChangeset, repository, 'id3'), + fetchChangesetSuccess(responseBodySingleChangeset, repository, "id3") ); expect(newState).toBeDefined(); - expect(newState['foo/bar'].byId['id3'].description).toEqual( - 'added testChangeset', + expect(newState["foo/bar"].byId["id3"].description).toEqual( + "added testChangeset" ); - expect(newState['foo/bar'].byId['id3'].author.mail).toEqual('z@phod.com'); - expect(newState['foo/bar'].byId['id2']).toBeDefined(); - expect(newState['foo/bar'].byId['id3']).toBeDefined(); - expect(newState['foo/bar'].list).toEqual({ + expect(newState["foo/bar"].byId["id3"].author.mail).toEqual("z@phod.com"); + expect(newState["foo/bar"].byId["id2"]).toBeDefined(); + expect(newState["foo/bar"].byId["id3"]).toBeDefined(); + expect(newState["foo/bar"].list).toEqual({ entry: { page: 1, pageTotal: 10, - _links: {}, + _links: {} }, - entries: ['id2'], + entries: ["id2"] }); }); }); - describe('changeset selectors', () => { - const error = new Error('Something went wrong'); + describe("changeset selectors", () => { + const error = new Error("Something went wrong"); - it('should return changeset', () => { + it("should return changeset", () => { const state = { changesets: { - 'foo/bar': { + "foo/bar": { byId: { id1: { - id: 'id1', + id: "id1" }, id2: { - id: 'id2', - }, - }, - }, - }, + id: "id2" + } + } + } + } }; - const result = getChangeset(state, repository, 'id1'); + const result = getChangeset(state, repository, "id1"); expect(result).toEqual({ - id: 'id1', + id: "id1" }); }); - it('should return null if changeset does not exist', () => { + it("should return null if changeset does not exist", () => { const state = { changesets: { - 'foo/bar': { + "foo/bar": { byId: { id1: { - id: 'id1', + id: "id1" }, id2: { - id: 'id2', - }, - }, - }, - }, + id: "id2" + } + } + } + } }; - const result = getChangeset(state, repository, 'id3'); + const result = getChangeset(state, repository, "id3"); expect(result).toEqual(null); }); - it('should return true if changeset does not exist', () => { + it("should return true if changeset does not exist", () => { const state = { changesets: { - 'foo/bar': { + "foo/bar": { byId: { id1: { - id: 'id1', + id: "id1" }, id2: { - id: 'id2', - }, - }, - }, - }, + id: "id2" + } + } + } + } }; - const result = shouldFetchChangeset(state, repository, 'id3'); + const result = shouldFetchChangeset(state, repository, "id3"); expect(result).toEqual(true); }); - it('should return false if changeset exists', () => { + it("should return false if changeset exists", () => { const state = { changesets: { - 'foo/bar': { + "foo/bar": { byId: { id1: { - id: 'id1', + id: "id1" }, id2: { - id: 'id2', - }, - }, - }, - }, + id: "id2" + } + } + } + } }; - const result = shouldFetchChangeset(state, repository, 'id2'); + const result = shouldFetchChangeset(state, repository, "id2"); expect(result).toEqual(false); }); - it('should return true, when fetching changeset is pending', () => { + it("should return true, when fetching changeset is pending", () => { const state = { pending: { - [FETCH_CHANGESET + '/foo/bar/id1']: true, - }, + [FETCH_CHANGESET + "/foo/bar/id1"]: true + } }; - expect(isFetchChangesetPending(state, repository, 'id1')).toBeTruthy(); + expect(isFetchChangesetPending(state, repository, "id1")).toBeTruthy(); }); - it('should return false, when fetching changeset is not pending', () => { - expect(isFetchChangesetPending({}, repository, 'id1')).toEqual(false); + it("should return false, when fetching changeset is not pending", () => { + expect(isFetchChangesetPending({}, repository, "id1")).toEqual(false); }); - it('should return error if fetching changeset failed', () => { + it("should return error if fetching changeset failed", () => { const state = { failure: { - [FETCH_CHANGESET + '/foo/bar/id1']: error, - }, + [FETCH_CHANGESET + "/foo/bar/id1"]: error + } }; - expect(getFetchChangesetFailure(state, repository, 'id1')).toEqual(error); + expect(getFetchChangesetFailure(state, repository, "id1")).toEqual(error); }); - it('should return false if fetching changeset did not fail', () => { - expect(getFetchChangesetFailure({}, repository, 'id1')).toBeUndefined(); + it("should return false if fetching changeset did not fail", () => { + expect(getFetchChangesetFailure({}, repository, "id1")).toBeUndefined(); }); - it('should get all changesets for a given repository', () => { + it("should get all changesets for a given repository", () => { const state = { changesets: { - 'foo/bar': { + "foo/bar": { byId: { id2: { - id: 'id2', + id: "id2" }, id1: { - id: 'id1', - }, + id: "id1" + } }, byBranch: { - '': { - entries: ['id1', 'id2'], - }, - }, - }, - }, + "": { + entries: ["id1", "id2"] + } + } + } + } }; const result = getChangesets(state, repository); expect(result).toEqual([ { - id: 'id1', + id: "id1" }, { - id: 'id2', - }, + id: "id2" + } ]); }); - it('should return true, when fetching changesets is pending', () => { + it("should return true, when fetching changesets is pending", () => { const state = { pending: { - [FETCH_CHANGESETS + '/foo/bar']: true, - }, + [FETCH_CHANGESETS + "/foo/bar"]: true + } }; expect(isFetchChangesetsPending(state, repository)).toBeTruthy(); }); - it('should return false, when fetching changesets is not pending', () => { + it("should return false, when fetching changesets is not pending", () => { expect(isFetchChangesetsPending({}, repository)).toEqual(false); }); - it('should return error if fetching changesets failed', () => { + it("should return error if fetching changesets failed", () => { const state = { failure: { - [FETCH_CHANGESETS + '/foo/bar']: error, - }, + [FETCH_CHANGESETS + "/foo/bar"]: error + } }; expect(getFetchChangesetsFailure(state, repository)).toEqual(error); }); - it('should return false if fetching changesets did not fail', () => { + it("should return false if fetching changesets did not fail", () => { expect(getFetchChangesetsFailure({}, repository)).toBeUndefined(); }); - it('should return list as collection for the default branch', () => { + it("should return list as collection for the default branch", () => { const state = { changesets: { - 'foo/bar': { + "foo/bar": { byId: { id2: { - id: 'id2', + id: "id2" }, id1: { - id: 'id1', - }, + id: "id1" + } }, byBranch: { - '': { + "": { entry: { page: 1, pageTotal: 10, - _links: {}, + _links: {} }, - entries: ['id1', 'id2'], - }, - }, - }, - }, + entries: ["id1", "id2"] + } + } + } + } }; const collection = selectListAsCollection(state, repository); diff --git a/scm-ui/ui-webapp/src/repos/modules/changesets.ts b/scm-ui/ui-webapp/src/repos/modules/changesets.ts index 4118947720..2cc0d7c48e 100644 --- a/scm-ui/ui-webapp/src/repos/modules/changesets.ts +++ b/scm-ui/ui-webapp/src/repos/modules/changesets.ts @@ -1,24 +1,24 @@ import { FAILURE_SUFFIX, PENDING_SUFFIX, - SUCCESS_SUFFIX, -} from '../../modules/types'; -import { apiClient, urls } from '@scm-manager/ui-components'; -import { isPending } from '../../modules/pending'; -import { getFailure } from '../../modules/failure'; + SUCCESS_SUFFIX +} from "../../modules/types"; +import { apiClient, urls } from "@scm-manager/ui-components"; +import { isPending } from "../../modules/pending"; +import { getFailure } from "../../modules/failure"; import { Action, Branch, PagedCollection, - Repository, -} from '@scm-manager/ui-types'; + Repository +} from "@scm-manager/ui-types"; -export const FETCH_CHANGESETS = 'scm/repos/FETCH_CHANGESETS'; +export const FETCH_CHANGESETS = "scm/repos/FETCH_CHANGESETS"; export const FETCH_CHANGESETS_PENDING = `${FETCH_CHANGESETS}_${PENDING_SUFFIX}`; export const FETCH_CHANGESETS_SUCCESS = `${FETCH_CHANGESETS}_${SUCCESS_SUFFIX}`; export const FETCH_CHANGESETS_FAILURE = `${FETCH_CHANGESETS}_${FAILURE_SUFFIX}`; -export const FETCH_CHANGESET = 'scm/repos/FETCH_CHANGESET'; +export const FETCH_CHANGESET = "scm/repos/FETCH_CHANGESET"; export const FETCH_CHANGESET_PENDING = `${FETCH_CHANGESET}_${PENDING_SUFFIX}`; export const FETCH_CHANGESET_SUCCESS = `${FETCH_CHANGESET}_${SUCCESS_SUFFIX}`; export const FETCH_CHANGESET_FAILURE = `${FETCH_CHANGESET}_${FAILURE_SUFFIX}`; @@ -53,50 +53,50 @@ function createChangesetUrl(repository: Repository, id: string) { export function fetchChangesetPending( repository: Repository, - id: string, + id: string ): Action { return { type: FETCH_CHANGESET_PENDING, - itemId: createChangesetItemId(repository, id), + itemId: createChangesetItemId(repository, id) }; } export function fetchChangesetSuccess( changeset: any, repository: Repository, - id: string, + id: string ): Action { return { type: FETCH_CHANGESET_SUCCESS, payload: { changeset, repository, - id, + id }, - itemId: createChangesetItemId(repository, id), + itemId: createChangesetItemId(repository, id) }; } function fetchChangesetFailure( repository: Repository, id: string, - error: Error, + error: Error ): Action { return { type: FETCH_CHANGESET_FAILURE, payload: { repository, id, - error, + error }, - itemId: createChangesetItemId(repository, id), + itemId: createChangesetItemId(repository, id) }; } export function fetchChangesets( repository: Repository, branch?: Branch, - page?: number, + page?: number ) { const link = createChangesetsLink(repository, branch, page); @@ -117,7 +117,7 @@ export function fetchChangesets( function createChangesetsLink( repository: Repository, branch?: Branch, - page?: number, + page?: number ) { let link = repository._links.changesets.href; @@ -133,58 +133,58 @@ function createChangesetsLink( export function fetchChangesetsPending( repository: Repository, - branch?: Branch, + branch?: Branch ): Action { const itemId = createItemId(repository, branch); return { type: FETCH_CHANGESETS_PENDING, - itemId, + itemId }; } export function fetchChangesetsSuccess( repository: Repository, branch?: Branch, - changesets: any, + changesets: any ): Action { return { type: FETCH_CHANGESETS_SUCCESS, payload: { repository, branch, - changesets, + changesets }, - itemId: createItemId(repository, branch), + itemId: createItemId(repository, branch) }; } function fetchChangesetsFailure( repository: Repository, branch?: Branch, - error: Error, + error: Error ): Action { return { type: FETCH_CHANGESETS_FAILURE, payload: { repository, error, - branch, + branch }, - itemId: createItemId(repository, branch), + itemId: createItemId(repository, branch) }; } function createChangesetItemId(repository: Repository, id: string) { const { namespace, name } = repository; - return namespace + '/' + name + '/' + id; + return namespace + "/" + name + "/" + id; } function createItemId(repository: Repository, branch?: Branch): string { const { namespace, name } = repository; - let itemId = namespace + '/' + name; + let itemId = namespace + "/" + name; if (branch) { - itemId = itemId + '/' + branch.name; + itemId = itemId + "/" + branch.name; } return itemId; } @@ -193,8 +193,8 @@ function createItemId(repository: Repository, branch?: Branch): string { export default function reducer( state: any = {}, action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): object { if (!action.payload) { return state; @@ -218,9 +218,9 @@ export default function reducer( ...state[_key], byId: { ..._oldByIds, - [changeset.id]: changeset, - }, - }, + [changeset.id]: changeset + } + } }; case FETCH_CHANGESETS_SUCCESS: @@ -239,7 +239,7 @@ export default function reducer( oldState = state[repoId]; } - const branchName = payload.branch ? payload.branch.name : ''; + const branchName = payload.branch ? payload.branch.name : ""; const byIds = extractChangesetsByIds(changesets); return { @@ -247,7 +247,7 @@ export default function reducer( [repoId]: { byId: { ...oldState.byId, - ...byIds, + ...byIds }, byBranch: { ...oldState.byBranch, @@ -256,11 +256,11 @@ export default function reducer( entry: { page: payload.changesets.page, pageTotal: payload.changesets.pageTotal, - _links: payload.changesets._links, - }, - }, - }, - }, + _links: payload.changesets._links + } + } + } + } }; default: return state; @@ -281,7 +281,7 @@ function extractChangesetsByIds(changesets: any) { export function getChangesets( state: object, repository: Repository, - branch?: Branch, + branch?: Branch ) { const repoKey = createItemId(repository); @@ -290,7 +290,7 @@ export function getChangesets( return null; } - const branchName = branch ? branch.name : ''; + const branchName = branch ? branch.name : ""; const changesets = stateRoot.byBranch[branchName]; if (!changesets) { @@ -305,7 +305,7 @@ export function getChangesets( export function getChangeset( state: object, repository: Repository, - id: string, + id: string ) { const key = createItemId(repository); const changesets = @@ -321,7 +321,7 @@ export function getChangeset( export function shouldFetchChangeset( state: object, repository: Repository, - id: string, + id: string ) { if (getChangeset(state, repository, id)) { return false; @@ -332,31 +332,31 @@ export function shouldFetchChangeset( export function isFetchChangesetPending( state: object, repository: Repository, - id: string, + id: string ) { return isPending( state, FETCH_CHANGESET, - createChangesetItemId(repository, id), + createChangesetItemId(repository, id) ); } export function getFetchChangesetFailure( state: object, repository: Repository, - id: string, + id: string ) { return getFailure( state, FETCH_CHANGESET, - createChangesetItemId(repository, id), + createChangesetItemId(repository, id) ); } export function isFetchChangesetsPending( state: object, repository: Repository, - branch?: Branch, + branch?: Branch ) { return isPending(state, FETCH_CHANGESETS, createItemId(repository, branch)); } @@ -364,7 +364,7 @@ export function isFetchChangesetsPending( export function getFetchChangesetsFailure( state: object, repository: Repository, - branch?: Branch, + branch?: Branch ) { return getFailure(state, FETCH_CHANGESETS, createItemId(repository, branch)); } @@ -372,7 +372,7 @@ export function getFetchChangesetsFailure( const selectList = (state: object, repository: Repository, branch?: Branch) => { const repoId = createItemId(repository); - const branchName = branch ? branch.name : ''; + const branchName = branch ? branch.name : ""; if (state.changesets[repoId]) { const repoState = state.changesets[repoId]; @@ -386,7 +386,7 @@ const selectList = (state: object, repository: Repository, branch?: Branch) => { const selectListEntry = ( state: object, repository: Repository, - branch?: Branch, + branch?: Branch ): object => { const list = selectList(state, repository, branch); if (list.entry) { @@ -398,7 +398,7 @@ const selectListEntry = ( export const selectListAsCollection = ( state: object, repository: Repository, - branch?: Branch, + branch?: Branch ): PagedCollection => { return selectListEntry(state, repository, branch); }; diff --git a/scm-ui/ui-webapp/src/repos/modules/repos.test.ts b/scm-ui/ui-webapp/src/repos/modules/repos.test.ts index ae76645967..2c909712c2 100644 --- a/scm-ui/ui-webapp/src/repos/modules/repos.test.ts +++ b/scm-ui/ui-webapp/src/repos/modules/repos.test.ts @@ -1,6 +1,6 @@ -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import reducer, { FETCH_REPOS_PENDING, FETCH_REPOS_SUCCESS, @@ -45,125 +45,125 @@ import reducer, { MODIFY_REPO, isModifyRepoPending, getModifyRepoFailure, - getPermissionsLink, -} from './repos'; -import { Repository, RepositoryCollection } from '@scm-manager/ui-types'; + getPermissionsLink +} from "./repos"; +import { Repository, RepositoryCollection } from "@scm-manager/ui-types"; const hitchhikerPuzzle42: Repository = { - contact: 'fourtytwo@hitchhiker.com', - creationDate: '2018-07-31T08:58:45.961Z', - description: 'the answer to life the universe and everything', - namespace: 'hitchhiker', - name: 'puzzle42', - type: 'svn', + contact: "fourtytwo@hitchhiker.com", + creationDate: "2018-07-31T08:58:45.961Z", + description: "the answer to life the universe and everything", + namespace: "hitchhiker", + name: "puzzle42", + type: "svn", _links: { self: { - href: 'http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42', + href: "http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42" }, delete: { - href: 'http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42', + href: "http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42" }, update: { - href: 'http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42', + href: "http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42" }, permissions: { href: - 'http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42/permissions/', + "http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42/permissions/" }, tags: { href: - 'http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42/tags/', + "http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42/tags/" }, branches: { href: - 'http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42/branches/', + "http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42/branches/" }, changesets: { href: - 'http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42/changesets/', + "http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42/changesets/" }, sources: { href: - 'http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42/sources/', - }, - }, + "http://localhost:8081/api/v2/repositories/hitchhiker/puzzle42/sources/" + } + } }; const hitchhikerRestatend: Repository = { - contact: 'restatend@hitchhiker.com', - creationDate: '2018-07-31T08:58:32.803Z', - description: 'restaurant at the end of the universe', - namespace: 'hitchhiker', - name: 'restatend', - type: 'git', + contact: "restatend@hitchhiker.com", + creationDate: "2018-07-31T08:58:32.803Z", + description: "restaurant at the end of the universe", + namespace: "hitchhiker", + name: "restatend", + type: "git", _links: { self: { - href: 'http://localhost:8081/api/v2/repositories/hitchhiker/restatend', + href: "http://localhost:8081/api/v2/repositories/hitchhiker/restatend" }, delete: { - href: 'http://localhost:8081/api/v2/repositories/hitchhiker/restatend', + href: "http://localhost:8081/api/v2/repositories/hitchhiker/restatend" }, update: { - href: 'http://localhost:8081/api/v2/repositories/hitchhiker/restatend', + href: "http://localhost:8081/api/v2/repositories/hitchhiker/restatend" }, permissions: { href: - 'http://localhost:8081/api/v2/repositories/hitchhiker/restatend/permissions/', + "http://localhost:8081/api/v2/repositories/hitchhiker/restatend/permissions/" }, tags: { href: - 'http://localhost:8081/api/v2/repositories/hitchhiker/restatend/tags/', + "http://localhost:8081/api/v2/repositories/hitchhiker/restatend/tags/" }, branches: { href: - 'http://localhost:8081/api/v2/repositories/hitchhiker/restatend/branches/', + "http://localhost:8081/api/v2/repositories/hitchhiker/restatend/branches/" }, changesets: { href: - 'http://localhost:8081/api/v2/repositories/hitchhiker/restatend/changesets/', + "http://localhost:8081/api/v2/repositories/hitchhiker/restatend/changesets/" }, sources: { href: - 'http://localhost:8081/api/v2/repositories/hitchhiker/restatend/sources/', - }, - }, + "http://localhost:8081/api/v2/repositories/hitchhiker/restatend/sources/" + } + } }; const slartiFjords: Repository = { - contact: 'slartibartfast@hitchhiker.com', - description: 'My award-winning fjords from the Norwegian coast', - namespace: 'slarti', - name: 'fjords', - type: 'hg', - creationDate: '2018-07-31T08:59:05.653Z', + contact: "slartibartfast@hitchhiker.com", + description: "My award-winning fjords from the Norwegian coast", + namespace: "slarti", + name: "fjords", + type: "hg", + creationDate: "2018-07-31T08:59:05.653Z", _links: { self: { - href: 'http://localhost:8081/api/v2/repositories/slarti/fjords', + href: "http://localhost:8081/api/v2/repositories/slarti/fjords" }, delete: { - href: 'http://localhost:8081/api/v2/repositories/slarti/fjords', + href: "http://localhost:8081/api/v2/repositories/slarti/fjords" }, update: { - href: 'http://localhost:8081/api/v2/repositories/slarti/fjords', + href: "http://localhost:8081/api/v2/repositories/slarti/fjords" }, permissions: { href: - 'http://localhost:8081/api/v2/repositories/slarti/fjords/permissions/', + "http://localhost:8081/api/v2/repositories/slarti/fjords/permissions/" }, tags: { - href: 'http://localhost:8081/api/v2/repositories/slarti/fjords/tags/', + href: "http://localhost:8081/api/v2/repositories/slarti/fjords/tags/" }, branches: { - href: 'http://localhost:8081/api/v2/repositories/slarti/fjords/branches/', + href: "http://localhost:8081/api/v2/repositories/slarti/fjords/branches/" }, changesets: { href: - 'http://localhost:8081/api/v2/repositories/slarti/fjords/changesets/', + "http://localhost:8081/api/v2/repositories/slarti/fjords/changesets/" }, sources: { - href: 'http://localhost:8081/api/v2/repositories/slarti/fjords/sources/', - }, - }, + href: "http://localhost:8081/api/v2/repositories/slarti/fjords/sources/" + } + } }; const repositoryCollection: RepositoryCollection = { @@ -171,21 +171,21 @@ const repositoryCollection: RepositoryCollection = { pageTotal: 1, _links: { self: { - href: 'http://localhost:8081/api/v2/repositories/?page=0&pageSize=10', + href: "http://localhost:8081/api/v2/repositories/?page=0&pageSize=10" }, first: { - href: 'http://localhost:8081/api/v2/repositories/?page=0&pageSize=10', + href: "http://localhost:8081/api/v2/repositories/?page=0&pageSize=10" }, last: { - href: 'http://localhost:8081/api/v2/repositories/?page=0&pageSize=10', + href: "http://localhost:8081/api/v2/repositories/?page=0&pageSize=10" }, create: { - href: 'http://localhost:8081/api/v2/repositories/', - }, + href: "http://localhost:8081/api/v2/repositories/" + } }, _embedded: { - repositories: [hitchhikerPuzzle42, hitchhikerRestatend, slartiFjords], - }, + repositories: [hitchhikerPuzzle42, hitchhikerRestatend, slartiFjords] + } }; const repositoryCollectionWithNames: RepositoryCollection = { @@ -193,32 +193,32 @@ const repositoryCollectionWithNames: RepositoryCollection = { pageTotal: 1, _links: { self: { - href: 'http://localhost:8081/api/v2/repositories/?page=0&pageSize=10', + href: "http://localhost:8081/api/v2/repositories/?page=0&pageSize=10" }, first: { - href: 'http://localhost:8081/api/v2/repositories/?page=0&pageSize=10', + href: "http://localhost:8081/api/v2/repositories/?page=0&pageSize=10" }, last: { - href: 'http://localhost:8081/api/v2/repositories/?page=0&pageSize=10', + href: "http://localhost:8081/api/v2/repositories/?page=0&pageSize=10" }, create: { - href: 'http://localhost:8081/api/v2/repositories/', - }, + href: "http://localhost:8081/api/v2/repositories/" + } }, _embedded: { repositories: [ - 'hitchhiker/puzzle42', - 'hitchhiker/restatend', - 'slarti/fjords', - ], - }, + "hitchhiker/puzzle42", + "hitchhiker/restatend", + "slarti/fjords" + ] + } }; -describe('repos fetch', () => { - const URL = 'repositories'; - const REPOS_URL = '/api/v2/repositories'; - const SORT = 'sortBy=namespaceAndName'; - const REPOS_URL_WITH_SORT = REPOS_URL + '?' + SORT; +describe("repos fetch", () => { + const URL = "repositories"; + const REPOS_URL = "/api/v2/repositories"; + const SORT = "sortBy=namespaceAndName"; + const REPOS_URL_WITH_SORT = REPOS_URL + "?" + SORT; const mockStore = configureMockStore([thunk]); afterEach(() => { @@ -226,17 +226,17 @@ describe('repos fetch', () => { fetchMock.restore(); }); - it('should successfully fetch repos', () => { + it("should successfully fetch repos", () => { fetchMock.getOnce(REPOS_URL_WITH_SORT, repositoryCollection); const expectedActions = [ { - type: FETCH_REPOS_PENDING, + type: FETCH_REPOS_PENDING }, { type: FETCH_REPOS_SUCCESS, - payload: repositoryCollection, - }, + payload: repositoryCollection + } ]; const store = mockStore({}); @@ -245,18 +245,18 @@ describe('repos fetch', () => { }); }); - it('should successfully fetch page 42', () => { - const url = REPOS_URL + '?page=42&' + SORT; + it("should successfully fetch page 42", () => { + const url = REPOS_URL + "?page=42&" + SORT; fetchMock.getOnce(url, repositoryCollection); const expectedActions = [ { - type: FETCH_REPOS_PENDING, + type: FETCH_REPOS_PENDING }, { type: FETCH_REPOS_SUCCESS, - payload: repositoryCollection, - }, + payload: repositoryCollection + } ]; const store = mockStore({}); @@ -266,58 +266,58 @@ describe('repos fetch', () => { }); }); - it('should successfully fetch repos from link', () => { + it("should successfully fetch repos from link", () => { fetchMock.getOnce( - REPOS_URL + '?' + SORT + '&page=42', - repositoryCollection, + REPOS_URL + "?" + SORT + "&page=42", + repositoryCollection ); const expectedActions = [ { - type: FETCH_REPOS_PENDING, + type: FETCH_REPOS_PENDING }, { type: FETCH_REPOS_SUCCESS, - payload: repositoryCollection, - }, + payload: repositoryCollection + } ]; const store = mockStore({}); return store .dispatch( - fetchReposByLink('/repositories?sortBy=namespaceAndName&page=42'), + fetchReposByLink("/repositories?sortBy=namespaceAndName&page=42") ) .then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should append sortby parameter and successfully fetch repos from link', () => { + it("should append sortby parameter and successfully fetch repos from link", () => { fetchMock.getOnce( - '/api/v2/repositories?one=1&sortBy=namespaceAndName', - repositoryCollection, + "/api/v2/repositories?one=1&sortBy=namespaceAndName", + repositoryCollection ); const expectedActions = [ { - type: FETCH_REPOS_PENDING, + type: FETCH_REPOS_PENDING }, { type: FETCH_REPOS_SUCCESS, - payload: repositoryCollection, - }, + payload: repositoryCollection + } ]; const store = mockStore({}); - return store.dispatch(fetchReposByLink('/repositories?one=1')).then(() => { + return store.dispatch(fetchReposByLink("/repositories?one=1")).then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should dispatch FETCH_REPOS_FAILURE, it the request fails', () => { + it("should dispatch FETCH_REPOS_FAILURE, it the request fails", () => { fetchMock.getOnce(REPOS_URL_WITH_SORT, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -329,68 +329,68 @@ describe('repos fetch', () => { }); }); - it('should successfully fetch repo slarti/fjords by name', () => { - fetchMock.getOnce(REPOS_URL + '/slarti/fjords', slartiFjords); + it("should successfully fetch repo slarti/fjords by name", () => { + fetchMock.getOnce(REPOS_URL + "/slarti/fjords", slartiFjords); const expectedActions = [ { type: FETCH_REPO_PENDING, payload: { - namespace: 'slarti', - name: 'fjords', + namespace: "slarti", + name: "fjords" }, - itemId: 'slarti/fjords', + itemId: "slarti/fjords" }, { type: FETCH_REPO_SUCCESS, payload: slartiFjords, - itemId: 'slarti/fjords', - }, + itemId: "slarti/fjords" + } ]; const store = mockStore({}); - return store.dispatch(fetchRepoByName(URL, 'slarti', 'fjords')).then(() => { + return store.dispatch(fetchRepoByName(URL, "slarti", "fjords")).then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should dispatch FETCH_REPO_FAILURE, if the request for slarti/fjords by name fails', () => { - fetchMock.getOnce(REPOS_URL + '/slarti/fjords', { - status: 500, + it("should dispatch FETCH_REPO_FAILURE, if the request for slarti/fjords by name fails", () => { + fetchMock.getOnce(REPOS_URL + "/slarti/fjords", { + status: 500 }); const store = mockStore({}); - return store.dispatch(fetchRepoByName(URL, 'slarti', 'fjords')).then(() => { + return store.dispatch(fetchRepoByName(URL, "slarti", "fjords")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_REPO_PENDING); expect(actions[1].type).toEqual(FETCH_REPO_FAILURE); - expect(actions[1].payload.namespace).toBe('slarti'); - expect(actions[1].payload.name).toBe('fjords'); + expect(actions[1].payload.namespace).toBe("slarti"); + expect(actions[1].payload.name).toBe("fjords"); expect(actions[1].payload.error).toBeDefined(); - expect(actions[1].itemId).toBe('slarti/fjords'); + expect(actions[1].itemId).toBe("slarti/fjords"); }); }); - it('should successfully fetch repo slarti/fjords', () => { + it("should successfully fetch repo slarti/fjords", () => { fetchMock.getOnce( - 'http://localhost:8081/api/v2/repositories/slarti/fjords', - slartiFjords, + "http://localhost:8081/api/v2/repositories/slarti/fjords", + slartiFjords ); const expectedActions = [ { type: FETCH_REPO_PENDING, payload: { - namespace: 'slarti', - name: 'fjords', + namespace: "slarti", + name: "fjords" }, - itemId: 'slarti/fjords', + itemId: "slarti/fjords" }, { type: FETCH_REPO_SUCCESS, payload: slartiFjords, - itemId: 'slarti/fjords', - }, + itemId: "slarti/fjords" + } ]; const store = mockStore({}); @@ -399,12 +399,12 @@ describe('repos fetch', () => { }); }); - it('should dispatch FETCH_REPO_FAILURE, it the request for slarti/fjords fails', () => { + it("should dispatch FETCH_REPO_FAILURE, it the request for slarti/fjords fails", () => { fetchMock.getOnce( - 'http://localhost:8081/api/v2/repositories/slarti/fjords', + "http://localhost:8081/api/v2/repositories/slarti/fjords", { - status: 500, - }, + status: 500 + } ); const store = mockStore({}); @@ -412,30 +412,30 @@ describe('repos fetch', () => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_REPO_PENDING); expect(actions[1].type).toEqual(FETCH_REPO_FAILURE); - expect(actions[1].payload.namespace).toBe('slarti'); - expect(actions[1].payload.name).toBe('fjords'); + expect(actions[1].payload.namespace).toBe("slarti"); + expect(actions[1].payload.name).toBe("fjords"); expect(actions[1].payload.error).toBeDefined(); - expect(actions[1].itemId).toBe('slarti/fjords'); + expect(actions[1].itemId).toBe("slarti/fjords"); }); }); - it('should successfully create repo slarti/fjords', () => { + it("should successfully create repo slarti/fjords", () => { fetchMock.postOnce(REPOS_URL, { status: 201, headers: { - location: 'repositories/slarti/fjords', - }, + location: "repositories/slarti/fjords" + } }); - fetchMock.getOnce(REPOS_URL + '/slarti/fjords', slartiFjords); + fetchMock.getOnce(REPOS_URL + "/slarti/fjords", slartiFjords); const expectedActions = [ { - type: CREATE_REPO_PENDING, + type: CREATE_REPO_PENDING }, { - type: CREATE_REPO_SUCCESS, - }, + type: CREATE_REPO_SUCCESS + } ]; const store = mockStore({}); @@ -444,32 +444,32 @@ describe('repos fetch', () => { }); }); - it('should successfully create repo slarti/fjords and call the callback', () => { + it("should successfully create repo slarti/fjords and call the callback", () => { fetchMock.postOnce(REPOS_URL, { status: 201, headers: { - location: 'repositories/slarti/fjords', - }, + location: "repositories/slarti/fjords" + } }); - fetchMock.getOnce(REPOS_URL + '/slarti/fjords', slartiFjords); + fetchMock.getOnce(REPOS_URL + "/slarti/fjords", slartiFjords); - let callMe = 'not yet'; + let callMe = "not yet"; const callback = (r: any) => { expect(r).toEqual(slartiFjords); - callMe = 'yeah'; + callMe = "yeah"; }; const store = mockStore({}); return store.dispatch(createRepo(URL, slartiFjords, callback)).then(() => { - expect(callMe).toBe('yeah'); + expect(callMe).toBe("yeah"); }); }); - it('should dispatch failure if server returns status code 500', () => { + it("should dispatch failure if server returns status code 500", () => { fetchMock.postOnce(REPOS_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -481,25 +481,25 @@ describe('repos fetch', () => { }); }); - it('should successfully delete repo slarti/fjords', () => { + it("should successfully delete repo slarti/fjords", () => { fetchMock.delete( - 'http://localhost:8081/api/v2/repositories/slarti/fjords', + "http://localhost:8081/api/v2/repositories/slarti/fjords", { - status: 204, - }, + status: 204 + } ); const expectedActions = [ { type: DELETE_REPO_PENDING, payload: slartiFjords, - itemId: 'slarti/fjords', + itemId: "slarti/fjords" }, { type: DELETE_REPO_SUCCESS, payload: slartiFjords, - itemId: 'slarti/fjords', - }, + itemId: "slarti/fjords" + } ]; const store = mockStore({}); @@ -508,32 +508,32 @@ describe('repos fetch', () => { }); }); - it('should successfully delete repo slarti/fjords and call the callback', () => { + it("should successfully delete repo slarti/fjords and call the callback", () => { fetchMock.delete( - 'http://localhost:8081/api/v2/repositories/slarti/fjords', + "http://localhost:8081/api/v2/repositories/slarti/fjords", { - status: 204, - }, + status: 204 + } ); - let callMe = 'not yet'; + let callMe = "not yet"; const callback = () => { - callMe = 'yeah'; + callMe = "yeah"; }; const store = mockStore({}); return store.dispatch(deleteRepo(slartiFjords, callback)).then(() => { - expect(callMe).toBe('yeah'); + expect(callMe).toBe("yeah"); }); }); - it('should disapatch failure on delete, if server returns status code 500', () => { + it("should disapatch failure on delete, if server returns status code 500", () => { fetchMock.delete( - 'http://localhost:8081/api/v2/repositories/slarti/fjords', + "http://localhost:8081/api/v2/repositories/slarti/fjords", { - status: 500, - }, + status: 500 + } ); const store = mockStore({}); @@ -546,21 +546,21 @@ describe('repos fetch', () => { }); }); - it('should successfully modify slarti/fjords repo', () => { + it("should successfully modify slarti/fjords repo", () => { fetchMock.putOnce(slartiFjords._links.update.href, { - status: 204, + status: 204 }); fetchMock.getOnce( - 'http://localhost:8081/api/v2/repositories/slarti/fjords', + "http://localhost:8081/api/v2/repositories/slarti/fjords", { - status: 500, - }, + status: 500 + } ); let editedFjords = { - ...slartiFjords, + ...slartiFjords }; - editedFjords.description = 'coast of africa'; + editedFjords.description = "coast of africa"; const store = mockStore({}); @@ -572,21 +572,21 @@ describe('repos fetch', () => { }); }); - it('should successfully modify slarti/fjords repo and call the callback', () => { + it("should successfully modify slarti/fjords repo and call the callback", () => { fetchMock.putOnce(slartiFjords._links.update.href, { - status: 204, + status: 204 }); fetchMock.getOnce( - 'http://localhost:8081/api/v2/repositories/slarti/fjords', + "http://localhost:8081/api/v2/repositories/slarti/fjords", { - status: 500, - }, + status: 500 + } ); let editedFjords = { - ...slartiFjords, + ...slartiFjords }; - editedFjords.description = 'coast of africa'; + editedFjords.description = "coast of africa"; const store = mockStore({}); @@ -604,15 +604,15 @@ describe('repos fetch', () => { }); }); - it('should fail modifying on HTTP 500', () => { + it("should fail modifying on HTTP 500", () => { fetchMock.putOnce(slartiFjords._links.update.href, { - status: 500, + status: 500 }); let editedFjords = { - ...slartiFjords, + ...slartiFjords }; - editedFjords.description = 'coast of africa'; + editedFjords.description = "coast of africa"; const store = mockStore({}); @@ -625,26 +625,26 @@ describe('repos fetch', () => { }); }); -describe('repos reducer', () => { - it('should return empty object, if state and action is undefined', () => { +describe("repos reducer", () => { + it("should return empty object, if state and action is undefined", () => { expect(reducer()).toEqual({}); }); - it('should return the same state, if the action is undefined', () => { + it("should return the same state, if the action is undefined", () => { const state = { - x: true, + x: true }; expect(reducer(state)).toBe(state); }); - it('should return the same state, if the action is unknown to the reducer', () => { + it("should return the same state, if the action is unknown to the reducer", () => { const state = { - x: true, + x: true }; expect( reducer(state, { - type: 'EL_SPECIALE', - }), + type: "EL_SPECIALE" + }) ).toBe(state); }); @@ -653,224 +653,224 @@ describe('repos reducer', () => { expect(newState.list.page).toBe(0); expect(newState.list.pageTotal).toBe(1); expect(newState.list._embedded.repositories).toEqual([ - 'hitchhiker/puzzle42', - 'hitchhiker/restatend', - 'slarti/fjords', + "hitchhiker/puzzle42", + "hitchhiker/restatend", + "slarti/fjords" ]); - expect(newState.byNames['hitchhiker/puzzle42']).toBe(hitchhikerPuzzle42); - expect(newState.byNames['hitchhiker/restatend']).toBe(hitchhikerRestatend); - expect(newState.byNames['slarti/fjords']).toBe(slartiFjords); + expect(newState.byNames["hitchhiker/puzzle42"]).toBe(hitchhikerPuzzle42); + expect(newState.byNames["hitchhiker/restatend"]).toBe(hitchhikerRestatend); + expect(newState.byNames["slarti/fjords"]).toBe(slartiFjords); }); - it('should store the repo at byNames', () => { + it("should store the repo at byNames", () => { const newState = reducer({}, fetchRepoSuccess(slartiFjords)); - expect(newState.byNames['slarti/fjords']).toBe(slartiFjords); + expect(newState.byNames["slarti/fjords"]).toBe(slartiFjords); }); }); -describe('repos selectors', () => { - const error = new Error('something goes wrong'); +describe("repos selectors", () => { + const error = new Error("something goes wrong"); - it('should return the repositories collection', () => { + it("should return the repositories collection", () => { const state = { repos: { list: repositoryCollectionWithNames, byNames: { - 'hitchhiker/puzzle42': hitchhikerPuzzle42, - 'hitchhiker/restatend': hitchhikerRestatend, - 'slarti/fjords': slartiFjords, - }, - }, + "hitchhiker/puzzle42": hitchhikerPuzzle42, + "hitchhiker/restatend": hitchhikerRestatend, + "slarti/fjords": slartiFjords + } + } }; const collection = getRepositoryCollection(state); expect(collection).toEqual(repositoryCollection); }); - it('should return true, when fetch repos is pending', () => { + it("should return true, when fetch repos is pending", () => { const state = { pending: { - [FETCH_REPOS]: true, - }, + [FETCH_REPOS]: true + } }; expect(isFetchReposPending(state)).toEqual(true); }); - it('should return false, when fetch repos is not pending', () => { + it("should return false, when fetch repos is not pending", () => { expect(isFetchReposPending({})).toEqual(false); }); - it('should return error when fetch repos did fail', () => { + it("should return error when fetch repos did fail", () => { const state = { failure: { - [FETCH_REPOS]: error, - }, + [FETCH_REPOS]: error + } }; expect(getFetchReposFailure(state)).toEqual(error); }); - it('should return undefined when fetch repos did not fail', () => { + it("should return undefined when fetch repos did not fail", () => { expect(getFetchReposFailure({})).toBe(undefined); }); - it('should return the repository collection', () => { + it("should return the repository collection", () => { const state = { repos: { byNames: { - 'slarti/fjords': slartiFjords, - }, - }, + "slarti/fjords": slartiFjords + } + } }; - const repository = getRepository(state, 'slarti', 'fjords'); + const repository = getRepository(state, "slarti", "fjords"); expect(repository).toEqual(slartiFjords); }); - it('should return permissions link', () => { + it("should return permissions link", () => { const state = { repos: { byNames: { - 'slarti/fjords': slartiFjords, - }, - }, + "slarti/fjords": slartiFjords + } + } }; - const link = getPermissionsLink(state, 'slarti', 'fjords'); + const link = getPermissionsLink(state, "slarti", "fjords"); expect(link).toEqual( - 'http://localhost:8081/api/v2/repositories/slarti/fjords/permissions/', + "http://localhost:8081/api/v2/repositories/slarti/fjords/permissions/" ); }); - it('should return true, when fetch repo is pending', () => { + it("should return true, when fetch repo is pending", () => { const state = { pending: { - [FETCH_REPO + '/slarti/fjords']: true, - }, + [FETCH_REPO + "/slarti/fjords"]: true + } }; - expect(isFetchRepoPending(state, 'slarti', 'fjords')).toEqual(true); + expect(isFetchRepoPending(state, "slarti", "fjords")).toEqual(true); }); - it('should return false, when fetch repo is not pending', () => { - expect(isFetchRepoPending({}, 'slarti', 'fjords')).toEqual(false); + it("should return false, when fetch repo is not pending", () => { + expect(isFetchRepoPending({}, "slarti", "fjords")).toEqual(false); }); - it('should return error when fetch repo did fail', () => { + it("should return error when fetch repo did fail", () => { const state = { failure: { - [FETCH_REPO + '/slarti/fjords']: error, - }, + [FETCH_REPO + "/slarti/fjords"]: error + } }; - expect(getFetchRepoFailure(state, 'slarti', 'fjords')).toEqual(error); + expect(getFetchRepoFailure(state, "slarti", "fjords")).toEqual(error); }); - it('should return undefined when fetch repo did not fail', () => { - expect(getFetchRepoFailure({}, 'slarti', 'fjords')).toBe(undefined); + it("should return undefined when fetch repo did not fail", () => { + expect(getFetchRepoFailure({}, "slarti", "fjords")).toBe(undefined); }); // create - it('should return true, when create repo is pending', () => { + it("should return true, when create repo is pending", () => { const state = { pending: { - [CREATE_REPO]: true, - }, + [CREATE_REPO]: true + } }; expect(isCreateRepoPending(state)).toEqual(true); }); - it('should return false, when create repo is not pending', () => { + it("should return false, when create repo is not pending", () => { expect(isCreateRepoPending({})).toEqual(false); }); - it('should return error when create repo did fail', () => { + it("should return error when create repo did fail", () => { const state = { failure: { - [CREATE_REPO]: error, - }, + [CREATE_REPO]: error + } }; expect(getCreateRepoFailure(state)).toEqual(error); }); - it('should return undefined when create repo did not fail', () => { + it("should return undefined when create repo did not fail", () => { expect(getCreateRepoFailure({})).toBe(undefined); }); // modify - it('should return true, when modify repo is pending', () => { + it("should return true, when modify repo is pending", () => { const state = { pending: { - [MODIFY_REPO + '/slarti/fjords']: true, - }, + [MODIFY_REPO + "/slarti/fjords"]: true + } }; - expect(isModifyRepoPending(state, 'slarti', 'fjords')).toEqual(true); + expect(isModifyRepoPending(state, "slarti", "fjords")).toEqual(true); }); - it('should return false, when modify repo is not pending', () => { - expect(isModifyRepoPending({}, 'slarti', 'fjords')).toEqual(false); + it("should return false, when modify repo is not pending", () => { + expect(isModifyRepoPending({}, "slarti", "fjords")).toEqual(false); }); - it('should return error, when modify repo failed', () => { + it("should return error, when modify repo failed", () => { const state = { failure: { - [MODIFY_REPO + '/slarti/fjords']: error, - }, + [MODIFY_REPO + "/slarti/fjords"]: error + } }; - expect(getModifyRepoFailure(state, 'slarti', 'fjords')).toEqual(error); + expect(getModifyRepoFailure(state, "slarti", "fjords")).toEqual(error); }); - it('should return undefined, when modify did not fail', () => { - expect(getModifyRepoFailure({}, 'slarti', 'fjords')).toBeUndefined(); + it("should return undefined, when modify did not fail", () => { + expect(getModifyRepoFailure({}, "slarti", "fjords")).toBeUndefined(); }); // delete - it('should return true, when delete repo is pending', () => { + it("should return true, when delete repo is pending", () => { const state = { pending: { - [DELETE_REPO + '/slarti/fjords']: true, - }, + [DELETE_REPO + "/slarti/fjords"]: true + } }; - expect(isDeleteRepoPending(state, 'slarti', 'fjords')).toEqual(true); + expect(isDeleteRepoPending(state, "slarti", "fjords")).toEqual(true); }); - it('should return false, when delete repo is not pending', () => { - expect(isDeleteRepoPending({}, 'slarti', 'fjords')).toEqual(false); + it("should return false, when delete repo is not pending", () => { + expect(isDeleteRepoPending({}, "slarti", "fjords")).toEqual(false); }); - it('should return error when delete repo did fail', () => { + it("should return error when delete repo did fail", () => { const state = { failure: { - [DELETE_REPO + '/slarti/fjords']: error, - }, + [DELETE_REPO + "/slarti/fjords"]: error + } }; - expect(getDeleteRepoFailure(state, 'slarti', 'fjords')).toEqual(error); + expect(getDeleteRepoFailure(state, "slarti", "fjords")).toEqual(error); }); - it('should return undefined when delete repo did not fail', () => { - expect(getDeleteRepoFailure({}, 'slarti', 'fjords')).toBe(undefined); + it("should return undefined when delete repo did not fail", () => { + expect(getDeleteRepoFailure({}, "slarti", "fjords")).toBe(undefined); }); - it('should return true if the list contains the create link', () => { + it("should return true if the list contains the create link", () => { const state = { repos: { - list: repositoryCollection, - }, + list: repositoryCollection + } }; expect(isAbleToCreateRepos(state)).toBe(true); }); - it('should return false, if create link is unavailable', () => { + it("should return false, if create link is unavailable", () => { const state = { repos: { list: { - _links: {}, - }, - }, + _links: {} + } + } }; expect(isAbleToCreateRepos(state)).toBe(false); diff --git a/scm-ui/ui-webapp/src/repos/modules/repos.ts b/scm-ui/ui-webapp/src/repos/modules/repos.ts index 0026d24f6a..1f5b62b291 100644 --- a/scm-ui/ui-webapp/src/repos/modules/repos.ts +++ b/scm-ui/ui-webapp/src/repos/modules/repos.ts @@ -1,45 +1,45 @@ -import { apiClient } from '@scm-manager/ui-components'; -import * as types from '../../modules/types'; +import { apiClient } from "@scm-manager/ui-components"; +import * as types from "../../modules/types"; import { Action, Repository, - RepositoryCollection, -} from '@scm-manager/ui-types'; -import { isPending } from '../../modules/pending'; -import { getFailure } from '../../modules/failure'; + RepositoryCollection +} from "@scm-manager/ui-types"; +import { isPending } from "../../modules/pending"; +import { getFailure } from "../../modules/failure"; -export const FETCH_REPOS = 'scm/repos/FETCH_REPOS'; +export const FETCH_REPOS = "scm/repos/FETCH_REPOS"; export const FETCH_REPOS_PENDING = `${FETCH_REPOS}_${types.PENDING_SUFFIX}`; export const FETCH_REPOS_SUCCESS = `${FETCH_REPOS}_${types.SUCCESS_SUFFIX}`; export const FETCH_REPOS_FAILURE = `${FETCH_REPOS}_${types.FAILURE_SUFFIX}`; -export const FETCH_REPO = 'scm/repos/FETCH_REPO'; +export const FETCH_REPO = "scm/repos/FETCH_REPO"; export const FETCH_REPO_PENDING = `${FETCH_REPO}_${types.PENDING_SUFFIX}`; export const FETCH_REPO_SUCCESS = `${FETCH_REPO}_${types.SUCCESS_SUFFIX}`; export const FETCH_REPO_FAILURE = `${FETCH_REPO}_${types.FAILURE_SUFFIX}`; -export const CREATE_REPO = 'scm/repos/CREATE_REPO'; +export const CREATE_REPO = "scm/repos/CREATE_REPO"; export const CREATE_REPO_PENDING = `${CREATE_REPO}_${types.PENDING_SUFFIX}`; export const CREATE_REPO_SUCCESS = `${CREATE_REPO}_${types.SUCCESS_SUFFIX}`; export const CREATE_REPO_FAILURE = `${CREATE_REPO}_${types.FAILURE_SUFFIX}`; export const CREATE_REPO_RESET = `${CREATE_REPO}_${types.RESET_SUFFIX}`; -export const MODIFY_REPO = 'scm/repos/MODIFY_REPO'; +export const MODIFY_REPO = "scm/repos/MODIFY_REPO"; export const MODIFY_REPO_PENDING = `${MODIFY_REPO}_${types.PENDING_SUFFIX}`; export const MODIFY_REPO_SUCCESS = `${MODIFY_REPO}_${types.SUCCESS_SUFFIX}`; export const MODIFY_REPO_FAILURE = `${MODIFY_REPO}_${types.FAILURE_SUFFIX}`; export const MODIFY_REPO_RESET = `${MODIFY_REPO}_${types.RESET_SUFFIX}`; -export const DELETE_REPO = 'scm/repos/DELETE_REPO'; +export const DELETE_REPO = "scm/repos/DELETE_REPO"; export const DELETE_REPO_PENDING = `${DELETE_REPO}_${types.PENDING_SUFFIX}`; export const DELETE_REPO_SUCCESS = `${DELETE_REPO}_${types.SUCCESS_SUFFIX}`; export const DELETE_REPO_FAILURE = `${DELETE_REPO}_${types.FAILURE_SUFFIX}`; -const CONTENT_TYPE = 'application/vnd.scmm-repository+json;v=2'; +const CONTENT_TYPE = "application/vnd.scmm-repository+json;v=2"; // fetch repos -const SORT_BY = 'sortBy=namespaceAndName'; +const SORT_BY = "sortBy=namespaceAndName"; export function fetchRepos(link: string) { return fetchReposByLink(link); @@ -48,7 +48,7 @@ export function fetchRepos(link: string) { export function fetchReposByPage(link: string, page: number, filter?: string) { if (filter) { return fetchReposByLink( - `${link}?page=${page - 1}&q=${decodeURIComponent(filter)}`, + `${link}?page=${page - 1}&q=${decodeURIComponent(filter)}` ); } return fetchReposByLink(`${link}?page=${page - 1}`); @@ -59,10 +59,10 @@ function appendSortByLink(url: string) { return url; } let urlWithSortBy = url; - if (url.includes('?')) { - urlWithSortBy += '&'; + if (url.includes("?")) { + urlWithSortBy += "&"; } else { - urlWithSortBy += '?'; + urlWithSortBy += "?"; } return urlWithSortBy + SORT_BY; } @@ -85,21 +85,21 @@ export function fetchReposByLink(link: string) { export function fetchReposPending(): Action { return { - type: FETCH_REPOS_PENDING, + type: FETCH_REPOS_PENDING }; } export function fetchReposSuccess(repositories: RepositoryCollection): Action { return { type: FETCH_REPOS_SUCCESS, - payload: repositories, + payload: repositories }; } export function fetchReposFailure(err: Error): Action { return { type: FETCH_REPOS_FAILURE, - payload: err, + payload: err }; } @@ -109,7 +109,7 @@ export function fetchRepoByLink(repo: Repository) { } export function fetchRepoByName(link: string, namespace: string, name: string) { - const repoUrl = link.endsWith('/') ? link : link + '/'; + const repoUrl = link.endsWith("/") ? link : link + "/"; return fetchRepo(`${repoUrl}${namespace}/${name}`, namespace, name); } @@ -133,9 +133,9 @@ export function fetchRepoPending(namespace: string, name: string): Action { type: FETCH_REPO_PENDING, payload: { namespace, - name, + name }, - itemId: namespace + '/' + name, + itemId: namespace + "/" + name }; } @@ -143,23 +143,23 @@ export function fetchRepoSuccess(repository: Repository): Action { return { type: FETCH_REPO_SUCCESS, payload: repository, - itemId: createIdentifier(repository), + itemId: createIdentifier(repository) }; } export function fetchRepoFailure( namespace: string, name: string, - error: Error, + error: Error ): Action { return { type: FETCH_REPO_FAILURE, payload: { namespace, name, - error, + error }, - itemId: namespace + '/' + name, + itemId: namespace + "/" + name }; } @@ -168,14 +168,14 @@ export function fetchRepoFailure( export function createRepo( link: string, repository: Repository, - callback?: (repo: Repository) => void, + callback?: (repo: Repository) => void ) { return function(dispatch: any) { dispatch(createRepoPending()); return apiClient .post(link, repository, CONTENT_TYPE) .then(response => { - const location = response.headers.get('Location'); + const location = response.headers.get("Location"); dispatch(createRepoSuccess()); return apiClient.get(location); }) @@ -193,26 +193,26 @@ export function createRepo( export function createRepoPending(): Action { return { - type: CREATE_REPO_PENDING, + type: CREATE_REPO_PENDING }; } export function createRepoSuccess(): Action { return { - type: CREATE_REPO_SUCCESS, + type: CREATE_REPO_SUCCESS }; } export function createRepoFailure(err: Error): Action { return { type: CREATE_REPO_FAILURE, - payload: err, + payload: err }; } export function createRepoReset(): Action { return { - type: CREATE_REPO_RESET, + type: CREATE_REPO_RESET }; } @@ -243,7 +243,7 @@ export function modifyRepoPending(repository: Repository): Action { return { type: MODIFY_REPO_PENDING, payload: repository, - itemId: createIdentifier(repository), + itemId: createIdentifier(repository) }; } @@ -251,21 +251,21 @@ export function modifyRepoSuccess(repository: Repository): Action { return { type: MODIFY_REPO_SUCCESS, payload: repository, - itemId: createIdentifier(repository), + itemId: createIdentifier(repository) }; } export function modifyRepoFailure( repository: Repository, - error: Error, + error: Error ): Action { return { type: MODIFY_REPO_FAILURE, payload: { error, - repository, + repository }, - itemId: createIdentifier(repository), + itemId: createIdentifier(repository) }; } @@ -273,9 +273,9 @@ export function modifyRepoReset(repository: Repository): Action { return { type: MODIFY_REPO_RESET, payload: { - repository, + repository }, - itemId: createIdentifier(repository), + itemId: createIdentifier(repository) }; } @@ -302,7 +302,7 @@ export function deleteRepoPending(repository: Repository): Action { return { type: DELETE_REPO_PENDING, payload: repository, - itemId: createIdentifier(repository), + itemId: createIdentifier(repository) }; } @@ -310,32 +310,32 @@ export function deleteRepoSuccess(repository: Repository): Action { return { type: DELETE_REPO_SUCCESS, payload: repository, - itemId: createIdentifier(repository), + itemId: createIdentifier(repository) }; } export function deleteRepoFailure( repository: Repository, - error: Error, + error: Error ): Action { return { type: DELETE_REPO_FAILURE, payload: { error, - repository, + repository }, - itemId: createIdentifier(repository), + itemId: createIdentifier(repository) }; } // reducer function createIdentifier(repository: Repository) { - return repository.namespace + '/' + repository.name; + return repository.namespace + "/" + repository.name; } function normalizeByNamespaceAndName( - repositoryCollection: RepositoryCollection, + repositoryCollection: RepositoryCollection ) { const names = []; const byNames = {}; @@ -348,10 +348,10 @@ function normalizeByNamespaceAndName( list: { ...repositoryCollection, _embedded: { - repositories: names, - }, + repositories: names + } }, - byNames: byNames, + byNames: byNames }; } @@ -361,16 +361,16 @@ const reducerByNames = (state: object, repository: Repository) => { ...state, byNames: { ...state.byNames, - [identifier]: repository, - }, + [identifier]: repository + } }; }; export default function reducer( state: object = {}, action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): object { if (!action.payload) { return state; @@ -397,8 +397,8 @@ export function getRepositoryCollection(state: object) { return { ...state.repos.list, _embedded: { - repositories, - }, + repositories + } }; } } @@ -413,24 +413,24 @@ export function getFetchReposFailure(state: object) { export function getRepository(state: object, namespace: string, name: string) { if (state.repos && state.repos.byNames) { - return state.repos.byNames[namespace + '/' + name]; + return state.repos.byNames[namespace + "/" + name]; } } export function isFetchRepoPending( state: object, namespace: string, - name: string, + name: string ) { - return isPending(state, FETCH_REPO, namespace + '/' + name); + return isPending(state, FETCH_REPO, namespace + "/" + name); } export function getFetchRepoFailure( state: object, namespace: string, - name: string, + name: string ) { - return getFailure(state, FETCH_REPO, namespace + '/' + name); + return getFailure(state, FETCH_REPO, namespace + "/" + name); } export function isAbleToCreateRepos(state: object) { @@ -453,39 +453,39 @@ export function getCreateRepoFailure(state: object) { export function isModifyRepoPending( state: object, namespace: string, - name: string, + name: string ) { - return isPending(state, MODIFY_REPO, namespace + '/' + name); + return isPending(state, MODIFY_REPO, namespace + "/" + name); } export function getModifyRepoFailure( state: object, namespace: string, - name: string, + name: string ) { - return getFailure(state, MODIFY_REPO, namespace + '/' + name); + return getFailure(state, MODIFY_REPO, namespace + "/" + name); } export function isDeleteRepoPending( state: object, namespace: string, - name: string, + name: string ) { - return isPending(state, DELETE_REPO, namespace + '/' + name); + return isPending(state, DELETE_REPO, namespace + "/" + name); } export function getDeleteRepoFailure( state: object, namespace: string, - name: string, + name: string ) { - return getFailure(state, DELETE_REPO, namespace + '/' + name); + return getFailure(state, DELETE_REPO, namespace + "/" + name); } export function getPermissionsLink( state: object, namespace: string, - name: string, + name: string ) { const repo = getRepository(state, namespace, name); return repo && repo._links ? repo._links.permissions.href : undefined; diff --git a/scm-ui/ui-webapp/src/repos/modules/repositoryTypes.test.ts b/scm-ui/ui-webapp/src/repos/modules/repositoryTypes.test.ts index 8ebe597f43..94dac9e563 100644 --- a/scm-ui/ui-webapp/src/repos/modules/repositoryTypes.test.ts +++ b/scm-ui/ui-webapp/src/repos/modules/repositoryTypes.test.ts @@ -1,6 +1,6 @@ -import fetchMock from 'fetch-mock'; -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; +import fetchMock from "fetch-mock"; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; import { FETCH_REPOSITORY_TYPES, FETCH_REPOSITORY_TYPES_FAILURE, @@ -11,91 +11,91 @@ import { getFetchRepositoryTypesFailure, getRepositoryTypes, isFetchRepositoryTypesPending, - shouldFetchRepositoryTypes, -} from './repositoryTypes'; -import reducer from './repositoryTypes'; + shouldFetchRepositoryTypes +} from "./repositoryTypes"; +import reducer from "./repositoryTypes"; const git = { - name: 'git', - displayName: 'Git', + name: "git", + displayName: "Git", _links: { self: { - href: 'http://localhost:8081/api/v2/repositoryTypes/git', - }, - }, + href: "http://localhost:8081/api/v2/repositoryTypes/git" + } + } }; const hg = { - name: 'hg', - displayName: 'Mercurial', + name: "hg", + displayName: "Mercurial", _links: { self: { - href: 'http://localhost:8081/api/v2/repositoryTypes/hg', - }, - }, + href: "http://localhost:8081/api/v2/repositoryTypes/hg" + } + } }; const svn = { - name: 'svn', - displayName: 'Subversion', + name: "svn", + displayName: "Subversion", _links: { self: { - href: 'http://localhost:8081/api/v2/repositoryTypes/svn', - }, - }, + href: "http://localhost:8081/api/v2/repositoryTypes/svn" + } + } }; const collection = { _embedded: { - repositoryTypes: [git, hg, svn], + repositoryTypes: [git, hg, svn] }, _links: { self: { - href: 'http://localhost:8081/api/v2/repositoryTypes', - }, - }, + href: "http://localhost:8081/api/v2/repositoryTypes" + } + } }; -describe('repository types caching', () => { - it('should fetch repository types, on empty state', () => { +describe("repository types caching", () => { + it("should fetch repository types, on empty state", () => { expect(shouldFetchRepositoryTypes({})).toBe(true); }); - it('should fetch repository types, if the state contains an empty array', () => { + it("should fetch repository types, if the state contains an empty array", () => { const state = { - repositoryTypes: [], + repositoryTypes: [] }; expect(shouldFetchRepositoryTypes(state)).toBe(true); }); - it('should not fetch repository types, on pending state', () => { + it("should not fetch repository types, on pending state", () => { const state = { pending: { - [FETCH_REPOSITORY_TYPES]: true, - }, + [FETCH_REPOSITORY_TYPES]: true + } }; expect(shouldFetchRepositoryTypes(state)).toBe(false); }); - it('should not fetch repository types, on failure state', () => { + it("should not fetch repository types, on failure state", () => { const state = { failure: { - [FETCH_REPOSITORY_TYPES]: new Error('no...'), - }, + [FETCH_REPOSITORY_TYPES]: new Error("no...") + } }; expect(shouldFetchRepositoryTypes(state)).toBe(false); }); - it('should not fetch repository types, if they are already fetched', () => { + it("should not fetch repository types, if they are already fetched", () => { const state = { - repositoryTypes: [git, hg, svn], + repositoryTypes: [git, hg, svn] }; expect(shouldFetchRepositoryTypes(state)).toBe(false); }); }); -describe('repository types fetch', () => { - const URL = '/api/v2/repositoryTypes'; +describe("repository types fetch", () => { + const URL = "/api/v2/repositoryTypes"; const mockStore = configureMockStore([thunk]); afterEach(() => { @@ -103,17 +103,17 @@ describe('repository types fetch', () => { fetchMock.restore(); }); - it('should successfully fetch repository types', () => { + it("should successfully fetch repository types", () => { fetchMock.getOnce(URL, collection); const expectedActions = [ { - type: FETCH_REPOSITORY_TYPES_PENDING, + type: FETCH_REPOSITORY_TYPES_PENDING }, { type: FETCH_REPOSITORY_TYPES_SUCCESS, - payload: collection, - }, + payload: collection + } ]; const store = mockStore({}); @@ -122,9 +122,9 @@ describe('repository types fetch', () => { }); }); - it('should dispatch FETCH_REPOSITORY_TYPES_FAILURE on server error', () => { + it("should dispatch FETCH_REPOSITORY_TYPES_FAILURE on server error", () => { fetchMock.getOnce(URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -136,63 +136,63 @@ describe('repository types fetch', () => { }); }); - it('should dispatch not dispatch any action, if the repository types are already fetched', () => { + it("should dispatch not dispatch any action, if the repository types are already fetched", () => { const store = mockStore({ - repositoryTypes: [git, hg, svn], + repositoryTypes: [git, hg, svn] }); store.dispatch(fetchRepositoryTypesIfNeeded()); expect(store.getActions().length).toBe(0); }); }); -describe('repository types reducer', () => { - it('should return unmodified state on unknown action', () => { +describe("repository types reducer", () => { + it("should return unmodified state on unknown action", () => { const state = []; expect(reducer(state)).toBe(state); }); - it('should store the repository types on FETCH_REPOSITORY_TYPES_SUCCESS', () => { + it("should store the repository types on FETCH_REPOSITORY_TYPES_SUCCESS", () => { const newState = reducer([], fetchRepositoryTypesSuccess(collection)); expect(newState).toEqual([git, hg, svn]); }); }); -describe('repository types selectors', () => { - const error = new Error('The end of the universe'); +describe("repository types selectors", () => { + const error = new Error("The end of the universe"); - it('should return an emtpy array', () => { + it("should return an emtpy array", () => { expect(getRepositoryTypes({})).toEqual([]); }); - it('should return the repository types', () => { + it("should return the repository types", () => { const state = { - repositoryTypes: [git, hg, svn], + repositoryTypes: [git, hg, svn] }; expect(getRepositoryTypes(state)).toEqual([git, hg, svn]); }); - it('should return true, when fetch repository types is pending', () => { + it("should return true, when fetch repository types is pending", () => { const state = { pending: { - [FETCH_REPOSITORY_TYPES]: true, - }, + [FETCH_REPOSITORY_TYPES]: true + } }; expect(isFetchRepositoryTypesPending(state)).toEqual(true); }); - it('should return false, when fetch repos is not pending', () => { + it("should return false, when fetch repos is not pending", () => { expect(isFetchRepositoryTypesPending({})).toEqual(false); }); - it('should return error when fetch repository types did fail', () => { + it("should return error when fetch repository types did fail", () => { const state = { failure: { - [FETCH_REPOSITORY_TYPES]: error, - }, + [FETCH_REPOSITORY_TYPES]: error + } }; expect(getFetchRepositoryTypesFailure(state)).toEqual(error); }); - it('should return undefined when fetch repos did not fail', () => { + it("should return undefined when fetch repos did not fail", () => { expect(getFetchRepositoryTypesFailure({})).toBe(undefined); }); }); diff --git a/scm-ui/ui-webapp/src/repos/modules/repositoryTypes.ts b/scm-ui/ui-webapp/src/repos/modules/repositoryTypes.ts index ffa3b7ab84..3724db6773 100644 --- a/scm-ui/ui-webapp/src/repos/modules/repositoryTypes.ts +++ b/scm-ui/ui-webapp/src/repos/modules/repositoryTypes.ts @@ -1,14 +1,14 @@ -import * as types from '../../modules/types'; +import * as types from "../../modules/types"; import { Action, RepositoryType, - RepositoryTypeCollection, -} from '@scm-manager/ui-types'; -import { apiClient } from '@scm-manager/ui-components'; -import { isPending } from '../../modules/pending'; -import { getFailure } from '../../modules/failure'; + RepositoryTypeCollection +} from "@scm-manager/ui-types"; +import { apiClient } from "@scm-manager/ui-components"; +import { isPending } from "../../modules/pending"; +import { getFailure } from "../../modules/failure"; -export const FETCH_REPOSITORY_TYPES = 'scm/repos/FETCH_REPOSITORY_TYPES'; +export const FETCH_REPOSITORY_TYPES = "scm/repos/FETCH_REPOSITORY_TYPES"; export const FETCH_REPOSITORY_TYPES_PENDING = `${FETCH_REPOSITORY_TYPES}_${types.PENDING_SUFFIX}`; export const FETCH_REPOSITORY_TYPES_SUCCESS = `${FETCH_REPOSITORY_TYPES}_${types.SUCCESS_SUFFIX}`; export const FETCH_REPOSITORY_TYPES_FAILURE = `${FETCH_REPOSITORY_TYPES}_${types.FAILURE_SUFFIX}`; @@ -24,7 +24,7 @@ export function fetchRepositoryTypesIfNeeded() { function fetchRepositoryTypes(dispatch: any) { dispatch(fetchRepositoryTypesPending()); return apiClient - .get('repositoryTypes') + .get("repositoryTypes") .then(response => response.json()) .then(repositoryTypes => { dispatch(fetchRepositoryTypesSuccess(repositoryTypes)); @@ -46,23 +46,23 @@ export function shouldFetchRepositoryTypes(state: object) { export function fetchRepositoryTypesPending(): Action { return { - type: FETCH_REPOSITORY_TYPES_PENDING, + type: FETCH_REPOSITORY_TYPES_PENDING }; } export function fetchRepositoryTypesSuccess( - repositoryTypes: RepositoryTypeCollection, + repositoryTypes: RepositoryTypeCollection ): Action { return { type: FETCH_REPOSITORY_TYPES_SUCCESS, - payload: repositoryTypes, + payload: repositoryTypes }; } export function fetchRepositoryTypesFailure(error: Error): Action { return { type: FETCH_REPOSITORY_TYPES_FAILURE, - payload: error, + payload: error }; } @@ -71,11 +71,11 @@ export function fetchRepositoryTypesFailure(error: Error): Action { export default function reducer( state: RepositoryType[] = [], action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): RepositoryType[] { if (action.type === FETCH_REPOSITORY_TYPES_SUCCESS && action.payload) { - return action.payload._embedded['repositoryTypes']; + return action.payload._embedded["repositoryTypes"]; } return state; } diff --git a/scm-ui/ui-webapp/src/repos/permissions/components/PermissionCheckbox.tsx b/scm-ui/ui-webapp/src/repos/permissions/components/PermissionCheckbox.tsx index c68e8e2b28..bd09c923db 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/components/PermissionCheckbox.tsx +++ b/scm-ui/ui-webapp/src/repos/permissions/components/PermissionCheckbox.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Checkbox } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { Checkbox } from "@scm-manager/ui-components"; type Props = { t: (p: string) => string; @@ -17,8 +17,8 @@ class PermissionCheckbox extends React.Component<Props> { <Checkbox key={this.props.name} name={this.props.name} - helpText={t('verbs.repository.' + this.props.name + '.description')} - label={t('verbs.repository.' + this.props.name + '.displayName')} + helpText={t("verbs.repository." + this.props.name + ".description")} + label={t("verbs.repository." + this.props.name + ".displayName")} checked={this.props.checked} onChange={this.props.onChange} disabled={this.props.disabled} @@ -27,4 +27,4 @@ class PermissionCheckbox extends React.Component<Props> { } } -export default translate('plugins')(PermissionCheckbox); +export default translate("plugins")(PermissionCheckbox); diff --git a/scm-ui/ui-webapp/src/repos/permissions/components/RoleSelector.tsx b/scm-ui/ui-webapp/src/repos/permissions/components/RoleSelector.tsx index 2f4223dc4e..78a9726b56 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/components/RoleSelector.tsx +++ b/scm-ui/ui-webapp/src/repos/permissions/components/RoleSelector.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Select } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { Select } from "@scm-manager/ui-components"; type Props = { t: (p: string) => string; @@ -20,19 +20,19 @@ class RoleSelector extends React.Component<Props> { handleRoleChange, loading, label, - helpText, + helpText } = this.props; if (!availableRoles) return null; const options = role ? this.createSelectOptions(availableRoles) - : ['', ...this.createSelectOptions(availableRoles)]; + : ["", ...this.createSelectOptions(availableRoles)]; return ( <Select onChange={handleRoleChange} - value={role ? role : ''} + value={role ? role : ""} options={options} loading={loading} label={label} @@ -45,10 +45,10 @@ class RoleSelector extends React.Component<Props> { return roles.map(role => { return { label: role, - value: role, + value: role }; }); } } -export default translate('repos')(RoleSelector); +export default translate("repos")(RoleSelector); diff --git a/scm-ui/ui-webapp/src/repos/permissions/components/buttons/DeletePermissionButton.test.tsx b/scm-ui/ui-webapp/src/repos/permissions/components/buttons/DeletePermissionButton.test.tsx index ee9fd9afce..4b61c233ea 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/components/buttons/DeletePermissionButton.test.tsx +++ b/scm-ui/ui-webapp/src/repos/permissions/components/buttons/DeletePermissionButton.test.tsx @@ -1,76 +1,75 @@ -import React from 'react'; -import { shallow, mount } from '@scm-manager/ui-tests/enzyme-router'; -import '@scm-manager/ui-tests/enzyme'; -import '@scm-manager/ui-tests/i18n'; -import DeletePermissionButton from './DeletePermissionButton'; +import React from "react"; +import { shallow, mount } from "@scm-manager/ui-tests/enzyme-router"; +import "@scm-manager/ui-tests/enzyme"; +import "@scm-manager/ui-tests/i18n"; +import DeletePermissionButton from "./DeletePermissionButton"; -import { confirmAlert } from '@scm-manager/ui-components'; -jest.mock('@scm-manager/ui-components', () => ({ +import { confirmAlert } from "@scm-manager/ui-components"; +jest.mock("@scm-manager/ui-components", () => ({ confirmAlert: jest.fn(), - DeleteButton: require.requireActual('@scm-manager/ui-components') - .DeleteButton, + DeleteButton: require.requireActual("@scm-manager/ui-components").DeleteButton })); -describe('DeletePermissionButton', () => { - it('should render nothing, if the delete link is missing', () => { +describe("DeletePermissionButton", () => { + it("should render nothing, if the delete link is missing", () => { const permission = { - _links: {}, + _links: {} }; const navLink = shallow( <DeletePermissionButton permission={permission} deletePermission={() => {}} - />, + /> ); - expect(navLink.text()).toBe(''); + expect(navLink.text()).toBe(""); }); - it('should render the delete icon', () => { + it("should render the delete icon", () => { const permission = { _links: { delete: { - href: '/permission', - }, - }, + href: "/permission" + } + } }; const deleteIcon = mount( <DeletePermissionButton permission={permission} deletePermission={() => {}} - />, + /> ); - expect(deleteIcon.html()).not.toBe(''); + expect(deleteIcon.html()).not.toBe(""); }); - it('should open the confirm dialog on button click', () => { + it("should open the confirm dialog on button click", () => { const permission = { _links: { delete: { - href: '/permission', - }, - }, + href: "/permission" + } + } }; const button = mount( <DeletePermissionButton permission={permission} deletePermission={() => {}} - />, + /> ); - button.find('.fa-trash').simulate('click'); + button.find(".fa-trash").simulate("click"); expect(confirmAlert.mock.calls.length).toBe(1); }); - it('should call the delete permission function with delete url', () => { + it("should call the delete permission function with delete url", () => { const permission = { _links: { delete: { - href: '/permission', - }, - }, + href: "/permission" + } + } }; let calledUrl = null; @@ -83,10 +82,10 @@ describe('DeletePermissionButton', () => { permission={permission} confirmDialog={false} deletePermission={capture} - />, + /> ); - button.find('.fa-trash').simulate('click'); + button.find(".fa-trash").simulate("click"); - expect(calledUrl).toBe('/permission'); + expect(calledUrl).toBe("/permission"); }); }); diff --git a/scm-ui/ui-webapp/src/repos/permissions/components/buttons/DeletePermissionButton.tsx b/scm-ui/ui-webapp/src/repos/permissions/components/buttons/DeletePermissionButton.tsx index 9a323784de..5bdc9be33a 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/components/buttons/DeletePermissionButton.tsx +++ b/scm-ui/ui-webapp/src/repos/permissions/components/buttons/DeletePermissionButton.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Permission } from '@scm-manager/ui-types'; -import { confirmAlert } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { Permission } from "@scm-manager/ui-types"; +import { confirmAlert } from "@scm-manager/ui-components"; type Props = { permission: Permission; @@ -12,39 +12,39 @@ type Props = { deletePermission: ( permission: Permission, namespace: string, - repoName: string, + repoName: string ) => void; loading: boolean; }; class DeletePermissionButton extends React.Component<Props> { static defaultProps = { - confirmDialog: true, + confirmDialog: true }; deletePermission = () => { this.props.deletePermission( this.props.permission, this.props.namespace, - this.props.repoName, + this.props.repoName ); }; confirmDelete = () => { const { t } = this.props; confirmAlert({ - title: t('permission.delete-permission-button.confirm-alert.title'), - message: t('permission.delete-permission-button.confirm-alert.message'), + title: t("permission.delete-permission-button.confirm-alert.title"), + message: t("permission.delete-permission-button.confirm-alert.message"), buttons: [ { - label: t('permission.delete-permission-button.confirm-alert.submit'), - onClick: () => this.deletePermission(), + label: t("permission.delete-permission-button.confirm-alert.submit"), + onClick: () => this.deletePermission() }, { - label: t('permission.delete-permission-button.confirm-alert.cancel'), - onClick: () => null, - }, - ], + label: t("permission.delete-permission-button.confirm-alert.cancel"), + onClick: () => null + } + ] }); }; @@ -69,4 +69,4 @@ class DeletePermissionButton extends React.Component<Props> { } } -export default translate('repos')(DeletePermissionButton); +export default translate("repos")(DeletePermissionButton); diff --git a/scm-ui/ui-webapp/src/repos/permissions/components/permissionValidation.test.ts b/scm-ui/ui-webapp/src/repos/permissions/components/permissionValidation.test.ts index e3f4e04567..747fe7ac63 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/components/permissionValidation.test.ts +++ b/scm-ui/ui-webapp/src/repos/permissions/components/permissionValidation.test.ts @@ -1,69 +1,69 @@ -import * as validator from './permissionValidation'; +import * as validator from "./permissionValidation"; -describe('permission validation', () => { - it('should return true if permission is valid and does not exist', () => { +describe("permission validation", () => { + it("should return true if permission is valid and does not exist", () => { const permissions = []; - const name = 'PermissionName'; + const name = "PermissionName"; const groupPermission = false; expect( - validator.isPermissionValid(name, groupPermission, permissions), + validator.isPermissionValid(name, groupPermission, permissions) ).toBe(true); }); - it('should return true if permission is valid and does not exists with same group permission', () => { + it("should return true if permission is valid and does not exists with same group permission", () => { const permissions = [ { - name: 'PermissionName', + name: "PermissionName", groupPermission: true, - type: 'READ', + type: "READ", _links: {}, - verbs: [], - }, + verbs: [] + } ]; - const name = 'PermissionName'; + const name = "PermissionName"; const groupPermission = false; expect( - validator.isPermissionValid(name, groupPermission, permissions), + validator.isPermissionValid(name, groupPermission, permissions) ).toBe(true); }); - it('should return false if permission is valid but exists', () => { + it("should return false if permission is valid but exists", () => { const permissions = [ { - name: 'PermissionName', + name: "PermissionName", groupPermission: false, - type: 'READ', + type: "READ", _links: {}, - verbs: [], - }, + verbs: [] + } ]; - const name = 'PermissionName'; + const name = "PermissionName"; const groupPermission = false; expect( - validator.isPermissionValid(name, groupPermission, permissions), + validator.isPermissionValid(name, groupPermission, permissions) ).toBe(false); }); - it('should return false if permission does not exist but is invalid', () => { + it("should return false if permission does not exist but is invalid", () => { const permissions = []; - const name = '@PermissionName'; + const name = "@PermissionName"; const groupPermission = false; expect( - validator.isPermissionValid(name, groupPermission, permissions), + validator.isPermissionValid(name, groupPermission, permissions) ).toBe(false); }); - it('should return false if permission is not valid and does not exist', () => { + it("should return false if permission is not valid and does not exist", () => { const permissions = []; - const name = '@PermissionName'; + const name = "@PermissionName"; const groupPermission = false; expect( - validator.isPermissionValid(name, groupPermission, permissions), + validator.isPermissionValid(name, groupPermission, permissions) ).toBe(false); }); }); diff --git a/scm-ui/ui-webapp/src/repos/permissions/components/permissionValidation.ts b/scm-ui/ui-webapp/src/repos/permissions/components/permissionValidation.ts index b1b1c7874e..554475dfff 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/components/permissionValidation.ts +++ b/scm-ui/ui-webapp/src/repos/permissions/components/permissionValidation.ts @@ -1,5 +1,5 @@ -import { validation } from '@scm-manager/ui-components'; -import { PermissionCollection } from '@scm-manager/ui-types'; +import { validation } from "@scm-manager/ui-components"; +import { PermissionCollection } from "@scm-manager/ui-types"; const isNameValid = validation.isNameValid; @@ -8,7 +8,7 @@ export { isNameValid }; export const isPermissionValid = ( name: string, groupPermission: boolean, - permissions: PermissionCollection, + permissions: PermissionCollection ) => { return ( isNameValid(name) && @@ -19,7 +19,7 @@ export const isPermissionValid = ( const currentPermissionIncludeName = ( name: string, groupPermission: boolean, - permissions: PermissionCollection, + permissions: PermissionCollection ) => { for (let i = 0; i < permissions.length; i++) { if ( diff --git a/scm-ui/ui-webapp/src/repos/permissions/containers/AdvancedPermissionsDialog.tsx b/scm-ui/ui-webapp/src/repos/permissions/containers/AdvancedPermissionsDialog.tsx index ed65c3e406..bc24bb16c4 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/containers/AdvancedPermissionsDialog.tsx +++ b/scm-ui/ui-webapp/src/repos/permissions/containers/AdvancedPermissionsDialog.tsx @@ -1,12 +1,12 @@ -import React from 'react'; +import React from "react"; import { ButtonGroup, Button, SubmitButton, - Modal, -} from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; -import PermissionCheckbox from '../components/PermissionCheckbox'; + Modal +} from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; +import PermissionCheckbox from "../components/PermissionCheckbox"; type Props = { readOnly: boolean; @@ -32,10 +32,10 @@ class AdvancedPermissionsDialog extends React.Component<Props, State> { verb => (verbs[verb] = props.selectedVerbs ? props.selectedVerbs.includes(verb) - : false), + : false) ); this.state = { - verbs, + verbs }; } @@ -54,7 +54,7 @@ class AdvancedPermissionsDialog extends React.Component<Props, State> { )); const submitButton = !readOnly ? ( - <SubmitButton label={t('permission.advanced.dialog.submit')} /> + <SubmitButton label={t("permission.advanced.dialog.submit")} /> ) : null; const body = <>{verbSelectBoxes}</>; @@ -64,7 +64,7 @@ class AdvancedPermissionsDialog extends React.Component<Props, State> { <ButtonGroup> {submitButton} <Button - label={t('permission.advanced.dialog.abort')} + label={t("permission.advanced.dialog.abort")} action={onClose} /> </ButtonGroup> @@ -73,7 +73,7 @@ class AdvancedPermissionsDialog extends React.Component<Props, State> { return ( <Modal - title={t('permission.advanced.dialog.title')} + title={t("permission.advanced.dialog.title")} closeFunction={() => onClose()} body={body} footer={footer} @@ -86,10 +86,10 @@ class AdvancedPermissionsDialog extends React.Component<Props, State> { const { verbs } = this.state; const newVerbs = { ...verbs, - [name]: value, + [name]: value }; this.setState({ - verbs: newVerbs, + verbs: newVerbs }); }; @@ -97,9 +97,9 @@ class AdvancedPermissionsDialog extends React.Component<Props, State> { this.props.onSubmit( Object.entries(this.state.verbs) .filter(e => e[1]) - .map(e => e[0]), + .map(e => e[0]) ); }; } -export default translate('repos')(AdvancedPermissionsDialog); +export default translate("repos")(AdvancedPermissionsDialog); diff --git a/scm-ui/ui-webapp/src/repos/permissions/containers/CreatePermissionForm.tsx b/scm-ui/ui-webapp/src/repos/permissions/containers/CreatePermissionForm.tsx index 19faff1711..6c62fb5275 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/containers/CreatePermissionForm.tsx +++ b/scm-ui/ui-webapp/src/repos/permissions/containers/CreatePermissionForm.tsx @@ -1,11 +1,11 @@ -import React from 'react'; -import { translate } from 'react-i18next'; +import React from "react"; +import { translate } from "react-i18next"; import { PermissionCollection, PermissionCreateEntry, RepositoryRole, - SelectValue, -} from '@scm-manager/ui-types'; + SelectValue +} from "@scm-manager/ui-types"; import { Button, GroupAutocomplete, @@ -13,12 +13,12 @@ import { Radio, SubmitButton, Subtitle, - UserAutocomplete, -} from '@scm-manager/ui-components'; -import * as validator from '../components/permissionValidation'; -import RoleSelector from '../components/RoleSelector'; -import AdvancedPermissionsDialog from './AdvancedPermissionsDialog'; -import { findVerbsForRole } from '../modules/permissions'; + UserAutocomplete +} from "@scm-manager/ui-components"; +import * as validator from "../components/permissionValidation"; +import RoleSelector from "../components/RoleSelector"; +import AdvancedPermissionsDialog from "./AdvancedPermissionsDialog"; +import { findVerbsForRole } from "../modules/permissions"; type Props = { availableRoles: RepositoryRole[]; @@ -48,13 +48,13 @@ class CreatePermissionForm extends React.Component<Props, State> { super(props); this.state = { - name: '', + name: "", role: props.availableRoles[0].name, verbs: undefined, groupPermission: false, valid: true, value: undefined, - showAdvancedDialog: false, + showAdvancedDialog: false }; } @@ -73,9 +73,9 @@ class CreatePermissionForm extends React.Component<Props, State> { permissionScopeChanged = (groupPermission: boolean) => { this.setState({ value: undefined, - name: '', + name: "", groupPermission, - valid: false, + valid: false }); }; @@ -86,7 +86,7 @@ class CreatePermissionForm extends React.Component<Props, State> { <GroupAutocomplete autocompleteLink={this.props.groupAutocompleteLink} valueSelected={this.selectName} - value={this.state.value ? this.state.value : ''} + value={this.state.value ? this.state.value : ""} /> ); } @@ -94,7 +94,7 @@ class CreatePermissionForm extends React.Component<Props, State> { <UserAutocomplete autocompleteLink={this.props.userAutocompleteLink} valueSelected={this.selectName} - value={this.state.value ? this.state.value : ''} + value={this.state.value ? this.state.value : ""} /> ); }; @@ -106,8 +106,8 @@ class CreatePermissionForm extends React.Component<Props, State> { valid: validator.isPermissionValid( value.value.id, this.state.groupPermission, - this.props.currentPermissions, - ), + this.props.currentPermissions + ) }); }; @@ -132,7 +132,7 @@ class CreatePermissionForm extends React.Component<Props, State> { <> <hr /> <Subtitle - subtitle={t('permission.add-permission.add-permission-heading')} + subtitle={t("permission.add-permission.add-permission-heading")} /> {advancedDialog} <form onSubmit={this.submit}> @@ -142,14 +142,14 @@ class CreatePermissionForm extends React.Component<Props, State> { name="permission_scope" value="USER_PERMISSION" checked={!this.state.groupPermission} - label={t('permission.user-permission')} + label={t("permission.user-permission")} onChange={this.userPermissionScopeChanged} /> <Radio name="permission_scope" value="GROUP_PERMISSION" checked={this.state.groupPermission} - label={t('permission.group-permission')} + label={t("permission.group-permission")} onChange={this.groupPermissionScopeChanged} /> </div> @@ -163,19 +163,19 @@ class CreatePermissionForm extends React.Component<Props, State> { <div className="column is-narrow"> <RoleSelector availableRoles={availableRoleNames} - label={t('permission.role')} - helpText={t('permission.help.roleHelpText')} + label={t("permission.role")} + helpText={t("permission.help.roleHelpText")} handleRoleChange={this.handleRoleChange} role={role} /> </div> <div className="column"> <LabelWithHelpIcon - label={t('permission.permissions')} - helpText={t('permission.help.permissionsHelpText')} + label={t("permission.permissions")} + helpText={t("permission.help.permissionsHelpText")} /> <Button - label={t('permission.advanced-button.label')} + label={t("permission.advanced-button.label")} action={this.toggleAdvancedPermissionsDialog} /> </div> @@ -185,9 +185,9 @@ class CreatePermissionForm extends React.Component<Props, State> { <div className="columns"> <div className="column"> <SubmitButton - label={t('permission.add-permission.submit-button')} + label={t("permission.add-permission.submit-button")} loading={loading} - disabled={!this.state.valid || this.state.name === ''} + disabled={!this.state.valid || this.state.name === ""} /> </div> </div> @@ -198,7 +198,7 @@ class CreatePermissionForm extends React.Component<Props, State> { toggleAdvancedPermissionsDialog = () => { this.setState(prevState => ({ - showAdvancedDialog: !prevState.showAdvancedDialog, + showAdvancedDialog: !prevState.showAdvancedDialog })); }; @@ -206,7 +206,7 @@ class CreatePermissionForm extends React.Component<Props, State> { this.setState({ showAdvancedDialog: false, role: undefined, - verbs: newVerbs, + verbs: newVerbs }); }; @@ -215,7 +215,7 @@ class CreatePermissionForm extends React.Component<Props, State> { name: this.state.name, role: this.state.role, verbs: this.state.verbs, - groupPermission: this.state.groupPermission, + groupPermission: this.state.groupPermission }); this.removeState(); e.preventDefault(); @@ -223,11 +223,11 @@ class CreatePermissionForm extends React.Component<Props, State> { removeState = () => { this.setState({ - name: '', + name: "", role: this.props.availableRoles[0].name, verbs: undefined, valid: true, - value: undefined, + value: undefined }); }; @@ -238,7 +238,7 @@ class CreatePermissionForm extends React.Component<Props, State> { } this.setState({ role: selectedRole.name, - verbs: [], + verbs: [] }); }; @@ -247,4 +247,4 @@ class CreatePermissionForm extends React.Component<Props, State> { }; } -export default translate('repos')(CreatePermissionForm); +export default translate("repos")(CreatePermissionForm); diff --git a/scm-ui/ui-webapp/src/repos/permissions/containers/Permissions.tsx b/scm-ui/ui-webapp/src/repos/permissions/containers/Permissions.tsx index e1bf3b774b..2bcaa87009 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/containers/Permissions.tsx +++ b/scm-ui/ui-webapp/src/repos/permissions/containers/Permissions.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; +import React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; import { createPermission, createPermissionReset, @@ -20,30 +20,30 @@ import { isCreatePermissionPending, isFetchAvailablePermissionsPending, isFetchPermissionsPending, - modifyPermissionReset, -} from '../modules/permissions'; + modifyPermissionReset +} from "../modules/permissions"; import { ErrorPage, LabelWithHelpIcon, Loading, - Subtitle, -} from '@scm-manager/ui-components'; + Subtitle +} from "@scm-manager/ui-components"; import { Permission, PermissionCollection, PermissionCreateEntry, - RepositoryRole, -} from '@scm-manager/ui-types'; -import SinglePermission from './SinglePermission'; -import CreatePermissionForm from './CreatePermissionForm'; -import { History } from 'history'; -import { getPermissionsLink } from '../../modules/repos'; + RepositoryRole +} from "@scm-manager/ui-types"; +import SinglePermission from "./SinglePermission"; +import CreatePermissionForm from "./CreatePermissionForm"; +import { History } from "history"; +import { getPermissionsLink } from "../../modules/repos"; import { getGroupAutoCompleteLink, getRepositoryRolesLink, getRepositoryVerbsLink, - getUserAutoCompleteLink, -} from '../../../modules/indexResource'; + getUserAutoCompleteLink +} from "../../../modules/indexResource"; type Props = { availablePermissions: boolean; @@ -65,7 +65,7 @@ type Props = { //dispatch functions fetchAvailablePermissionsIfNeeded: ( repositoryRolesLink: string, - repositoryVerbsLink: string, + repositoryVerbsLink: string ) => void; fetchPermissions: (link: string, namespace: string, repoName: string) => void; createPermission: ( @@ -73,7 +73,7 @@ type Props = { permission: PermissionCreateEntry, namespace: string, repoName: string, - callback?: () => void, + callback?: () => void ) => void; createPermissionReset: (p1: string, p2: string) => void; modifyPermissionReset: (p1: string, p2: string) => void; @@ -96,7 +96,7 @@ class Permissions extends React.Component<Props> { deletePermissionReset, permissionsLink, repositoryRolesLink, - repositoryVerbsLink, + repositoryVerbsLink } = this.props; createPermissionReset(namespace, repoName); @@ -111,7 +111,7 @@ class Permissions extends React.Component<Props> { this.props.permissionsLink, permission, this.props.namespace, - this.props.repoName, + this.props.repoName ); }; @@ -129,13 +129,13 @@ class Permissions extends React.Component<Props> { loadingCreatePermission, hasPermissionToCreate, userAutocompleteLink, - groupAutocompleteLink, + groupAutocompleteLink } = this.props; if (error) { return ( <ErrorPage - title={t('permission.error-title')} - subtitle={t('permission.error-subtitle')} + title={t("permission.error-title")} + subtitle={t("permission.error-subtitle")} error={error} /> ); @@ -159,26 +159,26 @@ class Permissions extends React.Component<Props> { return ( <div> - <Subtitle subtitle={t('permission.title')} /> + <Subtitle subtitle={t("permission.title")} /> <table className="card-table table is-hoverable is-fullwidth"> <thead> <tr> <th> <LabelWithHelpIcon - label={t('permission.name')} - helpText={t('permission.help.nameHelpText')} + label={t("permission.name")} + helpText={t("permission.help.nameHelpText")} /> </th> <th> <LabelWithHelpIcon - label={t('permission.role')} - helpText={t('permission.help.roleHelpText')} + label={t("permission.role")} + helpText={t("permission.help.roleHelpText")} /> </th> <th> <LabelWithHelpIcon - label={t('permission.permissions')} - helpText={t('permission.help.permissionsHelpText')} + label={t("permission.permissions")} + helpText={t("permission.help.permissionsHelpText")} /> </th> <th /> @@ -221,7 +221,7 @@ const mapStateToProps = (state, ownProps) => { const loadingCreatePermission = isCreatePermissionPending( state, namespace, - repoName, + repoName ); const hasPermissionToCreate = hasCreatePermission(state, namespace, repoName); const repositoryRolesLink = getRepositoryRolesLink(state); @@ -248,7 +248,7 @@ const mapStateToProps = (state, ownProps) => { loadingCreatePermission, permissionsLink, groupAutocompleteLink, - userAutocompleteLink, + userAutocompleteLink }; }; @@ -259,13 +259,13 @@ const mapDispatchToProps = dispatch => { }, fetchAvailablePermissionsIfNeeded: ( repositoryRolesLink: string, - repositoryVerbsLink: string, + repositoryVerbsLink: string ) => { dispatch( fetchAvailablePermissionsIfNeeded( repositoryRolesLink, - repositoryVerbsLink, - ), + repositoryVerbsLink + ) ); }, createPermission: ( @@ -273,10 +273,10 @@ const mapDispatchToProps = dispatch => { permission: PermissionCreateEntry, namespace: string, repoName: string, - callback?: () => void, + callback?: () => void ) => { dispatch( - createPermission(link, permission, namespace, repoName, callback), + createPermission(link, permission, namespace, repoName, callback) ); }, createPermissionReset: (namespace: string, repoName: string) => { @@ -287,11 +287,11 @@ const mapDispatchToProps = dispatch => { }, deletePermissionReset: (namespace: string, repoName: string) => { dispatch(deletePermissionReset(namespace, repoName)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('repos')(Permissions)); + mapDispatchToProps +)(translate("repos")(Permissions)); diff --git a/scm-ui/ui-webapp/src/repos/permissions/containers/SinglePermission.tsx b/scm-ui/ui-webapp/src/repos/permissions/containers/SinglePermission.tsx index ebecd4c4ea..5e8e0ff380 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/containers/SinglePermission.tsx +++ b/scm-ui/ui-webapp/src/repos/permissions/containers/SinglePermission.tsx @@ -1,20 +1,20 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { History } from 'history'; -import { translate } from 'react-i18next'; -import styled from 'styled-components'; -import { RepositoryRole, Permission } from '@scm-manager/ui-types'; -import { Button, Icon } from '@scm-manager/ui-components'; +import React from "react"; +import { connect } from "react-redux"; +import { History } from "history"; +import { translate } from "react-i18next"; +import styled from "styled-components"; +import { RepositoryRole, Permission } from "@scm-manager/ui-types"; +import { Button, Icon } from "@scm-manager/ui-components"; import { modifyPermission, isModifyPermissionPending, deletePermission, isDeletePermissionPending, - findVerbsForRole, -} from '../modules/permissions'; -import DeletePermissionButton from '../components/buttons/DeletePermissionButton'; -import RoleSelector from '../components/RoleSelector'; -import AdvancedPermissionsDialog from './AdvancedPermissionsDialog'; + findVerbsForRole +} from "../modules/permissions"; +import DeletePermissionButton from "../components/buttons/DeletePermissionButton"; +import RoleSelector from "../components/RoleSelector"; +import AdvancedPermissionsDialog from "./AdvancedPermissionsDialog"; type Props = { availableRepositoryRoles: RepositoryRole[]; @@ -23,7 +23,7 @@ type Props = { modifyPermission: ( permission: Permission, namespace: string, - name: string, + name: string ) => void; permission: Permission; t: (p: string) => string; @@ -35,7 +35,7 @@ type Props = { deletePermission: ( permission: Permission, namespace: string, - name: string, + name: string ) => void; deleteLoading: boolean; }; @@ -64,13 +64,13 @@ class SinglePermission extends React.Component<Props, State> { this.state = { permission: { - name: '', + name: "", role: undefined, verbs: defaultPermission.verbs, groupPermission: false, - _links: {}, + _links: {} }, - showAdvancedDialog: false, + showAdvancedDialog: false }; } @@ -84,8 +84,8 @@ class SinglePermission extends React.Component<Props, State> { role: permission.role, verbs: permission.verbs, groupPermission: permission.groupPermission, - _links: permission._links, - }, + _links: permission._links + } }); } } @@ -94,7 +94,7 @@ class SinglePermission extends React.Component<Props, State> { this.props.deletePermission( this.props.permission, this.props.namespace, - this.props.repoName, + this.props.repoName ); }; @@ -105,14 +105,14 @@ class SinglePermission extends React.Component<Props, State> { loading, namespace, repoName, - t, + t } = this.props; const { permission, showAdvancedDialog } = this.state; const availableRoleNames = !!availableRepositoryRoles && availableRepositoryRoles.map(r => r.name); const readOnly = !this.mayChangePermissions(); const roleSelector = readOnly ? ( - <td>{permission.role ? permission.role : t('permission.custom')}</td> + <td>{permission.role ? permission.role : t("permission.custom")}</td> ) : ( <td> <RoleSelector @@ -140,9 +140,9 @@ class SinglePermission extends React.Component<Props, State> { const iconType = permission && permission.groupPermission ? ( - <Icon title={t('permission.group')} name="user-friends" /> + <Icon title={t("permission.group")} name="user-friends" /> ) : ( - <Icon title={t('permission.user')} name="user" /> + <Icon title={t("permission.user")} name="user" /> ); return ( @@ -153,7 +153,7 @@ class SinglePermission extends React.Component<Props, State> { {roleSelector} <VCenteredTd> <Button - label={t('permission.advanced-button.label')} + label={t("permission.advanced-button.label")} action={this.handleDetailedPermissionsPressed} /> </VCenteredTd> @@ -177,13 +177,13 @@ class SinglePermission extends React.Component<Props, State> { handleDetailedPermissionsPressed = () => { this.setState({ - showAdvancedDialog: true, + showAdvancedDialog: true }); }; closeAdvancedPermissionsDialog = () => { this.setState({ - showAdvancedDialog: false, + showAdvancedDialog: false }); }; @@ -195,10 +195,10 @@ class SinglePermission extends React.Component<Props, State> { permission: { ...permission, role: undefined, - verbs: newVerbs, - }, + verbs: newVerbs + } }, - () => this.modifyPermissionVerbs(newVerbs), + () => this.modifyPermissionVerbs(newVerbs) ); }; @@ -209,10 +209,10 @@ class SinglePermission extends React.Component<Props, State> { permission: { ...permission, role: role, - verbs: undefined, - }, + verbs: undefined + } }, - () => this.modifyPermissionRole(role), + () => this.modifyPermissionRole(role) ); }; @@ -227,7 +227,7 @@ class SinglePermission extends React.Component<Props, State> { this.props.modifyPermission( permission, this.props.namespace, - this.props.repoName, + this.props.repoName ); }; @@ -237,7 +237,7 @@ class SinglePermission extends React.Component<Props, State> { this.props.modifyPermission( permission, this.props.namespace, - this.props.repoName, + this.props.repoName ); }; } @@ -248,18 +248,18 @@ const mapStateToProps = (state, ownProps) => { state, ownProps.namespace, ownProps.repoName, - permission, + permission ); const deleteLoading = isDeletePermissionPending( state, ownProps.namespace, ownProps.repoName, - permission, + permission ); return { loading, - deleteLoading, + deleteLoading }; }; @@ -268,20 +268,20 @@ const mapDispatchToProps = dispatch => { modifyPermission: ( permission: Permission, namespace: string, - repoName: string, + repoName: string ) => { dispatch(modifyPermission(permission, namespace, repoName)); }, deletePermission: ( permission: Permission, namespace: string, - repoName: string, + repoName: string ) => { dispatch(deletePermission(permission, namespace, repoName)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('repos')(SinglePermission)); + mapDispatchToProps +)(translate("repos")(SinglePermission)); diff --git a/scm-ui/ui-webapp/src/repos/permissions/modules/permissions.test.ts b/scm-ui/ui-webapp/src/repos/permissions/modules/permissions.test.ts index 81334af4e6..b20a191fb6 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/modules/permissions.test.ts +++ b/scm-ui/ui-webapp/src/repos/permissions/modules/permissions.test.ts @@ -1,6 +1,6 @@ -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import reducer, { CREATE_PERMISSION, CREATE_PERMISSION_FAILURE, @@ -37,72 +37,72 @@ import reducer, { MODIFY_PERMISSION_PENDING, MODIFY_PERMISSION_SUCCESS, modifyPermission, - modifyPermissionSuccess, -} from './permissions'; -import { Permission, PermissionCollection } from '@scm-manager/ui-types'; + modifyPermissionSuccess +} from "./permissions"; +import { Permission, PermissionCollection } from "@scm-manager/ui-types"; const hitchhiker_puzzle42Permission_user_eins: Permission = { - name: 'user_eins', - type: 'READ', + name: "user_eins", + type: "READ", groupPermission: false, _links: { self: { href: - 'http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_eins', + "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_eins" }, delete: { href: - 'http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_eins', + "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_eins" }, update: { href: - 'http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_eins', - }, + "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_eins" + } }, - verbs: [], + verbs: [] }; const hitchhiker_puzzle42Permission_user_zwei: Permission = { - name: 'user_zwei', - type: 'WRITE', + name: "user_zwei", + type: "WRITE", groupPermission: true, _links: { self: { href: - 'http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_zwei', + "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_zwei" }, delete: { href: - 'http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_zwei', + "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_zwei" }, update: { href: - 'http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_zwei', - }, + "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/user_zwei" + } }, - verbs: [], + verbs: [] }; const hitchhiker_puzzle42Permissions: PermissionCollection = [ hitchhiker_puzzle42Permission_user_eins, - hitchhiker_puzzle42Permission_user_zwei, + hitchhiker_puzzle42Permission_user_zwei ]; const hitchhiker_puzzle42RepoPermissions = { _embedded: { - permissions: hitchhiker_puzzle42Permissions, + permissions: hitchhiker_puzzle42Permissions }, _links: { create: { href: - 'http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions', - }, - }, + "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions" + } + } }; -describe('permission fetch', () => { - const REPOS_URL = '/api/v2/repositories'; - const URL = 'repositories'; +describe("permission fetch", () => { + const REPOS_URL = "/api/v2/repositories"; + const URL = "repositories"; const mockStore = configureMockStore([thunk]); afterEach(() => { @@ -110,55 +110,55 @@ describe('permission fetch', () => { fetchMock.restore(); }); - it('should successfully fetch permissions to repo hitchhiker/puzzle42', () => { + it("should successfully fetch permissions to repo hitchhiker/puzzle42", () => { fetchMock.getOnce( - REPOS_URL + '/hitchhiker/puzzle42/permissions', - hitchhiker_puzzle42RepoPermissions, + REPOS_URL + "/hitchhiker/puzzle42/permissions", + hitchhiker_puzzle42RepoPermissions ); const expectedActions = [ { type: FETCH_PERMISSIONS_PENDING, payload: { - namespace: 'hitchhiker', - repoName: 'puzzle42', + namespace: "hitchhiker", + repoName: "puzzle42" }, - itemId: 'hitchhiker/puzzle42', + itemId: "hitchhiker/puzzle42" }, { type: FETCH_PERMISSIONS_SUCCESS, payload: hitchhiker_puzzle42RepoPermissions, - itemId: 'hitchhiker/puzzle42', - }, + itemId: "hitchhiker/puzzle42" + } ]; const store = mockStore({}); return store .dispatch( fetchPermissions( - URL + '/hitchhiker/puzzle42/permissions', - 'hitchhiker', - 'puzzle42', - ), + URL + "/hitchhiker/puzzle42/permissions", + "hitchhiker", + "puzzle42" + ) ) .then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should dispatch FETCH_PERMISSIONS_FAILURE, it the request fails', () => { - fetchMock.getOnce(REPOS_URL + '/hitchhiker/puzzle42/permissions', { - status: 500, + it("should dispatch FETCH_PERMISSIONS_FAILURE, it the request fails", () => { + fetchMock.getOnce(REPOS_URL + "/hitchhiker/puzzle42/permissions", { + status: 500 }); const store = mockStore({}); return store .dispatch( fetchPermissions( - URL + '/hitchhiker/puzzle42/permissions', - 'hitchhiker', - 'puzzle42', - ), + URL + "/hitchhiker/puzzle42/permissions", + "hitchhiker", + "puzzle42" + ) ) .then(() => { const actions = store.getActions(); @@ -168,23 +168,23 @@ describe('permission fetch', () => { }); }); - it('should successfully modify user_eins permission', () => { + it("should successfully modify user_eins permission", () => { fetchMock.putOnce( hitchhiker_puzzle42Permission_user_eins._links.update.href, { - status: 204, - }, + status: 204 + } ); let editedPermission = { ...hitchhiker_puzzle42Permission_user_eins, - type: 'OWNER', + type: "OWNER" }; const store = mockStore({}); return store - .dispatch(modifyPermission(editedPermission, 'hitchhiker', 'puzzle42')) + .dispatch(modifyPermission(editedPermission, "hitchhiker", "puzzle42")) .then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(MODIFY_PERMISSION_PENDING); @@ -192,17 +192,17 @@ describe('permission fetch', () => { }); }); - it('should successfully modify user_eins permission and call the callback', () => { + it("should successfully modify user_eins permission and call the callback", () => { fetchMock.putOnce( hitchhiker_puzzle42Permission_user_eins._links.update.href, { - status: 204, - }, + status: 204 + } ); let editedPermission = { ...hitchhiker_puzzle42Permission_user_eins, - type: 'OWNER', + type: "OWNER" }; const store = mockStore({}); @@ -214,7 +214,7 @@ describe('permission fetch', () => { return store .dispatch( - modifyPermission(editedPermission, 'hitchhiker', 'puzzle42', callback), + modifyPermission(editedPermission, "hitchhiker", "puzzle42", callback) ) .then(() => { const actions = store.getActions(); @@ -224,23 +224,23 @@ describe('permission fetch', () => { }); }); - it('should fail modifying on HTTP 500', () => { + it("should fail modifying on HTTP 500", () => { fetchMock.putOnce( hitchhiker_puzzle42Permission_user_eins._links.update.href, { - status: 500, - }, + status: 500 + } ); let editedPermission = { ...hitchhiker_puzzle42Permission_user_eins, - type: 'OWNER', + type: "OWNER" }; const store = mockStore({}); return store - .dispatch(modifyPermission(editedPermission, 'hitchhiker', 'puzzle42')) + .dispatch(modifyPermission(editedPermission, "hitchhiker", "puzzle42")) .then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(MODIFY_PERMISSION_PENDING); @@ -249,29 +249,29 @@ describe('permission fetch', () => { }); }); - it('should add a permission successfully', () => { + it("should add a permission successfully", () => { // unmatched - fetchMock.postOnce(REPOS_URL + '/hitchhiker/puzzle42/permissions', { + fetchMock.postOnce(REPOS_URL + "/hitchhiker/puzzle42/permissions", { status: 204, headers: { - location: 'repositories/hitchhiker/puzzle42/permissions/user_eins', - }, + location: "repositories/hitchhiker/puzzle42/permissions/user_eins" + } }); fetchMock.getOnce( - REPOS_URL + '/hitchhiker/puzzle42/permissions/user_eins', - hitchhiker_puzzle42Permission_user_eins, + REPOS_URL + "/hitchhiker/puzzle42/permissions/user_eins", + hitchhiker_puzzle42Permission_user_eins ); const store = mockStore({}); return store .dispatch( createPermission( - URL + '/hitchhiker/puzzle42/permissions', + URL + "/hitchhiker/puzzle42/permissions", hitchhiker_puzzle42Permission_user_eins, - 'hitchhiker', - 'puzzle42', - ), + "hitchhiker", + "puzzle42" + ) ) .then(() => { const actions = store.getActions(); @@ -280,20 +280,20 @@ describe('permission fetch', () => { }); }); - it('should fail adding a permission on HTTP 500', () => { - fetchMock.postOnce(REPOS_URL + '/hitchhiker/puzzle42/permissions', { - status: 500, + it("should fail adding a permission on HTTP 500", () => { + fetchMock.postOnce(REPOS_URL + "/hitchhiker/puzzle42/permissions", { + status: 500 }); const store = mockStore({}); return store .dispatch( createPermission( - URL + '/hitchhiker/puzzle42/permissions', + URL + "/hitchhiker/puzzle42/permissions", hitchhiker_puzzle42Permission_user_eins, - 'hitchhiker', - 'puzzle42', - ), + "hitchhiker", + "puzzle42" + ) ) .then(() => { const actions = store.getActions(); @@ -303,46 +303,46 @@ describe('permission fetch', () => { }); }); - it('should call the callback after permission successfully created', () => { + it("should call the callback after permission successfully created", () => { // unmatched - fetchMock.postOnce(REPOS_URL + '/hitchhiker/puzzle42/permissions', { + fetchMock.postOnce(REPOS_URL + "/hitchhiker/puzzle42/permissions", { status: 204, headers: { - location: 'repositories/hitchhiker/puzzle42/permissions/user_eins', - }, + location: "repositories/hitchhiker/puzzle42/permissions/user_eins" + } }); fetchMock.getOnce( - REPOS_URL + '/hitchhiker/puzzle42/permissions/user_eins', - hitchhiker_puzzle42Permission_user_eins, + REPOS_URL + "/hitchhiker/puzzle42/permissions/user_eins", + hitchhiker_puzzle42Permission_user_eins ); - let callMe = 'not yet'; + let callMe = "not yet"; const callback = () => { - callMe = 'yeah'; + callMe = "yeah"; }; const store = mockStore({}); return store .dispatch( createPermission( - URL + '/hitchhiker/puzzle42/permissions', + URL + "/hitchhiker/puzzle42/permissions", hitchhiker_puzzle42Permission_user_eins, - 'hitchhiker', - 'puzzle42', - callback, - ), + "hitchhiker", + "puzzle42", + callback + ) ) .then(() => { - expect(callMe).toBe('yeah'); + expect(callMe).toBe("yeah"); }); }); - it('should delete successfully permission user_eins', () => { + it("should delete successfully permission user_eins", () => { fetchMock.deleteOnce( hitchhiker_puzzle42Permission_user_eins._links.delete.href, { - status: 204, - }, + status: 204 + } ); const store = mockStore({}); @@ -350,27 +350,27 @@ describe('permission fetch', () => { .dispatch( deletePermission( hitchhiker_puzzle42Permission_user_eins, - 'hitchhiker', - 'puzzle42', - ), + "hitchhiker", + "puzzle42" + ) ) .then(() => { const actions = store.getActions(); expect(actions.length).toBe(2); expect(actions[0].type).toEqual(DELETE_PERMISSION_PENDING); expect(actions[0].payload).toBe( - hitchhiker_puzzle42Permission_user_eins, + hitchhiker_puzzle42Permission_user_eins ); expect(actions[1].type).toEqual(DELETE_PERMISSION_SUCCESS); }); }); - it('should call the callback, after successful delete', () => { + it("should call the callback, after successful delete", () => { fetchMock.deleteOnce( hitchhiker_puzzle42Permission_user_eins._links.delete.href, { - status: 204, - }, + status: 204 + } ); let called = false; @@ -383,22 +383,22 @@ describe('permission fetch', () => { .dispatch( deletePermission( hitchhiker_puzzle42Permission_user_eins, - 'hitchhiker', - 'puzzle42', - callMe, - ), + "hitchhiker", + "puzzle42", + callMe + ) ) .then(() => { expect(called).toBeTruthy(); }); }); - it('should fail to delete permission', () => { + it("should fail to delete permission", () => { fetchMock.deleteOnce( hitchhiker_puzzle42Permission_user_eins._links.delete.href, { - status: 500, - }, + status: 500 + } ); const store = mockStore({}); @@ -406,15 +406,15 @@ describe('permission fetch', () => { .dispatch( deletePermission( hitchhiker_puzzle42Permission_user_eins, - 'hitchhiker', - 'puzzle42', - ), + "hitchhiker", + "puzzle42" + ) ) .then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(DELETE_PERMISSION_PENDING); expect(actions[0].payload).toBe( - hitchhiker_puzzle42Permission_user_eins, + hitchhiker_puzzle42Permission_user_eins ); expect(actions[1].type).toEqual(DELETE_PERMISSION_FAILURE); expect(actions[1].payload).toBeDefined(); @@ -422,385 +422,385 @@ describe('permission fetch', () => { }); }); -describe('permissions reducer', () => { - it('should return empty object, if state and action is undefined', () => { +describe("permissions reducer", () => { + it("should return empty object, if state and action is undefined", () => { expect(reducer()).toEqual({}); }); - it('should return the same state, if the action is undefined', () => { + it("should return the same state, if the action is undefined", () => { const state = { - x: true, + x: true }; expect(reducer(state)).toBe(state); }); - it('should return the same state, if the action is unknown to the reducer', () => { + it("should return the same state, if the action is unknown to the reducer", () => { const state = { - x: true, + x: true }; expect( reducer(state, { - type: 'EL_SPECIALE', - }), + type: "EL_SPECIALE" + }) ).toBe(state); }); - it('should store the permissions on FETCH_PERMISSION_SUCCESS', () => { + it("should store the permissions on FETCH_PERMISSION_SUCCESS", () => { const newState = reducer( {}, fetchPermissionsSuccess( hitchhiker_puzzle42RepoPermissions, - 'hitchhiker', - 'puzzle42', - ), + "hitchhiker", + "puzzle42" + ) ); - expect(newState['hitchhiker/puzzle42'].entries).toBe( - hitchhiker_puzzle42Permissions, + expect(newState["hitchhiker/puzzle42"].entries).toBe( + hitchhiker_puzzle42Permissions ); }); - it('should update permission', () => { + it("should update permission", () => { const oldState = { - 'hitchhiker/puzzle42': { - entries: [hitchhiker_puzzle42Permission_user_eins], - }, + "hitchhiker/puzzle42": { + entries: [hitchhiker_puzzle42Permission_user_eins] + } }; let permissionEdited = { ...hitchhiker_puzzle42Permission_user_eins, - type: 'OWNER', + type: "OWNER" }; let expectedState = { - 'hitchhiker/puzzle42': { - entries: [permissionEdited], - }, + "hitchhiker/puzzle42": { + entries: [permissionEdited] + } }; const newState = reducer( oldState, - modifyPermissionSuccess(permissionEdited, 'hitchhiker', 'puzzle42'), + modifyPermissionSuccess(permissionEdited, "hitchhiker", "puzzle42") ); - expect(newState['hitchhiker/puzzle42']).toEqual( - expectedState['hitchhiker/puzzle42'], + expect(newState["hitchhiker/puzzle42"]).toEqual( + expectedState["hitchhiker/puzzle42"] ); }); - it('should remove permission from state when delete succeeds', () => { + it("should remove permission from state when delete succeeds", () => { const state = { - 'hitchhiker/puzzle42': { + "hitchhiker/puzzle42": { entries: [ hitchhiker_puzzle42Permission_user_eins, - hitchhiker_puzzle42Permission_user_zwei, - ], - }, + hitchhiker_puzzle42Permission_user_zwei + ] + } }; const expectedState = { - 'hitchhiker/puzzle42': { - entries: [hitchhiker_puzzle42Permission_user_zwei], - }, + "hitchhiker/puzzle42": { + entries: [hitchhiker_puzzle42Permission_user_zwei] + } }; const newState = reducer( state, deletePermissionSuccess( hitchhiker_puzzle42Permission_user_eins, - 'hitchhiker', - 'puzzle42', - ), + "hitchhiker", + "puzzle42" + ) ); - expect(newState['hitchhiker/puzzle42']).toEqual( - expectedState['hitchhiker/puzzle42'], + expect(newState["hitchhiker/puzzle42"]).toEqual( + expectedState["hitchhiker/puzzle42"] ); }); - it('should add permission', () => { + it("should add permission", () => { //changing state had to be removed because of errors const oldState = { - 'hitchhiker/puzzle42': { - entries: [hitchhiker_puzzle42Permission_user_eins], - }, + "hitchhiker/puzzle42": { + entries: [hitchhiker_puzzle42Permission_user_eins] + } }; let expectedState = { - 'hitchhiker/puzzle42': { + "hitchhiker/puzzle42": { entries: [ hitchhiker_puzzle42Permission_user_eins, - hitchhiker_puzzle42Permission_user_zwei, - ], - }, + hitchhiker_puzzle42Permission_user_zwei + ] + } }; const newState = reducer( oldState, createPermissionSuccess( hitchhiker_puzzle42Permission_user_zwei, - 'hitchhiker', - 'puzzle42', - ), + "hitchhiker", + "puzzle42" + ) ); - expect(newState['hitchhiker/puzzle42']).toEqual( - expectedState['hitchhiker/puzzle42'], + expect(newState["hitchhiker/puzzle42"]).toEqual( + expectedState["hitchhiker/puzzle42"] ); }); }); -describe('permissions selectors', () => { - const error = new Error('something goes wrong'); +describe("permissions selectors", () => { + const error = new Error("something goes wrong"); - it('should return the permissions of one repository', () => { + it("should return the permissions of one repository", () => { const state = { permissions: { - 'hitchhiker/puzzle42': { - entries: hitchhiker_puzzle42Permissions, - }, - }, + "hitchhiker/puzzle42": { + entries: hitchhiker_puzzle42Permissions + } + } }; const repoPermissions = getPermissionsOfRepo( state, - 'hitchhiker', - 'puzzle42', + "hitchhiker", + "puzzle42" ); expect(repoPermissions).toEqual(hitchhiker_puzzle42Permissions); }); - it('should return true, when fetch permissions is pending', () => { + it("should return true, when fetch permissions is pending", () => { const state = { pending: { - [FETCH_PERMISSIONS + '/hitchhiker/puzzle42']: true, - }, + [FETCH_PERMISSIONS + "/hitchhiker/puzzle42"]: true + } }; - expect(isFetchPermissionsPending(state, 'hitchhiker', 'puzzle42')).toEqual( - true, + expect(isFetchPermissionsPending(state, "hitchhiker", "puzzle42")).toEqual( + true ); }); - it('should return false, when fetch permissions is not pending', () => { - expect(isFetchPermissionsPending({}, 'hitchiker', 'puzzle42')).toEqual( - false, + it("should return false, when fetch permissions is not pending", () => { + expect(isFetchPermissionsPending({}, "hitchiker", "puzzle42")).toEqual( + false ); }); - it('should return error when fetch permissions did fail', () => { + it("should return error when fetch permissions did fail", () => { const state = { failure: { - [FETCH_PERMISSIONS + '/hitchhiker/puzzle42']: error, - }, + [FETCH_PERMISSIONS + "/hitchhiker/puzzle42"]: error + } }; - expect(getFetchPermissionsFailure(state, 'hitchhiker', 'puzzle42')).toEqual( - error, + expect(getFetchPermissionsFailure(state, "hitchhiker", "puzzle42")).toEqual( + error ); }); - it('should return undefined when fetch permissions did not fail', () => { - expect(getFetchPermissionsFailure({}, 'hitchhiker', 'puzzle42')).toBe( - undefined, + it("should return undefined when fetch permissions did not fail", () => { + expect(getFetchPermissionsFailure({}, "hitchhiker", "puzzle42")).toBe( + undefined ); }); - it('should return true, when modify permission is pending', () => { + it("should return true, when modify permission is pending", () => { const state = { pending: { - [MODIFY_PERMISSION + '/hitchhiker/puzzle42/user_eins']: true, - }, + [MODIFY_PERMISSION + "/hitchhiker/puzzle42/user_eins"]: true + } }; expect( isModifyPermissionPending( state, - 'hitchhiker', - 'puzzle42', - hitchhiker_puzzle42Permission_user_eins, - ), + "hitchhiker", + "puzzle42", + hitchhiker_puzzle42Permission_user_eins + ) ).toEqual(true); }); - it('should return false, when modify permission is not pending', () => { + it("should return false, when modify permission is not pending", () => { expect( isModifyPermissionPending( {}, - 'hitchiker', - 'puzzle42', - hitchhiker_puzzle42Permission_user_eins, - ), + "hitchiker", + "puzzle42", + hitchhiker_puzzle42Permission_user_eins + ) ).toEqual(false); }); - it('should return error when modify permission did fail', () => { + it("should return error when modify permission did fail", () => { const state = { failure: { - [MODIFY_PERMISSION + '/hitchhiker/puzzle42/user_eins']: error, - }, + [MODIFY_PERMISSION + "/hitchhiker/puzzle42/user_eins"]: error + } }; expect( getModifyPermissionFailure( state, - 'hitchhiker', - 'puzzle42', - hitchhiker_puzzle42Permission_user_eins, - ), + "hitchhiker", + "puzzle42", + hitchhiker_puzzle42Permission_user_eins + ) ).toEqual(error); }); - it('should return undefined when modify permission did not fail', () => { + it("should return undefined when modify permission did not fail", () => { expect( getModifyPermissionFailure( {}, - 'hitchhiker', - 'puzzle42', - hitchhiker_puzzle42Permission_user_eins, - ), + "hitchhiker", + "puzzle42", + hitchhiker_puzzle42Permission_user_eins + ) ).toBe(undefined); }); - it('should return error when one of the modify permissions did fail', () => { + it("should return error when one of the modify permissions did fail", () => { const state = { permissions: { - 'hitchhiker/puzzle42': { - entries: hitchhiker_puzzle42Permissions, - }, + "hitchhiker/puzzle42": { + entries: hitchhiker_puzzle42Permissions + } }, failure: { - [MODIFY_PERMISSION + '/hitchhiker/puzzle42/user_eins']: error, - }, + [MODIFY_PERMISSION + "/hitchhiker/puzzle42/user_eins"]: error + } }; expect( - getModifyPermissionsFailure(state, 'hitchhiker', 'puzzle42'), + getModifyPermissionsFailure(state, "hitchhiker", "puzzle42") ).toEqual(error); }); - it('should return undefined when no modify permissions did not fail', () => { - expect(getModifyPermissionsFailure({}, 'hitchhiker', 'puzzle42')).toBe( - undefined, + it("should return undefined when no modify permissions did not fail", () => { + expect(getModifyPermissionsFailure({}, "hitchhiker", "puzzle42")).toBe( + undefined ); }); - it('should return true, when createPermission is true', () => { + it("should return true, when createPermission is true", () => { const state = { permissions: { - 'hitchhiker/puzzle42': { - createPermission: true, - }, - }, + "hitchhiker/puzzle42": { + createPermission: true + } + } }; - expect(hasCreatePermission(state, 'hitchhiker', 'puzzle42')).toBe(true); + expect(hasCreatePermission(state, "hitchhiker", "puzzle42")).toBe(true); }); - it('should return false, when createPermission is false', () => { + it("should return false, when createPermission is false", () => { const state = { permissions: { - 'hitchhiker/puzzle42': { - createPermission: false, - }, - }, + "hitchhiker/puzzle42": { + createPermission: false + } + } }; - expect(hasCreatePermission(state, 'hitchhiker', 'puzzle42')).toEqual(false); + expect(hasCreatePermission(state, "hitchhiker", "puzzle42")).toEqual(false); }); - it('should return true, when delete permission is pending', () => { + it("should return true, when delete permission is pending", () => { const state = { pending: { - [DELETE_PERMISSION + '/hitchhiker/puzzle42/user_eins']: true, - }, + [DELETE_PERMISSION + "/hitchhiker/puzzle42/user_eins"]: true + } }; expect( isDeletePermissionPending( state, - 'hitchhiker', - 'puzzle42', - hitchhiker_puzzle42Permission_user_eins, - ), + "hitchhiker", + "puzzle42", + hitchhiker_puzzle42Permission_user_eins + ) ).toEqual(true); }); - it('should return false, when delete permission is not pending', () => { + it("should return false, when delete permission is not pending", () => { expect( isDeletePermissionPending( {}, - 'hitchiker', - 'puzzle42', - hitchhiker_puzzle42Permission_user_eins, - ), + "hitchiker", + "puzzle42", + hitchhiker_puzzle42Permission_user_eins + ) ).toEqual(false); }); - it('should return error when delete permission did fail', () => { + it("should return error when delete permission did fail", () => { const state = { failure: { - [DELETE_PERMISSION + '/hitchhiker/puzzle42/user_eins']: error, - }, + [DELETE_PERMISSION + "/hitchhiker/puzzle42/user_eins"]: error + } }; expect( getDeletePermissionFailure( state, - 'hitchhiker', - 'puzzle42', - hitchhiker_puzzle42Permission_user_eins, - ), + "hitchhiker", + "puzzle42", + hitchhiker_puzzle42Permission_user_eins + ) ).toEqual(error); }); - it('should return undefined when delete permission did not fail', () => { + it("should return undefined when delete permission did not fail", () => { expect( getDeletePermissionFailure( {}, - 'hitchhiker', - 'puzzle42', - hitchhiker_puzzle42Permission_user_eins, - ), + "hitchhiker", + "puzzle42", + hitchhiker_puzzle42Permission_user_eins + ) ).toBe(undefined); }); - it('should return error when one of the delete permissions did fail', () => { + it("should return error when one of the delete permissions did fail", () => { const state = { permissions: { - 'hitchhiker/puzzle42': { - entries: hitchhiker_puzzle42Permissions, - }, + "hitchhiker/puzzle42": { + entries: hitchhiker_puzzle42Permissions + } }, failure: { - [DELETE_PERMISSION + '/hitchhiker/puzzle42/user_eins']: error, - }, + [DELETE_PERMISSION + "/hitchhiker/puzzle42/user_eins"]: error + } }; expect( - getDeletePermissionsFailure(state, 'hitchhiker', 'puzzle42'), + getDeletePermissionsFailure(state, "hitchhiker", "puzzle42") ).toEqual(error); }); - it('should return undefined when no delete permissions did not fail', () => { - expect(getDeletePermissionsFailure({}, 'hitchhiker', 'puzzle42')).toBe( - undefined, + it("should return undefined when no delete permissions did not fail", () => { + expect(getDeletePermissionsFailure({}, "hitchhiker", "puzzle42")).toBe( + undefined ); }); - it('should return true, when create permission is pending', () => { + it("should return true, when create permission is pending", () => { const state = { pending: { - [CREATE_PERMISSION + '/hitchhiker/puzzle42']: true, - }, + [CREATE_PERMISSION + "/hitchhiker/puzzle42"]: true + } }; - expect(isCreatePermissionPending(state, 'hitchhiker', 'puzzle42')).toEqual( - true, + expect(isCreatePermissionPending(state, "hitchhiker", "puzzle42")).toEqual( + true ); }); - it('should return false, when create permissions is not pending', () => { - expect(isCreatePermissionPending({}, 'hitchiker', 'puzzle42')).toEqual( - false, + it("should return false, when create permissions is not pending", () => { + expect(isCreatePermissionPending({}, "hitchiker", "puzzle42")).toEqual( + false ); }); - it('should return error when create permissions did fail', () => { + it("should return error when create permissions did fail", () => { const state = { failure: { - [CREATE_PERMISSION + '/hitchhiker/puzzle42']: error, - }, + [CREATE_PERMISSION + "/hitchhiker/puzzle42"]: error + } }; - expect(getCreatePermissionFailure(state, 'hitchhiker', 'puzzle42')).toEqual( - error, + expect(getCreatePermissionFailure(state, "hitchhiker", "puzzle42")).toEqual( + error ); }); - it('should return undefined when create permissions did not fail', () => { - expect(getCreatePermissionFailure({}, 'hitchhiker', 'puzzle42')).toBe( - undefined, + it("should return undefined when create permissions did not fail", () => { + expect(getCreatePermissionFailure({}, "hitchhiker", "puzzle42")).toBe( + undefined ); }); }); diff --git a/scm-ui/ui-webapp/src/repos/permissions/modules/permissions.ts b/scm-ui/ui-webapp/src/repos/permissions/modules/permissions.ts index ba347a9e08..5fce1214da 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/modules/permissions.ts +++ b/scm-ui/ui-webapp/src/repos/permissions/modules/permissions.ts @@ -1,47 +1,47 @@ -import { Action } from '@scm-manager/ui-components'; -import { apiClient } from '@scm-manager/ui-components'; -import * as types from '../../../modules/types'; +import { Action } from "@scm-manager/ui-components"; +import { apiClient } from "@scm-manager/ui-components"; +import * as types from "../../../modules/types"; import { RepositoryRole, Permission, PermissionCollection, - PermissionCreateEntry, -} from '@scm-manager/ui-types'; -import { isPending } from '../../../modules/pending'; -import { getFailure } from '../../../modules/failure'; -import { Dispatch } from 'redux'; + PermissionCreateEntry +} from "@scm-manager/ui-types"; +import { isPending } from "../../../modules/pending"; +import { getFailure } from "../../../modules/failure"; +import { Dispatch } from "redux"; -export const FETCH_AVAILABLE = 'scm/permissions/FETCH_AVAILABLE'; +export const FETCH_AVAILABLE = "scm/permissions/FETCH_AVAILABLE"; export const FETCH_AVAILABLE_PENDING = `${FETCH_AVAILABLE}_${types.PENDING_SUFFIX}`; export const FETCH_AVAILABLE_SUCCESS = `${FETCH_AVAILABLE}_${types.SUCCESS_SUFFIX}`; export const FETCH_AVAILABLE_FAILURE = `${FETCH_AVAILABLE}_${types.FAILURE_SUFFIX}`; -export const FETCH_PERMISSIONS = 'scm/permissions/FETCH_PERMISSIONS'; +export const FETCH_PERMISSIONS = "scm/permissions/FETCH_PERMISSIONS"; export const FETCH_PERMISSIONS_PENDING = `${FETCH_PERMISSIONS}_${types.PENDING_SUFFIX}`; export const FETCH_PERMISSIONS_SUCCESS = `${FETCH_PERMISSIONS}_${types.SUCCESS_SUFFIX}`; export const FETCH_PERMISSIONS_FAILURE = `${FETCH_PERMISSIONS}_${types.FAILURE_SUFFIX}`; -export const MODIFY_PERMISSION = 'scm/permissions/MODFIY_PERMISSION'; +export const MODIFY_PERMISSION = "scm/permissions/MODFIY_PERMISSION"; export const MODIFY_PERMISSION_PENDING = `${MODIFY_PERMISSION}_${types.PENDING_SUFFIX}`; export const MODIFY_PERMISSION_SUCCESS = `${MODIFY_PERMISSION}_${types.SUCCESS_SUFFIX}`; export const MODIFY_PERMISSION_FAILURE = `${MODIFY_PERMISSION}_${types.FAILURE_SUFFIX}`; export const MODIFY_PERMISSION_RESET = `${MODIFY_PERMISSION}_${types.RESET_SUFFIX}`; -export const CREATE_PERMISSION = 'scm/permissions/CREATE_PERMISSION'; +export const CREATE_PERMISSION = "scm/permissions/CREATE_PERMISSION"; export const CREATE_PERMISSION_PENDING = `${CREATE_PERMISSION}_${types.PENDING_SUFFIX}`; export const CREATE_PERMISSION_SUCCESS = `${CREATE_PERMISSION}_${types.SUCCESS_SUFFIX}`; export const CREATE_PERMISSION_FAILURE = `${CREATE_PERMISSION}_${types.FAILURE_SUFFIX}`; export const CREATE_PERMISSION_RESET = `${CREATE_PERMISSION}_${types.RESET_SUFFIX}`; -export const DELETE_PERMISSION = 'scm/permissions/DELETE_PERMISSION'; +export const DELETE_PERMISSION = "scm/permissions/DELETE_PERMISSION"; export const DELETE_PERMISSION_PENDING = `${DELETE_PERMISSION}_${types.PENDING_SUFFIX}`; export const DELETE_PERMISSION_SUCCESS = `${DELETE_PERMISSION}_${types.SUCCESS_SUFFIX}`; export const DELETE_PERMISSION_FAILURE = `${DELETE_PERMISSION}_${types.FAILURE_SUFFIX}`; export const DELETE_PERMISSION_RESET = `${DELETE_PERMISSION}_${types.RESET_SUFFIX}`; -const CONTENT_TYPE = 'application/vnd.scmm-repositoryPermission+json'; +const CONTENT_TYPE = "application/vnd.scmm-repositoryPermission+json"; // fetch available permissions export function fetchAvailablePermissionsIfNeeded( repositoryRolesLink: string, - repositoryVerbsLink: string, + repositoryVerbsLink: string ) { return function(dispatch: any, getState: () => object) { if (shouldFetchAvailablePermissions(getState())) { @@ -49,7 +49,7 @@ export function fetchAvailablePermissionsIfNeeded( dispatch, getState, repositoryRolesLink, - repositoryVerbsLink, + repositoryVerbsLink ); } }; @@ -59,7 +59,7 @@ export function fetchAvailablePermissions( dispatch: any, getState: () => object, repositoryRolesLink: string, - repositoryVerbsLink: string, + repositoryVerbsLink: string ) { dispatch(fetchAvailablePending()); return apiClient @@ -74,7 +74,7 @@ export function fetchAvailablePermissions( .then(repositoryVerbs => { return { repositoryVerbs, - repositoryRoles, + repositoryRoles }; }); }) @@ -100,17 +100,17 @@ export function fetchAvailablePending(): Action { return { type: FETCH_AVAILABLE_PENDING, payload: {}, - itemId: 'available', + itemId: "available" }; } export function fetchAvailableSuccess( - available: [RepositoryRole[], string[]], + available: [RepositoryRole[], string[]] ): Action { return { type: FETCH_AVAILABLE_SUCCESS, payload: available, - itemId: 'available', + itemId: "available" }; } @@ -118,9 +118,9 @@ export function fetchAvailableFailure(error: Error): Action { return { type: FETCH_AVAILABLE_FAILURE, payload: { - error, + error }, - itemId: 'available', + itemId: "available" }; } @@ -129,7 +129,7 @@ export function fetchAvailableFailure(error: Error): Action { export function fetchPermissions( link: string, namespace: string, - repoName: string, + repoName: string ) { return function(dispatch: any) { dispatch(fetchPermissionsPending(namespace, repoName)); @@ -147,43 +147,43 @@ export function fetchPermissions( export function fetchPermissionsPending( namespace: string, - repoName: string, + repoName: string ): Action { return { type: FETCH_PERMISSIONS_PENDING, payload: { namespace, - repoName, + repoName }, - itemId: namespace + '/' + repoName, + itemId: namespace + "/" + repoName }; } export function fetchPermissionsSuccess( permissions: any, namespace: string, - repoName: string, + repoName: string ): Action { return { type: FETCH_PERMISSIONS_SUCCESS, payload: permissions, - itemId: namespace + '/' + repoName, + itemId: namespace + "/" + repoName }; } export function fetchPermissionsFailure( namespace: string, repoName: string, - error: Error, + error: Error ): Action { return { type: FETCH_PERMISSIONS_FAILURE, payload: { namespace, repoName, - error, + error }, - itemId: namespace + '/' + repoName, + itemId: namespace + "/" + repoName }; } @@ -193,7 +193,7 @@ export function modifyPermission( permission: Permission, namespace: string, repoName: string, - callback?: () => void, + callback?: () => void ) { return function(dispatch: any) { dispatch(modifyPermissionPending(permission, namespace, repoName)); @@ -214,27 +214,27 @@ export function modifyPermission( export function modifyPermissionPending( permission: Permission, namespace: string, - repoName: string, + repoName: string ): Action { return { type: MODIFY_PERMISSION_PENDING, payload: permission, - itemId: createItemId(permission, namespace, repoName), + itemId: createItemId(permission, namespace, repoName) }; } export function modifyPermissionSuccess( permission: Permission, namespace: string, - repoName: string, + repoName: string ): Action { return { type: MODIFY_PERMISSION_SUCCESS, payload: { permission, - position: namespace + '/' + repoName, + position: namespace + "/" + repoName }, - itemId: createItemId(permission, namespace, repoName), + itemId: createItemId(permission, namespace, repoName) }; } @@ -242,21 +242,21 @@ export function modifyPermissionFailure( permission: Permission, error: Error, namespace: string, - repoName: string, + repoName: string ): Action { return { type: MODIFY_PERMISSION_FAILURE, payload: { error, - permission, + permission }, - itemId: createItemId(permission, namespace, repoName), + itemId: createItemId(permission, namespace, repoName) }; } function newPermissions( oldPermissions: PermissionCollection, - newPermission: Permission, + newPermission: Permission ) { for (let i = 0; i < oldPermissions.length; i++) { if (oldPermissions[i].name === newPermission.name) { @@ -271,9 +271,9 @@ export function modifyPermissionReset(namespace: string, repoName: string) { type: MODIFY_PERMISSION_RESET, payload: { namespace, - repoName, + repoName }, - itemId: namespace + '/' + repoName, + itemId: namespace + "/" + repoName }; } @@ -283,27 +283,27 @@ export function createPermission( permission: PermissionCreateEntry, namespace: string, repoName: string, - callback?: () => void, + callback?: () => void ) { return function(dispatch: Dispatch) { dispatch(createPermissionPending(permission, namespace, repoName)); return apiClient .post(link, permission, CONTENT_TYPE) .then(response => { - const location = response.headers.get('Location'); + const location = response.headers.get("Location"); return apiClient.get(location); }) .then(response => response.json()) .then(createdPermission => { dispatch( - createPermissionSuccess(createdPermission, namespace, repoName), + createPermissionSuccess(createdPermission, namespace, repoName) ); if (callback) { callback(); } }) .catch(err => - dispatch(createPermissionFailure(err, namespace, repoName)), + dispatch(createPermissionFailure(err, namespace, repoName)) ); }; } @@ -311,46 +311,46 @@ export function createPermission( export function createPermissionPending( permission: PermissionCreateEntry, namespace: string, - repoName: string, + repoName: string ): Action { return { type: CREATE_PERMISSION_PENDING, payload: permission, - itemId: namespace + '/' + repoName, + itemId: namespace + "/" + repoName }; } export function createPermissionSuccess( permission: PermissionCreateEntry, namespace: string, - repoName: string, + repoName: string ): Action { return { type: CREATE_PERMISSION_SUCCESS, payload: { permission, - position: namespace + '/' + repoName, + position: namespace + "/" + repoName }, - itemId: namespace + '/' + repoName, + itemId: namespace + "/" + repoName }; } export function createPermissionFailure( error: Error, namespace: string, - repoName: string, + repoName: string ): Action { return { type: CREATE_PERMISSION_FAILURE, payload: error, - itemId: namespace + '/' + repoName, + itemId: namespace + "/" + repoName }; } export function createPermissionReset(namespace: string, repoName: string) { return { type: CREATE_PERMISSION_RESET, - itemId: namespace + '/' + repoName, + itemId: namespace + "/" + repoName }; } @@ -360,7 +360,7 @@ export function deletePermission( permission: Permission, namespace: string, repoName: string, - callback?: () => void, + callback?: () => void ) { return function(dispatch: any) { dispatch(deletePermissionPending(permission, namespace, repoName)); @@ -381,27 +381,27 @@ export function deletePermission( export function deletePermissionPending( permission: Permission, namespace: string, - repoName: string, + repoName: string ): Action { return { type: DELETE_PERMISSION_PENDING, payload: permission, - itemId: createItemId(permission, namespace, repoName), + itemId: createItemId(permission, namespace, repoName) }; } export function deletePermissionSuccess( permission: Permission, namespace: string, - repoName: string, + repoName: string ): Action { return { type: DELETE_PERMISSION_SUCCESS, payload: { permission, - position: namespace + '/' + repoName, + position: namespace + "/" + repoName }, - itemId: createItemId(permission, namespace, repoName), + itemId: createItemId(permission, namespace, repoName) }; } @@ -409,15 +409,15 @@ export function deletePermissionFailure( permission: Permission, namespace: string, repoName: string, - error: Error, + error: Error ): Action { return { type: DELETE_PERMISSION_FAILURE, payload: { error, - permission, + permission }, - itemId: createItemId(permission, namespace, repoName), + itemId: createItemId(permission, namespace, repoName) }; } @@ -426,15 +426,15 @@ export function deletePermissionReset(namespace: string, repoName: string) { type: DELETE_PERMISSION_RESET, payload: { namespace, - repoName, + repoName }, - itemId: namespace + '/' + repoName, + itemId: namespace + "/" + repoName }; } function deletePermissionFromState( oldPermissions: PermissionCollection, - permission: Permission, + permission: Permission ) { let newPermission = []; for (let i = 0; i < oldPermissions.length; i++) { @@ -451,18 +451,18 @@ function deletePermissionFromState( function createItemId( permission: Permission, namespace: string, - repoName: string, + repoName: string ) { - let groupPermission = permission.groupPermission ? '@' : ''; - return namespace + '/' + repoName + '/' + groupPermission + permission.name; + let groupPermission = permission.groupPermission ? "@" : ""; + return namespace + "/" + repoName + "/" + groupPermission + permission.name; } // reducer export default function reducer( state: object = {}, action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): object { if (!action.payload) { return state; @@ -471,28 +471,28 @@ export default function reducer( case FETCH_AVAILABLE_SUCCESS: return { ...state, - available: action.payload, + available: action.payload }; case FETCH_PERMISSIONS_SUCCESS: return { ...state, [action.itemId]: { entries: action.payload._embedded.permissions, - createPermission: !!action.payload._links.create, - }, + createPermission: !!action.payload._links.create + } }; case MODIFY_PERMISSION_SUCCESS: const positionOfPermission = action.payload.position; const newPermission = newPermissions( state[action.payload.position].entries, - action.payload.permission, + action.payload.permission ); return { ...state, [positionOfPermission]: { ...state[positionOfPermission], - entries: newPermission, - }, + entries: newPermission + } }; case CREATE_PERMISSION_SUCCESS: // return state; @@ -503,21 +503,21 @@ export default function reducer( ...state, [position]: { ...state[position], - entries: permissions, - }, + entries: permissions + } }; case DELETE_PERMISSION_SUCCESS: const permissionPosition = action.payload.position; const new_Permissions = deletePermissionFromState( state[action.payload.position].entries, - action.payload.permission, + action.payload.permission ); return { ...state, [permissionPosition]: { ...state[permissionPosition], - entries: new_Permissions, - }, + entries: new_Permissions + } }; default: return state; @@ -550,47 +550,47 @@ function available(state: object) { export function getPermissionsOfRepo( state: object, namespace: string, - repoName: string, + repoName: string ) { - if (state.permissions && state.permissions[namespace + '/' + repoName]) { - return state.permissions[namespace + '/' + repoName].entries; + if (state.permissions && state.permissions[namespace + "/" + repoName]) { + return state.permissions[namespace + "/" + repoName].entries; } } export function isFetchAvailablePermissionsPending(state: object) { - return isPending(state, FETCH_AVAILABLE, 'available'); + return isPending(state, FETCH_AVAILABLE, "available"); } export function isFetchPermissionsPending( state: object, namespace: string, - repoName: string, + repoName: string ) { - return isPending(state, FETCH_PERMISSIONS, namespace + '/' + repoName); + return isPending(state, FETCH_PERMISSIONS, namespace + "/" + repoName); } export function getFetchAvailablePermissionsFailure(state: object) { - return getFailure(state, FETCH_AVAILABLE, 'available'); + return getFailure(state, FETCH_AVAILABLE, "available"); } export function getFetchPermissionsFailure( state: object, namespace: string, - repoName: string, + repoName: string ) { - return getFailure(state, FETCH_PERMISSIONS, namespace + '/' + repoName); + return getFailure(state, FETCH_PERMISSIONS, namespace + "/" + repoName); } export function isModifyPermissionPending( state: object, namespace: string, repoName: string, - permission: Permission, + permission: Permission ) { return isPending( state, MODIFY_PERMISSION, - createItemId(permission, namespace, repoName), + createItemId(permission, namespace, repoName) ); } @@ -598,51 +598,51 @@ export function getModifyPermissionFailure( state: object, namespace: string, repoName: string, - permission: Permission, + permission: Permission ) { return getFailure( state, MODIFY_PERMISSION, - createItemId(permission, namespace, repoName), + createItemId(permission, namespace, repoName) ); } export function hasCreatePermission( state: object, namespace: string, - repoName: string, + repoName: string ) { - if (state.permissions && state.permissions[namespace + '/' + repoName]) - return state.permissions[namespace + '/' + repoName].createPermission; + if (state.permissions && state.permissions[namespace + "/" + repoName]) + return state.permissions[namespace + "/" + repoName].createPermission; else return null; } export function isCreatePermissionPending( state: object, namespace: string, - repoName: string, + repoName: string ) { - return isPending(state, CREATE_PERMISSION, namespace + '/' + repoName); + return isPending(state, CREATE_PERMISSION, namespace + "/" + repoName); } export function getCreatePermissionFailure( state: object, namespace: string, - repoName: string, + repoName: string ) { - return getFailure(state, CREATE_PERMISSION, namespace + '/' + repoName); + return getFailure(state, CREATE_PERMISSION, namespace + "/" + repoName); } export function isDeletePermissionPending( state: object, namespace: string, repoName: string, - permission: Permission, + permission: Permission ) { return isPending( state, DELETE_PERMISSION, - createItemId(permission, namespace, repoName), + createItemId(permission, namespace, repoName) ); } @@ -650,23 +650,23 @@ export function getDeletePermissionFailure( state: object, namespace: string, repoName: string, - permission: Permission, + permission: Permission ) { return getFailure( state, DELETE_PERMISSION, - createItemId(permission, namespace, repoName), + createItemId(permission, namespace, repoName) ); } export function getDeletePermissionsFailure( state: object, namespace: string, - repoName: string, + repoName: string ) { const permissions = - state.permissions && state.permissions[namespace + '/' + repoName] - ? state.permissions[namespace + '/' + repoName].entries + state.permissions && state.permissions[namespace + "/" + repoName] + ? state.permissions[namespace + "/" + repoName].entries : null; if (permissions == null) return undefined; for (let i = 0; i < permissions.length; i++) { @@ -676,7 +676,7 @@ export function getDeletePermissionsFailure( return getFailure( state, DELETE_PERMISSION, - createItemId(permissions[i], namespace, repoName), + createItemId(permissions[i], namespace, repoName) ); } } @@ -686,11 +686,11 @@ export function getDeletePermissionsFailure( export function getModifyPermissionsFailure( state: object, namespace: string, - repoName: string, + repoName: string ) { const permissions = - state.permissions && state.permissions[namespace + '/' + repoName] - ? state.permissions[namespace + '/' + repoName].entries + state.permissions && state.permissions[namespace + "/" + repoName] + ? state.permissions[namespace + "/" + repoName].entries : null; if (permissions == null) return undefined; for (let i = 0; i < permissions.length; i++) { @@ -700,7 +700,7 @@ export function getModifyPermissionsFailure( return getFailure( state, MODIFY_PERMISSION, - createItemId(permissions[i], namespace, repoName), + createItemId(permissions[i], namespace, repoName) ); } } @@ -709,10 +709,10 @@ export function getModifyPermissionsFailure( export function findVerbsForRole( availableRepositoryRoles: RepositoryRole[], - roleName: string, + roleName: string ) { const matchingRole = availableRepositoryRoles.find( - role => roleName === role.name, + role => roleName === role.name ); if (matchingRole) { return matchingRole.verbs; diff --git a/scm-ui/ui-webapp/src/repos/sources/components/FileIcon.tsx b/scm-ui/ui-webapp/src/repos/sources/components/FileIcon.tsx index 7106de8fb2..49190b9e5c 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/FileIcon.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/components/FileIcon.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import { File } from '@scm-manager/ui-types'; +import React from "react"; +import { File } from "@scm-manager/ui-types"; type Props = { file: File; @@ -8,11 +8,11 @@ type Props = { class FileIcon extends React.Component<Props> { render() { const { file } = this.props; - let icon = 'file'; + let icon = "file"; if (file.subRepository) { - icon = 'folder-plus'; + icon = "folder-plus"; } else if (file.directory) { - icon = 'folder'; + icon = "folder"; } return <i className={`fa fa-${icon}`} />; } diff --git a/scm-ui/ui-webapp/src/repos/sources/components/FileTree.test.ts b/scm-ui/ui-webapp/src/repos/sources/components/FileTree.test.ts index 12a5a14c19..491d51420d 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/FileTree.test.ts +++ b/scm-ui/ui-webapp/src/repos/sources/components/FileTree.test.ts @@ -1,10 +1,10 @@ -import { findParent } from './FileTree'; +import { findParent } from "./FileTree"; -describe('find parent tests', () => { - it('should return the parent path', () => { - expect(findParent('src/main/js/')).toBe('src/main'); - expect(findParent('src/main/js')).toBe('src/main'); - expect(findParent('src/main')).toBe('src'); - expect(findParent('src')).toBe(''); +describe("find parent tests", () => { + it("should return the parent path", () => { + expect(findParent("src/main/js/")).toBe("src/main"); + expect(findParent("src/main/js")).toBe("src/main"); + expect(findParent("src/main")).toBe("src"); + expect(findParent("src")).toBe(""); }); }); diff --git a/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx b/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx index 863efbad32..4ed026b684 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx @@ -1,22 +1,22 @@ -import React from 'react'; -import { compose } from 'redux'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import { translate } from 'react-i18next'; -import styled from 'styled-components'; -import { binder } from '@scm-manager/ui-extensions'; -import { Repository, File } from '@scm-manager/ui-types'; +import React from "react"; +import { compose } from "redux"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import { translate } from "react-i18next"; +import styled from "styled-components"; +import { binder } from "@scm-manager/ui-extensions"; +import { Repository, File } from "@scm-manager/ui-types"; import { ErrorNotification, Loading, - Notification, -} from '@scm-manager/ui-components'; + Notification +} from "@scm-manager/ui-components"; import { getFetchSourcesFailure, isFetchSourcesPending, - getSources, -} from '../modules/sources'; -import FileTreeLeaf from './FileTreeLeaf'; + getSources +} from "../modules/sources"; +import FileTreeLeaf from "./FileTreeLeaf"; type Props = { loading: boolean; @@ -37,15 +37,15 @@ const FixedWidthTh = styled.th` `; export function findParent(path: string) { - if (path.endsWith('/')) { + if (path.endsWith("/")) { path = path.substring(0, path.length - 1); } - const index = path.lastIndexOf('/'); + const index = path.lastIndexOf("/"); if (index > 0) { return path.substring(0, index); } - return ''; + return ""; } class FileTree extends React.Component<Props> { @@ -73,9 +73,9 @@ class FileTree extends React.Component<Props> { if (path) { files.push({ - name: '..', + name: "..", path: findParent(path), - directory: true, + directory: true }); } @@ -102,9 +102,9 @@ class FileTree extends React.Component<Props> { if (files && files.length > 0) { let baseUrlWithRevision = baseUrl; if (revision) { - baseUrlWithRevision += '/' + encodeURIComponent(revision); + baseUrlWithRevision += "/" + encodeURIComponent(revision); } else { - baseUrlWithRevision += '/' + encodeURIComponent(tree.revision); + baseUrlWithRevision += "/" + encodeURIComponent(tree.revision); } return ( @@ -112,17 +112,17 @@ class FileTree extends React.Component<Props> { <thead> <tr> <FixedWidthTh /> - <th>{t('sources.file-tree.name')}</th> + <th>{t("sources.file-tree.name")}</th> <th className="is-hidden-mobile"> - {t('sources.file-tree.length')} + {t("sources.file-tree.length")} </th> <th className="is-hidden-mobile"> - {t('sources.file-tree.lastModified')} + {t("sources.file-tree.lastModified")} </th> <th className="is-hidden-mobile"> - {t('sources.file-tree.description')} + {t("sources.file-tree.description")} </th> - {binder.hasExtension('repos.sources.tree.row.right') && ( + {binder.hasExtension("repos.sources.tree.row.right") && ( <th className="is-hidden-mobile" /> )} </tr> @@ -139,7 +139,7 @@ class FileTree extends React.Component<Props> { </table> ); } - return <Notification type="info">{t('sources.noSources')}</Notification>; + return <Notification type="info">{t("sources.noSources")}</Notification>; } } @@ -155,11 +155,11 @@ const mapStateToProps = (state: any, ownProps: Props) => { path, loading, error, - tree, + tree }; }; export default compose( withRouter, - connect(mapStateToProps), -)(translate('repos')(FileTree)); + connect(mapStateToProps) +)(translate("repos")(FileTree)); diff --git a/scm-ui/ui-webapp/src/repos/sources/components/FileTreeLeaf.test.ts b/scm-ui/ui-webapp/src/repos/sources/components/FileTreeLeaf.test.ts index 3428a91fae..6a73fdab03 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/FileTreeLeaf.test.ts +++ b/scm-ui/ui-webapp/src/repos/sources/components/FileTreeLeaf.test.ts @@ -1,28 +1,28 @@ -import { createLink } from './FileTreeLeaf'; -import { File } from '@scm-manager/ui-types'; +import { createLink } from "./FileTreeLeaf"; +import { File } from "@scm-manager/ui-types"; -describe('create link tests', () => { +describe("create link tests", () => { function dir(path: string): File { return { - name: 'dir', + name: "dir", path: path, directory: true, length: 1, - revision: '1a', + revision: "1a", _links: {}, _embedded: { - children: [], - }, + children: [] + } }; } - it('should create link', () => { - expect(createLink('src', dir('main'))).toBe('src/main/'); - expect(createLink('src', dir('/main'))).toBe('src/main/'); - expect(createLink('src', dir('/main/'))).toBe('src/main/'); + it("should create link", () => { + expect(createLink("src", dir("main"))).toBe("src/main/"); + expect(createLink("src", dir("/main"))).toBe("src/main/"); + expect(createLink("src", dir("/main/"))).toBe("src/main/"); }); - it('should return base url if the directory path is empty', () => { - expect(createLink('src', dir(''))).toBe('src/'); + it("should return base url if the directory path is empty", () => { + expect(createLink("src", dir(""))).toBe("src/"); }); }); diff --git a/scm-ui/ui-webapp/src/repos/sources/components/FileTreeLeaf.tsx b/scm-ui/ui-webapp/src/repos/sources/components/FileTreeLeaf.tsx index f42ad9a221..d774cbd2a9 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/FileTreeLeaf.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/components/FileTreeLeaf.tsx @@ -1,11 +1,11 @@ -import * as React from 'react'; -import { Link } from 'react-router-dom'; -import classNames from 'classnames'; -import styled from 'styled-components'; -import { binder, ExtensionPoint } from '@scm-manager/ui-extensions'; -import { File } from '@scm-manager/ui-types'; -import { DateFromNow, FileSize } from '@scm-manager/ui-components'; -import FileIcon from './FileIcon'; +import * as React from "react"; +import { Link } from "react-router-dom"; +import classNames from "classnames"; +import styled from "styled-components"; +import { binder, ExtensionPoint } from "@scm-manager/ui-extensions"; +import { File } from "@scm-manager/ui-types"; +import { DateFromNow, FileSize } from "@scm-manager/ui-components"; +import FileIcon from "./FileIcon"; type Props = { file: File; @@ -20,13 +20,13 @@ export function createLink(base: string, file: File) { let link = base; if (file.path) { let path = file.path; - if (path.startsWith('/')) { + if (path.startsWith("/")) { path = path.substring(1); } - link += '/' + path; + link += "/" + path; } - if (!link.endsWith('/')) { - link += '/'; + if (!link.endsWith("/")) { + link += "/"; } return link; } @@ -61,7 +61,7 @@ export default class FileTreeLeaf extends React.Component<Props> { render() { const { file } = this.props; - const fileSize = file.directory ? '' : <FileSize bytes={file.length} />; + const fileSize = file.directory ? "" : <FileSize bytes={file.length} />; return ( <tr> @@ -73,16 +73,16 @@ export default class FileTreeLeaf extends React.Component<Props> { <td className="is-hidden-mobile"> <DateFromNow date={file.lastModified} /> </td> - <MinWidthTd className={classNames('is-word-break', 'is-hidden-mobile')}> + <MinWidthTd className={classNames("is-word-break", "is-hidden-mobile")}> {file.description} </MinWidthTd> - {binder.hasExtension('repos.sources.tree.row.right') && ( + {binder.hasExtension("repos.sources.tree.row.right") && ( <td className="is-hidden-mobile"> {!file.directory && ( <ExtensionPoint name="repos.sources.tree.row.right" props={{ - file, + file }} renderAll={true} /> diff --git a/scm-ui/ui-webapp/src/repos/sources/components/content/DownloadViewer.tsx b/scm-ui/ui-webapp/src/repos/sources/components/content/DownloadViewer.tsx index cf86d8944d..54cd4e5f12 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/content/DownloadViewer.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/components/content/DownloadViewer.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { File } from '@scm-manager/ui-types'; -import { DownloadButton } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { File } from "@scm-manager/ui-types"; +import { DownloadButton } from "@scm-manager/ui-components"; type Props = { t: (p: string) => string; @@ -15,11 +15,11 @@ class DownloadViewer extends React.Component<Props> { <div className="has-text-centered"> <DownloadButton url={file._links.self.href} - displayName={t('sources.content.downloadButton')} + displayName={t("sources.content.downloadButton")} /> </div> ); } } -export default translate('repos')(DownloadViewer); +export default translate("repos")(DownloadViewer); diff --git a/scm-ui/ui-webapp/src/repos/sources/components/content/FileButtonAddons.tsx b/scm-ui/ui-webapp/src/repos/sources/components/content/FileButtonAddons.tsx index 6d603b89ed..b8acb118d1 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/content/FileButtonAddons.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/components/content/FileButtonAddons.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { ButtonAddons, Button } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { ButtonAddons, Button } from "@scm-manager/ui-components"; type Props = { className?: string; @@ -19,7 +19,7 @@ class FileButtonAddons extends React.Component<Props> { }; color = (selected: boolean) => { - return selected ? 'link is-selected' : null; + return selected ? "link is-selected" : null; }; render() { @@ -27,7 +27,7 @@ class FileButtonAddons extends React.Component<Props> { return ( <ButtonAddons className={className}> - <div title={t('sources.content.sourcesButton')}> + <div title={t("sources.content.sourcesButton")}> <Button action={this.showSources} className="reduced" @@ -38,7 +38,7 @@ class FileButtonAddons extends React.Component<Props> { </span> </Button> </div> - <div title={t('sources.content.historyButton')}> + <div title={t("sources.content.historyButton")}> <Button action={this.showHistory} className="reduced" @@ -54,4 +54,4 @@ class FileButtonAddons extends React.Component<Props> { } } -export default translate('repos')(FileButtonAddons); +export default translate("repos")(FileButtonAddons); diff --git a/scm-ui/ui-webapp/src/repos/sources/components/content/ImageViewer.tsx b/scm-ui/ui-webapp/src/repos/sources/components/content/ImageViewer.tsx index efd0100023..5591b90180 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/content/ImageViewer.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/components/content/ImageViewer.tsx @@ -1,6 +1,6 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { File } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import { File } from "@scm-manager/ui-types"; type Props = { t: (p: string) => string; @@ -20,4 +20,4 @@ class ImageViewer extends React.Component<Props> { } } -export default translate('repos')(ImageViewer); +export default translate("repos")(ImageViewer); diff --git a/scm-ui/ui-webapp/src/repos/sources/components/content/SourcecodeViewer.test.ts b/scm-ui/ui-webapp/src/repos/sources/components/content/SourcecodeViewer.test.ts index 6d92e846ef..4299cf6c27 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/content/SourcecodeViewer.test.ts +++ b/scm-ui/ui-webapp/src/repos/sources/components/content/SourcecodeViewer.test.ts @@ -1,29 +1,29 @@ -import fetchMock from 'fetch-mock'; -import { getContent, getLanguage } from './SourcecodeViewer'; +import fetchMock from "fetch-mock"; +import { getContent, getLanguage } from "./SourcecodeViewer"; -describe('get content', () => { - const CONTENT_URL = '/repositories/scmadmin/TestRepo/content/testContent'; +describe("get content", () => { + const CONTENT_URL = "/repositories/scmadmin/TestRepo/content/testContent"; afterEach(() => { fetchMock.reset(); fetchMock.restore(); }); - it('should return content', done => { - fetchMock.getOnce('/api/v2' + CONTENT_URL, 'This is a testContent'); + it("should return content", done => { + fetchMock.getOnce("/api/v2" + CONTENT_URL, "This is a testContent"); getContent(CONTENT_URL).then(content => { - expect(content).toBe('This is a testContent'); + expect(content).toBe("This is a testContent"); done(); }); }); }); -describe('get correct language type', () => { - it('should return javascript', () => { - expect(getLanguage('JAVASCRIPT')).toBe('javascript'); +describe("get correct language type", () => { + it("should return javascript", () => { + expect(getLanguage("JAVASCRIPT")).toBe("javascript"); }); - it('should return nothing for plain text', () => { - expect(getLanguage('')).toBe(''); + it("should return nothing for plain text", () => { + expect(getLanguage("")).toBe(""); }); }); diff --git a/scm-ui/ui-webapp/src/repos/sources/components/content/SourcecodeViewer.tsx b/scm-ui/ui-webapp/src/repos/sources/components/content/SourcecodeViewer.tsx index 5238234c87..60696ec676 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/content/SourcecodeViewer.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/components/content/SourcecodeViewer.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { apiClient, SyntaxHighlighter } from '@scm-manager/ui-components'; -import { File } from '@scm-manager/ui-types'; -import { ErrorNotification, Loading } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { apiClient, SyntaxHighlighter } from "@scm-manager/ui-components"; +import { File } from "@scm-manager/ui-types"; +import { ErrorNotification, Loading } from "@scm-manager/ui-components"; type Props = { t: (p: string) => string; @@ -21,8 +21,8 @@ class SourcecodeViewer extends React.Component<Props, State> { super(props); this.state = { - content: '', - loaded: false, + content: "", + loaded: false }; } @@ -34,13 +34,13 @@ class SourcecodeViewer extends React.Component<Props, State> { this.setState({ ...this.state, error: result.error, - loaded: true, + loaded: true }); } else { this.setState({ ...this.state, content: result, - loaded: true, + loaded: true }); } }) @@ -82,9 +82,9 @@ export function getContent(url: string) { }) .catch(err => { return { - error: err, + error: err }; }); } -export default translate('repos')(SourcecodeViewer); +export default translate("repos")(SourcecodeViewer); diff --git a/scm-ui/ui-webapp/src/repos/sources/containers/Content.tsx b/scm-ui/ui-webapp/src/repos/sources/containers/Content.tsx index c0482f37a7..880ae809ad 100644 --- a/scm-ui/ui-webapp/src/repos/sources/containers/Content.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/containers/Content.tsx @@ -1,20 +1,20 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import classNames from 'classnames'; -import styled from 'styled-components'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; -import { File, Repository } from '@scm-manager/ui-types'; +import React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import classNames from "classnames"; +import styled from "styled-components"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import { File, Repository } from "@scm-manager/ui-types"; import { DateFromNow, ErrorNotification, FileSize, - Icon, -} from '@scm-manager/ui-components'; -import { getSources } from '../modules/sources'; -import FileButtonAddons from '../components/content/FileButtonAddons'; -import SourcesView from './SourcesView'; -import HistoryView from './HistoryView'; + Icon +} from "@scm-manager/ui-components"; +import { getSources } from "../modules/sources"; +import FileButtonAddons from "../components/content/FileButtonAddons"; +import SourcesView from "./SourcesView"; +import HistoryView from "./HistoryView"; type Props = { loading: boolean; @@ -59,33 +59,33 @@ class Content extends React.Component<Props, State> { this.state = { collapsed: true, - showHistory: false, + showHistory: false }; } toggleCollapse = () => { this.setState(prevState => ({ - collapsed: !prevState.collapsed, + collapsed: !prevState.collapsed })); }; setShowHistoryState(showHistory: boolean) { this.setState({ ...this.state, - showHistory, + showHistory }); } handleExtensionError = (error: Error) => { this.setState({ - errorFromExtension: error, + errorFromExtension: error }); }; showHeader() { const { file, revision } = this.props; const { showHistory, collapsed } = this.state; - const icon = collapsed ? 'angle-right' : 'angle-down'; + const icon = collapsed ? "angle-right" : "angle-down"; const selector = file._links.history ? ( <RightMarginFileButtonAddons @@ -99,7 +99,7 @@ class Content extends React.Component<Props, State> { return ( <span className="has-cursor-pointer"> - <VCenteredChild className={classNames('media', 'is-flex')}> + <VCenteredChild className={classNames("media", "is-flex")}> <div className="media-content" onClick={this.toggleCollapse}> <RightMarginIcon name={icon} color="inherit" /> <span className="is-word-break">{file.name}</span> @@ -111,7 +111,7 @@ class Content extends React.Component<Props, State> { props={{ file, revision, - handleExtensionError: this.handleExtensionError, + handleExtensionError: this.handleExtensionError }} renderAll={true} /> @@ -127,7 +127,7 @@ class Content extends React.Component<Props, State> { const date = <DateFromNow date={file.lastModified} />; const description = file.description ? ( <p> - {file.description.split('\n').map((item, key) => { + {file.description.split("\n").map((item, key) => { return ( <span key={key}> {item} @@ -137,30 +137,30 @@ class Content extends React.Component<Props, State> { })} </p> ) : null; - const fileSize = file.directory ? '' : <FileSize bytes={file.length} />; + const fileSize = file.directory ? "" : <FileSize bytes={file.length} />; if (!collapsed) { return ( <LighterGreyBackgroundPanelBlock className="panel-block"> <LighterGreyBackgroundTable className="table"> <tbody> <tr> - <td>{t('sources.content.path')}</td> + <td>{t("sources.content.path")}</td> <td className="is-word-break">{file.path}</td> </tr> <tr> - <td>{t('sources.content.branch')}</td> + <td>{t("sources.content.branch")}</td> <td className="is-word-break">{revision}</td> </tr> <tr> - <td>{t('sources.content.size')}</td> + <td>{t("sources.content.size")}</td> <td>{fileSize}</td> </tr> <tr> - <td>{t('sources.content.lastModified')}</td> + <td>{t("sources.content.lastModified")}</td> <td>{date}</td> </tr> <tr> - <td>{t('sources.content.description')}</td> + <td>{t("sources.content.description")}</td> <td className="is-word-break">{description}</td> </tr> <ExtensionPoint @@ -169,7 +169,7 @@ class Content extends React.Component<Props, State> { props={{ file, repository, - revision, + revision }} /> </tbody> @@ -217,8 +217,8 @@ const mapStateToProps = (state: any, ownProps: Props) => { const file = getSources(state, repository, revision, path); return { - file, + file }; }; -export default connect(mapStateToProps)(translate('repos')(Content)); +export default connect(mapStateToProps)(translate("repos")(Content)); diff --git a/scm-ui/ui-webapp/src/repos/sources/containers/HistoryView.tsx b/scm-ui/ui-webapp/src/repos/sources/containers/HistoryView.tsx index f5f7125e02..e93c4ab8fe 100644 --- a/scm-ui/ui-webapp/src/repos/sources/containers/HistoryView.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/containers/HistoryView.tsx @@ -1,17 +1,17 @@ -import React from 'react'; +import React from "react"; import { File, Changeset, Repository, - PagedCollection, -} from '@scm-manager/ui-types'; + PagedCollection +} from "@scm-manager/ui-types"; import { ErrorNotification, Loading, StatePaginator, - ChangesetList, -} from '@scm-manager/ui-components'; -import { getHistory } from './history'; + ChangesetList +} from "@scm-manager/ui-components"; +import { getHistory } from "./history"; type Props = { file: File; @@ -33,7 +33,7 @@ class HistoryView extends React.Component<Props, State> { this.state = { loaded: false, page: 1, - changesets: [], + changesets: [] }; } @@ -49,7 +49,7 @@ class HistoryView extends React.Component<Props, State> { this.setState({ ...this.state, error: result.error, - loaded: true, + loaded: true }); } else { this.setState({ @@ -57,7 +57,7 @@ class HistoryView extends React.Component<Props, State> { loaded: true, changesets: result.changesets, pageCollection: result.pageCollection, - page: result.pageCollection.page, + page: result.pageCollection.page }); } }) @@ -68,7 +68,7 @@ class HistoryView extends React.Component<Props, State> { const { file } = this.props; const internalPage = page - 1; this.updateHistory( - file._links.history.href + '?page=' + internalPage.toString(), + file._links.history.href + "?page=" + internalPage.toString() ); } diff --git a/scm-ui/ui-webapp/src/repos/sources/containers/Sources.tsx b/scm-ui/ui-webapp/src/repos/sources/containers/Sources.tsx index f2e8bdc2e0..5c1f803d4e 100644 --- a/scm-ui/ui-webapp/src/repos/sources/containers/Sources.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/containers/Sources.tsx @@ -1,24 +1,24 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import { Branch, Repository } from '@scm-manager/ui-types'; -import FileTree from '../components/FileTree'; +import React from "react"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import { Branch, Repository } from "@scm-manager/ui-types"; +import FileTree from "../components/FileTree"; import { BranchSelector, Breadcrumb, ErrorNotification, - Loading, -} from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; + Loading +} from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; import { fetchBranches, getBranches, getFetchBranchesFailure, - isFetchBranchesPending, -} from '../../branches/modules/branches'; -import { compose } from 'redux'; -import Content from './Content'; -import { fetchSources, isDirectory } from '../modules/sources'; + isFetchBranchesPending +} from "../../branches/modules/branches"; +import { compose } from "redux"; +import Content from "./Content"; +import { fetchSources, isDirectory } from "../modules/sources"; type Props = { repository: Repository; @@ -50,7 +50,7 @@ class Sources extends React.Component<Props, State> { super(props); this.state = { - selectedBranch: null, + selectedBranch: null }; } @@ -60,7 +60,7 @@ class Sources extends React.Component<Props, State> { repository, revision, path, - fetchSources, + fetchSources } = this.props; fetchBranches(repository); @@ -99,7 +99,7 @@ class Sources extends React.Component<Props, State> { let url; if (branch) { this.setState({ - selectedBranch: branch, + selectedBranch: branch }); if (path) { url = `${baseUrl}/${encodeURIComponent(branch.name)}/${path}`; @@ -108,7 +108,7 @@ class Sources extends React.Component<Props, State> { } } else { this.setState({ - selectedBranch: null, + selectedBranch: null }); url = `${baseUrl}/`; } @@ -123,7 +123,7 @@ class Sources extends React.Component<Props, State> { error, revision, path, - currentFileIsDirectory, + currentFileIsDirectory } = this.props; if (error) { @@ -163,7 +163,7 @@ class Sources extends React.Component<Props, State> { <BranchSelector branches={branches} selectedBranch={revision} - label={t('changesets.branchSelectorLabel')} + label={t("changesets.branchSelectorLabel")} selected={(b: Branch) => { this.branchSelected(b); }} @@ -215,7 +215,7 @@ const mapStateToProps = (state, ownProps) => { loading, error, branches, - currentFileIsDirectory, + currentFileIsDirectory }; }; @@ -226,15 +226,15 @@ const mapDispatchToProps = dispatch => { }, fetchSources: (repository: Repository, revision: string, path: string) => { dispatch(fetchSources(repository, revision, path)); - }, + } }; }; export default compose( - translate('repos'), + translate("repos"), withRouter, connect( mapStateToProps, - mapDispatchToProps, - ), + mapDispatchToProps + ) )(Sources); diff --git a/scm-ui/ui-webapp/src/repos/sources/containers/SourcesView.tsx b/scm-ui/ui-webapp/src/repos/sources/containers/SourcesView.tsx index f2e1438f34..6bbfdb415f 100644 --- a/scm-ui/ui-webapp/src/repos/sources/containers/SourcesView.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/containers/SourcesView.tsx @@ -1,12 +1,12 @@ -import React from 'react'; +import React from "react"; -import SourcecodeViewer from '../components/content/SourcecodeViewer'; -import ImageViewer from '../components/content/ImageViewer'; -import DownloadViewer from '../components/content/DownloadViewer'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; -import { getContentType } from './contentType'; -import { File, Repository } from '@scm-manager/ui-types'; -import { ErrorNotification, Loading } from '@scm-manager/ui-components'; +import SourcecodeViewer from "../components/content/SourcecodeViewer"; +import ImageViewer from "../components/content/ImageViewer"; +import DownloadViewer from "../components/content/DownloadViewer"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import { getContentType } from "./contentType"; +import { File, Repository } from "@scm-manager/ui-types"; +import { ErrorNotification, Loading } from "@scm-manager/ui-components"; type Props = { repository: Repository; @@ -27,9 +27,9 @@ class SourcesView extends React.Component<Props, State> { super(props); this.state = { - contentType: '', - language: '', - loaded: false, + contentType: "", + language: "", + loaded: false }; } @@ -41,14 +41,14 @@ class SourcesView extends React.Component<Props, State> { this.setState({ ...this.state, error: result.error, - loaded: true, + loaded: true }); } else { this.setState({ ...this.state, contentType: result.type, language: result.language, - loaded: true, + loaded: true }); } }) @@ -58,11 +58,11 @@ class SourcesView extends React.Component<Props, State> { showSources() { const { file, revision } = this.props; const { contentType, language } = this.state; - if (contentType.startsWith('image/')) { + if (contentType.startsWith("image/")) { return <ImageViewer file={file} />; } else if (language) { return <SourcecodeViewer file={file} language={language} />; - } else if (contentType.startsWith('text/')) { + } else if (contentType.startsWith("text/")) { return <SourcecodeViewer file={file} language="none" />; } else { return ( @@ -71,7 +71,7 @@ class SourcesView extends React.Component<Props, State> { props={{ file, contentType, - revision, + revision }} > <DownloadViewer file={file} /> diff --git a/scm-ui/ui-webapp/src/repos/sources/containers/contentType.test.ts b/scm-ui/ui-webapp/src/repos/sources/containers/contentType.test.ts index 2475d88169..8d76700e8f 100644 --- a/scm-ui/ui-webapp/src/repos/sources/containers/contentType.test.ts +++ b/scm-ui/ui-webapp/src/repos/sources/containers/contentType.test.ts @@ -1,27 +1,27 @@ -import fetchMock from 'fetch-mock'; -import { getContentType } from './contentType'; +import fetchMock from "fetch-mock"; +import { getContentType } from "./contentType"; -describe('get content type', () => { - const CONTENT_URL = '/repositories/scmadmin/TestRepo/content/testContent'; +describe("get content type", () => { + const CONTENT_URL = "/repositories/scmadmin/TestRepo/content/testContent"; afterEach(() => { fetchMock.reset(); fetchMock.restore(); }); - it('should return content', done => { + it("should return content", done => { let headers = { - 'Content-Type': 'application/text', - 'X-Programming-Language': 'JAVA', + "Content-Type": "application/text", + "X-Programming-Language": "JAVA" }; - fetchMock.head('/api/v2' + CONTENT_URL, { - headers, + fetchMock.head("/api/v2" + CONTENT_URL, { + headers }); getContentType(CONTENT_URL).then(content => { - expect(content.type).toBe('application/text'); - expect(content.language).toBe('JAVA'); + expect(content.type).toBe("application/text"); + expect(content.language).toBe("JAVA"); done(); }); }); diff --git a/scm-ui/ui-webapp/src/repos/sources/containers/contentType.ts b/scm-ui/ui-webapp/src/repos/sources/containers/contentType.ts index 6d648b2915..30fd64dda7 100644 --- a/scm-ui/ui-webapp/src/repos/sources/containers/contentType.ts +++ b/scm-ui/ui-webapp/src/repos/sources/containers/contentType.ts @@ -1,17 +1,17 @@ -import { apiClient } from '@scm-manager/ui-components'; +import { apiClient } from "@scm-manager/ui-components"; export function getContentType(url: string) { return apiClient .head(url) .then(response => { return { - type: response.headers.get('Content-Type'), - language: response.headers.get('X-Programming-Language'), + type: response.headers.get("Content-Type"), + language: response.headers.get("X-Programming-Language") }; }) .catch(err => { return { - error: err, + error: err }; }); } diff --git a/scm-ui/ui-webapp/src/repos/sources/containers/history.test.ts b/scm-ui/ui-webapp/src/repos/sources/containers/history.test.ts index 1a1c213382..9337385597 100644 --- a/scm-ui/ui-webapp/src/repos/sources/containers/history.test.ts +++ b/scm-ui/ui-webapp/src/repos/sources/containers/history.test.ts @@ -1,8 +1,8 @@ -import fetchMock from 'fetch-mock'; -import { getHistory } from './history'; +import fetchMock from "fetch-mock"; +import { getHistory } from "./history"; -describe('get content type', () => { - const FILE_URL = '/repositories/scmadmin/TestRepo/history/file'; +describe("get content type", () => { + const FILE_URL = "/repositories/scmadmin/TestRepo/history/file"; afterEach(() => { fetchMock.reset(); @@ -14,32 +14,32 @@ describe('get content type', () => { pageTotal: 10, _links: { self: { - href: '/repositories/scmadmin/TestRepo/history/file?page=0&pageSize=10', + href: "/repositories/scmadmin/TestRepo/history/file?page=0&pageSize=10" }, first: { - href: '/repositories/scmadmin/TestRepo/history/file?page=0&pageSize=10', + href: "/repositories/scmadmin/TestRepo/history/file?page=0&pageSize=10" }, next: { - href: '/repositories/scmadmin/TestRepo/history/file?page=1&pageSize=10', + href: "/repositories/scmadmin/TestRepo/history/file?page=1&pageSize=10" }, last: { - href: '/repositories/scmadmin/TestRepo/history/file?page=9&pageSize=10', - }, + href: "/repositories/scmadmin/TestRepo/history/file?page=9&pageSize=10" + } }, _embedded: { changesets: [ { - id: '1234', + id: "1234" }, { - id: '2345', - }, - ], - }, + id: "2345" + } + ] + } }; - it('should return history', done => { - fetchMock.get('/api/v2' + FILE_URL, history); + it("should return history", done => { + fetchMock.get("/api/v2" + FILE_URL, history); getHistory(FILE_URL).then(content => { expect(content.changesets).toEqual(history._embedded.changesets); diff --git a/scm-ui/ui-webapp/src/repos/sources/containers/history.ts b/scm-ui/ui-webapp/src/repos/sources/containers/history.ts index 8809ca12b4..df9a7b0110 100644 --- a/scm-ui/ui-webapp/src/repos/sources/containers/history.ts +++ b/scm-ui/ui-webapp/src/repos/sources/containers/history.ts @@ -1,4 +1,4 @@ -import { apiClient } from '@scm-manager/ui-components'; +import { apiClient } from "@scm-manager/ui-components"; export function getHistory(url: string) { return apiClient @@ -11,13 +11,13 @@ export function getHistory(url: string) { _embedded: result._embedded, _links: result._links, page: result.page, - pageTotal: result.pageTotal, - }, + pageTotal: result.pageTotal + } }; }) .catch(err => { return { - error: err, + error: err }; }); } diff --git a/scm-ui/ui-webapp/src/repos/sources/modules/sources.test.ts b/scm-ui/ui-webapp/src/repos/sources/modules/sources.test.ts index 09f80d76cb..7627b7d399 100644 --- a/scm-ui/ui-webapp/src/repos/sources/modules/sources.test.ts +++ b/scm-ui/ui-webapp/src/repos/sources/modules/sources.test.ts @@ -1,7 +1,7 @@ -import { Repository, File } from '@scm-manager/ui-types'; -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import { Repository, File } from "@scm-manager/ui-types"; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import { FETCH_SOURCES, FETCH_SOURCES_FAILURE, @@ -13,103 +13,103 @@ import { default as reducer, getSources, fetchSourcesSuccess, - isDirectory, -} from './sources'; + isDirectory +} from "./sources"; const sourcesUrl = - 'http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/'; + "http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/"; const repository: Repository = { - name: 'core', - namespace: 'scm', - type: 'git', + name: "core", + namespace: "scm", + type: "git", _links: { sources: { - href: sourcesUrl, - }, - }, + href: sourcesUrl + } + } }; const collection = { - name: 'src', - path: 'src', + name: "src", + path: "src", directory: true, - description: 'foo', + description: "foo", length: 176, - revision: '76aae4bb4ceacf0e88938eb5b6832738b7d537b4', + revision: "76aae4bb4ceacf0e88938eb5b6832738b7d537b4", subRepository: undefined, _links: { self: { href: - 'http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/', - }, + "http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/" + } }, _embedded: { children: [ { - name: 'src', - path: 'src', + name: "src", + path: "src", directory: true, - description: '', + description: "", length: 176, - revision: '76aae4bb4ceacf0e88938eb5b6832738b7d537b4', - lastModified: '', + revision: "76aae4bb4ceacf0e88938eb5b6832738b7d537b4", + lastModified: "", subRepository: undefined, _links: { self: { href: - 'http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/src', - }, + "http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/src" + } }, _embedded: { - children: [], - }, + children: [] + } }, { - name: 'package.json', - path: 'package.json', + name: "package.json", + path: "package.json", directory: false, - description: 'bump version', + description: "bump version", length: 780, - revision: '76aae4bb4ceacf0e88938eb5b6832738b7d537b4', - lastModified: '2017-07-31T11:17:19Z', + revision: "76aae4bb4ceacf0e88938eb5b6832738b7d537b4", + lastModified: "2017-07-31T11:17:19Z", subRepository: undefined, _links: { self: { href: - 'http://localhost:8081/scm/rest/api/v2/repositories/scm/core/content/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/package.json', + "http://localhost:8081/scm/rest/api/v2/repositories/scm/core/content/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/package.json" }, history: { href: - 'http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/history/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/package.json', - }, + "http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/history/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/package.json" + } }, _embedded: { - children: [], - }, - }, - ], - }, + children: [] + } + } + ] + } }; const noDirectory: File = { - name: 'src', - path: 'src', + name: "src", + path: "src", directory: true, length: 176, - revision: 'abc', + revision: "abc", _links: { self: { href: - 'http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/src', - }, + "http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/src" + } }, _embedded: { - children: [], - }, + children: [] + } }; -describe('sources fetch', () => { +describe("sources fetch", () => { const mockStore = configureMockStore([thunk]); afterEach(() => { @@ -117,162 +117,162 @@ describe('sources fetch', () => { fetchMock.restore(); }); - it('should fetch the sources of the repository', () => { + it("should fetch the sources of the repository", () => { fetchMock.getOnce(sourcesUrl, collection); const expectedActions = [ { type: FETCH_SOURCES_PENDING, - itemId: 'scm/core/_/', + itemId: "scm/core/_/" }, { type: FETCH_SOURCES_SUCCESS, - itemId: 'scm/core/_/', - payload: collection, - }, + itemId: "scm/core/_/", + payload: collection + } ]; const store = mockStore({}); - return store.dispatch(fetchSources(repository, '', '')).then(() => { + return store.dispatch(fetchSources(repository, "", "")).then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should fetch the sources of the repository with the given revision and path', () => { - fetchMock.getOnce(sourcesUrl + 'abc/src', collection); + it("should fetch the sources of the repository with the given revision and path", () => { + fetchMock.getOnce(sourcesUrl + "abc/src", collection); const expectedActions = [ { type: FETCH_SOURCES_PENDING, - itemId: 'scm/core/abc/src', + itemId: "scm/core/abc/src" }, { type: FETCH_SOURCES_SUCCESS, - itemId: 'scm/core/abc/src', - payload: collection, - }, + itemId: "scm/core/abc/src", + payload: collection + } ]; const store = mockStore({}); - return store.dispatch(fetchSources(repository, 'abc', 'src')).then(() => { + return store.dispatch(fetchSources(repository, "abc", "src")).then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); - it('should dispatch FETCH_SOURCES_FAILURE on server error', () => { + it("should dispatch FETCH_SOURCES_FAILURE on server error", () => { fetchMock.getOnce(sourcesUrl, { - status: 500, + status: 500 }); const store = mockStore({}); - return store.dispatch(fetchSources(repository, '', '')).then(() => { + return store.dispatch(fetchSources(repository, "", "")).then(() => { const actions = store.getActions(); expect(actions[0].type).toBe(FETCH_SOURCES_PENDING); expect(actions[1].type).toBe(FETCH_SOURCES_FAILURE); - expect(actions[1].itemId).toBe('scm/core/_/'); + expect(actions[1].itemId).toBe("scm/core/_/"); expect(actions[1].payload).toBeDefined(); }); }); }); -describe('reducer tests', () => { - it('should return unmodified state on unknown action', () => { +describe("reducer tests", () => { + it("should return unmodified state on unknown action", () => { const state = {}; expect(reducer(state)).toBe(state); }); - it('should store the collection, without revision and path', () => { + it("should store the collection, without revision and path", () => { const expectedState = { - 'scm/core/_/': collection, + "scm/core/_/": collection }; expect( - reducer({}, fetchSourcesSuccess(repository, '', '', collection)), + reducer({}, fetchSourcesSuccess(repository, "", "", collection)) ).toEqual(expectedState); }); - it('should store the collection, with revision and path', () => { + it("should store the collection, with revision and path", () => { const expectedState = { - 'scm/core/abc/src/main': collection, + "scm/core/abc/src/main": collection }; expect( reducer( {}, - fetchSourcesSuccess(repository, 'abc', 'src/main', collection), - ), + fetchSourcesSuccess(repository, "abc", "src/main", collection) + ) ).toEqual(expectedState); }); }); -describe('selector tests', () => { - it('should return false if it is no directory', () => { +describe("selector tests", () => { + it("should return false if it is no directory", () => { const state = { sources: { - 'scm/core/abc/src/main/package.json': { - noDirectory, - }, - }, + "scm/core/abc/src/main/package.json": { + noDirectory + } + } }; expect( - isDirectory(state, repository, 'abc', 'src/main/package.json'), + isDirectory(state, repository, "abc", "src/main/package.json") ).toBeFalsy(); }); - it('should return true if it is directory', () => { + it("should return true if it is directory", () => { const state = { sources: { - 'scm/core/abc/src': noDirectory, - }, + "scm/core/abc/src": noDirectory + } }; - expect(isDirectory(state, repository, 'abc', 'src')).toBe(true); + expect(isDirectory(state, repository, "abc", "src")).toBe(true); }); - it('should return null', () => { - expect(getSources({}, repository, '', '')).toBeFalsy(); + it("should return null", () => { + expect(getSources({}, repository, "", "")).toBeFalsy(); }); - it('should return the source collection without revision and path', () => { + it("should return the source collection without revision and path", () => { const state = { sources: { - 'scm/core/_/': collection, - }, + "scm/core/_/": collection + } }; - expect(getSources(state, repository, '', '')).toBe(collection); + expect(getSources(state, repository, "", "")).toBe(collection); }); - it('should return the source collection with revision and path', () => { + it("should return the source collection with revision and path", () => { const state = { sources: { - 'scm/core/abc/src/main': collection, - }, + "scm/core/abc/src/main": collection + } }; - expect(getSources(state, repository, 'abc', 'src/main')).toBe(collection); + expect(getSources(state, repository, "abc", "src/main")).toBe(collection); }); - it('should return true, when fetch sources is pending', () => { + it("should return true, when fetch sources is pending", () => { const state = { pending: { - [FETCH_SOURCES + '/scm/core/_/']: true, - }, + [FETCH_SOURCES + "/scm/core/_/"]: true + } }; - expect(isFetchSourcesPending(state, repository, '', '')).toEqual(true); + expect(isFetchSourcesPending(state, repository, "", "")).toEqual(true); }); - it('should return false, when fetch sources is not pending', () => { - expect(isFetchSourcesPending({}, repository, '', '')).toEqual(false); + it("should return false, when fetch sources is not pending", () => { + expect(isFetchSourcesPending({}, repository, "", "")).toEqual(false); }); - const error = new Error('incredible error from hell'); + const error = new Error("incredible error from hell"); - it('should return error when fetch sources did fail', () => { + it("should return error when fetch sources did fail", () => { const state = { failure: { - [FETCH_SOURCES + '/scm/core/_/']: error, - }, + [FETCH_SOURCES + "/scm/core/_/"]: error + } }; - expect(getFetchSourcesFailure(state, repository, '', '')).toEqual(error); + expect(getFetchSourcesFailure(state, repository, "", "")).toEqual(error); }); - it('should return undefined when fetch sources did not fail', () => { - expect(getFetchSourcesFailure({}, repository, '', '')).toBe(undefined); + it("should return undefined when fetch sources did not fail", () => { + expect(getFetchSourcesFailure({}, repository, "", "")).toBe(undefined); }); }); diff --git a/scm-ui/ui-webapp/src/repos/sources/modules/sources.ts b/scm-ui/ui-webapp/src/repos/sources/modules/sources.ts index 3a4292f7f2..a2a57a7845 100644 --- a/scm-ui/ui-webapp/src/repos/sources/modules/sources.ts +++ b/scm-ui/ui-webapp/src/repos/sources/modules/sources.ts @@ -1,10 +1,10 @@ -import * as types from '../../../modules/types'; -import { Repository, File, Action } from '@scm-manager/ui-types'; -import { apiClient } from '@scm-manager/ui-components'; -import { isPending } from '../../../modules/pending'; -import { getFailure } from '../../../modules/failure'; +import * as types from "../../../modules/types"; +import { Repository, File, Action } from "@scm-manager/ui-types"; +import { apiClient } from "@scm-manager/ui-components"; +import { isPending } from "../../../modules/pending"; +import { getFailure } from "../../../modules/failure"; -export const FETCH_SOURCES = 'scm/repos/FETCH_SOURCES'; +export const FETCH_SOURCES = "scm/repos/FETCH_SOURCES"; export const FETCH_SOURCES_PENDING = `${FETCH_SOURCES}_${types.PENDING_SUFFIX}`; export const FETCH_SOURCES_SUCCESS = `${FETCH_SOURCES}_${types.SUCCESS_SUFFIX}`; export const FETCH_SOURCES_FAILURE = `${FETCH_SOURCES}_${types.FAILURE_SUFFIX}`; @@ -12,7 +12,7 @@ export const FETCH_SOURCES_FAILURE = `${FETCH_SOURCES}_${types.FAILURE_SUFFIX}`; export function fetchSources( repository: Repository, revision: string, - path: string, + path: string ) { return function(dispatch: any) { dispatch(fetchSourcesPending(repository, revision, path)); @@ -35,18 +35,18 @@ function createUrl(repository: Repository, revision: string, path: string) { } // TODO handle trailing slash - const pathDefined = path ? path : ''; + const pathDefined = path ? path : ""; return `${base}${encodeURIComponent(revision)}/${pathDefined}`; } export function fetchSourcesPending( repository: Repository, revision: string, - path: string, + path: string ): Action { return { type: FETCH_SOURCES_PENDING, - itemId: createItemId(repository, revision, path), + itemId: createItemId(repository, revision, path) }; } @@ -54,12 +54,12 @@ export function fetchSourcesSuccess( repository: Repository, revision: string, path: string, - sources: File, + sources: File ) { return { type: FETCH_SOURCES_SUCCESS, payload: sources, - itemId: createItemId(repository, revision, path), + itemId: createItemId(repository, revision, path) }; } @@ -67,18 +67,18 @@ export function fetchSourcesFailure( repository: Repository, revision: string, path: string, - error: Error, + error: Error ): Action { return { type: FETCH_SOURCES_FAILURE, payload: error, - itemId: createItemId(repository, revision, path), + itemId: createItemId(repository, revision, path) }; } function createItemId(repository: Repository, revision: string, path: string) { - const revPart = revision ? revision : '_'; - const pathPart = path ? path : ''; + const revPart = revision ? revision : "_"; + const pathPart = path ? path : ""; return `${repository.namespace}/${repository.name}/${revPart}/${pathPart}`; } @@ -87,13 +87,13 @@ function createItemId(repository: Repository, revision: string, path: string) { export default function reducer( state: any = {}, action: Action = { - type: 'UNKNOWN', - }, + type: "UNKNOWN" + } ): any { if (action.itemId && action.type === FETCH_SOURCES_SUCCESS) { return { ...state, - [action.itemId]: action.payload, + [action.itemId]: action.payload }; } return state; @@ -105,7 +105,7 @@ export function isDirectory( state: any, repository: Repository, revision: string, - path: string, + path: string ): boolean { const currentFile = getSources(state, repository, revision, path); if (currentFile && !currentFile.directory) { @@ -119,7 +119,7 @@ export function getSources( state: any, repository: Repository, revision: string, - path: string, + path: string ): File | null | undefined { if (state.sources) { return state.sources[createItemId(repository, revision, path)]; @@ -131,12 +131,12 @@ export function isFetchSourcesPending( state: any, repository: Repository, revision: string, - path: string, + path: string ): boolean { return isPending( state, FETCH_SOURCES, - createItemId(repository, revision, path), + createItemId(repository, revision, path) ); } @@ -144,11 +144,11 @@ export function getFetchSourcesFailure( state: any, repository: Repository, revision: string, - path: string, + path: string ): Error | null | undefined { return getFailure( state, FETCH_SOURCES, - createItemId(repository, revision, path), + createItemId(repository, revision, path) ); } diff --git a/scm-ui/ui-webapp/src/users/components/SetUserPassword.tsx b/scm-ui/ui-webapp/src/users/components/SetUserPassword.tsx index f291670c57..718c4557bd 100644 --- a/scm-ui/ui-webapp/src/users/components/SetUserPassword.tsx +++ b/scm-ui/ui-webapp/src/users/components/SetUserPassword.tsx @@ -1,13 +1,13 @@ -import React from 'react'; -import { User } from '@scm-manager/ui-types'; +import React from "react"; +import { User } from "@scm-manager/ui-types"; import { SubmitButton, Notification, ErrorNotification, - PasswordConfirmation, -} from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; -import { setPassword } from './setPassword'; + PasswordConfirmation +} from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; +import { setPassword } from "./setPassword"; type Props = { user: User; @@ -27,20 +27,20 @@ class SetUserPassword extends React.Component<Props, State> { super(props); this.state = { - password: '', + password: "", loading: false, passwordConfirmationError: false, validatePasswordError: false, - validatePassword: '', + validatePassword: "", passwordChanged: false, - passwordValid: false, + passwordValid: false }; } setLoadingState = () => { this.setState({ ...this.state, - loading: true, + loading: true }); }; @@ -48,7 +48,7 @@ class SetUserPassword extends React.Component<Props, State> { this.setState({ ...this.state, error: error, - loading: false, + loading: false }); }; @@ -57,7 +57,7 @@ class SetUserPassword extends React.Component<Props, State> { ...this.state, loading: false, passwordChanged: true, - password: '', + password: "" }); }; @@ -88,8 +88,8 @@ class SetUserPassword extends React.Component<Props, State> { if (passwordChanged) { message = ( <Notification - type={'success'} - children={t('singleUserPassword.setPasswordSuccessful')} + type={"success"} + children={t("singleUserPassword.setPasswordSuccessful")} onClose={() => this.onClose()} /> ); @@ -102,14 +102,14 @@ class SetUserPassword extends React.Component<Props, State> { {message} <PasswordConfirmation passwordChanged={this.passwordChanged} - key={this.state.passwordChanged ? 'changed' : 'unchanged'} + key={this.state.passwordChanged ? "changed" : "unchanged"} /> <div className="columns"> <div className="column"> <SubmitButton disabled={!this.state.passwordValid} loading={loading} - label={t('singleUserPassword.button')} + label={t("singleUserPassword.button")} /> </div> </div> @@ -121,16 +121,16 @@ class SetUserPassword extends React.Component<Props, State> { this.setState({ ...this.state, password, - passwordValid: !!password && passwordValid, + passwordValid: !!password && passwordValid }); }; onClose = () => { this.setState({ ...this.state, - passwordChanged: false, + passwordChanged: false }); }; } -export default translate('users')(SetUserPassword); +export default translate("users")(SetUserPassword); diff --git a/scm-ui/ui-webapp/src/users/components/UserForm.tsx b/scm-ui/ui-webapp/src/users/components/UserForm.tsx index 9704c92591..8aedeb916e 100644 --- a/scm-ui/ui-webapp/src/users/components/UserForm.tsx +++ b/scm-ui/ui-webapp/src/users/components/UserForm.tsx @@ -1,15 +1,15 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { User } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import { User } from "@scm-manager/ui-types"; import { Subtitle, Checkbox, InputField, PasswordConfirmation, SubmitButton, - validation as validator, -} from '@scm-manager/ui-components'; -import * as userValidator from './userValidation'; + validation as validator +} from "@scm-manager/ui-components"; +import * as userValidator from "./userValidation"; type Props = { submitForm: (p: User) => void; @@ -32,17 +32,17 @@ class UserForm extends React.Component<Props, State> { this.state = { user: { - name: '', - displayName: '', - mail: '', - password: '', + name: "", + displayName: "", + mail: "", + password: "", active: true, - _links: {}, + _links: {} }, mailValidationError: false, displayNameValidationError: false, nameValidationError: false, - passwordValid: false, + passwordValid: false }; } @@ -51,8 +51,8 @@ class UserForm extends React.Component<Props, State> { if (user) { this.setState({ user: { - ...user, - }, + ...user + } }); } } @@ -121,12 +121,12 @@ class UserForm extends React.Component<Props, State> { nameField = ( <div className="column is-half"> <InputField - label={t('user.name')} + label={t("user.name")} onChange={this.handleUsernameChange} - value={user ? user.name : ''} + value={user ? user.name : ""} validationError={this.state.nameValidationError} - errorMessage={t('validation.name-invalid')} - helpText={t('help.usernameHelpText')} + errorMessage={t("validation.name-invalid")} + helpText={t("help.usernameHelpText")} /> </div> ); @@ -136,7 +136,7 @@ class UserForm extends React.Component<Props, State> { ); } else { // edit existing user - subtitle = <Subtitle subtitle={t('userForm.subtitle')} />; + subtitle = <Subtitle subtitle={t("userForm.subtitle")} />; } return ( <> @@ -146,22 +146,22 @@ class UserForm extends React.Component<Props, State> { {nameField} <div className="column is-half"> <InputField - label={t('user.displayName')} + label={t("user.displayName")} onChange={this.handleDisplayNameChange} - value={user ? user.displayName : ''} + value={user ? user.displayName : ""} validationError={this.state.displayNameValidationError} - errorMessage={t('validation.displayname-invalid')} - helpText={t('help.displayNameHelpText')} + errorMessage={t("validation.displayname-invalid")} + helpText={t("help.displayNameHelpText")} /> </div> <div className="column is-half"> <InputField - label={t('user.mail')} + label={t("user.mail")} onChange={this.handleEmailChange} - value={user ? user.mail : ''} + value={user ? user.mail : ""} validationError={this.state.mailValidationError} - errorMessage={t('validation.mail-invalid')} - helpText={t('help.mailHelpText')} + errorMessage={t("validation.mail-invalid")} + helpText={t("help.mailHelpText")} /> </div> </div> @@ -169,10 +169,10 @@ class UserForm extends React.Component<Props, State> { <div className="columns"> <div className="column"> <Checkbox - label={t('user.active')} + label={t("user.active")} onChange={this.handleActiveChange} checked={user ? user.active : false} - helpText={t('help.activeHelpText')} + helpText={t("help.activeHelpText")} /> </div> </div> @@ -181,7 +181,7 @@ class UserForm extends React.Component<Props, State> { <SubmitButton disabled={!this.isValid()} loading={loading} - label={t('userForm.button')} + label={t("userForm.button")} /> </div> </div> @@ -195,20 +195,20 @@ class UserForm extends React.Component<Props, State> { nameValidationError: !validator.isNameValid(name), user: { ...this.state.user, - name, - }, + name + } }); }; handleDisplayNameChange = (displayName: string) => { this.setState({ displayNameValidationError: !userValidator.isDisplayNameValid( - displayName, + displayName ), user: { ...this.state.user, - displayName, - }, + displayName + } }); }; @@ -217,8 +217,8 @@ class UserForm extends React.Component<Props, State> { mailValidationError: !validator.isMailValid(mail), user: { ...this.state.user, - mail, - }, + mail + } }); }; @@ -226,9 +226,9 @@ class UserForm extends React.Component<Props, State> { this.setState({ user: { ...this.state.user, - password, + password }, - passwordValid: !this.isFalsy(password) && passwordValid, + passwordValid: !this.isFalsy(password) && passwordValid }); }; @@ -236,10 +236,10 @@ class UserForm extends React.Component<Props, State> { this.setState({ user: { ...this.state.user, - active, - }, + active + } }); }; } -export default translate('users')(UserForm); +export default translate("users")(UserForm); diff --git a/scm-ui/ui-webapp/src/users/components/navLinks/EditUserNavLink.test.tsx b/scm-ui/ui-webapp/src/users/components/navLinks/EditUserNavLink.test.tsx index 303186d805..238620e8bb 100644 --- a/scm-ui/ui-webapp/src/users/components/navLinks/EditUserNavLink.test.tsx +++ b/scm-ui/ui-webapp/src/users/components/navLinks/EditUserNavLink.test.tsx @@ -1,27 +1,27 @@ -import React from 'react'; -import { shallow } from 'enzyme'; -import '@scm-manager/ui-tests/enzyme'; -import '@scm-manager/ui-tests/i18n'; -import EditUserNavLink from './EditUserNavLink'; +import React from "react"; +import { shallow } from "enzyme"; +import "@scm-manager/ui-tests/enzyme"; +import "@scm-manager/ui-tests/i18n"; +import EditUserNavLink from "./EditUserNavLink"; -it('should render nothing, if the edit link is missing', () => { +it("should render nothing, if the edit link is missing", () => { const user = { - _links: {}, + _links: {} }; const navLink = shallow(<EditUserNavLink user={user} editUrl="/user/edit" />); - expect(navLink.text()).toBe(''); + expect(navLink.text()).toBe(""); }); -it('should render the navLink', () => { +it("should render the navLink", () => { const user = { _links: { update: { - href: '/users', - }, - }, + href: "/users" + } + } }; const navLink = shallow(<EditUserNavLink user={user} editUrl="/user/edit" />); - expect(navLink.text()).not.toBe(''); + expect(navLink.text()).not.toBe(""); }); diff --git a/scm-ui/ui-webapp/src/users/components/navLinks/EditUserNavLink.tsx b/scm-ui/ui-webapp/src/users/components/navLinks/EditUserNavLink.tsx index 7b3a909a1f..cb552f3bfc 100644 --- a/scm-ui/ui-webapp/src/users/components/navLinks/EditUserNavLink.tsx +++ b/scm-ui/ui-webapp/src/users/components/navLinks/EditUserNavLink.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { User } from '@scm-manager/ui-types'; -import { NavLink } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; +import React from "react"; +import { User } from "@scm-manager/ui-types"; +import { NavLink } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; type Props = { user: User; @@ -20,8 +20,8 @@ class EditUserNavLink extends React.Component<Props> { if (!this.isEditable()) { return null; } - return <NavLink to={editUrl} label={t('singleUser.menu.generalNavLink')} />; + return <NavLink to={editUrl} label={t("singleUser.menu.generalNavLink")} />; } } -export default translate('users')(EditUserNavLink); +export default translate("users")(EditUserNavLink); diff --git a/scm-ui/ui-webapp/src/users/components/navLinks/SetPasswordNavLink.test.tsx b/scm-ui/ui-webapp/src/users/components/navLinks/SetPasswordNavLink.test.tsx index 9440cbe634..78bc87cc78 100644 --- a/scm-ui/ui-webapp/src/users/components/navLinks/SetPasswordNavLink.test.tsx +++ b/scm-ui/ui-webapp/src/users/components/navLinks/SetPasswordNavLink.test.tsx @@ -1,31 +1,31 @@ -import React from 'react'; -import { shallow } from 'enzyme'; -import '@scm-manager/ui-tests/enzyme'; -import '@scm-manager/ui-tests/i18n'; -import ChangePasswordNavLink from './SetPasswordNavLink'; +import React from "react"; +import { shallow } from "enzyme"; +import "@scm-manager/ui-tests/enzyme"; +import "@scm-manager/ui-tests/i18n"; +import ChangePasswordNavLink from "./SetPasswordNavLink"; -it('should render nothing, if the password link is missing', () => { +it("should render nothing, if the password link is missing", () => { const user = { - _links: {}, + _links: {} }; const navLink = shallow( - <ChangePasswordNavLink user={user} passwordUrl="/user/password" />, + <ChangePasswordNavLink user={user} passwordUrl="/user/password" /> ); - expect(navLink.text()).toBe(''); + expect(navLink.text()).toBe(""); }); -it('should render the navLink', () => { +it("should render the navLink", () => { const user = { _links: { password: { - href: '/password', - }, - }, + href: "/password" + } + } }; const navLink = shallow( - <ChangePasswordNavLink user={user} passwordUrl="/user/password" />, + <ChangePasswordNavLink user={user} passwordUrl="/user/password" /> ); - expect(navLink.text()).not.toBe(''); + expect(navLink.text()).not.toBe(""); }); diff --git a/scm-ui/ui-webapp/src/users/components/navLinks/SetPasswordNavLink.tsx b/scm-ui/ui-webapp/src/users/components/navLinks/SetPasswordNavLink.tsx index ec7d143bcd..be430cbff6 100644 --- a/scm-ui/ui-webapp/src/users/components/navLinks/SetPasswordNavLink.tsx +++ b/scm-ui/ui-webapp/src/users/components/navLinks/SetPasswordNavLink.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { User } from '@scm-manager/ui-types'; -import { NavLink } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { User } from "@scm-manager/ui-types"; +import { NavLink } from "@scm-manager/ui-components"; type Props = { t: (p: string) => string; @@ -19,7 +19,7 @@ class ChangePasswordNavLink extends React.Component<Props> { return ( <NavLink to={passwordUrl} - label={t('singleUser.menu.setPasswordNavLink')} + label={t("singleUser.menu.setPasswordNavLink")} /> ); } @@ -29,4 +29,4 @@ class ChangePasswordNavLink extends React.Component<Props> { }; } -export default translate('users')(ChangePasswordNavLink); +export default translate("users")(ChangePasswordNavLink); diff --git a/scm-ui/ui-webapp/src/users/components/navLinks/SetPermissionsNavLink.test.tsx b/scm-ui/ui-webapp/src/users/components/navLinks/SetPermissionsNavLink.test.tsx index 7de801b4f2..85860cba8c 100644 --- a/scm-ui/ui-webapp/src/users/components/navLinks/SetPermissionsNavLink.test.tsx +++ b/scm-ui/ui-webapp/src/users/components/navLinks/SetPermissionsNavLink.test.tsx @@ -1,31 +1,31 @@ -import React from 'react'; -import '@scm-manager/ui-tests/enzyme'; -import '@scm-manager/ui-tests/i18n'; -import SetPermissionsNavLink from './SetPermissionsNavLink'; -import { shallow } from 'enzyme'; +import React from "react"; +import "@scm-manager/ui-tests/enzyme"; +import "@scm-manager/ui-tests/i18n"; +import SetPermissionsNavLink from "./SetPermissionsNavLink"; +import { shallow } from "enzyme"; -it('should render nothing, if the permissions link is missing', () => { +it("should render nothing, if the permissions link is missing", () => { const user = { - _links: {}, + _links: {} }; const navLink = shallow( - <SetPermissionsNavLink user={user} permissionsUrl="/user/permissions" />, + <SetPermissionsNavLink user={user} permissionsUrl="/user/permissions" /> ); - expect(navLink.text()).toBe(''); + expect(navLink.text()).toBe(""); }); -it('should render the navLink', () => { +it("should render the navLink", () => { const user = { _links: { permissions: { - href: '/permissions', - }, - }, + href: "/permissions" + } + } }; const navLink = shallow( - <SetPermissionsNavLink user={user} permissionsUrl="/user/permissions" />, + <SetPermissionsNavLink user={user} permissionsUrl="/user/permissions" /> ); - expect(navLink.text()).not.toBe(''); + expect(navLink.text()).not.toBe(""); }); diff --git a/scm-ui/ui-webapp/src/users/components/navLinks/SetPermissionsNavLink.tsx b/scm-ui/ui-webapp/src/users/components/navLinks/SetPermissionsNavLink.tsx index 6f948ef41b..45bf83c344 100644 --- a/scm-ui/ui-webapp/src/users/components/navLinks/SetPermissionsNavLink.tsx +++ b/scm-ui/ui-webapp/src/users/components/navLinks/SetPermissionsNavLink.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { User } from '@scm-manager/ui-types'; -import { NavLink } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { User } from "@scm-manager/ui-types"; +import { NavLink } from "@scm-manager/ui-components"; type Props = { t: (p: string) => string; @@ -19,7 +19,7 @@ class ChangePermissionNavLink extends React.Component<Props> { return ( <NavLink to={permissionsUrl} - label={t('singleUser.menu.setPermissionsNavLink')} + label={t("singleUser.menu.setPermissionsNavLink")} /> ); } @@ -29,4 +29,4 @@ class ChangePermissionNavLink extends React.Component<Props> { }; } -export default translate('users')(ChangePermissionNavLink); +export default translate("users")(ChangePermissionNavLink); diff --git a/scm-ui/ui-webapp/src/users/components/navLinks/index.ts b/scm-ui/ui-webapp/src/users/components/navLinks/index.ts index c57cb94822..cb97c57e3f 100644 --- a/scm-ui/ui-webapp/src/users/components/navLinks/index.ts +++ b/scm-ui/ui-webapp/src/users/components/navLinks/index.ts @@ -1,3 +1,3 @@ -export { default as EditUserNavLink } from './EditUserNavLink'; -export { default as SetPasswordNavLink } from './SetPasswordNavLink'; -export { default as SetPermissionsNavLink } from './SetPermissionsNavLink'; +export { default as EditUserNavLink } from "./EditUserNavLink"; +export { default as SetPasswordNavLink } from "./SetPasswordNavLink"; +export { default as SetPermissionsNavLink } from "./SetPermissionsNavLink"; diff --git a/scm-ui/ui-webapp/src/users/components/setPassword.test.ts b/scm-ui/ui-webapp/src/users/components/setPassword.test.ts index 309676cebe..c2a8b21278 100644 --- a/scm-ui/ui-webapp/src/users/components/setPassword.test.ts +++ b/scm-ui/ui-webapp/src/users/components/setPassword.test.ts @@ -1,20 +1,20 @@ -import fetchMock from 'fetch-mock'; -import { CONTENT_TYPE_PASSWORD_OVERWRITE, setPassword } from './setPassword'; +import fetchMock from "fetch-mock"; +import { CONTENT_TYPE_PASSWORD_OVERWRITE, setPassword } from "./setPassword"; -describe('password change', () => { - const SET_PASSWORD_URL = '/users/testuser/password'; - const newPassword = 'testpw123'; +describe("password change", () => { + const SET_PASSWORD_URL = "/users/testuser/password"; + const newPassword = "testpw123"; afterEach(() => { fetchMock.reset(); fetchMock.restore(); }); - it('should set password', done => { - fetchMock.put('/api/v2' + SET_PASSWORD_URL, 204, { + it("should set password", done => { + fetchMock.put("/api/v2" + SET_PASSWORD_URL, 204, { headers: { - 'content-type': CONTENT_TYPE_PASSWORD_OVERWRITE, - }, + "content-type": CONTENT_TYPE_PASSWORD_OVERWRITE + } }); setPassword(SET_PASSWORD_URL, newPassword).then(content => { diff --git a/scm-ui/ui-webapp/src/users/components/setPassword.ts b/scm-ui/ui-webapp/src/users/components/setPassword.ts index c3ab4a706f..b027287b08 100644 --- a/scm-ui/ui-webapp/src/users/components/setPassword.ts +++ b/scm-ui/ui-webapp/src/users/components/setPassword.ts @@ -1,16 +1,16 @@ -import { apiClient } from '@scm-manager/ui-components'; +import { apiClient } from "@scm-manager/ui-components"; export const CONTENT_TYPE_PASSWORD_OVERWRITE = - 'application/vnd.scmm-passwordOverwrite+json;v=2'; + "application/vnd.scmm-passwordOverwrite+json;v=2"; export function setPassword(url: string, password: string) { return apiClient .put( url, { - newPassword: password, + newPassword: password }, - CONTENT_TYPE_PASSWORD_OVERWRITE, + CONTENT_TYPE_PASSWORD_OVERWRITE ) .then(response => { return response; diff --git a/scm-ui/ui-webapp/src/users/components/table/Details.tsx b/scm-ui/ui-webapp/src/users/components/table/Details.tsx index f607359605..6b165140e4 100644 --- a/scm-ui/ui-webapp/src/users/components/table/Details.tsx +++ b/scm-ui/ui-webapp/src/users/components/table/Details.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { User } from '@scm-manager/ui-types'; -import { translate } from 'react-i18next'; -import { Checkbox, MailLink, DateFromNow } from '@scm-manager/ui-components'; +import React from "react"; +import { User } from "@scm-manager/ui-types"; +import { translate } from "react-i18next"; +import { Checkbox, MailLink, DateFromNow } from "@scm-manager/ui-components"; type Props = { user: User; @@ -15,37 +15,37 @@ class Details extends React.Component<Props> { <table className="table"> <tbody> <tr> - <th>{t('user.name')}</th> + <th>{t("user.name")}</th> <td>{user.name}</td> </tr> <tr> - <th>{t('user.displayName')}</th> + <th>{t("user.displayName")}</th> <td>{user.displayName}</td> </tr> <tr> - <th>{t('user.mail')}</th> + <th>{t("user.mail")}</th> <td> <MailLink address={user.mail} /> </td> </tr> <tr> - <th>{t('user.active')}</th> + <th>{t("user.active")}</th> <td> <Checkbox checked={user.active} /> </td> </tr> <tr> - <th>{t('user.type')}</th> + <th>{t("user.type")}</th> <td>{user.type}</td> </tr> <tr> - <th>{t('user.creationDate')}</th> + <th>{t("user.creationDate")}</th> <td> <DateFromNow date={user.creationDate} /> </td> </tr> <tr> - <th>{t('user.lastModified')}</th> + <th>{t("user.lastModified")}</th> <td> <DateFromNow date={user.lastModified} /> </td> @@ -56,4 +56,4 @@ class Details extends React.Component<Props> { } } -export default translate('users')(Details); +export default translate("users")(Details); diff --git a/scm-ui/ui-webapp/src/users/components/table/UserRow.tsx b/scm-ui/ui-webapp/src/users/components/table/UserRow.tsx index ef742a39e5..97d301c4db 100644 --- a/scm-ui/ui-webapp/src/users/components/table/UserRow.tsx +++ b/scm-ui/ui-webapp/src/users/components/table/UserRow.tsx @@ -1,8 +1,8 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { Link } from 'react-router-dom'; -import { User } from '@scm-manager/ui-types'; -import { Icon } from '@scm-manager/ui-components'; +import React from "react"; +import { translate } from "react-i18next"; +import { Link } from "react-router-dom"; +import { User } from "@scm-manager/ui-types"; +import { Icon } from "@scm-manager/ui-components"; type Props = { user: User; @@ -20,13 +20,13 @@ class UserRow extends React.Component<Props> { const { user, t } = this.props; const to = `/user/${user.name}`; const iconType = user.active ? ( - <Icon title={t('user.active')} name="user" /> + <Icon title={t("user.active")} name="user" /> ) : ( - <Icon title={t('user.inactive')} name="user-slash" /> + <Icon title={t("user.inactive")} name="user-slash" /> ); return ( - <tr className={user.active ? 'border-is-green' : 'border-is-yellow'}> + <tr className={user.active ? "border-is-green" : "border-is-yellow"}> <td> {iconType} {this.renderLink(to, user.name)} </td> @@ -41,4 +41,4 @@ class UserRow extends React.Component<Props> { } } -export default translate('users')(UserRow); +export default translate("users")(UserRow); diff --git a/scm-ui/ui-webapp/src/users/components/table/UserTable.tsx b/scm-ui/ui-webapp/src/users/components/table/UserTable.tsx index bf9322249a..93a569c465 100644 --- a/scm-ui/ui-webapp/src/users/components/table/UserTable.tsx +++ b/scm-ui/ui-webapp/src/users/components/table/UserTable.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import UserRow from './UserRow'; -import { User } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import UserRow from "./UserRow"; +import { User } from "@scm-manager/ui-types"; type Props = { t: (p: string) => string; @@ -15,9 +15,9 @@ class UserTable extends React.Component<Props> { <table className="card-table table is-hoverable is-fullwidth"> <thead> <tr> - <th className="is-hidden-mobile">{t('user.name')}</th> - <th>{t('user.displayName')}</th> - <th>{t('user.mail')}</th> + <th className="is-hidden-mobile">{t("user.name")}</th> + <th>{t("user.displayName")}</th> + <th>{t("user.mail")}</th> </tr> </thead> <tbody> @@ -30,4 +30,4 @@ class UserTable extends React.Component<Props> { } } -export default translate('users')(UserTable); +export default translate("users")(UserTable); diff --git a/scm-ui/ui-webapp/src/users/components/table/index.ts b/scm-ui/ui-webapp/src/users/components/table/index.ts index 2389669904..e1ef7cec49 100644 --- a/scm-ui/ui-webapp/src/users/components/table/index.ts +++ b/scm-ui/ui-webapp/src/users/components/table/index.ts @@ -1,3 +1,3 @@ -export { default as Details } from './Details'; -export { default as UserRow } from './UserRow'; -export { default as UserTable } from './UserTable'; +export { default as Details } from "./Details"; +export { default as UserRow } from "./UserRow"; +export { default as UserTable } from "./UserTable"; diff --git a/scm-ui/ui-webapp/src/users/components/userValidation.test.ts b/scm-ui/ui-webapp/src/users/components/userValidation.test.ts index 4de8737956..e212d513dc 100644 --- a/scm-ui/ui-webapp/src/users/components/userValidation.test.ts +++ b/scm-ui/ui-webapp/src/users/components/userValidation.test.ts @@ -1,18 +1,18 @@ -import * as validator from './userValidation'; +import * as validator from "./userValidation"; -describe('test displayName validation', () => { - it('should return false', () => { - expect(validator.isDisplayNameValid('')).toBe(false); +describe("test displayName validation", () => { + it("should return false", () => { + expect(validator.isDisplayNameValid("")).toBe(false); }); - it('should return true', () => { + it("should return true", () => { // valid names taken from ValidationUtilTest.java const validNames = [ - 'Arthur Dent', - 'Tricia.McMillan@hitchhiker.com', - 'Ford Prefect (ford.prefect@hitchhiker.com)', - 'Zaphod Beeblebrox <zaphod.beeblebrox@hitchhiker.com>', - 'Marvin, der depressive Roboter', + "Arthur Dent", + "Tricia.McMillan@hitchhiker.com", + "Ford Prefect (ford.prefect@hitchhiker.com)", + "Zaphod Beeblebrox <zaphod.beeblebrox@hitchhiker.com>", + "Marvin, der depressive Roboter" ]; for (let name of validNames) { expect(validator.isDisplayNameValid(name)).toBe(true); @@ -20,18 +20,18 @@ describe('test displayName validation', () => { }); }); -describe('test password validation', () => { - it('should return false', () => { +describe("test password validation", () => { + it("should return false", () => { // invalid taken from ValidationUtilTest.java - const invalid = ['', 'abc', 'aaabbbcccdddeeefffggghhhiiijjjkkk']; + const invalid = ["", "abc", "aaabbbcccdddeeefffggghhhiiijjjkkk"]; for (let password of invalid) { expect(validator.isPasswordValid(password)).toBe(false); } }); - it('should return true', () => { + it("should return true", () => { // valid taken from ValidationUtilTest.java - const valid = ['secret123', 'mySuperSecretPassword']; + const valid = ["secret123", "mySuperSecretPassword"]; for (let password of valid) { expect(validator.isPasswordValid(password)).toBe(true); } diff --git a/scm-ui/ui-webapp/src/users/components/userValidation.ts b/scm-ui/ui-webapp/src/users/components/userValidation.ts index bc7f1e8f95..fe02f8aebd 100644 --- a/scm-ui/ui-webapp/src/users/components/userValidation.ts +++ b/scm-ui/ui-webapp/src/users/components/userValidation.ts @@ -1,4 +1,4 @@ -import { validation } from '@scm-manager/ui-components'; +import { validation } from "@scm-manager/ui-components"; const { isNameValid, isMailValid, isPathValid } = validation; diff --git a/scm-ui/ui-webapp/src/users/containers/CreateUser.tsx b/scm-ui/ui-webapp/src/users/containers/CreateUser.tsx index e7d3fc913a..e8df694706 100644 --- a/scm-ui/ui-webapp/src/users/containers/CreateUser.tsx +++ b/scm-ui/ui-webapp/src/users/containers/CreateUser.tsx @@ -1,17 +1,17 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import UserForm from '../components/UserForm'; -import { User } from '@scm-manager/ui-types'; -import { History } from 'history'; +import React from "react"; +import { connect } from "react-redux"; +import UserForm from "../components/UserForm"; +import { User } from "@scm-manager/ui-types"; +import { History } from "history"; import { createUser, createUserReset, isCreateUserPending, - getCreateUserFailure, -} from '../modules/users'; -import { Page } from '@scm-manager/ui-components'; -import { translate } from 'react-i18next'; -import { getUsersLink } from '../../modules/indexResource'; + getCreateUserFailure +} from "../modules/users"; +import { Page } from "@scm-manager/ui-components"; +import { translate } from "react-i18next"; +import { getUsersLink } from "../../modules/indexResource"; type Props = { loading?: boolean; @@ -34,12 +34,12 @@ class CreateUser extends React.Component<Props> { userCreated = (user: User) => { const { history } = this.props; - history.push('/user/' + user.name); + history.push("/user/" + user.name); }; createUser = (user: User) => { this.props.addUser(this.props.usersLink, user, () => - this.userCreated(user), + this.userCreated(user) ); }; @@ -48,8 +48,8 @@ class CreateUser extends React.Component<Props> { return ( <Page - title={t('createUser.title')} - subtitle={t('createUser.subtitle')} + title={t("createUser.title")} + subtitle={t("createUser.subtitle")} error={error} showContentOnError={true} > @@ -69,7 +69,7 @@ const mapDispatchToProps = dispatch => { }, resetForm: () => { dispatch(createUserReset()); - }, + } }; }; @@ -80,11 +80,11 @@ const mapStateToProps = (state, ownProps) => { return { usersLink, loading, - error, + error }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('users')(CreateUser)); + mapDispatchToProps +)(translate("users")(CreateUser)); diff --git a/scm-ui/ui-webapp/src/users/containers/DeleteUser.tsx b/scm-ui/ui-webapp/src/users/containers/DeleteUser.tsx index eeb7776d67..9aed3dd62c 100644 --- a/scm-ui/ui-webapp/src/users/containers/DeleteUser.tsx +++ b/scm-ui/ui-webapp/src/users/containers/DeleteUser.tsx @@ -1,20 +1,20 @@ -import React from 'react'; -import { translate } from 'react-i18next'; -import { User } from '@scm-manager/ui-types'; +import React from "react"; +import { translate } from "react-i18next"; +import { User } from "@scm-manager/ui-types"; import { Subtitle, DeleteButton, confirmAlert, - ErrorNotification, -} from '@scm-manager/ui-components'; + ErrorNotification +} from "@scm-manager/ui-components"; import { deleteUser, getDeleteUserFailure, - isDeleteUserPending, -} from '../modules/users'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import { History } from 'history'; + isDeleteUserPending +} from "../modules/users"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import { History } from "history"; type Props = { loading: boolean; @@ -30,11 +30,11 @@ type Props = { class DeleteUser extends React.Component<Props> { static defaultProps = { - confirmDialog: true, + confirmDialog: true }; userDeleted = () => { - this.props.history.push('/users/'); + this.props.history.push("/users/"); }; deleteUser = () => { @@ -44,18 +44,18 @@ class DeleteUser extends React.Component<Props> { confirmDelete = () => { const { t } = this.props; confirmAlert({ - title: t('deleteUser.confirmAlert.title'), - message: t('deleteUser.confirmAlert.message'), + title: t("deleteUser.confirmAlert.title"), + message: t("deleteUser.confirmAlert.message"), buttons: [ { - label: t('deleteUser.confirmAlert.submit'), - onClick: () => this.deleteUser(), + label: t("deleteUser.confirmAlert.submit"), + onClick: () => this.deleteUser() }, { - label: t('deleteUser.confirmAlert.cancel'), - onClick: () => null, - }, - ], + label: t("deleteUser.confirmAlert.cancel"), + onClick: () => null + } + ] }); }; @@ -73,12 +73,12 @@ class DeleteUser extends React.Component<Props> { return ( <> - <Subtitle subtitle={t('deleteUser.subtitle')} /> + <Subtitle subtitle={t("deleteUser.subtitle")} /> <ErrorNotification error={error} /> <div className="columns"> <div className="column"> <DeleteButton - label={t('deleteUser.button')} + label={t("deleteUser.button")} action={action} loading={loading} /> @@ -94,7 +94,7 @@ const mapStateToProps = (state, ownProps) => { const error = getDeleteUserFailure(state, ownProps.user.name); return { loading, - error, + error }; }; @@ -102,11 +102,11 @@ const mapDispatchToProps = dispatch => { return { deleteUser: (user: User, callback?: () => void) => { dispatch(deleteUser(user, callback)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(withRouter(translate('users')(DeleteUser))); + mapDispatchToProps +)(withRouter(translate("users")(DeleteUser))); diff --git a/scm-ui/ui-webapp/src/users/containers/EditUser.tsx b/scm-ui/ui-webapp/src/users/containers/EditUser.tsx index 9691ab392c..020cef1980 100644 --- a/scm-ui/ui-webapp/src/users/containers/EditUser.tsx +++ b/scm-ui/ui-webapp/src/users/containers/EditUser.tsx @@ -1,17 +1,17 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { withRouter } from 'react-router-dom'; -import UserForm from '../components/UserForm'; -import DeleteUser from './DeleteUser'; -import { User } from '@scm-manager/ui-types'; +import React from "react"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; +import UserForm from "../components/UserForm"; +import DeleteUser from "./DeleteUser"; +import { User } from "@scm-manager/ui-types"; import { modifyUser, isModifyUserPending, getModifyUserFailure, - modifyUserReset, -} from '../modules/users'; -import { History } from 'history'; -import { ErrorNotification } from '@scm-manager/ui-components'; + modifyUserReset +} from "../modules/users"; +import { History } from "history"; +import { ErrorNotification } from "@scm-manager/ui-components"; type Props = { loading: boolean; @@ -62,7 +62,7 @@ const mapStateToProps = (state, ownProps) => { const error = getModifyUserFailure(state, ownProps.user.name); return { loading, - error, + error }; }; @@ -73,11 +73,11 @@ const mapDispatchToProps = dispatch => { }, modifyUserReset: (user: User) => { dispatch(modifyUserReset(user)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, + mapDispatchToProps )(withRouter(EditUser)); diff --git a/scm-ui/ui-webapp/src/users/containers/SingleUser.tsx b/scm-ui/ui-webapp/src/users/containers/SingleUser.tsx index b56ca697fa..7a3c32ff4e 100644 --- a/scm-ui/ui-webapp/src/users/containers/SingleUser.tsx +++ b/scm-ui/ui-webapp/src/users/containers/SingleUser.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import { connect } from 'react-redux'; +import React from "react"; +import { connect } from "react-redux"; import { Page, Loading, @@ -7,29 +7,29 @@ import { SubNavigation, Section, NavLink, - ErrorPage, -} from '@scm-manager/ui-components'; -import { Route } from 'react-router-dom'; -import { Details } from './../components/table'; -import EditUser from './EditUser'; -import { User } from '@scm-manager/ui-types'; -import { History } from 'history'; + ErrorPage +} from "@scm-manager/ui-components"; +import { Route } from "react-router-dom"; +import { Details } from "./../components/table"; +import EditUser from "./EditUser"; +import { User } from "@scm-manager/ui-types"; +import { History } from "history"; import { fetchUserByName, getUserByName, isFetchUserPending, - getFetchUserFailure, -} from '../modules/users'; + getFetchUserFailure +} from "../modules/users"; import { EditUserNavLink, SetPasswordNavLink, - SetPermissionsNavLink, -} from './../components/navLinks'; -import { translate } from 'react-i18next'; -import { getUsersLink } from '../../modules/indexResource'; -import SetUserPassword from '../components/SetUserPassword'; -import SetPermissions from '../../permissions/components/SetPermissions'; -import { ExtensionPoint } from '@scm-manager/ui-extensions'; + SetPermissionsNavLink +} from "./../components/navLinks"; +import { translate } from "react-i18next"; +import { getUsersLink } from "../../modules/indexResource"; +import SetUserPassword from "../components/SetUserPassword"; +import SetPermissions from "../../permissions/components/SetPermissions"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; type Props = { name: string; @@ -53,7 +53,7 @@ class SingleUser extends React.Component<Props> { } stripEndingSlash = (url: string) => { - if (url.endsWith('/')) { + if (url.endsWith("/")) { return url.substring(0, url.length - 2); } return url; @@ -69,8 +69,8 @@ class SingleUser extends React.Component<Props> { if (error) { return ( <ErrorPage - title={t('singleUser.errorTitle')} - subtitle={t('singleUser.errorSubtitle')} + title={t("singleUser.errorTitle")} + subtitle={t("singleUser.errorSubtitle")} error={error} /> ); @@ -84,7 +84,7 @@ class SingleUser extends React.Component<Props> { const extensionProps = { user, - url, + url }; return ( @@ -116,15 +116,15 @@ class SingleUser extends React.Component<Props> { </div> <div className="column"> <Navigation> - <Section label={t('singleUser.menu.navigationLabel')}> + <Section label={t("singleUser.menu.navigationLabel")}> <NavLink to={`${url}`} icon="fas fa-info-circle" - label={t('singleUser.menu.informationNavLink')} + label={t("singleUser.menu.informationNavLink")} /> <SubNavigation to={`${url}/settings/general`} - label={t('singleUser.menu.settingsNavLink')} + label={t("singleUser.menu.settingsNavLink")} > <EditUserNavLink user={user} @@ -164,7 +164,7 @@ const mapStateToProps = (state, ownProps) => { name, user, loading, - error, + error }; }; @@ -172,11 +172,11 @@ const mapDispatchToProps = dispatch => { return { fetchUserByName: (link: string, name: string) => { dispatch(fetchUserByName(link, name)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('users')(SingleUser)); + mapDispatchToProps +)(translate("users")(SingleUser)); diff --git a/scm-ui/ui-webapp/src/users/containers/Users.tsx b/scm-ui/ui-webapp/src/users/containers/Users.tsx index 3883818849..964e05ea62 100644 --- a/scm-ui/ui-webapp/src/users/containers/Users.tsx +++ b/scm-ui/ui-webapp/src/users/containers/Users.tsx @@ -1,16 +1,16 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { translate } from 'react-i18next'; -import { History } from 'history'; -import { User, PagedCollection } from '@scm-manager/ui-types'; +import React from "react"; +import { connect } from "react-redux"; +import { translate } from "react-i18next"; +import { History } from "history"; +import { User, PagedCollection } from "@scm-manager/ui-types"; import { fetchUsersByPage, getUsersFromState, selectListAsCollection, isPermittedToCreateUsers, isFetchUsersPending, - getFetchUsersFailure, -} from '../modules/users'; + getFetchUsersFailure +} from "../modules/users"; import { Page, PageActions, @@ -18,10 +18,10 @@ import { Notification, LinkPaginator, urls, - CreateButton, -} from '@scm-manager/ui-components'; -import { UserTable } from './../components/table'; -import { getUsersLink } from '../../modules/indexResource'; + CreateButton +} from "@scm-manager/ui-components"; +import { UserTable } from "./../components/table"; +import { getUsersLink } from "../../modules/indexResource"; type Props = { users: User[]; @@ -47,7 +47,7 @@ class Users extends React.Component<Props> { fetchUsersByPage( usersLink, page, - urls.getQueryStringFromLocation(location), + urls.getQueryStringFromLocation(location) ); } @@ -58,7 +58,7 @@ class Users extends React.Component<Props> { page, usersLink, location, - fetchUsersByPage, + fetchUsersByPage } = this.props; if (list && page && !loading) { const statePage: number = list.page + 1; @@ -66,7 +66,7 @@ class Users extends React.Component<Props> { fetchUsersByPage( usersLink, page, - urls.getQueryStringFromLocation(location), + urls.getQueryStringFromLocation(location) ); } } @@ -76,8 +76,8 @@ class Users extends React.Component<Props> { const { users, loading, error, canAddUsers, t } = this.props; return ( <Page - title={t('users.title')} - subtitle={t('users.subtitle')} + title={t("users.title")} + subtitle={t("users.subtitle")} loading={loading || !users} error={error} > @@ -87,7 +87,7 @@ class Users extends React.Component<Props> { <OverviewPageActions showCreateButton={canAddUsers} link="users" - label={t('users.createButton')} + label={t("users.createButton")} /> </PageActions> </Page> @@ -108,14 +108,14 @@ class Users extends React.Component<Props> { </> ); } - return <Notification type="info">{t('users.noUsers')}</Notification>; + return <Notification type="info">{t("users.noUsers")}</Notification>; } renderCreateButton() { const { canAddUsers, t } = this.props; if (canAddUsers) { return ( - <CreateButton label={t('users.createButton')} link="/users/create" /> + <CreateButton label={t("users.createButton")} link="/users/create" /> ); } return null; @@ -139,7 +139,7 @@ const mapStateToProps = (state, ownProps) => { canAddUsers, list, page, - usersLink, + usersLink }; }; @@ -147,11 +147,11 @@ const mapDispatchToProps = dispatch => { return { fetchUsersByPage: (link: string, page: number, filter?: string) => { dispatch(fetchUsersByPage(link, page, filter)); - }, + } }; }; export default connect( mapStateToProps, - mapDispatchToProps, -)(translate('users')(Users)); + mapDispatchToProps +)(translate("users")(Users)); diff --git a/scm-ui/ui-webapp/src/users/modules/users.test.ts b/scm-ui/ui-webapp/src/users/modules/users.test.ts index 6209bf7fe8..757b77d588 100644 --- a/scm-ui/ui-webapp/src/users/modules/users.test.ts +++ b/scm-ui/ui-webapp/src/users/modules/users.test.ts @@ -1,6 +1,6 @@ -import configureMockStore from 'redux-mock-store'; -import thunk from 'redux-thunk'; -import fetchMock from 'fetch-mock'; +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; import reducer, { FETCH_USERS, @@ -45,53 +45,53 @@ import reducer, { deleteUserSuccess, getDeleteUserFailure, selectListAsCollection, - isPermittedToCreateUsers, -} from './users'; + isPermittedToCreateUsers +} from "./users"; const userZaphod = { active: true, admin: true, - creationDate: '2018-07-11T12:23:49.027Z', - displayName: 'Z. Beeblebrox', - mail: 'president@heartofgold.universe', - name: 'zaphod', - password: '', - type: 'xml', + creationDate: "2018-07-11T12:23:49.027Z", + displayName: "Z. Beeblebrox", + mail: "president@heartofgold.universe", + name: "zaphod", + password: "", + type: "xml", properties: {}, _links: { self: { - href: 'http://localhost:8081/api/v2/users/zaphod', + href: "http://localhost:8081/api/v2/users/zaphod" }, delete: { - href: 'http://localhost:8081/api/v2/users/zaphod', + href: "http://localhost:8081/api/v2/users/zaphod" }, update: { - href: 'http://localhost:8081/api/v2/users/zaphod', - }, - }, + href: "http://localhost:8081/api/v2/users/zaphod" + } + } }; const userFord = { active: true, admin: false, - creationDate: '2018-07-06T13:21:18.459Z', - displayName: 'F. Prefect', - mail: 'ford@prefect.universe', - name: 'ford', - password: '', - type: 'xml', + creationDate: "2018-07-06T13:21:18.459Z", + displayName: "F. Prefect", + mail: "ford@prefect.universe", + name: "ford", + password: "", + type: "xml", properties: {}, _links: { self: { - href: 'http://localhost:8081/api/v2/users/ford', + href: "http://localhost:8081/api/v2/users/ford" }, delete: { - href: 'http://localhost:8081/api/v2/users/ford', + href: "http://localhost:8081/api/v2/users/ford" }, update: { - href: 'http://localhost:8081/api/v2/users/ford', - }, - }, + href: "http://localhost:8081/api/v2/users/ford" + } + } }; const responseBody = { @@ -99,54 +99,54 @@ const responseBody = { pageTotal: 1, _links: { self: { - href: 'http://localhost:3000/api/v2/users/?page=0&pageSize=10', + href: "http://localhost:3000/api/v2/users/?page=0&pageSize=10" }, first: { - href: 'http://localhost:3000/api/v2/users/?page=0&pageSize=10', + href: "http://localhost:3000/api/v2/users/?page=0&pageSize=10" }, last: { - href: 'http://localhost:3000/api/v2/users/?page=0&pageSize=10', + href: "http://localhost:3000/api/v2/users/?page=0&pageSize=10" }, create: { - href: 'http://localhost:3000/api/v2/users/', - }, + href: "http://localhost:3000/api/v2/users/" + } }, _embedded: { - users: [userZaphod, userFord], - }, + users: [userZaphod, userFord] + } }; const response = { headers: { - 'content-type': 'application/json', + "content-type": "application/json" }, - responseBody, + responseBody }; -const URL = 'users'; -const USERS_URL = '/api/v2/users'; -const USER_ZAPHOD_URL = 'http://localhost:8081/api/v2/users/zaphod'; +const URL = "users"; +const USERS_URL = "/api/v2/users"; +const USER_ZAPHOD_URL = "http://localhost:8081/api/v2/users/zaphod"; -const error = new Error('KAPUTT'); +const error = new Error("KAPUTT"); -describe('users fetch()', () => { +describe("users fetch()", () => { const mockStore = configureMockStore([thunk]); afterEach(() => { fetchMock.reset(); fetchMock.restore(); }); - it('should successfully fetch users', () => { + it("should successfully fetch users", () => { fetchMock.getOnce(USERS_URL, response); const expectedActions = [ { - type: FETCH_USERS_PENDING, + type: FETCH_USERS_PENDING }, { type: FETCH_USERS_SUCCESS, - payload: response, - }, + payload: response + } ]; const store = mockStore({}); @@ -156,9 +156,9 @@ describe('users fetch()', () => { }); }); - it('should fail getting users on HTTP 500', () => { + it("should fail getting users on HTTP 500", () => { fetchMock.getOnce(USERS_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -170,11 +170,11 @@ describe('users fetch()', () => { }); }); - it('should sucessfully fetch single user by name', () => { - fetchMock.getOnce(USERS_URL + '/zaphod', userZaphod); + it("should sucessfully fetch single user by name", () => { + fetchMock.getOnce(USERS_URL + "/zaphod", userZaphod); const store = mockStore({}); - return store.dispatch(fetchUserByName(URL, 'zaphod')).then(() => { + return store.dispatch(fetchUserByName(URL, "zaphod")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_USER_PENDING); expect(actions[1].type).toEqual(FETCH_USER_SUCCESS); @@ -182,13 +182,13 @@ describe('users fetch()', () => { }); }); - it('should fail fetching single user by name on HTTP 500', () => { - fetchMock.getOnce(USERS_URL + '/zaphod', { - status: 500, + it("should fail fetching single user by name on HTTP 500", () => { + fetchMock.getOnce(USERS_URL + "/zaphod", { + status: 500 }); const store = mockStore({}); - return store.dispatch(fetchUserByName(URL, 'zaphod')).then(() => { + return store.dispatch(fetchUserByName(URL, "zaphod")).then(() => { const actions = store.getActions(); expect(actions[0].type).toEqual(FETCH_USER_PENDING); expect(actions[1].type).toEqual(FETCH_USER_FAILURE); @@ -196,7 +196,7 @@ describe('users fetch()', () => { }); }); - it('should sucessfully fetch single user', () => { + it("should sucessfully fetch single user", () => { fetchMock.getOnce(USER_ZAPHOD_URL, userZaphod); const store = mockStore({}); @@ -208,9 +208,9 @@ describe('users fetch()', () => { }); }); - it('should fail fetching single user on HTTP 500', () => { + it("should fail fetching single user on HTTP 500", () => { fetchMock.getOnce(USER_ZAPHOD_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -222,10 +222,10 @@ describe('users fetch()', () => { }); }); - it('should add a user successfully', () => { + it("should add a user successfully", () => { // unmatched fetchMock.postOnce(USERS_URL, { - status: 204, + status: 204 }); // after create, the users are fetched again @@ -239,9 +239,9 @@ describe('users fetch()', () => { }); }); - it('should fail adding a user on HTTP 500', () => { + it("should fail adding a user on HTTP 500", () => { fetchMock.postOnce(USERS_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -253,27 +253,27 @@ describe('users fetch()', () => { }); }); - it('should call the callback after user successfully created', () => { + it("should call the callback after user successfully created", () => { // unmatched fetchMock.postOnce(USERS_URL, { - status: 204, + status: 204 }); - let callMe = 'not yet'; + let callMe = "not yet"; const callback = () => { - callMe = 'yeah'; + callMe = "yeah"; }; const store = mockStore({}); return store.dispatch(createUser(URL, userZaphod, callback)).then(() => { - expect(callMe).toBe('yeah'); + expect(callMe).toBe("yeah"); }); }); - it('successfully update user', () => { + it("successfully update user", () => { fetchMock.putOnce(USER_ZAPHOD_URL, { - status: 204, + status: 204 }); fetchMock.getOnce(USER_ZAPHOD_URL, userZaphod); @@ -287,9 +287,9 @@ describe('users fetch()', () => { }); }); - it('should call callback, after successful modified user', () => { + it("should call callback, after successful modified user", () => { fetchMock.putOnce(USER_ZAPHOD_URL, { - status: 204, + status: 204 }); fetchMock.getOnce(USER_ZAPHOD_URL, userZaphod); @@ -304,9 +304,9 @@ describe('users fetch()', () => { }); }); - it('should fail updating user on HTTP 500', () => { + it("should fail updating user on HTTP 500", () => { fetchMock.putOnce(USER_ZAPHOD_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -318,9 +318,9 @@ describe('users fetch()', () => { }); }); - it('should delete successfully user zaphod', () => { + it("should delete successfully user zaphod", () => { fetchMock.deleteOnce(USER_ZAPHOD_URL, { - status: 204, + status: 204 }); const store = mockStore({}); @@ -333,9 +333,9 @@ describe('users fetch()', () => { }); }); - it('should call the callback, after successful delete', () => { + it("should call the callback, after successful delete", () => { fetchMock.deleteOnce(USER_ZAPHOD_URL, { - status: 204, + status: 204 }); let called = false; @@ -349,9 +349,9 @@ describe('users fetch()', () => { }); }); - it('should fail to delete user zaphod', () => { + it("should fail to delete user zaphod", () => { fetchMock.deleteOnce(USER_ZAPHOD_URL, { - status: 500, + status: 500 }); const store = mockStore({}); @@ -365,325 +365,325 @@ describe('users fetch()', () => { }); }); -describe('users reducer', () => { - it('should update state correctly according to FETCH_USERS_SUCCESS action', () => { +describe("users reducer", () => { + it("should update state correctly according to FETCH_USERS_SUCCESS action", () => { const newState = reducer({}, fetchUsersSuccess(responseBody)); expect(newState.list).toEqual({ - entries: ['zaphod', 'ford'], + entries: ["zaphod", "ford"], entry: { userCreatePermission: true, page: 0, pageTotal: 1, - _links: responseBody._links, - }, + _links: responseBody._links + } }); expect(newState.byNames).toEqual({ zaphod: userZaphod, - ford: userFord, + ford: userFord }); expect(newState.list.entry.userCreatePermission).toBeTruthy(); }); - it('should set userCreatePermission to true if update link is present', () => { + it("should set userCreatePermission to true if update link is present", () => { const newState = reducer({}, fetchUsersSuccess(responseBody)); expect(newState.list.entry.userCreatePermission).toBeTruthy(); }); - it('should not replace whole byNames map when fetching users', () => { + it("should not replace whole byNames map when fetching users", () => { const oldState = { byNames: { - ford: userFord, - }, + ford: userFord + } }; const newState = reducer(oldState, fetchUsersSuccess(responseBody)); - expect(newState.byNames['zaphod']).toBeDefined(); - expect(newState.byNames['ford']).toBeDefined(); + expect(newState.byNames["zaphod"]).toBeDefined(); + expect(newState.byNames["ford"]).toBeDefined(); }); - it('should remove user from state when delete succeeds', () => { + it("should remove user from state when delete succeeds", () => { const state = { list: { - entries: ['ford', 'zaphod'], + entries: ["ford", "zaphod"] }, byNames: { zaphod: userZaphod, - ford: userFord, - }, + ford: userFord + } }; const newState = reducer(state, deleteUserSuccess(userFord)); - expect(newState.byNames['zaphod']).toBeDefined(); - expect(newState.byNames['ford']).toBeFalsy(); - expect(newState.list.entries).toEqual(['zaphod']); + expect(newState.byNames["zaphod"]).toBeDefined(); + expect(newState.byNames["ford"]).toBeFalsy(); + expect(newState.list.entries).toEqual(["zaphod"]); }); - it('should set userCreatePermission to true if create link is present', () => { + it("should set userCreatePermission to true if create link is present", () => { const newState = reducer({}, fetchUsersSuccess(responseBody)); expect(newState.list.entry.userCreatePermission).toBeTruthy(); - expect(newState.list.entries).toEqual(['zaphod', 'ford']); - expect(newState.byNames['ford']).toBeTruthy(); - expect(newState.byNames['zaphod']).toBeTruthy(); + expect(newState.list.entries).toEqual(["zaphod", "ford"]); + expect(newState.byNames["ford"]).toBeTruthy(); + expect(newState.byNames["zaphod"]).toBeTruthy(); }); - it('should update state according to FETCH_USER_SUCCESS action', () => { + it("should update state according to FETCH_USER_SUCCESS action", () => { const newState = reducer({}, fetchUserSuccess(userFord)); - expect(newState.byNames['ford']).toBe(userFord); + expect(newState.byNames["ford"]).toBe(userFord); }); - it('should affect users state nor the state of other users', () => { + it("should affect users state nor the state of other users", () => { const newState = reducer( { list: { - entries: ['zaphod'], - }, + entries: ["zaphod"] + } }, - fetchUserSuccess(userFord), + fetchUserSuccess(userFord) ); - expect(newState.byNames['ford']).toBe(userFord); - expect(newState.list.entries).toEqual(['zaphod']); + expect(newState.byNames["ford"]).toBe(userFord); + expect(newState.list.entries).toEqual(["zaphod"]); }); }); -describe('selector tests', () => { - it('should return an empty object', () => { +describe("selector tests", () => { + it("should return an empty object", () => { expect(selectListAsCollection({})).toEqual({}); expect( selectListAsCollection({ users: { - a: 'a', - }, - }), + a: "a" + } + }) ).toEqual({}); }); - it('should return a state slice collection', () => { + it("should return a state slice collection", () => { const collection = { page: 3, - totalPages: 42, + totalPages: 42 }; const state = { users: { list: { - entry: collection, - }, - }, + entry: collection + } + } }; expect(selectListAsCollection(state)).toBe(collection); }); - it('should return false', () => { + it("should return false", () => { expect(isPermittedToCreateUsers({})).toBe(false); expect( isPermittedToCreateUsers({ users: { list: { - entry: {}, - }, - }, - }), + entry: {} + } + } + }) ).toBe(false); expect( isPermittedToCreateUsers({ users: { list: { entry: { - userCreatePermission: false, - }, - }, - }, - }), + userCreatePermission: false + } + } + } + }) ).toBe(false); }); - it('should return true', () => { + it("should return true", () => { const state = { users: { list: { entry: { - userCreatePermission: true, - }, - }, - }, + userCreatePermission: true + } + } + } }; expect(isPermittedToCreateUsers(state)).toBe(true); }); - it('should get users from state', () => { + it("should get users from state", () => { const state = { users: { list: { - entries: ['a', 'b'], + entries: ["a", "b"] }, byNames: { a: { - name: 'a', + name: "a" }, b: { - name: 'b', - }, - }, - }, + name: "b" + } + } + } }; expect(getUsersFromState(state)).toEqual([ { - name: 'a', + name: "a" }, { - name: 'b', - }, + name: "b" + } ]); }); - it('should return true, when fetch users is pending', () => { + it("should return true, when fetch users is pending", () => { const state = { pending: { - [FETCH_USERS]: true, - }, + [FETCH_USERS]: true + } }; expect(isFetchUsersPending(state)).toEqual(true); }); - it('should return false, when fetch users is not pending', () => { + it("should return false, when fetch users is not pending", () => { expect(isFetchUsersPending({})).toEqual(false); }); - it('should return error when fetch users did fail', () => { + it("should return error when fetch users did fail", () => { const state = { failure: { - [FETCH_USERS]: error, - }, + [FETCH_USERS]: error + } }; expect(getFetchUsersFailure(state)).toEqual(error); }); - it('should return undefined when fetch users did not fail', () => { + it("should return undefined when fetch users did not fail", () => { expect(getFetchUsersFailure({})).toBe(undefined); }); - it('should return true if create user is pending', () => { + it("should return true if create user is pending", () => { const state = { pending: { - [CREATE_USER]: true, - }, + [CREATE_USER]: true + } }; expect(isCreateUserPending(state)).toBe(true); }); - it('should return false if create user is not pending', () => { + it("should return false if create user is not pending", () => { const state = { pending: { - [CREATE_USER]: false, - }, + [CREATE_USER]: false + } }; expect(isCreateUserPending(state)).toBe(false); }); - it('should return error when create user did fail', () => { + it("should return error when create user did fail", () => { const state = { failure: { - [CREATE_USER]: error, - }, + [CREATE_USER]: error + } }; expect(getCreateUserFailure(state)).toEqual(error); }); - it('should return undefined when create user did not fail', () => { + it("should return undefined when create user did not fail", () => { expect(getCreateUserFailure({})).toBe(undefined); }); - it('should return user ford', () => { + it("should return user ford", () => { const state = { users: { byNames: { - ford: userFord, - }, - }, + ford: userFord + } + } }; - expect(getUserByName(state, 'ford')).toEqual(userFord); + expect(getUserByName(state, "ford")).toEqual(userFord); }); - it('should return true, when fetch user zaphod is pending', () => { + it("should return true, when fetch user zaphod is pending", () => { const state = { pending: { - [FETCH_USER + '/zaphod']: true, - }, + [FETCH_USER + "/zaphod"]: true + } }; - expect(isFetchUserPending(state, 'zaphod')).toEqual(true); + expect(isFetchUserPending(state, "zaphod")).toEqual(true); }); - it('should return false, when fetch user zaphod is not pending', () => { - expect(isFetchUserPending({}, 'zaphod')).toEqual(false); + it("should return false, when fetch user zaphod is not pending", () => { + expect(isFetchUserPending({}, "zaphod")).toEqual(false); }); - it('should return error when fetch user zaphod did fail', () => { + it("should return error when fetch user zaphod did fail", () => { const state = { failure: { - [FETCH_USER + '/zaphod']: error, - }, + [FETCH_USER + "/zaphod"]: error + } }; - expect(getFetchUserFailure(state, 'zaphod')).toEqual(error); + expect(getFetchUserFailure(state, "zaphod")).toEqual(error); }); - it('should return undefined when fetch user zaphod did not fail', () => { - expect(getFetchUserFailure({}, 'zaphod')).toBe(undefined); + it("should return undefined when fetch user zaphod did not fail", () => { + expect(getFetchUserFailure({}, "zaphod")).toBe(undefined); }); - it('should return true, when modify user ford is pending', () => { + it("should return true, when modify user ford is pending", () => { const state = { pending: { - [MODIFY_USER + '/ford']: true, - }, + [MODIFY_USER + "/ford"]: true + } }; - expect(isModifyUserPending(state, 'ford')).toEqual(true); + expect(isModifyUserPending(state, "ford")).toEqual(true); }); - it('should return false, when modify user ford is not pending', () => { - expect(isModifyUserPending({}, 'ford')).toEqual(false); + it("should return false, when modify user ford is not pending", () => { + expect(isModifyUserPending({}, "ford")).toEqual(false); }); - it('should return error when modify user ford did fail', () => { + it("should return error when modify user ford did fail", () => { const state = { failure: { - [MODIFY_USER + '/ford']: error, - }, + [MODIFY_USER + "/ford"]: error + } }; - expect(getModifyUserFailure(state, 'ford')).toEqual(error); + expect(getModifyUserFailure(state, "ford")).toEqual(error); }); - it('should return undefined when modify user ford did not fail', () => { - expect(getModifyUserFailure({}, 'ford')).toBe(undefined); + it("should return undefined when modify user ford did not fail", () => { + expect(getModifyUserFailure({}, "ford")).toBe(undefined); }); - it('should return true, when delete user zaphod is pending', () => { + it("should return true, when delete user zaphod is pending", () => { const state = { pending: { - [DELETE_USER + '/zaphod']: true, - }, + [DELETE_USER + "/zaphod"]: true + } }; - expect(isDeleteUserPending(state, 'zaphod')).toEqual(true); + expect(isDeleteUserPending(state, "zaphod")).toEqual(true); }); - it('should return false, when delete user zaphod is not pending', () => { - expect(isDeleteUserPending({}, 'zaphod')).toEqual(false); + it("should return false, when delete user zaphod is not pending", () => { + expect(isDeleteUserPending({}, "zaphod")).toEqual(false); }); - it('should return error when delete user zaphod did fail', () => { + it("should return error when delete user zaphod did fail", () => { const state = { failure: { - [DELETE_USER + '/zaphod']: error, - }, + [DELETE_USER + "/zaphod"]: error + } }; - expect(getDeleteUserFailure(state, 'zaphod')).toEqual(error); + expect(getDeleteUserFailure(state, "zaphod")).toEqual(error); }); - it('should return undefined when delete user zaphod did not fail', () => { - expect(getDeleteUserFailure({}, 'zaphod')).toBe(undefined); + it("should return undefined when delete user zaphod did not fail", () => { + expect(getDeleteUserFailure({}, "zaphod")).toBe(undefined); }); }); diff --git a/scm-ui/ui-webapp/src/users/modules/users.ts b/scm-ui/ui-webapp/src/users/modules/users.ts index cd2506c289..032cfde274 100644 --- a/scm-ui/ui-webapp/src/users/modules/users.ts +++ b/scm-ui/ui-webapp/src/users/modules/users.ts @@ -1,38 +1,38 @@ -import { apiClient } from '@scm-manager/ui-components'; -import { isPending } from '../../modules/pending'; -import { getFailure } from '../../modules/failure'; -import * as types from '../../modules/types'; -import { combineReducers, Dispatch } from 'redux'; -import { User, Action, PagedCollection } from '@scm-manager/ui-types'; +import { apiClient } from "@scm-manager/ui-components"; +import { isPending } from "../../modules/pending"; +import { getFailure } from "../../modules/failure"; +import * as types from "../../modules/types"; +import { combineReducers, Dispatch } from "redux"; +import { User, Action, PagedCollection } from "@scm-manager/ui-types"; -export const FETCH_USERS = 'scm/users/FETCH_USERS'; +export const FETCH_USERS = "scm/users/FETCH_USERS"; export const FETCH_USERS_PENDING = `${FETCH_USERS}_${types.PENDING_SUFFIX}`; export const FETCH_USERS_SUCCESS = `${FETCH_USERS}_${types.SUCCESS_SUFFIX}`; export const FETCH_USERS_FAILURE = `${FETCH_USERS}_${types.FAILURE_SUFFIX}`; -export const FETCH_USER = 'scm/users/FETCH_USER'; +export const FETCH_USER = "scm/users/FETCH_USER"; export const FETCH_USER_PENDING = `${FETCH_USER}_${types.PENDING_SUFFIX}`; export const FETCH_USER_SUCCESS = `${FETCH_USER}_${types.SUCCESS_SUFFIX}`; export const FETCH_USER_FAILURE = `${FETCH_USER}_${types.FAILURE_SUFFIX}`; -export const CREATE_USER = 'scm/users/CREATE_USER'; +export const CREATE_USER = "scm/users/CREATE_USER"; export const CREATE_USER_PENDING = `${CREATE_USER}_${types.PENDING_SUFFIX}`; export const CREATE_USER_SUCCESS = `${CREATE_USER}_${types.SUCCESS_SUFFIX}`; export const CREATE_USER_FAILURE = `${CREATE_USER}_${types.FAILURE_SUFFIX}`; export const CREATE_USER_RESET = `${CREATE_USER}_${types.RESET_SUFFIX}`; -export const MODIFY_USER = 'scm/users/MODIFY_USER'; +export const MODIFY_USER = "scm/users/MODIFY_USER"; export const MODIFY_USER_PENDING = `${MODIFY_USER}_${types.PENDING_SUFFIX}`; export const MODIFY_USER_SUCCESS = `${MODIFY_USER}_${types.SUCCESS_SUFFIX}`; export const MODIFY_USER_FAILURE = `${MODIFY_USER}_${types.FAILURE_SUFFIX}`; export const MODIFY_USER_RESET = `${MODIFY_USER}_${types.RESET_SUFFIX}`; -export const DELETE_USER = 'scm/users/DELETE_USER'; +export const DELETE_USER = "scm/users/DELETE_USER"; export const DELETE_USER_PENDING = `${DELETE_USER}_${types.PENDING_SUFFIX}`; export const DELETE_USER_SUCCESS = `${DELETE_USER}_${types.SUCCESS_SUFFIX}`; export const DELETE_USER_FAILURE = `${DELETE_USER}_${types.FAILURE_SUFFIX}`; -const CONTENT_TYPE_USER = 'application/vnd.scmm-user+json;v=2'; +const CONTENT_TYPE_USER = "application/vnd.scmm-user+json;v=2"; // TODO i18n for error messages @@ -46,7 +46,7 @@ export function fetchUsersByPage(link: string, page: number, filter?: string) { // backend start counting by 0 if (filter) { return fetchUsersByLink( - `${link}?page=${page - 1}&q=${decodeURIComponent(filter)}`, + `${link}?page=${page - 1}&q=${decodeURIComponent(filter)}` ); } return fetchUsersByLink(`${link}?page=${page - 1}`); @@ -69,14 +69,14 @@ export function fetchUsersByLink(link: string) { export function fetchUsersPending(): Action { return { - type: FETCH_USERS_PENDING, + type: FETCH_USERS_PENDING }; } export function fetchUsersSuccess(users: any): Action { return { type: FETCH_USERS_SUCCESS, - payload: users, + payload: users }; } @@ -85,14 +85,14 @@ export function fetchUsersFailure(url: string, error: Error): Action { type: FETCH_USERS_FAILURE, payload: { error, - url, - }, + url + } }; } //fetch user export function fetchUserByName(link: string, name: string) { - const userUrl = link.endsWith('/') ? link + name : link + '/' + name; + const userUrl = link.endsWith("/") ? link + name : link + "/" + name; return fetchUser(userUrl, name); } @@ -121,7 +121,7 @@ export function fetchUserPending(name: string): Action { return { type: FETCH_USER_PENDING, payload: name, - itemId: name, + itemId: name }; } @@ -129,7 +129,7 @@ export function fetchUserSuccess(user: any): Action { return { type: FETCH_USER_SUCCESS, payload: user, - itemId: user.name, + itemId: user.name }; } @@ -138,9 +138,9 @@ export function fetchUserFailure(name: string, error: Error): Action { type: FETCH_USER_FAILURE, payload: { name, - error, + error }, - itemId: name, + itemId: name }; } @@ -164,26 +164,26 @@ export function createUser(link: string, user: User, callback?: () => void) { export function createUserPending(user: User): Action { return { type: CREATE_USER_PENDING, - user, + user }; } export function createUserSuccess(): Action { return { - type: CREATE_USER_SUCCESS, + type: CREATE_USER_SUCCESS }; } export function createUserFailure(error: Error): Action { return { type: CREATE_USER_FAILURE, - payload: error, + payload: error }; } export function createUserReset() { return { - type: CREATE_USER_RESET, + type: CREATE_USER_RESET }; } @@ -213,7 +213,7 @@ export function modifyUserPending(user: User): Action { return { type: MODIFY_USER_PENDING, payload: user, - itemId: user.name, + itemId: user.name }; } @@ -221,7 +221,7 @@ export function modifyUserSuccess(user: User): Action { return { type: MODIFY_USER_SUCCESS, payload: user, - itemId: user.name, + itemId: user.name }; } @@ -230,16 +230,16 @@ export function modifyUserFailure(user: User, error: Error): Action { type: MODIFY_USER_FAILURE, payload: { error, - user, + user }, - itemId: user.name, + itemId: user.name }; } export function modifyUserReset(user: User): Action { return { type: MODIFY_USER_RESET, - itemId: user.name, + itemId: user.name }; } @@ -266,7 +266,7 @@ export function deleteUserPending(user: User): Action { return { type: DELETE_USER_PENDING, payload: user, - itemId: user.name, + itemId: user.name }; } @@ -274,7 +274,7 @@ export function deleteUserSuccess(user: User): Action { return { type: DELETE_USER_SUCCESS, payload: user, - itemId: user.name, + itemId: user.name }; } @@ -283,16 +283,16 @@ export function deleteUserFailure(user: User, error: Error): Action { type: DELETE_USER_FAILURE, payload: { error, - user, + user }, - itemId: user.name, + itemId: user.name }; } function extractUsersByNames( users: User[], userNames: string[], - oldUsersByNames: object, + oldUsersByNames: object ) { const usersByNames = {}; @@ -325,7 +325,7 @@ function deleteUserInEntries(users: [], userName: string) { const reducerByName = (state: any, username: string, newUserState: any) => { return { ...state, - [username]: newUserState, + [username]: newUserState }; }; @@ -341,19 +341,19 @@ function listReducer(state: any = {}, action: any = {}) { userCreatePermission: !!action.payload._links.create, page: action.payload.page, pageTotal: action.payload.pageTotal, - _links: action.payload._links, - }, + _links: action.payload._links + } }; // Delete single user actions case DELETE_USER_SUCCESS: const newUserEntries = deleteUserInEntries( state.entries, - action.payload.name, + action.payload.name ); return { ...state, - entries: newUserEntries, + entries: newUserEntries }; default: return state; @@ -368,7 +368,7 @@ function byNamesReducer(state: any = {}, action: any = {}) { const userNames = users.map(user => user.name); const byNames = extractUsersByNames(users, userNames, state.byNames); return { - ...byNames, + ...byNames }; // Fetch single user actions @@ -385,7 +385,7 @@ function byNamesReducer(state: any = {}, action: any = {}) { export default combineReducers({ list: listReducer, - byNames: byNamesReducer, + byNames: byNamesReducer }); // selectors diff --git a/scm-ui/ui-webapp/src/webpack-public-path.ts b/scm-ui/ui-webapp/src/webpack-public-path.ts index 7e7ec81048..2375a9c104 100644 --- a/scm-ui/ui-webapp/src/webpack-public-path.ts +++ b/scm-ui/ui-webapp/src/webpack-public-path.ts @@ -2,4 +2,4 @@ // setup webpack public path: // https://stackoverflow.com/questions/39879680/example-of-setting-webpack-public-path-at-runtime // https://github.com/coryhouse/react-slingshot/pull/207/files -__webpack_public_path__ = window.ctxPath + '/assets/'; +__webpack_public_path__ = window.ctxPath + "/assets/"; diff --git a/scm-ui/ui-webapp/tsconfig.json b/scm-ui/ui-webapp/tsconfig.json new file mode 100644 index 0000000000..ecde2a0c77 --- /dev/null +++ b/scm-ui/ui-webapp/tsconfig.json @@ -0,0 +1,67 @@ +{ + "compilerOptions": { + /* Basic Options */ + // "incremental": true, /* Enable incremental compilation */ + "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + // "lib": [], /* Specify library files to be included in the compilation. */ + "allowJs": true, /* Allow javascript files to be compiled. */ + "checkJs": true, /* Report errors in .js files. */ + "jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ + // "declaration": true, /* Generates corresponding '.d.ts' file. */ + // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + // "sourceMap": true, /* Generates corresponding '.map' file. */ + // "outFile": "./", /* Concatenate and emit output to single file. */ + // "outDir": "./", /* Redirect output structure to the directory. */ + // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ + // "composite": true, /* Enable project compilation */ + // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ + // "removeComments": true, /* Do not emit comments to output. */ + "noEmit": true, /* Do not emit outputs. */ + // "importHelpers": true, /* Import emit helpers from 'tslib'. */ + // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ + // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ + + /* Strict Type-Checking Options */ + "strict": true, /* Enable all strict type-checking options. */ + "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ + "strictNullChecks": true, /* Enable strict null checks. */ + // "strictFunctionTypes": true, /* Enable strict checking of function types. */ + // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ + // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ + // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ + // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ + + /* Additional Checks */ + // "noUnusedLocals": true, /* Report errors on unused locals. */ + // "noUnusedParameters": true, /* Report errors on unused parameters. */ + // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ + // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ + + /* Module Resolution Options */ + // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ + // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ + // "typeRoots": [], /* List of folders to include type definitions from. */ + // "types": [], /* Type declaration files to be included in compilation. */ + // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ + "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + + /* Source Map Options */ + // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ + // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ + + /* Experimental Options */ + // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ + // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + "skipLibCheck": true + }, + "include": [ + "src/*" + ] +}