Refactor - folders for each component

This commit is contained in:
Chegele 2023-07-25 13:51:09 -04:00
parent 74d18a69d4
commit b8959e81bc
12 changed files with 15 additions and 22 deletions

View File

@ -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', () => {

View File

@ -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 {

View File

@ -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;

View File

@ -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 {

View File

@ -64,4 +64,4 @@ export class Member {
return entry; return entry;
} }
} }

View File

@ -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', () => {

View File

@ -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";

View File

@ -1,4 +0,0 @@
export class ReputationService {
}