mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
+2
-2
@@ -336,7 +336,7 @@ async function DeleteWhatsNew() {
|
|||||||
if (!settingsState.animations) {
|
if (!settingsState.animations) {
|
||||||
bkelement?.remove()
|
bkelement?.remove()
|
||||||
return
|
return
|
||||||
};
|
}
|
||||||
|
|
||||||
animate(
|
animate(
|
||||||
[popup, bkelement!],
|
[popup, bkelement!],
|
||||||
@@ -2109,7 +2109,7 @@ export async function loadHomePage() {
|
|||||||
easing: [.22, .03, .26, 1]
|
easing: [.22, .03, .26, 1]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
};
|
}
|
||||||
|
|
||||||
callHomeTimetable(TodayFormatted)
|
callHomeTimetable(TodayFormatted)
|
||||||
|
|
||||||
|
|||||||
@@ -469,7 +469,6 @@ ol:has(.MessageList__avatar___2wxyb svg) {
|
|||||||
border-bottom-color: transparent !important;
|
border-bottom-color: transparent !important;
|
||||||
}
|
}
|
||||||
#main > .timetablepage > .quickbar.below::before {
|
#main > .timetablepage > .quickbar.below::before {
|
||||||
border-bottom-color: transparent;
|
|
||||||
top: -23px;
|
top: -23px;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
clip-path: polygon(50% 40%, 0 100%, 100% 100%);
|
clip-path: polygon(50% 40%, 0 100%, 100% 100%);
|
||||||
@@ -955,7 +954,7 @@ div > ol:has(.uiFileHandlerWrapper) {
|
|||||||
.timetable-container {
|
.timetable-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: visible !important;
|
overflow: visible !important;
|
||||||
border-radius: 0 16px 0 16px;
|
border-radius: 0 16px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
height: auto;
|
height: auto;
|
||||||
background: var(--better-main);
|
background: var(--better-main);
|
||||||
@@ -2814,7 +2813,6 @@ li.MessageList__unread___3imtO {
|
|||||||
}
|
}
|
||||||
.tooltip {
|
.tooltip {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background: transparent;
|
|
||||||
z-index: 5 !important;
|
z-index: 5 !important;
|
||||||
width: 28px;
|
width: 28px;
|
||||||
background: none;
|
background: none;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { createContext, useContext, useState, ReactNode } from 'react';
|
import React, { createContext, ReactNode, useContext, useState } from 'react';
|
||||||
import { SettingsState } from './types/AppProps';
|
import { SettingsState } from './types/AppProps';
|
||||||
import useSettingsState from './hooks/settingsState';
|
import useSettingsState from './hooks/settingsState';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useState, useRef, useEffect, memo } from 'react';
|
import React, { memo, useEffect, useRef, useState } from 'react';
|
||||||
import { motion } from 'framer-motion';
|
import { motion } from 'framer-motion';
|
||||||
import type { TabbedContainerProps } from '../types/TabbedContainerProps';
|
import type { TabbedContainerProps } from '../types/TabbedContainerProps';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect, useState, useCallback, forwardRef, useImperativeHandle, ForwardRefExoticComponent, RefAttributes } from 'react';
|
import React, { forwardRef, ForwardRefExoticComponent, RefAttributes, useCallback, useEffect, useImperativeHandle, useState } from 'react';
|
||||||
import { listThemes, deleteTheme, setTheme, disableTheme, getDownloadedThemes, sendThemeUpdate } from '../hooks/ThemeManagment';
|
import { deleteTheme, disableTheme, getDownloadedThemes, listThemes, sendThemeUpdate, setTheme } from '../hooks/ThemeManagment';
|
||||||
import { DeleteDownloadedTheme } from '../pages/Store';
|
import { DeleteDownloadedTheme } from '../pages/Store';
|
||||||
import { ThemeCover } from './ThemeCover';
|
import { ThemeCover } from './ThemeCover';
|
||||||
import browser from 'webextension-polyfill';
|
import browser from 'webextension-polyfill';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useState, useEffect, useRef } from 'react';
|
import { useEffect, useRef, useState } from 'react';
|
||||||
|
|
||||||
interface Options {
|
interface Options {
|
||||||
root?: Element | null;
|
root?: Element | null;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom/client';
|
import ReactDOM from 'react-dom/client';
|
||||||
import { HashRouter, Routes, Route } from 'react-router-dom';
|
import { HashRouter, Route, Routes } from 'react-router-dom';
|
||||||
import { ErrorBoundary } from "react-error-boundary";
|
import { ErrorBoundary } from "react-error-boundary";
|
||||||
|
|
||||||
import './index.css';
|
import './index.css';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useState, memo, useCallback } from "react";
|
import { memo, useCallback, useState } from "react";
|
||||||
import Switch from "../../components/Switch";
|
import Switch from "../../components/Switch";
|
||||||
import { useSettingsContext } from "../../SettingsContext";
|
import { useSettingsContext } from "../../SettingsContext";
|
||||||
import { motion, AnimatePresence } from "framer-motion";
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
import { CustomShortcut } from "../../types/AppProps";
|
import { CustomShortcut } from "../../types/AppProps";
|
||||||
|
|
||||||
function formatUrl(inputUrl: string) {
|
function formatUrl(inputUrl: string) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FC, createRef, useState } from 'react';
|
import { createRef, FC, useState } from 'react';
|
||||||
import BackgroundSelector from '../../components/BackgroundSelector';
|
import BackgroundSelector from '../../components/BackgroundSelector';
|
||||||
//import ThemeSelector from '../../components/ThemeSelector';
|
//import ThemeSelector from '../../components/ThemeSelector';
|
||||||
import { memo } from 'react';
|
import { memo } from 'react';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from 'react';
|
|||||||
import { Swiper, SwiperSlide } from 'swiper/react';
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
||||||
import Header from '../components/store/header';
|
import Header from '../components/store/header';
|
||||||
import { Autoplay } from 'swiper/modules';
|
import { Autoplay } from 'swiper/modules';
|
||||||
import { motion, AnimatePresence } from 'framer-motion';
|
import { AnimatePresence, motion } from 'framer-motion';
|
||||||
|
|
||||||
import 'swiper/css';
|
import 'swiper/css';
|
||||||
import 'swiper/css/pagination';
|
import 'swiper/css/pagination';
|
||||||
@@ -110,7 +110,7 @@ const Store = () => {
|
|||||||
if (!themeContent) {
|
if (!themeContent) {
|
||||||
alert('There was an error, The theme was not found!')
|
alert('There was an error, The theme was not found!')
|
||||||
return
|
return
|
||||||
};
|
}
|
||||||
|
|
||||||
setInstallingThemes([...installingThemes, id]);
|
setInstallingThemes([...installingThemes, id]);
|
||||||
|
|
||||||
@@ -125,7 +125,7 @@ const Store = () => {
|
|||||||
if (!themeContent) {
|
if (!themeContent) {
|
||||||
alert('There was an error, The theme was not found!')
|
alert('There was an error, The theme was not found!')
|
||||||
return
|
return
|
||||||
};
|
}
|
||||||
|
|
||||||
setInstallingThemes([...installingThemes, id]);
|
setInstallingThemes([...installingThemes, id]);
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { GetThresholdOfColor, SendNewsPage, addExtensionSettings, enableAnimatedBackground, loadHomePage, setupSettingsButton } from "../../SEQTA";
|
import { addExtensionSettings, enableAnimatedBackground, GetThresholdOfColor, loadHomePage, SendNewsPage, setupSettingsButton } from "../../SEQTA";
|
||||||
import { updateBgDurations } from "./Animation";
|
import { updateBgDurations } from "./Animation";
|
||||||
import { appendBackgroundToUI } from "./ImageBackgrounds";
|
import { appendBackgroundToUI } from "./ImageBackgrounds";
|
||||||
import stringToHTML from "../utils/stringToHTML";
|
import stringToHTML from "../utils/stringToHTML";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { CustomThemeBase64 } from '../../../interface/types/CustomThemes';
|
import { CustomThemeBase64 } from '../../../interface/types/CustomThemes';
|
||||||
import { imageData, removeImageFromDocument, UpdateImageData, applyCustomCSS } from './Themes';
|
import { applyCustomCSS, imageData, removeImageFromDocument, UpdateImageData } from './Themes';
|
||||||
import { settingsState } from '../../utils/listeners/SettingsState';
|
import { settingsState } from '../../utils/listeners/SettingsState';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import browser from 'webextension-polyfill'
|
import browser from 'webextension-polyfill'
|
||||||
|
|
||||||
import { MenuOptionsOpen, OpenMenuOptions, OpenWhatsNewPopup, closeSettings } from '../../../SEQTA';
|
import { closeSettings, MenuOptionsOpen, OpenMenuOptions, OpenWhatsNewPopup } from '../../../SEQTA';
|
||||||
import { deleteTheme } from '../../ui/themes/deleteTheme';
|
import { deleteTheme } from '../../ui/themes/deleteTheme';
|
||||||
import { getAvailableThemes } from '../../ui/themes/getAvailableThemes';
|
import { getAvailableThemes } from '../../ui/themes/getAvailableThemes';
|
||||||
import { saveTheme } from '../../ui/themes/saveTheme';
|
import { saveTheme } from '../../ui/themes/saveTheme';
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import { settingsState } from './SettingsState';
|
import { settingsState } from './SettingsState';
|
||||||
import { updateAllColors } from '../../ui/colors/Manager';
|
import { updateAllColors } from '../../ui/colors/Manager';
|
||||||
import {
|
import {
|
||||||
|
addShortcuts,
|
||||||
CreateBackground,
|
CreateBackground,
|
||||||
CreateCustomShortcutDiv,
|
CreateCustomShortcutDiv,
|
||||||
|
disableNotificationCollector,
|
||||||
|
enableNotificationCollector,
|
||||||
FilterUpcomingAssessments,
|
FilterUpcomingAssessments,
|
||||||
RemoveBackground,
|
RemoveBackground,
|
||||||
RemoveShortcutDiv,
|
RemoveShortcutDiv,
|
||||||
addShortcuts,
|
|
||||||
disableNotificationCollector,
|
|
||||||
enableNotificationCollector,
|
|
||||||
} from '../../../SEQTA';
|
} from '../../../SEQTA';
|
||||||
import { updateBgDurations } from '../../ui/Animation';
|
import { updateBgDurations } from '../../ui/Animation';
|
||||||
import browser from 'webextension-polyfill';
|
import browser from 'webextension-polyfill';
|
||||||
|
|||||||
Reference in New Issue
Block a user