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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b6f03c1f71f4d12592a74541da5b76edc1b94f80e3c2b1a6582e52e0e1ce750
|
4
|
+
data.tar.gz: b4aa3f10eb7ba78bfa6911b5326de2d5bb2eb5be4afda4e6b515ed61f7d533d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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
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.
|
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-
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|