disco_app 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/sessions/new.html.erb +22 -20
- data/config/routes.rb +15 -0
- data/lib/disco_app/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b06803642b1388f4c97379b2d3f902e0fea4727d65416a5a94d596a7be90ec4
|
4
|
+
data.tar.gz: f8942efa1c985ed773659020b78b57a3380be725b7031278b509e35ae619a6a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ead66a8df351c001bd78537ff3a081f9f86d2664fc0305dcdd578fb0ab2d02a47c5e3ce2112b3e4da561e077fbdacf1a52b285eb125036b128ca36d66fdbaba9
|
7
|
+
data.tar.gz: 6aefd207f8162943cd9d9165030333752022af6ccbcf0dd634173fa8536f02a21430db45584daedd350f5a8766ef5e71b855843a36f22fa38b722398693c8197
|
@@ -1,26 +1,28 @@
|
|
1
|
-
<% provide(:title,
|
1
|
+
<% provide(:title, "Install #{DiscoApp.configuration.app_name}") %>
|
2
2
|
|
3
3
|
<%= form_tag shopify_app.login_path do %>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<div class="
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
4
|
+
<div class="ui-empty-state">
|
5
|
+
<section class="ui-empty-state__section">
|
6
|
+
<div class="ui-empty-state__subsection">
|
7
|
+
<h1 class="ui-empty-state__title">Install <%= DiscoApp.configuration.app_name %></h1>
|
8
|
+
<h2 class="ui-empty-state__subtitle">Enter your Shopify store name below to get started.</h2>
|
9
|
+
</div>
|
10
|
+
<div class="ui-empty-state__subsection">
|
11
|
+
<div class="next-grid">
|
12
|
+
<div class="next-grid__cell" style="text-align: right;">
|
13
|
+
<label for="shop" class="next-input__help-text">https://</label>
|
14
|
+
</div>
|
15
|
+
<div class="next-grid__cell">
|
16
|
+
<input type="text" class="form-control" id="shop" name="shop" placeholder="your-store" autocomplete="off" autofocus="on" />
|
17
|
+
</div>
|
18
|
+
<div class="next-grid__cell" style="text-align: left;">
|
19
|
+
<label for="shop" class="next-input__help-text">.myshopify.com</label>
|
18
20
|
</div>
|
19
|
-
|
20
|
-
</div>
|
21
|
-
<div class="modal-footer">
|
22
|
-
<button type="submit" class="btn btn-primary">Install</button>
|
23
21
|
</div>
|
24
22
|
</div>
|
25
|
-
|
23
|
+
<div class="ui-empty-state__subsection">
|
24
|
+
<button type="submit" class="btn btn-large btn-primary">Install</button>
|
25
|
+
</div>
|
26
|
+
</section>
|
27
|
+
</div>
|
26
28
|
<% end %>
|
data/config/routes.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'sidekiq/web'
|
2
|
+
|
1
3
|
DiscoApp::Engine.routes.draw do
|
2
4
|
|
3
5
|
get 'ref', to: '/sessions#referral'
|
@@ -38,6 +40,19 @@ DiscoApp::Engine.routes.draw do
|
|
38
40
|
end
|
39
41
|
end
|
40
42
|
|
43
|
+
# Make the Sidekiq Web UI accessible using the same credentials as the admin.
|
44
|
+
if Rails.env.production?
|
45
|
+
Sidekiq::Web.use Rack::Auth::Basic do |username, password|
|
46
|
+
[
|
47
|
+
ENV['ADMIN_APP_USERNAME'].present?,
|
48
|
+
username == ENV['ADMIN_APP_USERNAME'] == username,
|
49
|
+
ENV['ADMIN_APP_PASSWORD'].present?,
|
50
|
+
password == ENV['ADMIN_APP_PASSWORD'] == username,
|
51
|
+
].all?
|
52
|
+
end
|
53
|
+
mount Sidekiq::Web, at: '/sidekiq'
|
54
|
+
end
|
55
|
+
|
41
56
|
# Make the embedded app frame emulator available in development.
|
42
57
|
if Rails.env.development?
|
43
58
|
controller :frame do
|
data/lib/disco_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: disco_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Ballard
|
@@ -248,6 +248,20 @@ dependencies:
|
|
248
248
|
- - ">="
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: 1.3.0
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: sinatra
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: 1.4.7
|
258
|
+
type: :runtime
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: 1.4.7
|
251
265
|
- !ruby/object:Gem::Dependency
|
252
266
|
name: sqlite3
|
253
267
|
requirement: !ruby/object:Gem::Requirement
|