fino-rails 1.3.1 → 1.4.0
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/lib/fino/rails/app/controllers/fino/rails/archive_controller.rb +7 -0
- data/lib/fino/rails/app/views/fino/rails/archive/index.html.erb +33 -0
- data/lib/fino/rails/app/views/fino/rails/common/_sidebar.html.erb +4 -0
- data/lib/fino/rails/config/routes.rb +7 -3
- data/lib/fino/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3bbff266262c38b716a1912181b6a299266be3ee146de116e112e1fabf6e924
|
|
4
|
+
data.tar.gz: b76dcfa5d50fd1d559a62cdae4b10d3c82da688e345f68468551b9127d7daeb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f9951c6e629bde2029426053984b992fa9902a37ddee6b22763f0892b535e4aceb0e852e897f5cd1ffe5b8d76b3a4e607efeb187cf49029a498a3e356c4807f
|
|
7
|
+
data.tar.gz: 18820cb8d22e465b16bc4edb3b6d5742c5455d6f7f0eb9e98ab30dd85024582e20d388fadbfd743b513295dea71c11d47cd2e8135b648bf62c61f74df4a55991
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<div class="p-3">
|
|
2
|
+
<div class="border-b border-gray-200 pb-3 sm:flex sm:items-center sm:justify-between">
|
|
3
|
+
<h3 class="text-base font-semibold text-gray-900">Archive</h3>
|
|
4
|
+
|
|
5
|
+
<% if !@archived_setting_keys.empty? %>
|
|
6
|
+
<div class="mt-3 flex gap-2 sm:mt-0 sm:ml-4">
|
|
7
|
+
<%= link_to "Clear all", :back, class: "rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" %>
|
|
8
|
+
</div>
|
|
9
|
+
<% end %>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<div class="container mx-auto pt-3">
|
|
13
|
+
<% if @archived_setting_keys.empty? %>
|
|
14
|
+
<div class="outline outline-gray-200 rounded-xl">
|
|
15
|
+
<div class="p-3 text-center">
|
|
16
|
+
<h1 class="text-gray-900 font-semibold text-lg">There are no archived settings</h1>
|
|
17
|
+
<p class="text-gray-500">Setting becomes archived when you remove its definition from Fino configuration block</p>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<% else %>
|
|
21
|
+
<div class="outline outline-gray-200 rounded-xl">
|
|
22
|
+
<ul role="list" class="space-y-1 divide-y divide-gray-200">
|
|
23
|
+
<% @archived_setting_keys.each do |key| %>
|
|
24
|
+
<li class="text-sm/6 text-gray-900 font-semibold px-4 py-6 flex justify-between items-center">
|
|
25
|
+
<%= key %>
|
|
26
|
+
<%= link_to "Clear", :back, class: "inline-flex items-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-xs inset-ring inset-ring-gray-300 hover:bg-gray-50" %>
|
|
27
|
+
</li>
|
|
28
|
+
<% end %>
|
|
29
|
+
</ul>
|
|
30
|
+
</div>
|
|
31
|
+
<% end %>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
</svg>
|
|
13
13
|
Dashboard
|
|
14
14
|
<% end %>
|
|
15
|
+
|
|
16
|
+
<%= link_to archive_index_path, class: "flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold #{current_page?(:archive_index) ? 'text-indigo-600' : 'text-gray-700'} hover:bg-gray-100 hover:text-indigo-600" do %>
|
|
17
|
+
Archive
|
|
18
|
+
<% end %>
|
|
15
19
|
</div>
|
|
16
20
|
|
|
17
21
|
<div>
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
Fino::Rails::Engine.routes.draw do
|
|
4
4
|
root to: "dashboard#index"
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
resources :archive, only: %i[index]
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
scope "settings" do
|
|
9
|
+
get ":section", to: "sections#show", as: :settings_section
|
|
10
|
+
|
|
11
|
+
get ":section/:setting", to: "settings#edit", as: :edit_setting
|
|
12
|
+
put ":section/:setting", to: "settings#update", as: :update_setting
|
|
13
|
+
end
|
|
10
14
|
end
|
data/lib/fino/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fino-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Egor Iskrenkov
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 1.
|
|
18
|
+
version: 1.4.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 1.
|
|
25
|
+
version: 1.4.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: rails
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -49,11 +49,13 @@ files:
|
|
|
49
49
|
- lib/fino/rails.rb
|
|
50
50
|
- lib/fino/rails/app/assets/stylesheets/fino.css
|
|
51
51
|
- lib/fino/rails/app/controllers/fino/rails/application_controller.rb
|
|
52
|
+
- lib/fino/rails/app/controllers/fino/rails/archive_controller.rb
|
|
52
53
|
- lib/fino/rails/app/controllers/fino/rails/dashboard_controller.rb
|
|
53
54
|
- lib/fino/rails/app/controllers/fino/rails/sections_controller.rb
|
|
54
55
|
- lib/fino/rails/app/controllers/fino/rails/settings_controller.rb
|
|
55
56
|
- lib/fino/rails/app/helpers/fino/rails/application_helper.rb
|
|
56
57
|
- lib/fino/rails/app/helpers/fino/rails/settings_helper.rb
|
|
58
|
+
- lib/fino/rails/app/views/fino/rails/archive/index.html.erb
|
|
57
59
|
- lib/fino/rails/app/views/fino/rails/common/_flash.html.erb
|
|
58
60
|
- lib/fino/rails/app/views/fino/rails/common/_sidebar.html.erb
|
|
59
61
|
- lib/fino/rails/app/views/fino/rails/common/_topbar.html.erb
|