@necrolab/dashboard 0.4.36 → 0.4.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@necrolab/dashboard",
3
- "version": "0.4.36",
3
+ "version": "0.4.38",
4
4
  "scripts": {
5
5
  "build": "rm -rf dist && vite build && npx workbox-cli generateSW workbox-config.js",
6
6
  "dev": "vite",
@@ -41,7 +41,7 @@
41
41
  <div class="task" :key="i[props.item._id]">
42
42
  <Account
43
43
  @click="i[props.item._id]++"
44
- :class="[props.item.index % 2 == 1 ? 'bg-dark-500' : 'bg-dark-550']"
44
+ :style="{ backgroundColor: props.item.index % 2 == 1 ? '#35363c' : '#2e2f34' }"
45
45
  :task="props.item"
46
46
  />
47
47
  </div>
@@ -45,7 +45,7 @@
45
45
  <div class="task" :key="i[props.item.index]">
46
46
  <Profile
47
47
  @click="i[props.item.index]++"
48
- :class="[props.item.index % 2 == 1 ? 'bg-dark-500' : 'bg-dark-550']"
48
+ :style="{ backgroundColor: props.item.index % 2 == 1 ? '#1a1b1e' : '#242529' }"
49
49
  :task="props.item"
50
50
  />
51
51
  </div>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="border-b border-dark-600 w-full px-2 md:px-4 text-white text-xs py-4 grid items-center">
2
+ <div class="border-b border-dark-600 w-full px-2 md:px-4 text-white text-xs py-4 grid items-center" style="background-color: rgb(26 27 30);">
3
3
  <slot />
4
4
  </div>
5
5
  </template>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="px-2 md:px-4 text-xs grid text-white py-4 items-center h-full bg-dark-400 even:bg-dark-350 hover:bg-dark-500 transition-colors">
2
+ <div class="px-2 md:px-4 text-xs grid text-white py-4 items-center h-full hover:bg-dark-500 transition-colors">
3
3
  <slot />
4
4
  </div>
5
5
  </template>
@@ -47,10 +47,9 @@
47
47
  <div
48
48
  v-for="(task, i) in getTasksInOrder()"
49
49
  :key="task.taskId"
50
- :class="[i % 2 == 1 ? 'task-row-odd' : 'task-row-even']"
51
50
  class="task-row-container"
52
51
  >
53
- <Task :task="task" />
52
+ <Task :task="task" :style="{ backgroundColor: i % 2 == 1 ? '#1a1b1e' : '#242529' }" />
54
53
  </div>
55
54
  <div v-if="getTasksInOrder().length === 0" class="flex justify-center py-8 empty-state">
56
55
  <span v-if="ui.queueStats.total === 0"> No tasks yet</span>
@@ -82,13 +81,6 @@ h4 {
82
81
  }
83
82
  }
84
83
 
85
- .task-row-even {
86
- @apply bg-dark-400;
87
- }
88
-
89
- .task-row-odd {
90
- @apply bg-dark-500;
91
- }
92
84
 
93
85
  .empty-state {
94
86
  @apply bg-dark-400;
@@ -119,8 +119,10 @@
119
119
  .navbar {
120
120
  @apply border-b py-5 fixed w-full;
121
121
  top: 0;
122
- z-index: 1;
122
+ z-index: 1000;
123
+ background: rgba(26, 27, 30, 0.95);
123
124
  backdrop-filter: blur(23px);
125
+ -webkit-backdrop-filter: blur(23px);
124
126
  border-color: #3d3e44;
125
127
 
126
128
  ul {
package/src/stores/ui.js CHANGED
@@ -516,8 +516,9 @@ export const useUIStore = defineStore("ui", () => {
516
516
  // Event
517
517
  currentEvent,
518
518
  setCurrentEvent: (event) => {
519
+ console.log(event);
519
520
  logger.Info("Setting current event", event);
520
- currentEvent.value = event.match(/\s\((.*?)\)$/)[1];
521
+ currentEvent.value = event?.match(/\s\((.*?)\)$/)?.[1] || "";
521
522
  localStorage.setItem("current-event", currentEvent.value);
522
523
  refreshQueueStats();
523
524
  },