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