Skip to content

Commit

Permalink
✔ Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-elhaddad committed Oct 20, 2023
1 parent 5cf09df commit 8a906bf
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 24 deletions.
8 changes: 4 additions & 4 deletions public/css/card.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* {
color: #1C1C1C;
color: #1c1c1c;
font-family: sans-serif;
}

Expand Down Expand Up @@ -52,7 +52,7 @@ form {
}

.button {
background-color: #3B3B3B;
background-color: #3b3b3b;
color: #fffcf5;
height: 40px;
width: 200px;
Expand All @@ -65,8 +65,8 @@ form {
}

.button:hover {
background-color: #1C1C1C;
color: #FFE002;
background-color: #1c1c1c;
color: #ffe002;
cursor: pointer;
letter-spacing: 4px;
}
8 changes: 4 additions & 4 deletions public/css/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* {
color: #1C1C1C;
color: #1c1c1c;
}

body {
Expand All @@ -25,7 +25,7 @@ body {
}

.button {
background-color: #3B3B3B;
background-color: #3b3b3b;
color: #fffcf5;
height: 40px;
width: 200px;
Expand All @@ -38,8 +38,8 @@ body {
}

.button:hover {
background-color: #1C1C1C;
color: #FFE002;
background-color: #1c1c1c;
color: #ffe002;
cursor: pointer;
letter-spacing: 4px;
}
2 changes: 1 addition & 1 deletion src/controllers/lists.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const updateList = async (req: Request, res: Response, next: NextFunction
res.locals.err = err;
next();
}
}
};

export const shareList = async (req: Request, res: Response, next: NextFunction) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/tasks.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const updateTask = async (req: Request, res: Response, next: NextFunction
res.locals.err = err;
next();
}
}
};

export const getAll = async (req: Request, res: Response, next: NextFunction) => {
try {
Expand Down
10 changes: 5 additions & 5 deletions src/controllers/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const signUp = {
next();
}
}
}
};

export const signIn = {
post: async (req: Request, res: Response, next: NextFunction) => {
Expand All @@ -51,7 +51,7 @@ export const signIn = {
next();
}
}
}
};

export const signOut = async (req: Request, res: Response, next: NextFunction) => {
try {
Expand Down Expand Up @@ -135,7 +135,7 @@ export const profile = async (req: Request, res: Response, next: NextFunction) =
res.locals.err = err;
next();
}
}
};

export const updateUser = async (req: Request, res: Response, next: NextFunction) => {
try {
Expand All @@ -147,7 +147,7 @@ export const updateUser = async (req: Request, res: Response, next: NextFunction
res.locals.err = err;
next();
}
}
};

export const deleteUser = async (req: Request, res: Response, next: NextFunction) => {
try {
Expand All @@ -157,4 +157,4 @@ export const deleteUser = async (req: Request, res: Response, next: NextFunction
res.locals.err = err;
next();
}
}
};
6 changes: 3 additions & 3 deletions src/models/lists.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class Lists {
}

/**
* @param l_id Id of the user to return their lists.
* @returns An array of Lists.
*/
* @param l_id Id of the user to return their lists.
* @returns An array of Lists.
*/
static async getAll(l_user_id: number): Promise<List[]> {
const lists: List[] = await prisma.list.findMany({
where: {
Expand Down
10 changes: 5 additions & 5 deletions src/models/users.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class Users {
}

/**
* @returns The *id* of the user.
*/
* @returns The *id* of the user.
*/
static async getIdByEmail(email: string): Promise<number> {
const user = await prisma.user.findFirst({
where: { u_email: email },
Expand Down Expand Up @@ -77,9 +77,9 @@ class Users {
}

/**
* Updates one or more users.
* @param users The user(s) to update.
*/
* Updates one or more users.
* @param users The user(s) to update.
*/
static async update(users: User): Promise<void> {
await prisma.user.update({
where: { u_id: users.u_id },
Expand Down
12 changes: 11 additions & 1 deletion src/routes/api/listRouter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import { Application } from 'express';
import authenticate from '../../middlewares/authenticate.middleware';
import { addTask, createList, deleteList, getList, getLists, removeTask, shareList, updateList, viewsharedList } from '../../controllers/lists.controller';
import {
addTask,
createList,
deleteList,
getList,
getLists,
removeTask,
shareList,
updateList,
viewsharedList
} from '../../controllers/lists.controller';
import errorHandler from '../../middlewares/errorHandler.middleware';
import checkUserOfList from '../../middlewares/security/checkUserOfList.middleware';
import checkUserOfTask from '../../middlewares/security/checkUserOfTask.middleware';
Expand Down

0 comments on commit 8a906bf

Please sign in to comment.