diff --git a/src/app/credExplorer/PagerankTable.js b/src/app/credExplorer/PagerankTable.js index f82d3da..fbea0c7 100644 --- a/src/app/credExplorer/PagerankTable.js +++ b/src/app/credExplorer/PagerankTable.js @@ -14,7 +14,7 @@ import type { ScoredConnection, } from "../../core/attribution/pagerankNodeDecomposition"; import type {Connection} from "../../core/attribution/graphToMarkovChain"; -import type {DynamicPluginAdapter} from "../../core/pluginAdapter"; +import type {DynamicPluginAdapter} from "../pluginAdapter"; import * as NullUtil from "../../util/null"; // TODO: Factor this out and test it (#465) diff --git a/src/app/credExplorer/PagerankTable.test.js b/src/app/credExplorer/PagerankTable.test.js index 068d184..beeec09 100644 --- a/src/app/credExplorer/PagerankTable.test.js +++ b/src/app/credExplorer/PagerankTable.test.js @@ -2,7 +2,7 @@ import React from "react"; import {shallow} from "enzyme"; -import type {DynamicPluginAdapter} from "../../core/pluginAdapter"; +import type {DynamicPluginAdapter} from "../pluginAdapter"; import { PagerankTable, diff --git a/src/app/credExplorer/WeightConfig.js b/src/app/credExplorer/WeightConfig.js index eff1b62..28d9fcf 100644 --- a/src/app/credExplorer/WeightConfig.js +++ b/src/app/credExplorer/WeightConfig.js @@ -15,7 +15,7 @@ import {byEdgeType, byNodeType} from "./edgeWeights"; import * as MapUtil from "../../util/map"; import * as NullUtil from "../../util/null"; -import type {StaticPluginAdapter} from "../../core/pluginAdapter"; +import type {StaticPluginAdapter} from "../pluginAdapter"; import {StaticPluginAdapter as GithubAdapter} from "../../plugins/github/pluginAdapter"; import {StaticPluginAdapter as GitAdapter} from "../../plugins/git/pluginAdapter"; diff --git a/src/app/credExplorer/state.js b/src/app/credExplorer/state.js index 9dc720c..3b78943 100644 --- a/src/app/credExplorer/state.js +++ b/src/app/credExplorer/state.js @@ -12,7 +12,7 @@ import { pagerank, } from "../../core/attribution/pagerank"; -import type {DynamicPluginAdapter} from "../../core/pluginAdapter"; +import type {DynamicPluginAdapter} from "../pluginAdapter"; import {StaticPluginAdapter as GitAdapter} from "../../plugins/git/pluginAdapter"; import {StaticPluginAdapter as GithubAdapter} from "../../plugins/github/pluginAdapter"; diff --git a/src/core/pluginAdapter.js b/src/app/pluginAdapter.js similarity index 83% rename from src/core/pluginAdapter.js rename to src/app/pluginAdapter.js index 0a67f93..36d2bcc 100644 --- a/src/core/pluginAdapter.js +++ b/src/app/pluginAdapter.js @@ -1,7 +1,7 @@ // @flow -import type {Graph, NodeAddressT, EdgeAddressT} from "./graph"; -import type {Repo} from "./repo"; +import type {Graph, NodeAddressT, EdgeAddressT} from "../core/graph"; +import type {Repo} from "../core/repo"; export type EdgeType = {| +forwardName: string, diff --git a/src/plugins/git/pluginAdapter.js b/src/plugins/git/pluginAdapter.js index 9e1663e..c907a3a 100644 --- a/src/plugins/git/pluginAdapter.js +++ b/src/plugins/git/pluginAdapter.js @@ -2,7 +2,7 @@ import type { StaticPluginAdapter as IStaticPluginAdapter, DynamicPluginAdapter as IDynamicPluginAdapter, -} from "../../core/pluginAdapter"; +} from "../../app/pluginAdapter"; import {Graph} from "../../core/graph"; import * as N from "./nodes"; import * as E from "./edges"; @@ -64,7 +64,7 @@ export class StaticPluginAdapter implements IStaticPluginAdapter { } const json = await response.json(); const graph = Graph.fromJSON(json); - return (new DynamicPluginAdapter(graph): IDynamicPluginAdapter); + return new DynamicPluginAdapter(graph); } } diff --git a/src/plugins/github/pluginAdapter.js b/src/plugins/github/pluginAdapter.js index 10eace9..44ca396 100644 --- a/src/plugins/github/pluginAdapter.js +++ b/src/plugins/github/pluginAdapter.js @@ -2,7 +2,7 @@ import type { StaticPluginAdapter as IStaticPluginAdapter, DynamicPluginAdapter as IDynamicPluginAdapater, -} from "../../core/pluginAdapter"; +} from "../../app/pluginAdapter"; import {type Graph, NodeAddress} from "../../core/graph"; import {createGraph} from "./createGraph"; import * as N from "./nodes";