disco_app 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '06960bd40f8d13cfc0976f62ef2dad843f3d6ce3fd6360fe3d39decf27474ffa'
4
- data.tar.gz: c7629e5dc53f093f18f7336bb1e56b19317da51a15c35831dbe5622c454d92b5
3
+ metadata.gz: a50699ff4ae93838aa2c37aaf47a16551f0c729d1f41cb54f10b8e82ac5d6088
4
+ data.tar.gz: 00f838a1b2f9f2c8726fafede84074c55c421e93e07c1d444c2cb6aa58eb0512
5
5
  SHA512:
6
- metadata.gz: 94a757245376dc817637b122fe6e6d0d89f8a983ed38cd51ada10d46348d5fb35082c20f54da371eb9ac95689701c3558024fdf673257f6424f4643310a5d64e
7
- data.tar.gz: 56c7869198c5eb5074336694b8e2b3d0c1963f46314859486f2310bba201a80b03257a427afcf59c9713d727b5c4dd0ad34850e2dcc7e492785da3365a63b74f
6
+ metadata.gz: ce2ab79fc07af31d63ebfcbfe68a173e18eeca434a2fd12a333e9fceb60381fc64ba4c73d0bf8963659208ba8512907f8391ad9ae8e19e06c23bd7ef7fd84c8b
7
+ data.tar.gz: ca19c5f680719e52e92b3eefd9713d18ddad1e22446582c15b37401428a93de06bb55fb0c3a23e327e0f54d2dde61889ce7d33495ffd0261b93eb64efd8032d9
@@ -20,10 +20,6 @@ th {
20
20
  padding: 8px 10px;
21
21
  border-bottom: 1px solid #ebeef0;
22
22
 
23
- &.right-aligned {
24
- text-align: right;
25
- }
26
-
27
23
  &.is-sortable {
28
24
  cursor: pointer;
29
25
 
@@ -40,6 +36,16 @@ td {
40
36
  background: transparent;
41
37
  }
42
38
 
39
+ th, td {
40
+ &.right-aligned {
41
+ text-align: right;
42
+ }
43
+
44
+ &.center-aligned {
45
+ text-align: center;
46
+ }
47
+ }
48
+
43
49
  tr:last-child > td {
44
50
  border-bottom: none;
45
51
  }
@@ -19,3 +19,21 @@ h6, .h6 {
19
19
  p {
20
20
  margin: 0;
21
21
  }
22
+
23
+
24
+ //== Type
25
+ //
26
+ //## Type modifiers.
27
+
28
+ .type--subdued {
29
+ color: #798c9c;
30
+ }
31
+
32
+ a.type--subdued {
33
+ color: inherit;
34
+ text-decoration: underline;
35
+
36
+ &:hover {
37
+ color: #272c30;
38
+ }
39
+ }
@@ -11,4 +11,18 @@ module DiscoApp::ApplicationHelper
11
11
  link_to(name, "https://#{shop.shopify_domain}/admin/#{admin_path}", options)
12
12
  end
13
13
 
14
+ # Generate a link that will open its href in an embedded Shopify modal.
15
+ def link_to_modal(name, path, options = {})
16
+ modal_options = {
17
+ src: path,
18
+ title: options.delete(:modal_title),
19
+ width: options.delete(:modal_width),
20
+ height: options.delete(:modal_height),
21
+ buttons: options.delete(:modal_buttons),
22
+ }
23
+ options[:onclick] = "ShopifyApp.Modal.open(#{modal_options.to_json}); return false;"
24
+ options[:onclick].gsub!(/"function(.*?)"/, 'function\1')
25
+ link_to(name, path, options)
26
+ end
27
+
14
28
  end
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title><%= yield(:title) %></title>
5
+
6
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
7
+
8
+ <%= csrf_meta_tags %>
9
+
10
+ <%= yield :extra_head %>
11
+ </head>
12
+ <body>
13
+
14
+ <%= yield %>
15
+
16
+ </body>
17
+ </html>
@@ -1,3 +1,3 @@
1
1
  module DiscoApp
2
- VERSION = "0.6.7"
2
+ VERSION = "0.6.8"
3
3
  end
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.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Ballard
@@ -305,6 +305,7 @@ files:
305
305
  - app/views/disco_app/shared/_section.html.erb
306
306
  - app/views/layouts/application.html.erb
307
307
  - app/views/layouts/embedded_app.html.erb
308
+ - app/views/layouts/embedded_app_modal.html.erb
308
309
  - app/views/sessions/new.html.erb
309
310
  - config/routes.rb
310
311
  - db/migrate/20150525000000_create_shops_if_not_existent.rb