mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix build
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite build --watch",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
|
|||||||
Vendored
-10
@@ -1,10 +0,0 @@
|
|||||||
export interface SettingsState {
|
|
||||||
notificationCollector: boolean;
|
|
||||||
lessonAlerts: boolean;
|
|
||||||
animatedBackground: boolean;
|
|
||||||
animatedBackgroundSpeed: boolean;
|
|
||||||
customThemeColor: string;
|
|
||||||
betterSEQTAPlus: boolean;
|
|
||||||
}
|
|
||||||
declare const App: React.FC;
|
|
||||||
export default App;
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
// App.tsx
|
// App.tsx
|
||||||
import { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import TabbedContainer from './components/TabbedContainer';
|
import TabbedContainer from './components/TabbedContainer';
|
||||||
import Settings from './pages/Settings';
|
import Settings from './pages/Settings';
|
||||||
import logo from './assets/betterseqta-dark-full.png';
|
import logo from './assets/betterseqta-dark-full.png';
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
// TODO: Create types for ColorPicker
|
|
||||||
// @ts-expect-error No typescript declarations available
|
|
||||||
import ColorPicker from 'react-best-gradient-color-picker';
|
import ColorPicker from 'react-best-gradient-color-picker';
|
||||||
import { useState, useRef, useEffect } from 'react';
|
import React, { useState, useRef, useEffect } from 'react';
|
||||||
|
|
||||||
interface ColorPickerProps {
|
interface ColorPickerProps {
|
||||||
color: string;
|
color: string;
|
||||||
|
|||||||
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
declare module '*.png';
|
|
||||||
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
declare module '*.png';
|
|
||||||
Vendored
+5
@@ -1 +1,6 @@
|
|||||||
import './index.css';
|
import './index.css';
|
||||||
|
|
||||||
|
declare module "*.png";
|
||||||
|
declare module "*.svg";
|
||||||
|
declare module "*.jpeg";
|
||||||
|
declare module "*.jpg";
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ export default {
|
|||||||
"./index.html",
|
"./index.html",
|
||||||
"./src/**/*.{js,ts,jsx,tsx}",
|
"./src/**/*.{js,ts,jsx,tsx}",
|
||||||
],
|
],
|
||||||
important: true,
|
|
||||||
darkMode: "class",
|
darkMode: "class",
|
||||||
theme: {
|
theme: {
|
||||||
fontSize: {
|
fontSize: {
|
||||||
|
|||||||
@@ -20,6 +20,6 @@
|
|||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true
|
"noFallthroughCasesInSwitch": true
|
||||||
},
|
},
|
||||||
"include": ["../src/src"],
|
"include": ["src"],
|
||||||
"references": [{ "path": "./tsconfig.node.json" }]
|
"references": [{ "path": "./tsconfig.node.json" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ES2016",
|
||||||
|
"useDefineForClassFields": true,
|
||||||
|
"lib": ["ES2016", "DOM", "DOM.Iterable"],
|
||||||
|
"module": "ES2015",
|
||||||
|
"skipLibCheck": true,
|
||||||
|
|
||||||
|
/* Bundler mode */
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"allowImportingTsExtensions": false,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"noEmit": false,
|
||||||
|
"jsx": "react-jsx",
|
||||||
|
|
||||||
|
/* Linting */
|
||||||
|
"strict": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"noFallthroughCasesInSwitch": true
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user