diff --git a/public/css/card.css b/public/css/card.css index e09f091..2e2199c 100644 --- a/public/css/card.css +++ b/public/css/card.css @@ -1,5 +1,5 @@ * { - color: #1C1C1C; + color: #1c1c1c; font-family: sans-serif; } @@ -52,7 +52,7 @@ form { } .button { - background-color: #3B3B3B; + background-color: #3b3b3b; color: #fffcf5; height: 40px; width: 200px; @@ -65,8 +65,8 @@ form { } .button:hover { - background-color: #1C1C1C; - color: #FFE002; + background-color: #1c1c1c; + color: #ffe002; cursor: pointer; letter-spacing: 4px; } diff --git a/public/css/index.css b/public/css/index.css index d489bb0..3e6f0bc 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -1,5 +1,5 @@ * { - color: #1C1C1C; + color: #1c1c1c; } body { @@ -25,7 +25,7 @@ body { } .button { - background-color: #3B3B3B; + background-color: #3b3b3b; color: #fffcf5; height: 40px; width: 200px; @@ -38,8 +38,8 @@ body { } .button:hover { - background-color: #1C1C1C; - color: #FFE002; + background-color: #1c1c1c; + color: #ffe002; cursor: pointer; letter-spacing: 4px; } diff --git a/src/controllers/lists.controller.ts b/src/controllers/lists.controller.ts index aebc9b4..1412a7a 100644 --- a/src/controllers/lists.controller.ts +++ b/src/controllers/lists.controller.ts @@ -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 { diff --git a/src/controllers/tasks.controller.ts b/src/controllers/tasks.controller.ts index a6b46bc..4c01752 100644 --- a/src/controllers/tasks.controller.ts +++ b/src/controllers/tasks.controller.ts @@ -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 { diff --git a/src/controllers/users.controller.ts b/src/controllers/users.controller.ts index 8026e9d..c8df5c6 100644 --- a/src/controllers/users.controller.ts +++ b/src/controllers/users.controller.ts @@ -30,7 +30,7 @@ export const signUp = { next(); } } -} +}; export const signIn = { post: async (req: Request, res: Response, next: NextFunction) => { @@ -51,7 +51,7 @@ export const signIn = { next(); } } -} +}; export const signOut = async (req: Request, res: Response, next: NextFunction) => { try { @@ -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 { @@ -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 { @@ -157,4 +157,4 @@ export const deleteUser = async (req: Request, res: Response, next: NextFunction res.locals.err = err; next(); } -} +}; diff --git a/src/models/lists.model.ts b/src/models/lists.model.ts index b500dfc..5a4998f 100644 --- a/src/models/lists.model.ts +++ b/src/models/lists.model.ts @@ -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 { const lists: List[] = await prisma.list.findMany({ where: { diff --git a/src/models/users.model.ts b/src/models/users.model.ts index abff81e..9105d4c 100644 --- a/src/models/users.model.ts +++ b/src/models/users.model.ts @@ -24,8 +24,8 @@ class Users { } /** - * @returns The *id* of the user. - */ + * @returns The *id* of the user. + */ static async getIdByEmail(email: string): Promise { const user = await prisma.user.findFirst({ where: { u_email: email }, @@ -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 { await prisma.user.update({ where: { u_id: users.u_id }, diff --git a/src/routes/api/listRouter.ts b/src/routes/api/listRouter.ts index 3474e28..1210f43 100644 --- a/src/routes/api/listRouter.ts +++ b/src/routes/api/listRouter.ts @@ -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';