admin_suite 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa02eb4d89f039fb322c1d967a8a8183d7a8d08073a1ca5efa3162722a44d4ad
4
- data.tar.gz: e266e08457f21f178029a2321b0bef62826ae2ff17ff4ddee5163a856aabc807
3
+ metadata.gz: dbd2bda3cff05667e7f164b70d06c7f91e4ba7cde4dfe720291720fe589cfde6
4
+ data.tar.gz: c2fea65bd3721677eee67904174664038c9e256d347770775bbfc3a3714bceb2
5
5
  SHA512:
6
- metadata.gz: 5180c720a4df074f35dfe87133beb75cdaca7e0b37d104d98bfd362366fd52c79f531510e8f6af1c149fce616687d9515727d5238c29881564658c2a4f51c831
7
- data.tar.gz: 92a32f372ae2a098421b322da249fd8139710d8ebd1c9b598c105305ae95c8b0340c2d0976190dba529687e089877c8d4f703aa3ea66d8524837ca915d71aa29
6
+ metadata.gz: 68580753a81e6e77b5a3cda22038f5d62919ab22e3bb00746504e18578847119528872f0bf94960c6d7d0df3ceb06a7df723ae872e8cce7d6d240fc0a5c08ab6
7
+ data.tar.gz: b342407db536c0cd5f7264aff7ea6fa57f224b03b66d2675b1b928394490ee743424ea7608ff9845e71e391765ecac7da0823e101b1922cea9c8613dae44c48a
@@ -0,0 +1 @@
1
+ pin_all_from File.expand_path("../app/javascript/controllers", __dir__), under: "controllers"
data/config/routes.rb ADDED
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ AdminSuite::Engine.routes.draw do
4
+ root to: "dashboard#index"
5
+
6
+ # Docs viewer (host filesystem-backed). Must be defined before `:portal` route.
7
+ get "docs(/)", to: "docs#index", as: :docs
8
+ get "docs/*path", to: "docs#show", as: :doc, format: false
9
+
10
+ # Portal dashboards (e.g. /ops, /email). Accept optional trailing slash.
11
+ get ":portal(/)", to: "portals#show", as: :portal
12
+
13
+ # Generic resource routes (dynamic)
14
+ scope ":portal/:resource_name" do
15
+ get "/", to: "resources#index", as: :resources
16
+ get "/new", to: "resources#new", as: :new_resource
17
+ post "/", to: "resources#create"
18
+ get "/:id", to: "resources#show", as: :resource
19
+ get "/:id/edit", to: "resources#edit", as: :edit_resource
20
+ patch "/:id", to: "resources#update"
21
+ put "/:id", to: "resources#update"
22
+ delete "/:id", to: "resources#destroy"
23
+
24
+ post "/:id/execute_action/:action_name", to: "resources#execute_action", as: :execute_action
25
+ post "/bulk_action/:action_name", to: "resources#bulk_action", as: :bulk_action
26
+ end
27
+
28
+ post ":portal/:resource_name/:id/toggle", to: "resources#toggle", as: :resource_toggle
29
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module AdminSuite
4
4
  module Version
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
 
8
8
  # Backward-compatible constant.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin_suite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TechWright Labs
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
10
+ date: 2026-02-07 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -166,6 +166,8 @@ files:
166
166
  - app/views/admin_suite/shared/_toggle_cell.html.erb
167
167
  - app/views/admin_suite/shared/_topbar.html.erb
168
168
  - app/views/layouts/admin_suite/application.html.erb
169
+ - config/importmap.rb
170
+ - config/routes.rb
169
171
  - docs/README.md
170
172
  - docs/actions.md
171
173
  - docs/configuration.md
@@ -273,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
275
  - !ruby/object:Gem::Version
274
276
  version: '0'
275
277
  requirements: []
276
- rubygems_version: 3.6.7
278
+ rubygems_version: 3.6.2
277
279
  specification_version: 4
278
- summary: Reusable admin suite engine for Gleania products.
280
+ summary: Reusable admin suite engine
279
281
  test_files: []