adminator-admin-dashboard 2.7.1 → 2.8.0
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/CHANGELOG.md +50 -0
- package/README.md +40 -12
- package/dist/main.js +1771 -2565
- package/dist/main.js.map +1 -1
- package/package.json +22 -34
- package/src/assets/scripts/app.js +3 -3
- package/src/assets/scripts/utils/theme.js +4 -2
- package/src/assets/scripts/vectorMaps/index.js +5 -5
- package/dist/55b07f26c86c8e3d3754.svg +0 -1
- package/dist/9fad440d8ee7a949a9a9.svg +0 -1
- package/dist/test.html +0 -91
- package/src/assets/scripts/app.ts +0 -757
- package/src/assets/scripts/components/Chart.ts +0 -1350
- package/src/assets/scripts/components/Sidebar.ts +0 -388
- package/src/assets/scripts/datatable/index.ts +0 -707
- package/src/assets/scripts/datepicker/index.ts +0 -699
- package/src/assets/scripts/ui/index.ts +0 -740
- package/src/assets/scripts/utils/date.ts +0 -363
- package/src/assets/scripts/utils/dom.ts +0 -513
- package/src/assets/scripts/utils/theme.ts +0 -313
- package/src/assets/scripts/vectorMaps/index.ts +0 -542
- package/src/test.html +0 -96
- package/src/types/index.ts +0 -236
- /package/dist/assets/{c1e38fd9e0e74ba58f7a2b77ef29fdd3.svg → fontawesome-webfont.svg} +0 -0
- /package/dist/assets/{f0fc8c798eac5636249c4ea287832422.svg → themify.svg} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adminator-admin-dashboard",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Modern jQuery-free Bootstrap 5 Admin Dashboard Template with Dark Mode",
|
|
6
6
|
"main": "dist/index.html",
|
|
@@ -52,67 +52,55 @@
|
|
|
52
52
|
"release:minified": "npm run clean && NODE_ENV=production MINIFY=true cross-env webpack",
|
|
53
53
|
"release:unminified": "npm run clean && NODE_ENV=production MINIFY=false cross-env webpack",
|
|
54
54
|
"preview": "cross-env webpack server",
|
|
55
|
-
"type-check": "tsc --noEmit",
|
|
56
|
-
"type-check:watch": "tsc --noEmit --watch",
|
|
57
|
-
"build:types": "tsc --emitDeclarationOnly --outDir types",
|
|
58
55
|
"lint:js": "eslint ./src ./webpack ./*.js -f table --ext .js --ext .jsx",
|
|
59
|
-
"lint:ts": "eslint ./src ./webpack ./*.ts -f table --ext .ts --ext .tsx",
|
|
60
56
|
"lint:scss": "stylelint ./src/**/*.scss",
|
|
61
|
-
"lint": "npm run lint:js && npm run lint:
|
|
62
|
-
"prepublishOnly": "npm run
|
|
57
|
+
"lint": "npm run lint:js && npm run lint:scss",
|
|
58
|
+
"prepublishOnly": "npm run lint && npm run build",
|
|
63
59
|
"postpublish": "echo 'Package published successfully! View at: https://www.npmjs.com/package/adminator-admin-dashboard'"
|
|
64
60
|
},
|
|
65
61
|
"devDependencies": {
|
|
66
|
-
"@babel/core": "^7.
|
|
67
|
-
"@babel/eslint-parser": "^7.
|
|
68
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
69
|
-
"@babel/preset-env": "^7.
|
|
70
|
-
"@
|
|
71
|
-
"@eslint/js": "^9.29.0",
|
|
72
|
-
"@types/lodash": "^4.17.20",
|
|
73
|
-
"@types/masonry-layout": "^4.2.8",
|
|
74
|
-
"@types/node": "^24.0.12",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^8.36.0",
|
|
76
|
-
"@typescript-eslint/parser": "^8.36.0",
|
|
62
|
+
"@babel/core": "^7.28.0",
|
|
63
|
+
"@babel/eslint-parser": "^7.28.0",
|
|
64
|
+
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
65
|
+
"@babel/preset-env": "^7.28.0",
|
|
66
|
+
"@eslint/js": "^9.33.0",
|
|
77
67
|
"babel-loader": "^10.0.0",
|
|
78
68
|
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
79
69
|
"copy-webpack-plugin": "^13.0.0",
|
|
80
|
-
"cross-env": "^
|
|
70
|
+
"cross-env": "^10.0.0",
|
|
81
71
|
"css-loader": "^7.1.2",
|
|
82
72
|
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
83
|
-
"eslint": "^9.
|
|
73
|
+
"eslint": "^9.33.0",
|
|
84
74
|
"eslint-formatter-table": "^7.32.1",
|
|
85
|
-
"globals": "^16.
|
|
75
|
+
"globals": "^16.3.0",
|
|
86
76
|
"html-webpack-plugin": "^5.6.3",
|
|
87
|
-
"mini-css-extract-plugin": "^2.9.
|
|
77
|
+
"mini-css-extract-plugin": "^2.9.3",
|
|
88
78
|
"postcss": "^8.5.6",
|
|
89
79
|
"postcss-loader": "^8.1.1",
|
|
90
|
-
"postcss-preset-env": "^10.2.
|
|
91
|
-
"sass": "^1.
|
|
80
|
+
"postcss-preset-env": "^10.2.4",
|
|
81
|
+
"sass": "^1.90.0",
|
|
92
82
|
"sass-loader": "^16.0.5",
|
|
93
83
|
"shx": "^0.4.0",
|
|
94
84
|
"style-loader": "^4.0.0",
|
|
95
|
-
"stylelint": "^16.
|
|
85
|
+
"stylelint": "^16.23.1",
|
|
96
86
|
"stylelint-config-standard": "^38.0.0",
|
|
97
|
-
"
|
|
98
|
-
"typescript": "^5.8.3",
|
|
99
|
-
"webpack": "^5.99.9",
|
|
87
|
+
"webpack": "^5.101.0",
|
|
100
88
|
"webpack-cli": "^6.0.1",
|
|
101
89
|
"webpack-dashboard": "^3.3.8",
|
|
102
90
|
"webpack-dev-server": "^5.2.2"
|
|
103
91
|
},
|
|
104
92
|
"dependencies": {
|
|
105
|
-
"@
|
|
106
|
-
"@fullcalendar/
|
|
107
|
-
"@fullcalendar/
|
|
108
|
-
"@fullcalendar/
|
|
109
|
-
"@fullcalendar/
|
|
93
|
+
"@babel/runtime": "^7.28.2",
|
|
94
|
+
"@fullcalendar/core": "^6.1.19",
|
|
95
|
+
"@fullcalendar/daygrid": "^6.1.19",
|
|
96
|
+
"@fullcalendar/interaction": "^6.1.19",
|
|
97
|
+
"@fullcalendar/list": "^6.1.19",
|
|
98
|
+
"@fullcalendar/timegrid": "^6.1.19",
|
|
110
99
|
"@popperjs/core": "^2.11.8",
|
|
111
100
|
"bootstrap": "^5.3.7",
|
|
112
101
|
"brand-colors": "^2.1.1",
|
|
113
102
|
"chart.js": "^4.5.0",
|
|
114
103
|
"dayjs": "^1.11.13",
|
|
115
|
-
"file-loader": "^6.2.0",
|
|
116
104
|
"jsvectormap": "^1.6.0",
|
|
117
105
|
"load-google-maps-api": "^2.0.2",
|
|
118
106
|
"lodash": "^4.17.21",
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
// Bootstrap JS components removed to eliminate jQuery dependency
|
|
8
8
|
import { DOM } from './utils/dom';
|
|
9
9
|
import DateUtils from './utils/date';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import ThemeManager from './utils/theme';
|
|
11
|
+
import Sidebar from './components/Sidebar';
|
|
12
|
+
import ChartComponent from './components/Chart';
|
|
13
13
|
|
|
14
14
|
// Import styles
|
|
15
15
|
import '../styles/index.scss';
|
|
@@ -40,7 +40,9 @@ const Theme = {
|
|
|
40
40
|
}
|
|
41
41
|
try {
|
|
42
42
|
localStorage.setItem(THEME_KEY, theme);
|
|
43
|
-
} catch
|
|
43
|
+
} catch {
|
|
44
|
+
// Ignore errors
|
|
45
|
+
}
|
|
44
46
|
window.dispatchEvent(new CustomEvent('adminator:themeChanged', { detail: { theme } }));
|
|
45
47
|
},
|
|
46
48
|
toggle() {
|
|
@@ -50,7 +52,7 @@ const Theme = {
|
|
|
50
52
|
current() {
|
|
51
53
|
try {
|
|
52
54
|
return localStorage.getItem(THEME_KEY) || 'light';
|
|
53
|
-
} catch
|
|
55
|
+
} catch {
|
|
54
56
|
return 'light';
|
|
55
57
|
}
|
|
56
58
|
},
|
|
@@ -24,7 +24,7 @@ export default (function () {
|
|
|
24
24
|
if (mapInstance) {
|
|
25
25
|
try {
|
|
26
26
|
mapInstance.destroy();
|
|
27
|
-
} catch
|
|
27
|
+
} catch {
|
|
28
28
|
// Map instance cleanup
|
|
29
29
|
}
|
|
30
30
|
mapInstance = null;
|
|
@@ -166,7 +166,7 @@ export default (function () {
|
|
|
166
166
|
tooltip.text(`${regionName}${value ? `: ${ value}` : ''}`);
|
|
167
167
|
},
|
|
168
168
|
|
|
169
|
-
onLoaded(
|
|
169
|
+
onLoaded() {
|
|
170
170
|
// Map loaded successfully
|
|
171
171
|
},
|
|
172
172
|
});
|
|
@@ -174,7 +174,7 @@ export default (function () {
|
|
|
174
174
|
// Store instance for theme updates
|
|
175
175
|
worldMapContainer.mapInstance = mapInstance;
|
|
176
176
|
|
|
177
|
-
} catch
|
|
177
|
+
} catch {
|
|
178
178
|
// Error initializing JSVectorMap
|
|
179
179
|
|
|
180
180
|
// Fallback: show a simple message
|
|
@@ -238,7 +238,7 @@ export default (function () {
|
|
|
238
238
|
container.style.backgroundColor = colors.backgroundColor;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
} catch
|
|
241
|
+
} catch {
|
|
242
242
|
// Theme update failed, reinitializing map
|
|
243
243
|
vectorMapInit();
|
|
244
244
|
}
|
|
@@ -261,7 +261,7 @@ export default (function () {
|
|
|
261
261
|
if (mapInstance) {
|
|
262
262
|
try {
|
|
263
263
|
mapInstance.destroy();
|
|
264
|
-
} catch
|
|
264
|
+
} catch {
|
|
265
265
|
// Map cleanup on unload
|
|
266
266
|
}
|
|
267
267
|
mapInstance = null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "assets/c1e38fd9e0e74ba58f7a2b77ef29fdd3.svg";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "assets/f0fc8c798eac5636249c4ea287832422.svg";
|
package/dist/test.html
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
|
|
6
|
-
<title>Test</title>
|
|
7
|
-
<style>
|
|
8
|
-
#loader {
|
|
9
|
-
transition: all 0.3s ease-in-out;
|
|
10
|
-
opacity: 1;
|
|
11
|
-
visibility: visible;
|
|
12
|
-
position: fixed;
|
|
13
|
-
height: 100vh;
|
|
14
|
-
width: 100%;
|
|
15
|
-
background: #fff;
|
|
16
|
-
z-index: 90000;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
#loader.fadeOut {
|
|
20
|
-
opacity: 0;
|
|
21
|
-
visibility: hidden;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
.spinner {
|
|
27
|
-
width: 40px;
|
|
28
|
-
height: 40px;
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: calc(50% - 20px);
|
|
31
|
-
left: calc(50% - 20px);
|
|
32
|
-
background-color: #333;
|
|
33
|
-
border-radius: 100%;
|
|
34
|
-
-webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
|
|
35
|
-
animation: sk-scaleout 1.0s infinite ease-in-out;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@-webkit-keyframes sk-scaleout {
|
|
39
|
-
0% { -webkit-transform: scale(0) }
|
|
40
|
-
100% {
|
|
41
|
-
-webkit-transform: scale(1.0);
|
|
42
|
-
opacity: 0;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@keyframes sk-scaleout {
|
|
47
|
-
0% {
|
|
48
|
-
-webkit-transform: scale(0);
|
|
49
|
-
transform: scale(0);
|
|
50
|
-
} 100% {
|
|
51
|
-
-webkit-transform: scale(1.0);
|
|
52
|
-
transform: scale(1.0);
|
|
53
|
-
opacity: 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
</style>
|
|
57
|
-
<script defer="defer" src="main.js"></script></head>
|
|
58
|
-
<body class="app">
|
|
59
|
-
<div id="loader">
|
|
60
|
-
<div class="spinner"></div>
|
|
61
|
-
</div>
|
|
62
|
-
|
|
63
|
-
<script>
|
|
64
|
-
window.addEventListener('load', function load() {
|
|
65
|
-
const loader = document.getElementById('loader');
|
|
66
|
-
setTimeout(function() {
|
|
67
|
-
loader.classList.add('fadeOut');
|
|
68
|
-
}, 300);
|
|
69
|
-
});
|
|
70
|
-
</script>
|
|
71
|
-
<div class="page-container">
|
|
72
|
-
|
|
73
|
-
<main class="main-content bgc-grey-100">
|
|
74
|
-
<div id="mainContent">
|
|
75
|
-
<div class="full-container">
|
|
76
|
-
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="Tooltip on top">
|
|
77
|
-
Tooltip on top
|
|
78
|
-
</button>
|
|
79
|
-
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="Tooltip on top">
|
|
80
|
-
Tooltip on top
|
|
81
|
-
</button>
|
|
82
|
-
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</main>
|
|
86
|
-
<footer class="bdT ta-c p-30 lh-0 fsz-sm c-grey-600">
|
|
87
|
-
<span>Copyright © 2025 Designed by <a href="https://colorlib.com" target="_blank" rel="nofollow noopener noreferrer" title="Colorlib">Colorlib</a>. All rights reserved.</span>
|
|
88
|
-
</footer>
|
|
89
|
-
</div>
|
|
90
|
-
</body>
|
|
91
|
-
</html>
|