mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix: building working, (lots of bugs)
This commit is contained in:
@@ -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,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,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,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,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,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,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,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,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,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,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,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;
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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' }, '*');
|
||||
}
|
||||
} */
|
||||
}
|
||||
Reference in New Issue
Block a user