adminforth 1.1.77 → 1.1.79
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.
package/dist/modules/utils.js
CHANGED
|
@@ -2,7 +2,156 @@ import path from 'path';
|
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
import fs from 'fs';
|
|
4
4
|
// @ts-ignore-next-line
|
|
5
|
-
|
|
5
|
+
const csscolors = {
|
|
6
|
+
"aliceblue": "#f0f8ff",
|
|
7
|
+
"antiquewhite": "#faebd7",
|
|
8
|
+
"aqua": "#00ffff",
|
|
9
|
+
"aquamarine": "#7fffd4",
|
|
10
|
+
"azure": "#f0ffff",
|
|
11
|
+
"beige": "#f5f5dc",
|
|
12
|
+
"bisque": "#ffe4c4",
|
|
13
|
+
"black": "#000000",
|
|
14
|
+
"blanchedalmond": "#ffebcd",
|
|
15
|
+
"blue": "#0000ff",
|
|
16
|
+
"blueviolet": "#8a2be2",
|
|
17
|
+
"brown": "#a52a2a",
|
|
18
|
+
"burlywood": "#deb887",
|
|
19
|
+
"cadetblue": "#5f9ea0",
|
|
20
|
+
"chartreuse": "#7fff00",
|
|
21
|
+
"chocolate": "#d2691e",
|
|
22
|
+
"coral": "#ff7f50",
|
|
23
|
+
"cornflowerblue": "#6495ed",
|
|
24
|
+
"cornsilk": "#fff8dc",
|
|
25
|
+
"crimson": "#dc143c",
|
|
26
|
+
"cyan": "#00ffff",
|
|
27
|
+
"darkblue": "#00008b",
|
|
28
|
+
"darkcyan": "#008b8b",
|
|
29
|
+
"darkgoldenrod": "#b8860b",
|
|
30
|
+
"darkgray": "#a9a9a9",
|
|
31
|
+
"darkgreen": "#006400",
|
|
32
|
+
"darkgrey": "#a9a9a9",
|
|
33
|
+
"darkkhaki": "#bdb76b",
|
|
34
|
+
"darkmagenta": "#8b008b",
|
|
35
|
+
"darkolivegreen": "#556b2f",
|
|
36
|
+
"darkorange": "#ff8c00",
|
|
37
|
+
"darkorchid": "#9932cc",
|
|
38
|
+
"darkred": "#8b0000",
|
|
39
|
+
"darksalmon": "#e9967a",
|
|
40
|
+
"darkseagreen": "#8fbc8f",
|
|
41
|
+
"darkslateblue": "#483d8b",
|
|
42
|
+
"darkslategray": "#2f4f4f",
|
|
43
|
+
"darkslategrey": "#2f4f4f",
|
|
44
|
+
"darkturquoise": "#00ced1",
|
|
45
|
+
"darkviolet": "#9400d3",
|
|
46
|
+
"deeppink": "#ff1493",
|
|
47
|
+
"deepskyblue": "#00bfff",
|
|
48
|
+
"dimgray": "#696969",
|
|
49
|
+
"dimgrey": "#696969",
|
|
50
|
+
"dodgerblue": "#1e90ff",
|
|
51
|
+
"firebrick": "#b22222",
|
|
52
|
+
"floralwhite": "#fffaf0",
|
|
53
|
+
"forestgreen": "#228b22",
|
|
54
|
+
"fuchsia": "#ff00ff",
|
|
55
|
+
"gainsboro": "#dcdcdc",
|
|
56
|
+
"ghostwhite": "#f8f8ff",
|
|
57
|
+
"goldenrod": "#daa520",
|
|
58
|
+
"gold": "#ffd700",
|
|
59
|
+
"gray": "#808080",
|
|
60
|
+
"green": "#008000",
|
|
61
|
+
"greenyellow": "#adff2f",
|
|
62
|
+
"grey": "#808080",
|
|
63
|
+
"honeydew": "#f0fff0",
|
|
64
|
+
"hotpink": "#ff69b4",
|
|
65
|
+
"indianred": "#cd5c5c",
|
|
66
|
+
"indigo": "#4b0082",
|
|
67
|
+
"ivory": "#fffff0",
|
|
68
|
+
"khaki": "#f0e68c",
|
|
69
|
+
"lavenderblush": "#fff0f5",
|
|
70
|
+
"lavender": "#e6e6fa",
|
|
71
|
+
"lawngreen": "#7cfc00",
|
|
72
|
+
"lemonchiffon": "#fffacd",
|
|
73
|
+
"lightblue": "#add8e6",
|
|
74
|
+
"lightcoral": "#f08080",
|
|
75
|
+
"lightcyan": "#e0ffff",
|
|
76
|
+
"lightgoldenrodyellow": "#fafad2",
|
|
77
|
+
"lightgray": "#d3d3d3",
|
|
78
|
+
"lightgreen": "#90ee90",
|
|
79
|
+
"lightgrey": "#d3d3d3",
|
|
80
|
+
"lightpink": "#ffb6c1",
|
|
81
|
+
"lightsalmon": "#ffa07a",
|
|
82
|
+
"lightseagreen": "#20b2aa",
|
|
83
|
+
"lightskyblue": "#87cefa",
|
|
84
|
+
"lightslategray": "#778899",
|
|
85
|
+
"lightslategrey": "#778899",
|
|
86
|
+
"lightsteelblue": "#b0c4de",
|
|
87
|
+
"lightyellow": "#ffffe0",
|
|
88
|
+
"lime": "#00ff00",
|
|
89
|
+
"limegreen": "#32cd32",
|
|
90
|
+
"linen": "#faf0e6",
|
|
91
|
+
"magenta": "#ff00ff",
|
|
92
|
+
"maroon": "#800000",
|
|
93
|
+
"mediumaquamarine": "#66cdaa",
|
|
94
|
+
"mediumblue": "#0000cd",
|
|
95
|
+
"mediumorchid": "#ba55d3",
|
|
96
|
+
"mediumpurple": "#9370db",
|
|
97
|
+
"mediumseagreen": "#3cb371",
|
|
98
|
+
"mediumslateblue": "#7b68ee",
|
|
99
|
+
"mediumspringgreen": "#00fa9a",
|
|
100
|
+
"mediumturquoise": "#48d1cc",
|
|
101
|
+
"mediumvioletred": "#c71585",
|
|
102
|
+
"midnightblue": "#191970",
|
|
103
|
+
"mintcream": "#f5fffa",
|
|
104
|
+
"mistyrose": "#ffe4e1",
|
|
105
|
+
"moccasin": "#ffe4b5",
|
|
106
|
+
"navajowhite": "#ffdead",
|
|
107
|
+
"navy": "#000080",
|
|
108
|
+
"oldlace": "#fdf5e6",
|
|
109
|
+
"olive": "#808000",
|
|
110
|
+
"olivedrab": "#6b8e23",
|
|
111
|
+
"orange": "#ffa500",
|
|
112
|
+
"orangered": "#ff4500",
|
|
113
|
+
"orchid": "#da70d6",
|
|
114
|
+
"palegoldenrod": "#eee8aa",
|
|
115
|
+
"palegreen": "#98fb98",
|
|
116
|
+
"paleturquoise": "#afeeee",
|
|
117
|
+
"palevioletred": "#db7093",
|
|
118
|
+
"papayawhip": "#ffefd5",
|
|
119
|
+
"peachpuff": "#ffdab9",
|
|
120
|
+
"peru": "#cd853f",
|
|
121
|
+
"pink": "#ffc0cb",
|
|
122
|
+
"plum": "#dda0dd",
|
|
123
|
+
"powderblue": "#b0e0e6",
|
|
124
|
+
"purple": "#800080",
|
|
125
|
+
"rebeccapurple": "#663399",
|
|
126
|
+
"red": "#ff0000",
|
|
127
|
+
"rosybrown": "#bc8f8f",
|
|
128
|
+
"royalblue": "#4169e1",
|
|
129
|
+
"saddlebrown": "#8b4513",
|
|
130
|
+
"salmon": "#fa8072",
|
|
131
|
+
"sandybrown": "#f4a460",
|
|
132
|
+
"seagreen": "#2e8b57",
|
|
133
|
+
"seashell": "#fff5ee",
|
|
134
|
+
"sienna": "#a0522d",
|
|
135
|
+
"silver": "#c0c0c0",
|
|
136
|
+
"skyblue": "#87ceeb",
|
|
137
|
+
"slateblue": "#6a5acd",
|
|
138
|
+
"slategray": "#708090",
|
|
139
|
+
"slategrey": "#708090",
|
|
140
|
+
"snow": "#fffafa",
|
|
141
|
+
"springgreen": "#00ff7f",
|
|
142
|
+
"steelblue": "#4682b4",
|
|
143
|
+
"tan": "#d2b48c",
|
|
144
|
+
"teal": "#008080",
|
|
145
|
+
"thistle": "#d8bfd8",
|
|
146
|
+
"tomato": "#ff6347",
|
|
147
|
+
"turquoise": "#40e0d0",
|
|
148
|
+
"violet": "#ee82ee",
|
|
149
|
+
"wheat": "#f5deb3",
|
|
150
|
+
"white": "#ffffff",
|
|
151
|
+
"whitesmoke": "#f5f5f5",
|
|
152
|
+
"yellow": "#ffff00",
|
|
153
|
+
"yellowgreen": "#9acd32"
|
|
154
|
+
};
|
|
6
155
|
export function guessLabelFromName(name) {
|
|
7
156
|
if (name.includes('_')) {
|
|
8
157
|
return name.split('_').map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join(' ');
|
package/dist/spa/spa/src/App.vue
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
:aria-controls="`dropdown-example${i}`"
|
|
85
85
|
:data-collapse-toggle="`dropdown-example${i}`"
|
|
86
86
|
>
|
|
87
|
-
<component v-if="item.icon" :is="getIcon(item.icon)" class="w-5 h-5 text-lightSidebarIcons group-hover:text-lightSidebarIconsHover transition duration-75 dark:group-hover:text-darkSidebarIconsHover dark:text-darkSidebarIcons" ></component>
|
|
87
|
+
<component v-if="item.icon" :is="getIcon(item.icon)" class="w-5 h-5 text-lightSidebarIcons group-hover:text-lightSidebarIconsHover transition duration-75 active: dark:group-hover:text-darkSidebarIconsHover dark:text-darkSidebarIcons" ></component>
|
|
88
88
|
|
|
89
89
|
<span class="flex-1 ms-3 text-left rtl:text-right whitespace-nowrap">{{ item.label }}</span>
|
|
90
90
|
<svg :class="{'rotate-180': opened.includes(i) }" class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:class="{
|
|
6
6
|
'px-4': isChild,
|
|
7
7
|
'px-2': !isChild,
|
|
8
|
-
'bg-
|
|
8
|
+
'bg-lightSidebarItemActive dark:bg-darkSidebarItemActive': item.resourceId ?
|
|
9
9
|
($route.params.resourceId === item.resourceId && $route.name === 'resource-list') :
|
|
10
10
|
($route.name === item.path)
|
|
11
11
|
}"
|
package/modules/utils.ts
CHANGED
|
@@ -2,7 +2,159 @@ import path from 'path';
|
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
import fs from 'fs';
|
|
4
4
|
// @ts-ignore-next-line
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
const csscolors = {
|
|
8
|
+
"aliceblue": "#f0f8ff",
|
|
9
|
+
"antiquewhite": "#faebd7",
|
|
10
|
+
"aqua": "#00ffff",
|
|
11
|
+
"aquamarine": "#7fffd4",
|
|
12
|
+
"azure": "#f0ffff",
|
|
13
|
+
"beige": "#f5f5dc",
|
|
14
|
+
"bisque": "#ffe4c4",
|
|
15
|
+
"black": "#000000",
|
|
16
|
+
"blanchedalmond": "#ffebcd",
|
|
17
|
+
"blue": "#0000ff",
|
|
18
|
+
"blueviolet": "#8a2be2",
|
|
19
|
+
"brown": "#a52a2a",
|
|
20
|
+
"burlywood": "#deb887",
|
|
21
|
+
"cadetblue": "#5f9ea0",
|
|
22
|
+
"chartreuse": "#7fff00",
|
|
23
|
+
"chocolate": "#d2691e",
|
|
24
|
+
"coral": "#ff7f50",
|
|
25
|
+
"cornflowerblue": "#6495ed",
|
|
26
|
+
"cornsilk": "#fff8dc",
|
|
27
|
+
"crimson": "#dc143c",
|
|
28
|
+
"cyan": "#00ffff",
|
|
29
|
+
"darkblue": "#00008b",
|
|
30
|
+
"darkcyan": "#008b8b",
|
|
31
|
+
"darkgoldenrod": "#b8860b",
|
|
32
|
+
"darkgray": "#a9a9a9",
|
|
33
|
+
"darkgreen": "#006400",
|
|
34
|
+
"darkgrey": "#a9a9a9",
|
|
35
|
+
"darkkhaki": "#bdb76b",
|
|
36
|
+
"darkmagenta": "#8b008b",
|
|
37
|
+
"darkolivegreen": "#556b2f",
|
|
38
|
+
"darkorange": "#ff8c00",
|
|
39
|
+
"darkorchid": "#9932cc",
|
|
40
|
+
"darkred": "#8b0000",
|
|
41
|
+
"darksalmon": "#e9967a",
|
|
42
|
+
"darkseagreen": "#8fbc8f",
|
|
43
|
+
"darkslateblue": "#483d8b",
|
|
44
|
+
"darkslategray": "#2f4f4f",
|
|
45
|
+
"darkslategrey": "#2f4f4f",
|
|
46
|
+
"darkturquoise": "#00ced1",
|
|
47
|
+
"darkviolet": "#9400d3",
|
|
48
|
+
"deeppink": "#ff1493",
|
|
49
|
+
"deepskyblue": "#00bfff",
|
|
50
|
+
"dimgray": "#696969",
|
|
51
|
+
"dimgrey": "#696969",
|
|
52
|
+
"dodgerblue": "#1e90ff",
|
|
53
|
+
"firebrick": "#b22222",
|
|
54
|
+
"floralwhite": "#fffaf0",
|
|
55
|
+
"forestgreen": "#228b22",
|
|
56
|
+
"fuchsia": "#ff00ff",
|
|
57
|
+
"gainsboro": "#dcdcdc",
|
|
58
|
+
"ghostwhite": "#f8f8ff",
|
|
59
|
+
"goldenrod": "#daa520",
|
|
60
|
+
"gold": "#ffd700",
|
|
61
|
+
"gray": "#808080",
|
|
62
|
+
"green": "#008000",
|
|
63
|
+
"greenyellow": "#adff2f",
|
|
64
|
+
"grey": "#808080",
|
|
65
|
+
"honeydew": "#f0fff0",
|
|
66
|
+
"hotpink": "#ff69b4",
|
|
67
|
+
"indianred": "#cd5c5c",
|
|
68
|
+
"indigo": "#4b0082",
|
|
69
|
+
"ivory": "#fffff0",
|
|
70
|
+
"khaki": "#f0e68c",
|
|
71
|
+
"lavenderblush": "#fff0f5",
|
|
72
|
+
"lavender": "#e6e6fa",
|
|
73
|
+
"lawngreen": "#7cfc00",
|
|
74
|
+
"lemonchiffon": "#fffacd",
|
|
75
|
+
"lightblue": "#add8e6",
|
|
76
|
+
"lightcoral": "#f08080",
|
|
77
|
+
"lightcyan": "#e0ffff",
|
|
78
|
+
"lightgoldenrodyellow": "#fafad2",
|
|
79
|
+
"lightgray": "#d3d3d3",
|
|
80
|
+
"lightgreen": "#90ee90",
|
|
81
|
+
"lightgrey": "#d3d3d3",
|
|
82
|
+
"lightpink": "#ffb6c1",
|
|
83
|
+
"lightsalmon": "#ffa07a",
|
|
84
|
+
"lightseagreen": "#20b2aa",
|
|
85
|
+
"lightskyblue": "#87cefa",
|
|
86
|
+
"lightslategray": "#778899",
|
|
87
|
+
"lightslategrey": "#778899",
|
|
88
|
+
"lightsteelblue": "#b0c4de",
|
|
89
|
+
"lightyellow": "#ffffe0",
|
|
90
|
+
"lime": "#00ff00",
|
|
91
|
+
"limegreen": "#32cd32",
|
|
92
|
+
"linen": "#faf0e6",
|
|
93
|
+
"magenta": "#ff00ff",
|
|
94
|
+
"maroon": "#800000",
|
|
95
|
+
"mediumaquamarine": "#66cdaa",
|
|
96
|
+
"mediumblue": "#0000cd",
|
|
97
|
+
"mediumorchid": "#ba55d3",
|
|
98
|
+
"mediumpurple": "#9370db",
|
|
99
|
+
"mediumseagreen": "#3cb371",
|
|
100
|
+
"mediumslateblue": "#7b68ee",
|
|
101
|
+
"mediumspringgreen": "#00fa9a",
|
|
102
|
+
"mediumturquoise": "#48d1cc",
|
|
103
|
+
"mediumvioletred": "#c71585",
|
|
104
|
+
"midnightblue": "#191970",
|
|
105
|
+
"mintcream": "#f5fffa",
|
|
106
|
+
"mistyrose": "#ffe4e1",
|
|
107
|
+
"moccasin": "#ffe4b5",
|
|
108
|
+
"navajowhite": "#ffdead",
|
|
109
|
+
"navy": "#000080",
|
|
110
|
+
"oldlace": "#fdf5e6",
|
|
111
|
+
"olive": "#808000",
|
|
112
|
+
"olivedrab": "#6b8e23",
|
|
113
|
+
"orange": "#ffa500",
|
|
114
|
+
"orangered": "#ff4500",
|
|
115
|
+
"orchid": "#da70d6",
|
|
116
|
+
"palegoldenrod": "#eee8aa",
|
|
117
|
+
"palegreen": "#98fb98",
|
|
118
|
+
"paleturquoise": "#afeeee",
|
|
119
|
+
"palevioletred": "#db7093",
|
|
120
|
+
"papayawhip": "#ffefd5",
|
|
121
|
+
"peachpuff": "#ffdab9",
|
|
122
|
+
"peru": "#cd853f",
|
|
123
|
+
"pink": "#ffc0cb",
|
|
124
|
+
"plum": "#dda0dd",
|
|
125
|
+
"powderblue": "#b0e0e6",
|
|
126
|
+
"purple": "#800080",
|
|
127
|
+
"rebeccapurple": "#663399",
|
|
128
|
+
"red": "#ff0000",
|
|
129
|
+
"rosybrown": "#bc8f8f",
|
|
130
|
+
"royalblue": "#4169e1",
|
|
131
|
+
"saddlebrown": "#8b4513",
|
|
132
|
+
"salmon": "#fa8072",
|
|
133
|
+
"sandybrown": "#f4a460",
|
|
134
|
+
"seagreen": "#2e8b57",
|
|
135
|
+
"seashell": "#fff5ee",
|
|
136
|
+
"sienna": "#a0522d",
|
|
137
|
+
"silver": "#c0c0c0",
|
|
138
|
+
"skyblue": "#87ceeb",
|
|
139
|
+
"slateblue": "#6a5acd",
|
|
140
|
+
"slategray": "#708090",
|
|
141
|
+
"slategrey": "#708090",
|
|
142
|
+
"snow": "#fffafa",
|
|
143
|
+
"springgreen": "#00ff7f",
|
|
144
|
+
"steelblue": "#4682b4",
|
|
145
|
+
"tan": "#d2b48c",
|
|
146
|
+
"teal": "#008080",
|
|
147
|
+
"thistle": "#d8bfd8",
|
|
148
|
+
"tomato": "#ff6347",
|
|
149
|
+
"turquoise": "#40e0d0",
|
|
150
|
+
"violet": "#ee82ee",
|
|
151
|
+
"wheat": "#f5deb3",
|
|
152
|
+
"white": "#ffffff",
|
|
153
|
+
"whitesmoke": "#f5f5f5",
|
|
154
|
+
"yellow": "#ffff00",
|
|
155
|
+
"yellowgreen": "#9acd32"
|
|
156
|
+
}
|
|
157
|
+
|
|
6
158
|
|
|
7
159
|
|
|
8
160
|
export function guessLabelFromName(name) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adminforth",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.79",
|
|
4
4
|
"description": "OpenSource Vue3 powered forth-generation admin panel",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"better-sqlite3": "^10.0.0",
|
|
19
19
|
"crypto": "^1.0.1",
|
|
20
|
-
"css-color-names": "^1.0.1",
|
|
21
20
|
"dayjs": "^1.11.11",
|
|
22
21
|
"express": "^4.19.2",
|
|
23
22
|
"filewatcher": "^3.0.1",
|
package/spa/src/App.vue
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
:aria-controls="`dropdown-example${i}`"
|
|
85
85
|
:data-collapse-toggle="`dropdown-example${i}`"
|
|
86
86
|
>
|
|
87
|
-
<component v-if="item.icon" :is="getIcon(item.icon)" class="w-5 h-5 text-lightSidebarIcons group-hover:text-lightSidebarIconsHover transition duration-75 dark:group-hover:text-darkSidebarIconsHover dark:text-darkSidebarIcons" ></component>
|
|
87
|
+
<component v-if="item.icon" :is="getIcon(item.icon)" class="w-5 h-5 text-lightSidebarIcons group-hover:text-lightSidebarIconsHover transition duration-75 active: dark:group-hover:text-darkSidebarIconsHover dark:text-darkSidebarIcons" ></component>
|
|
88
88
|
|
|
89
89
|
<span class="flex-1 ms-3 text-left rtl:text-right whitespace-nowrap">{{ item.label }}</span>
|
|
90
90
|
<svg :class="{'rotate-180': opened.includes(i) }" class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:class="{
|
|
6
6
|
'px-4': isChild,
|
|
7
7
|
'px-2': !isChild,
|
|
8
|
-
'bg-
|
|
8
|
+
'bg-lightSidebarItemActive dark:bg-darkSidebarItemActive': item.resourceId ?
|
|
9
9
|
($route.params.resourceId === item.resourceId && $route.name === 'resource-list') :
|
|
10
10
|
($route.name === item.path)
|
|
11
11
|
}"
|