fix: building working, (lots of bugs)

This commit is contained in:
sethburkart123
2024-09-02 21:46:48 +10:00
parent 99a3166fa4
commit 2f08d6ee08
107 changed files with 1113 additions and 37 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { CustomThemeBase64 } from '@/interface/types/CustomThemes';
import type { CustomThemeBase64 } from '@/old-interface/types/CustomThemes';
import { applyCustomCSS, imageData, removeImageFromDocument, UpdateImageData } from './Themes';
import { settingsState } from '@/seqta/utils/listeners/SettingsState';
+1 -1
View File
@@ -1,4 +1,4 @@
import { CustomImage, CustomTheme } from '@/interface/types/CustomThemes';
import type { CustomImage, CustomTheme } from '@/old-interface/types/CustomThemes';
import { settingsState } from '@/seqta/utils/listeners/SettingsState';
import { applyCustomCSS } from './Themes';
+1 -1
View File
@@ -1,5 +1,5 @@
import localforage from 'localforage';
import { CustomTheme } from '@/interface/types/CustomThemes';
import type { CustomTheme } from '@/old-interface/types/CustomThemes';
import { removeTheme } from './removeTheme';
import { settingsState } from '@/seqta/utils/listeners/SettingsState';
+1 -1
View File
@@ -1,5 +1,5 @@
import localforage from 'localforage';
import { CustomTheme } from '@/interface/types/CustomThemes';
import type { CustomTheme } from '@/old-interface/types/CustomThemes';
import { removeTheme } from './removeTheme';
import { Mutex } from '@/seqta/utils/mutex';
import { settingsState } from '@/seqta/utils/listeners/SettingsState';
+1 -1
View File
@@ -1,5 +1,5 @@
import localforage from 'localforage';
import { Theme } from '@/interface/pages/Store';
import type { Theme } from '@/old-interface/pages/Store';
import base64ToBlob from '@/seqta/utils/base64ToBlob';
type ThemeContent = {
+1 -1
View File
@@ -1,5 +1,5 @@
import localforage from 'localforage';
import { CustomTheme } from '@/interface/types/CustomThemes';
import type { CustomTheme } from '@/old-interface/types/CustomThemes';
import { applyTheme } from './applyTheme';
import { settingsState } from '@/seqta/utils/listeners/SettingsState';
+1 -1
View File
@@ -1,5 +1,5 @@
import localforage from 'localforage';
import { CustomTheme, ThemeList } from '@/interface/types/CustomThemes';
import type { CustomTheme, ThemeList } from '@/old-interface/types/CustomThemes';
import { blobToBase64 } from '@/seqta/utils/blobToBase64';
import { settingsState } from '@/seqta/utils/listeners/SettingsState';
+1 -1
View File
@@ -1,5 +1,5 @@
import localforage from 'localforage';
import { CustomImageBase64, CustomTheme, CustomThemeBase64 } from '@/interface/types/CustomThemes';
import type { CustomImageBase64, CustomTheme, CustomThemeBase64 } from '@/old-interface/types/CustomThemes';
import { blobToBase64 } from '@/seqta/utils/blobToBase64';
+1 -1
View File
@@ -1,5 +1,5 @@
import localforage from 'localforage';
import { CustomTheme } from '@/interface/types/CustomThemes';
import type { CustomTheme } from '@/old-interface/types/CustomThemes';
import { settingsState } from '@/seqta/utils/listeners/SettingsState';
export const removeTheme = async (theme: CustomTheme) => {
+1 -1
View File
@@ -1,5 +1,5 @@
import localforage from 'localforage';
import { CustomTheme, CustomThemeBase64 } from '@/interface/types/CustomThemes';
import type { CustomTheme, CustomThemeBase64 } from '@/old-interface/types/CustomThemes';
import { disableTheme } from './disableTheme';
+1 -1
View File
@@ -1,5 +1,5 @@
import localforage from 'localforage';
import { CustomTheme } from '@/interface/types/CustomThemes';
import type { CustomTheme } from '@/old-interface/types/CustomThemes';
import { applyTheme } from './applyTheme';
import { removeTheme } from './removeTheme';
import { settingsState } from '@/seqta/utils/listeners/SettingsState';
+1 -1
View File
@@ -1,5 +1,5 @@
import browser from 'webextension-polyfill';
import { SettingsState } from '@/types/storage';
import type { SettingsState } from '@/types/storage';
type ChangeListener = (newValue: any, oldValue: any) => void;
+1 -1
View File
@@ -12,7 +12,7 @@ import {
} from '@/SEQTA';
import { updateBgDurations } from '@/seqta/ui/Animation';
import browser from 'webextension-polyfill';
import { CustomShortcut } from '@/types/storage';
import type { CustomShortcut } from '@/types/storage';
export class StorageChangeHandler {
constructor() {
+2 -2
View File
@@ -1,6 +1,6 @@
export default function sendThemeUpdate() {
const iframe = document.getElementById('ExtensionIframe') as HTMLIFrameElement
/* const iframe = document.getElementById('ExtensionIframe') as HTMLIFrameElement
if (iframe) {
iframe.contentWindow?.postMessage({ type: 'themeChanged' }, '*');
}
} */
}