disco_app 0.10.5 → 0.11.0
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/app/assets/components/disco_app/buttons/model-destroy-button.es6.jsx +31 -0
- data/app/assets/components/disco_app/forms/model-form.es6.jsx +64 -0
- data/app/assets/components/embedded_app/bar.es6.jsx +31 -0
- data/app/assets/components/shopify/buttons/_buttons.scss +546 -0
- data/app/assets/{javascripts/disco_app/components/ui-kit/forms → components/shopify/buttons}/button.es6.jsx +0 -0
- data/app/assets/components/shopify/card/_card.scss +342 -0
- data/app/assets/components/shopify/card/card-header.es6.jsx +34 -0
- data/app/assets/{javascripts/disco_app/components/ui-kit/cards → components/shopify/card}/card-section.es6.jsx +9 -13
- data/app/assets/{javascripts/disco_app/components/ui-kit/cards → components/shopify/card}/card.es6.jsx +0 -0
- data/app/assets/components/shopify/typography/_typography.scss +23 -0
- data/app/assets/components/shopify/typography/ui-heading.es6.jsx +16 -0
- data/app/assets/{stylesheets/disco_app/ui-kit/_ui-empty-state.scss → components/shopify/ui-layout/_ui-layout.scss} +41 -5
- data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-annotated-section.es6.jsx +0 -0
- data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-empty-state.es6.jsx +0 -0
- data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-footer-help.es6.jsx +0 -0
- data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-layout-item.es6.jsx +0 -0
- data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-layout-section.es6.jsx +0 -0
- data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-layout-sections.es6.jsx +0 -0
- data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-layout.es6.jsx +0 -0
- data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-page-actions.es6.jsx +0 -0
- data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-page-actions__buttons.es6.jsx +0 -0
- data/app/assets/{stylesheets/disco_app/ui-kit → components/shopify/ui-stack}/_ui-stack.scss +0 -0
- data/app/assets/components/shopify/ui-stack/ui-stack-item.es6.jsx +21 -0
- data/app/assets/components/shopify/ui-stack/ui-stack.es6.jsx +24 -0
- data/app/assets/javascripts/disco_app/components/ui-kit/forms/input-select.es6.jsx +1 -1
- data/app/assets/javascripts/disco_app/components/ui-kit/tables/table.es6.jsx +6 -1
- data/app/assets/javascripts/disco_app/components.js +1 -0
- data/app/assets/stylesheets/disco_app/disco_app.scss +7 -4
- data/app/helpers/disco_app/application_helper.rb +20 -2
- data/app/views/layouts/embedded_app.html.erb +10 -4
- data/lib/disco_app/version.rb +1 -1
- data/lib/generators/disco_app/disco_app_generator.rb +1 -1
- metadata +27 -22
- data/app/assets/javascripts/disco_app/components/ui-kit/cards/card-footer.es6.jsx +0 -11
- data/app/assets/javascripts/disco_app/components/ui-kit/cards/card-header.es6.jsx +0 -11
- data/app/assets/javascripts/disco_app/components/ui-kit/cards/cart-section-title.es6.jsx +0 -17
- data/app/assets/stylesheets/disco_app/ui-kit/_ui-footer-help.scss +0 -28
- data/app/assets/stylesheets/disco_app/ui-kit/_ui-page-actions.scss +0 -23
@@ -224,7 +224,7 @@ class DiscoAppGenerator < Rails::Generators::Base
|
|
224
224
|
# This should be the last operation, to allow all other operations to run in the initial Ruby version.
|
225
225
|
def set_ruby_version
|
226
226
|
copy_file 'root/.ruby-version', '.ruby-version'
|
227
|
-
prepend_to_file 'Gemfile', "ruby '2.3.
|
227
|
+
prepend_to_file 'Gemfile', "ruby '2.3.3'\n"
|
228
228
|
end
|
229
229
|
|
230
230
|
private
|
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.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Ballard
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 1.
|
187
|
+
version: '1.9'
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 1.
|
194
|
+
version: '1.9'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: classnames-rails
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -354,6 +354,30 @@ extensions: []
|
|
354
354
|
extra_rdoc_files: []
|
355
355
|
files:
|
356
356
|
- Rakefile
|
357
|
+
- app/assets/components/disco_app/buttons/model-destroy-button.es6.jsx
|
358
|
+
- app/assets/components/disco_app/forms/model-form.es6.jsx
|
359
|
+
- app/assets/components/embedded_app/bar.es6.jsx
|
360
|
+
- app/assets/components/shopify/buttons/_buttons.scss
|
361
|
+
- app/assets/components/shopify/buttons/button.es6.jsx
|
362
|
+
- app/assets/components/shopify/card/_card.scss
|
363
|
+
- app/assets/components/shopify/card/card-header.es6.jsx
|
364
|
+
- app/assets/components/shopify/card/card-section.es6.jsx
|
365
|
+
- app/assets/components/shopify/card/card.es6.jsx
|
366
|
+
- app/assets/components/shopify/typography/_typography.scss
|
367
|
+
- app/assets/components/shopify/typography/ui-heading.es6.jsx
|
368
|
+
- app/assets/components/shopify/ui-layout/_ui-layout.scss
|
369
|
+
- app/assets/components/shopify/ui-layout/ui-annotated-section.es6.jsx
|
370
|
+
- app/assets/components/shopify/ui-layout/ui-empty-state.es6.jsx
|
371
|
+
- app/assets/components/shopify/ui-layout/ui-footer-help.es6.jsx
|
372
|
+
- app/assets/components/shopify/ui-layout/ui-layout-item.es6.jsx
|
373
|
+
- app/assets/components/shopify/ui-layout/ui-layout-section.es6.jsx
|
374
|
+
- app/assets/components/shopify/ui-layout/ui-layout-sections.es6.jsx
|
375
|
+
- app/assets/components/shopify/ui-layout/ui-layout.es6.jsx
|
376
|
+
- app/assets/components/shopify/ui-layout/ui-page-actions.es6.jsx
|
377
|
+
- app/assets/components/shopify/ui-layout/ui-page-actions__buttons.es6.jsx
|
378
|
+
- app/assets/components/shopify/ui-stack/_ui-stack.scss
|
379
|
+
- app/assets/components/shopify/ui-stack/ui-stack-item.es6.jsx
|
380
|
+
- app/assets/components/shopify/ui-stack/ui-stack.es6.jsx
|
357
381
|
- app/assets/images/disco_app/icon.svg
|
358
382
|
- app/assets/images/disco_app/icons.svg
|
359
383
|
- app/assets/javascripts/disco_app/components.js
|
@@ -366,14 +390,8 @@ files:
|
|
366
390
|
- app/assets/javascripts/disco_app/components/custom/shop_list.js.jsx
|
367
391
|
- app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
|
368
392
|
- app/assets/javascripts/disco_app/components/custom/shopify_admin_link.js.jsx
|
369
|
-
- app/assets/javascripts/disco_app/components/ui-kit/cards/card-footer.es6.jsx
|
370
|
-
- app/assets/javascripts/disco_app/components/ui-kit/cards/card-header.es6.jsx
|
371
|
-
- app/assets/javascripts/disco_app/components/ui-kit/cards/card-section.es6.jsx
|
372
|
-
- app/assets/javascripts/disco_app/components/ui-kit/cards/card.es6.jsx
|
373
|
-
- app/assets/javascripts/disco_app/components/ui-kit/cards/cart-section-title.es6.jsx
|
374
393
|
- app/assets/javascripts/disco_app/components/ui-kit/forms/base_form.es6.jsx
|
375
394
|
- app/assets/javascripts/disco_app/components/ui-kit/forms/base_input.es6.jsx
|
376
|
-
- app/assets/javascripts/disco_app/components/ui-kit/forms/button.es6.jsx
|
377
395
|
- app/assets/javascripts/disco_app/components/ui-kit/forms/input-checkbox.es6.jsx
|
378
396
|
- app/assets/javascripts/disco_app/components/ui-kit/forms/input-radio.es6.jsx
|
379
397
|
- app/assets/javascripts/disco_app/components/ui-kit/forms/input-select.es6.jsx
|
@@ -387,15 +405,6 @@ files:
|
|
387
405
|
- app/assets/javascripts/disco_app/components/ui-kit/icons/next-icon.es6.jsx
|
388
406
|
- app/assets/javascripts/disco_app/components/ui-kit/input_select.es6.jsx
|
389
407
|
- app/assets/javascripts/disco_app/components/ui-kit/tables/table.es6.jsx
|
390
|
-
- app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-annotated-section.es6.jsx
|
391
|
-
- app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
|
392
|
-
- app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-footer-help.es6.jsx
|
393
|
-
- app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-layout-item.es6.jsx
|
394
|
-
- app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-layout-section.es6.jsx
|
395
|
-
- app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-layout-sections.es6.jsx
|
396
|
-
- app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-layout.es6.jsx
|
397
|
-
- app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-page-actions.es6.jsx
|
398
|
-
- app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-page-actions__buttons.es6.jsx
|
399
408
|
- app/assets/javascripts/disco_app/disco_app.js
|
400
409
|
- app/assets/javascripts/disco_app/frame.js
|
401
410
|
- app/assets/javascripts/disco_app/shopify-turbolinks.js
|
@@ -411,14 +420,10 @@ files:
|
|
411
420
|
- app/assets/stylesheets/disco_app/frame/_layout.scss
|
412
421
|
- app/assets/stylesheets/disco_app/frame/_type.scss
|
413
422
|
- app/assets/stylesheets/disco_app/mixins/_flexbox.scss
|
414
|
-
- app/assets/stylesheets/disco_app/ui-kit/_ui-empty-state.scss
|
415
|
-
- app/assets/stylesheets/disco_app/ui-kit/_ui-footer-help.scss
|
416
423
|
- app/assets/stylesheets/disco_app/ui-kit/_ui-forms.scss
|
417
424
|
- app/assets/stylesheets/disco_app/ui-kit/_ui-icons.scss
|
418
425
|
- app/assets/stylesheets/disco_app/ui-kit/_ui-kit.scss
|
419
426
|
- app/assets/stylesheets/disco_app/ui-kit/_ui-layout.scss
|
420
|
-
- app/assets/stylesheets/disco_app/ui-kit/_ui-page-actions.scss
|
421
|
-
- app/assets/stylesheets/disco_app/ui-kit/_ui-stack.scss
|
422
427
|
- app/assets/stylesheets/disco_app/ui-kit/_ui-tabs.scss
|
423
428
|
- app/assets/stylesheets/disco_app/ui-kit/_ui-type.scss
|
424
429
|
- app/controllers/disco_app/admin/app_settings_controller.rb
|
@@ -1,17 +0,0 @@
|
|
1
|
-
const CardSectionTitle = ({ title, small }) => {
|
2
|
-
|
3
|
-
const className = classNames({
|
4
|
-
'next-heading': true,
|
5
|
-
'next-heading--small': small,
|
6
|
-
'next-heading--half-margin': small
|
7
|
-
});
|
8
|
-
|
9
|
-
return (
|
10
|
-
<h2 className={className}>{title}</h2>
|
11
|
-
);
|
12
|
-
};
|
13
|
-
|
14
|
-
CardSectionTitle.propTypes = {
|
15
|
-
title: React.PropTypes.string.isRequired,
|
16
|
-
small: React.PropTypes.bool
|
17
|
-
};
|
@@ -1,28 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// ui-footer-help.scss
|
3
|
-
// Styles for footer help not provided by the Channel
|
4
|
-
// SDK UI Kit.
|
5
|
-
// --------------------------------------------------
|
6
|
-
|
7
|
-
.ui-footer-help {
|
8
|
-
margin: 1.71429rem 0;
|
9
|
-
text-align: center;
|
10
|
-
width: 100%;
|
11
|
-
}
|
12
|
-
|
13
|
-
.ui-footer-help__content {
|
14
|
-
color: rgba(0,0,0,0.56);
|
15
|
-
display: -webkit-inline-box;
|
16
|
-
display: -webkit-inline-flex;
|
17
|
-
display: -ms-inline-flexbox;
|
18
|
-
display: inline-flex;
|
19
|
-
-webkit-box-align: center;
|
20
|
-
-webkit-align-items: center;
|
21
|
-
-ms-flex-align: center;
|
22
|
-
align-items: center;
|
23
|
-
text-align: left;
|
24
|
-
margin: 0 auto;
|
25
|
-
padding: 1.14286rem;
|
26
|
-
border: 1px solid #d3dbe2;
|
27
|
-
border-radius: 3px;
|
28
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// ui-page-actions.scss
|
3
|
-
// Styles for UI page actions not provided by the
|
4
|
-
// Channel SDK UI Kit.
|
5
|
-
// --------------------------------------------------
|
6
|
-
|
7
|
-
.ui-page-actions {
|
8
|
-
@include flexbox();
|
9
|
-
margin: 0 auto;
|
10
|
-
max-width: 1036px;
|
11
|
-
padding: 20px 0;
|
12
|
-
border-top: 1px solid #d3dbe2;
|
13
|
-
}
|
14
|
-
|
15
|
-
.ui-page-actions__primary {
|
16
|
-
@include flex(1 1 auto);
|
17
|
-
padding-right: 20px;
|
18
|
-
}
|
19
|
-
|
20
|
-
.ui-page-actions__secondary {
|
21
|
-
@include flex(1 1 auto);
|
22
|
-
padding: 0 20px;
|
23
|
-
}
|