wco_models 3.1.0.326 → 3.1.0.328

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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/wco/api/newspartials_controller.rb +9 -0
  3. data/app/controllers/wco/newsvideos_controller.rb +12 -6
  4. data/app/models/iro/option.rb +1 -1
  5. data/app/models/wco/newspartial.rb +12 -2
  6. data/app/models/wco/setting.rb +1 -1
  7. data/app/models/wco/site.rb-trash +65 -0
  8. data/app/views/wco/api/newsproducer/_studio_blue2.js +16 -37
  9. data/app/views/wco/api/newsproducer/_studio_fps.js +12 -12
  10. data/app/views/wco/api/newsproducer/studio_fps.html.erb +8 -10
  11. data/app/views/wco/api/newsproducer/trash/_scenes.js-bk +20 -0
  12. data/app/views/wco/api/newsproducer/trash/_scenes.js.erb +15 -0
  13. data/app/views/wco/api/newsproducer/trash/_studio_blue0.js +326 -0
  14. data/app/views/wco/api/newsproducer/trash/_studio_blue1.js +733 -0
  15. data/app/views/wco/api/newsproducer/trash/studio_blue0.html.erb +27 -0
  16. data/app/views/wco/api/newsproducer/trash/studio_blue1.html.erb +108 -0
  17. data/app/views/wco/api/newsvideos/show.jbuilder +1 -1
  18. data/app/views/wco/newsvideos/show.haml +2 -2
  19. data/app/views/wco/sitemap_paths/check.haml-trash +13 -0
  20. data/config/routes.rb +11 -10
  21. data/lib/shortcuts.rb +1 -1
  22. metadata +29 -22
  23. data/app/views/wco/api/newsproducer/README_newsproducer.txt +0 -12
  24. /data/app/views/wco/api/newsproducer/{_scenes.js-bk → done/_scenes.js-bk} +0 -0
  25. /data/app/views/wco/api/newsproducer/{_scenes.js.erb → done/_scenes.js.erb} +0 -0
  26. /data/app/views/wco/api/newsproducer/{_studio_1.js → done/_studio_1.js} +0 -0
  27. /data/app/views/wco/api/newsproducer/{_studio_blue0.js → done/_studio_blue0.js} +0 -0
  28. /data/app/views/wco/api/newsproducer/{_studio_blue1.js → done/_studio_blue1.js} +0 -0
  29. /data/app/views/wco/api/newsproducer/{_studio_coc.js → done/_studio_coc.js} +0 -0
  30. /data/app/views/wco/api/newsproducer/{_studio_coc.js-bk → done/_studio_coc.js-bk} +0 -0
  31. /data/app/views/wco/api/newsproducer/{_studio_coc.js-cannon → done/_studio_coc.js-cannon} +0 -0
  32. /data/app/views/wco/api/newsproducer/{_studio_ra2.js → done/_studio_ra2.js} +0 -0
  33. /data/app/views/wco/api/newsproducer/{_touch_controls.js → done/_touch_controls.js} +0 -0
  34. /data/app/views/wco/api/newsproducer/{_touch_pad.css → done/_touch_pad.css} +0 -0
  35. /data/app/views/wco/api/newsproducer/{canvas.html.erb → done/canvas.html.erb} +0 -0
  36. /data/app/views/wco/api/newsproducer/{canvas_minimal.html.erb → done/canvas_minimal.html.erb} +0 -0
  37. /data/app/views/wco/api/newsproducer/{games_fps.html → done/games_fps.html} +0 -0
  38. /data/app/views/wco/api/newsproducer/{studio_1.html.erb → done/studio_1.html.erb} +0 -0
  39. /data/app/views/wco/api/newsproducer/{studio_blue0.html.erb → done/studio_blue0.html.erb} +0 -0
  40. /data/app/views/wco/api/newsproducer/{studio_blue1.html.erb → done/studio_blue1.html.erb} +0 -0
  41. /data/app/views/wco/api/newsproducer/{studio_coc.html.erb → done/studio_coc.html.erb} +0 -0
  42. /data/app/views/wco/api/newsproducer/{studio_ra2.html.erb → done/studio_ra2.html.erb} +0 -0
