rails_material_admin 0.1.5 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -20
  3. data/app/helpers/admin_helper.rb +34 -0
  4. data/app/views/admin/sessions/new.html.slim +27 -24
  5. data/app/views/layouts/admin.html.slim +16 -5
  6. data/app/views/shared/_error_messages.html.slim +12 -7
  7. data/app/views/shared/_flash_messages.html.slim +14 -0
  8. data/app/views/shared/_header.html.slim +17 -13
  9. data/app/views/shared/_sidebar.html.slim +9 -8
  10. data/config/webpack/environment.js +5 -1
  11. data/lib/generators/crud/crud_generator.rb +4 -4
  12. data/lib/generators/material_admin/material_admin_generator.rb +16 -9
  13. data/lib/material_admin/version.rb +1 -1
  14. data/vendor/javascript/packs/admin.js +18 -12
  15. data/vendor/javascript/packs/admin_style.js +5 -3
  16. data/vendor/javascript/src/stylesheets/admin/shared/common.scss +39 -2
  17. data/vendor/javascript/src/stylesheets/admin/shared/override.scss +62 -0
  18. data/vendor/javascript/src/stylesheets/shared/override.scss +0 -4
  19. data/vendor/rails_material_admin/css/plugins/bootstrap.min.scss +6 -6
  20. data/vendor/rails_material_admin/css/style.scss +33462 -8272
  21. data/vendor/rails_material_admin/js/app.js +404 -0
  22. data/vendor/rails_material_admin/js/bootstrap.min.js +4 -4
  23. data/vendor/rails_material_admin/js/dashboard.js +15 -16
  24. data/vendor/rails_material_admin/js/perfect-scrollbar.jquery.min.js +1569 -0
  25. data/vendor/rails_material_admin/js/sidebarmenu.js +52 -337
  26. data/vendor/rails_material_admin/js/sweetalert2.min.js +2 -0
  27. data/vendor/rails_material_admin/material_admin.js +8 -7
  28. metadata +8 -6
  29. data/package.json +0 -23
  30. data/vendor/rails_material_admin/js/custom.js +0 -113
