adminforth 2.4.0-next.324 → 2.4.0-next.325

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.
@@ -201,10 +201,77 @@ const expandedWidth = computed(() => coreStore.config?.iconOnlySidebar?.expanded
201
201
  const theme = ref('light');
202
202
 
203
203
  const userMenuComponents = computed(() => {
204
- console.log('🪲🆕 userMenuComponents recomputed', coreStore?.config?.globalInjections?.userMenu);
204
+ console.log('🪲🆕 userMenuComponents recomputed', JSON.parse(JSON.stringify(coreStore?.config?.globalInjections?.userMenu)));
205
205
  return coreStore?.config?.globalInjections?.userMenu || [];
206
206
  })
207
207
 
208
+ watch(
209
+ () => coreStore.config?.globalInjections?.userMenu,
210
+ (newVal, oldVal) => {
211
+ // Only log when it becomes undefined (you can relax this if needed)
212
+ if (newVal === undefined) {
213
+ const err = new Error('🔍 userMenu changed to undefined');
214
+ console.groupCollapsed(
215
+ '%c[TRACE] userMenu changed to undefined',
216
+ 'color: red; font-weight: bold;'
217
+ );
218
+ console.log('old value:', oldVal);
219
+ console.log('new value:', newVal);
220
+ console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
221
+ console.log('Stack trace:');
222
+ console.log(err.stack);
223
+ console.groupEnd();
224
+ } else {
225
+ // Optional: log ALL changes for debugging
226
+ console.groupCollapsed(
227
+ '%c[DEBUG] userMenu changed',
228
+ 'color: orange; font-weight: bold;'
229
+ );
230
+ console.log('old value:', oldVal);
231
+ console.log('new value:', newVal);
232
+ console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
233
+ console.groupEnd();
234
+ }
235
+ },
236
+ {
237
+ deep: false,
238
+ immediate: false,
239
+ }
240
+ );
241
+
242
+ watch(() => coreStore.config?.globalInjections, (v) => {
243
+ console.log("🔧 globalInjections replaced:", v);
244
+ }, { deep: false });
245
+
246
+ watch(
247
+ () => coreStore.config?.globalInjections?.userMenu,
248
+ (newVal, oldVal) => {
249
+ if (newVal === undefined) {
250
+ const err = new Error('🔍 userMenu changed to undefined');
251
+ console.groupCollapsed(
252
+ '%c[TRACE] userMenu changed to undefined',
253
+ 'color: red; font-weight: bold;'
254
+ );
255
+ console.log('old value:', oldVal);
256
+ console.log('new value:', newVal);
257
+ console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
258
+ console.log('Stack trace:');
259
+ console.log(err.stack);
260
+ console.groupEnd();
261
+ } else {
262
+ console.groupCollapsed(
263
+ '%c[DEBUG] userMenu changed',
264
+ 'color: orange; font-weight: bold;'
265
+ );
266
+ console.log('old value:', oldVal);
267
+ console.log('new value:', newVal);
268
+ console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
269
+ console.groupEnd();
270
+ }
271
+ },
272
+ { deep: false, immediate: false }
273
+ );
274
+
208
275
  function hideSidebar(): void {
209
276
  sideBarOpen.value = false;
210
277
  }
@@ -198,6 +198,7 @@ export const useCoreStore = defineStore('core', () => {
198
198
  path: '/get_public_config',
199
199
  method: 'GET',
200
200
  });
201
+ console.log('📦 getPublicConfig', res);
201
202
  config.value = {...config.value, ...res};
202
203
  }
203
204
 
@@ -206,6 +207,7 @@ export const useCoreStore = defineStore('core', () => {
206
207
  path: '/get_login_form_config',
207
208
  method: 'GET',
208
209
  });
210
+ console.log('📦 getLoginFormConfig', res);
209
211
  config.value = {...config.value, ...res};
210
212
  }
211
213
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.324",
3
+ "version": "2.4.0-next.325",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",