-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugPanel.vue
More file actions
52 lines (44 loc) · 1.15 KB
/
DebugPanel.vue
File metadata and controls
52 lines (44 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<div class="debug-panel">
<h3>🕵️ Secret Debuggin Panel</h3>
<pre class="state-display">{{ formattedState }}</pre>
<button @click="resetCookieConsent">Reset Cookie Consent</button>
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue';
import { useMainStore } from '../store';
const mainStore = useMainStore();
const formattedState = computed(() => {
return JSON.stringify(mainStore.$state, null, 2);
});
const resetCookieConsent = () => {
mainStore.resetCookieConsent();
};
</script>
<style scoped>
.debug-panel {
background-color: #f8f8f8;
border: 1px solid #ccc;
padding: 15px;
border-radius: 10px;
margin-top: 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
color: #333; /* Default text color for the panel */
}
.debug-panel h3 {
margin-top: 0;
}
.debug-panel pre {
white-space: pre-wrap;
word-wrap: break-word;
background-color: #eee; /* Light background for the text area */
padding: 10px;
border-radius: 5px;
color: #333; /* Ensuring text color is readable against the light background */
}
.debug-panel button {
margin-top: 10px;
/* Additional button styling */
}
</style>