Update import paths

This commit is contained in:
Nikola Petrov 2024-09-23 23:24:59 +02:00
parent 93241aae82
commit 4667dfee78
9 changed files with 15 additions and 15 deletions

View File

@ -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;

View File

@ -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']}>

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 {

View File

@ -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;

View File

@ -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();

View File

@ -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();