jav_madmin 2.6.2
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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +294 -0
- data/Rakefile +30 -0
- data/app/assets/config/madmin_manifest.js +3 -0
- data/app/assets/stylesheets/madmin/actiontext.css +31 -0
- data/app/assets/stylesheets/madmin/application-sprockets.css +11 -0
- data/app/assets/stylesheets/madmin/application.css +9 -0
- data/app/assets/stylesheets/madmin/base.css +144 -0
- data/app/assets/stylesheets/madmin/buttons.css +53 -0
- data/app/assets/stylesheets/madmin/forms.css +90 -0
- data/app/assets/stylesheets/madmin/pagination.css +59 -0
- data/app/assets/stylesheets/madmin/reset.css +242 -0
- data/app/assets/stylesheets/madmin/sidebar.css +179 -0
- data/app/assets/stylesheets/madmin/tables.css +71 -0
- data/app/controllers/madmin/application_controller.rb +17 -0
- data/app/controllers/madmin/base_controller.rb +15 -0
- data/app/controllers/madmin/dashboard_controller.rb +6 -0
- data/app/controllers/madmin/resource_controller.rb +119 -0
- data/app/helpers/madmin/application_helper.rb +10 -0
- data/app/helpers/madmin/nav_helper.rb +34 -0
- data/app/helpers/madmin/sort_helper.rb +48 -0
- data/app/javascript/madmin/application.js +3 -0
- data/app/javascript/madmin/controllers/application.js +12 -0
- data/app/javascript/madmin/controllers/index.js +5 -0
- data/app/javascript/madmin/controllers/mobile_nav_controller.js +50 -0
- data/app/javascript/madmin/controllers/nested_form_controller.js +34 -0
- data/app/javascript/madmin/controllers/select_controller.js +37 -0
- data/app/views/layouts/madmin/application.html.erb +41 -0
- data/app/views/madmin/application/_flash.html.erb +13 -0
- data/app/views/madmin/application/_form.html.erb +24 -0
- data/app/views/madmin/application/_javascript.html.erb +8 -0
- data/app/views/madmin/application/_missing_resource.html.erb +8 -0
- data/app/views/madmin/application/_navigation.html.erb +22 -0
- data/app/views/madmin/application/edit.html.erb +11 -0
- data/app/views/madmin/application/index.html.erb +85 -0
- data/app/views/madmin/application/new.html.erb +11 -0
- data/app/views/madmin/application/show.html.erb +40 -0
- data/app/views/madmin/dashboard/show.html.erb +2 -0
- data/app/views/madmin/fields/attachment/_form.html.erb +11 -0
- data/app/views/madmin/fields/attachment/_index.html.erb +7 -0
- data/app/views/madmin/fields/attachment/_show.html.erb +9 -0
- data/app/views/madmin/fields/attachments/_form.html.erb +1 -0
- data/app/views/madmin/fields/attachments/_index.html.erb +1 -0
- data/app/views/madmin/fields/attachments/_show.html.erb +11 -0
- data/app/views/madmin/fields/belongs_to/_form.html.erb +1 -0
- data/app/views/madmin/fields/belongs_to/_index.html.erb +4 -0
- data/app/views/madmin/fields/belongs_to/_show.html.erb +7 -0
- data/app/views/madmin/fields/boolean/_form.html.erb +3 -0
- data/app/views/madmin/fields/boolean/_index.html.erb +1 -0
- data/app/views/madmin/fields/boolean/_show.html.erb +1 -0
- data/app/views/madmin/fields/currency/_form.html.erb +1 -0
- data/app/views/madmin/fields/currency/_index.html.erb +1 -0
- data/app/views/madmin/fields/currency/_show.html.erb +1 -0
- data/app/views/madmin/fields/date/_form.html.erb +1 -0
- data/app/views/madmin/fields/date/_index.html.erb +1 -0
- data/app/views/madmin/fields/date/_show.html.erb +1 -0
- data/app/views/madmin/fields/date_time/_form.html.erb +1 -0
- data/app/views/madmin/fields/date_time/_index.html.erb +1 -0
- data/app/views/madmin/fields/date_time/_show.html.erb +1 -0
- data/app/views/madmin/fields/decimal/_form.html.erb +1 -0
- data/app/views/madmin/fields/decimal/_index.html.erb +1 -0
- data/app/views/madmin/fields/decimal/_show.html.erb +1 -0
- data/app/views/madmin/fields/enum/_form.html.erb +1 -0
- data/app/views/madmin/fields/enum/_index.html.erb +1 -0
- data/app/views/madmin/fields/enum/_show.html.erb +1 -0
- data/app/views/madmin/fields/file/_form.html.erb +1 -0
- data/app/views/madmin/fields/file/_index.html.erb +1 -0
- data/app/views/madmin/fields/file/_show.html.erb +6 -0
- data/app/views/madmin/fields/float/_form.html.erb +1 -0
- data/app/views/madmin/fields/float/_index.html.erb +1 -0
- data/app/views/madmin/fields/float/_show.html.erb +1 -0
- data/app/views/madmin/fields/has_many/_form.html.erb +1 -0
- data/app/views/madmin/fields/has_many/_index.html.erb +1 -0
- data/app/views/madmin/fields/has_many/_show.html.erb +18 -0
- data/app/views/madmin/fields/has_one/_form.html.erb +1 -0
- data/app/views/madmin/fields/has_one/_index.html.erb +3 -0
- data/app/views/madmin/fields/has_one/_show.html.erb +7 -0
- data/app/views/madmin/fields/integer/_form.html.erb +1 -0
- data/app/views/madmin/fields/integer/_index.html.erb +1 -0
- data/app/views/madmin/fields/integer/_show.html.erb +1 -0
- data/app/views/madmin/fields/json/_form.html.erb +1 -0
- data/app/views/madmin/fields/json/_index.html.erb +1 -0
- data/app/views/madmin/fields/json/_show.html.erb +1 -0
- data/app/views/madmin/fields/nested_has_many/_fields.html.erb +17 -0
- data/app/views/madmin/fields/nested_has_many/_form.html.erb +28 -0
- data/app/views/madmin/fields/nested_has_many/_index.html.erb +1 -0
- data/app/views/madmin/fields/nested_has_many/_show.html.erb +18 -0
- data/app/views/madmin/fields/password/_form.html.erb +1 -0
- data/app/views/madmin/fields/password/_index.html.erb +1 -0
- data/app/views/madmin/fields/password/_show.html.erb +1 -0
- data/app/views/madmin/fields/polymorphic/_form.html.erb +4 -0
- data/app/views/madmin/fields/polymorphic/_index.html.erb +3 -0
- data/app/views/madmin/fields/polymorphic/_show.html.erb +7 -0
- data/app/views/madmin/fields/rich_text/_form.html.erb +1 -0
- data/app/views/madmin/fields/rich_text/_index.html.erb +1 -0
- data/app/views/madmin/fields/rich_text/_show.html.erb +3 -0
- data/app/views/madmin/fields/select/_form.html.erb +1 -0
- data/app/views/madmin/fields/select/_index.html.erb +1 -0
- data/app/views/madmin/fields/select/_show.html.erb +1 -0
- data/app/views/madmin/fields/string/_form.html.erb +1 -0
- data/app/views/madmin/fields/string/_index.html.erb +1 -0
- data/app/views/madmin/fields/string/_show.html.erb +1 -0
- data/app/views/madmin/fields/text/_form.html.erb +1 -0
- data/app/views/madmin/fields/text/_index.html.erb +1 -0
- data/app/views/madmin/fields/text/_show.html.erb +1 -0
- data/app/views/madmin/fields/time/_form.html.erb +5 -0
- data/app/views/madmin/fields/time/_index.html.erb +1 -0
- data/app/views/madmin/fields/time/_show.html.erb +1 -0
- data/app/views/madmin/shared/_label.html.erb +4 -0
- data/config/importmap.rb +15 -0
- data/config/locales/el.yml +42 -0
- data/config/locales/en.yml +42 -0
- data/config/locales/fr.yml +42 -0
- data/config/locales/ko.yml +40 -0
- data/lib/generators/madmin/field/field_generator.rb +31 -0
- data/lib/generators/madmin/field/templates/_form.html.erb +1 -0
- data/lib/generators/madmin/field/templates/_index.html.erb +1 -0
- data/lib/generators/madmin/field/templates/_show.html.erb +1 -0
- data/lib/generators/madmin/field/templates/field.rb.tt +26 -0
- data/lib/generators/madmin/install/install_generator.rb +55 -0
- data/lib/generators/madmin/install/templates/controller.rb.tt +15 -0
- data/lib/generators/madmin/install/templates/routes.rb.tt +3 -0
- data/lib/generators/madmin/resource/resource_generator.rb +73 -0
- data/lib/generators/madmin/resource/templates/controller.rb.tt +10 -0
- data/lib/generators/madmin/resource/templates/resource.rb.tt +33 -0
- data/lib/generators/madmin/views/edit_generator.rb +16 -0
- data/lib/generators/madmin/views/form_generator.rb +15 -0
- data/lib/generators/madmin/views/index_generator.rb +15 -0
- data/lib/generators/madmin/views/javascript_generator.rb +15 -0
- data/lib/generators/madmin/views/layout_generator.rb +21 -0
- data/lib/generators/madmin/views/navigation_generator.rb +15 -0
- data/lib/generators/madmin/views/new_generator.rb +16 -0
- data/lib/generators/madmin/views/show_generator.rb +15 -0
- data/lib/generators/madmin/views/views_generator.rb +16 -0
- data/lib/madmin/engine.rb +47 -0
- data/lib/madmin/field.rb +67 -0
- data/lib/madmin/fields/attachment.rb +6 -0
- data/lib/madmin/fields/attachments.rb +9 -0
- data/lib/madmin/fields/belongs_to.rb +29 -0
- data/lib/madmin/fields/boolean.rb +6 -0
- data/lib/madmin/fields/currency.rb +15 -0
- data/lib/madmin/fields/date.rb +6 -0
- data/lib/madmin/fields/date_time.rb +6 -0
- data/lib/madmin/fields/decimal.rb +6 -0
- data/lib/madmin/fields/enum.rb +9 -0
- data/lib/madmin/fields/file.rb +9 -0
- data/lib/madmin/fields/float.rb +6 -0
- data/lib/madmin/fields/has_many.rb +62 -0
- data/lib/madmin/fields/has_one.rb +10 -0
- data/lib/madmin/fields/integer.rb +6 -0
- data/lib/madmin/fields/json.rb +6 -0
- data/lib/madmin/fields/nested_has_many.rb +44 -0
- data/lib/madmin/fields/password.rb +6 -0
- data/lib/madmin/fields/polymorphic.rb +22 -0
- data/lib/madmin/fields/rich_text.rb +6 -0
- data/lib/madmin/fields/select.rb +9 -0
- data/lib/madmin/fields/string.rb +9 -0
- data/lib/madmin/fields/text.rb +9 -0
- data/lib/madmin/fields/time.rb +6 -0
- data/lib/madmin/generator_helpers.rb +59 -0
- data/lib/madmin/member_action.rb +19 -0
- data/lib/madmin/menu.rb +70 -0
- data/lib/madmin/namespace.rb +35 -0
- data/lib/madmin/resource.rb +295 -0
- data/lib/madmin/resource_builder.rb +88 -0
- data/lib/madmin/search.rb +62 -0
- data/lib/madmin/version.rb +3 -0
- data/lib/madmin/view_generator.rb +43 -0
- data/lib/madmin.rb +114 -0
- data/lib/tasks/madmin_tasks.rake +11 -0
- metadata +284 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
require "rails/generators/base"
|
|
2
|
+
require "madmin/generator_helpers"
|
|
3
|
+
require "madmin/namespace"
|
|
4
|
+
|
|
5
|
+
module Madmin
|
|
6
|
+
class ViewGenerator < Rails::Generators::Base
|
|
7
|
+
include Madmin::GeneratorHelpers
|
|
8
|
+
|
|
9
|
+
class_option :namespace, type: :string, default: "madmin"
|
|
10
|
+
|
|
11
|
+
def self.template_source_path
|
|
12
|
+
File.expand_path(
|
|
13
|
+
"../../../app/views/madmin/application",
|
|
14
|
+
__FILE__
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
private
|
|
19
|
+
|
|
20
|
+
def namespace
|
|
21
|
+
options[:namespace]
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def copy_resource_template(template_name)
|
|
25
|
+
template_file = "#{template_name}.html.erb"
|
|
26
|
+
|
|
27
|
+
copy_file(
|
|
28
|
+
template_file,
|
|
29
|
+
"app/views/#{namespace}/#{resource_path}/#{template_file}"
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def resource_path
|
|
34
|
+
args.first.try(:underscore).try(:pluralize) || BaseResourcePath.new
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class BaseResourcePath
|
|
38
|
+
def to_s
|
|
39
|
+
"application"
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
data/lib/madmin.rb
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
require "madmin/engine"
|
|
2
|
+
require "importmap-rails"
|
|
3
|
+
require "stimulus-rails"
|
|
4
|
+
require "turbo-rails"
|
|
5
|
+
require "pagy"
|
|
6
|
+
|
|
7
|
+
module Madmin
|
|
8
|
+
autoload :Field, "madmin/field"
|
|
9
|
+
autoload :GeneratorHelpers, "madmin/generator_helpers"
|
|
10
|
+
autoload :MemberAction, "madmin/member_action"
|
|
11
|
+
autoload :Menu, "madmin/menu"
|
|
12
|
+
autoload :Resource, "madmin/resource"
|
|
13
|
+
autoload :ResourceBuilder, "madmin/resource_builder"
|
|
14
|
+
autoload :Search, "madmin/search"
|
|
15
|
+
|
|
16
|
+
module Fields
|
|
17
|
+
autoload :Attachment, "madmin/fields/attachment"
|
|
18
|
+
autoload :Attachments, "madmin/fields/attachments"
|
|
19
|
+
autoload :BelongsTo, "madmin/fields/belongs_to"
|
|
20
|
+
autoload :Boolean, "madmin/fields/boolean"
|
|
21
|
+
autoload :Currency, "madmin/fields/currency"
|
|
22
|
+
autoload :Date, "madmin/fields/date"
|
|
23
|
+
autoload :DateTime, "madmin/fields/date_time"
|
|
24
|
+
autoload :Decimal, "madmin/fields/decimal"
|
|
25
|
+
autoload :Enum, "madmin/fields/enum"
|
|
26
|
+
autoload :File, "madmin/fields/file"
|
|
27
|
+
autoload :Float, "madmin/fields/float"
|
|
28
|
+
autoload :HasMany, "madmin/fields/has_many"
|
|
29
|
+
autoload :HasOne, "madmin/fields/has_one"
|
|
30
|
+
autoload :Integer, "madmin/fields/integer"
|
|
31
|
+
autoload :Json, "madmin/fields/json"
|
|
32
|
+
autoload :NestedHasMany, "madmin/fields/nested_has_many"
|
|
33
|
+
autoload :Password, "madmin/fields/password"
|
|
34
|
+
autoload :Polymorphic, "madmin/fields/polymorphic"
|
|
35
|
+
autoload :RichText, "madmin/fields/rich_text"
|
|
36
|
+
autoload :Select, "madmin/fields/select"
|
|
37
|
+
autoload :String, "madmin/fields/string"
|
|
38
|
+
autoload :Text, "madmin/fields/text"
|
|
39
|
+
autoload :Time, "madmin/fields/time"
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
mattr_accessor :importmap, default: Importmap::Map.new
|
|
43
|
+
mattr_accessor :menu, default: Menu.new
|
|
44
|
+
mattr_accessor :site_name
|
|
45
|
+
mattr_accessor :stylesheets, default: []
|
|
46
|
+
mattr_accessor :resource_locations, default: []
|
|
47
|
+
|
|
48
|
+
class MissingResource < StandardError
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
class << self
|
|
52
|
+
# Returns a Madmin::Resource class for the given object
|
|
53
|
+
def resource_for(object)
|
|
54
|
+
if (resource_name = resource_name_for(object)) && Object.const_defined?(resource_name)
|
|
55
|
+
resource_name.constantize
|
|
56
|
+
|
|
57
|
+
# STI models should look at the parent
|
|
58
|
+
elsif (resource_name = sti_resource_name_for(object)) && Object.const_defined?(resource_name)
|
|
59
|
+
resource_name.constantize
|
|
60
|
+
|
|
61
|
+
else
|
|
62
|
+
raise MissingResource, <<~MESSAGE
|
|
63
|
+
`#{object.class.name}Resource` is missing.
|
|
64
|
+
|
|
65
|
+
Create the Madmin resource by running:
|
|
66
|
+
|
|
67
|
+
bin/rails generate madmin:resource #{object.class.name}
|
|
68
|
+
MESSAGE
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def resource_name_for(object)
|
|
73
|
+
if object.is_a? ::ActiveStorage::Attached
|
|
74
|
+
"ActiveStorage::AttachmentResource"
|
|
75
|
+
else
|
|
76
|
+
"#{object.class.name}Resource"
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def sti_resource_name_for(object)
|
|
81
|
+
return unless object.class.respond_to?(:inheritance_column) && object.class.respond_to?(:column_names)
|
|
82
|
+
|
|
83
|
+
if (column = object.class.inheritance_column) && object.class.column_names.include?(column)
|
|
84
|
+
"#{object.class.superclass.base_class.name}Resource"
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def resource_by_name(name)
|
|
89
|
+
"#{name}Resource".constantize
|
|
90
|
+
rescue NameError
|
|
91
|
+
raise MissingResource, <<~MESSAGE
|
|
92
|
+
#{name}Resource is missing. Create it by running:
|
|
93
|
+
|
|
94
|
+
bin/rails generate madmin:resource #{resource_name.split("Resource").first}
|
|
95
|
+
MESSAGE
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def resources
|
|
99
|
+
@resources ||= resource_names.map(&:constantize)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def reset_resources!
|
|
103
|
+
@resources = nil
|
|
104
|
+
menu.reset
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def resource_names
|
|
108
|
+
resource_locations.flat_map do |root|
|
|
109
|
+
files = Dir.glob(root.join("**/*.rb"))
|
|
110
|
+
files.sort!.map! { |f| f.split(root.to_s).last.delete_suffix(".rb").classify }
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: jav_madmin
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 2.6.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Chris Oliver
|
|
8
|
+
- Andrea Fomera
|
|
9
|
+
- javyliu
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: rails
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
requirements:
|
|
18
|
+
- - ">="
|
|
19
|
+
- !ruby/object:Gem::Version
|
|
20
|
+
version: 7.0.0
|
|
21
|
+
type: :runtime
|
|
22
|
+
prerelease: false
|
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
24
|
+
requirements:
|
|
25
|
+
- - ">="
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: 7.0.0
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: pagy
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '3.5'
|
|
35
|
+
type: :runtime
|
|
36
|
+
prerelease: false
|
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '3.5'
|
|
42
|
+
- !ruby/object:Gem::Dependency
|
|
43
|
+
name: importmap-rails
|
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - ">="
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '0'
|
|
49
|
+
type: :runtime
|
|
50
|
+
prerelease: false
|
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - ">="
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '0'
|
|
56
|
+
- !ruby/object:Gem::Dependency
|
|
57
|
+
name: stimulus-rails
|
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
60
|
+
- - ">="
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '0'
|
|
63
|
+
type: :runtime
|
|
64
|
+
prerelease: false
|
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - ">="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0'
|
|
70
|
+
- !ruby/object:Gem::Dependency
|
|
71
|
+
name: turbo-rails
|
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
|
73
|
+
requirements:
|
|
74
|
+
- - ">="
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '0'
|
|
77
|
+
type: :runtime
|
|
78
|
+
prerelease: false
|
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
80
|
+
requirements:
|
|
81
|
+
- - ">="
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: '0'
|
|
84
|
+
description: It's an admin, obviously.
|
|
85
|
+
email:
|
|
86
|
+
- excid3@gmail.com
|
|
87
|
+
- afomera@hey.com
|
|
88
|
+
- javy_liu@163.com
|
|
89
|
+
executables: []
|
|
90
|
+
extensions: []
|
|
91
|
+
extra_rdoc_files: []
|
|
92
|
+
files:
|
|
93
|
+
- MIT-LICENSE
|
|
94
|
+
- README.md
|
|
95
|
+
- Rakefile
|
|
96
|
+
- app/assets/config/madmin_manifest.js
|
|
97
|
+
- app/assets/stylesheets/madmin/actiontext.css
|
|
98
|
+
- app/assets/stylesheets/madmin/application-sprockets.css
|
|
99
|
+
- app/assets/stylesheets/madmin/application.css
|
|
100
|
+
- app/assets/stylesheets/madmin/base.css
|
|
101
|
+
- app/assets/stylesheets/madmin/buttons.css
|
|
102
|
+
- app/assets/stylesheets/madmin/forms.css
|
|
103
|
+
- app/assets/stylesheets/madmin/pagination.css
|
|
104
|
+
- app/assets/stylesheets/madmin/reset.css
|
|
105
|
+
- app/assets/stylesheets/madmin/sidebar.css
|
|
106
|
+
- app/assets/stylesheets/madmin/tables.css
|
|
107
|
+
- app/controllers/madmin/application_controller.rb
|
|
108
|
+
- app/controllers/madmin/base_controller.rb
|
|
109
|
+
- app/controllers/madmin/dashboard_controller.rb
|
|
110
|
+
- app/controllers/madmin/resource_controller.rb
|
|
111
|
+
- app/helpers/madmin/application_helper.rb
|
|
112
|
+
- app/helpers/madmin/nav_helper.rb
|
|
113
|
+
- app/helpers/madmin/sort_helper.rb
|
|
114
|
+
- app/javascript/madmin/application.js
|
|
115
|
+
- app/javascript/madmin/controllers/application.js
|
|
116
|
+
- app/javascript/madmin/controllers/index.js
|
|
117
|
+
- app/javascript/madmin/controllers/mobile_nav_controller.js
|
|
118
|
+
- app/javascript/madmin/controllers/nested_form_controller.js
|
|
119
|
+
- app/javascript/madmin/controllers/select_controller.js
|
|
120
|
+
- app/views/layouts/madmin/application.html.erb
|
|
121
|
+
- app/views/madmin/application/_flash.html.erb
|
|
122
|
+
- app/views/madmin/application/_form.html.erb
|
|
123
|
+
- app/views/madmin/application/_javascript.html.erb
|
|
124
|
+
- app/views/madmin/application/_missing_resource.html.erb
|
|
125
|
+
- app/views/madmin/application/_navigation.html.erb
|
|
126
|
+
- app/views/madmin/application/edit.html.erb
|
|
127
|
+
- app/views/madmin/application/index.html.erb
|
|
128
|
+
- app/views/madmin/application/new.html.erb
|
|
129
|
+
- app/views/madmin/application/show.html.erb
|
|
130
|
+
- app/views/madmin/dashboard/show.html.erb
|
|
131
|
+
- app/views/madmin/fields/attachment/_form.html.erb
|
|
132
|
+
- app/views/madmin/fields/attachment/_index.html.erb
|
|
133
|
+
- app/views/madmin/fields/attachment/_show.html.erb
|
|
134
|
+
- app/views/madmin/fields/attachments/_form.html.erb
|
|
135
|
+
- app/views/madmin/fields/attachments/_index.html.erb
|
|
136
|
+
- app/views/madmin/fields/attachments/_show.html.erb
|
|
137
|
+
- app/views/madmin/fields/belongs_to/_form.html.erb
|
|
138
|
+
- app/views/madmin/fields/belongs_to/_index.html.erb
|
|
139
|
+
- app/views/madmin/fields/belongs_to/_show.html.erb
|
|
140
|
+
- app/views/madmin/fields/boolean/_form.html.erb
|
|
141
|
+
- app/views/madmin/fields/boolean/_index.html.erb
|
|
142
|
+
- app/views/madmin/fields/boolean/_show.html.erb
|
|
143
|
+
- app/views/madmin/fields/currency/_form.html.erb
|
|
144
|
+
- app/views/madmin/fields/currency/_index.html.erb
|
|
145
|
+
- app/views/madmin/fields/currency/_show.html.erb
|
|
146
|
+
- app/views/madmin/fields/date/_form.html.erb
|
|
147
|
+
- app/views/madmin/fields/date/_index.html.erb
|
|
148
|
+
- app/views/madmin/fields/date/_show.html.erb
|
|
149
|
+
- app/views/madmin/fields/date_time/_form.html.erb
|
|
150
|
+
- app/views/madmin/fields/date_time/_index.html.erb
|
|
151
|
+
- app/views/madmin/fields/date_time/_show.html.erb
|
|
152
|
+
- app/views/madmin/fields/decimal/_form.html.erb
|
|
153
|
+
- app/views/madmin/fields/decimal/_index.html.erb
|
|
154
|
+
- app/views/madmin/fields/decimal/_show.html.erb
|
|
155
|
+
- app/views/madmin/fields/enum/_form.html.erb
|
|
156
|
+
- app/views/madmin/fields/enum/_index.html.erb
|
|
157
|
+
- app/views/madmin/fields/enum/_show.html.erb
|
|
158
|
+
- app/views/madmin/fields/file/_form.html.erb
|
|
159
|
+
- app/views/madmin/fields/file/_index.html.erb
|
|
160
|
+
- app/views/madmin/fields/file/_show.html.erb
|
|
161
|
+
- app/views/madmin/fields/float/_form.html.erb
|
|
162
|
+
- app/views/madmin/fields/float/_index.html.erb
|
|
163
|
+
- app/views/madmin/fields/float/_show.html.erb
|
|
164
|
+
- app/views/madmin/fields/has_many/_form.html.erb
|
|
165
|
+
- app/views/madmin/fields/has_many/_index.html.erb
|
|
166
|
+
- app/views/madmin/fields/has_many/_show.html.erb
|
|
167
|
+
- app/views/madmin/fields/has_one/_form.html.erb
|
|
168
|
+
- app/views/madmin/fields/has_one/_index.html.erb
|
|
169
|
+
- app/views/madmin/fields/has_one/_show.html.erb
|
|
170
|
+
- app/views/madmin/fields/integer/_form.html.erb
|
|
171
|
+
- app/views/madmin/fields/integer/_index.html.erb
|
|
172
|
+
- app/views/madmin/fields/integer/_show.html.erb
|
|
173
|
+
- app/views/madmin/fields/json/_form.html.erb
|
|
174
|
+
- app/views/madmin/fields/json/_index.html.erb
|
|
175
|
+
- app/views/madmin/fields/json/_show.html.erb
|
|
176
|
+
- app/views/madmin/fields/nested_has_many/_fields.html.erb
|
|
177
|
+
- app/views/madmin/fields/nested_has_many/_form.html.erb
|
|
178
|
+
- app/views/madmin/fields/nested_has_many/_index.html.erb
|
|
179
|
+
- app/views/madmin/fields/nested_has_many/_show.html.erb
|
|
180
|
+
- app/views/madmin/fields/password/_form.html.erb
|
|
181
|
+
- app/views/madmin/fields/password/_index.html.erb
|
|
182
|
+
- app/views/madmin/fields/password/_show.html.erb
|
|
183
|
+
- app/views/madmin/fields/polymorphic/_form.html.erb
|
|
184
|
+
- app/views/madmin/fields/polymorphic/_index.html.erb
|
|
185
|
+
- app/views/madmin/fields/polymorphic/_show.html.erb
|
|
186
|
+
- app/views/madmin/fields/rich_text/_form.html.erb
|
|
187
|
+
- app/views/madmin/fields/rich_text/_index.html.erb
|
|
188
|
+
- app/views/madmin/fields/rich_text/_show.html.erb
|
|
189
|
+
- app/views/madmin/fields/select/_form.html.erb
|
|
190
|
+
- app/views/madmin/fields/select/_index.html.erb
|
|
191
|
+
- app/views/madmin/fields/select/_show.html.erb
|
|
192
|
+
- app/views/madmin/fields/string/_form.html.erb
|
|
193
|
+
- app/views/madmin/fields/string/_index.html.erb
|
|
194
|
+
- app/views/madmin/fields/string/_show.html.erb
|
|
195
|
+
- app/views/madmin/fields/text/_form.html.erb
|
|
196
|
+
- app/views/madmin/fields/text/_index.html.erb
|
|
197
|
+
- app/views/madmin/fields/text/_show.html.erb
|
|
198
|
+
- app/views/madmin/fields/time/_form.html.erb
|
|
199
|
+
- app/views/madmin/fields/time/_index.html.erb
|
|
200
|
+
- app/views/madmin/fields/time/_show.html.erb
|
|
201
|
+
- app/views/madmin/shared/_label.html.erb
|
|
202
|
+
- config/importmap.rb
|
|
203
|
+
- config/locales/el.yml
|
|
204
|
+
- config/locales/en.yml
|
|
205
|
+
- config/locales/fr.yml
|
|
206
|
+
- config/locales/ko.yml
|
|
207
|
+
- lib/generators/madmin/field/field_generator.rb
|
|
208
|
+
- lib/generators/madmin/field/templates/_form.html.erb
|
|
209
|
+
- lib/generators/madmin/field/templates/_index.html.erb
|
|
210
|
+
- lib/generators/madmin/field/templates/_show.html.erb
|
|
211
|
+
- lib/generators/madmin/field/templates/field.rb.tt
|
|
212
|
+
- lib/generators/madmin/install/install_generator.rb
|
|
213
|
+
- lib/generators/madmin/install/templates/controller.rb.tt
|
|
214
|
+
- lib/generators/madmin/install/templates/routes.rb.tt
|
|
215
|
+
- lib/generators/madmin/resource/resource_generator.rb
|
|
216
|
+
- lib/generators/madmin/resource/templates/controller.rb.tt
|
|
217
|
+
- lib/generators/madmin/resource/templates/resource.rb.tt
|
|
218
|
+
- lib/generators/madmin/views/edit_generator.rb
|
|
219
|
+
- lib/generators/madmin/views/form_generator.rb
|
|
220
|
+
- lib/generators/madmin/views/index_generator.rb
|
|
221
|
+
- lib/generators/madmin/views/javascript_generator.rb
|
|
222
|
+
- lib/generators/madmin/views/layout_generator.rb
|
|
223
|
+
- lib/generators/madmin/views/navigation_generator.rb
|
|
224
|
+
- lib/generators/madmin/views/new_generator.rb
|
|
225
|
+
- lib/generators/madmin/views/show_generator.rb
|
|
226
|
+
- lib/generators/madmin/views/views_generator.rb
|
|
227
|
+
- lib/madmin.rb
|
|
228
|
+
- lib/madmin/engine.rb
|
|
229
|
+
- lib/madmin/field.rb
|
|
230
|
+
- lib/madmin/fields/attachment.rb
|
|
231
|
+
- lib/madmin/fields/attachments.rb
|
|
232
|
+
- lib/madmin/fields/belongs_to.rb
|
|
233
|
+
- lib/madmin/fields/boolean.rb
|
|
234
|
+
- lib/madmin/fields/currency.rb
|
|
235
|
+
- lib/madmin/fields/date.rb
|
|
236
|
+
- lib/madmin/fields/date_time.rb
|
|
237
|
+
- lib/madmin/fields/decimal.rb
|
|
238
|
+
- lib/madmin/fields/enum.rb
|
|
239
|
+
- lib/madmin/fields/file.rb
|
|
240
|
+
- lib/madmin/fields/float.rb
|
|
241
|
+
- lib/madmin/fields/has_many.rb
|
|
242
|
+
- lib/madmin/fields/has_one.rb
|
|
243
|
+
- lib/madmin/fields/integer.rb
|
|
244
|
+
- lib/madmin/fields/json.rb
|
|
245
|
+
- lib/madmin/fields/nested_has_many.rb
|
|
246
|
+
- lib/madmin/fields/password.rb
|
|
247
|
+
- lib/madmin/fields/polymorphic.rb
|
|
248
|
+
- lib/madmin/fields/rich_text.rb
|
|
249
|
+
- lib/madmin/fields/select.rb
|
|
250
|
+
- lib/madmin/fields/string.rb
|
|
251
|
+
- lib/madmin/fields/text.rb
|
|
252
|
+
- lib/madmin/fields/time.rb
|
|
253
|
+
- lib/madmin/generator_helpers.rb
|
|
254
|
+
- lib/madmin/member_action.rb
|
|
255
|
+
- lib/madmin/menu.rb
|
|
256
|
+
- lib/madmin/namespace.rb
|
|
257
|
+
- lib/madmin/resource.rb
|
|
258
|
+
- lib/madmin/resource_builder.rb
|
|
259
|
+
- lib/madmin/search.rb
|
|
260
|
+
- lib/madmin/version.rb
|
|
261
|
+
- lib/madmin/view_generator.rb
|
|
262
|
+
- lib/tasks/madmin_tasks.rake
|
|
263
|
+
homepage: https://github.com/javyliu/madmin
|
|
264
|
+
licenses:
|
|
265
|
+
- MIT
|
|
266
|
+
metadata: {}
|
|
267
|
+
rdoc_options: []
|
|
268
|
+
require_paths:
|
|
269
|
+
- lib
|
|
270
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
271
|
+
requirements:
|
|
272
|
+
- - ">="
|
|
273
|
+
- !ruby/object:Gem::Version
|
|
274
|
+
version: 3.2.0
|
|
275
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
|
+
requirements:
|
|
277
|
+
- - ">="
|
|
278
|
+
- !ruby/object:Gem::Version
|
|
279
|
+
version: '0'
|
|
280
|
+
requirements: []
|
|
281
|
+
rubygems_version: 4.0.16
|
|
282
|
+
specification_version: 4
|
|
283
|
+
summary: A modern admin for Ruby on Rails apps
|
|
284
|
+
test_files: []
|