add hidden shortcut to clear localStorage

-
click the "general" button in the settings page 3 times
-
This commit is contained in:
geoffrey45
2022-09-11 04:04:42 +03:00
parent 96019a4c81
commit a6819a01d6
6 changed files with 27 additions and 12 deletions
@@ -61,6 +61,7 @@ const imguri = paths.images.thumb;
height: auto; height: auto;
aspect-ratio: 1; aspect-ratio: 1;
object-fit: cover; object-fit: cover;
cursor: pointer;
} }
#bitrate { #bitrate {
@@ -28,7 +28,6 @@ const props = defineProps<{
<style lang="scss"> <style lang="scss">
.p-card { .p-card {
transition: all 0.25s ease;
position: relative; position: relative;
background-color: $playlist-card-bg; background-color: $playlist-card-bg;
height: 10rem; height: 10rem;
@@ -38,7 +37,7 @@ const props = defineProps<{
height: 100%; height: 100%;
aspect-ratio: 1/1.2; aspect-ratio: 1/1.2;
object-fit: cover; object-fit: cover;
transition: all 0.25s ease; transition: all 0.5s ease;
} }
.overlay { .overlay {
@@ -63,8 +62,8 @@ const props = defineProps<{
} }
&:hover { &:hover {
img { .p-name {
transform: scale(1.1); text-decoration: underline;
} }
} }
+19 -1
View File
@@ -1,7 +1,11 @@
<template> <template>
<div class="settingsnav"> <div class="settingsnav">
<div class="buttongroup rounded-sm bg-primary"> <div class="buttongroup rounded-sm bg-primary">
<button v-for="(group, index) in settingGroups" :key="index"> <button
v-for="(group, index) in settingGroups"
:key="index"
@click="increment"
>
{{ group.title }} {{ group.title }}
</button> </button>
</div> </div>
@@ -10,6 +14,20 @@
<script setup lang="ts"> <script setup lang="ts">
import settingGroups from "@/settings"; import settingGroups from "@/settings";
import { ref } from "vue";
import { useRouter } from "vue-router";
const router = useRouter();
const clicks = ref(0);
const increment = () => {
clicks.value++;
if (clicks.value === 3) {
localStorage.clear();
router.go(0);
}
};
</script> </script>
<style lang="scss"> <style lang="scss">
+4 -5
View File
@@ -22,7 +22,7 @@
:class="{ last_played: !isPlaying }" :class="{ last_played: !isPlaying }"
></div> ></div>
</div> </div>
<div v-tooltip="track.title"> <div v-tooltip="track.title" class="song-title">
<div class="title ellip" @click="emitUpdate(track)" ref="artisttitle"> <div class="title ellip" @click="emitUpdate(track)" ref="artisttitle">
{{ track.title }} {{ track.title }}
</div> </div>
@@ -109,11 +109,10 @@ function showMenu(e: Event) {
height: 3.75rem; height: 3.75rem;
gap: 1rem; gap: 1rem;
user-select: none; user-select: none;
// background-color: $gray;
// &:nth-child(odd) { .song-title {
// background-color: rgba(26, 26, 26, 0.068); cursor: pointer;
// } }
&:hover { &:hover {
background-color: $gray4; background-color: $gray4;
-1
View File
@@ -7,5 +7,4 @@ const isSmall = computed(() => {
return content_width.value < 700; return content_width.value < 700;
}); });
console.log(content_width);
export { content_width, isSmall }; export { content_width, isSmall };
-1
View File
@@ -19,7 +19,6 @@ const pStore = usePStore();
<style lang="scss"> <style lang="scss">
#p-view { #p-view {
overflow: auto;
scrollbar-color: $gray2 transparent; scrollbar-color: $gray2 transparent;
.grid { .grid {