|
|
@ -1,6 +1,6 @@ |
|
|
|
import React, { useEffect, useState, useReducer } from 'react' |
|
|
|
import React, { useEffect, useState, useReducer } from 'react' |
|
|
|
import Button from './Button/StaticAnalyserButton' // eslint-disable-line
|
|
|
|
import Button from './Button/StaticAnalyserButton' // eslint-disable-line
|
|
|
|
import remixLib from '@remix-project/remix-lib' |
|
|
|
import { util } from '@remix-project/remix-lib' |
|
|
|
import _ from 'lodash' |
|
|
|
import _ from 'lodash' |
|
|
|
import { TreeView, TreeViewItem } from '@remix-ui/tree-view' // eslint-disable-line
|
|
|
|
import { TreeView, TreeViewItem } from '@remix-ui/tree-view' // eslint-disable-line
|
|
|
|
import { RemixUiCheckbox } from '@remix-ui/checkbox' // eslint-disable-line
|
|
|
|
import { RemixUiCheckbox } from '@remix-ui/checkbox' // eslint-disable-line
|
|
|
@ -9,7 +9,6 @@ import { compilation } from './actions/staticAnalysisActions' |
|
|
|
import { initialState, analysisReducer } from './reducers/staticAnalysisReducer' |
|
|
|
import { initialState, analysisReducer } from './reducers/staticAnalysisReducer' |
|
|
|
import { OverlayTrigger, Tooltip } from 'react-bootstrap'// eslint-disable-line
|
|
|
|
import { OverlayTrigger, Tooltip } from 'react-bootstrap'// eslint-disable-line
|
|
|
|
const StaticAnalysisRunner = require('@remix-project/remix-analyzer').CodeAnalysis |
|
|
|
const StaticAnalysisRunner = require('@remix-project/remix-analyzer').CodeAnalysis |
|
|
|
const utils = remixLib.util |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
declare global { |
|
|
|
declare global { |
|
|
|
interface Window { |
|
|
|
interface Window { |
|
|
@ -38,7 +37,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const groupedModules = utils.groupBy( |
|
|
|
const groupedModules = util.groupBy( |
|
|
|
preProcessModules(runner.modules()), |
|
|
|
preProcessModules(runner.modules()), |
|
|
|
'categoryId' |
|
|
|
'categoryId' |
|
|
|
) |
|
|
|
) |
|
|
|