mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
chore: clean up imports in monofile.ts
This commit is contained in:
@@ -2174,6 +2174,7 @@ body {
|
|||||||
> .entriesWrapper
|
> .entriesWrapper
|
||||||
> .entry {
|
> .entry {
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
|
transition: opacity 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
.Viewer__Viewer___32BH- {
|
.Viewer__Viewer___32BH- {
|
||||||
background: unset;
|
background: unset;
|
||||||
|
|||||||
+11
-26
@@ -1,12 +1,11 @@
|
|||||||
// Third-party libraries
|
// Third-party libraries
|
||||||
|
|
||||||
|
|
||||||
import browser from "webextension-polyfill"
|
import browser from "webextension-polyfill"
|
||||||
import { animate, stagger } from "motion"
|
import { animate, stagger } from "motion"
|
||||||
|
|
||||||
// Internal utilities and functions
|
// Internal utilities and functions
|
||||||
import { waitForElm } from "@/seqta/utils/waitForElm"
|
import { ChangeMenuItemPositions, MenuOptionsOpen } from "@/seqta/utils/Openers/OpenMenuOptions"
|
||||||
import { GetThresholdOfColor } from "@/seqta/ui/colors/getThresholdColour"
|
import { GetThresholdOfColor } from "@/seqta/ui/colors/getThresholdColour"
|
||||||
|
import { waitForElm } from "@/seqta/utils/waitForElm"
|
||||||
import { delay } from "@/seqta/utils/delay"
|
import { delay } from "@/seqta/utils/delay"
|
||||||
import stringToHTML from "@/seqta/utils/stringToHTML"
|
import stringToHTML from "@/seqta/utils/stringToHTML"
|
||||||
import { MessageHandler } from "@/seqta/utils/listeners/MessageListener"
|
import { MessageHandler } from "@/seqta/utils/listeners/MessageListener"
|
||||||
@@ -15,47 +14,33 @@ import {
|
|||||||
settingsState,
|
settingsState,
|
||||||
} from "@/seqta/utils/listeners/SettingsState"
|
} from "@/seqta/utils/listeners/SettingsState"
|
||||||
import { StorageChangeHandler } from "@/seqta/utils/listeners/StorageChanges"
|
import { StorageChangeHandler } from "@/seqta/utils/listeners/StorageChanges"
|
||||||
|
import { convertTo12HourFormat } from "@/seqta/utils/convertTo12HourFormat"
|
||||||
import { eventManager } from "@/seqta/utils/listeners/EventManager"
|
import { eventManager } from "@/seqta/utils/listeners/EventManager"
|
||||||
|
|
||||||
// UI and theme management
|
// UI and theme management
|
||||||
|
import { enableNotificationCollector } from "@/seqta/utils/CreateEnable/EnableNotificationCollector"
|
||||||
import RegisterClickListeners from "@/seqta/utils/listeners/ClickListeners"
|
import RegisterClickListeners from "@/seqta/utils/listeners/ClickListeners"
|
||||||
import { AddBetterSEQTAElements } from "@/seqta/ui/AddBetterSEQTAElements"
|
import { AddBetterSEQTAElements } from "@/seqta/ui/AddBetterSEQTAElements"
|
||||||
import { enableCurrentTheme } from "@/seqta/ui/themes/enableCurrent"
|
import { enableCurrentTheme } from "@/seqta/ui/themes/enableCurrent"
|
||||||
import loading from "@/seqta/ui/Loading"
|
|
||||||
import { updateAllColors } from "@/seqta/ui/colors/Manager"
|
import { updateAllColors } from "@/seqta/ui/colors/Manager"
|
||||||
import pageState from "@/pageState.js?url"
|
import pageState from "@/pageState.js?url"
|
||||||
|
import loading from "@/seqta/ui/Loading"
|
||||||
|
import { SendNewsPage } from "@/seqta/utils/SendNewsPage"
|
||||||
|
import { loadHomePage } from "@/seqta/utils/Loaders/LoadHomePage"
|
||||||
|
import { OpenWhatsNewPopup } from "@/seqta/utils/Whatsnew"
|
||||||
|
|
||||||
// JSON content
|
// JSON content
|
||||||
import MenuitemSVGKey from "@/seqta/content/MenuItemSVGKey.json"
|
import MenuitemSVGKey from "@/seqta/content/MenuItemSVGKey.json"
|
||||||
|
|
||||||
|
|
||||||
// Icons and fonts
|
// Icons and fonts
|
||||||
import IconFamily from "@/resources/fonts/IconFamily.woff"
|
import IconFamily from "@/resources/fonts/IconFamily.woff"
|
||||||
|
|
||||||
import icon48 from "@/resources/icons/icon-48.png?base64"
|
import icon48 from "@/resources/icons/icon-48.png?base64"
|
||||||
|
|
||||||
import { convertTo12HourFormat } from "@/seqta/utils/convertTo12HourFormat"
|
|
||||||
|
|
||||||
// Stylesheets
|
// Stylesheets
|
||||||
import iframeCSS from "@/css/iframe.scss?raw"
|
import iframeCSS from "@/css/iframe.scss?raw"
|
||||||
import injectedCSS from "@/css/injected.scss?inline"
|
import injectedCSS from "@/css/injected.scss?inline"
|
||||||
import documentLoadCSS from "@/css/documentload.scss?inline"
|
import documentLoadCSS from "@/css/documentload.scss?inline"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { ChangeMenuItemPositions, MenuOptionsOpen } from "@/seqta/utils/Openers/OpenMenuOptions"
|
|
||||||
import { SendNewsPage } from "@/seqta/utils/SendNewsPage"
|
|
||||||
|
|
||||||
import { loadHomePage } from "@/seqta/utils/Loaders/LoadHomePage"
|
|
||||||
|
|
||||||
import { enableNotificationCollector } from "@/seqta/utils/CreateEnable/EnableNotificationCollector"
|
|
||||||
|
|
||||||
import { OpenWhatsNewPopup } from "@/seqta/utils/Whatsnew"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var IsSEQTAPage = false
|
var IsSEQTAPage = false
|
||||||
let hasSEQTAText = false
|
let hasSEQTAText = false
|
||||||
|
|
||||||
@@ -509,10 +494,10 @@ function handleTimetableAssessmentHide(): void {
|
|||||||
const entries = document.querySelectorAll(".entry") // Gets all the timetables entries on the page, and loops through
|
const entries = document.querySelectorAll(".entry") // Gets all the timetables entries on the page, and loops through
|
||||||
entries.forEach((entry: Element) => {
|
entries.forEach((entry: Element) => {
|
||||||
const entryEl = entry as HTMLElement
|
const entryEl = entry as HTMLElement
|
||||||
if (!entryEl.classList.contains("assessment") && !(entryEl.style.display === "none")) { // If the entry is not an assessment, and hasn't already been hidden, hide it.
|
if (!entryEl.classList.contains("assessment") && !(entryEl.style.opacity === "0.3")) { // If the entry is not an assessment, and hasn't already been hidden, hide it.
|
||||||
entryEl.style.display = "none"
|
entryEl.style.opacity = "0.3"
|
||||||
} else { // Otherwise, it should be shown.
|
} else { // Otherwise, it should be shown.
|
||||||
entryEl.style.display = ""
|
entryEl.style.opacity = "1"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user