adminforth 2.13.0-next.5 → 2.13.0-next.7

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.
@@ -86,16 +86,24 @@ export const loadFile = (file: string) => {
86
86
  if (file.startsWith('http')) {
87
87
  return file;
88
88
  }
89
+ console.log('Loading file:', file);
89
90
  let path;
90
91
  let baseUrl = '';
91
92
  if (file.startsWith('@/')) {
93
+ console.log('Loading from @/');
92
94
  path = file.replace('@/', '');
95
+ console.log('Resolved path:', path);
93
96
  baseUrl = new URL(`./${path}`, import.meta.url.split('?')[0]).href;
97
+ console.log('Base URL:', baseUrl);
94
98
  } else if (file.startsWith('@@/')) {
99
+ console.log('Loading from @@/');
95
100
  path = file.replace('@@/', '');
101
+ console.log('Resolved path:', path);
96
102
  baseUrl = new URL(`./custom/${path}`, import.meta.url.split('?')[0]).href;
103
+ console.log('Base URL:', baseUrl);
97
104
  } else {
98
105
  baseUrl = new URL(`./${file}`, import.meta.url.split('?')[0]).href;
106
+ console.log('Loading from relative path:', baseUrl);
99
107
  }
100
108
  return baseUrl;
101
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.13.0-next.5",
3
+ "version": "2.13.0-next.7",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",