fix: flash file corrupted

This commit is contained in:
RainyXeon
2024-07-12 17:56:04 +07:00
committed by ThePedroo
parent 4dac5409d8
commit 814fc3fe1e
8 changed files with 15 additions and 16 deletions

View File

@@ -176,12 +176,11 @@ androidComponents.onVariants { variant ->
set.add(Pair(root.file("webroot/js/translate/modules.js").asFile, null))
set.add(Pair(root.file("webroot/js/translate/settings.js").asFile, null))
set.add(Pair(root.file("webroot/js/themes/dark/index.js").asFile, null))
set.add(Pair(root.file("webroot/js/themes/dark/navbar.js").asFile, null))
set.add(Pair(root.file("webroot/js/themes/light/index.js").asFile, null))
set.add(Pair(root.file("webroot/js/themes/light/navbar.js").asFile, null))
set.add(Pair(root.file("webroot/js/themes/light/icon.js").asFile, null))
set.add(Pair(root.file("webroot/js/themes/dark.js").asFile, null))
set.add(Pair(root.file("webroot/js/themes/darkNavbar.js").asFile, null))
set.add(Pair(root.file("webroot/js/themes/light.js").asFile, null))
set.add(Pair(root.file("webroot/js/themes/lightNavbar.js").asFile, null))
set.add(Pair(root.file("webroot/js/themes/lightIcon.js").asFile, null))
set.add(Pair(root.file("webroot/js/list/language.js").asFile, null))

View File

@@ -127,11 +127,11 @@ extract "$ZIPFILE" 'webroot/js/translate/action.js' "$MODPATH/webroot/js/transla
extract "$ZIPFILE" 'webroot/js/translate/modules.js' "$MODPATH/webroot/js/translate" true
extract "$ZIPFILE" 'webroot/js/translate/settings.js' "$MODPATH/webroot/js/translate" true
extract "$ZIPFILE" 'webroot/js/theme/dark/index.js' "$MODPATH/webroot/js/theme/dark" true
extract "$ZIPFILE" 'webroot/js/theme/dark/navbar.js' "$MODPATH/webroot/js/theme/dark" true
extract "$ZIPFILE" 'webroot/js/theme/light/index.js' "$MODPATH/webroot/js/theme/light" true
extract "$ZIPFILE" 'webroot/js/theme/light/navbar.js' "$MODPATH/webroot/js/theme/light" true
extract "$ZIPFILE" 'webroot/js/theme/light/icon.js' "$MODPATH/webroot/js/theme/light" true
extract "$ZIPFILE" 'webroot/js/theme/dark.js' "$MODPATH/webroot/js/theme" true
extract "$ZIPFILE" 'webroot/js/theme/darkNavbar.js' "$MODPATH/webroot/js/theme" true
extract "$ZIPFILE" 'webroot/js/theme/light.js' "$MODPATH/webroot/js/theme" true
extract "$ZIPFILE" 'webroot/js/theme/lightNavbar.js' "$MODPATH/webroot/js/theme" true
extract "$ZIPFILE" 'webroot/js/theme/lightIcon.js' "$MODPATH/webroot/js/theme" true
extract "$ZIPFILE" 'webroot/js/list/language.js' "$MODPATH/webroot/js/list" true

View File

@@ -1,5 +1,5 @@
import { setDark } from "./themes/dark/index.js"
import { setLight } from "./themes/light/index.js"
import { setDark } from "./themes/dark.js"
import { setLight } from "./themes/light.js"
const button = document.getElementById('theme_switcher')

View File

@@ -1,4 +1,4 @@
import { setDarkNav } from "./navbar.js"
import { setDarkNav } from "./darkNavbar.js"
const rootCss = document.querySelector(':root')

View File

@@ -2,8 +2,8 @@ import {
light_close_icon,
light_expand_icon,
light_copy_icon,
} from "./icon.js"
import { setLightNav } from "./navbar.js"
} from "./lightIcon.js"
import { setLightNav } from "./lightNavbar.js"
const rootCss = document.querySelector(':root')
/* INFO: Changes the icons to match the theme */