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.
Files changed (200) hide show
  1. package/.bundlewatch.config.json +8 -8
  2. package/.cache/.eslintcache +1 -0
  3. package/.cache/.stylelintcache +1 -0
  4. package/.eslintignore +1 -0
  5. package/.eslintrc.json +16 -0
  6. package/.gitpod.yml +1 -1
  7. package/.idea/AdminLTE.iml +4 -0
  8. package/.idea/codeStyles/Project.xml +24 -0
  9. package/.idea/dbnavigator.xml +421 -0
  10. package/.idea/git_toolbox_prj.xml +15 -0
  11. package/.idea/jsLibraryMappings.xml +6 -0
  12. package/.idea/jsLinters/eslint.xml +6 -0
  13. package/.idea/vcs.xml +6 -0
  14. package/.stylelintrc.json +47 -0
  15. package/LICENSE +1 -1
  16. package/README.md +6 -7
  17. package/dist/assets/img/AdminLTEFullLogo.png +0 -0
  18. package/dist/css/adminlte.css +2716 -2710
  19. package/dist/css/adminlte.css.map +1 -1
  20. package/dist/css/adminlte.min.css +2 -2
  21. package/dist/css/adminlte.min.css.map +1 -1
  22. package/dist/css/{rtl/adminlte.rtl.css → adminlte.rtl.css} +2715 -2710
  23. package/dist/css/adminlte.rtl.css.map +1 -0
  24. package/dist/css/adminlte.rtl.min.css +7 -0
  25. package/dist/css/adminlte.rtl.min.css.map +1 -0
  26. package/dist/js/adminlte.js +204 -233
  27. package/dist/js/adminlte.js.map +1 -1
  28. package/dist/js/adminlte.min.js +6 -1
  29. package/dist/js/adminlte.min.js.map +1 -1
  30. package/dist/pages/UI/timeline.html +869 -0
  31. package/dist/pages/docs/browser-support.html +755 -0
  32. package/dist/pages/docs/color-mode.html +1067 -0
  33. package/dist/pages/docs/components/main-header.html +1137 -0
  34. package/dist/pages/docs/components/main-sidebar.html +858 -0
  35. package/dist/pages/docs/faq.html +743 -0
  36. package/dist/pages/docs/how-to-contribute.html +783 -0
  37. package/dist/pages/docs/introduction.html +767 -0
  38. package/dist/pages/docs/javascript/treeview.html +762 -0
  39. package/dist/pages/docs/layout.html +788 -0
  40. package/dist/pages/docs/license.html +746 -0
  41. package/dist/pages/examples/lockscreen.html +107 -0
  42. package/dist/pages/examples/login-v2.html +148 -0
  43. package/dist/pages/examples/login.html +128 -196
  44. package/dist/pages/examples/register-v2.html +155 -0
  45. package/dist/pages/examples/register.html +131 -199
  46. package/dist/pages/forms/general.html +1065 -652
  47. package/dist/pages/index.html +1320 -0
  48. package/dist/pages/index2.html +1776 -0
  49. package/dist/pages/index3.html +1111 -0
  50. package/dist/pages/layout/collapsed-sidebar.html +766 -0
  51. package/dist/pages/layout/fixed-complete.html +867 -0
  52. package/dist/pages/layout/fixed-sidebar.html +749 -654
  53. package/dist/pages/layout/layout-rtl.html +766 -0
  54. package/dist/pages/layout/logo-switch.html +433 -0
  55. package/dist/pages/layout/sidebar-mini.html +766 -0
  56. package/dist/pages/layout/unfixed-sidebar.html +747 -654
  57. package/dist/pages/tables/simple.html +1049 -946
  58. package/dist/pages/widgets/cards.html +974 -713
  59. package/dist/pages/widgets/info-box.html +1062 -966
  60. package/dist/pages/widgets/small-box.html +792 -694
  61. package/index.html +6 -15
  62. package/package.json +59 -39
  63. package/src/assets/img/AdminLTEFullLogo.png +0 -0
  64. package/src/config/assets.config.mjs +8 -0
  65. package/src/config/astro.config.mjs +19 -0
  66. package/src/config/postcss.config.mjs +15 -0
  67. package/src/config/rollup.config.js +20 -0
  68. package/src/html/.eslintrc.json +24 -0
  69. package/src/html/.prettierrc.js +11 -0
  70. package/src/html/.tsconfig.json +4 -0
  71. package/src/html/components/_head.astro +47 -0
  72. package/src/html/components/_scripts.astro +51 -0
  73. package/src/html/components/dashboard/_footer.astro +18 -0
  74. package/src/html/components/dashboard/_sidenav.astro +553 -0
  75. package/src/html/components/dashboard/_topbar.astro +213 -0
  76. package/src/html/components/docs/browser-support.mdx +23 -0
  77. package/src/html/components/docs/color-mode.mdx +169 -0
  78. package/src/{partials/dashboard/_topbar.html → html/components/docs/components/main-header.mdx} +67 -67
  79. package/src/html/components/docs/components/main-sidebar.mdx +129 -0
  80. package/src/html/components/docs/faq.mdx +11 -0
  81. package/src/html/components/docs/how-to-contribute.mdx +34 -0
  82. package/src/html/components/docs/introduction.mdx +60 -0
  83. package/src/html/components/docs/license.mdx +9 -0
  84. package/src/html/components/javascript/treeview.mdx +39 -0
  85. package/src/html/env.d.ts +1 -0
  86. package/src/html/pages/UI/timeline.astro +221 -0
  87. package/src/html/pages/docs/browser-support.astro +71 -0
  88. package/src/html/pages/docs/color-mode.astro +271 -0
  89. package/src/html/pages/docs/components/main-header.astro +319 -0
  90. package/src/html/pages/docs/components/main-sidebar.astro +71 -0
  91. package/src/html/pages/docs/faq.astro +71 -0
  92. package/src/html/pages/docs/how-to-contribute.astro +71 -0
  93. package/src/html/pages/docs/introduction.astro +71 -0
  94. package/src/html/pages/docs/javascript/treeview.astro +71 -0
  95. package/src/html/pages/docs/layout.astro +120 -0
  96. package/src/html/pages/docs/license.astro +71 -0
  97. package/src/html/pages/examples/lockscreen.astro +63 -0
  98. package/src/html/pages/examples/login-v2.astro +109 -0
  99. package/src/{pages/examples/login.html → html/pages/examples/login.astro} +40 -22
  100. package/src/html/pages/examples/register-v2.astro +116 -0
  101. package/src/{pages/examples/register.html → html/pages/examples/register.astro} +42 -24
  102. package/src/html/pages/forms/general.astro +624 -0
  103. package/src/html/pages/index.astro +790 -0
  104. package/src/html/pages/index2.astro +1345 -0
  105. package/src/html/pages/index3.astro +513 -0
  106. package/src/html/pages/layout/collapsed-sidebar.astro +110 -0
  107. package/src/html/pages/layout/fixed-complete.astro +209 -0
  108. package/src/html/pages/layout/fixed-sidebar.astro +109 -0
  109. package/src/html/pages/layout/layout-rtl.astro +109 -0
  110. package/src/html/pages/layout/logo-switch.astro +212 -0
  111. package/src/html/pages/layout/sidebar-mini.astro +108 -0
  112. package/src/html/pages/layout/unfixed-sidebar.astro +107 -0
  113. package/src/html/pages/tables/simple.astro +472 -0
  114. package/src/html/pages/widgets/cards.astro +373 -0
  115. package/src/{pages/widgets/info-box.html → html/pages/widgets/info-box.astro} +110 -60
  116. package/src/html/pages/widgets/small-box.astro +182 -0
  117. package/src/scss/_app-content.scss +52 -0
  118. package/src/scss/_app-footer.scss +15 -0
  119. package/src/scss/_app-header.scss +26 -0
  120. package/src/scss/_app-main.scss +17 -0
  121. package/src/scss/_app-sidebar.scss +603 -0
  122. package/src/scss/{_wrapper.scss → _app-wrapper.scss} +8 -4
  123. package/src/scss/_bootstrap-variables.scss +42 -27
  124. package/src/scss/_callouts.scss +34 -0
  125. package/src/scss/_cards.scss +54 -224
  126. package/src/scss/_compact-mode.scss +79 -0
  127. package/src/scss/_direct-chat.scss +15 -9
  128. package/src/scss/_docs.scss +4 -0
  129. package/src/scss/_dropdown.scss +7 -5
  130. package/src/scss/_info-box.scss +2 -6
  131. package/src/scss/_miscellaneous.scss +0 -455
  132. package/src/scss/_mixins.scss +0 -6
  133. package/src/scss/_root.scss +2 -58
  134. package/src/scss/_small-box.scss +15 -41
  135. package/src/scss/_table.scss +0 -50
  136. package/src/scss/_timeline.scss +120 -0
  137. package/src/scss/_variables-dark.scss +15 -8
  138. package/src/scss/_variables.scss +48 -136
  139. package/src/scss/adminlte.scss +1 -1
  140. package/src/scss/mixins/_animations.scss +0 -1
  141. package/src/scss/mixins/_scrollbar.scss +2 -2
  142. package/src/scss/pages/_lockscreen.scss +74 -0
  143. package/src/scss/pages/_login_and_register.scss +1 -5
  144. package/src/scss/parts/_core.scss +9 -15
  145. package/src/scss/parts/_extra-components.scss +1 -2
  146. package/src/scss/parts/_pages.scss +1 -0
  147. package/src/ts/adminlte.ts +0 -2
  148. package/src/ts/card-widget.ts +57 -66
  149. package/src/ts/direct-chat.ts +35 -10
  150. package/src/ts/layout.ts +8 -6
  151. package/src/ts/push-menu.ts +90 -158
  152. package/src/ts/treeview.ts +30 -30
  153. package/src/ts/util/index.ts +14 -12
  154. package/src/utils/index.js +28 -0
  155. package/tsconfig.json +11 -3
  156. package/.stylelintrc +0 -40
  157. package/CHECKLIST.md +0 -0
  158. package/dist/css/rtl/adminlte.rtl.css.map +0 -1
  159. package/dist/css/rtl/adminlte.rtl.min.css +0 -7
  160. package/dist/css/rtl/adminlte.rtl.min.css.map +0 -1
  161. package/dist/index.html +0 -1065
  162. package/dist/index2.html +0 -1629
  163. package/dist/index3.html +0 -1015
  164. package/gulpfile.js +0 -315
  165. package/src/index.html +0 -476
  166. package/src/index2.html +0 -968
  167. package/src/index3.html +0 -430
  168. package/src/pages/forms/general.html +0 -97
  169. package/src/pages/layout/fixed-sidebar.html +0 -87
  170. package/src/pages/layout/unfixed-sidebar.html +0 -87
  171. package/src/pages/tables/simple.html +0 -336
  172. package/src/pages/widgets/cards.html +0 -143
  173. package/src/pages/widgets/small-box.html +0 -124
  174. package/src/partials/_head.html +0 -31
  175. package/src/partials/_scripts.html +0 -95
  176. package/src/partials/dashboard/_footer.html +0 -9
  177. package/src/partials/dashboard/_sidenav.html +0 -244
  178. package/src/scss/_brand-container.scss +0 -72
  179. package/src/scss/_content-header.scss +0 -9
  180. package/src/scss/_content-wrapper.scss +0 -6
  181. package/src/scss/_content.scss +0 -3
  182. package/src/scss/_layout-fixed.scss +0 -43
  183. package/src/scss/_layout-mobile.scss +0 -22
  184. package/src/scss/_main-footer.scss +0 -28
  185. package/src/scss/_main-header.scss +0 -40
  186. package/src/scss/_main-sidebar.scss +0 -63
  187. package/src/scss/_nav-sidebar.scss +0 -66
  188. package/src/scss/_products.scss +0 -55
  189. package/src/scss/_sidebar-close.scss +0 -6
  190. package/src/scss/_sidebar-collapse.scss +0 -120
  191. package/src/scss/_sidebar-horizontal.scss +0 -67
  192. package/src/scss/_sidebar.scss +0 -11
  193. package/src/scss/_users-list.scss +0 -45
  194. package/src/scss/mixins/_brand-variant.scss +0 -9
  195. package/src/scss/mixins/_cards.scss +0 -53
  196. package/src/scss/mixins/_direct-chat.scss +0 -17
  197. package/src/scss/mixins/_header-variant.scss +0 -22
  198. package/src/scss/mixins/_nav-treeview-dark.scss +0 -87
  199. package/src/scss/mixins/_nav-treeview-light.scss +0 -89
  200. package/src/scss/mixins/_sidebar-color.scss +0 -9
