cm-admin 1.0.2 → 1.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 +4 -4
- data/.github/workflows/linters.yml +6 -2
- data/.gitignore +1 -1
- data/.stylelintrc.json +3 -0
- data/Gemfile.lock +18 -17
- data/app/assets/javascripts/cm_admin/scaffolds.js +5 -1
- data/app/assets/stylesheets/cm_admin/base/auth.scss +113 -0
- data/app/assets/stylesheets/cm_admin/base/common.scss +2 -2
- data/app/assets/stylesheets/cm_admin/base/form.scss +4 -0
- data/app/assets/stylesheets/cm_admin/base/table.scss +2 -1
- data/app/assets/stylesheets/cm_admin/cm_admin.css.scss +1 -0
- data/app/assets/stylesheets/cm_admin/helpers/_mixins.scss +1 -1
- data/app/assets/stylesheets/cm_admin/pages/history_page.scss +49 -0
- data/app/controllers/cm_admin/resource_controller.rb +23 -5
- data/app/views/cm_admin/main/_nested_fields.html.slim +1 -1
- data/app/views/cm_admin/main/_nested_table_form.html.slim +2 -2
- data/app/views/cm_admin/main/_tabs.html.slim +5 -1
- data/app/views/cm_admin/main/associated_show.html.slim +1 -1
- data/app/views/cm_admin/main/history.html.slim +17 -0
- data/app/views/cm_admin/main/new.html.slim +2 -5
- data/app/views/cm_admin/main/show.html.slim +1 -1
- data/app/views/layouts/_left_sidebar_nav.html.slim +15 -19
- data/config/routes.rb +9 -1
- data/lib/cm_admin/constants.rb +4 -0
- data/lib/cm_admin/model.rb +2 -2
- data/lib/cm_admin/models/action.rb +2 -1
- data/lib/cm_admin/models/dsl_method.rb +11 -15
- data/lib/cm_admin/models/section.rb +38 -0
- data/lib/cm_admin/version.rb +1 -1
- data/lib/cm_admin/view_helpers/form_helper.rb +55 -30
- data/lib/cm_admin/view_helpers/page_info_helper.rb +6 -0
- data/lib/generators/cm_admin/templates/application_policy.rb +4 -0
- data/package-lock.json +61 -61
- data/package.json +1 -1
- data/yarn.lock +6589 -6425
- metadata +6 -5
- data/.github/workflows/.stylelintrc.json +0 -3
- data/lib/cm_admin/models/cm_show_section.rb +0 -19
- data/tmp/cache/webpacker/last-compilation-digest-development +0 -1
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cm-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sajinmp
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -164,10 +164,10 @@ files:
|
|
164
164
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
165
165
|
- ".github/ISSUE_TEMPLATE/config.yml"
|
166
166
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
167
|
-
- ".github/workflows/.stylelintrc.json"
|
168
167
|
- ".github/workflows/linters.yml"
|
169
168
|
- ".gitignore"
|
170
169
|
- ".rspec"
|
170
|
+
- ".stylelintrc.json"
|
171
171
|
- ".travis.yml"
|
172
172
|
- CODE_OF_CONDUCT.md
|
173
173
|
- Gemfile
|
@@ -210,6 +210,7 @@ files:
|
|
210
210
|
- app/assets/stylesheets/cm_admin/helpers/_mixins.scss
|
211
211
|
- app/assets/stylesheets/cm_admin/helpers/_variable.scss
|
212
212
|
- app/assets/stylesheets/cm_admin/helpers/index.scss
|
213
|
+
- app/assets/stylesheets/cm_admin/pages/history_page.scss
|
213
214
|
- app/assets/stylesheets/cm_admin/pages/import_page.scss
|
214
215
|
- app/assets/stylesheets/cm_admin/scaffold.scss
|
215
216
|
- app/controllers/cm_admin/application_controller.rb
|
@@ -240,6 +241,7 @@ files:
|
|
240
241
|
- app/views/cm_admin/main/associated_show.html.slim
|
241
242
|
- app/views/cm_admin/main/dashboard.html.slim
|
242
243
|
- app/views/cm_admin/main/edit.html.slim
|
244
|
+
- app/views/cm_admin/main/history.html.slim
|
243
245
|
- app/views/cm_admin/main/import_form.html.slim
|
244
246
|
- app/views/cm_admin/main/index.html.slim
|
245
247
|
- app/views/cm_admin/main/new.html.slim
|
@@ -278,7 +280,6 @@ files:
|
|
278
280
|
- lib/cm_admin/models/action.rb
|
279
281
|
- lib/cm_admin/models/actions/blocks.rb
|
280
282
|
- lib/cm_admin/models/blocks.rb
|
281
|
-
- lib/cm_admin/models/cm_show_section.rb
|
282
283
|
- lib/cm_admin/models/column.rb
|
283
284
|
- lib/cm_admin/models/custom_action.rb
|
284
285
|
- lib/cm_admin/models/dsl_method.rb
|
@@ -287,6 +288,7 @@ files:
|
|
287
288
|
- lib/cm_admin/models/filter.rb
|
288
289
|
- lib/cm_admin/models/form_field.rb
|
289
290
|
- lib/cm_admin/models/importer.rb
|
291
|
+
- lib/cm_admin/models/section.rb
|
290
292
|
- lib/cm_admin/models/tab.rb
|
291
293
|
- lib/cm_admin/models/utils/associations.rb
|
292
294
|
- lib/cm_admin/utils.rb
|
@@ -334,7 +336,6 @@ files:
|
|
334
336
|
- package-lock.json
|
335
337
|
- package.json
|
336
338
|
- postcss.config.js
|
337
|
-
- tmp/cache/webpacker/last-compilation-digest-development
|
338
339
|
- yarn.lock
|
339
340
|
homepage: https://github.com/commutatus/cm-admin
|
340
341
|
licenses:
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module CmAdmin
|
2
|
-
module Models
|
3
|
-
class CmShowSection
|
4
|
-
|
5
|
-
attr_accessor :section_name, :available_section_fields, :display_if
|
6
|
-
|
7
|
-
def initialize(section_name, display_if, &block)
|
8
|
-
@available_section_fields = []
|
9
|
-
@section_name = section_name
|
10
|
-
@display_if = display_if || lambda { |arg| return true }
|
11
|
-
instance_eval(&block)
|
12
|
-
end
|
13
|
-
|
14
|
-
def field(field_name, options={})
|
15
|
-
@available_section_fields << CmAdmin::Models::Field.new(field_name, options)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
44c10d1e702ae7e3f4af6ad8684f30bfd32edcf9
|