@necrolab/dashboard 0.5.32 → 0.5.33

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.
@@ -38,7 +38,7 @@ const tasksOpen = async (data) => {
38
38
  return {
39
39
  error: "task does not exist"
40
40
  };
41
- Bot.Tasks[taskId].openBrowser(); // TODO use cookies from task in subprocess
41
+ Bot.Tasks[taskId].openBrowser();
42
42
  return {};
43
43
  };
44
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@necrolab/dashboard",
3
- "version": "0.5.32",
3
+ "version": "0.5.33",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "node scripts/build.mjs",
@@ -37,7 +37,7 @@
37
37
 
38
38
  <script setup>
39
39
  import { ref, onMounted, onUnmounted } from "vue";
40
- import logoIcon from "/img/reconnect-logo.png";
40
+ import logoIcon from "@/assets/img/reconnect-logo.png?inline";
41
41
 
42
42
  const dotIndex = ref(0);
43
43
  let dotInterval;
@@ -50,6 +50,18 @@ module.exports = {
50
50
  }
51
51
  }
52
52
  },
53
+ // Critical UI images used during reconnect/offline states
54
+ {
55
+ urlPattern: /\/img\/(?:reconnect-logo\.png|logo_trans\.png|pwa\/.+\.png)$/,
56
+ handler: "CacheFirst",
57
+ options: {
58
+ cacheName: "critical-ui-images",
59
+ expiration: {
60
+ maxEntries: 20,
61
+ maxAgeSeconds: 60 * 60 * 24 * 365 // 1 year
62
+ }
63
+ }
64
+ },
53
65
  // Images - Cache first for best performance
54
66
  {
55
67
  urlPattern: /\.(?:png|jpg|jpeg|svg|gif|webp|ico)$/,