katalyst-koi 4.5.1 → 4.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3debdf70dd6f69a2e6a42147cd502b1f57146c7940669b32f8a1719fc4841357
4
- data.tar.gz: 171adc3e86cf8fa2e16cdfceeada0d6893f0841a82dafac9f69f64b738dcd0c4
3
+ metadata.gz: 8b6f03c1f71f4d12592a74541da5b76edc1b94f80e3c2b1a6582e52e0e1ce750
4
+ data.tar.gz: b4aa3f10eb7ba78bfa6911b5326de2d5bb2eb5be4afda4e6b515ed61f7d533d0
5
5
  SHA512:
6
- metadata.gz: e34a31d33b62cb0eda69e800a8550c6ad5822e1235d7e84eb31b868214cf9ca385b0241f01fb6d21eec8cb3d4f1c1fc94d4e188cb89ecdc934b07bc7deee1797
7
- data.tar.gz: 63244aa467830110994f070c7d702db0882fd4eec10205c1e4c85fd7578df3876056d8a64c33a7465f0c01e101f4bccc350f66fda2e0fb842b4f465cd085c06f
6
+ metadata.gz: 34fd05d75e17882b1376baecd24b60c86654b09bec9cada200e7dfa9c84732b6f29075040b2df72502fdfcb13dffa18dd8a8f3c8a6cdeffc9eb9102c417d9234
7
+ data.tar.gz: 5688b452bf1c66593afb831c15a94b11e9d23ce47928d005c9ba607559ae1d0162bec318dfa244f07ebe753ab77ceb7b364801932a80fcdf02b055e1373cfba5
@@ -9,7 +9,7 @@ module Admin
9
9
 
10
10
  def create
11
11
  admin = Admin::User.find(params[:id])
12
- token = encode_token(admin_id: admin.id, exp: 5.minutes.from_now.to_i, iat: Time.now.to_i)
12
+ token = encode_token(admin_id: admin.id, exp: 5.minutes.from_now.to_i, iat: Time.current.to_i)
13
13
 
14
14
  render locals: { token: }
15
15
  end
@@ -2,7 +2,7 @@
2
2
  <h2 class="site-name"><%= URI.parse(root_url).host %></h2>
3
3
  <%# show username on nav header and Koi Admin on login page %>
4
4
  <% if local_assigns[:admin].present? %>
5
- <%= link_to admin.name, admin_admin_user_path(admin), class: "admin-name" %>
5
+ <%= link_to admin.name, main_app.admin_admin_user_path(admin), class: "admin-name" %>
6
6
  <% else %>
7
7
  <h3 class="admin-name">Koi Admin</h3>
8
8
  <% end %>
@@ -17,7 +17,7 @@
17
17
  <!-- STYLES -->
18
18
  <link rel="stylesheet" href="https://unpkg.com/modern-css-reset/dist/reset.min.css">
19
19
  <link rel="stylesheet" href="https://rsms.me/inter/inter.css">
20
- <%= stylesheet_link_tag "koi/admin", "data-turbo-track": "reload" %>
20
+ <%= stylesheet_link_tag Koi.config.admin_stylesheet, "data-turbo-track": "reload" %>
21
21
 
22
22
  <!-- SCRIPTS -->
23
23
  <%= javascript_importmap_tags "koi/admin" %>
data/lib/koi/config.rb CHANGED
@@ -10,5 +10,7 @@ module Koi
10
10
  config_accessor(:resource_name_candidates) { %i[title name] }
11
11
 
12
12
  config_accessor(:image_size_limit) { 10.megabytes }
13
+
14
+ config_accessor(:admin_stylesheet) { "koi/admin" }
13
15
  end
14
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-koi
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.1
4
+ version: 4.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-12 00:00:00.000000000 Z
11
+ date: 2024-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails