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