wco_models 3.1.0.109 → 3.1.0.111

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: 37b37970773835266ab919f13e32f7dc28659fc9929db71df595e735ad5e8bdc
4
- data.tar.gz: 46f1f5f4850afd23ae1549cca304f628fbdc28fdb7ce0401883a18a7f2a0525c
3
+ metadata.gz: 52d06f73743e41635eaff490caeefbe75c3bb178649069b482d395873f046539
4
+ data.tar.gz: 1ee096723c2c17347c3a6f1e98f6f165ad445256eedd1aa337eaef759a44d479
5
5
  SHA512:
6
- metadata.gz: e0bf67a1ac39c5603e7ed0e6049c20a8be45cd3296eb78872d63076eb9985b90ea43dc0b775d3ac0abda792dbe13c30623c455c509f7a400e5186e9db6bb6649
7
- data.tar.gz: db920aa78f0603c6fb9b815211cae7900cd5c6dc447b03b31bd759236cbc7236cb698fcfd608418154fa9181eded24f88c6e19f6141cabcdc6e5d14c7e5efb17
6
+ metadata.gz: 1ea0e5198bd0d8e48a35dfb6ad9ee2aa9579ff8c340282000cb5b0c726a72e51e78a48d78e7b9ae2246a4fb2fbeea00841fe0937c89053235645b60655617c88
7
+ data.tar.gz: 7d4bfeb05258153700bd1ba4c2905fbd743aac91ddb09d949e83a817fd8be073938f1386b0017d0a05403aec49f030db6861c66758e7b604844a776ca140e14e
@@ -0,0 +1,16 @@
1
+
2
+ body {
3
+ background: #222;
4
+ color: #ccc;
5
+ }
6
+ a {
7
+ // color: #d30048;
8
+ color: #00c5b7;
9
+ }
10
+
11
+ input,
12
+ select,
13
+ textarea {
14
+ background: #333;
15
+ color: #ccc;
16
+ }
@@ -0,0 +1,20 @@
1
+
2
+ /**
3
+ * production theme
4
+ **/
5
+
6
+ body {
7
+ background: #ffe5cc;
8
+ // color: #ccc;
9
+ }
10
+ a {
11
+ // color: #d30048;
12
+ // color: #00c5b7;
13
+ }
14
+
15
+ input,
16
+ select,
17
+ textarea {
18
+ // background: #333;
19
+ // color: #ccc;
20
+ }
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  *= require vendor/bootstrap-4.6.2.min
3
3
  *
4
- *= require ./utils
5
4
  *= require_tree .
5
+ *= require ../production_theme
6
6
  **/
7
7
 
