mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-29 12:52:09 +01:00
[fix] aliases
This commit is contained in:
1
package-lock.json
generated
1
package-lock.json
generated
@@ -8,6 +8,7 @@
|
|||||||
"name": "ts5-obs-overlay",
|
"name": "ts5-obs-overlay",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@types/node": "^20.3.2",
|
||||||
"jest": "^29.5.0",
|
"jest": "^29.5.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@types/node": "^20.3.2",
|
||||||
"jest": "^29.5.0",
|
"jest": "^29.5.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/* eslint-disable react-hooks/exhaustive-deps */
|
/* eslint-disable react-hooks/exhaustive-deps */
|
||||||
import "@styles/App.scss";
|
import "@styles/App.scss";
|
||||||
import { IChannel, IClient, IConnection, ITS5ConnectionHandler } from "interfaces/teamspeak";
|
import { IChannel, IClient, IConnection, ITS5ConnectionHandler } from "@interfaces/teamspeak";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import Viewer from "./Viewer";
|
import Viewer from "./Viewer";
|
||||||
import { useSearchParams } from "react-router-dom";
|
import { useSearchParams } from "react-router-dom";
|
||||||
import { TS5ConnectionHandler } from "handlers/teamspeak/connectionHandler";
|
import { TS5ConnectionHandler } from "@handlers/teamspeak/connectionHandler";
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
const [searchParams] = useSearchParams();
|
const [searchParams] = useSearchParams();
|
||||||
|
|||||||
@@ -6,16 +6,15 @@
|
|||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
|
||||||
"baseUrl": "./src",
|
"baseUrl": ".",
|
||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["/src/*"],
|
"@/*": ["src/*"],
|
||||||
"@components/*": ["/src/components/*"],
|
"@components/*": ["src/components/*"],
|
||||||
"@assets/*": ["/src/assets/*"],
|
"@assets/*": ["src/assets/*"],
|
||||||
"@styles/*": ["/src/styles/*"],
|
"@styles/*": ["src/styles/*"],
|
||||||
"@utils/*": ["/src/utils/*"],
|
"@utils/*": ["src/utils/*"],
|
||||||
"@interfaces/*": ["/src/interfaces/*"],
|
"@interfaces/*": ["src/interfaces/*"],
|
||||||
"@handlers/*": ["/src/handlers/*"]
|
"@handlers/*": ["src/handlers/*"]
|
||||||
},
|
},
|
||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
@@ -32,6 +31,6 @@
|
|||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true
|
"noFallthroughCasesInSwitch": true
|
||||||
},
|
},
|
||||||
"include": ["src", "tests/teamspeakHandler.test.ts"],
|
"include": ["src"],
|
||||||
"references": [{ "path": "./tsconfig.node.json" }]
|
"references": [{ "path": "./tsconfig.node.json" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,20 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react-swc'
|
import react from '@vitejs/plugin-react-swc'
|
||||||
import { viteSingleFile } from "vite-plugin-singlefile"
|
import { viteSingleFile } from "vite-plugin-singlefile"
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: "./",
|
base: "./",
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
"@": "/src",
|
'@': path.resolve(__dirname, './src'),
|
||||||
"@components": "/src/components",
|
'@assets': path.resolve(__dirname, './src/assets'),
|
||||||
"@styles": "/src/styles",
|
'@components': path.resolve(__dirname, './src/components'),
|
||||||
"@assets": "/src/assets",
|
'@handlers': path.resolve(__dirname, './src/handlers'),
|
||||||
"@interfaces": "/src/interfaces",
|
'@interfaces': path.resolve(__dirname, './src/interfaces'),
|
||||||
"@utils": "/src/utils",
|
'@utils': path.resolve(__dirname, './src/utils'),
|
||||||
"@handlers": "/src/handlers",
|
'@styles': path.resolve(__dirname, './src/styles'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [react(), viteSingleFile({ useRecommendedBuildConfig: false })],
|
plugins: [react(), viteSingleFile({ useRecommendedBuildConfig: false })],
|
||||||
|
|||||||
Reference in New Issue
Block a user