data_pact 0.1.1 → 0.1.21

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: 3ad22ffefe24c4b6638d94ae5712dd889807284b21bab08daca987a95bfa4044
4
- data.tar.gz: db37fd0cf41eacb31523c7b89cde4f093b48fc287ca7b6649649102589f17c20
3
+ metadata.gz: bd60138d89edaccd6d3af12e2707466f902fa8fd829ac0519ebea8a8d729ea05
4
+ data.tar.gz: a83694196765d57ad7f50e5e14ddd9a07a63117f689ce2ccea1306a473520381
5
5
  SHA512:
6
- metadata.gz: daf8e31fd23ec361163d9a88d9a0ccb9e96411e661eaa06f8dade8f0c8245628166508a7a71af1ae5f38ed4b214c06d05a9585a755f251d73b21e9548b0c28fa
7
- data.tar.gz: 46d269af7bd85db352507970e342a536f5da8e5b8719ae91d4751f2b81ccbabd858bbb2b80b8ea0b10c301f861e81d4aab8483016d4f2da224e1a51966127dae
6
+ metadata.gz: 5f545d3f23194fcf52f573e70692e97699f53bef28aa40fb004b7048b9fdf13975324eb0f84452ad0c25caf83b2ed1a6512cfd2fa728f82071ebe9d73ce800f9
7
+ data.tar.gz: 3f4159c8d145bce31816ee7cdf3992c007054ea69dab7659d1178c1b25c112f1995797a7835fff5bed7ce4340a970e4a710788a286556a3445373f3db3d0c437
data/README.md CHANGED
@@ -21,6 +21,11 @@ Or install it yourself as:
21
21
  $ gem install data_pact
