Update import paths
This commit is contained in:
		| @@ -1,5 +1,5 @@ | |||||||
| import Chart from 'chart.js/auto' | import Chart from 'chart.js/auto' | ||||||
| import * as elements from "../elementcreate"; | import * as elements from "frontend/elementcreate"; | ||||||
|  |  | ||||||
| interface Transaction { | interface Transaction { | ||||||
|   day: number; |   day: number; | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import type { Attributes } from "../elementcreate"; | import type { Attributes } from "frontend/elementcreate"; | ||||||
| import * as elements from "../elementcreate"; | import * as elements from "frontend/elementcreate"; | ||||||
|  |  | ||||||
| function MediaElement(attributes: Attributes, contents: string[]) { | function MediaElement(attributes: Attributes, contents: string[]) { | ||||||
|   const ret = <div class="col media-element" id={attributes['id']}> |   const ret = <div class="col media-element" id={attributes['id']}> | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import { MediaElement, MyHeader, MediaContainer } from "./elements"; | import { MediaElement, MyHeader, MediaContainer } from "frontend/list/elements"; | ||||||
| import { splitByTitle, splitByYear } from "./functions"; | import { splitByTitle, splitByYear } from "frontend/list/functions"; | ||||||
|  |  | ||||||
| import * as elements from "../elementcreate"; | import * as elements from "frontend/elementcreate"; | ||||||
|  |  | ||||||
| var sortType = 0; | var sortType = 0; | ||||||
| var listType = 0; | var listType = 0; | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import { type NextFunction, type Request, type Response } from "express"; | import { type NextFunction, type Request, type Response } from "express"; | ||||||
| import userModel, { values } from '../models/userModel'; | import userModel, { values } from 'models/userModel'; | ||||||
|  |  | ||||||
| async function checkAuthenticated(req: Request, res: Response, next: NextFunction) { | async function checkAuthenticated(req: Request, res: Response, next: NextFunction) { | ||||||
|   const pass = req.body.pass; |   const pass = req.body.pass; | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import { type ResultSetHeader, type RowDataPacket, type QueryOptions } from "mysql2" | import { type ResultSetHeader, type RowDataPacket, type QueryOptions } from "mysql2" | ||||||
| import pool from '../miscellaneous/db' | import pool from 'miscellaneous/db' | ||||||
|  |  | ||||||
| interface CashTransaction extends RowDataPacket { | interface CashTransaction extends RowDataPacket { | ||||||
|   id?: number; |   id?: number; | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import { type ResultSetHeader, type RowDataPacket, type QueryOptions } from "mysql2" | import { type ResultSetHeader, type RowDataPacket, type QueryOptions } from "mysql2" | ||||||
| import pool from '../miscellaneous/db' | import pool from 'miscellaneous/db' | ||||||
|  |  | ||||||
|  |  | ||||||
| interface Media extends RowDataPacket { | interface Media extends RowDataPacket { | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import { type ResultSetHeader, type RowDataPacket } from "mysql2" | import { type ResultSetHeader, type RowDataPacket } from "mysql2" | ||||||
| import pool from '../miscellaneous/db' | import pool from 'miscellaneous/db' | ||||||
|  |  | ||||||
| interface UserD extends RowDataPacket { | interface UserD extends RowDataPacket { | ||||||
|   name?: string; |   name?: string; | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import express, { type Request, type Response } from "express"; | import express, { type Request, type Response } from "express"; | ||||||
| import checkAuthenticated from '../../miscellaneous/checkAuthenticated'; | import checkAuthenticated from 'miscellaneous/checkAuthenticated'; | ||||||
| import mediaRouter from './mediaRouter'; | import mediaRouter from 'routes/api/mediaRouter'; | ||||||
| import cashTransactionRouter from './cashTransactionRouter'; | import cashTransactionRouter from 'routes/api/cashTransactionRouter'; | ||||||
|  |  | ||||||
| const router = express.Router(); | const router = express.Router(); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import express, { type Request, type Response } from "express"; | import express, { type Request, type Response } from "express"; | ||||||
| import userController from '../controllers/userController'; | import userController from 'controllers/userController'; | ||||||
| import checkAuthenticated from '../miscellaneous/checkAuthenticated'; | import checkAuthenticated from 'miscellaneous/checkAuthenticated'; | ||||||
|  |  | ||||||
| const router = express.Router(); | const router = express.Router(); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nikola Petrov
					Nikola Petrov