Refactor - folders for each component
This commit is contained in:
parent
74d18a69d4
commit
b8959e81bc
|
@ -1,8 +1,7 @@
|
|||
import { Edge } from "../graph.interface";
|
||||
import { Citation } from "./citation";
|
||||
import { Member } from "./member";
|
||||
import { Post } from "./post";
|
||||
|
||||
import { Member } from "../member/member";
|
||||
import { Post } from "../post/post";
|
||||
|
||||
describe('Reputation Service Citation', () => {
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import { Post } from "./post";
|
||||
import { Edge, Vertex } from "../graph.interface";
|
||||
import { Post } from "../post/post";
|
||||
import { Edge, Vertex } from "../../graph.interface";
|
||||
import { randomUUID } from "crypto";
|
||||
|
||||
export class Citation implements Edge {
|
|
@ -1,10 +1,8 @@
|
|||
|
||||
import { Vertex } from '../graph/vertex';
|
||||
import { Edge } from '../graph/edge';
|
||||
import { Citation } from './citation';
|
||||
import { Citation } from '../citation/citation';
|
||||
import { Forum } from './forum';
|
||||
import { Member } from './member';
|
||||
import { Post } from './post';
|
||||
import { Member } from '../member/member';
|
||||
import { Post } from '../post/post';
|
||||
|
||||
function implementsVertex(obj: Object) {
|
||||
return "id" in obj && "data" in obj && "citations" in obj;
|
|
@ -1,7 +1,7 @@
|
|||
import { Edge, Graph, Vertex } from "../graph.interface";
|
||||
import { Citation } from "./citation";
|
||||
import { LedgerEntry, Member } from "./member";
|
||||
import { Post } from "./post";
|
||||
import { Citation } from "../citation/citation";
|
||||
import { LedgerEntry, Member } from "../member/member";
|
||||
import { Post } from "../post/post";
|
||||
|
||||
export class Forum implements Graph {
|
||||
|
|
@ -64,4 +64,4 @@ export class Member {
|
|||
return entry;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
import { Vertex } from "../graph.interface";
|
||||
import { Citation } from "./citation";
|
||||
import { Member } from "./member";
|
||||
import { Citation } from "../citation/citation";
|
||||
import { Member } from "../member/member";
|
||||
import { Post } from "./post";
|
||||
|
||||
describe('Reputation Service Post', () => {
|
|
@ -1,5 +1,5 @@
|
|||
import { Citation } from "./citation";
|
||||
import { Member } from "./member";
|
||||
import { Citation } from "../citation/citation";
|
||||
import { Member } from "../member/member";
|
||||
import { Vertex } from "../graph.interface";
|
||||
import { randomUUID } from "crypto";
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
|
||||
export class ReputationService {
|
||||
|
||||
}
|
Loading…
Reference in New Issue