solid_litequeen 0.15.0 → 0.15.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: 686ed29322a1c0f9087555ef3aaae940cec628cfe12924821b7fcaa07574f412
4
- data.tar.gz: 21f1e4de62d85d782b54d8c1fca1b865298630bf6871a42504e67a57cb68d7d4
3
+ metadata.gz: 31714e5e8147a58b408fbc7198854d0c75ecd13e2a96d1602336f98f4fdf92f1
4
+ data.tar.gz: 54d3d08d55a038351d909863db7e6f127c3f7e27dab518a00dda87117daab48e
5
5
  SHA512:
6
- metadata.gz: 808bbb57b82887b1b68d8de4d5307c415a18a75573f91ce9e32c6167172f70b635db4b1cd4efc94fbee8b8a8c047523db394b45f9aa2ca5a986213763587afcf
7
- data.tar.gz: 7ccb9a625eecc5a084bc5737f5a7868d0d2342682ab46d74989d11305daef64324db08272dfe85e5950af49a0e3583fe4aa772b60ba1c33d1305c73b7ce39189
6
+ metadata.gz: a85fb56321a1a4354f9e93345c30e8c6263f3dc6ee998919f212f5c6fd7649cd2f2d853a2a2a5dd113436466b696ffcfd940e409990a465d4350be8898c220dd
7
+ data.tar.gz: f910587e5b2fe23a5cf1e0fc2738cf3e920c250ebc907c28cff6fbe37fad93e6e827bc1d1a4f17a01748613a4bba4a8168b5ad3ac1a55a1d6a98c9c0756e08e9
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # SolidLitequeen
2
- Short description and motivation.
2
+ Lite Queen is a Rails engine that allows you to manage SQLite databases in your Rails application. It provides a user-friendly interface to view and maintain your SQLite data directly from your app.
3
+
3
4
 
4
- ## Usage
5
- How to use my plugin.
6
5
 
7
6
  ## Installation
8
7
  Add this line to your application's Gemfile:
@@ -23,10 +22,10 @@ $ gem install solid_litequeen
23
22
 
24
23
  After we need to mount in `routes.rb`:
25
24
  ```ruby
26
- mount SolidLitequeen::Engine => "/solid_litequeen"
25
+ mount SolidLitequeen::Engine => "/sqlite"
27
26
  ```
28
27
 
29
- You can now navigate to `/solid_litequeen` to access the application
28
+ You can now navigate to `/sqlite` to access the application
30
29
 
31
30
 
32
31
 
@@ -15,6 +15,10 @@
15
15
  <script src="https://cdnjs.cloudflare.com/ajax/libs/dagre/0.8.5/dagre.min.js"></script>
16
16
  <style type="text/tailwindcss">
17
17
  @plugins "form";
18
+
19
+ :root{
20
+ /* color-scheme: light dark; */
21
+ }
18
22
 
19
23
  @theme {
20
24
  --color-clifford: #da373d;
@@ -24,6 +28,20 @@
24
28
  filter: invert(32%) sepia(65%) saturate(6380%) hue-rotate(219deg) brightness(98%) contrast(102%);
25
29
  }
26
30
 
31
+
32
+ /* popover fix for safari */
33
+ @media screen and (-webkit-min-device-pixel-ratio: 0) {
34
+ /* Safari-only CSS here */
35
+ _::-webkit-full-page-media, _:future, :root div[popover] {
36
+ position: fixed !important;
37
+ top: 50% !important;
38
+ left: 50% !important;
39
+ transform: translate(-50%, -50%) !important;
40
+ margin: 0 !important;
41
+ max-width: 90vw;
42
+ z-index: 1000;
43
+ }
44
+ }
27
45
 
28
46
  </style>
29
47
 
@@ -13,9 +13,13 @@
13
13
 
14
14
  <script>
15
15
  document.getElementById('database-select').addEventListener('change', function() {
16
- if (this.value) {
16
+ if(!this.value){
17
+ Turbo.visit('<%= database_path("") %>');
18
+ return
19
+ }
20
+
17
21
  Turbo.visit('<%= database_path("") %>' + this.value);
18
- }
22
+
19
23
  });
20
24
  </script>
21
25
  </div>
@@ -36,11 +36,11 @@
36
36
  <%# popover the the column info %>
37
37
  <% popover_id = "popover_#{column}_#{SecureRandom.hex(8)}" %>
38
38
 
39
- <button popovertarget="<%= popover_id %>" class="mr-1 p-1 hover:cursor-pointer">
39
+ <button popovertarget="<%= popover_id %>" class="mr-1 p-1 hover:cursor-pointer" style="anchor-name: --anchor_<%= popover_id %>;">
40
40
  <%= image_tag "solid_litequeen/icons/info.svg", class: "size-3.5" %>
41
41
  </button>
42
42
 
43
- <div popover id="<%= popover_id %>" class="max-w-lg min-h-10 m-auto bg-gray-100 border-gray-400 border p-4 rounded-md">
43
+ <div popover id="<%= popover_id %>" class="max-w-lg min-h-10 bg-gray-100 border-gray-400 border p-4 rounded-md" style="position-anchor: --anchor_<%= popover_id%>; top: anchor(--anchor_<%= popover_id%> bottom); left: anchor(--anchor_<%= popover_id%> right);">
44
44
  <table class="min-w-full divide-y divide-gray-200 border border-gray-200">
45
45
 
46
46
  <tbody class="bg-white divide-y divide-gray-200">
@@ -1,3 +1,3 @@
1
1
  module SolidLitequeen
2
- VERSION = "0.15.0"
2
+ VERSION = "0.15.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_litequeen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vik Borges
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-14 00:00:00.000000000 Z
11
+ date: 2025-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails