wco_models 3.4.0.10 → 3.5.0.1

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 (70) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/wco/main.scss +3 -7
  3. data/app/assets/stylesheets/wco/photos.scss +1 -2
  4. data/app/controllers/wco/api/newspartials_controller.rb +9 -0
  5. data/app/controllers/wco/newsvideos_controller.rb +12 -6
  6. data/app/controllers/wco/office_action_templates_controller.rb +0 -3
  7. data/app/controllers/wco/publishers_controller.rb +16 -6
  8. data/app/controllers/wco/reports_controller.rb +5 -6
  9. data/app/controllers/wco/sitemap_paths_controller.rb +2 -14
  10. data/app/controllers/wco/sites_controller.rb +1 -1
  11. data/app/controllers/wco/tags_controller.rb +1 -1
  12. data/app/models/iro/option.rb +4 -37
  13. data/app/models/iro/priceitem.rb +4 -62
  14. data/app/models/tda/option.rb +41 -39
  15. data/app/models/wco/newspartial.rb +12 -2
  16. data/app/models/wco/publisher.rb +8 -29
  17. data/app/models/wco/report.rb +2 -12
  18. data/app/models/wco/setting.rb +1 -1
  19. data/app/models/wco/site.rb +67 -1
  20. data/app/models/wco/sitemap_path.rb +13 -19
  21. data/app/models/wco/tag.rb +8 -15
  22. data/app/views/wco/api/newsproducer/_studio_blue2.js +16 -37
  23. data/app/views/wco/api/newsproducer/_studio_fps.js +12 -12
  24. data/app/views/wco/api/newsproducer/studio_fps.html.erb +8 -10
  25. data/app/views/wco/api/newsproducer/trash/_scenes.js-bk +20 -0
  26. data/app/views/wco/api/newsproducer/trash/_scenes.js.erb +15 -0
  27. data/app/views/wco/api/newsproducer/trash/_studio_blue0.js +326 -0
  28. data/app/views/wco/api/newsproducer/trash/_studio_blue1.js +733 -0
  29. data/app/views/wco/api/newsproducer/trash/studio_blue0.html.erb +27 -0
  30. data/app/views/wco/api/newsproducer/trash/studio_blue1.html.erb +108 -0
  31. data/app/views/wco/api/newsvideos/show.jbuilder +1 -1
  32. data/app/views/wco/newsvideos/show.haml +2 -2
  33. data/app/views/wco/office_action_templates/index.haml +1 -1
  34. data/app/views/wco/office_actions/_actions.haml +1 -1
  35. data/app/views/wco/publishers/_form.haml +2 -11
  36. data/app/views/wco/publishers/_post_with.haml +1 -1
  37. data/app/views/wco/reports/_form.haml +2 -13
  38. data/app/views/wco/reports/_index.haml +11 -18
  39. data/app/views/wco/reports/show.haml +1 -6
  40. data/app/views/wco/sitemap_paths/_index.haml +0 -1
  41. data/app/views/wco/sitemap_paths/check.haml +13 -0
  42. data/app/views/wco/sites/index.haml +0 -6
  43. data/app/views/wco/sites/show.haml +1 -1
  44. data/app/views/wco/tags/_form.haml +0 -3
  45. data/config/routes.rb +12 -11
  46. data/lib/shortcuts.rb +1 -1
  47. data/lib/wco_models.rb +1 -1
  48. metadata +28 -24
  49. data/app/models/wco/publisher_d10.rb +0 -50
  50. data/app/views/wco/api/newsproducer/README_newsproducer.txt +0 -12
  51. data/app/views/wco/sitemap_paths/show.haml +0 -14
  52. /data/app/views/wco/api/newsproducer/{_scenes.js-bk → done/_scenes.js-bk} +0 -0
  53. /data/app/views/wco/api/newsproducer/{_scenes.js.erb → done/_scenes.js.erb} +0 -0
  54. /data/app/views/wco/api/newsproducer/{_studio_1.js → done/_studio_1.js} +0 -0
  55. /data/app/views/wco/api/newsproducer/{_studio_blue0.js → done/_studio_blue0.js} +0 -0
  56. /data/app/views/wco/api/newsproducer/{_studio_blue1.js → done/_studio_blue1.js} +0 -0
  57. /data/app/views/wco/api/newsproducer/{_studio_coc.js → done/_studio_coc.js} +0 -0
  58. /data/app/views/wco/api/newsproducer/{_studio_coc.js-bk → done/_studio_coc.js-bk} +0 -0
  59. /data/app/views/wco/api/newsproducer/{_studio_coc.js-cannon → done/_studio_coc.js-cannon} +0 -0
  60. /data/app/views/wco/api/newsproducer/{_studio_ra2.js → done/_studio_ra2.js} +0 -0
  61. /data/app/views/wco/api/newsproducer/{_touch_controls.js → done/_touch_controls.js} +0 -0
  62. /data/app/views/wco/api/newsproducer/{_touch_pad.css → done/_touch_pad.css} +0 -0
  63. /data/app/views/wco/api/newsproducer/{canvas.html.erb → done/canvas.html.erb} +0 -0
  64. /data/app/views/wco/api/newsproducer/{canvas_minimal.html.erb → done/canvas_minimal.html.erb} +0 -0
  65. /data/app/views/wco/api/newsproducer/{games_fps.html → done/games_fps.html} +0 -0
  66. /data/app/views/wco/api/newsproducer/{studio_1.html.erb → done/studio_1.html.erb} +0 -0
  67. /data/app/views/wco/api/newsproducer/{studio_blue0.html.erb → done/studio_blue0.html.erb} +0 -0
  68. /data/app/views/wco/api/newsproducer/{studio_blue1.html.erb → done/studio_blue1.html.erb} +0 -0
  69. /data/app/views/wco/api/newsproducer/{studio_coc.html.erb → done/studio_coc.html.erb} +0 -0
  70. /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?
