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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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