comable-backend 0.6.0 → 0.7.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/comable/admin/dispatcher.coffee +12 -2
- data/app/assets/javascripts/comable/admin/navigations.coffee +37 -0
- data/app/assets/javascripts/comable/admin/pages.coffee +0 -3
- data/app/assets/javascripts/comable/admin/products.coffee +35 -0
- data/app/assets/javascripts/comable/admin/search.coffee +6 -6
- data/app/assets/javascripts/comable/admin/themes.coffee +53 -64
- data/app/assets/javascripts/comable/admin/variants.coffee +106 -0
- data/app/assets/stylesheets/comable/admin/_common.scss +9 -0
- data/app/assets/stylesheets/comable/admin/_navigations.scss +13 -0
- data/app/assets/stylesheets/comable/admin/_variants.scss +40 -0
- data/app/assets/stylesheets/comable/admin/application.scss +2 -0
- data/app/controllers/comable/admin/navigations_controller.rb +84 -0
- data/app/controllers/comable/admin/orders_controller.rb +7 -14
- data/app/controllers/comable/admin/products_controller.rb +14 -6
- data/app/controllers/comable/admin/stocks_controller.rb +5 -2
- data/app/controllers/comable/admin/themes_controller.rb +5 -9
- data/app/controllers/comable/admin/variants_controller.rb +59 -0
- data/app/helpers/comable/admin/application_helper.rb +19 -12
- data/app/helpers/comable/admin/navigations_helper.rb +23 -0
- data/app/helpers/comable/admin/themes_helper.rb +1 -1
- data/{config/initializers/awesome_admin_layout.rb → app/navigations/comable/admin/application.rb} +8 -4
- data/app/views/comable/admin/navigations/_form.slim +40 -0
- data/app/views/comable/admin/navigations/_navigation_item_fields.slim +24 -0
- data/app/views/comable/admin/navigations/edit.slim +27 -0
- data/app/views/comable/admin/navigations/index.slim +25 -0
- data/app/views/comable/admin/navigations/new.slim +16 -0
- data/app/views/comable/admin/navigations/search_linkable_ids.coffee +15 -0
- data/app/views/comable/admin/orders/show.slim +1 -1
- data/app/views/comable/admin/products/_form.slim +91 -68
- data/app/views/comable/admin/products/edit.slim +4 -0
- data/app/views/comable/admin/products/index.slim +13 -11
- data/app/views/comable/admin/shared/{_image_fields.slim → _images_fields.slim} +5 -5
- data/app/views/comable/admin/shared/_option_type_fields.slim +13 -0
- data/app/views/comable/admin/shared/_option_types_fields.slim +13 -0
- data/app/views/comable/admin/shared/_variant_form.slim +26 -0
- data/app/views/comable/admin/shared/_variants_fields.slim +14 -0
- data/app/views/comable/admin/stocks/index.slim +16 -11
- data/app/views/comable/admin/variants/_form.slim +34 -0
- data/app/views/comable/admin/variants/edit.slim +31 -0
- data/app/views/comable/admin/variants/index.slim +97 -0
- data/app/views/comable/admin/variants/new.slim +16 -0
- data/app/views/layouts/comable/admin/application.slim +1 -1
- data/config/routes.rb +8 -1
- metadata +166 -49
@@ -0,0 +1,13 @@
|
|
1
|
+
- readonly ||= false
|
2
|
+
|
3
|
+
.comable-option
|
4
|
+
.form-group
|
5
|
+
.row
|
6
|
+
.col-xs-4
|
7
|
+
= f.text_field :name, placeholder: Comable.t('admin.size'), class: 'comable-option-name', disabled: readonly
|
8
|
+
|
9
|
+
.col-xs-8
|
10
|
+
ul.js-tagit-option-values.comable-option-values data-index="#{f.index}" class="#{'tagit-readonly' if readonly}"
|
11
|
+
- f.object.values.each do |value|
|
12
|
+
li
|
13
|
+
= value
|
@@ -0,0 +1,26 @@
|
|
1
|
+
fieldset
|
2
|
+
.col-md-3
|
3
|
+
legend
|
4
|
+
= Comable.t('admin.pricing')
|
5
|
+
|
6
|
+
.col-md-9
|
7
|
+
.form-group
|
8
|
+
= f.label :price
|
9
|
+
= f.text_field :price
|
10
|
+
|
11
|
+
hr
|
12
|
+
|
13
|
+
fieldset
|
14
|
+
.col-md-3
|
15
|
+
legend
|
16
|
+
= Comable.t('admin.stocks')
|
17
|
+
|
18
|
+
.col-md-9
|
19
|
+
.form-group
|
20
|
+
= f.label :sku
|
21
|
+
= f.text_field :sku
|
22
|
+
|
23
|
+
= f.fields_for :stock, f.object.stock || f.object.build_stock do |ff|
|
24
|
+
.form-group
|
25
|
+
= ff.label :quantity
|
26
|
+
= ff.text_field :quantity
|
@@ -0,0 +1,14 @@
|
|
1
|
+
tr.js-new-variants
|
2
|
+
td
|
3
|
+
= f.check_box :_destroy, { checked: true }, *({ checked_value: 0, unchecked_value: 1 }.values)
|
4
|
+
td data-name="options"
|
5
|
+
= f.hidden_field :options, value: f.object.options.to_json
|
6
|
+
- f.object.options.each do |option|
|
7
|
+
span.comable-variant-name
|
8
|
+
= option[:value]
|
9
|
+
td data-name="sku"
|
10
|
+
= f.text_field :sku
|
11
|
+
td data-name="price"
|
12
|
+
= f.text_field :price
|
13
|
+
td data-name="quantity"
|
14
|
+
= f.text_field :quantity
|
@@ -44,7 +44,7 @@
|
|
44
44
|
= link_to Comable.t('admin.advanced_search'), 'javascript:void(0)', 'data-toggle' => 'collapse', 'data-target' => '#comable-advanced-search'
|
45
45
|
li
|
46
46
|
= link_to Comable.t('admin.clear_search_conditions'), comable.admin_stocks_path
|
47
|
-
= f.text_field :
|
47
|
+
= f.text_field :variant_sku_cont, class: 'form-control'
|
48
48
|
span.input-group-btn
|
49
49
|
= f.submit Comable.t('admin.search'), class: 'btn btn-default'
|
50
50
|
|
@@ -57,25 +57,30 @@
|
|
57
57
|
table.table.table-striped
|
58
58
|
thead
|
59
59
|
th
|
60
|
-
= sort_link [:comable, @q], :
|
60
|
+
= sort_link [:comable, @q], :name
|
61
61
|
th
|
62
|
-
= sort_link [:comable, @q], :
|
63
|
-
th
|
64
|
-
= sort_link [:comable, @q], :sku_h_choice_name
|
62
|
+
= sort_link [:comable, @q], :sku
|
65
63
|
th
|
66
|
-
= sort_link [:comable, @q], :
|
64
|
+
= sort_link [:comable, @q], :quantity
|
67
65
|
tbody
|
68
66
|
- @stocks.each do |stock|
|
69
67
|
tr
|
70
68
|
td
|
71
|
-
|
69
|
+
- if stock.variant.options.any?
|
70
|
+
p
|
71
|
+
= link_to stock.variant.product.name, comable.admin_product_variant_path(stock.variant.product, stock.variant)
|
72
|
+
p
|
73
|
+
- stock.variant.options.each do |option|
|
74
|
+
span.comable-variant-name
|
75
|
+
= option.value
|
76
|
+
- else
|
77
|
+
p
|
78
|
+
= link_to stock.variant.product.name, comable.admin_product_path(stock.variant.product)
|
79
|
+
td
|
80
|
+
= stock.variant.sku
|
72
81
|
td
|
73
82
|
strong class="#{(stock.quantity <= 0) ? 'text-danger' : (stock.quantity <= 10) ? 'text-warning' : 'text-success'}"
|
74
83
|
= number_with_delimiter stock.quantity
|
75
|
-
td
|
76
|
-
= stock.sku_h_choice_name
|
77
|
-
td
|
78
|
-
= stock.sku_v_choice_name
|
79
84
|
|
80
85
|
.text-center
|
81
86
|
= paginate @stocks, theme: :comable_backend
|
@@ -0,0 +1,34 @@
|
|
1
|
+
= error_messages_for @variant
|
2
|
+
|
3
|
+
= form_for [comable, :admin, @product, @variant] do |f|
|
4
|
+
.hidden
|
5
|
+
= f.submit
|
6
|
+
|
7
|
+
fieldset
|
8
|
+
.col-md-3
|
9
|
+
.media
|
10
|
+
= link_to comable.admin_product_path(@product), class: 'media-left' do
|
11
|
+
= image_tag @product.image_url, width: 100, class: 'media-object'
|
12
|
+
.media-body
|
13
|
+
h4.media-heading
|
14
|
+
= @product.name
|
15
|
+
p
|
16
|
+
| #{@product.variants.size} #{Comable.t('admin.variants').downcase}
|
17
|
+
p
|
18
|
+
= link_to 'Back to product', comable.admin_product_path(@product)
|
19
|
+
|
20
|
+
.media
|
21
|
+
ul.list-group
|
22
|
+
- @product.variants.each do |variant|
|
23
|
+
li.list-group-item class="#{'disabled' if variant == @variant}"
|
24
|
+
= link_to variant.name, comable.admin_product_variant_path(@product, variant)
|
25
|
+
|
26
|
+
.col-md-9
|
27
|
+
= f.fields_for :option_values do |ff|
|
28
|
+
.form-group
|
29
|
+
= ff.label :name, ff.object.option_type.name
|
30
|
+
= ff.text_field :name
|
31
|
+
|
32
|
+
hr
|
33
|
+
|
34
|
+
= render 'comable/admin/shared/variant_form', f: f
|
@@ -0,0 +1,31 @@
|
|
1
|
+
.comable-page
|
2
|
+
.comable-main-fixed-top
|
3
|
+
.comable-page-heading
|
4
|
+
ul.pull-right.list-inline
|
5
|
+
li
|
6
|
+
= link_to comable.product_path(@product), class: 'btn btn-default' do
|
7
|
+
span.fa.fa-external-link>
|
8
|
+
= Comable.t('admin.view')
|
9
|
+
li
|
10
|
+
= link_to_save
|
11
|
+
|
12
|
+
h1.page-header
|
13
|
+
ol.breadcrumb
|
14
|
+
li>
|
15
|
+
= link_to Comable.t('admin.nav.product'), comable.admin_products_path
|
16
|
+
li.active
|
17
|
+
= @product.name
|
18
|
+
|
19
|
+
.comable-page-body
|
20
|
+
= render 'form'
|
21
|
+
hr
|
22
|
+
.panel.panel-danger
|
23
|
+
.panel-heading type="button" data-toggle="collapse" data-target="#comable-danger"
|
24
|
+
strong
|
25
|
+
span.fa.fa-angle-down>
|
26
|
+
= Comable.t('admin.actions.destroy')
|
27
|
+
#comable-danger.collapse
|
28
|
+
.panel-body
|
29
|
+
p
|
30
|
+
= Comable.t('admin.confirmation_to_remove_product')
|
31
|
+
= link_to Comable.t('admin.actions.destroy'), comable.admin_product_path(@product), method: :delete, class: 'btn btn-danger'
|
@@ -0,0 +1,97 @@
|
|
1
|
+
.comable-page
|
2
|
+
.comable-page-heading
|
3
|
+
ul.pull-right.list-inline
|
4
|
+
li
|
5
|
+
.btn-group role="group"
|
6
|
+
= link_to_previous_page @products, '<', class: 'btn btn-default' do
|
7
|
+
.btn.btn-default disabled="disabled"
|
8
|
+
| <
|
9
|
+
= link_to_next_page @products, '>', class: 'btn btn-default' do
|
10
|
+
.btn.btn-default disabled="disabled"
|
11
|
+
| >
|
12
|
+
li
|
13
|
+
= link_to comable.root_path do
|
14
|
+
= link_to Comable.t('admin.actions.new'), comable.new_admin_product_path, class: 'btn btn-default'
|
15
|
+
li.dropdown
|
16
|
+
= link_to '#', class: 'btn btn-default', 'data-toggle' => 'dropdown' do
|
17
|
+
= Comable.t('admin.more')
|
18
|
+
i.fa.fa-angle-down<
|
19
|
+
ul.dropdown-menu.dropdown-menu-right
|
20
|
+
li
|
21
|
+
= link_to Comable.t('admin.export_to_csv'), comable.export_admin_products_path(format: :csv, q: params[:q])
|
22
|
+
li
|
23
|
+
= link_to Comable.t('admin.export_to_excel'), comable.export_admin_products_path(format: :xlsx, q: params[:q])
|
24
|
+
li.divider
|
25
|
+
li
|
26
|
+
a.btn-file
|
27
|
+
span>
|
28
|
+
= Comable.t('admin.import')
|
29
|
+
= form_tag comable.import_admin_products_path, multipart: true do
|
30
|
+
= file_field_tag :file
|
31
|
+
|
32
|
+
h1.page-header
|
33
|
+
= Comable.t('admin.nav.product')
|
34
|
+
small<
|
35
|
+
| #{@products.total_count} #{Comable.t('admin.results')}
|
36
|
+
|
37
|
+
.comable-page-body
|
38
|
+
.comable-search
|
39
|
+
= search_form_for @q, url: comable.admin_products_path do |f|
|
40
|
+
.input-group
|
41
|
+
span.input-group-btn
|
42
|
+
button.btn.btn-default.dropdown-toggle type="button" data-toggle="dropdown"
|
43
|
+
i.fa.fa-search
|
44
|
+
span.caret<
|
45
|
+
ul.dropdown-menu role="menu"
|
46
|
+
li
|
47
|
+
= link_to Comable.t('admin.advanced_search'), 'javascript:void(0)', 'data-toggle' => 'collapse', 'data-target' => '#comable-advanced-search'
|
48
|
+
li
|
49
|
+
= link_to Comable.t('admin.clear_search_conditions'), comable.admin_products_path
|
50
|
+
= f.text_field :name_or_variants_sku_cont_any_splitted, class: 'form-control'
|
51
|
+
span.input-group-btn
|
52
|
+
= f.submit Comable.t('admin.search'), class: 'btn btn-default'
|
53
|
+
|
54
|
+
= render 'comable/admin/shared/advanced_search', f: f
|
55
|
+
|
56
|
+
section
|
57
|
+
- if @products.empty?
|
58
|
+
= Comable.t('admin.not_found')
|
59
|
+
- else
|
60
|
+
table.table.table-striped
|
61
|
+
thead
|
62
|
+
th
|
63
|
+
th
|
64
|
+
= sort_link [:comable, @q], :code
|
65
|
+
th
|
66
|
+
= sort_link [:comable, @q], :name
|
67
|
+
th
|
68
|
+
= sort_link [:comable, @q], :price
|
69
|
+
th
|
70
|
+
= Comable.t('admin.stocks')
|
71
|
+
tbody
|
72
|
+
- @products.each do |product|
|
73
|
+
- quantity = product.stocks.to_a.sum(&:quantity)
|
74
|
+
tr
|
75
|
+
td.comable-image
|
76
|
+
= link_to comable.admin_product_path(product), class: 'thumbnail' do
|
77
|
+
= image_tag product.image_url, width: '100%'
|
78
|
+
td
|
79
|
+
= link_to product.code, comable.admin_product_path(product)
|
80
|
+
- unless product.published?
|
81
|
+
span.fa.fa-eye-slash.text-muted<
|
82
|
+
td
|
83
|
+
= product.name
|
84
|
+
td
|
85
|
+
= number_to_currency product.price
|
86
|
+
td
|
87
|
+
ul.list-unstyled
|
88
|
+
- product.stocks.each do |stock|
|
89
|
+
li
|
90
|
+
strong class="#{(quantity <= 0) ? 'text-danger' : (quantity <= 10) ? 'text-warning' : 'text-success'}"
|
91
|
+
= number_with_delimiter stock.quantity
|
92
|
+
- if stock.sku?
|
93
|
+
span<
|
94
|
+
| (#{stock.sku_name})
|
95
|
+
|
96
|
+
.text-center
|
97
|
+
= paginate @products, theme: :comable_backend
|
@@ -0,0 +1,16 @@
|
|
1
|
+
.comable-page
|
2
|
+
.comable-main-fixed-top
|
3
|
+
.comable-page-heading
|
4
|
+
ul.pull-right.list-inline
|
5
|
+
li
|
6
|
+
= link_to_save
|
7
|
+
|
8
|
+
h1.page-header
|
9
|
+
ol.breadcrumb
|
10
|
+
li>
|
11
|
+
= link_to Comable.t('admin.nav.product'), comable.admin_products_path
|
12
|
+
li.active
|
13
|
+
= Comable.t('admin.actions.new')
|
14
|
+
|
15
|
+
.comable-page-body
|
16
|
+
= render 'form'
|
data/config/routes.rb
CHANGED
@@ -5,6 +5,8 @@ Comable::Core::Engine.routes.draw do
|
|
5
5
|
resource :dashboard, only: :show
|
6
6
|
|
7
7
|
resources :products do
|
8
|
+
resources :variants
|
9
|
+
|
8
10
|
resources :stocks
|
9
11
|
|
10
12
|
collection do
|
@@ -38,6 +40,11 @@ Comable::Core::Engine.routes.draw do
|
|
38
40
|
|
39
41
|
resources :categories
|
40
42
|
resources :pages
|
43
|
+
|
44
|
+
resources :navigations do
|
45
|
+
post :search_linkable_ids, on: :collection
|
46
|
+
end
|
47
|
+
|
41
48
|
resources :users
|
42
49
|
resources :shipment_methods
|
43
50
|
resources :payment_methods
|
@@ -54,7 +61,7 @@ Comable::Core::Engine.routes.draw do
|
|
54
61
|
|
55
62
|
resource :store, controller: :store, only: [:show, :edit, :update]
|
56
63
|
|
57
|
-
devise_for :
|
64
|
+
devise_for :users, path: :user, class_name: Comable::User.name, module: :devise, router_name: :comable, controllers: {
|
58
65
|
sessions: 'comable/admin/user_sessions'
|
59
66
|
}
|
60
67
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comable-backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YOSHIDA Hiroki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: comable-core
|
@@ -16,21 +16,21 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.7.0.beta1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.7.0.beta1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 4.0.0
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '5'
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 4.0.0
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '5'
|
@@ -49,6 +49,9 @@ dependencies:
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.0'
|
54
|
+
- - ">="
|
52
55
|
- !ruby/object:Gem::Version
|
53
56
|
version: 3.0.1
|
54
57
|
type: :runtime
|
@@ -56,6 +59,9 @@ dependencies:
|
|
56
59
|
version_requirements: !ruby/object:Gem::Requirement
|
57
60
|
requirements:
|
58
61
|
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '3.0'
|
64
|
+
- - ">="
|
59
65
|
- !ruby/object:Gem::Version
|
60
66
|
version: 3.0.1
|
61
67
|
- !ruby/object:Gem::Dependency
|
@@ -64,14 +70,20 @@ dependencies:
|
|
64
70
|
requirements:
|
65
71
|
- - ">="
|
66
72
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
73
|
+
version: 5.0.3
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '5.1'
|
68
77
|
type: :runtime
|
69
78
|
prerelease: false
|
70
79
|
version_requirements: !ruby/object:Gem::Requirement
|
71
80
|
requirements:
|
72
81
|
- - ">="
|
73
82
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
83
|
+
version: 5.0.3
|
84
|
+
- - "<"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '5.1'
|
75
87
|
- !ruby/object:Gem::Dependency
|
76
88
|
name: coffee-rails
|
77
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,137 +110,176 @@ dependencies:
|
|
98
110
|
requirements:
|
99
111
|
- - "~>"
|
100
112
|
- !ruby/object:Gem::Version
|
101
|
-
version: 2.0
|
113
|
+
version: '2.0'
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 2.0.5
|
102
117
|
type: :runtime
|
103
118
|
prerelease: false
|
104
119
|
version_requirements: !ruby/object:Gem::Requirement
|
105
120
|
requirements:
|
106
121
|
- - "~>"
|
107
122
|
- !ruby/object:Gem::Version
|
108
|
-
version: 2.0
|
123
|
+
version: '2.0'
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 2.0.5
|
109
127
|
- !ruby/object:Gem::Dependency
|
110
128
|
name: uglifier
|
111
129
|
requirement: !ruby/object:Gem::Requirement
|
112
130
|
requirements:
|
113
131
|
- - "~>"
|
114
132
|
- !ruby/object:Gem::Version
|
115
|
-
version: 2.7
|
133
|
+
version: '2.7'
|
116
134
|
type: :runtime
|
117
135
|
prerelease: false
|
118
136
|
version_requirements: !ruby/object:Gem::Requirement
|
119
137
|
requirements:
|
120
138
|
- - "~>"
|
121
139
|
- !ruby/object:Gem::Version
|
122
|
-
version: 2.7
|
140
|
+
version: '2.7'
|
123
141
|
- !ruby/object:Gem::Dependency
|
124
|
-
name:
|
142
|
+
name: jquery-rails
|
125
143
|
requirement: !ruby/object:Gem::Requirement
|
126
144
|
requirements:
|
127
|
-
- - "
|
145
|
+
- - ">="
|
128
146
|
- !ruby/object:Gem::Version
|
129
|
-
version: 3.
|
147
|
+
version: 3.1.2
|
148
|
+
- - "<"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '4.1'
|
130
151
|
type: :runtime
|
131
152
|
prerelease: false
|
132
153
|
version_requirements: !ruby/object:Gem::Requirement
|
133
154
|
requirements:
|
134
|
-
- - "
|
155
|
+
- - ">="
|
135
156
|
- !ruby/object:Gem::Version
|
136
|
-
version: 3.
|
157
|
+
version: 3.1.2
|
158
|
+
- - "<"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '4.1'
|
137
161
|
- !ruby/object:Gem::Dependency
|
138
|
-
name:
|
162
|
+
name: jquery-ui-rails
|
139
163
|
requirement: !ruby/object:Gem::Requirement
|
140
164
|
requirements:
|
141
165
|
- - "~>"
|
142
166
|
- !ruby/object:Gem::Version
|
143
|
-
version:
|
167
|
+
version: '5.0'
|
168
|
+
- - ">="
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: 5.0.3
|
144
171
|
type: :runtime
|
145
172
|
prerelease: false
|
146
173
|
version_requirements: !ruby/object:Gem::Requirement
|
147
174
|
requirements:
|
148
175
|
- - "~>"
|
149
176
|
- !ruby/object:Gem::Version
|
150
|
-
version:
|
177
|
+
version: '5.0'
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 5.0.3
|
151
181
|
- !ruby/object:Gem::Dependency
|
152
|
-
name:
|
182
|
+
name: bootstrap-sass
|
153
183
|
requirement: !ruby/object:Gem::Requirement
|
154
184
|
requirements:
|
155
185
|
- - "~>"
|
156
186
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
187
|
+
version: '3.3'
|
188
|
+
- - ">="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: 3.3.3
|
158
191
|
type: :runtime
|
159
192
|
prerelease: false
|
160
193
|
version_requirements: !ruby/object:Gem::Requirement
|
161
194
|
requirements:
|
162
195
|
- - "~>"
|
163
196
|
- !ruby/object:Gem::Version
|
164
|
-
version:
|
197
|
+
version: '3.3'
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 3.3.3
|
165
201
|
- !ruby/object:Gem::Dependency
|
166
|
-
name:
|
202
|
+
name: font-awesome-rails
|
167
203
|
requirement: !ruby/object:Gem::Requirement
|
168
204
|
requirements:
|
169
205
|
- - "~>"
|
170
206
|
- !ruby/object:Gem::Version
|
171
|
-
version:
|
207
|
+
version: '4.3'
|
172
208
|
type: :runtime
|
173
209
|
prerelease: false
|
174
210
|
version_requirements: !ruby/object:Gem::Requirement
|
175
211
|
requirements:
|
176
212
|
- - "~>"
|
177
213
|
- !ruby/object:Gem::Version
|
178
|
-
version:
|
214
|
+
version: '4.3'
|
179
215
|
- !ruby/object:Gem::Dependency
|
180
|
-
name:
|
216
|
+
name: kaminari
|
181
217
|
requirement: !ruby/object:Gem::Requirement
|
182
218
|
requirements:
|
183
219
|
- - "~>"
|
184
220
|
- !ruby/object:Gem::Version
|
185
|
-
version:
|
221
|
+
version: '0.16'
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: 0.16.2
|
186
225
|
type: :runtime
|
187
226
|
prerelease: false
|
188
227
|
version_requirements: !ruby/object:Gem::Requirement
|
189
228
|
requirements:
|
190
229
|
- - "~>"
|
191
230
|
- !ruby/object:Gem::Version
|
192
|
-
version:
|
231
|
+
version: '0.16'
|
232
|
+
- - ">="
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: 0.16.2
|
193
235
|
- !ruby/object:Gem::Dependency
|
194
|
-
name:
|
236
|
+
name: dynamic_form
|
195
237
|
requirement: !ruby/object:Gem::Requirement
|
196
238
|
requirements:
|
197
239
|
- - "~>"
|
198
240
|
- !ruby/object:Gem::Version
|
199
|
-
version:
|
200
|
-
- - "
|
241
|
+
version: '1.1'
|
242
|
+
- - ">="
|
201
243
|
- !ruby/object:Gem::Version
|
202
|
-
version:
|
244
|
+
version: 1.1.4
|
203
245
|
type: :runtime
|
204
246
|
prerelease: false
|
205
247
|
version_requirements: !ruby/object:Gem::Requirement
|
206
248
|
requirements:
|
207
249
|
- - "~>"
|
208
250
|
- !ruby/object:Gem::Version
|
209
|
-
version:
|
210
|
-
- - "
|
251
|
+
version: '1.1'
|
252
|
+
- - ">="
|
211
253
|
- !ruby/object:Gem::Version
|
212
|
-
version:
|
254
|
+
version: 1.1.4
|
213
255
|
- !ruby/object:Gem::Dependency
|
214
|
-
name:
|
256
|
+
name: ransack
|
215
257
|
requirement: !ruby/object:Gem::Requirement
|
216
258
|
requirements:
|
217
259
|
- - "~>"
|
218
260
|
- !ruby/object:Gem::Version
|
219
|
-
version:
|
261
|
+
version: '1.6'
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: 1.6.3
|
220
265
|
type: :runtime
|
221
266
|
prerelease: false
|
222
267
|
version_requirements: !ruby/object:Gem::Requirement
|
223
268
|
requirements:
|
224
269
|
- - "~>"
|
225
270
|
- !ruby/object:Gem::Version
|
226
|
-
version:
|
271
|
+
version: '1.6'
|
272
|
+
- - ">="
|
273
|
+
- !ruby/object:Gem::Version
|
274
|
+
version: 1.6.3
|
227
275
|
- !ruby/object:Gem::Dependency
|
228
276
|
name: raphael-rails
|
229
277
|
requirement: !ruby/object:Gem::Requirement
|
230
278
|
requirements:
|
231
279
|
- - "~>"
|
280
|
+
- !ruby/object:Gem::Version
|
281
|
+
version: '2.1'
|
282
|
+
- - ">="
|
232
283
|
- !ruby/object:Gem::Version
|
233
284
|
version: 2.1.2
|
234
285
|
type: :runtime
|
@@ -236,6 +287,9 @@ dependencies:
|
|
236
287
|
version_requirements: !ruby/object:Gem::Requirement
|
237
288
|
requirements:
|
238
289
|
- - "~>"
|
290
|
+
- !ruby/object:Gem::Version
|
291
|
+
version: '2.1'
|
292
|
+
- - ">="
|
239
293
|
- !ruby/object:Gem::Version
|
240
294
|
version: 2.1.2
|
241
295
|
- !ruby/object:Gem::Dependency
|
@@ -243,6 +297,9 @@ dependencies:
|
|
243
297
|
requirement: !ruby/object:Gem::Requirement
|
244
298
|
requirements:
|
245
299
|
- - "~>"
|
300
|
+
- !ruby/object:Gem::Version
|
301
|
+
version: '0.5'
|
302
|
+
- - ">="
|
246
303
|
- !ruby/object:Gem::Version
|
247
304
|
version: 0.5.1
|
248
305
|
type: :runtime
|
@@ -250,6 +307,9 @@ dependencies:
|
|
250
307
|
version_requirements: !ruby/object:Gem::Requirement
|
251
308
|
requirements:
|
252
309
|
- - "~>"
|
310
|
+
- !ruby/object:Gem::Version
|
311
|
+
version: '0.5'
|
312
|
+
- - ">="
|
253
313
|
- !ruby/object:Gem::Version
|
254
314
|
version: 0.5.1
|
255
315
|
- !ruby/object:Gem::Dependency
|
@@ -257,6 +317,9 @@ dependencies:
|
|
257
317
|
requirement: !ruby/object:Gem::Requirement
|
258
318
|
requirements:
|
259
319
|
- - "~>"
|
320
|
+
- !ruby/object:Gem::Version
|
321
|
+
version: 0.1.6
|
322
|
+
- - ">="
|
260
323
|
- !ruby/object:Gem::Version
|
261
324
|
version: 0.1.6.7
|
262
325
|
type: :runtime
|
@@ -264,6 +327,9 @@ dependencies:
|
|
264
327
|
version_requirements: !ruby/object:Gem::Requirement
|
265
328
|
requirements:
|
266
329
|
- - "~>"
|
330
|
+
- !ruby/object:Gem::Version
|
331
|
+
version: 0.1.6
|
332
|
+
- - ">="
|
267
333
|
- !ruby/object:Gem::Version
|
268
334
|
version: 0.1.6.7
|
269
335
|
- !ruby/object:Gem::Dependency
|
@@ -272,19 +338,22 @@ dependencies:
|
|
272
338
|
requirements:
|
273
339
|
- - "~>"
|
274
340
|
- !ruby/object:Gem::Version
|
275
|
-
version: 1.1
|
341
|
+
version: '1.1'
|
276
342
|
type: :runtime
|
277
343
|
prerelease: false
|
278
344
|
version_requirements: !ruby/object:Gem::Requirement
|
279
345
|
requirements:
|
280
346
|
- - "~>"
|
281
347
|
- !ruby/object:Gem::Version
|
282
|
-
version: 1.1
|
348
|
+
version: '1.1'
|
283
349
|
- !ruby/object:Gem::Dependency
|
284
350
|
name: turbolinks
|
285
351
|
requirement: !ruby/object:Gem::Requirement
|
286
352
|
requirements:
|
287
353
|
- - "~>"
|
354
|
+
- !ruby/object:Gem::Version
|
355
|
+
version: '2.5'
|
356
|
+
- - ">="
|
288
357
|
- !ruby/object:Gem::Version
|
289
358
|
version: 2.5.3
|
290
359
|
type: :runtime
|
@@ -292,6 +361,9 @@ dependencies:
|
|
292
361
|
version_requirements: !ruby/object:Gem::Requirement
|
293
362
|
requirements:
|
294
363
|
- - "~>"
|
364
|
+
- !ruby/object:Gem::Version
|
365
|
+
version: '2.5'
|
366
|
+
- - ">="
|
295
367
|
- !ruby/object:Gem::Version
|
296
368
|
version: 2.5.3
|
297
369
|
- !ruby/object:Gem::Dependency
|
@@ -300,33 +372,42 @@ dependencies:
|
|
300
372
|
requirements:
|
301
373
|
- - "~>"
|
302
374
|
- !ruby/object:Gem::Version
|
303
|
-
version: 2.1
|
375
|
+
version: '2.1'
|
304
376
|
type: :runtime
|
305
377
|
prerelease: false
|
306
378
|
version_requirements: !ruby/object:Gem::Requirement
|
307
379
|
requirements:
|
308
380
|
- - "~>"
|
309
381
|
- !ruby/object:Gem::Version
|
310
|
-
version: 2.1
|
382
|
+
version: '2.1'
|
311
383
|
- !ruby/object:Gem::Dependency
|
312
384
|
name: awesome_admin_layout
|
313
385
|
requirement: !ruby/object:Gem::Requirement
|
314
386
|
requirements:
|
315
387
|
- - "~>"
|
316
388
|
- !ruby/object:Gem::Version
|
317
|
-
version: 0.
|
389
|
+
version: '0.2'
|
390
|
+
- - ">="
|
391
|
+
- !ruby/object:Gem::Version
|
392
|
+
version: 0.2.1
|
318
393
|
type: :runtime
|
319
394
|
prerelease: false
|
320
395
|
version_requirements: !ruby/object:Gem::Requirement
|
321
396
|
requirements:
|
322
397
|
- - "~>"
|
323
398
|
- !ruby/object:Gem::Version
|
324
|
-
version: 0.
|
399
|
+
version: '0.2'
|
400
|
+
- - ">="
|
401
|
+
- !ruby/object:Gem::Version
|
402
|
+
version: 0.2.1
|
325
403
|
- !ruby/object:Gem::Dependency
|
326
404
|
name: ace-rails-ap
|
327
405
|
requirement: !ruby/object:Gem::Requirement
|
328
406
|
requirements:
|
329
407
|
- - "~>"
|
408
|
+
- !ruby/object:Gem::Version
|
409
|
+
version: '3.0'
|
410
|
+
- - ">="
|
330
411
|
- !ruby/object:Gem::Version
|
331
412
|
version: 3.0.2
|
332
413
|
type: :runtime
|
@@ -334,6 +415,9 @@ dependencies:
|
|
334
415
|
version_requirements: !ruby/object:Gem::Requirement
|
335
416
|
requirements:
|
336
417
|
- - "~>"
|
418
|
+
- !ruby/object:Gem::Version
|
419
|
+
version: '3.0'
|
420
|
+
- - ">="
|
337
421
|
- !ruby/object:Gem::Version
|
338
422
|
version: 3.0.2
|
339
423
|
- !ruby/object:Gem::Dependency
|
@@ -341,6 +425,9 @@ dependencies:
|
|
341
425
|
requirement: !ruby/object:Gem::Requirement
|
342
426
|
requirements:
|
343
427
|
- - "~>"
|
428
|
+
- !ruby/object:Gem::Version
|
429
|
+
version: '2.10'
|
430
|
+
- - ">="
|
344
431
|
- !ruby/object:Gem::Version
|
345
432
|
version: 2.10.2
|
346
433
|
type: :runtime
|
@@ -348,6 +435,9 @@ dependencies:
|
|
348
435
|
version_requirements: !ruby/object:Gem::Requirement
|
349
436
|
requirements:
|
350
437
|
- - "~>"
|
438
|
+
- !ruby/object:Gem::Version
|
439
|
+
version: '2.10'
|
440
|
+
- - ">="
|
351
441
|
- !ruby/object:Gem::Version
|
352
442
|
version: 2.10.2
|
353
443
|
- !ruby/object:Gem::Dependency
|
@@ -355,6 +445,9 @@ dependencies:
|
|
355
445
|
requirement: !ruby/object:Gem::Requirement
|
356
446
|
requirements:
|
357
447
|
- - "~>"
|
448
|
+
- !ruby/object:Gem::Version
|
449
|
+
version: '4.7'
|
450
|
+
- - ">="
|
358
451
|
- !ruby/object:Gem::Version
|
359
452
|
version: 4.7.14
|
360
453
|
type: :runtime
|
@@ -362,6 +455,9 @@ dependencies:
|
|
362
455
|
version_requirements: !ruby/object:Gem::Requirement
|
363
456
|
requirements:
|
364
457
|
- - "~>"
|
458
|
+
- !ruby/object:Gem::Version
|
459
|
+
version: '4.7'
|
460
|
+
- - ">="
|
365
461
|
- !ruby/object:Gem::Version
|
366
462
|
version: 4.7.14
|
367
463
|
description: Provide backend functions for Comable.
|
@@ -377,16 +473,19 @@ files:
|
|
377
473
|
- app/assets/javascripts/comable/admin/categories.coffee
|
378
474
|
- app/assets/javascripts/comable/admin/dashboard.coffee
|
379
475
|
- app/assets/javascripts/comable/admin/dispatcher.coffee
|
476
|
+
- app/assets/javascripts/comable/admin/navigations.coffee
|
380
477
|
- app/assets/javascripts/comable/admin/orders.coffee
|
381
478
|
- app/assets/javascripts/comable/admin/pages.coffee
|
382
479
|
- app/assets/javascripts/comable/admin/products.coffee
|
383
480
|
- app/assets/javascripts/comable/admin/search.coffee
|
384
481
|
- app/assets/javascripts/comable/admin/themes.coffee
|
482
|
+
- app/assets/javascripts/comable/admin/variants.coffee
|
385
483
|
- app/assets/stylesheets/comable/admin/_common.scss
|
386
484
|
- app/assets/stylesheets/comable/admin/_dashboard.scss
|
387
485
|
- app/assets/stylesheets/comable/admin/_errors.scss
|
388
486
|
- app/assets/stylesheets/comable/admin/_flow.scss
|
389
487
|
- app/assets/stylesheets/comable/admin/_mixins.scss
|
488
|
+
- app/assets/stylesheets/comable/admin/_navigations.scss
|
390
489
|
- app/assets/stylesheets/comable/admin/_orders.scss
|
391
490
|
- app/assets/stylesheets/comable/admin/_overrides.scss
|
392
491
|
- app/assets/stylesheets/comable/admin/_pages.scss
|
@@ -394,6 +493,7 @@ files:
|
|
394
493
|
- app/assets/stylesheets/comable/admin/_themes.scss
|
395
494
|
- app/assets/stylesheets/comable/admin/_user_sessions.scss
|
396
495
|
- app/assets/stylesheets/comable/admin/_variables.scss
|
496
|
+
- app/assets/stylesheets/comable/admin/_variants.scss
|
397
497
|
- app/assets/stylesheets/comable/admin/application.scss
|
398
498
|
- app/assets/stylesheets/comable/admin/overrides/awesome_admin_layout.scss
|
399
499
|
- app/assets/stylesheets/comable/admin/overrides/bootstrap.scss
|
@@ -402,6 +502,7 @@ files:
|
|
402
502
|
- app/controllers/comable/admin/application_controller.rb
|
403
503
|
- app/controllers/comable/admin/categories_controller.rb
|
404
504
|
- app/controllers/comable/admin/dashboard_controller.rb
|
505
|
+
- app/controllers/comable/admin/navigations_controller.rb
|
405
506
|
- app/controllers/comable/admin/orders_controller.rb
|
406
507
|
- app/controllers/comable/admin/pages_controller.rb
|
407
508
|
- app/controllers/comable/admin/payment_methods_controller.rb
|
@@ -413,16 +514,25 @@ files:
|
|
413
514
|
- app/controllers/comable/admin/trackers_controller.rb
|
414
515
|
- app/controllers/comable/admin/user_sessions_controller.rb
|
415
516
|
- app/controllers/comable/admin/users_controller.rb
|
517
|
+
- app/controllers/comable/admin/variants_controller.rb
|
416
518
|
- app/helpers/comable/admin/application_helper.rb
|
519
|
+
- app/helpers/comable/admin/navigations_helper.rb
|
417
520
|
- app/helpers/comable/admin/orders_helper.rb
|
418
521
|
- app/helpers/comable/admin/pages_helper.rb
|
419
522
|
- app/helpers/comable/admin/products_helper.rb
|
420
523
|
- app/helpers/comable/admin/shipment_methods_helper.rb
|
421
524
|
- app/helpers/comable/admin/stores_helper.rb
|
422
525
|
- app/helpers/comable/admin/themes_helper.rb
|
526
|
+
- app/navigations/comable/admin/application.rb
|
423
527
|
- app/views/comable/admin/categories/index.slim
|
424
528
|
- app/views/comable/admin/dashboard/_widget.slim
|
425
529
|
- app/views/comable/admin/dashboard/show.slim
|
530
|
+
- app/views/comable/admin/navigations/_form.slim
|
531
|
+
- app/views/comable/admin/navigations/_navigation_item_fields.slim
|
532
|
+
- app/views/comable/admin/navigations/edit.slim
|
533
|
+
- app/views/comable/admin/navigations/index.slim
|
534
|
+
- app/views/comable/admin/navigations/new.slim
|
535
|
+
- app/views/comable/admin/navigations/search_linkable_ids.coffee
|
426
536
|
- app/views/comable/admin/orders/_google_map.slim
|
427
537
|
- app/views/comable/admin/orders/_payment_state.slim
|
428
538
|
- app/views/comable/admin/orders/_shipment_state.slim
|
@@ -445,9 +555,13 @@ files:
|
|
445
555
|
- app/views/comable/admin/shared/_condition_fields.slim
|
446
556
|
- app/views/comable/admin/shared/_footer.slim
|
447
557
|
- app/views/comable/admin/shared/_grouping_fields.slim
|
448
|
-
- app/views/comable/admin/shared/
|
558
|
+
- app/views/comable/admin/shared/_images_fields.slim
|
449
559
|
- app/views/comable/admin/shared/_notifier.slim
|
560
|
+
- app/views/comable/admin/shared/_option_type_fields.slim
|
561
|
+
- app/views/comable/admin/shared/_option_types_fields.slim
|
450
562
|
- app/views/comable/admin/shared/_value_fields.slim
|
563
|
+
- app/views/comable/admin/shared/_variant_form.slim
|
564
|
+
- app/views/comable/admin/shared/_variants_fields.slim
|
451
565
|
- app/views/comable/admin/shared/export.xlsx.axlsx
|
452
566
|
- app/views/comable/admin/shipment_methods/_form.slim
|
453
567
|
- app/views/comable/admin/shipment_methods/edit.slim
|
@@ -473,6 +587,10 @@ files:
|
|
473
587
|
- app/views/comable/admin/users/edit.slim
|
474
588
|
- app/views/comable/admin/users/index.slim
|
475
589
|
- app/views/comable/admin/users/show.slim
|
590
|
+
- app/views/comable/admin/variants/_form.slim
|
591
|
+
- app/views/comable/admin/variants/edit.slim
|
592
|
+
- app/views/comable/admin/variants/index.slim
|
593
|
+
- app/views/comable/admin/variants/new.slim
|
476
594
|
- app/views/kaminari/comable_backend/_first_page.html.slim
|
477
595
|
- app/views/kaminari/comable_backend/_gap.html.slim
|
478
596
|
- app/views/kaminari/comable_backend/_last_page.html.slim
|
@@ -481,7 +599,6 @@ files:
|
|
481
599
|
- app/views/kaminari/comable_backend/_paginator.html.slim
|
482
600
|
- app/views/kaminari/comable_backend/_prev_page.html.slim
|
483
601
|
- app/views/layouts/comable/admin/application.slim
|
484
|
-
- config/initializers/awesome_admin_layout.rb
|
485
602
|
- config/routes.rb
|
486
603
|
- lib/comable/backend.rb
|
487
604
|
- lib/comable/backend/engine.rb
|
@@ -501,9 +618,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
501
618
|
version: '0'
|
502
619
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
503
620
|
requirements:
|
504
|
-
- - "
|
621
|
+
- - ">"
|
505
622
|
- !ruby/object:Gem::Version
|
506
|
-
version:
|
623
|
+
version: 1.3.1
|
507
624
|
requirements: []
|
508
625
|
rubyforge_project:
|
509
626
|
rubygems_version: 2.2.2
|