rails_modular_admin 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +0 -0
- data/README.md +10 -35
- data/Rakefile +1 -1
- data/app/assets/config/rails_modular_admin_manifest.js +0 -0
- data/app/assets/javascripts/rails_modular_admin.js +3 -2
- data/app/assets/javascripts/rails_modular_admin/_common/_helpers/code-helper.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/_common/_helpers/for-helper.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/_common/_helpers/is-helper.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/_common/_helpers/times-helper.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/_common/animations/animations.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/_common/items-list/items-list.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/_common/nprogress/nprogress.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/_common/sameheight-items/sameheight-items.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/editor/editor-helper.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/editor/editor.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/header/nav/nav.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/modals/modal-media/modal-media.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/sidebar/customize/customize.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/sidebar/sidebar.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/charts/charts-flot/charts-flot.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/charts/charts-morris/charts-morris.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/dashboard/history/history.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/dashboard/items/items.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/dashboard/sales-breakdown/sales-breakdown.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/dashboard/sales-by-countries/sales-by-countries.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/dashboard/tasks/tasks.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/forms/input-groups/input-groups.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/items/editor/item-editor.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/items/list/items-list.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/app/pages/error.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/auth/login/login.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/auth/reset/reset.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/auth/signup/signup.js +0 -0
- data/app/assets/javascripts/rails_modular_admin/vendor.js +0 -0
- data/app/assets/stylesheets/rails_modular_admin.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/_styles/_mixins.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/_styles/layout.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/_styles/misc.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/_styles/typography.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/alert/alert.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/animations/animations.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/button/button.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/card/card.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/chart/chart.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/dropdown/dropdown.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/flex/flex.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/form/form.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/images-container/images-container.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/items-list/items-list.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/logo/logo.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/modal/modal-tabs.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/navigation/navigation.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/nprogress/nprogress.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/pagination/pagination.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/sameheight-items/sameheight-items.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/scrollbar/scrollbar.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/table/table.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_main.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_variables.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/editor/editor.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/footer/footer.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/buttons/buttons.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/collapse/collapse.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/header.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/nav.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/notifications/notifications.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/profile/profile.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/search/search.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/modals/modal-media/modal-media.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/modals/modals.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/customize/customize.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/header/header.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/sidebar.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/app.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/charts/charts-flot/charts-flot.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/dashboard.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/history/history.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/items/items-header.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/items/items-list.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/sales-breakdown/sales-breakdown.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/sales-by-countries/sales-by-countries.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/stats/stats.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/tasks/tasks.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/items/editor/item-editor.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/items/list/items-list.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/pages/error.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/pages/screenful/screenful.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/app/tables/responsive-tables/responsive-tables.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/application.scss +0 -1
- data/app/assets/stylesheets/rails_modular_admin/auth/auth.scss +0 -0
- data/app/controllers/rails_modular_admin/application_controller.rb +0 -0
- data/app/helpers/rails_modular_admin/application_helper.rb +0 -0
- data/app/jobs/rails_modular_admin/application_job.rb +0 -0
- data/app/mailers/rails_modular_admin/application_mailer.rb +0 -0
- data/app/models/rails_modular_admin/application_record.rb +0 -0
- data/app/views/layouts/rails_modular_admin/application.html.erb +0 -0
- data/config/initializers/assets.rb +2 -2
- data/config/routes.rb +0 -0
- data/lib/generators/rails_modular_admin/USAGE +0 -0
- data/lib/generators/rails_modular_admin/install_generator.rb +0 -0
- data/lib/generators/rails_modular_admin/templates/application.html.erb +27 -0
- data/lib/generators/rails_modular_admin/templates/custom-theme.scss +0 -0
- data/lib/generators/rails_modular_admin/templates/dashboard.html.erb +1450 -0
- data/lib/generators/rails_modular_admin/templates/devise/confirmations/new.html.erb +16 -0
- data/lib/generators/rails_modular_admin/templates/devise/passwords/edit.html.erb +25 -0
- data/lib/generators/rails_modular_admin/templates/devise/passwords/new.html.erb +39 -0
- data/lib/generators/rails_modular_admin/templates/devise/registrations/edit.html.erb +43 -0
- data/lib/generators/rails_modular_admin/templates/devise/registrations/new.html.erb +29 -0
- data/lib/generators/rails_modular_admin/templates/devise/sessions/new.html.erb +73 -0
- data/lib/generators/rails_modular_admin/templates/devise/shared/_links.html.erb +25 -0
- data/lib/generators/rails_modular_admin/templates/devise/unlocks/new.html.erb +16 -0
- data/lib/generators/rails_modular_admin/templates/login.html.erb +85 -0
- data/lib/generators/rails_modular_admin/templates/recover.html.erb +77 -0
- data/lib/generators/rails_modular_admin/templates/signup.html.erb +101 -0
- data/lib/generators/rails_modular_admin/views_generator.rb +15 -0
- data/lib/rails_modular_admin.rb +0 -4
- data/lib/rails_modular_admin/engine.rb +4 -1
- data/lib/rails_modular_admin/version.rb +1 -1
- data/lib/tasks/rails_modular_admin_tasks.rake +0 -0
- metadata +73 -3
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails/generators/base'
|
2
|
+
module RailsModularAdmin
|
3
|
+
module Generators
|
4
|
+
class ViewsGenerator < Rails::Generators::NamedBase
|
5
|
+
source_root File.expand_path('templates', __dir__)
|
6
|
+
|
7
|
+
def copy_dashboard_view
|
8
|
+
end
|
9
|
+
|
10
|
+
def copy_layout
|
11
|
+
copy_file "application.html.erb", "app/views/layouts/application.html.erb"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/rails_modular_admin.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
module RailsModularAdmin
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
isolate_namespace RailsModularAdmin
|
4
|
-
|
4
|
+
require "sass-rails"
|
5
|
+
require "font-awesome-rails"
|
5
6
|
initializer "RailsModularAdmin.precompile" do |app|
|
6
7
|
app.config.assets.precompile += %w(rails_modular_admin.js)
|
8
|
+
# config.browserify_rails.paths << -> (p) { p.start_with?(Engine.root.join("app").to_s) }
|
9
|
+
# config.browserify_rails.node_bin = "node_modules"
|
7
10
|
end
|
8
11
|
end
|
9
12
|
end
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_modular_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Payne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -39,7 +39,35 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: sass-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: uglifier
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coffee-rails
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
44
72
|
requirements:
|
45
73
|
- - ">="
|
@@ -66,6 +94,34 @@ dependencies:
|
|
66
94
|
- - ">="
|
67
95
|
- !ruby/object:Gem::Version
|
68
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
69
125
|
description: his plugin is designed to quickly generate views for Rails applications
|
70
126
|
in need of dashboard functionality. This includes admin panels and SaaS applications.
|
71
127
|
I found that over the course of my projects, I needed Dashboard pages very often,
|
@@ -177,7 +233,21 @@ files:
|
|
177
233
|
- config/routes.rb
|
178
234
|
- lib/generators/rails_modular_admin/USAGE
|
179
235
|
- lib/generators/rails_modular_admin/install_generator.rb
|
236
|
+
- lib/generators/rails_modular_admin/templates/application.html.erb
|
180
237
|
- lib/generators/rails_modular_admin/templates/custom-theme.scss
|
238
|
+
- lib/generators/rails_modular_admin/templates/dashboard.html.erb
|
239
|
+
- lib/generators/rails_modular_admin/templates/devise/confirmations/new.html.erb
|
240
|
+
- lib/generators/rails_modular_admin/templates/devise/passwords/edit.html.erb
|
241
|
+
- lib/generators/rails_modular_admin/templates/devise/passwords/new.html.erb
|
242
|
+
- lib/generators/rails_modular_admin/templates/devise/registrations/edit.html.erb
|
243
|
+
- lib/generators/rails_modular_admin/templates/devise/registrations/new.html.erb
|
244
|
+
- lib/generators/rails_modular_admin/templates/devise/sessions/new.html.erb
|
245
|
+
- lib/generators/rails_modular_admin/templates/devise/shared/_links.html.erb
|
246
|
+
- lib/generators/rails_modular_admin/templates/devise/unlocks/new.html.erb
|
247
|
+
- lib/generators/rails_modular_admin/templates/login.html.erb
|
248
|
+
- lib/generators/rails_modular_admin/templates/recover.html.erb
|
249
|
+
- lib/generators/rails_modular_admin/templates/signup.html.erb
|
250
|
+
- lib/generators/rails_modular_admin/views_generator.rb
|
181
251
|
- lib/rails_modular_admin.rb
|
182
252
|
- lib/rails_modular_admin/engine.rb
|
183
253
|
- lib/rails_modular_admin/version.rb
|