lato 3.11.10 → 3.11.12
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/README.md +6 -6
- data/app/assets/javascripts/lato/controllers/lato_confirm_controller.js +9 -0
- data/app/views/layouts/lato/_action.html.erb +1 -1
- data/app/views/layouts/lato/_confirm.html.erb +1 -1
- data/app/views/layouts/lato/application.html.erb +1 -1
- data/lib/lato/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 007da36b953585b304144bf9eb4e257cd9ded2a731c7f37a7ff2c90cd3b9085b
|
4
|
+
data.tar.gz: e8389f60e7ca1dbc4fd9eda84b9cdc0e59e135073b2d2e7652bb3de1ff4ac6a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 779f705e3a34e99000c1c3020661634d0032c46f38d34965b4e0943118daf3e85a8ecf5eeef71de3b84c8e79d9af67245b4d3ded4c7305e23678083885f823bb
|
7
|
+
data.tar.gz: ae574718db31cb7e5fb159c7730d5265f5272a570f14b8ac2938cd445a3fa994edb84dcd7e1d50cec7189ff27a6ed625e1ee5f7bf11da827536846c28c89aa19
|
data/README.md
CHANGED
@@ -5,15 +5,15 @@
|
|
5
5
|
Lato is a Rails Engine to deliver a full featured web panel for your [Rails](https://rubyonrails.org/) application.
|
6
6
|
|
7
7
|
This gem includes:
|
8
|
-
- User management with full authentication (signin, signup, recover password, email validation, Google Authenticator multi-factor authentication, ETH wallet connection);
|
9
|
-
- Web
|
10
|
-
-
|
8
|
+
- User management with **full authentication system** (signin, signup, recover password, email validation, Google Authenticator multi-factor authentication, ETH wallet connection) and **account management** (user settings, password change, email change, etc.);
|
9
|
+
- **Web interface** built with [Bootstrap](https://getbootstrap.com/) and [Bootstrap Icons](https://icons.getbootstrap.com/);
|
10
|
+
- **UI components integrated with Rails** (data tables, forms, modals, async job executions etc.);
|
11
11
|
|
12
|
-
The gem is
|
12
|
+
The gem is **agnostic to the application stack**. You can use it with different databases (PostgreSQL, MySQL, SQLite), different Job processors (Solid queue, Sidekiq, Delayed Job, etc.), different cache systems (Redis, Memcached, etc.).
|
13
13
|
|
14
|
-
The gem is
|
14
|
+
The gem is designed to be easily **customizable and extendable**. You can fully customize the UI and the functionalities of the panel. You can also add new functionalities and components to the panel on the main application or develop new engines to extend the panel.
|
15
15
|
|
16
|
-
The front-end is designed to be responsive, mobile friendly and accessible.
|
16
|
+
The gem is ready to be used with the **latest Rails 7+** features like **[ESM import maps](https://github.com/rails/importmap-rails)**, **[Turbo](https://turbo.hotwired.dev/)** and **[Stimulus](https://stimulus.hotwired.dev)**. The front-end is designed to be responsive, mobile friendly and accessible.
|
17
17
|
|
18
18
|
<img src="./preview.gif" alt="Lato preview" width="100%">
|
19
19
|
|
@@ -8,6 +8,15 @@ export default class extends Controller {
|
|
8
8
|
connect() {
|
9
9
|
this.modal = new bootstrap.Modal(this.element)
|
10
10
|
Turbo.setConfirmMethod(this.customConfirm.bind(this))
|
11
|
+
|
12
|
+
this.element.style.zIndex = 2001
|
13
|
+
this.element.addEventListener('show.bs.modal', () => {
|
14
|
+
// update backdrop z-index to be sure is always above other modals
|
15
|
+
setTimeout(() => { // use setTimeout because bsModalBackdropElement is not always ready after 'show.bs.modal' event
|
16
|
+
const bsModalBackdropElement = this.modal._backdrop._element
|
17
|
+
if (bsModalBackdropElement) bsModalBackdropElement.style.zIndex = 2000
|
18
|
+
}, 1)
|
19
|
+
})
|
11
20
|
}
|
12
21
|
|
13
22
|
disconnect() {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% 10.times do %>
|
2
2
|
|
3
|
-
<div class="modal fade" data-lato-action-target="modal" tabindex="-1" aria-hidden="true">
|
3
|
+
<div class="modal fade" data-lato-action-target="modal" tabindex="-1" aria-hidden="true" data-bs-keyboard="false">
|
4
4
|
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable" data-lato-action-target="modalDialog">
|
5
5
|
<div class="modal-content">
|
6
6
|
<div class="modal-header">
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="lato-confirm modal fade" data-controller="lato-confirm" tabindex="-1" aria-hidden="true" data-bs-
|
1
|
+
<div class="lato-confirm modal fade" data-controller="lato-confirm" tabindex="-1" aria-hidden="true" data-bs-keyboard="false">
|
2
2
|
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
|
3
3
|
<div class="modal-content">
|
4
4
|
<div class="modal-header">
|
@@ -52,9 +52,9 @@
|
|
52
52
|
<%= render 'layouts/lato/aside-opener' %>
|
53
53
|
<% end %>
|
54
54
|
|
55
|
+
<%= render 'layouts/lato/action' %>
|
55
56
|
<%= render 'layouts/lato/confirm' %>
|
56
57
|
<%= render 'layouts/lato/feedbacks' %>
|
57
|
-
<%= render 'layouts/lato/action' %>
|
58
58
|
<%= render 'layouts/lato/network' %>
|
59
59
|
|
60
60
|
<%= render 'layouts/lato/foot_content' %>
|
data/lib/lato/version.rb
CHANGED