adminforth 2.13.0-next.53 → 2.13.0-next.54

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.
@@ -234,77 +234,9 @@ const expandedWidth = computed(() => coreStore.config?.iconOnlySidebar?.expanded
234
234
  const theme = ref('light');
235
235
 
236
236
  const userMenuComponents = computed(() => {
237
- console.log('🪲🆕 userMenuComponents recomputed', JSON.parse(JSON.stringify(coreStore?.config?.globalInjections?.userMenu)));
238
237
  return coreStore?.config?.globalInjections?.userMenu || [];
239
238
  })
240
239
 
241
- watch(
242
- () => coreStore.config?.globalInjections?.userMenu,
243
- (newVal, oldVal) => {
244
- // Only log when it becomes undefined (you can relax this if needed)
245
- if (newVal === undefined) {
246
- const err = new Error('🔍 userMenu changed to undefined');
247
- console.groupCollapsed(
248
- '%c[TRACE] userMenu changed to undefined',
249
- 'color: red; font-weight: bold;'
250
- );
251
- console.log('old value:', oldVal);
252
- console.log('new value:', newVal);
253
- console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
254
- console.log('Stack trace:');
255
- console.log(err.stack);
256
- console.groupEnd();
257
- } else {
258
- // Optional: log ALL changes for debugging
259
- console.groupCollapsed(
260
- '%c[DEBUG] userMenu changed',
261
- 'color: orange; font-weight: bold;'
262
- );
263
- console.log('old value:', oldVal);
264
- console.log('new value:', newVal);
265
- console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
266
- console.groupEnd();
267
- }
268
- },
269
- {
270
- deep: false,
271
- immediate: false,
272
- }
273
- );
274
-
275
- watch(() => coreStore.config?.globalInjections, (v) => {
276
- console.log("🔧 globalInjections replaced:", v);
277
- }, { deep: false });
278
-
279
- watch(
280
- () => coreStore.config?.globalInjections?.userMenu,
281
- (newVal, oldVal) => {
282
- if (newVal === undefined) {
283
- const err = new Error('🔍 userMenu changed to undefined');
284
- console.groupCollapsed(
285
- '%c[TRACE] userMenu changed to undefined',
286
- 'color: red; font-weight: bold;'
287
- );
288
- console.log('old value:', oldVal);
289
- console.log('new value:', newVal);
290
- console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
291
- console.log('Stack trace:');
292
- console.log(err.stack);
293
- console.groupEnd();
294
- } else {
295
- console.groupCollapsed(
296
- '%c[DEBUG] userMenu changed',
297
- 'color: orange; font-weight: bold;'
298
- );
299
- console.log('old value:', oldVal);
300
- console.log('new value:', newVal);
301
- console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
302
- console.groupEnd();
303
- }
304
- },
305
- { deep: false, immediate: false }
306
- );
307
-
308
240
  function hideSidebar(): void {
309
241
  sideBarOpen.value = false;
310
242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.13.0-next.53",
3
+ "version": "2.13.0-next.54",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",