@@ -15,7 +15,7 @@
15
15
  &nbsp;
16
16
  = link_to oat.slug, office_action_template_path(oat)
17
17
  &nbsp;
18
- = button_to 'Perform', oat_perform_path(oat), data: { confirm: 'Are you sure?' }
18
+ = button_to 'Run w/convos', oat_perform_with_conversations_path(oat), data: { confirm: 'Are you sure?' }
19
19
  .col-6
20
20
  = render '/wco/office_action_templates/ties', ties: oat.ties, oat: oat
21
21
 
@@ -3,5 +3,5 @@
3
3
  %h5 Office Action
4
4
  .d-inline-block
5
5
  = select_tag :office_action_template, options_for_select(@office_action_templates_list), class: 'select2'
6
- %a.btn.office-action-templates-perform-btn{ href: "javascript: void(0)", data: { url: wco.oats_perform_path } }
6
+ %a.btn.office-action-templates-perform-btn{ href: "javascript: void(0)", data: { url: wco.oat_perform_with_conversations_path } }
7
7
  Perform
@@ -20,23 +20,14 @@
20
20
  .d-flex
21
21
  %label post_path
22
22
  = f.text_field :post_path, class: 'w-100'
23
- .field.d-flex.flex-column
23
+ .field
24
24
  %label.d-block context_eval
25
- .descr
26
- @abort, @headers, @props, @publisher, @site
27
25
  = f.text_area :context_eval, class: 'monospace'
28
- .field.d-flex.flex-column
26
+ .field
29
27
  %label.d-block post_body_tmpl
30
- .descr
31
- @headers, @props and #context_eval
32
28
  = f.text_area :post_body_tmpl, class: 'monospace'
33
29
  .field
34
30
  %label.d-block after_eval
35
31
  = f.text_area :after_eval, class: 'monospace'
