solid_litequeen 0.8.0 → 0.8.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f307bf9d9eb772756d40395b38cef8f0f0a9cd905e1e0caff872855d9bedf3a6
|
4
|
+
data.tar.gz: 0a0a6528451d67eede41bf3a967a87aebf78da47e07adb4ebc8fab6e20b36d12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed7ae24cd435790f31d182634a344202d6f5c839cfedae4d41660113d13b394168fb4426fc6916aeb02d2ba81d2e06f9c208f42608cea508d5b650dc39d67ee4
|
7
|
+
data.tar.gz: 926ec78a8f509413478913ae70fde680992dc353a362250808125c5cac7b8e3c1d69c482dc987fc9f260763a9a67f8427ed1b7645e4a70a99ba34f51d13a2ac5
|
@@ -5,9 +5,6 @@ module SolidLitequeen
|
|
5
5
|
|
6
6
|
class DatabasesController < ApplicationController
|
7
7
|
def index
|
8
|
-
@databases = ActiveRecord::Base.configurations.configurations.select do |config|
|
9
|
-
config.adapter == "sqlite3" && config.env_name == Rails.env && config.database.present?
|
10
|
-
end
|
11
8
|
end
|
12
9
|
|
13
10
|
def show
|
@@ -46,12 +43,14 @@ module SolidLitequeen
|
|
46
43
|
# Get sort preferences from session or set defaults with string keys
|
47
44
|
sort_prefs = session[sort_key]&.with_indifferent_access || {
|
48
45
|
"sort_column" => nil,
|
49
|
-
"sort_direction" =>
|
46
|
+
"sort_direction" => nil
|
50
47
|
}
|
51
48
|
|
52
49
|
@sort_column = sort_prefs["sort_column"]
|
53
50
|
@sort_direction = sort_prefs["sort_direction"]
|
54
51
|
|
52
|
+
# debugger
|
53
|
+
|
55
54
|
@database_location = Base64.urlsafe_decode64(@database_id)
|
56
55
|
|
57
56
|
DynamicDatabase.establish_connection(
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<%= stylesheet_link_tag "solid_litequeen/application", media: "all", "data-turbo-track": "reload" %>
|
10
10
|
<script src="https://unpkg.com/@tailwindcss/browser@4"></script>
|
11
11
|
<style type="text/tailwindcss">
|
12
|
-
|
12
|
+
@plugins "form";
|
13
13
|
|
14
14
|
@theme {
|
15
15
|
--color-clifford: #da373d;
|
@@ -29,7 +29,7 @@
|
|
29
29
|
database_id: @database_id,
|
30
30
|
table: @table_name,
|
31
31
|
sort_column: column,
|
32
|
-
sort_direction: (@sort_column == column && @sort_direction == '
|
32
|
+
sort_direction: (@sort_column == column && @sort_direction == 'DESC') ? 'ASC' : 'DESC'
|
33
33
|
) %>
|
34
34
|
<%= '▼' if @sort_column == column && @sort_direction == 'DESC' %>
|
35
35
|
<%= '▲' if @sort_column == column && @sort_direction == 'ASC' %>
|
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.8.
|
4
|
+
version: 0.8.1
|
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-03-
|
11
|
+
date: 2025-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|