superuser 0.3.3 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/superuser/USAGE +0 -0
- data/lib/generators/superuser/init_generator.rb +3 -3
- data/lib/generators/superuser/superuser_generator.rb +0 -0
- data/lib/generators/superuser/templates/base_controller.rb +1 -1
- data/lib/generators/superuser/templates/controller_template.rb +0 -0
- data/lib/generators/superuser/templates/dashboard_controller.rb +0 -0
- data/lib/generators/superuser/templates/superuser_base.js +1 -0
- data/lib/generators/superuser/templates/superuser_base.scss +0 -0
- data/lib/generators/superuser/templates/views/_form.html.erb +0 -0
- data/lib/generators/superuser/templates/views/_search.html.erb +1 -1
- data/lib/generators/superuser/templates/views/dashboard_index.html.erb +0 -0
- data/lib/generators/superuser/templates/views/edit.html.erb +0 -0
- data/lib/generators/superuser/templates/views/index.html.erb +1 -1
- data/lib/generators/superuser/templates/views/layouts/application.html.erb +2 -2
- data/lib/generators/superuser/templates/views/new.html.erb +0 -0
- data/lib/generators/superuser/templates/views/show.html.erb +0 -0
- data/lib/generators/superuser/templates/webpack_native_base.js +0 -0
- data/lib/superuser/version.rb +1 -1
- data/lib/superuser.rb +0 -0
- metadata +18 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d81b2ab441d7e8ad0accf5dc7c76feed1a0fe8abcb214177c916b9e042bf04bf
|
4
|
+
data.tar.gz: '0653534290c3bc7c15388b33f0d17a752f205574423f126bcfea9af446b22919'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41147b00ddfc5a877a797a366c35c8c3d1433065757134651193724cf3c3a19796ee326811946c0849585d681bd73e6501b12bce70afcb4036dda87ca1e4642b
|
7
|
+
data.tar.gz: fc3e0d51db6e98e63fbc8c6cc693c5bd75d51e7f42a813a1b0bea8867db9ace2f4ab66cd1ffc650730f28a3979dcb98ee04d9ffa04ca553ec35afdcbdf597b42
|
File without changes
|
@@ -56,7 +56,7 @@ class Superuser::InitGenerator < Rails::Generators::Base
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def generate_search_form
|
59
|
-
template "views/_search.html.erb", "app/views/
|
59
|
+
template "views/_search.html.erb", "app/views/superuser/_search.html.erb"
|
60
60
|
end
|
61
61
|
|
62
62
|
# in case of user is using webpack_native gem then add an entry pointing to superuser "application" javascript file
|
@@ -102,7 +102,7 @@ class Superuser::InitGenerator < Rails::Generators::Base
|
|
102
102
|
if for_webpack_native
|
103
103
|
'app/webpack_native/src/stylesheets'
|
104
104
|
else
|
105
|
-
'app/
|
105
|
+
'app/javascript/superuser'
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
@@ -110,7 +110,7 @@ class Superuser::InitGenerator < Rails::Generators::Base
|
|
110
110
|
if for_webpack_native
|
111
111
|
'app/webpack_native/src/javascripts'
|
112
112
|
else
|
113
|
-
'app/javascript/
|
113
|
+
'app/javascript/superuser'
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import "./superuser.scss";
|
File without changes
|
File without changes
|
@@ -5,7 +5,7 @@
|
|
5
5
|
</div>
|
6
6
|
|
7
7
|
<div class="text-center">
|
8
|
-
<%= "<%= form_tag [:superuser, obj], method: :get, class: 'search_form' do %%>" %>
|
8
|
+
<%= "<%= form_tag [:superuser, obj.to_sym], method: :get, class: 'search_form' do %%>" %>
|
9
9
|
|
10
10
|
<span class="condition-label">Condition :</span>
|
11
11
|
|
File without changes
|
File without changes
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<%#= without method_messing available as helper, it should be [main_app, :new, :superuser, @model.table_name.singularize] %>
|
4
4
|
<%= "<%= link_to 'Add new #{resource}', [:new, :superuser, :#{resource}], class: 'btn btn-info float-sm-right' %%>" %>
|
5
5
|
|
6
|
-
<%= "<%= render '
|
6
|
+
<%= "<%= render 'superuser/search', obj: '#{resources}' %%>" %>
|
7
7
|
|
8
8
|
<div class="table-responsive">
|
9
9
|
|
@@ -11,8 +11,8 @@
|
|
11
11
|
<%= '<%= webpack_stylesheet_url "superuser", media: "all", "data-turbolinks-track": "reload" %%>' %>
|
12
12
|
<%= '<%= webpack_javascript_url "superuser", "data-turbolinks-track": "reload" %%>' %>
|
13
13
|
<% else -%>
|
14
|
-
<%= '<%= stylesheet_link_tag "superuser",
|
15
|
-
<%= '<%=
|
14
|
+
<%= '<%= stylesheet_link_tag "superuser", "data-turbo-track": "reload" %%>' %>
|
15
|
+
<%= '<%= javascript_include_tag "superuser", "data-turbo-track": "reload", defer: true %%>' %>
|
16
16
|
<% end -%>
|
17
17
|
|
18
18
|
<!-- CDN for flatpickr.css -->
|
File without changes
|
File without changes
|
File without changes
|
data/lib/superuser/version.rb
CHANGED
data/lib/superuser.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superuser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -48,22 +48,30 @@ dependencies:
|
|
48
48
|
name: pagy
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '3.8'
|
54
51
|
- - ">="
|
55
52
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
53
|
+
version: '0'
|
57
54
|
type: :runtime
|
58
55
|
prerelease: false
|
59
56
|
version_requirements: !ruby/object:Gem::Requirement
|
60
57
|
requirements:
|
61
|
-
- - "
|
58
|
+
- - ">="
|
62
59
|
- !ruby/object:Gem::Version
|
63
|
-
version: '
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: sassc-rails
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
64
72
|
- - ">="
|
65
73
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
74
|
+
version: '0'
|
67
75
|
description: This gem will help you scaffold an admin area very quickly so you can
|
68
76
|
have full control over your code when you need customization
|
69
77
|
email:
|
@@ -110,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
118
|
- !ruby/object:Gem::Version
|
111
119
|
version: '0'
|
112
120
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
121
|
+
rubygems_version: 3.5.3
|
114
122
|
signing_key:
|
115
123
|
specification_version: 4
|
116
124
|
summary: Build An Admin Area Easily.
|