36
-
37
- .field
38
- %label Tags (#{publisher.tags.length}):
39
- = f.select :tag_ids, options_for_select(@tags_list, selected: publisher.tag_ids), {}, { multiple: true, class: 'select2' }
40
-
41
32
  .actions
42
33
  = f.submit
@@ -1,7 +1,7 @@
1
1
 
2
2
  .publishers--post-with
3
3
  = form_tag run_any_publisher_path do
4
- .d-flex.w-500px
4
+ .d-flex
5
5
  = select_tag :id, options_for_select(@publishers_list), class: 'select2'
6
6
  = hidden_field_tag :props, props.to_json
7
7
  = submit_tag 'Go', data: { confirm: 'Are you sure?' }
@@ -11,18 +11,7 @@
11
11
  %label Slug
12
12
  = f.text_field :slug, class: 'w-100'
13
13
 
14
- .field.flex-row
15
- %label source_url
16
- = f.text_field :source_url, class: 'w-100'
17
-
18
14
  .field
19
- %label Summary
20
- = f.text_area :summary
21
-
22
- .field.d-flex.flex-column
23
- %label body_format
24
- = f.select :body_format, options_for_select(Wco::Report::FORMATS, selected: report.body_format)
25
-
26
15
  %label Body
27
16
  = f.text_area :body, class: 'tinymce'
28
17
 
@@ -36,9 +25,9 @@
36
25
  %label image
37
26
  = f.file_field :image_thumb
38
27
 
39
- - if report.image_thumb
28
+ - if report.image_thumb&.image?
40
29
  %p Current:
41
- = image_tag report.image_thumb.photo.url(:thumb)
30
+ = image_tag report.image_thumb.image.url(:thumb)
42
31
 
43
32
  -# .field
44
33
  -# %label Newsvideo:
@@ -3,24 +3,17 @@
3
3
 
4
4
  .reports--index
5
5
  = paginate reports, :param_name => :reports_page, :views_prefix => 'wco'
6
- - reports.each do |report|
6
+ - reports.each do |ttt|
7
7
  .Card
8
- .d-flex.no-align
9
- .thumb
10
- - if report.image_thumb
11
- = image_tag report.image_thumb.photo.url(:thumb)
12
-
13
-
8
+ .flex-row
9
+ = button_to '[x]', report_path(ttt), method: :delete, data: { confirm: 'Are you sure?' }
10
+ = link_to '[~]', edit_report_path(ttt)
11
+ .a
12
+ = link_to ttt.title, report_path(ttt)
13
+ %br
14
+ `#{ttt.slug}`
15
+ .gray.mini= ttt.id
16
+ - if !config[:skip_tags]
14
17
  .flex-row
15
- = button_to '[x]', report_path(report), method: :delete, data: { confirm: 'Are you sure?' }
16
- = link_to '[~]', edit_report_path(report)
17
- .a
18
- = link_to report.title, report_path(report)
19
- %br
20
- .gray slug: `#{report.slug}`
21
- .gray.mini= report.id
22
- - if !config[:skip_tags]
23
- .flex-row
24
- = render '/wco/tags/list_chips', tags: report.tags
25
-
18
+ = render '/wco/tags/list_chips', tags: ttt.tags
26
19
  = paginate reports, :param_name => :reports_page, :views_prefix => 'wco'
@@ -21,12 +21,7 @@
21
21
  %hr
22
22
  - if @report.image_thumb
23
23
  = image_tag @report.image_thumb.photo.url(:thumb)
24
- = @report.body_format
25
- .descr
26
- - if @report.body_format == 'format-plaintext'
27
- %pre= @report.body
28
- - if @report.body_format == 'format-fullhtml'
29
- = raw @report.body
24
+ .descr= raw @report.body
30
25
  %hr
31
26
 
32
27
  .actions
@@ -11,7 +11,6 @@
11
11
  %tr
12
12
  %td
13
13
  = link_to '[~]', edit_spath_path(spath)
14
- .d-inline-block= button_to 'X', spath_path(spath), method: :delete, data: { confirm: 'Are you sure?' }
15
14
  .d-inline-block= button_to 'check', check_spath_path(spath), method: :get
16
15
  = link_to "#{@site.origin}#{spath.path}","#{@site.origin}#{spath.path}", target: :_blank
17
16
  - if spath.redirect_to
@@ -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
@@ -11,7 +11,6 @@
11
11
  -# %th kind
12
12
  %th origin
13
13
  -# %th post_path
14
- %th tags
15
14
  - @sites.each do |site|
16
15
  %tr
17
16
  %td
@@ -23,8 +22,3 @@
23
22
  -# %td= site.kind
24
23
  %td= site.origin
25
24
  -# %td= site.post_path
26
- %td
27
- - site.tags.map do |t|
28
- = link_to t.slug, tag_path(t)
29
- ,
30
-
@@ -9,7 +9,7 @@
9
9
  .Sitemaps.col-md-9
10
10
 
11
11
  %h5.d-flex
12
- Sitemap Paths (#{@site.sitemap_paths.length})&nbsp;
12
+ Sitemap Paths &nbsp;
13
13
  = link_to '[+]', new_spath_path( site_id: @site.id )
14
14
  &nbsp;
15
15
  = button_to 'check', check_sitemap_path( site: @site ), data: { confirm: 'Are you sure?' }
@@ -8,9 +8,6 @@
8
8
  .field
9
9
  %label slug
10
10
  = f.text_field :slug
11
- .field
12
- %label external_id
13
- = f.text_field :external_id
14
11
 
15
12
  .field.d-flex
16
13
  %label parent
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
 
@@ -96,7 +97,7 @@ Wco::Engine.routes.draw do
96
97
  resources :obfuscated_redirects
97
98
 
98
99
  post 'office_action_templates', to: 'office_action_templates#update'
99
- post 'office_action_templates/perform', to: 'office_action_templates#perform', as: :oats_perform ## from the mailbox, the oat id is passed as a body param.
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
@@ -128,8 +129,8 @@ Wco::Engine.routes.draw do
128
129
 
129
130
  post 'sites/:id/check_sitemap', to: 'sites#check_sitemap', as: :check_sitemap
130
131
  resources :sites
131
- match 'sitemap_paths/:id/check', to: 'sitemap_paths#check', as: :check_spath, via: [ :get, :post ]
132
- post 'sitemap_paths/:id/clear', to: 'sitemap_paths#clear', as: :clear_spath
132
+ get 'sitemap_paths/:id/check', to: 'sitemap_paths#check', as: :check_spath
133
+ post 'sitemap_paths/:id/clear', to: 'sitemap_paths#clear', as: :clear_spath
133
134
  resources :sitemap_paths, as: :spaths
134
135
  resources :subscriptions
135
136
 
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
 
data/lib/wco_models.rb CHANGED
@@ -43,7 +43,7 @@ end
43
43
 
44
44
  ActiveSupport.escape_html_entities_in_json = true
45
45
 
46
- ## for newsproducer
46
+
47
47
  HEIGHT_SEC = 100.0
48
48
  HEIGHT_MS = HEIGHT_SEC/1000
49
49
 
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.4.0.10
4
+ version: 3.5.0.1
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-11-14 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
@@ -541,7 +541,6 @@ files:
541
541
  - app/models/wco/product.rb
542
542
  - app/models/wco/profile.rb
543
543
  - app/models/wco/publisher.rb
544
- - app/models/wco/publisher_d10.rb
545
544
  - app/models/wco/report.rb
546
545
  - app/models/wco/setting.rb
547
546
  - app/models/wco/site.rb
@@ -586,30 +585,35 @@ files:
586
585
  - app/views/wco/api/leads/by_email.jbuilder
587
586
  - app/views/wco/api/leads/index.jbuilder
588
587
  - app/views/wco/api/leads/index_hash.jbuilder
589
- - app/views/wco/api/newsproducer/README_newsproducer.txt
590
- - app/views/wco/api/newsproducer/_scenes.js-bk
591
- - app/views/wco/api/newsproducer/_scenes.js.erb
592
- - app/views/wco/api/newsproducer/_studio_1.js
593
- - app/views/wco/api/newsproducer/_studio_blue0.js
594
- - app/views/wco/api/newsproducer/_studio_blue1.js
595
588
  - app/views/wco/api/newsproducer/_studio_blue2.js
596
- - app/views/wco/api/newsproducer/_studio_coc.js
597
- - app/views/wco/api/newsproducer/_studio_coc.js-bk
598
- - app/views/wco/api/newsproducer/_studio_coc.js-cannon
599
589
  - app/views/wco/api/newsproducer/_studio_fps.js
600
- - app/views/wco/api/newsproducer/_studio_ra2.js
601
- - app/views/wco/api/newsproducer/_touch_controls.js
602
- - app/views/wco/api/newsproducer/_touch_pad.css
603
- - app/views/wco/api/newsproducer/canvas.html.erb
604
- - app/views/wco/api/newsproducer/canvas_minimal.html.erb
605
- - app/views/wco/api/newsproducer/games_fps.html
606
- - app/views/wco/api/newsproducer/studio_1.html.erb
607
- - app/views/wco/api/newsproducer/studio_blue0.html.erb
608
- - 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
609
609
  - app/views/wco/api/newsproducer/studio_blue2.html.erb
610
- - app/views/wco/api/newsproducer/studio_coc.html.erb
611
610
  - app/views/wco/api/newsproducer/studio_fps.html.erb
612
- - 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
613
617
  - app/views/wco/api/newsvideos/show.jbuilder
614
618
  - app/views/wco/api/tags/index.json.jbuilder
615
619
  - app/views/wco/application/_alerts_notices.haml
@@ -763,10 +767,10 @@ files:
763
767
  - app/views/wco/reports/show.haml
764
768
  - app/views/wco/sitemap_paths/_form.haml
765
769
  - app/views/wco/sitemap_paths/_index.haml
770
+ - app/views/wco/sitemap_paths/check.haml
766
771
  - app/views/wco/sitemap_paths/check.haml-trash
767
772
  - app/views/wco/sitemap_paths/edit.haml
768
773
  - app/views/wco/sitemap_paths/new.haml
769
- - app/views/wco/sitemap_paths/show.haml
770
774
  - app/views/wco/sites/_form.haml
771
775
  - app/views/wco/sites/_header.haml
772
776
  - app/views/wco/sites/check_sitemap.haml
@@ -1,50 +0,0 @@
1
-
2
- ##
3
- ## this doesn't work and was never tested or used.
4
- ## 2026-11-14
5
- ##
6
- class Wco::PublisherD10 < Wco::Publisher
7
-
8
- def self.context_eval
9
-
10
- @headers['Content-Type'] = 'application/vnd.api+json'
11
- @headers['Authorization'] = "Basic base64(#{@site.username}:#{@site.password})"
12
-
13
- @report = Wco::Report.find @props[:report_id]
14
-
15
- tags = @publisher.tags.where( site: @site )
16
- @tags_data = tags.map do |tag|
17
- { "type": "taxonomy_term--tags", "id": tag.external_id.to_s }
18
- end.to_json
19
- puts! @tags_data, '@tags_data'
20
-
21
- @field_image_thumb_data = ""
22
- if false || @report.image_thumb
23
- image_url ||= @report.image_thumb.photo.url(:thumb)
24
-
25
- uri = URI(image_url)
26
- image_data = Net::HTTP.get(uri)
27
- credentials = Base64.strict_encode64("#{@site.username}:#{@site.password}")
28
-
29
- puts! 'Saving an image...'
30
- response = HTTParty.post(
31
- "#{@site.origin}/jsonapi/node/article/field_image_thumb",
32
- headers: {
33
- 'Content-Type' => 'application/octet-stream',
34
- 'Accept' => 'application/vnd.api+json',
35
- 'Content-Disposition' => 'file; filename="thumbnail.jpg"',
36
- 'Authorization' => "Basic #{credentials}",
37
- },
38
- body: image_data
39
- )
40
- puts! response, 'response'
41
- field_image_thumb_id = response['data']['id']
42
- @field_image_thumb_data =<<~AOL
43
- "field_image_thumb": { "data": { "type": "file--file", "id": "#{field_image_thumb_id}" } },
44
- AOL
45
- puts! @field_image_thumb_data, '@field_image_thumb_data'
46
- end
47
-
48
- end
49
-
50
- end
@@ -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'
@@ -1,14 +0,0 @@
1
-
2
- .sitemap-paths-show.maxwidth
3
-
4
- .d-flex
5
- = link_to '[back to Site]', 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 'check', check_spath_path(@spath), data: { confirm: 'Are you sure?' }
9
- = button_to 'clear', clear_spath_path(@spath), data: { confirm: 'Are you sure?' }
10
-
11
- .spaths-check
12
- %ul
13
- - @spath.results.each do |result|
14
- %li= result