mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
mostly working, themes are broken, as are others.
This commit is contained in:
+4
-4
@@ -2,7 +2,7 @@
|
||||
import browser from 'webextension-polyfill';
|
||||
import { animate, spring, stagger } from 'motion';
|
||||
import Color from 'color';
|
||||
import Sortable, { AutoScroll } from 'sortablejs';
|
||||
import Sortable from 'sortablejs';
|
||||
|
||||
import ShortcutLinks from './seqta/content/links.json';
|
||||
import MenuitemSVGKey from './seqta/content/MenuItemSVGKey.json';
|
||||
@@ -20,7 +20,6 @@ import { updateBgDurations } from './seqta/ui/Animation';
|
||||
import { updateAllColors } from './seqta/ui/colors/Manager';
|
||||
import { appendBackgroundToUI } from './seqta/ui/ImageBackgrounds';
|
||||
import { enableCurrentTheme } from './seqta/ui/Themes';
|
||||
import { info } from 'autoprefixer';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
@@ -1044,7 +1043,7 @@ export function OpenMenuOptions() {
|
||||
result1.then(open, onError);
|
||||
|
||||
try {
|
||||
Sortable.mount(new AutoScroll());
|
||||
Sortable.mount(new Sortable.AutoScroll());
|
||||
|
||||
var el = document.querySelector('#menu > ul');
|
||||
var sortable = Sortable.create((el as HTMLElement), {
|
||||
@@ -2042,8 +2041,9 @@ function CreateUpcomingSection(assessments: any, activeSubjects: any) {
|
||||
}
|
||||
|
||||
CreateFilters(activeSubjects);
|
||||
|
||||
// @ts-ignore
|
||||
let type;
|
||||
// @ts-ignore
|
||||
let class_;
|
||||
|
||||
for (let i = 0; i < assessments.length; i++) {
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ function reloadSeqtaPages() {
|
||||
// Helper function to handle setting permissions
|
||||
|
||||
// Main message listener
|
||||
browser.runtime.onMessage.addListener((request, sender, sendResponse: any) => {
|
||||
browser.runtime.onMessage.addListener((request, sendResponse: any) => {
|
||||
switch (request.type) {
|
||||
case 'reloadTabs':
|
||||
reloadSeqtaPages();
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,8 +1,8 @@
|
||||
import browser from 'webextension-polyfill'
|
||||
import { GetThresholdOfColor, GetCSSElement } from '../../../SEQTA.js';
|
||||
import { lightenAndPaleColor } from './lightenAndPaleColor.js';
|
||||
import ColorLuminance from './ColorLuminance.js';
|
||||
import { onError } from '../../utils/onError.js';
|
||||
import { GetThresholdOfColor, GetCSSElement } from '../../../SEQTA';
|
||||
import { lightenAndPaleColor } from './lightenAndPaleColor';
|
||||
import ColorLuminance from './ColorLuminance';
|
||||
import { onError } from '../../utils/onError';
|
||||
|
||||
// Helper functions
|
||||
const setCSSVar = (varName: any, value: any) => document.documentElement.style.setProperty(varName, value);
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import browser from 'webextension-polyfill'
|
||||
|
||||
import { MenuOptionsOpen, OpenMenuOptions, closeSettings } from '../../SEQTA.js';
|
||||
import { deleteTheme, disableTheme, downloadTheme, listThemes, setTheme } from '../ui/Themes.js';
|
||||
import { MenuOptionsOpen, OpenMenuOptions, closeSettings } from '../../SEQTA';
|
||||
import { deleteTheme, disableTheme, downloadTheme, listThemes, setTheme } from '../ui/Themes';
|
||||
|
||||
export class MessageHandler {
|
||||
constructor() {
|
||||
browser.runtime.onMessage.addListener(this.routeMessage.bind(this));
|
||||
}
|
||||
|
||||
routeMessage(request: any, sender: any, sendResponse: any) {
|
||||
routeMessage(request: any, sendResponse: any) {
|
||||
switch (request.info) {
|
||||
|
||||
case 'EditSidebar':
|
||||
|
||||
@@ -8,9 +8,9 @@ import {
|
||||
addShortcuts,
|
||||
disableNotificationCollector,
|
||||
enableNotificationCollector,
|
||||
} from '../../SEQTA.js';
|
||||
import { updateBgDurations } from '../ui/Animation.js';
|
||||
import { getDarkMode, updateAllColors } from '../ui/colors/Manager.js';
|
||||
} from '../../SEQTA';
|
||||
import { updateBgDurations } from '../ui/Animation';
|
||||
import { getDarkMode, updateAllColors } from '../ui/colors/Manager';
|
||||
|
||||
|
||||
export default class StorageListener {
|
||||
|
||||
Reference in New Issue
Block a user