22
22
  ```
23
23
 
24
+ Mount the engine in your `config/routes.rb` file:
25
+ ```ruby
26
+ mount DataPact::Engine => "/data_pact"
27
+ ```
28
+
24
29
  ## Contributing
25
30
  Contribution directions go here.
26
31
 
@@ -1,5 +1,10 @@
1
1
  module DataPact
2
2
  class ApplicationController < ActionController::Base
3
+
4
+ def index
5
+ redirect_to routes_path
6
+ end
7
+
3
8
  def routes
4
9
  @routes = Rails.application.routes.routes.map do |route|
5
10
  {
@@ -10,9 +15,19 @@ module DataPact
10
15
  controller_action: [route.defaults[:controller], '#', route.defaults[:action]].join,
11
16
  }
12
17
  end
18
+
19
+ respond_to do |format|
20
+ format.html
21
+ format.json do
22
+ end
23
+ end
13
24
  end
14
25
 
15
26
  def settings
16
27
  end
28
+
29
+ def jobs
30
+ @jobs = Sidekiq::Queue.all.flat_map(&:to_a).sort_by(&:enqueued_at)
31
+ end
17
32
  end
18
33
  end
@@ -0,0 +1,24 @@
1
+ <div class="px-4">
2
+ <div class="overflow-x-auto">
3
+ <table class="table table-sm">
4
+ <thead>
5
+ <tr>
6
+ <th>Enqueued At</th>
7
+ <th>Class</th>
8
+ <th>Queue</th>
9
+ <th>Args</th>
10
+ </tr>
11
+ </thead>
12
+ <tbody>
13
+ <% @jobs.each do |job| %>
14
+ <tr>
15
+ <td class="whitespace-nowrap"><%= Time.at(job['enqueued_at']).strftime('%b %d %H:%M') %></td>
16
+ <td><%= job['class'] %></td>
17
+ <td><%= job['queue'] %></td>
18
+ <td><%= job['args'] %></td>
19
+ </tr>
20
+ <% end %>
21
+ </tbody>
22
+ </table>
23
+ </div>
24
+ </div>
@@ -1,7 +1,9 @@
1
- <div class="flex flex-col gap-y-2">
1
+ <div x-data="routes" class="flex flex-col gap-y-2">
2
+ <div class="form-control w-1/2">
3
+ <input x-model="searchTerm" type="text" placeholder="Search" class="input input-bordered w-24 md:w-auto"/>
4
+ </div>
2
5
  <% @routes.each do |route_data| %>
3
- <div class="collapse collapse-arrow bg-base-200">
4
- <input type="radio" name="my-accordion-2" checked="checked"/>
6
+ <div x-show="showRoute($el)" class="collapse collapse-arrow bg-base-200" data-route="<%= route_data.inspect %>">
5
7
  <div class="collapse-title text-xl font-medium flex items-center">
6
8
  <div class="flex items-center gap-6 flex-1">
7
9
  <%= tag.div route_data.fetch(:verb), class: 'badge badge-neutral badge-lg' if route_data[:verb].present? %>
@@ -14,4 +16,33 @@
14
16
  </div>
15
17
  </div>
16
18
  <% end %>
17
- </div>
19
+ </div>
20
+
21
+ <script type="text/javascript" charset="utf-8">
22
+ document.addEventListener('alpine:init', () => {
23
+ Alpine.data('routes', () => ({
24
+ searchTerm: '',
25
+ showRoute(e) {
26
+ if (this.searchTerm === '') return true
27
+
28
+
29
+
30
+ // fetch('/routes', {
31
+ // headers: {
32
+ // 'Content-Type': 'application/json'
33
+ // },
34
+ // body: JSON.stringify({search_term: this.searchTerm})
35
+ // })
36
+ // .then(response => response.json())
37
+ // .then(data => {
38
+ // console/.log(data)
39
+ // })
40
+ // .catch(error => console.error(error)
41
+ // )
42
+ // let string = e.dataset.route
43
+ // let regex = new RegExp(this.searchTerm, 'i')
44
+ // return regex.test(string)
45
+ }
46
+ }))
47
+ })
48
+ </script>
@@ -35,13 +35,13 @@
35
35
 
36
36
  <div class="grid grid-cols-3 gap-4">
37
37
  <% @session_data.each do |session_key, value| %>
38
- <div class="card bg-base-100 shadow-xl">
38
+ <div class="card bg-base-100 shadow-xl">
39
39
  <div class="card-body">
40
40
  <div class="flex items-center justify-between">
41
41
  <h2 class="card-title"><%= session_key %></h2>
42
42
  <div class="card-actions justify-end">
43
- <%= button_to session_data_path, method: :delete, params: { session_key_name: session_key }, class: 'btn btn-square btn-sm' do %>
44
- <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-trash hover:stroke-white" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round">
43
+ <%= button_to session_data_path, method: :delete, params: { session_key_name: session_key } do %>
44
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-trash hover:stroke-white" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round">
45
45
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
46
46
  <path d="M4 7l16 0"/>
47
47
  <path d="M10 11l0 6"/>
@@ -13,279 +13,27 @@
13
13
 
14
14
  </head>
15
15
  <body>
16
- <script type="text/javascript" charset="utf-8">
16
+ <script type="text/javascript" charset="utf-8">
17
17
  (function () {
18
18
  document.body.dataset.theme = localStorage.getItem('theme') || 'light';
19
19
  })();
20
20
  </script>
21
21
 
22
- <div class="h-screen w-screen">
23
- <!-- Code block starts -->
24
- <nav role="navigation" class="md:px-6 lg:px-4 w-full mx-auto hidden md:block bg-white dark:bg-gray-800 shadow-md">
25
- <div class="container mx-6 justify-between h-20 flex items-center bg-white dark:bg-gray-800 md:items-stretch mx-auto border-b border-gray-200">
26
- <div class="h-full flex items-center">
27
- <button role="img" aria-label="logo" class="focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-700 mr-10 flex items-center">
28
- <img class="dark:bg-white p-1 rounded-full" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg1.svg" alt="logo"/>
29
- </button>
30
- <ul class="pr-12 md:flex items-center h-full hidden">
31
- <!-- <li>-->
32
- <!-- <a href="javascript:void(0)" class="focus:outline-none border-b-2 border-transparent font-medium cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-800 dark:text-white tracking-normal ">Requests</a>-->
33
- <!-- </li>-->
34
- <!-- <li>-->
35
- <!-- <a href="javascript:void(0)" class="focus:outline-none border-b-2 border-transparent font-medium cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-800 dark:text-white mx-6 tracking-normal">Queries</a>-->
36
- <!-- </li>-->
37
- <li>
38
- <a href="<%= session_data_path %>" class="focus:outline-none border-b-2 border-transparent font-medium cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-800 dark:text-white mr-6 tracking-normal">Session
39
- Data</a>
40
- </li>
41
- <li>
42
- <a href="/datapact/routes" class="focus:outline-none border-b-2 border-transparent font-medium cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-800 dark:text-white mr-6 tracking-normal">Routes</a>
43
- </li>
44
- <li>
45
- <a href="<%= settings_path %>" class="focus:outline-none border-b-2 border-transparent font-medium cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-800 dark:text-white mr-6 tracking-normal">Settings</a>
46
- </li>
47
- </ul>
48
- </div>
49
- <!-- <div class="md:flex items-center justify-end hidden">-->
50
- <!-- <div class="flex items-center">-->
51
- <!-- <div class="md:pr-10 lg:pr-0 h-full flex items-center">-->
52
- <!-- <div class="relative">-->
53
- <!-- <div class="text-gray-600 dark:text-gray-200 absolute ml-3 inset-0 m-auto lg:w-4 lg:h-4 md:w-6 md:h-6">-->
54
- <!-- <img class="text-gray-600 dark:text-gray-200 stroke-current icon icon-tabler icon-tabler-search" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg2.svg" alt="search"/>-->
55
- <!-- </div>-->
56
- <!-- <input class="hidden lg:block border border-gray-200 focus:outline-none focus:border-indigo-700 w-64 rounded text-sm text-gray-800 dark:text-white pl-8 py-2" type="text" placeholder="Search here"/>-->
57
- <!-- </div>-->
58
- <!-- </div>-->
59
- <!-- <div class="h-full flex items-center">-->
60
- <!-- <button aria-label="show notifications" class="relative focus:outline-none focus:text-indigo-700 hover:text-indigo-700 focus:border-indigo-700 hover:border-indigo-700 mx-5 h-full flex items-center justify-center text-gray-600 dark:text-gray-200 cursor-pointer">-->
61
- <!-- <svg class="icon icon-tabler icon-tabler-bell" xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">-->
62
- <!-- <path stroke="none" d="M0 0h24v24H0z"/>-->
63
- <!-- <path d="M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6"/>-->
64
- <!-- <path d="M9 17v1a3 3 0 0 0 6 0v-1"/>-->
65
- <!-- </svg>-->
66
- <!-- <div class="absolute top-0 left-4 mt-0 mr-4 pr-1 pt-1">-->
67
- <!-- <div class="animate-ping w-2 h-2 rounded-full bg-blue-400"></div>-->
68
- <!-- </div>-->
69
- <!-- </button>-->
70
- <!-- </div>-->
71
- <!-- <div class="h-full flex items-center">-->
72
- <!-- <button aria-label="dropdown" class="focus:outline-none focus:text-gray-900 text-gray-800 dark:text-white border-b-2 border-transparent focus:border-gray-800 hover:text-gray-900 w-full flex items-center justify-end relative cursor-pointer" onclick="dropdownHandler(this)">-->
73
- <!-- <img class="rounded-full h-10 w-10 object-cover" src="https://i.ibb.co/GTLTzZY/Unsplash-Avatars-0000s-0035-azamat-zhanisov-a5s-RFie-A3-BY-unsplash-1.png" alt="Unsplash-Avatars-0000s-0035-azamat-zhanisov-a5s-RFie-A3-BY-unsplash-1" alt="logo"/>-->
74
- <!-- </button>-->
75
- <!-- </div>-->
76
- <!-- </div>-->
77
- <!-- </div>-->
78
- <div class="flex items-center md:hidden">
79
- <ul class="p-2 border-r bg-white dark:bg-gray-800 absolute rounded top-0 left-0 right-0 shadow mt-16 md:mt-16 hidden">
80
- <li class="flex md:hidden cursor-pointer text-gray-600 dark:text-gray-200 text-sm leading-3 tracking-normal mt-2 py-2 hover:text-indigo-700 focus:text-indigo-700 focus:outline-none">
81
- <div class="flex items-center">
82
- <span class="ml-2 font-bold">Requests</span>
83
- </div>
84
- </li>
85
- <li class="flex md:hidden flex-col cursor-pointer text-gray-600 dark:text-gray-200 text-sm leading-3 tracking-normal py-2 hover:text-indigo-700 focus:text-indigo-700 focus:outline-none flex justify-center">
86
- <div class="flex items-center">
87
- <span class="ml-2 font-bold">Queries</span>
88
- </div>
89
- </li>
90
- <li class="flex md:hidden flex-col cursor-pointer text-gray-600 dark:text-gray-200 text-sm leading-3 tracking-normal py-2 hover:text-indigo-700 focus:text-indigo-700 focus:outline-none flex justify-center">
91
- <div class="flex items-center">
92
- <span class="ml-2 font-bold">Session Data</span>
93
- </div>
94
- </li>
95
- <li class="border-b border-gray-300 flex md:hidden cursor-pointer text-gray-600 dark:text-gray-200 text-sm leading-3 tracking-normal pt-2 pb-4 hover:text-indigo-700 flex items-center focus:text-indigo-700 focus:outline-none">
96
- <span class="ml-2 font-bold">Deliverables</span>
97
- </li>
98
- <li class="cursor-pointer text-gray-600 dark:text-gray-200 text-sm leading-3 tracking-normal mt-2 py-2 hover:text-indigo-700 flex items-center focus:text-indigo-700 focus:outline-none">
99
- <div class="flex items-center">
100
- <div class="w-12 cursor-pointer flex text-sm border-2 border-transparent rounded focus:outline-none focus:border-white transition duration-150 ease-in-out">
101
- <img class="rounded h-10 w-10 object-cover" src="https://tuk-cdn.s3.amazonaws.com/assets/components/horizontal_navigation/hn_1.png" alt="logo"/>
102
- </div>
103
- <p class="text-sm ml-2 cursor-pointer">Jane Doe</p>
104
- <div class="sm:ml-2 text-gray-800 dark:text-white relative">
105
- <img class="icon icon-tabler icon-tabler-chevron-down cursor-pointer" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg4.svg" alt="chevron down"/>
106
- </div>
107
- </div>
108
- </li>
109
- <li class="cursor-pointer text-gray-600 dark:text-gray-200 text-sm leading-3 tracking-normal py-2 hover:text-indigo-700 focus:text-indigo-700 focus:outline-none">
110
- <div class="flex items-center">
111
- <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-user" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
112
- <path stroke="none" d="M0 0h24v24H0z"/>
113
- <circle cx="12" cy="7" r="4"/>
114
- <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"/>
115
- </svg>
116
- <span class="ml-2">Profile</span>
117
- </div>
118
- </li>
119
- <li class="cursor-pointer text-gray-600 dark:text-gray-200 text-sm leading-3 tracking-normal mt-2 py-2 hover:text-indigo-700 flex items-center focus:text-indigo-700 focus:outline-none">
120
- <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-logout" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
121
- <path stroke="none" d="M0 0h24v24H0z"/>
122
- <path d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"/>
123
- <path d="M7 12h14l-3 -3m0 6l3 -3"/>
124
- </svg>
125
- <span class="ml-2">Sign out</span>
126
- </li>
127
- </ul>
128
- </div>
22
+ <div class="min-h-screen w-screen">
23
+ <div class="navbar bg-base-100 border-b border-base-200">
24
+ <div class="flex-1">
25
+ <div class="btn btn-ghost normal-case text-xl">DataPact</div>
26
+ <%= link_to 'Routes', routes_path, class: 'btn btn-ghost normal-case text-lg font-medium' %>
27
+ <%= link_to 'Session Data', session_data_path, class: 'btn btn-ghost normal-case text-lg font-medium' %>
28
+ <%= link_to 'Jobs', jobs_path, class: 'btn btn-ghost normal-case text-lg font-medium' %>
29
+ <%= link_to 'Settings', settings_path, class: 'btn btn-ghost normal-case text-lg font-medium' %>
129
30
  </div>
130
-
131
- <!-- Breadcrumbs-->
132
- <div class="hidden container justify-between h-12 flex items-center bg-white dark:bg-gray-800 md:items-stretch mx-auto">
133
- <div class="h-full flex items-center">
134
- <ul class="pr-12 md:flex items-center h-full hidden">
135
- <li>
136
- <a href="javascript:void(0)" class="focus:outline-none border-b-2 border-transparent leading-none cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-600 dark:text-gray-200 ">Home</a>
137
- </li>
138
- <li>
139
- <img class="mx-4" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg3.svg" alt="icon-1"/>
140
- </li>
141
- <li>
142
- <a href="javascript:void(0)" class="focus:outline-none border-b-2 border-transparent leading-none cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-600 dark:text-gray-200 ">Resource
143
- Manager</a>
144
- </li>
145
- <li>
146
- <img class="mx-4" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg5.svg" alt="icon2"/>
147
- </li>
148
- <li>
149
- <a href="javascript:void(0)" class="focus:outline-none border-b-2 border-transparent leading-none cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-600 dark:text-gray-200 mr-14">Job
150
- Applications</a>
151
- </li>
152
- </ul>
153
- </div>
154
- </div>
155
- </nav>
156
-
157
- <!-- Navbar -->
158
- <nav class="md:hidden">
159
- <div class="w-full shadow-md bg-white dark:bg-gray-800 fixed top-0 z-40">
160
- <div class="flex md:hidden mx-auto container">
161
- <div class="border-b py-4 border-gray-200 flex items-stretch justify-between mx-4 items-center w-full">
162
- <div aria-label="logo" role="img" tabindex="0" class="focus:outline-none">
163
- <img class="p-1 dark:bg-white rounded-full" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg1.svg" alt="logo"/>
164
- </div>
165
- <div class="flex md:hidden items-center justify-end">
166
- <div class="flex items-center">
167
- <div class="h-full flex items-center">
168
- <button aria-label="show notifications" class="relative focus:outline-none focus:text-indigo-700 hover:text-indigo-700 focus:border-indigo-700 hover:border-indigo-700 h-full flex items-center justify-center text-gray-600 dark:text-gray-200 cursor-pointer">
169
- <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-bell" width="28" height="28" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
170
- <path stroke="none" d="M0 0h24v24H0z"/>
171
- <path d="M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6"/>
172
- <path d="M9 17v1a3 3 0 0 0 6 0v-1"/>
173
- </svg>
174
- <div class="absolute top-0 left-4 mt-0 mr-4 pr-1 pt-1">
175
- <div class="animate-ping w-2 h-2 rounded-full bg-blue-400"></div>
176
- </div>
177
- </button>
178
- </div>
179
- <div class="h-full flex items-center">
180
- <button aria-label="dropdown" class="focus:outline-none mx-4 focus:text-gray-900 text-gray-800 dark:text-white border-b-2 border-transparent focus:border-gray-800 hover:text-gray-900 w-full flex items-center justify-end relative cursor-pointer" onclick="dropdownHandler(this)">
181
- <img class="rounded-full h-10 w-10 object-cover" src="https://i.ibb.co/GTLTzZY/Unsplash-Avatars-0000s-0035-azamat-zhanisov-a5s-RFie-A3-BY-unsplash-1.png" alt="Unsplash-Avatars-0000s-0035-azamat-zhanisov-a5s-RFie-A3-BY-unsplash-1" alt="logo"/>
182
- </button>
183
- </div>
184
- <div class="h-full flex items-center">
185
- <button id="menu" aria-label="open menu" class="focus:outline-none focus:ring-2 focus:ring-gray-700 rounded-md text-gray-800 dark:text-white " onclick="sidebarHandler(true)">
186
- <img src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg6.svg" alt="menu"/>
187
- </button>
188
- </div>
189
- </div>
190
- </div>
191
- </div>
192
- </div>
193
- <div class="container sm:px-6 px-4 justify-between h-12 flex items-center bg-white dark:bg-gray-800 md:items-stretch mx-auto">
194
- <div class="h-full flex items-center">
195
- <ul class="flex items-center h-full md:hidden">
196
- <li>
197
- <a href="javascript:void(0)" class="focus:outline-none border-b-2 border-transparent leading-none cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-600 dark:text-gray-200 ">Home</a>
198
- </li>
199
- <img class="mx-2" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg7.svg" alt="icon-4"/>
200
- <li>
201
- <a href="javascript:void(0)" class="focus:outline-none border-b-2 border-transparent leading-none cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-600 dark:text-gray-200 ">Resource
202
- Manager</a>
203
- </li>
204
- <img class="mx-2" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg8.svg" alt="icon-5"/>
205
- <li>
206
- <a href="javascript:void(0)" class="focus:outline-none border-b-2 border-transparent leading-none cursor-pointer h-full flex items-center hover:text-indigo-700 text-sm text-gray-600 dark:text-gray-200 mr-4">Job
207
- Applications</a>
208
- </li>
209
- </ul>
210
- </div>
211
- </div>
31
+ <div class="flex-none gap-2">
32
+ <!-- <div class="form-control">-->
33
+ <!-- <input type="text" placeholder="Search" class="input input-bordered w-24 md:w-auto"/>-->
34
+ <!-- </div>-->
212
35
  </div>
213
- <!--Mobile responsive sidebar-->
214
- <div class="absolute w-full h-full transform -translate-x-full z-40 transition duration-700 sm:hidden" id="mobile-nav">
215
- <div class="w-full h-full shadow-lg z-40 fixed overflow-y-auto z-40 top-0 bg-white dark:bg-gray-800 flex-col justify-between xl:hidden pb-4 transition duration-500 ease-in-out">
216
- <div class="px-5 h-full">
217
- <div class="flex flex-col justify-between h-full w-full">
218
- <div>
219
- <div class="mt-6 flex w-full items-center justify-between">
220
- <div class="border-b border-gray-200 pb-8 flex items-center justify-between w-full">
221
- <div class="md:pr-10 lg:pr-0 h-full flex items-center w-full">
222
- <div class="relative w-full">
223
- <div class="text-gray-800 dark:text-white absolute ml-3 inset-0 m-auto w-4 h-4">
224
- <img src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg2.svg" alt="search"/>
225
- </div>
226
- <input class="md:hidden border border-gray-300 focus:outline-none focus:border-indigo-700 w-full rounded text-sm text-gray-800 dark:text-white pl-8 py-2" type="text" placeholder="Search here"/>
227
- </div>
228
- </div>
229
- <button id="cross" aria-label="close menu" class="focus:outline-none focus:ring-2 rounded-md text-gray-800 dark:text-white pl-8" onclick="sidebarHandler(false)">
230
- <img class="dark:bg-white p-1" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/horizontal-navigation-svg9.svg" alt="cross"/>
231
- </button>
232
- </div>
233
- </div>
234
- <ul class="">
235
- <!-- <li>-->
236
- <!-- <a class="cursor-pointer">-->
237
- <!-- <div class="text-gray-800 dark:text-white pt-10">-->
238
- <!-- <div class="flex items-center">-->
239
- <!-- <p tabindex="0" class="focus:outline-none text-gray-800 dark:text-white text-sm font-medium">Routes</p>-->
240
- <!-- </div>-->
241
- <!-- </div>-->
242
- <!-- </a>-->
243
- <!-- </li>-->
244
- <li>
245
- <a href='/session_data' class="cursor-pointer">
246
- <div class="text-gray-800 dark:text-white pt-8">
247
- <div class="flex items-center justify-between">
248
- <div class="flex items-center">
249
- <p tabindex="0" class="focus:outline-none text-gray-800 dark:text-white text-sm font-medium">Session
250
- Dataa</p>
251
- </div>
252
- </div>
253
- </div>
254
- </a>
255
- </li>
256
- <!-- <li>-->
257
- <!-- <a class="cursor-pointer">-->
258
- <!-- <div class="text-gray-800 dark:text-white pt-8">-->
259
- <!-- <div class="flex items-center">-->
260
- <!-- <p tabindex="0" class="focus:outline-none text-gray-800 dark:text-white text-sm font-medium">Requests</p>-->
261
- <!-- </div>-->
262
- <!-- </div>-->
263
- <!-- </a>-->
264
- <!-- </li>-->
265
- <!-- <li class="text-gray-800 dark:text-white pt-8 cursor-pointer">-->
266
- <!-- <div class="flex items-center justify-between">-->
267
- <!-- <div class="w-6 h-6 md:w-8 md:h-8 text-gray-800 dark:text-white ">-->
268
- <!-- <p tabindex="0" class="focus:outline-none text-gray-800 dark:text-white text-sm font-medium">Queries</p>-->
269
- <!-- </div>-->
270
- <!-- </div>-->
271
- <!-- </li>-->
272
- <li class="text-gray-800 dark:text-white pt-8 cursor-pointer">
273
- <div class="flex items-center justify-between">
274
- <div class="w-6 h-6 md:w-8 md:h-8 text-gray-800 dark:text-white ">
275
- <p tabindex="0" class="focus:outline-none text-gray-800 dark:text-white text-sm font-medium">Settings</p>
276
- </div>
277
- </div>
278
- </li>
279
- </ul>
280
- </div>
281
- </div>
282
- </div>
283
- </div>
284
- </div>
285
- </nav>
286
- <!-- Sidebar ends -->
287
-
288
- <!-- Code block ends -->
36
+ </div>
289
37
  <div class="my-3 mx-6">
290
38
  <%= yield %>
291
39
  </div>
data/config/routes.rb CHANGED
@@ -5,6 +5,7 @@ DataPact::Engine.routes.draw do
5
5
  end
6
6
  get 'routes', to: 'application#routes'
7
7
  get 'settings', to: 'application#settings'
8
+ get 'jobs', to: 'application#jobs'
8
9
  root to: 'application#index'
9
10
 
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module DataPact
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.21"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_pact
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Shyman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-06 00:00:00.000000000 Z
11
+ date: 2023-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -49,6 +49,7 @@ files:
49
49
  - app/mailers/data_pact/application_mailer.rb
50
50
  - app/models/data_pact/application_record.rb
51
51
  - app/views/application/index.html.erb
52
+ - app/views/data_pact/application/jobs.html.erb
52
53
  - app/views/data_pact/application/routes.html.erb
53
54
  - app/views/data_pact/application/settings.html.erb
54
55
  - app/views/data_pact/session_data/index.html.erb