station 0.0.112 → 0.0.119

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +9 -7
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +2 -2
  5. data/docs/How-To-Use.md +2 -0
  6. data/lib/nexmo_developer/.nvmrc +1 -1
  7. data/lib/nexmo_developer/.ruby-version +1 -1
  8. data/lib/nexmo_developer/Gemfile +10 -11
  9. data/lib/nexmo_developer/Gemfile.lock +171 -110
  10. data/lib/nexmo_developer/Runbook.md +4 -4
  11. data/lib/nexmo_developer/app/controllers/jobs_controller.rb +7 -7
  12. data/lib/nexmo_developer/app/controllers/static_controller.rb +2 -13
  13. data/lib/nexmo_developer/app/models/feedback/feedback.rb +2 -0
  14. data/lib/nexmo_developer/app/models/tutorial/file_loader.rb +11 -7
  15. data/lib/nexmo_developer/app/models/tutorial/task.rb +27 -1
  16. data/lib/nexmo_developer/app/presenters/head.rb +5 -1
  17. data/lib/nexmo_developer/app/presenters/improve_page_presenter.rb +5 -3
  18. data/lib/nexmo_developer/app/services/orbit_feedback_notifier.rb +50 -0
  19. data/lib/nexmo_developer/app/services/translator/files_list_coordinator.rb +1 -1
  20. data/lib/nexmo_developer/app/views/contribute/guides/landing-pages.md +0 -10
  21. data/lib/nexmo_developer/app/views/contribute/guides/markdown-guide.md +3 -41
  22. data/lib/nexmo_developer/app/views/contribute/guides/platform.md +0 -1
  23. data/lib/nexmo_developer/app/views/layouts/partials/_sidenav_subitem.html.erb +3 -0
  24. data/lib/nexmo_developer/app/webpacker/packs/application.js +1 -5
  25. data/lib/nexmo_developer/config/routes.rb +0 -2
  26. data/lib/nexmo_developer/lib/tasks/cache.rake +1 -1
  27. data/lib/nexmo_developer/lib/tasks/careers.rake +1 -1
  28. data/lib/nexmo_developer/lib/tasks/ci.rake +30 -8
  29. data/lib/nexmo_developer/lib/tasks/diff.rake +5 -5
  30. data/lib/nexmo_developer/lib/tasks/documentation.rake +1 -1
  31. data/lib/nexmo_developer/lib/tasks/generate_search_terms.rake +2 -2
  32. data/lib/nexmo_developer/lib/tasks/links.rake +6 -6
  33. data/lib/nexmo_developer/lib/tasks/smartling.rake +1 -1
  34. data/lib/nexmo_developer/version.rb +1 -1
  35. data/package.json +32 -32
  36. data/station.gemspec +12 -12
  37. data/yarn.lock +1119 -2888
  38. metadata +63 -70
  39. data/lib/nexmo_developer/.dockerignore +0 -1
  40. data/lib/nexmo_developer/Dockerfile +0 -28
  41. data/lib/nexmo_developer/app/screenshots/webhook-url-for-delivery-receipt.js +0 -44
  42. data/lib/nexmo_developer/app/screenshots/webhook-url-for-inbound-message.js +0 -44
  43. data/lib/nexmo_developer/app/views/static/default_landing/partials/_submit_your_idea_form.html.erb +0 -58
  44. data/lib/nexmo_developer/app/webpacker/javascript/spotlight/index.js +0 -12
  45. data/lib/nexmo_developer/docker-compose.yml +0 -43
  46. data/lib/nexmo_developer/lib/tasks/screenshots.rake +0 -11
