Skip to content

Commit

Permalink
suppression node-modules, icon ...
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemenceCartet committed Apr 7, 2023
1 parent db00fe1 commit 71c15a2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 81 deletions.
3 changes: 2 additions & 1 deletion back/nest_project/src/user/relation/friend/friend.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { FriendEntity } from "./friend.entity";
import { FriendService } from "./friend.service";
import { FriendController } from "./friend.controller";
import { JwtStrategy } from "src/auth_strategies/jwt.strategy";
import { UserModule } from "src/user/user.module";

@Module({
imports: [TypeOrmModule.forFeature([FriendEntity])],
imports: [TypeOrmModule.forFeature([FriendEntity]), UserModule],
controllers: [FriendController],
providers: [FriendService, JwtStrategy], // seulement ces fonctions ont accès à la table Friend
exports: [FriendService],
Expand Down
3 changes: 2 additions & 1 deletion back/nest_project/src/user/relation/friend/friend.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from "@nestjs/common";
import { Inject, Injectable } from "@nestjs/common";
import { InjectRepository } from "@nestjs/typeorm";
import { UserEntity } from "src/user/user.entity";
import { UserService } from "src/user/user.service";
Expand All @@ -10,6 +10,7 @@ export class FriendService {
constructor (
@InjectRepository(FriendEntity)
private readonly friendRepository: Repository<FriendEntity>,
@Inject(UserService)
private readonly userService: UserService,
) {}

Expand Down
73 changes: 0 additions & 73 deletions front/package-lock.json

This file was deleted.

5 changes: 0 additions & 5 deletions front/package.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export function Header(props: {dest: IDest}) {
: <FontAwesomeIcon className="iconChannels" icon={faUser} /> }
{props.dest.name}
</h1>
{props.dest.name !== "general" && <button onClick={onClickSidebar}><FontAwesomeIcon icon={faEllipsisVertical} /></button>}
{props.dest.name !== "general" && <button onClick={onClickSidebar}><FontAwesomeIcon className="iconChannels" icon={faEllipsisVertical} /></button>}
</div>
)
}
Expand Down

0 comments on commit 71c15a2

Please sign in to comment.