@@ -0,0 +1,27 @@
1
+
2
+ <script async src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script>
3
+ <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
4
+ <script src="/vendor/javascript/CCapture.all.min.js"></script>
5
+
6
+ <script type="importmap">
7
+ { "imports":
8
+ {
9
+ "three": "https://cdn.jsdelivr.net/npm/three@0.180.0/build/three.module.js/+esm",
10
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.180.0/examples/jsm/",
11
+ "talkinghead": "https://cdn.jsdelivr.net/gh/met4citizen/TalkingHead@1.7/modules/talkinghead.mjs"
12
+ }
13
+ }
14
+ </script>
15
+
16
+ Status:<span id='status'>pending</span>
17
+
18
+ <button id='speak'>Speak</button>
19
+ <div id='avatar'></div>
20
+ <div id='loading'>Loading...</div>
21
+ <div id="rotatingC" class="r2" style="width: 50px;
22
+ height: 50px;
23
+ border: 1px solid red;
24
+ text-align: center; " >
25
+ </div>
26
+
27
+ <script type="module"><%= render 'studio_blue0.js' %></script>
@@ -0,0 +1,108 @@
1
+ <html>
2
+ <head>
3
+ <title>Studio Blue 2</title>
4
+ <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet" >
5
+
6
+ <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
7
+ <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
8
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
9
+
10
+ <%= stylesheet_link_tag "wco/application", media: "all" %>
11
+ <%= stylesheet_link_tag "wco/studio", media: "all" %>
12
+ </head>
13
+ <body>
14
+
15
+ <script async src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script>
16
+ <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
17
+ <script src="/vendor/javascript/CCapture.all.min.js"></script>
18
+
19
+ <script type="importmap">
20
+ { "imports":
21
+ {
22
+ "three": "https://cdn.jsdelivr.net/npm/three@0.180.0/build/three.module.js/+esm",
23
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.180.0/examples/jsm/",
24
+ "talkinghead": "https://cdn.jsdelivr.net/gh/met4citizen/TalkingHead@1.7/modules/talkinghead.mjs"
25
+ }
26
+ }
27
+ </script>
28
+
29
+ <div class='position-absolute'>
30
+ <%= render 'wco/newspartials/timeline', newspartial: @newspartial %>
31
+ </div>
32
+
33
+ <div class='StudioW1'>
34
+ <div class='StudioW0'>
35
+
36
+ <div class='header-row'>
37
+ <b>Studio Blue 2 </b>
38
+ <em>Status:</em><span id='status'>pending</span>
39
+ <button id='speak'>Speak</button>
40
+ <button id='wave'>Wave</button>
41
+ </div>
42
+
43
+ <div id='avatar_1'></div>
44
+ <div id='avatar_2'></div>
45
+ <div id='avatar_3'></div>
46
+ <div id='loading'>Loading...</div>
47
+ <div id="rotatingC" class="r2" style="width: 854px;
48
+ height: 480px;
49
+ border: 1px solid red;
50
+ text-align: center; " >
51
+ </div>
52
+
53
+ <div class='d-flex heads ctrl-row'>
54
+ <label>
55
+ <input type="radio" name="head" value="1" checked>
56
+ head 1
57
+ </label>
58
+ <label>
59
+ <input type="radio" name="head" value="2">
60
+ head 2
61
+ </label>
62
+ </div>
63
+
64
+ <div class='d-flex cameras ctrl-row'>
65
+ <label>
66
+ <input type="radio" name="camera" value="1" checked>
67
+ camera_1
68
+ </label>
69
+ <label>
70
+ <input type="radio" name="camera" value="2">
71
+ camera_2
72
+ </label>
73
+ <label>
74
+ <input type="radio" name="camera" value="3">
75
+ camera_3
76
+ </label>
77
+ </div>
78
+
79
+ <div class='d-flex lights ctrl-row'>
80
+ <label>
81
+ <input type="checkbox" class='light-ctrl' name="ambientLight" value="on" checked>
82
+ ambientLight
83
+ </label>
84
+ <label>
85
+ <input type="checkbox" class='light-ctrl' name="hemiLight" value="on" checked>
86
+ hemiLight
87
+ </label>
88
+ <label>
89
+ <input type="checkbox" class='light-ctrl' name="keyLight" value="on" checked>
90
+ keyLight
91
+ </label>
92
+ <label>
93
+ <input type="checkbox" class='light-ctrl' name="fillLight" value="on" checked>
94
+ fillLight
95
+ </label>
96
+ <label>
97
+ <input type="checkbox" class='light-ctrl' name="rimLight" value="on" checked>
98
+ rimLight
99
+ </label>
100
+ </div>
101
+
102
+
103
+ </div>
104
+ </div>
105
+
106
+ <script type="module"><%= render 'studio_blue1.js' %></script>
107
+
108
+ </body></html>
@@ -6,7 +6,7 @@ json.newspartials @newsvideo.newspartials.each do |newspartial|
6
6
  json.generate_speech_url api_newspartial_generate_speech_url({ id: newspartial.id.to_s,
7
7
  api_key: Wco::Setting.get('WASYACO_SIMPLE_API_KEY'),
8
8
  api_secret: Wco::Setting.get('WASYACO_SIMPLE_API_SECRET'), })
