railscope 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 407d8ab344bde0dfb68984086462f3aef07114a6d372ce5f6a2a4fb4ca4c5fd1
4
- data.tar.gz: 1dff09145783ff05482bf3d9d118401d325d2373e0bdc8fa3a1ae74885713623
3
+ metadata.gz: dc29cf9c10caee093f9522baf082ee343928f114a9eea9490caf1b5107b410e1
4
+ data.tar.gz: e705db77c3b666499073046ed0cccfcdbacc8871024bb6d8393d6a875b55a93b
5
5
  SHA512:
6
- metadata.gz: 3283c7964a1b56b8b89ee354204394d8d5aff9b1d0d7c36d49e2ed45d1d3a0c0382da567e869b9b3b836fbf4a4d9c261beed24efee8931f96e529e8e04d329e0
7
- data.tar.gz: 8ef7eaf49c58775642fa9c0cb8a05c451d7f9e07b87315dbdb5c5990eed590c2d66a8d889b40feef213c97cf0ebb6f18edd3606fcc9215dde30e5ae578a43905
6
+ metadata.gz: 0d49c922528f889a0c751ff9865da540a92250097b29108f7eb43be36598fd12addad625a6651100cac745fe553d76d4030c90af718611c0d94672fabc14ea87
7
+ data.tar.gz: 78be37fbf93b9e6128be9135bc47995fbd65f6dc60cae1067c42b13ad2ee375e6365d92cb63cc698352d63d797e910869e19f060f352a77dbf42a80b88412b8f
@@ -5,10 +5,11 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Railscope</title>
7
7
  <%= csrf_meta_tags %>
8
- <link rel="stylesheet" href="<%= railscope.root_path %>assets/app.css">
8
+ <meta name="railscope-version" content="<%= Railscope::VERSION %>">
9
+ <link rel="stylesheet" href="<%= railscope.root_path %>assets/app.css?v=<%= Railscope::VERSION %>">
9
10
  </head>
10
11
  <body class="bg-[#0d1117] text-[#c9d1d9]">
11
12
  <%= yield %>
12
- <script type="module" src="<%= railscope.root_path %>assets/app.js"></script>
13
+ <script type="module" src="<%= railscope.root_path %>assets/app.js?v=<%= Railscope::VERSION %>"></script>
13
14
  </body>
14
15
  </html>
@@ -4,21 +4,11 @@ import { cn } from '@/lib/utils'
4
4
  const navigation = [
5
5
  { name: 'Requests', href: '/requests', icon: RequestIcon },
6
6
  { name: 'Commands', href: '/commands', icon: CommandIcon },
7
- { name: 'Schedule', href: '/schedule', icon: ScheduleIcon },
8
7
  { name: 'Jobs', href: '/jobs', icon: JobIcon },
9
8
  { name: 'Exceptions', href: '/exceptions', icon: ExceptionIcon },
10
- { name: 'Logs', href: '/logs', icon: LogIcon },
11
- { name: 'Dumps', href: '/dumps', icon: DumpIcon },
12
9
  { name: 'Queries', href: '/queries', icon: QueryIcon },
13
10
  { name: 'Models', href: '/models', icon: ModelIcon },
14
- { name: 'Events', href: '/events', icon: EventIcon },
15
- { name: 'Mail', href: '/mail', icon: MailIcon },
16
- { name: 'Notifications', href: '/notifications', icon: NotificationIcon },
17
- { name: 'Gates', href: '/gates', icon: GateIcon },
18
- { name: 'Cache', href: '/cache', icon: CacheIcon },
19
- { name: 'Redis', href: '/redis', icon: RedisIcon },
20
11
  { name: 'Views', href: '/views', icon: ViewIcon },
21
- { name: 'HTTP Client', href: '/client-requests', icon: ClientRequestIcon },
22
12
  ]
23
13
 
24
14
  export default function Sidebar() {
@@ -54,7 +44,7 @@ export default function Sidebar() {
54
44
  </nav>
55
45
 
56
46
  <div className="p-4 border-t border-dark-border text-xs text-dark-muted">
57
- Railscope v0.1.0
47
+ Railscope v{document.querySelector('meta[name="railscope-version"]')?.getAttribute('content') || '0.0.0'}
58
48
  </div>
59
49
  </aside>
60
50
  )
@@ -76,14 +66,6 @@ function CommandIcon({ className }: { className?: string }) {
76
66
  )
77
67
  }
78
68
 
79
- function ScheduleIcon({ className }: { className?: string }) {
80
- return (
81
- <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
82
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
83
- </svg>
84
- )
85
- }
86
-
87
69
  function JobIcon({ className }: { className?: string }) {
88
70
  return (
89
71
  <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -100,22 +82,6 @@ function ExceptionIcon({ className }: { className?: string }) {
100
82
  )
101
83
  }
102
84
 
103
- function LogIcon({ className }: { className?: string }) {
104
- return (
105
- <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
106
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
107
- </svg>
108
- )
109
- }
110
-
111
- function DumpIcon({ className }: { className?: string }) {
112
- return (
113
- <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
114
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z" />
115
- </svg>
116
- )
117
- }
118
-
119
85
  function QueryIcon({ className }: { className?: string }) {
120
86
  return (
121
87
  <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -132,54 +98,6 @@ function ModelIcon({ className }: { className?: string }) {
132
98
  )
133
99
  }
134
100
 
135
- function EventIcon({ className }: { className?: string }) {
136
- return (
137
- <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
138
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
139
- </svg>
140
- )
141
- }
142
-
143
- function MailIcon({ className }: { className?: string }) {
144
- return (
145
- <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
146
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
147
- </svg>
148
- )
149
- }
150
-
151
- function NotificationIcon({ className }: { className?: string }) {
152
- return (
153
- <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
154
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" />
155
- </svg>
156
- )
157
- }
158
-
159
- function GateIcon({ className }: { className?: string }) {
160
- return (
161
- <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
162
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
163
- </svg>
164
- )
165
- }
166
-
167
- function CacheIcon({ className }: { className?: string }) {
168
- return (
169
- <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
170
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4" />
171
- </svg>
172
- )
173
- }
174
-
175
- function RedisIcon({ className }: { className?: string }) {
176
- return (
177
- <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
178
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4" />
179
- </svg>
180
- )
181
- }
182
-
183
101
  function ViewIcon({ className }: { className?: string }) {
184
102
  return (
185
103
  <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -188,11 +106,3 @@ function ViewIcon({ className }: { className?: string }) {
188
106
  </svg>
189
107
  )
190
108
  }
191
-
192
- function ClientRequestIcon({ className }: { className?: string }) {
193
- return (
194
- <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
195
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9" />
196
- </svg>
197
- )
198
- }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Railscope
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end