data/package.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "name": "beebeego-back",
3
- "private": true,
4
- "dependencies": {
5
- "@rails/webpacker": "5.1.1",
6
- "core-js": "3",
7
- "datatables.net-bs4": "^1.10.21",
8
- "datatables.net-responsive-bs4": "^2.2.5",
9
- "expose-loader": "^0.7.5",
10
- "file-loader": "^6.0.0",
11
- "jquery": "^3.5.1",
12
- "popper.js": "^1.16.1",
13
- "rails-ujs": "^5.2.4-2",
14
- "resolve-url-loader": "^3.1.1",
15
- "select2": "^4.0.13",
16
- "stimulus": "^1.1.1",
17
- "turbolinks": "^5.2.0",
18
- "url-loader": "^4.1.0"
19
- },
20
- "devDependencies": {
21
- "webpack-dev-server": "^3.11.0"
22
- }
23
- }
@@ -1,113 +0,0 @@
1
- var miniSidebarEnabled = true;
2
-
3
- $(document).on('turbolinks:load', function() {
4
- $(function () {
5
- "use strict";
6
- $(function () {
7
- $(".preloader").fadeOut()
8
- }), jQuery(document).on("click", ".mega-dropdown", function (i) {
9
- i.stopPropagation()
10
- });
11
- var i = function () {
12
- var i = window.innerWidth > 0 ? window.innerWidth : this.screen.width;
13
- var e = 70;
14
-
15
- if (miniSidebarEnabled) {
16
- $("body").addClass("mini-sidebar");
17
- $(".navbar-brand span").hide();
18
- $(".scroll-sidebar, .slimScrollDiv").css("overflow-x", "visible").parent().css("overflow", "visible");
19
- $(".sidebartoggler i").addClass("ti-menu");
20
- } else {
21
- $("body").removeClass("mini-sidebar");
22
- $(".navbar-brand span").show();
23
- }
24
-
25
- var o = (window.innerHeight > 0 ? window.innerHeight : this.screen.height) - 1;
26
- o -= e, 1 > o && (o = 1), o > e && $(".page-wrapper").css("min-height", o + "px")
27
- };
28
- $(window).ready(i), $(window).on("resize", i), $(".sidebartoggler").on("click", function () {
29
- $("body").hasClass("mini-sidebar")
30
- ? (
31
- $("body").trigger("resize"), $(".scroll-sidebar, .slimScrollDiv").css("overflow", "hidden").parent().css("overflow", "visible"), $("body").removeClass("mini-sidebar"), $(".navbar-brand span").show(), miniSidebarEnabled=false
32
- ) : (
33
- $("body").trigger("resize"), $(".scroll-sidebar, .slimScrollDiv").css("overflow-x", "visible").parent().css("overflow", "visible"), $("body").addClass("mini-sidebar"), $(".navbar-brand span").hide(), miniSidebarEnabled=true
34
- )
35
- }), $(".fix-header .topbar").stick_in_parent({}), $(".nav-toggler").click(function () {
36
- $("body").toggleClass("show-sidebar"), $(".nav-toggler i").toggleClass("ti-menu"), $(".nav-toggler i").addClass("ti-close")
37
- }), $(".search-box a, .search-box .app-search .srh-btn").on("click", function () {
38
- $(".app-search").toggle(200)
39
- }), $(".right-side-toggle").click(function () {
40
- $(".right-sidebar").slideDown(50), $(".right-sidebar").toggleClass("shw-rside")
41
- }), $(".floating-labels .form-control").on("focus blur", function (i) {
42
- $(this).parents(".form-group").toggleClass("focused", "focus" === i.type || this.value.length > 0)
43
- }).trigger("blur"), $(function () {
44
- for (var i = window.location, e = $("ul#sidebarnav a").filter(function () {
45
- return this.href == i
46
- }).addClass("active").parent().addClass("active");;) {
47
- if (!e.is("li")) break;
48
- e = e.parent().addClass("in").parent().addClass("active")
49
- }
50
- }), $(function () {
51
- $('[data-toggle="tooltip"]').tooltip()
52
- }), $(function () {
53
- $('[data-toggle="popover"]').popover()
54
- }), $(function () {
55
- $("#sidebarnav").metisMenu()
56
- }), $(".scroll-sidebar").slimScroll({
57
- position: "left",
58
- size: "5px",
59
- height: "100%",
60
- color: "#dcdcdc"
61
- }), $(".message-center").slimScroll({
62
- position: "right",
63
- size: "5px",
64
- color: "#dcdcdc"
65
- }), $(".aboutscroll").slimScroll({
66
- position: "right",
67
- size: "5px",
68
- height: "80",
69
- color: "#dcdcdc"
70
- }), $(".message-scroll").slimScroll({
71
- position: "right",
72
- size: "5px",
73
- height: "570",
74
- color: "#dcdcdc"
75
- }), $(".chat-box").slimScroll({
76
- position: "right",
77
- size: "5px",
78
- height: "470",
79
- color: "#dcdcdc"
80
- }), $(".slimscrollright").slimScroll({
81
- height: "100%",
82
- position: "right",
83
- size: "5px",
84
- color: "#dcdcdc"
85
- }), $("body").trigger("resize"), $(".list-task li label").click(function () {
86
- $(this).toggleClass("task-done")
87
- }), $("#to-recover").on("click", function () {
88
- $("#loginform").slideUp(), $("#recoverform").fadeIn()
89
- }), $('a[data-action="collapse"]').on("click", function (i) {
90
- i.preventDefault(), $(this).closest(".card").find('[data-action="collapse"] i').toggleClass("ti-minus ti-plus"), $(this).closest(".card").children(".card-body").collapse("toggle")
91
- }), $('a[data-action="expand"]').on("click", function (i) {
92
- i.preventDefault(), $(this).closest(".card").find('[data-action="expand"] i').toggleClass("mdi-arrow-expand mdi-arrow-compress"), $(this).closest(".card").toggleClass("card-fullscreen")
93
- }), $('a[data-action="close"]').on("click", function () {
94
- $(this).closest(".card").removeClass().slideUp("fast")
95
- })
96
- // $("#monthchart").sparkline([5, 6, 2, 9, 4, 7, 10, 12], {
97
- // type: "bar",
98
- // height: "35",
99
- // barWidth: "4",
100
- // resize: !0,
101
- // barSpacing: "4",
102
- // barColor: "#1e88e5"
103
- // }),
104
- // $("#lastmonthchart").sparkline([5, 6, 2, 9, 4, 7, 10, 12], {
105
- // type: "bar",
106
- // height: "35",
107
- // barWidth: "4",
108
- // resize: !0,
109
- // barSpacing: "4",
110
- // barColor: "#7460ee"
111
- // })
112
- });
113
- })