@@ -1,58 +0,0 @@
1
- <h2 class="Vlt-title--icon" id="<%= local_assigns['header'].parameterize %>">
2
- <svg class="Vlt-<%= local_assigns['icon']['color'] %>"><use xlink:href="<%= "/symbol/volta-icons.svg#Vlt-#{local_assigns['icon']['name']}" %>"></use></svg>
3
- <%= local_assigns['header'].render_markdown(skip_paragraph_surround: true) %>
4
- </h2>
5
-
6
- <%= form_tag('/spotlight', remote: true, id: 'spotlight-form') do %>
7
- <div class="Vlt-form__element">
8
- <%= label_tag 'name', 'Your Name', class: 'Vlt-label' %>
9
- <div class="Vlt-input">
10
- <%= text_field_tag 'name', nil, required: true %>
11
- </div>
12
- </div>
13
-
14
- <div class="Vlt-form__element">
15
- <%= label_tag 'email_address', 'Your Email Address', class: 'Vlt-label' %>
16
- <div class="Vlt-input">
17
- <%= email_field_tag 'email_address', nil, required: true %>
18
- </div>
19
- </div>
20
-
21
- <div class="Vlt-form__element">
22
- <%= label_tag 'background', 'Please write a little about your background and why you want to write for Vonage', class: 'Vlt-label' %>
23
- <div class="Vlt-textarea">
24
- <%= text_area_tag 'background', nil, required: true, rows: 4, cols: 50 %>
25
- </div>
26
- </div>
27
-
28
- <div class="Vlt-form__element">
29
- <%= label_tag 'outline', 'The outline of your blog post idea', class: 'Vlt-label' %>
30
- <div class="Vlt-textarea">
31
- <%= text_area_tag 'outline', nil, required: true, rows: 4, cols: 50 %>
32
- </div>
33
- </div>
34
-
35
- <div class="Vlt-form__element">
36
- <%= label_tag 'previous_content', 'Please provide link to something you have written previously', class: 'Vlt-label' %>
37
- <div class="Vlt-input">
38
- <%= url_field_tag 'previous_content', nil %>
39
- </div>
40
- </div>
41
-
42
- <small class="Vlt-form__element__hint">
43
- By submitting your ideas to Vonage Developer Spotlight you accept our <a href='https://www.vonage.com/legal/privacy-policy/'>privacy policy</a>, which sets out how we use your data and the rights you have in respect of your data.
44
- </small>
45
- <%= submit_tag 'Submit', class: 'Vlt-btn Vlt-btn--secondary Vlt-btn--app' %>
46
- <% end %>
47
- <div id='success' class="Vlt-callout Vlt-callout--good Vlt-flash Vlt-flash--small ">
48
- <i></i>
49
- <div class="Vlt-callout__content">
50
- <p>Thanks for your submission, we will review it and get in contact with you shortly</p>
51
- </div>
52
- </div>
53
- <div id='error' class="Vlt-callout Vlt-callout--critical Vlt-flash Vlt-flash--small ">
54
- <i></i>
55
- <div class="Vlt-callout__content">
56
- <p>Something went wrong with your submission. Please try again. If the error persists then please email your submission to deved@vonage.com</p>
57
- </div>
58
- </div>
@@ -1,12 +0,0 @@
1
- import Volta from "../volta/volta.js"
2
-
3
- export default () => {
4
- $(document).ready(function() {
5
- $(document).on('ajax:success', '#spotlight-form', function(event, response) {
6
- Volta.flash.show('success');
7
- event.target.reset();
8
- }).on('ajax:error', '#spotlight-form', function(event) {
9
- Volta.flash.show('error');
10
- });
11
- });
12
- }
@@ -1,43 +0,0 @@
1
- version: '3'
2
- services:
3
- db:
4
- image: postgres
5
- environment:
6
- - POSTGRES_HOST_AUTH_METHOD=trust
7
- web:
8
- image: nexmodeveloper_app
9
- build: .
10
- command: bundle exec rails s -p 3000 -b '0.0.0.0'
11
- volumes:
12
- - .:/app
13
- - /app/node_modules
14
- ports:
15
- - "3000:3000"
16
- depends_on:
17
- - clean
18
- - update
19
- - db
20
- environment:
21
- - OAS_PATH=_open_api/api_specs/definitions
22
- - DOCS_BASE_PATH=.
23
- - POSTGRES_HOST=db
24
- - POSTGRES_USERNAME=postgres
25
- - RAILS_ENV=development
26
- - RACK_ENV=development
27
- clean:
28
- image: nexmodeveloper_app
29
- build: .
30
- command: bash -c "rm -Rf public/packs && rm -f /app/tmp/pids/server.pid"
31
- volumes:
32
- - .:/app
33
- update:
34
- image: nexmodeveloper_app
35
- build: .
36
- command: bash -c "rake db:setup"
37
- volumes:
38
- - .:/app
39
- depends_on:
40
- - db
41
- environment:
42
- - POSTGRES_HOST=db
43
- - POSTGRES_USERNAME=postgres
@@ -1,11 +0,0 @@
1
- namespace :screenshots do
2
- desc 'Update all automated screenshots'
3
- task all: :environment do
4
- Screenshot.update_all
5
- end
6
-
7
- desc 'Create new screenshots'
8
- task new: :environment do
9
- Screenshot.update_new
10
- end
11
- end