8
8
  .bold {
@@ -60,8 +60,8 @@
60
60
  %hr
61
61
  %h5
62
62
  Invoices (?)
63
- = link_to '[+stripe]', new_invoice_stripe_path({ leadset: @lead.leadset })
64
- = link_to '[+pdf]', new_invoice_pdf_path({ leadset: @lead.leadset })
63
+ = link_to '[+stripe]', new_invoice_stripe_path({ leadset_id: @lead.leadset_id })
64
+ = link_to '[+pdf]', new_invoice_pdf_path({ leadset_id: @lead.leadset_id })
65
65
  %ul
66
66
  %li None?
67
67
 
@@ -3,7 +3,8 @@
3
3
  .prices--form
4
4
 
5
5
  = form_for price, as: :price, html: { class: 'flex-row' } do |f|
6
- = hidden_field_tag 'price[product_id]', price.product_id
6
+ = hidden_field_tag 'price[product_id]', price.product_id
7
+ = hidden_field_tag 'price[product_type]', price.product_type
7
8
 
8
9
  .field
9
10
  %label amount cents
@@ -10,7 +10,6 @@
10
10
  .col-md-6
11
11
  %h5.collapse-expand#stripeProducts
12
12
  Stripe Products (#{@stripe_products.length}):
13
- -# = link_to '[+]', new_product_path
14
13
  %ol
15
14
  - @stripe_products.each do |product_id, product|
16
15
  %li
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.109
4
+ version: 3.1.0.111
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-13 00:00:00.000000000 Z
11
+ date: 2024-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -376,6 +376,8 @@ files:
376
376
  - app/assets/javascripts/wco/invoices.js
377
377
  - app/assets/javascripts/wco/office_action_templates.js
378
378
  - app/assets/javascripts/wco/shared.js
379
+ - app/assets/stylesheets/dark_theme.scss
380
+ - app/assets/stylesheets/production_theme.scss
379
381
  - app/assets/stylesheets/vendor/bootstrap-4.6.2.min.css
380
382
  - app/assets/stylesheets/wco/alerts_notices.scss
381
383
  - app/assets/stylesheets/wco/application.css
@@ -422,7 +424,6 @@ files:
422
424
  - app/models/wco/office_action_template.rb
423
425
  - app/models/wco/office_action_template_tie.rb
424
426
  - app/models/wco/photo.rb
425
- - app/models/wco/premium_item.rb-trash
426
427
  - app/models/wco/price.rb
427
428
  - app/models/wco/product.rb
428
429
  - app/models/wco/profile.rb
@@ -447,7 +448,6 @@ files:
447
448
  - app/models/wco_email/unsubscribe.rb
448
449
  - app/models/wco_hosting/appliance.rb
449
450
  - app/models/wco_hosting/appliance_tmpl.rb
450
- - app/models/wco_hosting/appliance_tmpl_leadset.rb-trash
451
451
  - app/models/wco_hosting/domain.rb
452
452
  - app/models/wco_hosting/environment.rb
453
453
  - app/models/wco_hosting/serverhost.rb
@@ -467,7 +467,6 @@ files:
467
467
  - app/views/wco/galleries/_form.haml
468
468
  - app/views/wco/galleries/_header.haml
469
469
  - app/views/wco/galleries/_index.haml
470
- - app/views/wco/galleries/_menu.haml-trash
471
470
  - app/views/wco/galleries/_menu_secondary.haml
472
471
  - app/views/wco/galleries/_thumbs.haml
473
472
  - app/views/wco/galleries/_title.haml
@@ -479,7 +478,6 @@ files:
479
478
  - app/views/wco/headlines/_index.haml
480
479
  - app/views/wco/headlines/edit.haml
481
480
  - app/views/wco/headlines/new.haml
482
- - app/views/wco/invoices/_form.haml-trash
483
481
  - app/views/wco/invoices/_header.haml
484
482
  - app/views/wco/invoices/_index_list.haml
485
483
  - app/views/wco/invoices/_index_table.haml
@@ -581,16 +579,6 @@ files:
581
579
  - app/views/wco/videos/edit.haml
582
580
  - app/views/wco/videos/new.haml
583
581
  - app/views/wco/videos/show.haml
584
- - app/views/wco/videos/trash/_embed.haml
585
- - app/views/wco/videos/trash/_embed_half.erb
586
- - app/views/wco/videos/trash/_embed_mini.erb
587
- - app/views/wco/videos/trash/_embed_s3.erb
588
- - app/views/wco/videos/trash/_embed_youtube.erb
589
- - app/views/wco/videos/trash/_index_title.haml
590
- - app/views/wco/videos/trash/_list.haml
591
- - app/views/wco/videos/trash/_list_small.haml
592
- - app/views/wco/videos/trash/_meta_edit.haml
593
- - app/views/wco/videos/trash/_preview.haml
594
582
  - app/views/wco_email/application_mailer/_footer_unsubscribe.html.erb
595
583
  - app/views/wco_email/application_mailer/_header_logo.html.erb
596
584
  - app/views/wco_email/application_mailer/forwarder_notify.html.erb
@@ -622,7 +610,6 @@ files:
622
610
  - app/views/wco_hosting/docker-compose/dc-helloworld.erb
623
611
  - app/views/wco_hosting/docker-compose/dc-react.erb
624
612
  - app/views/wco_hosting/docker-compose/dc-wordpress.erb
625
- - app/views/wco_hosting/scripts/create_subdomain.json.erb-trash
626
613
  - app/views/wco_hosting/scripts/create_volume.erb
627
614
  - app/views/wco_hosting/scripts/nginx_site.conf.erb
628
615
  - config/initializers/assets.rb
@@ -1,13 +0,0 @@
1
-
2
- module Wco::PremiumItem
3
-
4
- def self.included base
5
- base.send :field, :premium_tier, type: Integer, default: 0 # how many unlocks are need, to get access? 0 = free
6
- base.send :has_many, :premium_purchases, class_name: '::Ish::Payment', as: :item
7
- end
8
-
9
- def is_premium
10
- premium_tier > 0
11
- end
12
-
13
- end
@@ -1,11 +0,0 @@
1
-
2
- class WcoHosting::ApplianceTmplLeadset
3
- include Mongoid::Document
4
- include Mongoid::Timestamps
5
- store_in collection: 'wco_appliance_tmpl_leadsets'
6
-
7
- belongs_to :leadset, class_name: 'Wco::Leadset'
8
- belongs_to :appliance_tmpl, class_name: 'WcoHosting::ApplianceTmpl'
9
-
10
- end
11
-
@@ -1,10 +0,0 @@
1
-
2
- .galleries--menu
3
-
4
- = link_to "Galleries (#{Wco::Gallery.all.length})", galleries_path
5
-
6
- .inline-search
7
- = form_tag galleries_path, method: :get do
8
- = text_field_tag :q
9
-
10
- = link_to '[+]', new_gallery_path
@@ -1,29 +0,0 @@
1
-
2
- - url = invoice.persisted? ? invoice_path( invoice.id ) : invoices_path
3
-
4
- = form_for invoice, :as => :invoice, :url => url do |f|
5
- = hidden_field_tag 'invoice[leadset_id]', @leadset.id
6
-
7
- .input-field
8
- %label Email
9
- = @leadset.email
10
- -# - if @leadset.email
11
- -# = f.text_field :email, value: @leadset.email
12
- -# - elsif @leadset.employees.length == 1
13
- -# = f.text_field :email, value: @leadset.employees[0].email
14
- -# - else
15
- -# = f.select :email, options_for_select([[nil,nil]] + @leadset.employees.map { |i| [ i.email, i.email ] } )
16
-
17
- .input-field
18
- %label item
19
- = select_tag 'invoice[items][]', options_for_select( @products_list )
20
-
21
- -# .input-field
22
- -# %label number
23
- -# = f.number_field :number
24
-
25
- -# .input-field
26
- -# %label Description
27
- -# = f.text_area :description
28
-
29
- = f.submit 'Save'
@@ -1,5 +0,0 @@
1
-
2
- - if video.youtube_id.present?
3
- = render 'embed_youtube', video: video
4
- - else
5
- = render 'embed_s3', video: video
@@ -1,4 +0,0 @@
1
-
2
- <div class="video-embed-half">
3
- <iframe width="430" height="322" src="//www.youtube.com/embed/<%= video.youtube_id %>" frameborder="0" allowfullscreen></iframe>
4
- </div>
@@ -1,4 +0,0 @@
1
-
2
- <div class="video-embed-half">
3
- <iframe width="200" height="150" src="//www.youtube.com/embed/<%= video.youtube_id %>" frameborder="0" allowfullscreen></iframe>
4
- </div>
@@ -1,6 +0,0 @@
1
-
2
- <div class="" style="" >
3
- <!-- <iframe width="430" height="322" src="<%= video.video.url %>" frameborder="0" allowfullscreen></iframe> -->
4
- <iframe width="640" height="480" src="<%= video.video.url %>" frameborder="0" allowfullscreen></iframe>
5
- <!-- <iframe src="<%= video.video.url %>" frameborder="0" allowfullscreen></iframe> -->
6
- </div>
@@ -1,4 +0,0 @@
1
-
2
- <div class="video-embed">
3
- <iframe width="560" height="315" src="//www.youtube.com/embed/<%= video.youtube_id %>" frameborder="0" allowfullscreen></iframe>
4
- </div>
@@ -1,27 +0,0 @@
1
-
2
- -# videos ||= @videos
3
- -# videos = videos.page params[:videos_page]
4
-
5
- .row
6
- .col.s12
7
- %h5
8
- Videos (#{videos.count})
9
- = link_to image_new, new_video_path
10
-
11
- = paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
12
-
13
- - videos.each do |video|
14
- .panel
15
- .panel-content
16
- .row
17
- .col.s12
18
- .float-left= youtube_image_tag( video )
19
- .a
20
- = link_to video.name, video_path( video )
21
- = link_to image_edit, edit_video_path( video )
22
- .inline= button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
23
- = render 'meta', :item => video
24
-
25
- = paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
26
-
27
-
@@ -1,14 +0,0 @@
1
-
2
- .videos-list
3
- - if videos.blank?
4
- = t('videos.no_videos')
5
- - else
6
- = paginate videos, :param_name => :videos_page, :views_prefix => 'templates'
7
- - videos.each do |video|
8
- .callout
9
- %h5= link_to (video.name.blank? ? t('videos.no_title') : video.name), video_path( video.youtube_id )
10
- .text-center= render 'videos/embed', :video => video
11
- = video.descr
12
- = paginate videos, :param_name => :videos_page, :views_prefix => 'templates'
13
- .c
14
- .c
@@ -1,9 +0,0 @@
1
-
2
- .list-small
3
- %ul
4
- - videos.each do |v|
5
- %li
6
- = image_tag( "http://img.youtube.com/vi/#{v.youtube_id}/1.jpg" )
7
- = link_to '[~]', edit_video_path( v )
8
- = link_to '[_]', video_path( v )
9
- = paginate videos, :param_name => :videos_page, :views_prefix => 'templates'
@@ -1,4 +0,0 @@
1
-
2
- .meta-edit
3
- .inline= button_to '[x]', video_path( item ), :method => :delete, :data => { :confirm => 'Are you sure?' }
4
- = link_to '[~]', edit_video_path( item )
@@ -1,2 +0,0 @@
1
-
2
- = image_tag "https://img.youtube.com/vi/#{video.youtube_id}/0.jpg", :style => "width: 100%"
@@ -1,16 +0,0 @@
1
-
2
-
3
- {
4
- "Comment": "optional",
5
- "Changes": [
6
- {
7
- "Action": "CREATE",
8
- "ResourceRecordSet": {
9
- "Name": "<%= @app.host %>",
10
- "Type": "A",
11
- "TTL": 3600,
12
- "ResourceRecords": [{ "Value": "<%= @app.serverhost.public_ip %>" }]
13
- }
14
- }
15
- ]
16
- }