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