keppler 2.0.2 → 2.0.3
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.
- checksums.yaml +5 -5
- data/.gitignore +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile.lock +26 -0
- data/LICENSE.txt +21 -0
- data/README.md +93 -22
- data/Rakefile +6 -0
- data/bin/keppler +6 -2
- data/bin/setup +2 -1
- data/exe/keppler +6 -0
- data/installer/core/.gitignore +87 -0
- data/installer/core/.ruby-version +1 -0
- data/installer/core/Gemfile +6 -4
- data/installer/core/README.md +86 -50
- data/installer/core/app/assets/images/.keep +0 -0
- data/installer/core/app/assets/images/admin/astronauta_keppler.svg +123 -0
- data/installer/core/app/assets/images/admin/avatar_keppler.svg +100 -0
- data/installer/core/app/assets/images/admin/image_default.png +0 -0
- data/installer/core/app/assets/images/app/fondo.svg +19 -0
- data/installer/core/app/assets/javascripts/admin/file_upload.coffee +11 -0
- data/installer/core/app/assets/javascripts/admin/main.coffee +23 -12
- data/installer/core/app/assets/javascripts/admin/preview_template.js +2 -2
- data/installer/core/app/assets/javascripts/admin/sidebar.js +8 -7
- data/installer/core/app/assets/javascripts/admin/swal.js +37 -0
- data/installer/core/app/assets/javascripts/admin/switch.js +6 -0
- data/installer/core/app/assets/javascripts/admin/tooltips.coffee +3 -0
- data/installer/core/app/assets/javascripts/errors/application.js.coffee +1 -0
- data/installer/core/app/assets/javascripts/errors/errors.js +113 -0
- data/installer/core/app/assets/javascripts/keppler_ga_dashboard/view-selector2.js +1 -1
- data/installer/core/app/assets/javascripts/vue_admin/index.js +34 -9
- data/installer/core/app/assets/stylesheets/admin/application.scss +4 -14
- data/installer/core/app/assets/stylesheets/admin/components/navigation/_navbar.scss +4 -5
- data/installer/core/app/assets/stylesheets/admin/components/navigation/_sidebar.scss +26 -17
- data/installer/core/app/assets/stylesheets/admin/pages/_appearance.scss +5 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_customize.scss +21 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_datepicker.scss +1088 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_files.scss +26 -9
- data/installer/core/app/assets/stylesheets/admin/pages/_form.scss +19 -6
- data/installer/core/app/assets/stylesheets/admin/pages/_index.scss +4 -8
- data/installer/core/app/assets/stylesheets/admin/pages/_listing.scss +5 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_navbar.scss +9 -2
- data/installer/core/app/assets/stylesheets/admin/pages/_roles.scss +6 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_search.scss +24 -28
- data/installer/core/app/assets/stylesheets/admin/pages/_sidebar.scss +1 -1
- data/installer/core/app/assets/stylesheets/admin/pages/_switchs.scss +135 -39
- data/installer/core/app/assets/stylesheets/admin/pages/_timepicker.scss +16 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_user.scss +6 -0
- data/installer/core/app/assets/stylesheets/admin/utils/_base.scss +6 -1
- data/installer/core/app/assets/stylesheets/admin/utils/_theme.scss +24 -11
- data/installer/core/app/assets/stylesheets/admin/utils/_variables.scss +1 -1
- data/installer/core/app/assets/stylesheets/app/pages/_front.sass +70 -56
- data/installer/core/app/assets/stylesheets/errors/errors.scss +161 -120
- data/installer/core/app/assets/stylesheets/vendor/admin-lte/_skin-blue.scss +1 -1
- data/installer/core/app/controllers/admin/admin_controller.rb +1 -1
- data/installer/core/app/controllers/admin/customizes_controller.rb +6 -8
- data/installer/core/app/controllers/admin/meta_tags_controller.rb +14 -18
- data/installer/core/app/controllers/admin/roles_controller.rb +176 -0
- data/installer/core/app/controllers/admin/scripts_controller.rb +14 -33
- data/installer/core/app/controllers/admin/settings_controller.rb +26 -27
- data/installer/core/app/controllers/admin/users_controller.rb +35 -29
- data/installer/core/app/controllers/app/app_controller.rb +27 -4
- data/installer/core/app/controllers/application_controller.rb +39 -1
- data/installer/core/app/controllers/concerns/.keep +0 -0
- data/installer/core/app/helpers/admin_helper.rb +5 -0
- data/installer/core/app/helpers/application_helper.rb +9 -0
- data/installer/core/app/helpers/roles_helper.rb +2 -0
- data/installer/core/app/inputs/file_material_input.rb +4 -2
- data/installer/core/app/inputs/keppler_boolean_input.rb +74 -0
- data/installer/core/app/inputs/keppler_file_input.rb +70 -0
- data/installer/core/app/mailers/.keep +0 -0
- data/installer/core/app/mailers/application_mailer.rb +13 -13
- data/installer/core/app/models/.keep +0 -0
- data/installer/core/app/models/appearance.rb +2 -0
- data/installer/core/app/models/application_record.rb +3 -0
- data/installer/core/app/models/concerns/.keep +0 -0
- data/installer/core/app/models/concerns/downloadable.rb +13 -0
- data/installer/core/app/models/concerns/sortable.rb +9 -0
- data/installer/core/app/models/concerns/uploadable.rb +10 -0
- data/installer/core/app/models/customize.rb +8 -6
- data/installer/core/app/models/front.rb +3 -0
- data/installer/core/app/models/google_analytics_setting.rb +2 -0
- data/installer/core/app/models/meta_tag.rb +27 -14
- data/installer/core/app/models/permission.rb +3 -0
- data/installer/core/app/models/role.rb +62 -5
- data/installer/core/app/models/script.rb +6 -15
- data/installer/core/app/models/setting.rb +2 -0
- data/installer/core/app/models/smtp_setting.rb +2 -0
- data/installer/core/app/models/social_account.rb +2 -0
- data/installer/core/app/models/user.rb +17 -1
- data/installer/core/app/policies/application_policy.rb +4 -4
- data/installer/core/app/policies/controller_policy.rb +15 -11
- data/installer/core/app/policies/role_policy.rb +25 -0
- data/installer/core/app/policies/user_policy.rb +1 -1
- data/installer/core/app/uploaders/attachment_uploader.rb +18 -1
- data/installer/core/app/views/admin/customizes/_description.html.haml +4 -4
- data/installer/core/app/views/admin/customizes/_form.html.haml +4 -4
- data/installer/core/app/views/admin/customizes/_listing.html.haml +1 -1
- data/installer/core/app/views/admin/customizes/_switch_default_template.html.haml +8 -13
- data/installer/core/app/views/admin/customizes/_switch_template.html.haml +8 -11
- data/installer/core/app/views/admin/customizes/index.html.haml +9 -9
- data/installer/core/app/views/admin/layouts/_head.html.haml +3 -3
- data/installer/core/app/views/admin/layouts/_keppler_boolean_script.haml +12 -0
- data/installer/core/app/views/admin/layouts/_navigation.html.haml +17 -16
- data/installer/core/app/views/admin/layouts/_sidebar.html.haml +27 -36
- data/installer/core/app/views/admin/layouts/application.html.haml +1 -0
- data/installer/core/app/views/admin/layouts/index/remote_messages.js.haml +6 -6
- data/installer/core/app/views/admin/meta_tags/_index_show.html.haml +2 -2
- data/installer/core/app/views/admin/meta_tags/_listing.html.haml +6 -6
- data/installer/core/app/views/admin/meta_tags/index.html.haml +15 -29
- data/installer/core/app/views/admin/meta_tags/show.html.haml +7 -8
- data/installer/core/app/views/admin/roles/_description.html.haml +13 -0
- data/installer/core/app/views/admin/roles/_form.html.haml +27 -0
- data/installer/core/app/views/admin/roles/_index_show.html.haml +24 -0
- data/installer/core/app/views/admin/roles/_listing.html.haml +46 -0
- data/installer/core/app/views/admin/roles/_switch.html.haml +20 -0
- data/installer/core/app/views/admin/roles/add_permissions.html.haml +60 -0
- data/installer/core/app/views/admin/roles/create_permissions.html.haml +0 -0
- data/installer/core/app/views/admin/roles/create_permissions.js.erb +1 -0
- data/installer/core/app/views/admin/roles/edit.html.haml +1 -0
- data/installer/core/app/views/admin/roles/index.html.haml +80 -0
- data/installer/core/app/views/admin/roles/new.html.haml +1 -0
- data/installer/core/app/views/admin/roles/reload.js.haml +5 -0
- data/installer/core/app/views/admin/roles/show.html.haml +32 -0
- data/installer/core/app/views/admin/roles/show.js.haml +4 -0
- data/installer/core/app/views/admin/roles/show_description.js.erb +2 -0
- data/installer/core/app/views/admin/scripts/_index_show.html.haml +2 -2
- data/installer/core/app/views/admin/scripts/_listing.html.haml +13 -13
- data/installer/core/app/views/admin/scripts/index.html.haml +12 -26
- data/installer/core/app/views/admin/scripts/show.html.haml +4 -4
- data/installer/core/app/views/admin/settings/components/_preview.html.haml +1 -1
- data/installer/core/app/views/admin/settings/fields/_appearance.html.haml +25 -17
- data/installer/core/app/views/admin/settings/fields/_basic_information.html.haml +13 -7
- data/installer/core/app/views/admin/settings/fields/_email_setting.html.haml +16 -16
- data/installer/core/app/views/admin/settings/fields/_google_analytics_setting.html.haml +1 -1
- data/installer/core/app/views/admin/settings/fields/_social_accounts.html.haml +39 -39
- data/installer/core/app/views/admin/users/_form.html.haml +18 -25
- data/installer/core/app/views/admin/users/_index_show.html.haml +2 -2
- data/installer/core/app/views/admin/users/_listing.html.haml +6 -6
- data/installer/core/app/views/admin/users/delete_avatar.js.haml +3 -0
- data/installer/core/app/views/admin/users/filter_by_role.js.erb +9 -0
- data/installer/core/app/views/admin/users/index.html.haml +22 -22
- data/installer/core/app/views/admin/users/show.html.haml +10 -12
- data/installer/core/app/views/app/front/index.html.haml +137 -87
- data/installer/core/app/views/app/layouts/_footer.html.haml +2 -2
- data/installer/core/app/views/app/layouts/_head.html.haml +4 -12
- data/installer/core/app/views/app/layouts/_meta_tags.html.haml +38 -6
- data/installer/core/app/views/app/layouts/application.html.haml +8 -8
- data/installer/core/app/views/devise/sessions/new.html.haml +32 -28
- data/installer/core/app/views/errors/internal_server_error.html.haml +50 -7
- data/installer/core/app/views/errors/not_authorized.html.haml +75 -6
- data/installer/core/app/views/errors/not_found.html.haml +101 -7
- data/installer/core/app/views/errors/unprocessable.html.haml +50 -7
- data/installer/core/bin/update +31 -0
- data/installer/core/bin/yarn +11 -0
- data/installer/core/config/application.rb +1 -1
- data/installer/core/config/environments/production.rb +1 -1
- data/installer/core/config/initializers/carrierwave.rb +12 -0
- data/installer/core/config/initializers/mime_types.rb +2 -2
- data/installer/core/config/initializers/simple_form_bootstrap.rb +20 -1
- data/installer/core/config/initializers/simple_form_components.rb +61 -0
- data/installer/core/config/locales/en.yml +29 -6
- data/installer/core/config/locales/es.yml +32 -5
- data/installer/core/config/locales/simple_form.en.yml +1 -0
- data/installer/core/config/locales/simple_form.es.yml +3 -2
- data/installer/core/config/menu.yml +34 -8
- data/installer/core/config/permissions.yml +21 -0
- data/installer/core/config/routes.rb +56 -14
- data/installer/core/db/migrate/20140812210925_rolify_create_roles.rb +2 -0
- data/installer/core/db/migrate/20160128131802_create_scripts.rb +1 -0
- data/installer/core/db/migrate/20180503174351_create_permissions.rb +11 -0
- data/installer/core/db/seeds.rb +12 -6
- data/installer/core/lib/generators/keppler_front/templates/views/template.html.haml +222 -177
- data/installer/core/lib/generators/keppler_relation/keppler_relation_generator.rb +1 -1
- data/installer/core/lib/generators/keppler_scaffold/keppler_scaffold_generator.rb +57 -40
- data/installer/core/lib/generators/keppler_scaffold/templates/controllers/controller.rb +29 -30
- data/installer/core/lib/generators/keppler_scaffold/templates/models/model.rb +14 -20
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_form.html.haml +24 -35
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.html.haml +12 -11
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_listing.html.haml +7 -7
- data/installer/core/lib/generators/keppler_scaffold/templates/views/index.html.haml +17 -33
- data/installer/core/lib/generators/keppler_scaffold/templates/views/show.html.haml +23 -24
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/images/keppler_ga_dashboard/.keep +0 -0
- data/installer/core/plugins/keppler_ga_dashboard/config/permissions.yml +4 -0
- data/installer/core/plugins/keppler_ga_dashboard/keppler_ga_dashboard.gemspec +1 -1
- data/installer/core/test/controllers/.keep +0 -0
- data/installer/core/test/controllers/roles_controller_test.rb +48 -0
- data/installer/core/test/fixtures/.keep +0 -0
- data/installer/core/test/fixtures/permissions.yml +9 -0
- data/installer/core/test/helpers/.keep +0 -0
- data/installer/core/test/integration/.keep +0 -0
- data/installer/core/test/mailers/.keep +0 -0
- data/installer/core/test/models/.keep +0 -0
- data/installer/core/test/models/permission_test.rb +7 -0
- data/installer/core/test/system/roles_test.rb +43 -0
- data/installer/core/vendor/assets/javascripts/.keep +0 -0
- data/installer/core/vendor/assets/stylesheets/.keep +0 -0
- data/installer/plugins/concerns/commons.rb +47 -0
- data/installer/plugins/concerns/destroy_multiple.rb +33 -0
- data/installer/plugins/concerns/history.rb +24 -0
- data/installer/plugins/config/locales/en.yml +104 -0
- data/installer/plugins/config/locales/es.yml +139 -0
- data/installer/plugins/config/menu.yml +12 -0
- data/installer/plugins/config/permissions.yml +1 -0
- data/installer/plugins/generators/keppler_scaffold/keppler_scaffold_generator.rb +203 -0
- data/installer/plugins/generators/keppler_scaffold/templates/controllers/controller.rb +171 -0
- data/installer/plugins/generators/keppler_scaffold/templates/models/model.rb +41 -0
- data/installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb +11 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_description.html.haml +13 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_form.html.haml +49 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_index_show.html.haml +26 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_listing.html.haml +65 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/edit.html.haml +1 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/index.html.haml +97 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/new.html.haml +1 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/reload.js.haml +5 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/show.html.haml +66 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/show.js.haml +4 -0
- data/installer/plugins/install.rb +156 -0
- data/installer/plugins/layouts/_navigation.html.haml +47 -0
- data/installer/plugins/layouts/application.html.haml +24 -0
- data/keppler.gemspec +35 -0
- data/lib/keppler.rb +0 -1
- data/lib/keppler/add.rb +13 -0
- data/lib/keppler/cli.rb +134 -5
- data/lib/keppler/delete.rb +13 -0
- data/lib/keppler/version.rb +1 -1
- metadata +117 -23
- data/installer/core/app/assets/images/admin/space.png +0 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_header.scss +0 -34
- data/installer/core/app/assets/stylesheets/admin/pages/_pageslide.scss +0 -125
- data/installer/core/db/schema.rb +0 -172
- data/installer/lib/conf.rb +0 -31
- data/installer/lib/scaffold.rb +0 -10
- data/installer/run.sh +0 -17
- data/installer/scripts/bin.sh +0 -61
- data/lib/keppler/cli/generate.rb +0 -19
@@ -12,10 +12,10 @@ $(document).ready(function() {
|
|
12
12
|
})
|
13
13
|
|
14
14
|
$('#reload').click(function() {
|
15
|
-
$('iframe').attr('src',
|
15
|
+
$('iframe').attr('src', '/')
|
16
16
|
})
|
17
17
|
|
18
|
-
$('.icon-trash').click(function() {
|
18
|
+
$('#customize-index .icon-trash').click(function() {
|
19
19
|
$('#spinner').css('display', 'block')
|
20
20
|
})
|
21
21
|
});
|
@@ -8,13 +8,14 @@ $(function ($) {
|
|
8
8
|
});
|
9
9
|
|
10
10
|
// On ready, read the set state and collapse if needed
|
11
|
-
if (
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
if (window.width >= 768){
|
12
|
+
if (localStorage.getItem('sidebar') === '0') {
|
13
|
+
$body.addClass('disable-animations sidebar-collapse');
|
14
|
+
$slice.toggleClass('hidden')
|
15
|
+
requestAnimationFrame(function () {
|
16
|
+
$body.removeClass('disable-animations');
|
17
|
+
});
|
18
|
+
}
|
17
19
|
}
|
18
20
|
|
19
|
-
|
20
21
|
});
|
@@ -0,0 +1,37 @@
|
|
1
|
+
$(function ($) {
|
2
|
+
$('.delete').click(function(e){
|
3
|
+
e.preventDefault()
|
4
|
+
swal({
|
5
|
+
title: 'Submit your Github username',
|
6
|
+
input: 'text',
|
7
|
+
inputAttributes: {
|
8
|
+
autocapitalize: 'off'
|
9
|
+
},
|
10
|
+
showCancelButton: true,
|
11
|
+
confirmButtonText: 'Look up',
|
12
|
+
showLoaderOnConfirm: true,
|
13
|
+
preConfirm: (login) => {
|
14
|
+
return fetch(`//api.github.com/users/${login}`)
|
15
|
+
.then(response => {
|
16
|
+
if (!response.ok) {
|
17
|
+
throw new Error(response.statusText)
|
18
|
+
}
|
19
|
+
return response.json()
|
20
|
+
})
|
21
|
+
.catch(error => {
|
22
|
+
swal.showValidationError(
|
23
|
+
`Request failed: ${error}`
|
24
|
+
)
|
25
|
+
})
|
26
|
+
},
|
27
|
+
allowOutsideClick: () => !swal.isLoading()
|
28
|
+
}).then((result) => {
|
29
|
+
if (result.value) {
|
30
|
+
swal({
|
31
|
+
title: `${result.value.login}'s avatar`,
|
32
|
+
imageUrl: result.value.avatar_url
|
33
|
+
})
|
34
|
+
}
|
35
|
+
})
|
36
|
+
})
|
37
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
#= require_tree .
|
@@ -0,0 +1,113 @@
|
|
1
|
+
var particles = {
|
2
|
+
"particles": {
|
3
|
+
"number": {
|
4
|
+
"value": 160,
|
5
|
+
"density": {
|
6
|
+
"enable": true,
|
7
|
+
"value_area": 800
|
8
|
+
}
|
9
|
+
},
|
10
|
+
"color": {
|
11
|
+
"value": "#ffffff"
|
12
|
+
},
|
13
|
+
"shape": {
|
14
|
+
"type": "circle",
|
15
|
+
"stroke": {
|
16
|
+
"width": 0,
|
17
|
+
"color": "#000000"
|
18
|
+
},
|
19
|
+
"polygon": {
|
20
|
+
"nb_sides": 5
|
21
|
+
},
|
22
|
+
"image": {
|
23
|
+
"src": "img/github.svg",
|
24
|
+
"width": 100,
|
25
|
+
"height": 100
|
26
|
+
}
|
27
|
+
},
|
28
|
+
"opacity": {
|
29
|
+
"value": 1,
|
30
|
+
"random": true,
|
31
|
+
"anim": {
|
32
|
+
"enable": true,
|
33
|
+
"speed": 1,
|
34
|
+
"opacity_min": 0,
|
35
|
+
"sync": false
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"size": {
|
39
|
+
"value": 3,
|
40
|
+
"random": true,
|
41
|
+
"anim": {
|
42
|
+
"enable": false,
|
43
|
+
"speed": 4,
|
44
|
+
"size_min": 0.3,
|
45
|
+
"sync": false
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"line_linked": {
|
49
|
+
"enable": false,
|
50
|
+
"distance": 150,
|
51
|
+
"color": "#ffffff",
|
52
|
+
"opacity": 0.4,
|
53
|
+
"width": 1
|
54
|
+
},
|
55
|
+
"move": {
|
56
|
+
"enable": true,
|
57
|
+
"speed": 0.17,
|
58
|
+
"direction": "none",
|
59
|
+
"random": true,
|
60
|
+
"straight": false,
|
61
|
+
"out_mode": "out",
|
62
|
+
"bounce": false,
|
63
|
+
"attract": {
|
64
|
+
"enable": false,
|
65
|
+
"rotateX": 600,
|
66
|
+
"rotateY": 600
|
67
|
+
}
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"interactivity": {
|
71
|
+
"detect_on": "canvas",
|
72
|
+
"events": {
|
73
|
+
"onhover": {
|
74
|
+
"enable": false,
|
75
|
+
"mode": "bubble"
|
76
|
+
},
|
77
|
+
"onclick": {
|
78
|
+
"enable": false,
|
79
|
+
"mode": "repulse"
|
80
|
+
},
|
81
|
+
"resize": false
|
82
|
+
},
|
83
|
+
"modes": {
|
84
|
+
"grab": {
|
85
|
+
"distance": 400,
|
86
|
+
"line_linked": {
|
87
|
+
"opacity": 1
|
88
|
+
}
|
89
|
+
},
|
90
|
+
"bubble": {
|
91
|
+
"distance": 250,
|
92
|
+
"size": 0,
|
93
|
+
"duration": 2,
|
94
|
+
"opacity": 0,
|
95
|
+
"speed": 3
|
96
|
+
},
|
97
|
+
"repulse": {
|
98
|
+
"distance": 400,
|
99
|
+
"duration": 0.4
|
100
|
+
},
|
101
|
+
"push": {
|
102
|
+
"particles_nb": 4
|
103
|
+
},
|
104
|
+
"remove": {
|
105
|
+
"particles_nb": 2
|
106
|
+
}
|
107
|
+
}
|
108
|
+
},
|
109
|
+
"retina_detect": true
|
110
|
+
};
|
111
|
+
particlesJS('particles-js', particles, function() {
|
112
|
+
console.log('callback - particles.js config loaded');
|
113
|
+
});
|
@@ -110,7 +110,7 @@
|
|
110
110
|
var i = {};
|
111
111
|
i[e] = t.value, this.set(i), this.execute()
|
112
112
|
},
|
113
|
-
template: '<div class="ViewSelector2 row"> <div class="ViewSelector2-item col s4" style="display:none;"> <label>Cuenta</label> <select class="form-control"></select> </div> <div class="ViewSelector2-item col-
|
113
|
+
template: '<div class="ViewSelector2 row"> <div class="ViewSelector2-item col s4" style="display:none;"> <label>Cuenta</label> <select class="form-control"></select> </div> <div class="ViewSelector2-item col-md-6"> <label>Propiedad</label> <select class="form-control"></select> </div> <div class="ViewSelector2-item col-md-6"> <label>Vista</label> <select class="form-control"></select> </div></div>'
|
114
114
|
})
|
115
115
|
})
|
116
116
|
}, function(t, e, i) {
|
@@ -22,7 +22,10 @@ var app = new Vue({
|
|
22
22
|
items: [],
|
23
23
|
deleteList:[],
|
24
24
|
controller: "",
|
25
|
-
current_page: ""
|
25
|
+
current_page: "",
|
26
|
+
states: {
|
27
|
+
checkall: false
|
28
|
+
}
|
26
29
|
},
|
27
30
|
mounted: function(){
|
28
31
|
var that;
|
@@ -56,22 +59,44 @@ var app = new Vue({
|
|
56
59
|
}else{
|
57
60
|
that.deleteList.push(user_id)
|
58
61
|
}
|
62
|
+
let check = document.getElementById(`checkbox-all`)
|
63
|
+
if(that.deleteList.length == that.items.length){
|
64
|
+
check.checked = true;
|
65
|
+
that.states.checkall = true;
|
66
|
+
console.log(that.states.checkall)
|
67
|
+
}else{
|
68
|
+
check.checked = false;
|
69
|
+
that.states.checkall = false;
|
70
|
+
}
|
59
71
|
//console.log(that.deleteList);
|
60
72
|
},
|
61
73
|
selectAll: function(){
|
62
74
|
var that = this;
|
63
|
-
|
75
|
+
let advice = false;
|
76
|
+
if(that.states.checkall){
|
64
77
|
that.items.map(function(item, idx){
|
65
|
-
|
66
|
-
|
67
|
-
//console.log(`Este fue agregado ${item.id}`);
|
78
|
+
let check = document.getElementById(`checkbox-${item.id}`)
|
79
|
+
if (check.checked) check.click();
|
68
80
|
});
|
69
81
|
}else{
|
70
|
-
that.items.
|
71
|
-
|
72
|
-
|
73
|
-
|
82
|
+
if (that.deleteList.length < that.items.length){
|
83
|
+
that.items.map(function(item, idx){
|
84
|
+
if (!that.deleteList.includes(item.id)) document.getElementById(`checkbox-${item.id}`).click();
|
85
|
+
//console.log(that.deleteList.length + ' - ' + that.items.length);
|
86
|
+
//console.log(`Este fue agregado ${item.id}`);
|
87
|
+
});
|
88
|
+
}else{
|
89
|
+
that.items.map(function(item, idx){
|
90
|
+
//console.log(`Este fue quitado ${item.id}`);
|
91
|
+
document.getElementById(`checkbox-${item.id}`).click();
|
92
|
+
});
|
93
|
+
advice = true;
|
94
|
+
}
|
74
95
|
}
|
96
|
+
// console.log(that.states.checkall)
|
97
|
+
if (advice) that.states.checkall = !that.states.checkall;
|
98
|
+
|
99
|
+
// console.log(that.states.checkall)
|
75
100
|
}
|
76
101
|
// deleteThem: function(){
|
77
102
|
// var that = this;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
// require simple-line-icons
|
2
2
|
//= require animate-css
|
3
3
|
//= require jquery.minicolors
|
4
4
|
//= require noty
|
@@ -19,19 +19,6 @@
|
|
19
19
|
@import 'utils/theme';
|
20
20
|
@import 'utils/base';
|
21
21
|
|
22
|
-
// Page folder
|
23
|
-
@import 'pages/navbar';
|
24
|
-
@import 'pages/devise';
|
25
|
-
@import 'pages/sidebar';
|
26
|
-
@import 'pages/listing';
|
27
|
-
@import 'pages/files';
|
28
|
-
@import 'pages/show';
|
29
|
-
@import 'pages/form';
|
30
|
-
@import 'pages/preloader';
|
31
|
-
@import 'pages/switchs';
|
32
|
-
@import 'pages/index';
|
33
|
-
@import 'pages/search';
|
34
|
-
|
35
22
|
//Components folder
|
36
23
|
@import "components/navigation/navbar";
|
37
24
|
@import "components/navigation/sidebar";
|
@@ -41,3 +28,6 @@
|
|
41
28
|
|
42
29
|
//Vendor folder
|
43
30
|
@import "vendor/admin-lte/skin-blue";
|
31
|
+
|
32
|
+
// Page folder
|
33
|
+
@import 'pages/*';
|
@@ -10,22 +10,23 @@
|
|
10
10
|
z-index: 9;
|
11
11
|
}
|
12
12
|
|
13
|
-
|
13
|
+
.navbar-static-top {
|
14
14
|
margin: 0%;
|
15
|
-
|
15
|
+
background: white !important;
|
16
16
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12);
|
17
17
|
// border-radius: 4px 0px 0px 4px !important;
|
18
18
|
|
19
19
|
a {
|
20
20
|
color: #949494 !important;
|
21
21
|
}
|
22
|
-
|
22
|
+
}
|
23
23
|
|
24
24
|
li.user-header {
|
25
25
|
background-image: url('profile-menu.jpg');
|
26
26
|
background-position: center;
|
27
27
|
background-size: cover;
|
28
28
|
border-bottom: 2px solid $keppler-color;
|
29
|
+
border-color: $keppler-color;
|
29
30
|
}
|
30
31
|
|
31
32
|
.sidebar-toggle:hover {
|
@@ -75,5 +76,3 @@ header.main-header a.logo span span {
|
|
75
76
|
z-index: 850;
|
76
77
|
}
|
77
78
|
}
|
78
|
-
|
79
|
-
|
@@ -1,19 +1,21 @@
|
|
1
|
+
$sidebar-color: linear-gradient(to right, #ffffff, #f5f5f5);
|
2
|
+
|
1
3
|
.skin-blue {
|
2
4
|
.main-sidebar{
|
3
5
|
// position: fixed;
|
4
|
-
background-color
|
6
|
+
background: $sidebar-color !important;
|
5
7
|
padding-top: 50px !important;
|
6
|
-
border-right: 1px solid #e4e4e4;
|
7
|
-
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12);
|
8
|
+
// border-right: 1px solid #e4e4e4;
|
9
|
+
// box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12);
|
8
10
|
}
|
9
11
|
|
10
12
|
.sidebar-menu > li:hover > a,
|
11
13
|
.sidebar-menu > li.active > a {
|
12
14
|
background: #fff !important;
|
13
|
-
color: #
|
15
|
+
color: #5a5a5a !important;
|
14
16
|
border-left-color: $keppler-color !important;
|
15
17
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12);
|
16
|
-
transition: .
|
18
|
+
transition: .5s;
|
17
19
|
|
18
20
|
i {
|
19
21
|
color: $keppler-color !important;
|
@@ -22,13 +24,14 @@
|
|
22
24
|
|
23
25
|
.sidebar-menu > li > .treeview-menu {
|
24
26
|
margin: 0 1px;
|
25
|
-
background: #
|
26
|
-
color: #
|
27
|
+
background: #eee !important;
|
28
|
+
color: #5a5a5a !important;
|
27
29
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12);
|
28
30
|
border-radius: none !important;
|
29
31
|
|
30
32
|
a:hover {
|
31
|
-
color:
|
33
|
+
color: #5a5a5a;
|
34
|
+
transition: .5s;
|
32
35
|
}
|
33
36
|
}
|
34
37
|
|
@@ -36,7 +39,11 @@
|
|
36
39
|
min-height: 84vh;
|
37
40
|
margin: 0px !important;
|
38
41
|
a {
|
39
|
-
color: #
|
42
|
+
color: #8c8c8c !important;
|
43
|
+
transition: .5s;
|
44
|
+
&:hover {
|
45
|
+
color: #5a5a5a !important;
|
46
|
+
}
|
40
47
|
span {
|
41
48
|
margin-left: 10px;
|
42
49
|
}
|
@@ -55,7 +62,7 @@
|
|
55
62
|
font-weight: 600;
|
56
63
|
margin-bottom: 0px;
|
57
64
|
white-space: initial;
|
58
|
-
color: #
|
65
|
+
color: #5a5a5a !important;
|
59
66
|
}
|
60
67
|
|
61
68
|
.user-panel > .info > small {
|
@@ -70,22 +77,24 @@
|
|
70
77
|
|
71
78
|
body .side-img-profile {
|
72
79
|
vertical-align: middle;
|
73
|
-
width:
|
74
|
-
height:
|
80
|
+
width: 40px !important;
|
81
|
+
height: 40px !important;
|
75
82
|
transition: .2s;
|
76
|
-
box-shadow: 1px 1px 2px
|
83
|
+
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
|
84
|
+
background: $keppler-color;
|
85
|
+
object-fit: cover;
|
77
86
|
}
|
78
87
|
|
79
88
|
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span {
|
80
89
|
top: 0;
|
81
90
|
margin-left: -3px;
|
82
91
|
padding: 12px 5px 12px 20px;
|
83
|
-
background
|
92
|
+
background: inherit;
|
84
93
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12);
|
85
94
|
}
|
86
95
|
|
87
96
|
|
88
97
|
.skin-blue .main-sidebar li.header {
|
89
|
-
color: #
|
90
|
-
background:
|
91
|
-
}
|
98
|
+
color: #5a5a5a !important;
|
99
|
+
background: $sidebar-color !important;
|
100
|
+
}
|