slash_console 0.1.4 → 0.1.5
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/CHANGELOG.md +7 -0
- data/app/views/slash_console/console/index.html.erb +18 -33
- data/lib/slash_console/engine.rb +9 -3
- data/lib/slash_console/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: '09b6efbfc6effb15fae37a397c78d62ae8408e98d44819f64eadac99f438c0f9'
|
4
|
+
data.tar.gz: 6e5f82dd8814dda0aa99f4b7d5875e406977e78f01099fe98e68684be306361b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a2714e7502c931378d6f9fdd3598ce60c8577fc159bd214bd23826f64b3218c6115d2294a5ac885a7a4d4f3c17fee0e09aa07c241210bd7379ea1af78ba1b7b
|
7
|
+
data.tar.gz: e0219858fd1e1b7f768a71d0d35d9fe2b711804b30e4f9a5297fafd007990986a84194b6007e6aca84b7fb9980c09bbde7b943d46c981986af5ca32487f59619
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.1.5] - 2025-09-15
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- Load web-console extensions explicitly to fix blank page in production
|
14
|
+
- Add full-page CSS for console element to ensure proper display
|
15
|
+
- Use modern viewport units (100svh) for better mobile compatibility
|
16
|
+
|
10
17
|
## [0.1.4] - 2025-09-15
|
11
18
|
|
12
19
|
### Fixed
|
@@ -1,36 +1,21 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
<head>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
display: block !important;
|
22
|
-
position: fixed !important;
|
23
|
-
top: 0 !important;
|
24
|
-
left: 0 !important;
|
25
|
-
right: 0 !important;
|
26
|
-
bottom: 0 !important;
|
27
|
-
width: 100vw !important;
|
28
|
-
height: 100vh !important;
|
29
|
-
z-index: 999999 !important;
|
30
|
-
}
|
31
|
-
</style>
|
32
|
-
</head>
|
33
|
-
<body>
|
34
|
-
<!-- The console helper will inject the web-console here -->
|
35
|
-
</body>
|
3
|
+
<head>
|
4
|
+
<title>Rails Console</title>
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body, html {
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
height: 100svh;
|
11
|
+
overflow: hidden;
|
12
|
+
}
|
13
|
+
#console {
|
14
|
+
height: 100svh !important;
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<!-- Console will be injected here by web-console middleware -->
|
20
|
+
</body>
|
36
21
|
</html>
|
data/lib/slash_console/engine.rb
CHANGED
@@ -5,10 +5,16 @@ module SlashConsole
|
|
5
5
|
config.before_initialize do
|
6
6
|
Rails.application.config.web_console ||= ActiveSupport::OrderedOptions.new
|
7
7
|
Rails.application.config.web_console.development_only = false
|
8
|
+
Rails.application.config.web_console.allowed_ips = "0.0.0.0/0"
|
9
|
+
end
|
8
10
|
|
9
|
-
|
10
|
-
|
11
|
-
|
11
|
+
initializer "slash_console.load_web_console_extensions", before: :load_config_initializers do
|
12
|
+
require "bindex"
|
13
|
+
require "web_console/extensions"
|
14
|
+
end
|
15
|
+
|
16
|
+
initializer "slash_console.insert_middleware", after: :load_config_initializers do |app|
|
17
|
+
app.config.middleware.insert_after ActionDispatch::DebugExceptions, WebConsole::Middleware
|
12
18
|
end
|
13
19
|
|
14
20
|
initializer "slash_console.mount_engine" do |app|
|