Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
john681611 committed Nov 1, 2023
1 parent 4e8beed commit 07b4e62
Show file tree
Hide file tree
Showing 4 changed files with 50,588 additions and 188 deletions.
16 changes: 10 additions & 6 deletions application/frontend/src/pages/Explorer/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export const Explorer = () => {
return storedDoc;
};

const getTreeQuery = useQuery('root_cres', () => {
const getTreeQuery = useQuery(
'root_cres',
() => {
if (!tree.length && Object.keys(store).length) {
setLoading(true);
fetch(`${apiUrl}/root_cres`)
Expand Down Expand Up @@ -171,11 +173,13 @@ export const Explorer = () => {
{item.standards && item.standards.length > 0 && (
<List.Description>
<Label.Group size="tiny" tag>
{[...new Set(item.standards.map((x: LinkedTreeDocument) => x.document.name))].sort().map((x: string) => (
<Link key={Math.random()} to={`/node/standard/${x}`}>
<Label>{x}</Label>
</Link>
))}
{[...new Set(item.standards.map((x: LinkedTreeDocument) => x.document.name))]
.sort()
.map((x: string) => (
<Link key={Math.random()} to={`/node/standard/${x}`}>
<Label>{x}</Label>
</Link>
))}
</Label.Group>
</List.Description>
)}
Expand Down
47,442 changes: 47,316 additions & 126 deletions application/frontend/src/pages/Explorer/visuals/circles/circles.tsx

Large diffs are not rendered by default.

3,308 changes: 3,257 additions & 51 deletions application/frontend/src/pages/Explorer/visuals/force-graph/forceGraph.tsx

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions application/frontend/src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ import {
BROWSEROOT,
CRE,
DEEPLINK,
GAP_ANALYSIS,
EXPLORER,
GAP_ANALYSIS,
GRAPH,
INDEX,
SEARCH,
SECTION,
SECTION_ID,
STANDARD
STANDARD,
} from './const';
import { CommonRequirementEnumeration, Graph, Search, Standard } from './pages';
import { BrowseRootCres } from './pages/BrowseRootCres/browseRootCres';
import { Chatbot } from './pages/chatbot/chatbot';
import { Deeplink } from './pages/Deeplink/Deeplink';
import { GapAnalysis } from './pages/GapAnalysis/GapAnalysis';
import { Explorer } from './pages/Explorer/explorer';
import { ExplorerCircles } from './pages/Explorer/visuals/circles/circles';
import { ExplorerForceGraph } from './pages/Explorer/visuals/force-graph/forceGraph';
import { GapAnalysis } from './pages/GapAnalysis/GapAnalysis';
import { MembershipRequired } from './pages/MembershipRequired/MembershipRequired';
import { SearchName } from './pages/Search/SearchName';
import { StandardSection } from './pages/Standard/StandardSection';
import { ExplorerCircles } from './pages/Explorer/visuals/circles/circles';
import { ExplorerForceGraph } from './pages/Explorer/visuals/force-graph/forceGraph';

export interface IRoute {
path: string;
Expand Down

0 comments on commit 07b4e62

Please sign in to comment.