9
- json.generate_video_url api_newsproducer_studio_1_url({ newspartial_id: newspartial.id.to_s,
9
+ json.generate_video_url api_newsproducer_studio_blue_url({ newspartial_id: newspartial.id.to_s,
10
10
  wco_origin: request.base_url,
11
11
  api_key: Wco::Setting.get('WASYACO_SIMPLE_API_KEY'),
12
12
  api_secret: Wco::Setting.get('WASYACO_SIMPLE_API_SECRET'), })
@@ -19,9 +19,9 @@
19
19
  %li
20
20
  .d-inline-block= button_to 'generate all audio', newsvideo_generate_all_audio_path(@newsvideo), :data => { :confirm => 'Are you sure?' }
21
21
  %li
22
- .d-inline-block= button_to 'generate - only combine', generate_newsvideo_path(@newsvideo), :data => { :confirm => 'Are you sure?' }
22
+ .d-inline-block= button_to 'generate all video', newsvideo_generate_all_video_path(@newsvideo), :data => { :confirm => 'Are you sure?' }
23
23
  %li
24
- .d-inline-block= button_to 'generate video & output', newsvideo_generate_all_video_path(@newsvideo), :data => { :confirm => 'Are you sure?' }
24
+ .d-inline-block= button_to 'generate - only combine', generate_newsvideo_path(@newsvideo), :data => { :confirm => 'Are you sure?' }
25
25
 
26
26
 
27
27
  - if @newsvideo.generated_video.present?
@@ -0,0 +1,13 @@
1
+
2
+ .sitemap-paths-check.maxwidth
3
+
4
+ .d-flex
5
+ = link_to 'Index', site_path(@spath.site)
6
+ %b.ml-3.mr-3= link_to @spath.path, spath_path(@spath)
7
+ = link_to '[~]', edit_spath_path(@spath)
8
+ = button_to 'clear', clear_spath_path(@spath), data: { confirm: 'Are you sure?' }
9
+
10
+ .spaths-check
11
+ %ul
12
+ - @spath.results.each do |pt|
13
+ %li= pt
data/config/routes.rb CHANGED
@@ -17,20 +17,21 @@ Wco::Engine.routes.draw do
17
17
  patch 'reports/:id/add-config', to: 'reports#add_config'
18
18
  get 'newspartials/:id/config', to: 'newspartials#show_config', as: :newspartial_config
19
19
  match 'newspartials/:id/generate-speech', to: 'newspartials#generate_speech', as: :newspartial_generate_speech, via: [ :get, :post ]
20
+ match 'newspartials/:id/generate-video', to: 'newspartials#generate_video', as: :newspartial_generate_speech, via: [ :get, :post ]
20
21
 
21
22
  get 'newsproducer/canvas', to: 'newsproducer#canvas'
22
23
  get 'newsproducer/canvas_minimal', to: 'newsproducer#canvas_minimal'
23
- get 'newsproducer/studio_1', to: 'newsproducer#studio_1'
24
- get 'newsproducer/studio_green', to: 'newsproducer#studio_green'
25
- get 'newsproducer/studio_blue', to: 'newsproducer#studio_blue'
26
- get 'newsproducer/studio_fps', to: 'newsproducer#studio_fps'
27
- get 'newsproducer/studio_coc', to: 'newsproducer#studio_coc'
28
- get 'newsproducer/studio_ra2', to: 'newsproducer#studio_ra2'
24
+ # get 'newsproducer/studio_1', to: 'newsproducer#studio_1'
25
+ # get 'newsproducer/studio_green', to: 'newsproducer#studio_green'
26
+ get 'newsproducer/studio_blue', to: 'newsproducer#studio_blue'
27
+ get 'newsproducer/studio_fps', to: 'newsproducer#studio_fps'
28
+ # get 'newsproducer/studio_coc', to: 'newsproducer#studio_coc'
29
+ # get 'newsproducer/studio_ra2', to: 'newsproducer#studio_ra2'
29
30
 
30
31
 
31
32
  match 'newsvideos/:id/generate-illustration', to: 'newsvideos#generate_illustration', as: :newsvideo_generate_illustration, via: [ :get, :post ]
32
- match 'newsvideos/:id/generate-video', to: 'newsvideos#generate', as: :newsvideo_generate, via: [ :get, :post ]
33
- get 'newsvideos/:id', to: 'newsvideos#show', as: :newsvideo, defaults: { format: :json }
33
+ match 'newsvideos/:id/generate-video', to: 'newsvideos#generate', as: :newsvideo_generate, via: [ :get, :post ]
34
+ get 'newsvideos/:id', to: 'newsvideos#show', as: :newsvideo, defaults: { format: :json }
34
35
 
35
36
  get 'tags', to: 'tags#index'
36
37
 
@@ -95,8 +96,8 @@ Wco::Engine.routes.draw do
95
96
 
96
97
  resources :obfuscated_redirects
97
98
 
98
- post 'office_action_templates', to: 'office_action_templates#update'
99
- post 'office_action_templates/perform', to: 'office_action_templates#perform', as: :oat_perform_with_conversations ## from the mailbox, the oat_id is passed as a body param.
99
+ post 'office_action_templates', to: 'office_action_templates#update'
100
+ post 'office_action_templates/perform', to: 'office_action_templates#perform', as: :oat_perform_with_conversations ## from the mailbox, the oat_id is passed as a body param.
100
101
  post 'office_action_templates/:id/perform', to: 'office_action_templates#perform', as: :oat_perform
101
102
  get 'office_action_templates/:id/perform', to: 'office_action_templates#perform'
102
103
  resources :office_action_templates
data/lib/shortcuts.rb CHANGED
@@ -7,6 +7,6 @@ EMS ||= WcoEmail::MessageStub
7
7
  OA ||= Wco::OfficeAction
8
8
  OAT ||= Wco::OfficeActionTemplate
9
9
  OATT ||= Wco::OfficeActionTemplateTie
10
- # EAT ||= WcoEmail::EmailActionTemplate
10
+ # Sch ||= WcoEmail::EmailAction
11
11
  # EA ||= WcoEmail::EmailAction
12
12
 
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.326
4
+ version: 3.1.0.328
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-04 00:00:00.000000000 Z
11
+ date: 2026-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -544,6 +544,7 @@ files:
544
544
  - app/models/wco/report.rb
545
545
  - app/models/wco/setting.rb
546
546
  - app/models/wco/site.rb
547
+ - app/models/wco/site.rb-trash
547
548
  - app/models/wco/sitemap_path.rb
548
549
  - app/models/wco/subscription.rb
549
550
  - app/models/wco/tag.rb
@@ -584,30 +585,35 @@ files:
584
585
  - app/views/wco/api/leads/by_email.jbuilder
585
586
  - app/views/wco/api/leads/index.jbuilder
586
587
  - app/views/wco/api/leads/index_hash.jbuilder
587
- - app/views/wco/api/newsproducer/README_newsproducer.txt
588
- - app/views/wco/api/newsproducer/_scenes.js-bk
589
- - app/views/wco/api/newsproducer/_scenes.js.erb
590
- - app/views/wco/api/newsproducer/_studio_1.js
591
- - app/views/wco/api/newsproducer/_studio_blue0.js
592
- - app/views/wco/api/newsproducer/_studio_blue1.js
593
588
  - app/views/wco/api/newsproducer/_studio_blue2.js
594
- - app/views/wco/api/newsproducer/_studio_coc.js
595
- - app/views/wco/api/newsproducer/_studio_coc.js-bk
596
- - app/views/wco/api/newsproducer/_studio_coc.js-cannon
597
589
  - app/views/wco/api/newsproducer/_studio_fps.js
598
- - app/views/wco/api/newsproducer/_studio_ra2.js
599
- - app/views/wco/api/newsproducer/_touch_controls.js
600
- - app/views/wco/api/newsproducer/_touch_pad.css
601
- - app/views/wco/api/newsproducer/canvas.html.erb
602
- - app/views/wco/api/newsproducer/canvas_minimal.html.erb
603
- - app/views/wco/api/newsproducer/games_fps.html
604
- - app/views/wco/api/newsproducer/studio_1.html.erb
605
- - app/views/wco/api/newsproducer/studio_blue0.html.erb
606
- - app/views/wco/api/newsproducer/studio_blue1.html.erb
590
+ - app/views/wco/api/newsproducer/done/_scenes.js-bk
591
+ - app/views/wco/api/newsproducer/done/_scenes.js.erb
592
+ - app/views/wco/api/newsproducer/done/_studio_1.js
593
+ - app/views/wco/api/newsproducer/done/_studio_blue0.js
594
+ - app/views/wco/api/newsproducer/done/_studio_blue1.js
595
+ - app/views/wco/api/newsproducer/done/_studio_coc.js
596
+ - app/views/wco/api/newsproducer/done/_studio_coc.js-bk
597
+ - app/views/wco/api/newsproducer/done/_studio_coc.js-cannon
598
+ - app/views/wco/api/newsproducer/done/_studio_ra2.js
599
+ - app/views/wco/api/newsproducer/done/_touch_controls.js
600
+ - app/views/wco/api/newsproducer/done/_touch_pad.css
601
+ - app/views/wco/api/newsproducer/done/canvas.html.erb
602
+ - app/views/wco/api/newsproducer/done/canvas_minimal.html.erb
603
+ - app/views/wco/api/newsproducer/done/games_fps.html
604
+ - app/views/wco/api/newsproducer/done/studio_1.html.erb
605
+ - app/views/wco/api/newsproducer/done/studio_blue0.html.erb
606
+ - app/views/wco/api/newsproducer/done/studio_blue1.html.erb
607
+ - app/views/wco/api/newsproducer/done/studio_coc.html.erb
608
+ - app/views/wco/api/newsproducer/done/studio_ra2.html.erb
607
609
  - app/views/wco/api/newsproducer/studio_blue2.html.erb
608
- - app/views/wco/api/newsproducer/studio_coc.html.erb
609
610
  - app/views/wco/api/newsproducer/studio_fps.html.erb
610
- - app/views/wco/api/newsproducer/studio_ra2.html.erb
611
+ - app/views/wco/api/newsproducer/trash/_scenes.js-bk
612
+ - app/views/wco/api/newsproducer/trash/_scenes.js.erb
613
+ - app/views/wco/api/newsproducer/trash/_studio_blue0.js
614
+ - app/views/wco/api/newsproducer/trash/_studio_blue1.js
615
+ - app/views/wco/api/newsproducer/trash/studio_blue0.html.erb
616
+ - app/views/wco/api/newsproducer/trash/studio_blue1.html.erb
611
617
  - app/views/wco/api/newsvideos/show.jbuilder
612
618
  - app/views/wco/api/tags/index.json.jbuilder
613
619
  - app/views/wco/application/_alerts_notices.haml
@@ -762,6 +768,7 @@ files:
762
768
  - app/views/wco/sitemap_paths/_form.haml
763
769
  - app/views/wco/sitemap_paths/_index.haml
764
770
  - app/views/wco/sitemap_paths/check.haml
771
+ - app/views/wco/sitemap_paths/check.haml-trash
765
772
  - app/views/wco/sitemap_paths/edit.haml
766
773
  - app/views/wco/sitemap_paths/new.haml
767
774
  - app/views/wco/sites/_form.haml
@@ -1,12 +0,0 @@
1
-
2
-
3
- const scene_url = 'https://cdn.jsdelivr.net/gh/wasya-co/ishlib3js@0.3.0/public/vendor/models/scenes/000mb%20collision-world/collision-world.glb'
4
-
5
- const vehicle_url = 'https://cdn.jsdelivr.net/gh/wasya-co/ishlib3js@0.3.0/public/vendor/models/vehicles/000mb car-mazda-miata/model.glb'
6
- const vehicle_config = {
7
- height: 1.235,
8
- length: 3.970,
9
- width: 1.675,
10
- }
11
-
12
- // const vehicle_url = 'https://cdn.jsdelivr.net/gh/wasya-co/ishlib3js@0.3.0/public/vendor/models/vehicles/001mb truck-drifter-lowpoly/model.glb'