package/index.html CHANGED
@@ -1,21 +1,12 @@
1
1
  <!DOCTYPE html>
2
- <html lang="en">
2
+ <html>
3
3
  <head>
4
- <meta charset="UTF-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
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
- <!-- TODO: Remove below link Before Alpha Release of AdminLTE v4 -->
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-alpha1",
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": "node -v",
12
- "docs-lint": "node -v",
13
- "lint": "npx gulp lint && npm run lockfile-lint",
14
- "compile": "npx gulp compile",
15
- "production": "npx gulp production",
16
- "dev": "npx gulp"
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
- "@rollup/plugin-typescript": "^11.0.0",
41
- "@ronilaukkarinen/gulp-stylelint": "^14.0.9",
42
- "@typescript-eslint/eslint-plugin": "^5.49.0",
43
- "@typescript-eslint/parser": "^5.49.0",
44
- "autoprefixer": "^10.4.13",
45
- "bootstrap": "^5.3.0-alpha1",
46
- "browser-sync": "^2.27.11",
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
- "del": "^6.1.1",
49
- "eslint": "^8.33.0",
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.55.1",
52
- "eslint-plugin-import": "^2.27.5",
53
- "eslint-plugin-unicorn": "^45.0.2",
54
- "gulp": "^4.0.2",
55
- "gulp-clean-css": "^4.3.0",
56
- "gulp-eslint-new": "^1.7.1",
57
- "gulp-file-include": "^2.3.0",
58
- "gulp-format-html": "^1.5.0",
59
- "gulp-html": "^5.0.0",
60
- "gulp-if": "^3.0.0",
61
- "gulp-postcss": "^9.0.1",
62
- "gulp-rename": "^2.0.0",
63
- "gulp-sass": "^5.1.0",
64
- "gulp-terser": "^2.1.0",
65
- "lockfile-lint": "^4.10.0",
66
- "postcss": "^8.4.6",
67
- "rollup": "^3.12.0",
68
- "rtlcss": "^4.0.0",
69
- "sass": "^1.57.1",
70
- "stylelint": "^14.9.1",
71
- "stylelint-config-twbs-bootstrap": "^7.0.0",
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
  }
@@ -0,0 +1,8 @@
1
+ import fs from 'fs-extra'
2
+
3
+ try {
4
+ fs.copySync('./src/assets', './dist/assets')
5
+ console.log('Assets copy success!')
6
+ } catch (error) {
7
+ console.error(error)
8
+ }
@@ -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,15 @@
1
+ export default ctx => {
2
+ return {
3
+ map: {
4
+ inline: false,
5
+ annotation: true,
6
+ sourcesContent: true
7
+ },
8
+ plugins: {
9
+ autoprefixer: {
10
+ cascade: false
11
+ },
12
+ rtlcss: ctx.env === 'RTL' ? {} : false
13
+ }
14
+ }
15
+ }
@@ -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,11 @@
1
+ module.exports = {
2
+ plugins: [require.resolve('prettier-plugin-astro')],
3
+ overrides: [
4
+ {
5
+ files: '*.astro',
6
+ options: {
7
+ parser: 'astro',
8
+ },
9
+ },
10
+ ],
11
+ };
@@ -0,0 +1,4 @@
1
+ {
2
+ "root": true,
3
+ "extends": "astro/tsconfigs/strict"
4
+ }
@@ -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 &copy; 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-->