adminforth 3.31.16 → 3.32.0-next.2
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.
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
? { href: item.url }
|
|
6
6
|
: { to: item.url || { name: item.resourceId ? 'resource-list' : item.path, params: item.resourceId ? { resourceId: item.resourceId }: {} } }"
|
|
7
7
|
:target="item.isOpenInNewTab ? '_blank' : '_self'"
|
|
8
|
-
class="af-menu-link flex group relative items-center py-2 text-lightSidebarText dark:text-darkSidebarText rounded-default transition-all duration-200 ease-in-out"
|
|
8
|
+
class="af-menu-link flex group relative items-center w-full py-2 text-lightSidebarText dark:text-darkSidebarText rounded-default transition-all duration-200 ease-in-out"
|
|
9
9
|
:class="{
|
|
10
10
|
'hover:bg-lightSidebarItemHover hover:text-lightSidebarTextHover dark:hover:bg-darkSidebarItemHover dark:hover:text-darkSidebarTextHover active:bg-lightSidebarActive dark:active:bg-darkSidebarHover': !['divider', 'gap', 'heading'].includes(item.type),
|
|
11
11
|
'pl-6 pr-3.5': (isChild && !isSidebarIconOnly && !isSidebarHovering) || (isChild && isSidebarIconOnly && isSidebarHovering),
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'w-10 h-10 ml-1 px-2.5': isSidebarIconOnly && !isSidebarHovering,
|
|
12
|
+
'px-3.5 ': !isChild || (isSidebarIconOnly && !isSidebarHovering),
|
|
13
|
+
'max-w-12': isSidebarIconOnly && !isSidebarHovering,
|
|
15
14
|
'bg-lightSidebarItemActive dark:bg-darkSidebarItemActive': isItemActive(item)
|
|
16
15
|
}"
|
|
17
16
|
>
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
<div
|
|
56
56
|
v-if="coreStore?.config?.defaultUserExists && !isLocalhost"
|
|
57
57
|
class="mb-4 text-white rounded-lg bg-red-700/80 fill-white text-sm"
|
|
58
|
-
:class="iconOnlySidebarEnabled && isSidebarIconOnly && !isSidebarHovering ? 'flex
|
|
58
|
+
:class="iconOnlySidebarEnabled && isSidebarIconOnly && !isSidebarHovering ? 'flex h-10 items-center justify-center' : 'p-4'"
|
|
59
59
|
>
|
|
60
60
|
<IconExclamationCircleOutline class="inline-block align-text-bottom w-5 h-5 shrink-0" />
|
|
61
61
|
<template v-if="!iconOnlySidebarEnabled || !isSidebarIconOnly || isSidebarHovering">
|
|
@@ -116,11 +116,8 @@
|
|
|
116
116
|
">{{ item.label }}</div>
|
|
117
117
|
<div v-else-if="item.type === 'heading' && !isSidebarHovering" class="opacity-0 w-1 h-8">{{ item.label }}</div>
|
|
118
118
|
<li v-else-if="item.children" class="af-sidebar-expand-container">
|
|
119
|
-
<button @click="clickOnMenuItem(i)" type="button" class="af-sidebar-expand-button relative flex items-center h-10 py-2 text-base text-lightSidebarText rounded-default group hover:bg-lightSidebarItemHover hover:text-lightSidebarTextHover dark:text-darkSidebarText dark:hover:bg-darkSidebarHover dark:hover:text-darkSidebarTextHover"
|
|
120
|
-
:class="
|
|
121
|
-
opened.includes(i) ? 'af-sidebar-dropdown-expanded' : 'af-sidebar-dropdown-collapsed',
|
|
122
|
-
isSidebarIconOnly && !isSidebarHovering ? 'w-10 ml-1 px-2.5' : 'w-full px-3.5'
|
|
123
|
-
]"
|
|
119
|
+
<button @click="clickOnMenuItem(i)" type="button" class="af-sidebar-expand-button relative flex items-center h-10 w-full px-3.5 py-2 text-base text-lightSidebarText rounded-default group hover:bg-lightSidebarItemHover hover:text-lightSidebarTextHover dark:text-darkSidebarText dark:hover:bg-darkSidebarHover dark:hover:text-darkSidebarTextHover"
|
|
120
|
+
:class="opened.includes(i) ? 'af-sidebar-dropdown-expanded' : 'af-sidebar-dropdown-collapsed'"
|
|
124
121
|
:aria-controls="`dropdown-example${i}`"
|
|
125
122
|
>
|
|
126
123
|
<component v-if="item.icon" :is="getIcon(item.icon)" class="min-w-5 min-h-5 text-lightSidebarIcons group-hover:text-lightSidebarIconsHover transition duration-75 dark:group-hover:text-darkSidebarIconsHover dark:text-darkSidebarIcons" ></component>
|
package/dist/spa/vite.config.ts
CHANGED
|
@@ -45,11 +45,32 @@ export default defineConfig({
|
|
|
45
45
|
// reduce the size of the vendor chunk
|
|
46
46
|
// to only include the package name
|
|
47
47
|
// helps to reduce consumption of memory
|
|
48
|
-
if (id.includes('node_modules
|
|
49
|
-
|
|
50
|
-
return id.split('node_modules/').pop()!.split('/')[0];
|
|
48
|
+
if (id.includes('node_modules')) {
|
|
49
|
+
return id.toString().split('node_modules/')[1].split('/')[0].toString();
|
|
51
50
|
}
|
|
52
51
|
},
|
|
52
|
+
|
|
53
|
+
// by default servers doesnt returns dotfiles
|
|
54
|
+
// so if we'll generate file with name like ".pnpm-BLnlxqcJ.js"
|
|
55
|
+
// it won't be loaded
|
|
56
|
+
assetFileNames: (chunkInfo) => {
|
|
57
|
+
if (chunkInfo.name && chunkInfo.name.startsWith('.pnpm')) {
|
|
58
|
+
return `assets/pnpm-${chunkInfo.name.slice(6)}-[hash].[ext]`;
|
|
59
|
+
}
|
|
60
|
+
return 'assets/[name]-[hash].[ext]';
|
|
61
|
+
},
|
|
62
|
+
entryFileNames: (chunkInfo) => {
|
|
63
|
+
if (chunkInfo.name && chunkInfo.name.startsWith('.pnpm')) {
|
|
64
|
+
return `assets/pnpm-${chunkInfo.name.slice(6)}-[hash].js`;
|
|
65
|
+
}
|
|
66
|
+
return 'assets/[name]-[hash].js';
|
|
67
|
+
},
|
|
68
|
+
chunkFileNames: (chunkInfo) => {
|
|
69
|
+
if (chunkInfo.name && chunkInfo.name.startsWith('.pnpm')) {
|
|
70
|
+
return `assets/pnpm-${chunkInfo.name.slice(6)}-[hash].js`;
|
|
71
|
+
}
|
|
72
|
+
return 'assets/[name]-[hash].js';
|
|
73
|
+
}
|
|
53
74
|
},
|
|
54
75
|
},
|
|
55
76
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adminforth",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.32.0-next.2",
|
|
4
4
|
"description": "OpenSource Agent-Native forth-generation admin panel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adminforth",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"node-fetch": "^3.3.2",
|
|
116
116
|
"p-limit": "^7.3.1",
|
|
117
117
|
"pino": "^10.1.0",
|
|
118
|
-
"pino-pretty": "13.1.3",
|
|
118
|
+
"pino-pretty": "^13.1.3",
|
|
119
119
|
"rate-limiter-flexible": "^8.1.0",
|
|
120
120
|
"recast": "^0.23.11",
|
|
121
121
|
"sanitize-html": "2.17.4",
|