admin-lte 4.0.0-alpha1 → 4.0.0-alpha3
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/.bundlewatch.config.json +8 -8
- package/.cache/.eslintcache +1 -0
- package/.cache/.stylelintcache +1 -0
- package/.eslintignore +1 -0
- package/.eslintrc.json +16 -0
- package/.gitpod.yml +1 -1
- package/.idea/AdminLTE.iml +4 -0
- package/.idea/codeStyles/Project.xml +24 -0
- package/.idea/dbnavigator.xml +421 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/jsLibraryMappings.xml +6 -0
- package/.idea/jsLinters/eslint.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/.stylelintrc.json +47 -0
- package/LICENSE +1 -1
- package/README.md +6 -7
- package/dist/assets/img/AdminLTEFullLogo.png +0 -0
- package/dist/css/adminlte.css +2716 -2710
- package/dist/css/adminlte.css.map +1 -1
- package/dist/css/adminlte.min.css +2 -2
- package/dist/css/adminlte.min.css.map +1 -1
- package/dist/css/{rtl/adminlte.rtl.css → adminlte.rtl.css} +2715 -2710
- package/dist/css/adminlte.rtl.css.map +1 -0
- package/dist/css/adminlte.rtl.min.css +7 -0
- package/dist/css/adminlte.rtl.min.css.map +1 -0
- package/dist/js/adminlte.js +204 -233
- package/dist/js/adminlte.js.map +1 -1
- package/dist/js/adminlte.min.js +6 -1
- package/dist/js/adminlte.min.js.map +1 -1
- package/dist/pages/UI/timeline.html +869 -0
- package/dist/pages/docs/browser-support.html +755 -0
- package/dist/pages/docs/color-mode.html +1067 -0
- package/dist/pages/docs/components/main-header.html +1137 -0
- package/dist/pages/docs/components/main-sidebar.html +858 -0
- package/dist/pages/docs/faq.html +743 -0
- package/dist/pages/docs/how-to-contribute.html +783 -0
- package/dist/pages/docs/introduction.html +767 -0
- package/dist/pages/docs/javascript/treeview.html +762 -0
- package/dist/pages/docs/layout.html +788 -0
- package/dist/pages/docs/license.html +746 -0
- package/dist/pages/examples/lockscreen.html +107 -0
- package/dist/pages/examples/login-v2.html +148 -0
- package/dist/pages/examples/login.html +128 -196
- package/dist/pages/examples/register-v2.html +155 -0
- package/dist/pages/examples/register.html +131 -199
- package/dist/pages/forms/general.html +1065 -652
- package/dist/pages/index.html +1320 -0
- package/dist/pages/index2.html +1776 -0
- package/dist/pages/index3.html +1111 -0
- package/dist/pages/layout/collapsed-sidebar.html +766 -0
- package/dist/pages/layout/fixed-complete.html +867 -0
- package/dist/pages/layout/fixed-sidebar.html +749 -654
- package/dist/pages/layout/layout-rtl.html +766 -0
- package/dist/pages/layout/logo-switch.html +433 -0
- package/dist/pages/layout/sidebar-mini.html +766 -0
- package/dist/pages/layout/unfixed-sidebar.html +747 -654
- package/dist/pages/tables/simple.html +1049 -946
- package/dist/pages/widgets/cards.html +974 -713
- package/dist/pages/widgets/info-box.html +1062 -966
- package/dist/pages/widgets/small-box.html +792 -694
- package/index.html +6 -15
- package/package.json +59 -39
- package/src/assets/img/AdminLTEFullLogo.png +0 -0
- package/src/config/assets.config.mjs +8 -0
- package/src/config/astro.config.mjs +19 -0
- package/src/config/postcss.config.mjs +15 -0
- package/src/config/rollup.config.js +20 -0
- package/src/html/.eslintrc.json +24 -0
- package/src/html/.prettierrc.js +11 -0
- package/src/html/.tsconfig.json +4 -0
- package/src/html/components/_head.astro +47 -0
- package/src/html/components/_scripts.astro +51 -0
- package/src/html/components/dashboard/_footer.astro +18 -0
- package/src/html/components/dashboard/_sidenav.astro +553 -0
- package/src/html/components/dashboard/_topbar.astro +213 -0
- package/src/html/components/docs/browser-support.mdx +23 -0
- package/src/html/components/docs/color-mode.mdx +169 -0
- package/src/{partials/dashboard/_topbar.html → html/components/docs/components/main-header.mdx} +67 -67
- package/src/html/components/docs/components/main-sidebar.mdx +129 -0
- package/src/html/components/docs/faq.mdx +11 -0
- package/src/html/components/docs/how-to-contribute.mdx +34 -0
- package/src/html/components/docs/introduction.mdx +60 -0
- package/src/html/components/docs/license.mdx +9 -0
- package/src/html/components/javascript/treeview.mdx +39 -0
- package/src/html/env.d.ts +1 -0
- package/src/html/pages/UI/timeline.astro +221 -0
- package/src/html/pages/docs/browser-support.astro +71 -0
- package/src/html/pages/docs/color-mode.astro +271 -0
- package/src/html/pages/docs/components/main-header.astro +319 -0
- package/src/html/pages/docs/components/main-sidebar.astro +71 -0
- package/src/html/pages/docs/faq.astro +71 -0
- package/src/html/pages/docs/how-to-contribute.astro +71 -0
- package/src/html/pages/docs/introduction.astro +71 -0
- package/src/html/pages/docs/javascript/treeview.astro +71 -0
- package/src/html/pages/docs/layout.astro +120 -0
- package/src/html/pages/docs/license.astro +71 -0
- package/src/html/pages/examples/lockscreen.astro +63 -0
- package/src/html/pages/examples/login-v2.astro +109 -0
- package/src/{pages/examples/login.html → html/pages/examples/login.astro} +40 -22
- package/src/html/pages/examples/register-v2.astro +116 -0
- package/src/{pages/examples/register.html → html/pages/examples/register.astro} +42 -24
- package/src/html/pages/forms/general.astro +624 -0
- package/src/html/pages/index.astro +790 -0
- package/src/html/pages/index2.astro +1345 -0
- package/src/html/pages/index3.astro +513 -0
- package/src/html/pages/layout/collapsed-sidebar.astro +110 -0
- package/src/html/pages/layout/fixed-complete.astro +209 -0
- package/src/html/pages/layout/fixed-sidebar.astro +109 -0
- package/src/html/pages/layout/layout-rtl.astro +109 -0
- package/src/html/pages/layout/logo-switch.astro +212 -0
- package/src/html/pages/layout/sidebar-mini.astro +108 -0
- package/src/html/pages/layout/unfixed-sidebar.astro +107 -0
- package/src/html/pages/tables/simple.astro +472 -0
- package/src/html/pages/widgets/cards.astro +373 -0
- package/src/{pages/widgets/info-box.html → html/pages/widgets/info-box.astro} +110 -60
- package/src/html/pages/widgets/small-box.astro +182 -0
- package/src/scss/_app-content.scss +52 -0
- package/src/scss/_app-footer.scss +15 -0
- package/src/scss/_app-header.scss +26 -0
- package/src/scss/_app-main.scss +17 -0
- package/src/scss/_app-sidebar.scss +603 -0
- package/src/scss/{_wrapper.scss → _app-wrapper.scss} +8 -4
- package/src/scss/_bootstrap-variables.scss +42 -27
- package/src/scss/_callouts.scss +34 -0
- package/src/scss/_cards.scss +54 -224
- package/src/scss/_compact-mode.scss +79 -0
- package/src/scss/_direct-chat.scss +15 -9
- package/src/scss/_docs.scss +4 -0
- package/src/scss/_dropdown.scss +7 -5
- package/src/scss/_info-box.scss +2 -6
- package/src/scss/_miscellaneous.scss +0 -455
- package/src/scss/_mixins.scss +0 -6
- package/src/scss/_root.scss +2 -58
- package/src/scss/_small-box.scss +15 -41
- package/src/scss/_table.scss +0 -50
- package/src/scss/_timeline.scss +120 -0
- package/src/scss/_variables-dark.scss +15 -8
- package/src/scss/_variables.scss +48 -136
- package/src/scss/adminlte.scss +1 -1
- package/src/scss/mixins/_animations.scss +0 -1
- package/src/scss/mixins/_scrollbar.scss +2 -2
- package/src/scss/pages/_lockscreen.scss +74 -0
- package/src/scss/pages/_login_and_register.scss +1 -5
- package/src/scss/parts/_core.scss +9 -15
- package/src/scss/parts/_extra-components.scss +1 -2
- package/src/scss/parts/_pages.scss +1 -0
- package/src/ts/adminlte.ts +0 -2
- package/src/ts/card-widget.ts +57 -66
- package/src/ts/direct-chat.ts +35 -10
- package/src/ts/layout.ts +8 -6
- package/src/ts/push-menu.ts +90 -158
- package/src/ts/treeview.ts +30 -30
- package/src/ts/util/index.ts +14 -12
- package/src/utils/index.js +28 -0
- package/tsconfig.json +11 -3
- package/.stylelintrc +0 -40
- package/CHECKLIST.md +0 -0
- package/dist/css/rtl/adminlte.rtl.css.map +0 -1
- package/dist/css/rtl/adminlte.rtl.min.css +0 -7
- package/dist/css/rtl/adminlte.rtl.min.css.map +0 -1
- package/dist/index.html +0 -1065
- package/dist/index2.html +0 -1629
- package/dist/index3.html +0 -1015
- package/gulpfile.js +0 -315
- package/src/index.html +0 -476
- package/src/index2.html +0 -968
- package/src/index3.html +0 -430
- package/src/pages/forms/general.html +0 -97
- package/src/pages/layout/fixed-sidebar.html +0 -87
- package/src/pages/layout/unfixed-sidebar.html +0 -87
- package/src/pages/tables/simple.html +0 -336
- package/src/pages/widgets/cards.html +0 -143
- package/src/pages/widgets/small-box.html +0 -124
- package/src/partials/_head.html +0 -31
- package/src/partials/_scripts.html +0 -95
- package/src/partials/dashboard/_footer.html +0 -9
- package/src/partials/dashboard/_sidenav.html +0 -244
- package/src/scss/_brand-container.scss +0 -72
- package/src/scss/_content-header.scss +0 -9
- package/src/scss/_content-wrapper.scss +0 -6
- package/src/scss/_content.scss +0 -3
- package/src/scss/_layout-fixed.scss +0 -43
- package/src/scss/_layout-mobile.scss +0 -22
- package/src/scss/_main-footer.scss +0 -28
- package/src/scss/_main-header.scss +0 -40
- package/src/scss/_main-sidebar.scss +0 -63
- package/src/scss/_nav-sidebar.scss +0 -66
- package/src/scss/_products.scss +0 -55
- package/src/scss/_sidebar-close.scss +0 -6
- package/src/scss/_sidebar-collapse.scss +0 -120
- package/src/scss/_sidebar-horizontal.scss +0 -67
- package/src/scss/_sidebar.scss +0 -11
- package/src/scss/_users-list.scss +0 -45
- package/src/scss/mixins/_brand-variant.scss +0 -9
- package/src/scss/mixins/_cards.scss +0 -53
- package/src/scss/mixins/_direct-chat.scss +0 -17
- package/src/scss/mixins/_header-variant.scss +0 -22
- package/src/scss/mixins/_nav-treeview-dark.scss +0 -87
- package/src/scss/mixins/_nav-treeview-light.scss +0 -89
- package/src/scss/mixins/_sidebar-color.scss +0 -9
package/index.html
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
-
<html
|
|
2
|
+
<html>
|
|
3
3
|
<head>
|
|
4
|
-
<meta charset=
|
|
5
|
-
<meta http-equiv=
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
4
|
+
<meta charset='utf-8'>
|
|
5
|
+
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
|
7
6
|
<title>AdminLTE v4</title>
|
|
7
|
+
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
|
-
|
|
11
|
-
<a href="https://github.com/ColorlibHQ/AdminLTE/tree/v4-dev">Check once</a>
|
|
12
|
-
<script>
|
|
13
|
-
/**
|
|
14
|
-
* TODO: Uncomment Before Alpha Release of AdminLTE v4
|
|
15
|
-
* Will redirect properly
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
// window.location = './dist/index.html';
|
|
19
|
-
</script>
|
|
10
|
+
<script>window.location.href = './dist/pages/index.html'</script>
|
|
20
11
|
</body>
|
|
21
|
-
</html>
|
|
12
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,19 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "admin-lte",
|
|
3
3
|
"description": "Responsive open source admin dashboard and control panel.",
|
|
4
|
-
"version": "4.0.0-
|
|
4
|
+
"version": "4.0.0-alpha3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colorlib <https://colorlib.com>",
|
|
7
7
|
"main": "dist/js/adminlte.min.js",
|
|
8
8
|
"scripts": {
|
|
9
|
+
"dev": "npm-run-all --parallel watch docs-serve",
|
|
10
|
+
"css": "npm-run-all css-compile css-prefix css-rtl css-minify",
|
|
11
|
+
"css-compile": "sass --style expanded --load-path=\"node_modules\" --source-map --embed-sources --no-error-css src/scss/:dist/css/",
|
|
12
|
+
"css-rtl": "cross-env NODE_ENV=RTL postcss --config src/config/postcss.config.mjs --dir \"dist/css\" --ext \".rtl.css\" \"dist/css/*.css\" \"!dist/css/*.min.css\" \"!dist/css/*.rtl.css\"",
|
|
13
|
+
"css-lint": "stylelint \"src/scss/**/*.scss\" --cache --cache-location .cache/.stylelintcache --rd",
|
|
14
|
+
"css-minify": "npm-run-all --aggregate-output --parallel css-minify-*",
|
|
15
|
+
"css-minify-main": "cleancss -O1 --format breakWith=lf --with-rebase --source-map --source-map-inline-sources --output dist/css/ --batch --batch-suffix \".min\" \"dist/css/*.css\" \"!dist/css/*.min.css\" \"!dist/css/*rtl*.css\"",
|
|
16
|
+
"css-minify-rtl": "cleancss -O1 --format breakWith=lf --with-rebase --source-map --source-map-inline-sources --output dist/css/ --batch --batch-suffix \".min\" \"dist/css/*rtl.css\" \"!dist/css/*.min.css\"",
|
|
17
|
+
"css-prefix": "postcss --config src/config/postcss.config.mjs --replace \"dist/css/*.css\" \"!dist/css/*.rtl*.css\" \"!dist/css/*.min.css\"",
|
|
18
|
+
"js": "npm-run-all js-compile js-minify",
|
|
19
|
+
"js-compile": "rollup --config src/config/rollup.config.js --sourcemap",
|
|
20
|
+
"js-lint": "eslint --cache --cache-location .cache/.eslintcache --report-unused-disable-directives .",
|
|
21
|
+
"js-minify": "terser --compress passes=2 --mangle --comments \"/^!/\" --source-map \"content=dist/js/adminlte.js.map,includeSources,url=adminlte.min.js.map\" --output dist/js/adminlte.min.js dist/js/adminlte.js",
|
|
9
22
|
"bundlewatch": "bundlewatch --config .bundlewatch.config.json",
|
|
10
23
|
"lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
|
|
11
|
-
"docs-compile": "
|
|
12
|
-
"docs-lint": "
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
24
|
+
"docs-compile": "astro --config src/config/astro.config.mjs build",
|
|
25
|
+
"docs-lint": "astro --config src/config/astro.config.mjs check",
|
|
26
|
+
"docs-format": "js-beautify --file \"dist/pages/**/*.html\"",
|
|
27
|
+
"docs-serve": "astro --config src/config/astro.config.mjs dev --open",
|
|
28
|
+
"assets": "node src/config/assets.config.mjs",
|
|
29
|
+
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel js-lint css-lint docs-lint lockfile-lint",
|
|
30
|
+
"compile": "npm-run-all docs-compile docs-format assets css js",
|
|
31
|
+
"production": "npm-run-all lint compile",
|
|
32
|
+
"watch": "concurrently \"npm:watch-*\"",
|
|
33
|
+
"watch-css-main": "nodemon --watch src/scss/ --ext scss --exec \"npm-run-all css-lint css-compile\"",
|
|
34
|
+
"watch-css-dist": "nodemon --watch dist/css/ --ext css --ignore \"dist/css/*.rtl.*\" --exec \"npm run css-rtl\"",
|
|
35
|
+
"watch-js-main": "nodemon --watch src/ts/ --ext ts --exec \"npm-run-all js-lint js-compile\"",
|
|
36
|
+
"watch-assets": "nodemon --watch src/assets/ --exec \"npm run assets\""
|
|
17
37
|
},
|
|
18
38
|
"keywords": [
|
|
19
39
|
"css",
|
|
@@ -37,39 +57,39 @@
|
|
|
37
57
|
"url": "https://github.com/ColorlibHQ/AdminLTE/issues"
|
|
38
58
|
},
|
|
39
59
|
"devDependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
43
|
-
"@typescript-eslint/parser": "^
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
60
|
+
"@astrojs/mdx": "^0.19.7",
|
|
61
|
+
"@rollup/plugin-typescript": "^11.1.2",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^6.2.1",
|
|
63
|
+
"@typescript-eslint/parser": "^6.2.1",
|
|
64
|
+
"astro": "^2.10.1",
|
|
65
|
+
"autoprefixer": "^10.4.14",
|
|
66
|
+
"bootstrap": "^5.3.1",
|
|
47
67
|
"bundlewatch": "^0.3.3",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
68
|
+
"clean-css-cli": "^5.6.2",
|
|
69
|
+
"concurrently": "^8.2.0",
|
|
70
|
+
"cross-env": "^7.0.3",
|
|
71
|
+
"eslint": "^8.46.0",
|
|
50
72
|
"eslint-config-xo": "^0.43.1",
|
|
51
|
-
"eslint-config-xo-typescript": "^0.
|
|
52
|
-
"eslint-plugin-
|
|
53
|
-
"eslint-plugin-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"tslib": "^2.5.0",
|
|
73
|
-
"typescript": "^4.9.4"
|
|
73
|
+
"eslint-config-xo-typescript": "^1.0.1",
|
|
74
|
+
"eslint-plugin-astro": "^0.28.0",
|
|
75
|
+
"eslint-plugin-import": "^2.28.0",
|
|
76
|
+
"eslint-plugin-unicorn": "^48.0.1",
|
|
77
|
+
"fs-extra": "^11.1.1",
|
|
78
|
+
"js-beautify": "^1.14.9",
|
|
79
|
+
"lockfile-lint": "^4.12.0",
|
|
80
|
+
"nodemon": "^3.0.1",
|
|
81
|
+
"npm-run-all": "^4.1.5",
|
|
82
|
+
"postcss": "^8.4.27",
|
|
83
|
+
"postcss-cli": "^10.1.0",
|
|
84
|
+
"prettier": "^3.0.1",
|
|
85
|
+
"prettier-plugin-astro": "^0.11.0",
|
|
86
|
+
"rollup": "^3.27.2",
|
|
87
|
+
"rtlcss": "^4.1.0",
|
|
88
|
+
"sass": "^1.64.2",
|
|
89
|
+
"stylelint": "^15.10.2",
|
|
90
|
+
"stylelint-config-twbs-bootstrap": "^11.0.1",
|
|
91
|
+
"terser": "^5.19.2",
|
|
92
|
+
"tslib": "^2.6.1",
|
|
93
|
+
"typescript": "^5.1.6"
|
|
74
94
|
}
|
|
75
95
|
}
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineConfig } from 'astro/config'
|
|
2
|
+
import mdx from '@astrojs/mdx'
|
|
3
|
+
|
|
4
|
+
// https://astro.build/config
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
build: {
|
|
7
|
+
// Example: Generate `page.html` instead of `page/index.html` during build.
|
|
8
|
+
format: 'file'
|
|
9
|
+
},
|
|
10
|
+
markdown: {
|
|
11
|
+
shikiConfig: {
|
|
12
|
+
theme: 'dark-plus'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
integrations: [mdx()],
|
|
16
|
+
srcDir: './src/html',
|
|
17
|
+
cacheDir: './dist/pages',
|
|
18
|
+
outDir: './dist/pages'
|
|
19
|
+
})
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const typescript = require('@rollup/plugin-typescript')
|
|
2
|
+
const pkg = require('../../package.json')
|
|
3
|
+
|
|
4
|
+
const year = new Date().getFullYear()
|
|
5
|
+
const banner = `/*!
|
|
6
|
+
* AdminLTE v${pkg.version} (${pkg.homepage})
|
|
7
|
+
* Copyright 2014-${year} ${pkg.author}
|
|
8
|
+
* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
|
|
9
|
+
*/`
|
|
10
|
+
|
|
11
|
+
module.exports = {
|
|
12
|
+
input: 'src/ts/adminlte.ts',
|
|
13
|
+
output: {
|
|
14
|
+
file: 'dist/js/adminlte.js',
|
|
15
|
+
format: 'umd',
|
|
16
|
+
banner,
|
|
17
|
+
name: 'adminlte'
|
|
18
|
+
},
|
|
19
|
+
plugins: [typescript()]
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"extends": [
|
|
4
|
+
"plugin:astro/recommended"
|
|
5
|
+
],
|
|
6
|
+
"overrides": [
|
|
7
|
+
{
|
|
8
|
+
// Define the configuration for `.astro` file.
|
|
9
|
+
"files": ["*.astro"],
|
|
10
|
+
// Allows Astro components to be parsed.
|
|
11
|
+
"parser": "astro-eslint-parser",
|
|
12
|
+
// Parse the script in `.astro` as TypeScript by adding the following configuration.
|
|
13
|
+
// It's the setting you need when using TypeScript.
|
|
14
|
+
"parserOptions": {
|
|
15
|
+
"parser": "@typescript-eslint/parser",
|
|
16
|
+
"extraFileExtensions": [".astro"]
|
|
17
|
+
},
|
|
18
|
+
"rules": {
|
|
19
|
+
// override/add rules settings here, such as:
|
|
20
|
+
// "astro/no-set-html-directive": "error"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
const { title, path, isRtl } = Astro.props;
|
|
3
|
+
const cssPath = isRtl ? ".rtl" : "";
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
7
|
+
<title>{title}</title>
|
|
8
|
+
<!--begin::Primary Meta Tags-->
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
10
|
+
<meta name="title" content={title} />
|
|
11
|
+
<meta name="author" content="ColorlibHQ" />
|
|
12
|
+
<meta
|
|
13
|
+
name="description"
|
|
14
|
+
content="AdminLTE is a Free Bootstrap 5 Admin Dashboard, 30 example pages using Vanilla JS."
|
|
15
|
+
/>
|
|
16
|
+
<meta
|
|
17
|
+
name="keywords"
|
|
18
|
+
content="bootstrap 5, bootstrap, bootstrap 5 admin dashboard, bootstrap 5 dashboard, bootstrap 5 charts, bootstrap 5 calendar, bootstrap 5 datepicker, bootstrap 5 tables, bootstrap 5 datatable, vanilla js datatable, colorlibhq, colorlibhq dashboard, colorlibhq admin dashboard"
|
|
19
|
+
/>
|
|
20
|
+
<!--end::Primary Meta Tags-->
|
|
21
|
+
<!--begin::Fonts-->
|
|
22
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
23
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
24
|
+
<link
|
|
25
|
+
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap"
|
|
26
|
+
rel="stylesheet"
|
|
27
|
+
/>
|
|
28
|
+
<!--end::Fonts-->
|
|
29
|
+
<!--begin::Third Party Plugin(OverlayScrollbars)-->
|
|
30
|
+
<link
|
|
31
|
+
rel="stylesheet"
|
|
32
|
+
href="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.1.0/styles/overlayscrollbars.min.css"
|
|
33
|
+
integrity="sha256-LWLZPJ7X1jJLI5OG5695qDemW1qQ7lNdbTfQ64ylbUY="
|
|
34
|
+
crossorigin="anonymous"
|
|
35
|
+
/>
|
|
36
|
+
<!--end::Third Party Plugin(OverlayScrollbars)-->
|
|
37
|
+
<!--begin::Third Party Plugin(Bootstrap Icons)-->
|
|
38
|
+
<link
|
|
39
|
+
rel="stylesheet"
|
|
40
|
+
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.min.css"
|
|
41
|
+
integrity="sha256-BicZsQAhkGHIoR//IB2amPN5SrRb3fHB8tFsnqRAwnk="
|
|
42
|
+
crossorigin="anonymous"
|
|
43
|
+
>
|
|
44
|
+
<!--end::Third Party Plugin(Bootstrap Icons)-->
|
|
45
|
+
<!--begin::Required Plugin(AdminLTE)-->
|
|
46
|
+
<link rel="stylesheet" href={path + "/css/adminlte" + cssPath + ".css"} />
|
|
47
|
+
<!--end::Required Plugin(AdminLTE)-->
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
const { path } = Astro.props;
|
|
3
|
+
const adminlteJsUrl = path + "/js/adminlte.js";
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!--begin::Third Party Plugin(OverlayScrollbars)-->
|
|
7
|
+
<script
|
|
8
|
+
src="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.1.0/browser/overlayscrollbars.browser.es6.min.js"
|
|
9
|
+
integrity="sha256-NRZchBuHZWSXldqrtAOeCZpucH/1n1ToJ3C8mSK95NU="
|
|
10
|
+
crossorigin="anonymous"
|
|
11
|
+
></script>
|
|
12
|
+
<!--end::Third Party Plugin(OverlayScrollbars)--><!--begin::Required Plugin(popperjs for Bootstrap 5)-->
|
|
13
|
+
<script
|
|
14
|
+
src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.7/dist/umd/popper.min.js"
|
|
15
|
+
integrity="sha384-zYPOMqeu1DAVkHiLqWBUTcbYfZ8osu1Nd6Z89ify25QV9guujx43ITvfi12/QExE"
|
|
16
|
+
crossorigin="anonymous"
|
|
17
|
+
></script>
|
|
18
|
+
<!--end::Required Plugin(popperjs for Bootstrap 5)--><!--begin::Required Plugin(Bootstrap 5)-->
|
|
19
|
+
<script
|
|
20
|
+
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js"
|
|
21
|
+
integrity="sha384-Y4oOpwW3duJdCWv5ly8SCFYWqFDsfob/3GkgExXKV4idmbt98QcxXYs9UoXAB7BZ"
|
|
22
|
+
crossorigin="anonymous"
|
|
23
|
+
></script>
|
|
24
|
+
<!--end::Required Plugin(Bootstrap 5)--><!--begin::Required Plugin(AdminLTE)-->
|
|
25
|
+
<script src={adminlteJsUrl} is:inline></script>
|
|
26
|
+
<!--end::Required Plugin(AdminLTE)--><!--begin::OverlayScrollbars Configure-->
|
|
27
|
+
<script is:inline>
|
|
28
|
+
const SELECTOR_SIDEBAR_WRAPPER = ".sidebar-wrapper";
|
|
29
|
+
const Default = {
|
|
30
|
+
scrollbarTheme: "os-theme-light",
|
|
31
|
+
scrollbarAutoHide: "leave",
|
|
32
|
+
scrollbarClickScroll: true,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
36
|
+
const sidebarWrapper = document.querySelector(SELECTOR_SIDEBAR_WRAPPER);
|
|
37
|
+
if (
|
|
38
|
+
sidebarWrapper &&
|
|
39
|
+
typeof OverlayScrollbarsGlobal?.OverlayScrollbars !== "undefined"
|
|
40
|
+
) {
|
|
41
|
+
OverlayScrollbarsGlobal.OverlayScrollbars(sidebarWrapper, {
|
|
42
|
+
scrollbars: {
|
|
43
|
+
theme: Default.scrollbarTheme,
|
|
44
|
+
autoHide: Default.scrollbarAutoHide,
|
|
45
|
+
clickScroll: Default.scrollbarClickScroll,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
</script>
|
|
51
|
+
<!--end::OverlayScrollbars Configure-->
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
const year = new Date().getFullYear();
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!--begin::Footer-->
|
|
6
|
+
<footer class="app-footer">
|
|
7
|
+
<!--begin::To the end-->
|
|
8
|
+
<div class="float-end d-none d-sm-inline">Anything you want</div>
|
|
9
|
+
<!--end::To the end-->
|
|
10
|
+
<!--begin::Copyright-->
|
|
11
|
+
<strong>
|
|
12
|
+
Copyright © 2014-{year}
|
|
13
|
+
<a href="https://adminlte.io">AdminLTE.io</a>.
|
|
14
|
+
</strong>
|
|
15
|
+
All rights reserved.
|
|
16
|
+
<!--end::Copyright-->
|
|
17
|
+
</footer>
|
|
18
|
+
<!--end::Footer-->
|