diff --git a/NUXT/components/Player/index.vue b/NUXT/components/Player/index.vue index fee90bd..405550b 100644 --- a/NUXT/components/Player/index.vue +++ b/NUXT/components/Player/index.vue @@ -2,10 +2,6 @@
{ if (isFullscreen) fullscreenHandler(true); }, + right: () => (contain = false), + left: () => (contain = true), }" text tile diff --git a/NUXT/components/playlistCard.vue b/NUXT/components/playlistCard.vue index dec4bf6..b455604 100644 --- a/NUXT/components/playlistCard.vue +++ b/NUXT/components/playlistCard.vue @@ -30,18 +30,8 @@ }" >
420
mdi-playlist-play diff --git a/NUXT/layouts/default.vue b/NUXT/layouts/default.vue index e1ff18b..344f5a5 100644 --- a/NUXT/layouts/default.vue +++ b/NUXT/layouts/default.vue @@ -245,6 +245,14 @@ export default { margin: 0 !important; } +.container-max-height { + min-height: calc( + 100vh - 8rem - env(safe-area-inset-top) - env(safe-area-inset-bottom) + ) !important; +} +.background-opaque { + background: linear-gradient(var(--v-background-base) -1000%, #00000000 1000%); +} .border-primary { border: 2px solid var(--v-primary-base) !important; } diff --git a/NUXT/nuxt.config.js b/NUXT/nuxt.config.js index e629764..b466789 100644 --- a/NUXT/nuxt.config.js +++ b/NUXT/nuxt.config.js @@ -66,11 +66,11 @@ export default { }, themes: { light: { - primary: "#016a49", + primary: "#136458", background: "#ffffff", }, dark: { - primary: "#7CD6AF", + primary: "#00d7cd", background: "#000000", }, }, diff --git a/NUXT/pages/mods/plugins.vue b/NUXT/pages/mods/plugins.vue index 565765b..15650aa 100644 --- a/NUXT/pages/mods/plugins.vue +++ b/NUXT/pages/mods/plugins.vue @@ -1,11 +1,11 @@ @@ -79,16 +53,21 @@ export default { const file = document.getElementById("filePicker").files[0]; const contents = await vm.readFileContent(file); await vm.$tppl.addPlugin(contents); + this.rebuildList(); }; + + this.rebuildList(); + }, methods: { - readFileContent(file) { - const reader = new FileReader(); - return new Promise((resolve, reject) => { - reader.onload = (event) => resolve(event.target.result); - reader.onerror = (error) => reject(error); - reader.readAsText(file); - }); + async rebuildList() { + const pluginsData = await this.$tppl.list; + this.plugins = pluginsData.files; + }, + + async remove(plugin) { + await this.$tppl.removePlugin(plugin); + this.rebuildList(); }, pickFile() { diff --git a/NUXT/pages/mods/theme.vue b/NUXT/pages/mods/theme.vue index b6655bb..de7d0db 100644 --- a/NUXT/pages/mods/theme.vue +++ b/NUXT/pages/mods/theme.vue @@ -1,14 +1,7 @@