[
  {
    "path": ".browserslistrc",
    "content": "defaults\n"
  },
  {
    "path": ".gitattributes",
    "content": "# See https://git-scm.com/docs/gitattributes for more about git attribute files.\n\n# Mark the database schema as having been generated.\ndb/schema.rb linguist-generated\n\n# Mark the yarn lockfile as having been generated.\nyarn.lock linguist-generated\n\n# Mark any vendored files as having been vendored.\nvendor/* linguist-vendored\n"
  },
  {
    "path": ".gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files for more about ignoring files.\n#\n# If you find yourself ignoring temporary files generated by your text editor\n# or operating system, you probably want to add a global ignore instead:\n#   git config --global core.excludesfile '~/.gitignore_global'\n\n# Ignore bundler config.\n/.bundle\n\n# Ignore the default SQLite database.\n/db/*.sqlite3\n/db/*.sqlite3-*\n\n# Ignore all logfiles and tempfiles.\n/log/*\n/tmp/*\n!/log/.keep\n!/tmp/.keep\n\n# Ignore pidfiles, but keep the directory.\n/tmp/pids/*\n!/tmp/pids/\n!/tmp/pids/.keep\n\n# Ignore uploaded files in development.\n/storage/*\n!/storage/.keep\n\n/public/assets\n.byebug_history\n\n# Ignore master key for decrypting credentials and more.\n/config/master.key\n\n/public/packs\n/public/packs-test\n/node_modules\n/yarn-error.log\nyarn-debug.log*\n.yarn-integrity\n"
  },
  {
    "path": ".ruby-version",
    "content": "3.2.2\n"
  },
  {
    "path": ".semaphore/main-deploy.yml",
    "content": "version: v1.0\nname: main-deploy\nagent:\n  machine:\n    type: e1-standard-2\n    os_image: ubuntu2004\n\nblocks:\n  - name: main-deploy\n    task:\n      secrets:\n        - name: heroku-http\n      env_vars:\n        - name: HEROKU_APP_NAME\n          value: turbo-showcase\n      jobs:\n        - name: main-deploy\n          commands:\n            - checkout --use-cache\n            - heroku git:remote -a $HEROKU_APP_NAME\n            - git push heroku -f $SEMAPHORE_GIT_BRANCH:main\n"
  },
  {
    "path": ".semaphore/semaphore.yml",
    "content": "version: v1.0\nname: main-deploy\nagent:\n  machine:\n    type: e2-standard-2\n    os_image: ubuntu2204\n\nblocks:\n  - name: main-deploy\n    task:\n      secrets:\n        - name: turbo-showcase\n        - name: hetzner\n      env_vars:\n        - name: DOKKU_APP_NAME\n          value: turbo-showcase\n      jobs:\n        - name: main-deploy\n          commands:\n            - checkout --use-cache\n            - git remote add dokku ssh://dokku@$DOKKU_SERVER_IP:22/$DOKKU_APP_NAME\n            - chmod 600 /home/semaphore/.ssh/hetzner-github.key\n            - GIT_SSH_COMMAND=\"ssh -i /home/semaphore/.ssh/hetzner-github.key -o StrictHostKeyChecking=no\" git push dokku -f $SEMAPHORE_GIT_BRANCH:main\n"
  },
  {
    "path": "Gemfile",
    "content": "source \"https://rubygems.org\"\ngit_source(:github) { |repo| \"https://github.com/#{repo}.git\" }\n\nruby File.read(File.join(__dir__, \".ruby-version\"))\n\ngem \"rails\", \"~> 7.1.0\"\ngem \"sqlite3\"\ngem \"solid_cable\"\n\ngem \"puma\"\n\ngem \"bootstrap\"\ngem \"dartsass-sprockets\"\ngem \"view_component\"\ngem \"kaminari\"\ngem \"bootstrap4-kaminari-views\"\ngem \"importmap-rails\"\ngem \"turbo-rails\"\ngem \"stimulus-rails\"\n\ngem \"method_source\"\n\ngem \"tzinfo-data\", platforms: [:mingw, :mswin, :x64_mingw, :jruby]\n\ngem \"bootsnap\", require: false\n\ngroup :development, :test do\n  gem \"byebug\", platforms: [:mri, :mingw, :x64_mingw]\n  gem \"standard\"\nend\n\ngroup :development do\n  gem \"web-console\", \">= 4.1.0\"\n  gem \"listen\", \"~> 3.3\"\nend\n\ngroup :test do\n  gem \"capybara\", \">= 3.26\"\n  gem \"selenium-webdriver\"\n  gem \"webdrivers\"\nend\n\ngroup :production do\n  gem \"appsignal\"\nend\n"
  },
  {
    "path": "README.md",
    "content": "# Turbo Showcase\n\nThis project contains the source code of https://turbo-showcase.renuoapp.ch.\n\nHere you can look how stuff has been implemented and copy-paste it in your project.\n\nAt [Renuo](https://renuo.ch) we use it as kitchen sink and cheatsheet for everything that we did with Turbo and Stimulus.\n\nWe will progressively enhance and add more examples and components while we discover more.\n\nYou are also encouraged to do so and open Pull Request to provide more examples or Issues to ask for ones.\n\n## Training\n\nIf you want to do the Training follow these steps:\n1. Clone the repository\n2. Run `bin/setup` to install dependencies\n3. Run the project locally with `bin/rails server`\n4. Open your browser and go to `http://turbo-showcase.localhost:3000/training`\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/renuo/turbo-showcase.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n"
  },
  {
    "path": "Rakefile",
    "content": "# Add your own tasks in files placed in lib/tasks ending in .rake,\n# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.\n\nrequire_relative \"config/application\"\n\nRails.application.load_tasks\n"
  },
  {
    "path": "app/assets/config/manifest.js",
    "content": "//= link_tree ../images\n//= link_directory ../stylesheets .css\n//= link_tree ../../javascript .js\n//= link_tree ../../../vendor/javascript .js\n"
  },
  {
    "path": "app/assets/images/.keep",
    "content": ""
  },
  {
    "path": "app/assets/stylesheets/application.scss",
    "content": "/*\n * This is a manifest file that'll be compiled into application.css, which will include all the files\n * listed below.\n *\n * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's\n * vendor/assets/stylesheets directory can be referenced here using a relative path.\n *\n * You're free to add application-wide styles to this file and they'll appear at the bottom of the\n * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS\n * files in this directory. Styles in this file should be added after the last require_* statement.\n * It is generally better to create a new file per style scope.\n *\n *= require_tree .\n *= require_self\n */\n\n@import \"bootstrap\";\n\n$renuo-green: #27d79d;\n\n.renuo-green {\n  color: $renuo-green;\n}\n\nturbo-frame {\n  border: 3px dotted green;\n\n  &.flexible {\n    min-height: 100px;\n    display: flex;\n    padding: 1em;\n  }\n}\n\n.fixed-height {\n  height: 10em;\n}\n\ndl {\n  display: flex;\n  flex-wrap: wrap;\n}\n\ndt {\n  vertical-align: middle;\n  font-weight: normal !important;\n  width: 30%;\n}\n\ndd {\n  vertical-align: middle;\n  font-weight: bold;\n  width: 70%;\n}\n\n.fake-link {\n  display: inline;\n  cursor: pointer;\n\n  .read-field {\n    transition: box-shadow 150ms ease-in 0ms;\n    border-radius: 2.01px;\n    padding: 2px 5px 2px 0;\n    display: inline;\n\n    span {\n      border-bottom: 1px dashed;\n    }\n\n    .edit-icon {\n      transition: opacity 150ms ease-in 0ms;\n      opacity: 0;\n    }\n\n    &:hover {\n      box-shadow: 0 0 0 1px #ccc;\n\n      .edit-icon {\n        opacity: 1;\n      }\n    }\n  }\n}\n\n.editable-input {\n  vertical-align: top;\n  display: inline-block;\n  width: auto;\n  white-space: normal;\n  zoom: 1;\n}\n\n.editable-buttons {\n  display: inline-block;\n  vertical-align: top;\n  margin-left: 7px;\n  zoom: 1;\n}\n\n.btn-toggle-nav a {\n  display: inline-flex;\n  padding: 0.1875rem 0.5rem;\n  margin-top: 0.125rem;\n  margin-left: 1.25rem;\n  text-decoration: none;\n}\n\nbutton {\n  .show-when-disabled {\n    display: none;\n  }\n\n  &[disabled] {\n    .show-when-disabled {\n      display: inline;\n    }\n  }\n\n  .show-when-enabled {\n    display: initial;\n  }\n\n  &[disabled] {\n    .show-when-enabled {\n      display: none;\n    }\n  }\n}\n\nbody {\n  font-size: 18px !important;\n  min-height: 100%;\n}\n\nmain {\n  height: calc(100% - 60px);\n}\n\n.footer {\n  background-color: #f6f6f6;\n}\n"
  },
  {
    "path": "app/channels/application_cable/channel.rb",
    "content": "module ApplicationCable\n  class Channel < ActionCable::Channel::Base\n  end\nend\n"
  },
  {
    "path": "app/channels/application_cable/connection.rb",
    "content": "module ApplicationCable\n  class Connection < ActionCable::Connection::Base\n  end\nend\n"
  },
  {
    "path": "app/components/editable_field_component.html.erb",
    "content": "<%= turbo_frame_tag(frame_tag_id) do %>\n  <% if can_edit? %>\n    <div class=\"fake-link editable\" data-controller=\"editable-field\"\n         data-editable-field-type=\"text\"\n         data-editable-field-value=<%= @model.public_send(@attribute) %>>\n      <div class=\"read-field\" data-action=\"click->editable-field#click\" data-target=\"editable-field.readContainer\">\n        <span><%= display_value %></span>\n        <i class=\"fas fa-edit ms-2 edit-icon\"></i>\n      </div>\n      <div class=\"editable-container editable-inline\" data-target=\"editable-field.writeContainer\" style=\"display:none\">\n        <%= form_for @model, url: '/inline_form_submission', data: { target: 'editable-field.form' }, html: { class: 'd-inline' } do |f| %>\n          <div class=\"form-group d-inline\">\n            <div class=\"editable-input\" style=\"position: relative;\">\n              <%= f.text_field @attribute, data: { target: 'editable-field.input' }, class: 'form-control form-control-sm' %>\n            </div>\n            <div class=\"editable-buttons\">\n              <button class=\"btn btn-outline-primary btn-sm btn-xs\" type=\"submit\" data-disable-with=\"<%= spinner %>\">\n                <i class=\"fas fa-check fa-fw\"></i>\n              </button>\n              <button class=\"btn btn-outline-secondary btn-sm btn-xs ms-1\" data-action=\"click->editable-field#cancel\" type=\"button\">\n                <i class=\"fas fa-times fa-fw\"></i>\n              </button>\n            </div>\n          </div>\n        <% end %>\n      </div>\n    </div>\n  <% else %>>\n    <%= display_value %>\n  <% end %>\n<% end %>\n"
  },
  {
    "path": "app/components/editable_field_component.rb",
    "content": "class EditableFieldComponent < ViewComponent::Base\n  include Turbo::FramesHelper\n  include ActiveModel::AttributeAssignment\n\n  attr_accessor :model, :attribute\n\n  def initialize(attributes = {})\n    super()\n    assign_attributes(attributes) if attributes\n  end\n\n  def display_value\n    @model.public_send(@attribute).presence || '<div class=\"text-muted\">-</div>'.html_safe\n  end\n\n  def frame_tag_id\n    \"frame-#{dom_id(@model)}-#{@attribute}\"\n  end\n\n  def can_edit?\n    true\n    # your logic. we use cancancan with `helpers.can? :update, @model`\n  end\n\n  def spinner\n    '<i class=\"fas fa-spinner fa-spin\"></i>'\n  end\nend\n"
  },
  {
    "path": "app/controllers/application_controller.rb",
    "content": "class ApplicationController < ActionController::Base\nend\n"
  },
  {
    "path": "app/controllers/concerns/.keep",
    "content": ""
  },
  {
    "path": "app/controllers/home_controller.rb",
    "content": "class HomeController < ApplicationController\n  def show\n  end\n\n  def frames\n  end\n\n  def slow\n  end\n\n  def pagination\n    @elements = Kaminari.paginate_array((0...36).map { |i| i.to_s 36 }).page(params[:page]).per(5)\n  end\n\n  def forms\n    # https://www.youtube.com/watch?v=TBHKeRWKqN8\n    @user = User.new(first_name: \"Dino\", last_name: \"Megazord\")\n  end\n\n  # we return some HTML that contains a turbo-frame with id 'update-me'\n  def replace_update_me\n  end\n\n  def navigate_away\n  end\n\n  # we return some HTML that contains a turbo-frame with id 'external-frame'\n  def replace_external_frame\n  end\n\n  # we return some HTML that contains a turbo-frame with id 'form-frame'\n  def replace_form_frame\n  end\n\n  def slow_frame\n    sleep 5\n  end\n\n  def inline_fields\n    @user = User.new(first_name: \"Dino\", last_name: \"Megazord\")\n  end\n\n  def refresh_stream_title\n    Turbo::StreamsChannel.broadcast_action_to(\"stream-id\", action: :update,\n      target: \"stream-title\",\n      content: \"Here is a random number: #{rand(1..100)}\")\n  end\n\n  # here we save some content and then redirect back to the root page\n  def form_submission\n    # save stuff...\n    sleep 0.5\n    @user = User.new(first_name: params[:user][:first_name], last_name: params[:user][:last_name])\n    Turbo::StreamsChannel.broadcast_append_to(\"users\", target: \"stream-list\", html: \"<li>#{params[:user][:first_name]} #{params[:user][:last_name]}</li>\")\n    render \"forms\"\n  end\n\n  def issues\n    @user = User.new\n  end\n\n  def form_get_submission\n    # save stuff...\n    sleep 2\n    @user = User.new\n    render \"issues\"\n  end\n\n  def inline_form_submission\n    # save stuff...\n    sleep 1\n    @user = User.new(first_name: params[:user][:first_name], last_name: params[:user][:last_name])\n    render \"inline_fields\"\n  end\nend\n"
  },
  {
    "path": "app/controllers/letters_controller.rb",
    "content": "class LettersController < ApplicationController\n  def show\n    @letter = params[:letter]\n  end\n\n  def slow\n    sleep 5\n    @letter = params[:letter]\n    render :show\n  end\nend\n"
  },
  {
    "path": "app/controllers/training_controller.rb",
    "content": "class TrainingController < ApplicationController\n  def instructions\n    @elements = (0...36).map { |i| i.to_s 36 }\n    @user = User.new(first_name: \"Dino\", last_name: \"Megazord\")\n  end\n\n  def show\n  end\nend\n"
  },
  {
    "path": "app/helpers/application_helper.rb",
    "content": "module ApplicationHelper\n  def spinner\n    raw_spinner.html_safe\n  end\n\n  def raw_spinner\n    '<span class=\"show-when-disabled\"><i class=\"fas fa-spinner fa-spin\"></i></span>'\n  end\nend\n"
  },
  {
    "path": "app/javascript/application.js",
    "content": "// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails\n\nimport \"@hotwired/turbo-rails\"\nimport \"controllers\"\nimport \"popper\"\nimport \"bootstrap\"\n\n"
  },
  {
    "path": "app/javascript/controllers/application.js",
    "content": "import { Application } from \"@hotwired/stimulus\"\n\nconst application = Application.start()\n\n// Configure Stimulus development experience\napplication.debug = false\nwindow.Stimulus = application\n\nexport { application }\n"
  },
  {
    "path": "app/javascript/controllers/editable_field_controller.js",
    "content": "import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n  static get targets() {\n    return ['readContainer', 'writeContainer', 'form', 'input'];\n  }\n\n  connect() {\n    this.type = this.data.get('type');\n    this.value = this.data.get('value');\n\n    this.formTarget.addEventListener('ajax:success', (event, data) => {\n      this.readContainerTarget.textContent = this.inputTarget.value;\n      this.cancel();\n    });\n\n    this.formTarget.addEventListener('ajax:error', (event, data) => {\n      this.inputTarget.value = this.readContainerTarget.textContent;\n      this.cancel();\n    });\n  }\n\n  click() {\n    this._show(this.writeContainerTarget);\n    if (this.hasInputTarget) {\n      this.inputTarget.focus();\n    }\n    this._hide(this.readContainerTarget);\n  }\n\n  cancel() {\n    this._show(this.readContainerTarget);\n    this._hide(this.writeContainerTarget);\n  }\n\n  _show(field, mode = 'inline') {\n    field.style.setProperty('display', mode, 'important');\n  }\n\n  _hide(field) {\n    field.style.setProperty('display', 'none', 'important');\n  }\n}\n"
  },
  {
    "path": "app/javascript/controllers/hello_controller.js",
    "content": "import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n  connect() {\n    this.element.textContent = \"Hello World!\"\n  }\n}\n"
  },
  {
    "path": "app/javascript/controllers/index.js",
    "content": "// Import and register all your controllers from the importmap under controllers/*\n\nimport { application } from \"controllers/application\"\n\n// Eager load all controllers defined in the import map under controllers/**/*_controller\nimport { eagerLoadControllersFrom } from \"@hotwired/stimulus-loading\"\neagerLoadControllersFrom(\"controllers\", application)\n\n// Lazy load controllers as they appear in the DOM (remember not to preload controllers in import map!)\n// import { lazyLoadControllersFrom } from \"@hotwired/stimulus-loading\"\n// lazyLoadControllersFrom(\"controllers\", application)\n"
  },
  {
    "path": "app/javascript/controllers/url_updating_frame_controller.js",
    "content": "import { Controller } from \"@hotwired/stimulus\"\nimport { Turbo } from '@hotwired/turbo-rails';\n\n// this controller allows to update the URL even if only a frame content changed.\n// this behaviour is currently not supported by turbo. see https://github.com/hotwired/turbo/issues/50\n\nexport default class extends Controller {\n  connect() {\n    this.observer = new MutationObserver((mutationsList) => {\n      mutationsList.forEach((mutation) => {\n        if (mutation.type === 'attributes' && mutation.attributeName === 'src') {\n          window.history.pushState({ turbo_frame_history: true }, '', this.element.getAttribute('src'));\n        }\n      });\n    });\n\n    this.observer.observe(this.element, { attributes: true });\n\n    this.popStateListener = ((event) => {\n      if (event.state.turbo_frame_history) {\n        Turbo.visit(window.location.href, { action: 'replace' });\n      }\n    });\n\n    window.addEventListener('popstate', this.popStateListener);\n  }\n\n  disconnect() {\n    this.observer.disconnect();\n    window.removeEventListener('popstate', this.popStateListener);\n  }\n}\n"
  },
  {
    "path": "app/jobs/application_job.rb",
    "content": "class ApplicationJob < ActiveJob::Base\n  # Automatically retry jobs that encountered a deadlock\n  # retry_on ActiveRecord::Deadlocked\n\n  # Most jobs are safe to ignore if the underlying records are no longer available\n  # discard_on ActiveJob::DeserializationError\nend\n"
  },
  {
    "path": "app/mailers/application_mailer.rb",
    "content": "class ApplicationMailer < ActionMailer::Base\n  default from: \"from@example.com\"\n  layout \"mailer\"\nend\n"
  },
  {
    "path": "app/models/application_record.rb",
    "content": "class ApplicationRecord < ActiveRecord::Base\n  self.abstract_class = true\nend\n"
  },
  {
    "path": "app/models/concerns/.keep",
    "content": ""
  },
  {
    "path": "app/models/user.rb",
    "content": "class User\n  include ActiveModel::Model\n\n  attr_accessor :first_name, :last_name\nend\n"
  },
  {
    "path": "app/views/home/forms.html.erb",
    "content": "<h1><i class=\"fas fa-keyboard renuo-green\"></i> Forms</h1>\n<%= turbo_frame_tag 'form-frame', class: 'flexible flex-column' do %>\n  <p>\n    The controller will elaborate this submission as TURBO_STREAM.\n    After submission, the controller will re-render the <code>form_frame</code> partial.\n    Check the controller implementation.\n    <strong><%= @user.first_name %> <%= @user.last_name %></strong>\n  </p>\n  <%= form_for @user, url: '/form_submission', remote: true do |f| %>\n    <div class=\"mb-3\">\n      <%= f.text_field :first_name, placeholder: 'First name', class: 'form-control' %>\n    </div>\n    <div class=\"mb-3\">\n      <%= f.text_field :last_name, placeholder: 'Last name', class: 'form-control' %>\n    </div>\n    <div class=\"mb-3\">\n      <%= f.button class: 'btn btn-primary' do %>\n        <%=spinner %>\n        <span class=\"show-when-enabled\">Submit</span>\n      <% end %>\n    </div>\n  <% end %>\n<% end %>\n\n<%= turbo_stream_from 'users' %>\n<div>\n  <h2>Users list</h2>\n  <ul id=\"stream-list\">\n  </ul>\n</div>\n"
  },
  {
    "path": "app/views/home/frames.html.erb",
    "content": "\n<h1> <i class=\"fas fa-route renuo-green\"></i> Navigation</h1>\n<p>\n  Let's start by learning basic turbo frame navigation.\n  Please refer to the <a href=\"https://turbo.hotwire.dev/handbook/frames\" target=\"_blank\">Turbo Handbook</a> for more information.\n</p>\n<p>\n  Knowing how to navigate with Turbo frames is the first step to building a Turbo application.\n</p>\n\n<h2 class=\"mt-5\">Basic frame navigation</h2>\n\n<%= turbo_frame_tag 'update-me', class: 'flexible flex-column' do %>\n  <a href=\"/replace_update_me\" class=\"btn btn-primary m-3\">\n    Replace only the content of this turbo-frame\n  </a>\n  <a href=\"/home/replace_whole_page\" class=\"btn btn-primary m-3\" data-turbo-frame=\"_top\">\n    Reload the whole page with `data-turbo-frame: '_top'`\n  </a>\n  <a href=\"/home/replace_whole_page\" class=\"btn btn-primary m-3\" target=\"_top\">\n    Reload the whole page with `target: '_top'`\n  </a>\n\n  <%= turbo_frame_tag 'target-top', target: '_top', class: 'flexible m-3' do %>\n    <a href=\"/home/replace_whole_page\" class=\"btn btn-primary m-3\">\n      Reload the whole page when the nearest wrapping turbo-frame has `target: '_top'`\n    </a>\n  <% end %>\n<% end %>\n\n<h2 class=\"mt-5\">External frame navigation</h2>\n\n<div class=\"row\">\n  <div class=\"col-md-6\">\n    <%= turbo_frame_tag 'update-external', class: 'flexible flex-column' do %>\n      <p>\n        You can also replace the content of another frame\n      </p>\n\n      <a href=\"/replace_external_frame\" class=\"btn btn-primary m-3\" data-turbo-frame=\"external-frame\">\n        Reload the content of `external-frame`\n      </a>\n    <% end %>\n  </div>\n  <div class=\"col-md-6\">\n    <%= turbo_frame_tag 'external-frame', class: 'flexible flex-column' do %>\n      Hi 👋. I am called external-frame because my content gets replaced by some other frames.\n      Somewhere there's a button that is able to replace my content. Look for it.\n    <% end %>\n  </div>\n</div>\n"
  },
  {
    "path": "app/views/home/inline_fields.html.erb",
    "content": "<h1><i class=\"fas fa-barcode renuo-green\"></i> Inline fields</h1>\n<p>\n  This is one of the first components we realised with Turbo + Stimulus.\n  Here we provide to you a very minimized version of it, working only with text fields.\n  Of course, we use a <a href=\"https://github.com/github/view_component\">ViewComponent</a> for that. ❤️\n</p>\n<dl>\n  <dt> <%= User.human_attribute_name(:first_name) %></dt>\n  <dd> <%= render EditableFieldComponent.new(model: @user, attribute: :first_name) %></dd>\n  <dt> <%= User.human_attribute_name(:last_name) %></dt>\n  <dd> <%= render EditableFieldComponent.new(model: @user, attribute: :last_name) %></dd>\n</dl>\n"
  },
  {
    "path": "app/views/home/issues.html.erb",
    "content": "<%= turbo_frame_tag 'form-frame', class: 'flexible flex-column' do %>\n  <h5>Form with method GET</h5>\n\n  <p>\n    The data-disable-with does not work\n  </p>\n  <%= form_for @user, url: '/form_get_submission', method: :get do |f| %>\n    <%= f.button 'Submit this form', class: 'btn btn-primary', data: { disable_with: spinner } %>\n  <% end %>\n<% end %>\n<br><br>\n<%= turbo_frame_tag 'form-frame', class: 'flexible flex-column' do %>\n  <h5>Form with method POST</h5>\n\n  <p>\n    Same same but with POST\n  </p>\n  <%= form_for @user, url: '/form_get_submission', method: :post do |f| %>\n    <%= f.button 'Submit this form', class: 'btn btn-primary', data: { disable_with: spinner } %>\n  <% end %>\n<% end %>\n"
  },
  {
    "path": "app/views/home/navigate_away.html.erb",
    "content": "<p>Now <%= link_to 'go back', :back%> and the pagination of the table will be persisted.</p>\n"
  },
  {
    "path": "app/views/home/pagination.html.erb",
    "content": "<h1><i class=\"fas fa-copy renuo-green\"></i> Pagination</h1>\n\n<%= turbo_frame_tag 'pagination-frame', data: { controller: 'url-updating-frame' }, class: 'flexible flex-column' do %>\n  <p>\n    I am a special frame: when my content is replaced, <strong>also the URL of the page is updated</strong>.\n  </p>\n  <p>\n    This is not the default behaviour so, in order to do that, I need a\n    <a href=\"https://github.com/renuo/turbo-showcase/blob/main/app/javascript/controllers/url_updating_frame_controller.js\" target=\"_blank\">stimulus\n      controller</a>\n    attached.\n  </p>\n  <p>\n    This is particularly useful when paginating content, because now you can\n    <a href=\"/navigate_away\" target=\"_top\">navigate away</a> and come back,\n    and keep the pagination.\n  </p>\n  <table class=\"table table-striped\">\n    <% @elements.each do |el| %>\n      <tr>\n        <td><%= el %></td>\n      </tr>\n    <% end %>\n  </table>\n  <%= paginate @elements, theme: 'twitter-bootstrap-4', window: 2 %>\n<% end %>\n"
  },
  {
    "path": "app/views/home/replace_external_frame.html.erb",
    "content": "<%= turbo_frame_tag 'external-frame' do %>\n  I got replaced. I can reload the previous content by simply calling the root page.\n  <a href=\"/frames\" class=\"btn btn-primary\">Restore original content</a>\n\n  of course I can also replace the content of another frame!\n\n  <a href=\"/replace_form_frame\" class=\"btn btn-primary\" data-turbo-frame=\"update-external\">\n    Replace the content of the form-frame\n  </a>\n<% end %>\n"
  },
  {
    "path": "app/views/home/replace_form_frame.html.erb",
    "content": "<%= turbo_frame_tag 'update-external' do %>\n  And PUF! The form has disappeared!\n  <a href=\"/frames\">Restore it, please</a>\n<% end %>\n"
  },
  {
    "path": "app/views/home/replace_update_me.html.erb",
    "content": "<%= turbo_frame_tag 'update-me' do %>\n  I got replaced. I can reload the previous content by simply calling the root page.\n  <a href=\"/frames\" class=\"btn btn-primary\">Restore original content</a>\n<% end %>\n"
  },
  {
    "path": "app/views/home/replace_whole_page.html.erb",
    "content": "<p>\nYou see? Also the Browser URL has been updated.\n</p>\n<p>\nThis is one of the multiple options you have to replace the whole page.\n</p>\n<p>\nBut you have to choose one, otherwise only the content of the nearest frame is replaced.\n</p>\n<%=link_to 'Go back', :back %>\n"
  },
  {
    "path": "app/views/home/show.html.erb",
    "content": "<h1> Hello 👋, welcome to Turbo Showcase <i class=\"fas fa-rocket renuo-green\"></i></h1>\n<p class=\"mt-5\">\n  This is a <a href=\"https://turbo.hotwire.dev\" target=\"_blank\">Turbo</a> kitchen sink.\n  We provide some Open Sourced example of what you can do with Turbo, with some explanations and links to help you.\n</p>\n<p>\n  We highlighted all the turbo-frames with a green dotted border to make it uglier.\n</p>\n<p>\n  You can inspect the source code of this page, and/or visit\n  <a href=\"https://github.com/renuo/turbo-showcase\" target=\"_blank\">https://github.com/renuo/turbo-showcase</a>\n  to see how we implemented stuff here.\n</p>\n<p>\n  If you want to train yourself in using Turbo, we have a\n  <%=link_to 'Training session', training_path %>\n  where you can exercise. <i class=\"fas fa-dumbbell renuo-green\"></i>\n</p>\n<p>\n  Don't forget to give it a ⭐️\n</p>\n<a class=\"github-button\" href=\"https://github.com/renuo/turbo-showcase\" data-size=\"large\" data-show-count=\"true\" aria-label=\"Star renuo/turbo-showcase on GitHub\">Star</a>\n<div class=\"mb-3\"></div>\n"
  },
  {
    "path": "app/views/home/slow.html.erb",
    "content": "<h1><i class=\"fas fa-clock renuo-green\"></i> Slow frame</h1>\n<p>\n  Loading frame content asynchronously. You can do so by setting the `src` property of the turbo-frame tag.\n  This frame will take 5 seconds to load.\n</p>\n<%= turbo_frame_tag 'slow-frame', src: '/slow_frame', class: 'flexible flex-column fixed-height' do %>\n\n  <div class=\"text-center\"><i class=\"fas fa-spinner fa-spin fa-3x\"></i></div>\n<% end %>\n"
  },
  {
    "path": "app/views/home/slow_frame.html.erb",
    "content": "<%= turbo_frame_tag 'slow-frame' do %>\n  This took quite long! That's why it was loaded asynchronously.\n  <div class=\"text-center\"><i class=\"fas fa-check fa-3x\"></i></div>\n<% end %>\n"
  },
  {
    "path": "app/views/home/streams.html.erb",
    "content": "<h1><i class=\"fas fa-water renuo-green\"></i> Streams</h1>\n\n<div class=\"alert alert-warning\">\n  <i class=\"fas fa-exclamation-triangle\"></i>\n  <strong>Warning!</strong>\n  Turbo Streams do not work with the ActionCable async adapter.\n  Make sure you are using the Redis adapter by editing your cable.yml file.\n</div>\n\n<p>It's time to look at our first turbo-stream example.</p>\n<p>\n  We will use the\n  <a href=\"https://github.com/hotwired/turbo-rails/blob/main/app/channels/turbo/streams_channel.rb\" target=\"_blank\">Turbo::StreamsChannel</a>\n  API to show how this works rather than\n  the\n  <a href=\"https://github.com/hotwired/turbo-rails/blob/main/app/models/concerns/turbo/broadcastable.rb\" target=\"_blank\">Turbo::Broadcastable</a>\n  concern which adds a further layer of complexity to the whole story.\n</p>\n\n<%= turbo_stream_from 'stream-id' %>\n<%= turbo_frame_tag 'stream-title', class: 'flexible align-items-center justify-content-center' do %>\n  I have some content\n<% end %>\n\n<p>\n  The link below, will update the content above by using an ActionCable stream.\n</p>\n<p>\n  Check the implementation in the\n  <a href=\"https://github.com/renuo/turbo-showcase/blob/main/app/controllers/home_controller.rb#L43\">#refresh_stream_title</a> action\n  and <a href=\"https://github.com/renuo/turbo-showcase/blob/main/app/views/home/streams.html.erb#L12\">the streams HTML page</a>.\n</p>\n<p>\n  If you open multiple tabs, you will see that the content is replaced in all the tabs.\n</p>\n<p>\n  🤫 If the number is changing, it means that someone else is refreshing it right now.\n</p>\n\n<%= button_to 'Click me', '/refresh_stream_title', remote: true, method: :post, class: 'btn btn-primary' %>\n\n"
  },
  {
    "path": "app/views/layouts/application.html.erb",
    "content": "<!DOCTYPE html>\n<html class=\"h-100\">\n<head>\n  <title>Turbo Showcase</title>\n  <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n\n  <%= csrf_meta_tags %>\n  <%= csp_meta_tag %>\n\n  <script src='https://kit.fontawesome.com/b63ecb5b6f.js' crossorigin='anonymous' defer='true'></script>\n  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbo-track': 'reload' %>\n  <%= javascript_importmap_tags %>\n</head>\n\n<body class=\"d-flex flex-column\">\n<main class=\"d-flex flex-shrink-0\">\n  <div class=\"d-flex flex-column flex-shrink-0 p-3 bg-light h-100\" style=\"width: 280px;\">\n    <a href=\"/\" class=\"d-flex align-items-center mb-3 mb-md-0 me-md-auto link-dark text-decoration-none\">\n    <span class=\"fs-4\">\n      <i class=\"fas fa-rocket renuo-green me-2\"></i>\n      Turbo Showcase\n    </span>\n    </a>\n    <hr>\n    <ul class=\"nav nav-pills flex-column mb-auto\">\n      <li class=\"nav-item\">\n        <a href=\"<%=root_path %>\" class=\"nav-link link-dark <%=class_names(active: current_page?(root_path)) %>\">\n          <i class=\"fas fa-fw fa-home renuo-green\"></i>\n          Home\n        </a>\n      </li>\n      <li class=\"nav-item\">\n        <a href=\"<%=frames_path %>\" class=\"nav-link link-dark <%=class_names(active: current_page?(frames_path)) %>\">\n          <i class=\"fas fa-fw fa-route renuo-green\"></i>\n          Navigation\n        </a>\n      </li>\n      <li class=\"nav-item\">\n        <a href=\"<%=slow_path %>\" class=\"nav-link link-dark <%=class_names(active: current_page?(slow_path)) %>\">\n          <i class=\"fas fa-fw fa-clock renuo-green\"></i>\n          Slow frame\n        </a>\n      </li>\n      <li class=\"nav-item\">\n        <a href=\"<%=pagination_path %>\" class=\"nav-link link-dark <%=class_names(active: current_page?(pagination_path)) %>\">\n          <i class=\"fas fa-fw fa-copy renuo-green\"></i>\n          Pagination\n        </a>\n      </li>\n      <li class=\"nav-item\">\n        <a href=\"<%=forms_path %>\" class=\"nav-link link-dark <%=class_names(active: current_page?(forms_path)) %>\">\n          <i class=\"fas fa-fw fa-keyboard renuo-green\"></i>\n          Forms\n        </a>\n      </li>\n      <li class=\"nav-item\">\n        <a href=\"<%=inline_fields_path %>\" class=\"nav-link link-dark <%=class_names(active: current_page?(inline_fields_path)) %>\">\n          <i class=\"fas fa-fw fa-barcode renuo-green\"></i>\n          Inline fields\n        </a>\n      </li>\n      <li class=\"nav-item\">\n        <a href=\"<%=streams_path %>\" class=\"nav-link link-dark <%=class_names(active: current_page?(streams_path)) %>\">\n          <i class=\"fas fa-fw fa-water renuo-green\"></i>\n          Streams\n        </a>\n      </li>\n      <hr>\n      <li>\n        <a href=\"<%=training_instructions_path %>\" class=\"nav-link  link-dark <%=class_names(active: current_page?(training_instructions_path)) %>\">\n          <i class=\"fas fa-fw fa-dumbbell renuo-green\"></i>\n          Training\n        </a>\n      </li>\n    </ul>\n    <hr>\n  </div>\n  <div class=\"container mb-5 mt-5\">\n    <%= yield %>\n  </div>\n</main>\n\n<div class=\"footer mt-auto py-3\">\n  <div class=\"container\">\n    This showcase has been realised by <a href=\"https://github.com/coorasse\">Alessandro Rodi</a> and offered to you by\n    <a href=\"https://renuo.ch\">Renuo AG</a>.\n  </div>\n</div>\n<script async defer src=\"https://buttons.github.io/buttons.js\" data-turbo-track=\"reload\"></script>\n</body>\n</html>\n"
  },
  {
    "path": "app/views/layouts/mailer.html.erb",
    "content": "<!DOCTYPE html>\n<html>\n  <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n    <style>\n      /* Email styles need to be inline */\n    </style>\n  </head>\n\n  <body>\n    <%= yield %>\n  </body>\n</html>\n"
  },
  {
    "path": "app/views/layouts/mailer.text.erb",
    "content": "<%= yield %>\n"
  },
  {
    "path": "app/views/letters/show.html.erb",
    "content": "<div style=\"font-size: 10rem\"><%=@letter%></div>\n<%=link_to \"Nice letter. Go back\", :back, class: 'btn btn-primary' %>\n"
  },
  {
    "path": "app/views/training/instructions.html.erb",
    "content": "<h1> Hello 👋, welcome to Turbo Training <i class=\"fas fa-dumbbell renuo-green\"></i></h1>\n<p>\n  This is a <a href=\"https://turbo.hotwire.dev\" target=\"_blank\">Turbo</a> Training page.\n  Each section will contain an exercise to solve using Turbo. It will progress in difficulty.\n</p>\n<p>\n  The <a href=\"/\">Homepage of the showcase</a> already provides you the solutions to most of these exercises.\n  Don't look at them if you want to learn something...\n</p>\n<p>\n  Start by cloning this repository and run it locally. <a href=\"https://github.com/renuo/turbo-showcase\" target=\"_blank\">Find the instructions on GitHub</a>\n</p>\n<p>\n  All <code>turbo-frame</code> tags have an ugly dotted border so you can always see them.\n</p>\n<p>\n  Have fun and don't forget to give it a ⭐️\n</p>\n\n<a class=\"github-button\" href=\"https://github.com/renuo/turbo-showcase\" data-size=\"large\" data-show-count=\"true\" aria-label=\"Star renuo/turbo-showcase on GitHub\">Star</a>\n\n<div class=\"mb-3\"></div>\n\n<div class=\"row\">\n  <div class=\"col-12\">\n    <div class=\"card mb-3\">\n      <div class=\"card-header\">\n        <h5>1. Frame 'update-me'</h5>\n      </div>\n      <div class=\"card-body\">\n        <code>\n          In this exercise you need to implement a simple link that refreshes only the content of the\n          frame in which is contained. The link displayes a page with a simple message \"I got replaced.\".\n        </code>\n        <video controls width=\"100%\">\n          <source src=\"/videos/exercise1.mp4\" type=\"video/mp4\">\n        </video>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div class=\"row\">\n  <div class=\"col-12\">\n    <div class=\"card mb-3\">\n      <div class=\"card-header\">\n        <h5>2. Frame 'update-me' and back</h5>\n      </div>\n      <div class=\"card-body\">\n        <code>\n          This exercise extends the previous one and gives the possibility to \"go back\".\n          Once the frame is replaced, next to the \"I got replaced message\", there's a link that allows to go back,\n          and see the video again.\n        </code>\n        <video controls width=\"100%\">\n          <source src=\"/videos/exercise2.mp4\" type=\"video/mp4\">\n        </video>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div class=\"row\">\n  <div class=\"col-6\">\n    <div class=\"card mb-3\">\n      <div class=\"card-header\">\n        <h5>3. The external frame</h5>\n      </div>\n      <div class=\"card-body\">\n        <code>\n          Implement a button that replaces the content of the frame on the right\n        </code>\n        <video controls width=\"100%\">\n          <source src=\"/videos/exercise3.mp4\" type=\"video/mp4\">\n        </video>\n      </div>\n    </div>\n  </div>\n  <div class=\"col-6\">\n    <div class=\"card mb-3\">\n      <div class=\"card-header\">\n        <h5>Replace me</h5>\n      </div>\n      <div class=\"card-body\">\n        <turbo-frame id=\"replace_me_3\">\n          Do something to replace my content\n        </turbo-frame>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div class=\"row\">\n  <div class=\"col-12\">\n    <div class=\"card mb-3\">\n      <div class=\"card-header\">\n        <h5>4. Pagination</h5>\n      </div>\n      <div class=\"card-body\">\n        <code>\n          Quite boring right? Let's implement something useful. There are some @elements available in this page.\n          This exercise consists in paginating them and also allow to click on them. When clicked they of course\n          \"escape the frame\" and open on a new page.<br>\n          You can paginate the array with:<br>\n          @elements = Kaminari.paginate_array(@elements).page(params[:page]).per(5)<br>\n          in the controller and use<br>\n          paginate @elements, theme: 'twitter-bootstrap-4', window: 2<br>\n          in the view.\n        </code>\n        <table class=\"table table-striped\">\n          <% @elements.each do |el| %>\n            <tr>\n              <td><a href=\"/letters/<%=el %>\"><%= el %></a></td>\n            </tr>\n          <% end %>\n        </table>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div class=\"row\">\n  <div class=\"col-12\">\n    <div class=\"card mb-3\">\n      <div class=\"card-header\">\n        <h5>5. Forms</h5>\n      </div>\n      <div class=\"card-body\">\n        <code>\n          In this exercise you need to replace the name displayed, after submitting the form, without refreshing.\n        </code>\n        <video controls width=\"100%\">\n          <source src=\"/videos/exercise5.mp4\" type=\"video/mp4\">\n        </video>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div class=\"row\">\n  <div class=\"col-12\">\n    <div class=\"card mb-3\">\n      <div class=\"card-header\">\n        <h5>6. Frames eager and lazy loading</h5>\n      </div>\n      <div class=\"card-body\">\n        <code>\n          There's a frame here. Make it load the page /letters/a/slow both with eager and lazy loading.\n          Bonus point if you display a loading indicator.<br>\n          Bonus point if you actually display the content of the page... ;)\n        </code>\n        <turbo-frame id=\"to-be-defined\"/>\n      </div>\n    </div>\n  </div>\n</div>\n"
  },
  {
    "path": "app/views/training/show.html.erb",
    "content": "<p>This is your training page...there's a code boilerplate to start with the first exercise:</p>\n\n<code>\n<pre>\n  <code>\n    &lt;turbo-frame id=\"update-me\"&gt;\n      &lt;h1&gt;This is the frame that will be replaced&lt;/h1&gt;\n      &lt;a href=\"a_new_action_in_the_training_controller\"&gt;Replace only the content of this turbo frame&lt;/a&gt;\n    &lt;/turbo-frame&gt;\n  </code>\n</code>\n"
  },
  {
    "path": "babel.config.js",
    "content": "module.exports = function(api) {\n  var validEnv = ['development', 'test', 'production']\n  var currentEnv = api.env()\n  var isDevelopmentEnv = api.env('development')\n  var isProductionEnv = api.env('production')\n  var isTestEnv = api.env('test')\n\n  if (!validEnv.includes(currentEnv)) {\n    throw new Error(\n      'Please specify a valid `NODE_ENV` or ' +\n        '`BABEL_ENV` environment variables. Valid values are \"development\", ' +\n        '\"test\", and \"production\". Instead, received: ' +\n        JSON.stringify(currentEnv) +\n        '.'\n    )\n  }\n\n  return {\n    presets: [\n      isTestEnv && [\n        '@babel/preset-env',\n        {\n          targets: {\n            node: 'current'\n          }\n        }\n      ],\n      (isProductionEnv || isDevelopmentEnv) && [\n        '@babel/preset-env',\n        {\n          forceAllTransforms: true,\n          useBuiltIns: 'entry',\n          corejs: 3,\n          modules: false,\n          exclude: ['transform-typeof-symbol']\n        }\n      ]\n    ].filter(Boolean),\n    plugins: [\n      'babel-plugin-macros',\n      '@babel/plugin-syntax-dynamic-import',\n      isTestEnv && 'babel-plugin-dynamic-import-node',\n      '@babel/plugin-transform-destructuring',\n      [\n        '@babel/plugin-proposal-class-properties',\n        {\n          loose: true\n        }\n      ],\n      [\n        '@babel/plugin-proposal-object-rest-spread',\n        {\n          useBuiltIns: true\n        }\n      ],\n      [\n        '@babel/plugin-transform-runtime',\n        {\n          helpers: false\n        }\n      ],\n      [\n        '@babel/plugin-transform-regenerator',\n        {\n          async: false\n        }\n      ]\n    ].filter(Boolean)\n  }\n}\n"
  },
  {
    "path": "bin/bundle",
    "content": "#!/usr/bin/env ruby\n# frozen_string_literal: true\n\n#\n# This file was generated by Bundler.\n#\n# The application 'bundle' is installed as part of a gem, and\n# this file is here to facilitate running it.\n#\n\nrequire \"rubygems\"\n\nm = Module.new do\n  module_function\n\n  def invoked_as_script?\n    File.expand_path($0) == File.expand_path(__FILE__)\n  end\n\n  def env_var_version\n    ENV[\"BUNDLER_VERSION\"]\n  end\n\n  def cli_arg_version\n    return unless invoked_as_script? # don't want to hijack other binstubs\n    return unless \"update\".start_with?(ARGV.first || \" \") # must be running `bundle update`\n    bundler_version = nil\n    update_index = nil\n    ARGV.each_with_index do |a, i|\n      if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN\n        bundler_version = a\n      end\n      next unless a =~ /\\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\\z/\n      bundler_version = $1\n      update_index = i\n    end\n    bundler_version\n  end\n\n  def gemfile\n    gemfile = ENV[\"BUNDLE_GEMFILE\"]\n    return gemfile if gemfile && !gemfile.empty?\n\n    File.expand_path(\"../../Gemfile\", __FILE__)\n  end\n\n  def lockfile\n    lockfile =\n      case File.basename(gemfile)\n      when \"gems.rb\" then gemfile.sub(/\\.rb$/, gemfile)\n      else \"#{gemfile}.lock\"\n      end\n    File.expand_path(lockfile)\n  end\n\n  def lockfile_version\n    return unless File.file?(lockfile)\n    lockfile_contents = File.read(lockfile)\n    return unless lockfile_contents =~ /\\n\\nBUNDLED WITH\\n\\s{2,}(#{Gem::Version::VERSION_PATTERN})\\n/\n    Regexp.last_match(1)\n  end\n\n  def bundler_version\n    @bundler_version ||=\n      env_var_version || cli_arg_version ||\n        lockfile_version\n  end\n\n  def bundler_requirement\n    return \"#{Gem::Requirement.default}.a\" unless bundler_version\n\n    bundler_gem_version = Gem::Version.new(bundler_version)\n\n    requirement = bundler_gem_version.approximate_recommendation\n\n    return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new(\"2.7.0\")\n\n    requirement += \".a\" if bundler_gem_version.prerelease?\n\n    requirement\n  end\n\n  def load_bundler!\n    ENV[\"BUNDLE_GEMFILE\"] ||= gemfile\n\n    activate_bundler\n  end\n\n  def activate_bundler\n    gem_error = activation_error_handling do\n      gem \"bundler\", bundler_requirement\n    end\n    return if gem_error.nil?\n    require_error = activation_error_handling do\n      require \"bundler/version\"\n    end\n    return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))\n    warn \"Activating bundler (#{bundler_requirement}) failed:\\n#{gem_error.message}\\n\\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`\"\n    exit 42\n  end\n\n  def activation_error_handling\n    yield\n    nil\n  rescue StandardError, LoadError => e\n    e\n  end\nend\n\nm.load_bundler!\n\nif m.invoked_as_script?\n  load Gem.bin_path(\"bundler\", \"bundle\")\nend\n"
  },
  {
    "path": "bin/check",
    "content": "#!/bin/sh\n\nbundle exec standardrb"
  },
  {
    "path": "bin/importmap",
    "content": "#!/usr/bin/env ruby\n\nrequire_relative \"../config/application\"\nrequire \"importmap/commands\"\n"
  },
  {
    "path": "bin/rails",
    "content": "#!/usr/bin/env ruby\nAPP_PATH = File.expand_path(\"../config/application\", __dir__)\nrequire_relative \"../config/boot\"\nrequire \"rails/commands\"\n"
  },
  {
    "path": "bin/rake",
    "content": "#!/usr/bin/env ruby\nrequire_relative \"../config/boot\"\nrequire \"rake\"\nRake.application.run\n"
  },
  {
    "path": "bin/setup",
    "content": "#!/usr/bin/env ruby\nrequire \"fileutils\"\n\n# path to your application root.\nAPP_ROOT = File.expand_path(\"..\", __dir__)\n\ndef system!(*args)\n  system(*args) || abort(\"\\n== Command #{args} failed ==\")\nend\n\nFileUtils.chdir APP_ROOT do\n  # This script is a way to set up or update your development environment automatically.\n  # This script is idempotent, so that you can run it at any time and get an expectable outcome.\n  # Add necessary setup steps to this file.\n\n  puts \"== Installing dependencies ==\"\n  system! \"gem install bundler --conservative\"\n  system(\"bundle check\") || system!(\"bundle install\")\n\n  # Install JavaScript dependencies\n  system! \"bin/yarn\"\n\n  # puts \"\\n== Copying sample files ==\"\n  # unless File.exist?(\"config/database.yml\")\n  #   FileUtils.cp \"config/database.yml.sample\", \"config/database.yml\"\n  # end\n\n  puts \"\\n== Preparing database ==\"\n  system! \"bin/rails db:prepare\"\n\n  puts \"\\n== Removing old logs and tempfiles ==\"\n  system! \"bin/rails log:clear tmp:clear\"\n\n  puts \"\\n== Restarting application server ==\"\n  system! \"bin/rails restart\"\nend\n"
  },
  {
    "path": "bin/spring",
    "content": "#!/usr/bin/env ruby\nif !defined?(Spring) && [nil, \"development\", \"test\"].include?(ENV[\"RAILS_ENV\"])\n  gem \"bundler\"\n  require \"bundler\"\n\n  # Load Spring without loading other gems in the Gemfile, for speed.\n  Bundler.locked_gems.specs.find { |spec| spec.name == \"spring\" }&.tap do |spring|\n    Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path\n    gem \"spring\", spring.version\n    require \"spring/binstub\"\n  rescue Gem::LoadError\n    # Ignore when Spring is not installed.\n  end\nend\n"
  },
  {
    "path": "bin/yarn",
    "content": "#!/usr/bin/env ruby\nAPP_ROOT = File.expand_path('..', __dir__)\nDir.chdir(APP_ROOT) do\n  yarn = ENV[\"PATH\"].split(File::PATH_SEPARATOR).\n    select { |dir| File.expand_path(dir) != __dir__ }.\n    product([\"yarn\", \"yarn.exe\"]).\n    map { |dir, file| File.expand_path(file, dir) }.\n    find { |file| File.executable?(file) }\n\n  if yarn\n    exec yarn, *ARGV\n  else\n    $stderr.puts \"Yarn executable was not detected in the system.\"\n    $stderr.puts \"Download Yarn at https://yarnpkg.com/en/docs/install\"\n    exit 1\n  end\nend\n"
  },
  {
    "path": "config/application.rb",
    "content": "require_relative \"boot\"\n\nrequire \"rails/all\"\n\n# Require the gems listed in Gemfile, including any gems\n# you've limited to :test, :development, or :production.\nBundler.require(*Rails.groups)\n\nmodule TurboShowcase\n  class Application < Rails::Application\n    # Initialize configuration defaults for originally generated Rails version.\n    config.load_defaults 6.1\n\n    # Please, add to the `ignore` list any other `lib` subdirectories that do\n    # not contain `.rb` files, or that should not be reloaded or eager loaded.\n    # Common ones are `templates`, `generators`, or `middleware`, for example.\n    config.autoload_lib(ignore: %w[assets tasks])\n\n    # Configuration for the application, engines, and railties goes here.\n    #\n    # These settings can be overridden in specific environments using the files\n    # in config/environments, which are processed later.\n    #\n    # config.time_zone = \"Central Time (US & Canada)\"\n    # config.eager_load_paths << Rails.root.join(\"extras\")\n  end\nend\n"
  },
  {
    "path": "config/appsignal.yml",
    "content": "default: &default\n  request_headers:\n    - HTTP_ACCEPT\n    - HTTP_ACCEPT_CHARSET\n    - HTTP_ACCEPT_ENCODING\n    - HTTP_ACCEPT_LANGUAGE\n    - HTTP_CACHE_CONTROL\n    - HTTP_CONNECTION\n    - HTTP_REFERER\n    - HTTP_USER_AGENT\n    - HTTP_AUTHORIZATION\n    - CONTENT_LENGTH\n    - PATH_INFO\n    - HTTP_RANGE\n    - REQUEST_METHOD\n    - REQUEST_URI\n    - SERVER_NAME\n    - SERVER_PORT\n    - SERVER_PROTOCOL\n\nmain:\n  <<: *default\n"
  },
  {
    "path": "config/boot.rb",
    "content": "ENV[\"BUNDLE_GEMFILE\"] ||= File.expand_path(\"../Gemfile\", __dir__)\n\nrequire \"bundler/setup\" # Set up gems listed in the Gemfile.\nrequire \"bootsnap/setup\" # Speed up boot time by caching expensive operations.\n"
  },
  {
    "path": "config/cable.yml",
    "content": "# Async adapter only works within the same process, so for manually triggering cable updates from a console,\n# and seeing results in the browser, you must do so from the web console (running inside the dev process),\n# not a terminal started via bin/rails console! Add \"console\" to any action or any ERB template view\n# to make the web console appear.\ndevelopment:\n  adapter: solid_cable\n  connects_to:\n    database:\n      writing: cable\n  polling_interval: 0.1.seconds\n  silence_polling: true\n  message_retention: 1.day\n\ntest:\n  adapter: solid_cable\n  connects_to:\n    database:\n      writing: cable\n  polling_interval: 0.1.seconds\n  silence_polling: true\n  message_retention: 1.day\n\nproduction:\n  adapter: solid_cable\n  connects_to:\n    database:\n      writing: cable\n  polling_interval: 0.1.seconds\n  silence_polling: true\n  message_retention: 1.day\n"
  },
  {
    "path": "config/credentials.yml.enc",
    "content": "UDKZIkITXaNXR2Q/kRMiFcwt4Pn7EvLMd0bJ//JMRjmMJQmc5ochpLzwGGRuspvN39Yk18lWsQ6vsu5/wArK5b3++idQO2DcljbDboNghu8oOAfgrdXh1cyWi1D8nwLscPCOdVVaqhz6ntRiqxTzIriIQMY8LFu+lh6W2zSHr1AyXr+jhUSwnTrMo6k2J/EEPwFtWDFucWBXKfMO1pZ96KatTY1KZ8K1m4N2Il0SA+YOj+4IPG63V4iD3xHCdaZxK1ct6pviCP7s3LCeE8EMkjcHb51TsYqT2w75jtmqoaQeXmZHgT12PVRADb4g1fzPGX1ux1OY4dRghC6nu0IVm8VYRZv9pZhY1XIy7cxSIW8J4nDTGrrVFj7ugMxgMrO4gUuzpOHuB4uafTa4ECrrx1OK//1SwwHbdtPt--i/KiquvapbUWk4QT--pl+x6hMCBZUOf6KoAt6C4g=="
  },
  {
    "path": "config/database.yml",
    "content": "default: &default\n  adapter: sqlite3\n  pool: <%= ENV.fetch(\"RAILS_MAX_THREADS\") { 5 } %>\n  timeout: 5000\n\ndevelopment:\n  primary:\n    <<: *default\n    database: storage/turbo-showcase-development.sqlite3\n  cable:\n    <<: *default\n    database: storage/turbo-showcase-development-cable.sqlite3\n    migrations_paths: db/cable_migrate\n\ntest:\n  primary:\n    <<: *default\n    database: storage/turbo-showcase-test.sqlite3\n  cable:\n    <<: *default\n    database: storage/turbo-showcase-test-cable.sqlite3\n    migrations_paths: db/cable_migrate\n\nproduction:\n  primary:\n    <<: *default\n    database: storage/turbo-showcase-production.sqlite3\n  cable:\n    <<: *default\n    database: storage/turbo-showcase-production-cable.sqlite3\n    migrations_paths: db/cable_migrate\n"
  },
  {
    "path": "config/environment.rb",
    "content": "# Load the Rails application.\nrequire_relative \"application\"\n\n# Initialize the Rails application.\nRails.application.initialize!\n"
  },
  {
    "path": "config/environments/development.rb",
    "content": "require \"active_support/core_ext/integer/time\"\n\nRails.application.configure do\n  # Settings specified here will take precedence over those in config/application.rb.\n\n  # In the development environment your application's code is reloaded any time\n  # it changes. This slows down response time but is perfect for development\n  # since you don't have to restart the web server when you make code changes.\n  config.enable_reloading = true\n\n  # Do not eager load code on boot.\n  config.eager_load = false\n\n  # Show full error reports.\n  config.consider_all_requests_local = true\n\n  # Enable server timing\n  config.server_timing = true\n\n  # Enable/disable caching. By default caching is disabled.\n  # Run rails dev:cache to toggle caching.\n  if Rails.root.join(\"tmp/caching-dev.txt\").exist?\n    config.action_controller.perform_caching = true\n    config.action_controller.enable_fragment_cache_logging = true\n\n    config.cache_store = :memory_store\n    config.public_file_server.headers = {\n      \"Cache-Control\" => \"public, max-age=#{2.days.to_i}\"\n    }\n  else\n    config.action_controller.perform_caching = false\n\n    config.cache_store = :null_store\n  end\n\n  # Store uploaded files on the local file system (see config/storage.yml for options).\n  config.active_storage.service = :local\n\n  # Don't care if the mailer can't send.\n  config.action_mailer.raise_delivery_errors = false\n\n  config.action_mailer.perform_caching = false\n\n  # Print deprecation notices to the Rails logger.\n  config.active_support.deprecation = :log\n\n  # Raise exceptions for disallowed deprecations.\n  config.active_support.disallowed_deprecation = :raise\n\n  # Tell Active Support which deprecation messages to disallow.\n  config.active_support.disallowed_deprecation_warnings = []\n\n  # Raise an error on page load if there are pending migrations.\n  config.active_record.migration_error = :page_load\n\n  # Highlight code that triggered database queries in logs.\n  config.active_record.verbose_query_logs = true\n\n  # Highlight code that enqueued background job in logs.\n  config.active_job.verbose_enqueue_logs = true\n\n  # Suppress logger output for asset requests.\n  config.assets.quiet = true\n\n  # Raises error for missing translations.\n  # config.i18n.raise_on_missing_translations = true\n\n  # Annotate rendered view with file names.\n  # config.action_view.annotate_rendered_view_with_filenames = true\n\n  # Uncomment if you wish to allow Action Cable access from any origin.\n  # config.action_cable.disable_request_forgery_protection = true\n\n  # Raise error when a before_action's only/except options reference missing actions\n  config.action_controller.raise_on_missing_callback_actions = true\nend\n"
  },
  {
    "path": "config/environments/production.rb",
    "content": "require \"active_support/core_ext/integer/time\"\n\nRails.application.configure do\n  # Settings specified here will take precedence over those in config/application.rb.\n\n  # Code is not reloaded between requests.\n  config.enable_reloading = false\n\n  # Eager load code on boot. This eager loads most of Rails and\n  # your application in memory, allowing both threaded web servers\n  # and those relying on copy on write to perform better.\n  # Rake tasks automatically ignore this option for performance.\n  config.eager_load = true\n\n  # Full error reports are disabled and caching is turned on.\n  config.consider_all_requests_local = false\n  config.action_controller.perform_caching = true\n\n  # Ensures that a master key has been made available in ENV[\"RAILS_MASTER_KEY\"], config/master.key, or an environment\n  # key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files).\n  # config.require_master_key = true\n\n  # Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.\n  # config.public_file_server.enabled = false\n\n  # Compress CSS using a preprocessor.\n  # config.assets.css_compressor = :sass\n\n  # Do not fall back to assets pipeline if a precompiled asset is missed.\n  config.assets.compile = false\n\n  # Enable serving of images, stylesheets, and JavaScripts from an asset server.\n  # config.asset_host = \"http://assets.example.com\"\n\n  # Specifies the header that your server uses for sending files.\n  # config.action_dispatch.x_sendfile_header = \"X-Sendfile\" # for Apache\n  # config.action_dispatch.x_sendfile_header = \"X-Accel-Redirect\" # for NGINX\n\n  # Store uploaded files on the local file system (see config/storage.yml for options).\n  config.active_storage.service = :local\n\n  # Mount Action Cable outside main process or domain.\n  # config.action_cable.mount_path = nil\n  # config.action_cable.url = \"wss://example.com/cable\"\n  # config.action_cable.allowed_request_origins = [ \"http://example.com\", /http:\\/\\/example.*/ ]\n\n  # Assume all access to the app is happening through a SSL-terminating reverse proxy.\n  # Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies.\n  # config.assume_ssl = true\n\n  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.\n  config.force_ssl = true\n\n  # Log to STDOUT by default\n  config.logger = ActiveSupport::Logger.new($stdout)\n    .tap { |logger| logger.formatter = ::Logger::Formatter.new }\n    .then { |logger| ActiveSupport::TaggedLogging.new(logger) }\n\n  # Prepend all log lines with the following tags.\n  config.log_tags = [:request_id]\n\n  # \"info\" includes generic and useful information about system operation, but avoids logging too much\n  # information to avoid inadvertent exposure of personally identifiable information (PII). If you\n  # want to log everything, set the level to \"debug\".\n  config.log_level = ENV.fetch(\"RAILS_LOG_LEVEL\", \"info\")\n\n  # Use a different cache store in production.\n  # config.cache_store = :mem_cache_store\n\n  # Use a real queuing backend for Active Job (and separate queues per environment).\n  # config.active_job.queue_adapter = :resque\n  # config.active_job.queue_name_prefix = \"turbo_showcase_production\"\n\n  config.action_mailer.perform_caching = false\n\n  # Ignore bad email addresses and do not raise email delivery errors.\n  # Set this to true and configure the email server for immediate delivery to raise delivery errors.\n  # config.action_mailer.raise_delivery_errors = false\n\n  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to\n  # the I18n.default_locale when a translation cannot be found).\n  config.i18n.fallbacks = true\n\n  # Don't log any deprecations.\n  config.active_support.report_deprecations = false\n\n  # Do not dump schema after migrations.\n  config.active_record.dump_schema_after_migration = false\n\n  # Enable DNS rebinding protection and other `Host` header attacks.\n  # config.hosts = [\n  #   \"example.com\",     # Allow requests from example.com\n  #   /.*\\.example\\.com/ # Allow requests from subdomains like `www.example.com`\n  # ]\n  # Skip DNS rebinding protection for the default health check endpoint.\n  # config.host_authorization = { exclude: ->(request) { request.path == \"/up\" } }\nend\n"
  },
  {
    "path": "config/environments/test.rb",
    "content": "require \"active_support/core_ext/integer/time\"\n\n# The test environment is used exclusively to run your application's\n# test suite. You never need to work with it otherwise. Remember that\n# your test database is \"scratch space\" for the test suite and is wiped\n# and recreated between test runs. Don't rely on the data there!\n\nRails.application.configure do\n  # Settings specified here will take precedence over those in config/application.rb.\n\n  # While tests run files are not watched, reloading is not necessary.\n  config.enable_reloading = false\n\n  # Eager loading loads your entire application. When running a single test locally,\n  # this is usually not necessary, and can slow down your test suite. However, it's\n  # recommended that you enable it in continuous integration systems to ensure eager\n  # loading is working properly before deploying your code.\n  config.eager_load = ENV[\"CI\"].present?\n\n  # Configure public file server for tests with Cache-Control for performance.\n  config.public_file_server.enabled = true\n  config.public_file_server.headers = {\n    \"Cache-Control\" => \"public, max-age=#{1.hour.to_i}\"\n  }\n\n  # Show full error reports and disable caching.\n  config.consider_all_requests_local = true\n  config.action_controller.perform_caching = false\n  config.cache_store = :null_store\n\n  # Render exception templates for rescuable exceptions and raise for other exceptions.\n  config.action_dispatch.show_exceptions = :rescuable\n\n  # Disable request forgery protection in test environment.\n  config.action_controller.allow_forgery_protection = false\n\n  # Store uploaded files on the local file system in a temporary directory.\n  config.active_storage.service = :test\n\n  config.action_mailer.perform_caching = false\n\n  # Tell Action Mailer not to deliver emails to the real world.\n  # The :test delivery method accumulates sent emails in the\n  # ActionMailer::Base.deliveries array.\n  config.action_mailer.delivery_method = :test\n\n  # Print deprecation notices to the stderr.\n  config.active_support.deprecation = :stderr\n\n  # Raise exceptions for disallowed deprecations.\n  config.active_support.disallowed_deprecation = :raise\n\n  # Tell Active Support which deprecation messages to disallow.\n  config.active_support.disallowed_deprecation_warnings = []\n\n  # Raises error for missing translations.\n  # config.i18n.raise_on_missing_translations = true\n\n  # Annotate rendered view with file names.\n  # config.action_view.annotate_rendered_view_with_filenames = true\n\n  # Raise error when a before_action's only/except options reference missing actions\n  config.action_controller.raise_on_missing_callback_actions = true\nend\n"
  },
  {
    "path": "config/importmap.rb",
    "content": "# Pin npm packages by running ./bin/importmap\n\npin \"application\", preload: true\npin \"popper\", to: \"popper.js\", preload: true\npin \"bootstrap\", to: \"bootstrap.min.js\", preload: true\n\npin \"@hotwired/turbo-rails\", to: \"turbo.js\"\npin \"@hotwired/stimulus\", to: \"stimulus.min.js\", preload: true\npin \"@hotwired/stimulus-loading\", to: \"stimulus-loading.js\", preload: true\n\npin_all_from \"app/javascript/controllers\", under: \"controllers\"\n"
  },
  {
    "path": "config/initializers/application_controller_renderer.rb",
    "content": "# Be sure to restart your server when you modify this file.\n\n# ActiveSupport::Reloader.to_prepare do\n#   ApplicationController.renderer.defaults.merge!(\n#     http_host: 'example.org',\n#     https: false\n#   )\n# end\n"
  },
  {
    "path": "config/initializers/assets.rb",
    "content": "# Be sure to restart your server when you modify this file.\n\n# Version of your assets, change this if you want to expire all your assets.\nRails.application.config.assets.version = \"1.0\"\n\n# Add additional assets to the asset load path.\n# Rails.application.config.assets.paths << Emoji.images_path\n\n# Precompile additional assets.\n# application.js, application.css, and all non-JS/CSS in the app/assets\n# folder are already added.\n# Rails.application.config.assets.precompile += %w( admin.js admin.css )\nRails.application.config.assets.precompile += %w[bootstrap.min.js popper.js]\n"
  },
  {
    "path": "config/initializers/backtrace_silencers.rb",
    "content": "# Be sure to restart your server when you modify this file.\n\n# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.\n# Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }\n\n# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code\n# by setting BACKTRACE=1 before calling your invocation, like \"BACKTRACE=1 ./bin/rails runner 'MyClass.perform'\".\nRails.backtrace_cleaner.remove_silencers! if ENV[\"BACKTRACE\"]\n"
  },
  {
    "path": "config/initializers/content_security_policy.rb",
    "content": "# Be sure to restart your server when you modify this file.\n\n# Define an application-wide content security policy.\n# See the Securing Rails Applications Guide for more information:\n# https://guides.rubyonrails.org/security.html#content-security-policy-header\n\n# Rails.application.configure do\n#   config.content_security_policy do |policy|\n#     policy.default_src :self, :https\n#     policy.font_src    :self, :https, :data\n#     policy.img_src     :self, :https, :data\n#     policy.object_src  :none\n#     policy.script_src  :self, :https\n#     policy.style_src   :self, :https\n#     # Specify URI for violation reports\n#     # policy.report_uri \"/csp-violation-report-endpoint\"\n#   end\n#\n#   # Generate session nonces for permitted importmap, inline scripts, and inline styles.\n#   config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }\n#   config.content_security_policy_nonce_directives = %w(script-src style-src)\n#\n#   # Report violations without enforcing the policy.\n#   # config.content_security_policy_report_only = true\n# end\n"
  },
  {
    "path": "config/initializers/cookies_serializer.rb",
    "content": "# Be sure to restart your server when you modify this file.\n\n# Specify a serializer for the signed and encrypted cookie jars.\n# Valid options are :json, :marshal, and :hybrid.\nRails.application.config.action_dispatch.cookies_serializer = :json\n"
  },
  {
    "path": "config/initializers/filter_parameter_logging.rb",
    "content": "# Be sure to restart your server when you modify this file.\n\n# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.\n# Use this to limit dissemination of sensitive information.\n# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.\nRails.application.config.filter_parameters += [\n  :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn\n]\n"
  },
  {
    "path": "config/initializers/inflections.rb",
    "content": "# Be sure to restart your server when you modify this file.\n\n# Add new inflection rules using the following format. Inflections\n# are locale specific, and you may define rules for as many different\n# locales as you wish. All of these examples are active by default:\n# ActiveSupport::Inflector.inflections(:en) do |inflect|\n#   inflect.plural /^(ox)$/i, \"\\\\1en\"\n#   inflect.singular /^(ox)en/i, \"\\\\1\"\n#   inflect.irregular \"person\", \"people\"\n#   inflect.uncountable %w( fish sheep )\n# end\n\n# These inflection rules are supported but not enabled by default:\n# ActiveSupport::Inflector.inflections(:en) do |inflect|\n#   inflect.acronym \"RESTful\"\n# end\n"
  },
  {
    "path": "config/initializers/mime_types.rb",
    "content": "# Be sure to restart your server when you modify this file.\n\n# Add new mime types for use in respond_to blocks:\n# Mime::Type.register \"text/richtext\", :rtf\n"
  },
  {
    "path": "config/initializers/new_framework_defaults_7_1.rb",
    "content": "# Be sure to restart your server when you modify this file.\n#\n# This file eases your Rails 7.1 framework defaults upgrade.\n#\n# Uncomment each configuration one by one to switch to the new default.\n# Once your application is ready to run with all new defaults, you can remove\n# this file and set the `config.load_defaults` to `7.1`.\n#\n# Read the Guide for Upgrading Ruby on Rails for more info on each option.\n# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html\n\n###\n# No longer add autoloaded paths into `$LOAD_PATH`. This means that you won't be able\n# to manually require files that are managed by the autoloader, which you shouldn't do anyway.\n#\n# This will reduce the size of the load path, making `require` faster if you don't use bootsnap, or reduce the size\n# of the bootsnap cache if you use it.\n#\n# To set this configuration, add the following line to `config/application.rb` (NOT this file):\n#   config.add_autoload_paths_to_load_path = false\n\n###\n# Remove the default X-Download-Options headers since it is used only by Internet Explorer.\n# If you need to support Internet Explorer, add back `\"X-Download-Options\" => \"noopen\"`.\n#++\n# Rails.application.config.action_dispatch.default_headers = {\n#   \"X-Frame-Options\" => \"SAMEORIGIN\",\n#   \"X-XSS-Protection\" => \"0\",\n#   \"X-Content-Type-Options\" => \"nosniff\",\n#   \"X-Permitted-Cross-Domain-Policies\" => \"none\",\n#   \"Referrer-Policy\" => \"strict-origin-when-cross-origin\"\n# }\n\n###\n# Do not treat an `ActionController::Parameters` instance\n# as equal to an equivalent `Hash` by default.\n#++\n# Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality = false\n\n###\n# Active Record Encryption now uses SHA-256 as its hash digest algorithm.\n#\n# There are 3 scenarios to consider.\n#\n# 1. If you have data encrypted with previous Rails versions, and you have\n# +config.active_support.key_generator_hash_digest_class+ configured as SHA1 (the default\n# before Rails 7.0), you need to configure SHA-1 for Active Record Encryption too:\n#++\n# Rails.application.config.active_record.encryption.hash_digest_class = OpenSSL::Digest::SHA1\n#\n# 2. If you have +config.active_support.key_generator_hash_digest_class+ configured as SHA256 (the new default\n# in 7.0), then you need to configure SHA-256 for Active Record Encryption:\n#++\n# Rails.application.config.active_record.encryption.hash_digest_class = OpenSSL::Digest::SHA256\n#\n# 3. If you don't currently have data encrypted with Active Record encryption, you can disable this setting to\n# configure the default behavior starting 7.1+:\n#++\n# Rails.application.config.active_record.encryption.support_sha1_for_non_deterministic_encryption = false\n\n###\n# No longer run after_commit callbacks on the first of multiple Active Record\n# instances to save changes to the same database row within a transaction.\n# Instead, run these callbacks on the instance most likely to have internal\n# state which matches what was committed to the database, typically the last\n# instance to save.\n#++\n# Rails.application.config.active_record.run_commit_callbacks_on_first_saved_instances_in_transaction = false\n\n###\n# Configures SQLite with a strict strings mode, which disables double-quoted string literals.\n#\n# SQLite has some quirks around double-quoted string literals.\n# It first tries to consider double-quoted strings as identifier names, but if they don't exist\n# it then considers them as string literals. Because of this, typos can silently go unnoticed.\n# For example, it is possible to create an index for a non existing column.\n# See https://www.sqlite.org/quirks.html#double_quoted_string_literals_are_accepted for more details.\n#++\n# Rails.application.config.active_record.sqlite3_adapter_strict_strings_by_default = true\n\n###\n# Disable deprecated singular associations names.\n#++\n# Rails.application.config.active_record.allow_deprecated_singular_associations_name = false\n\n###\n# Enable the Active Job `BigDecimal` argument serializer, which guarantees\n# roundtripping. Without this serializer, some queue adapters may serialize\n# `BigDecimal` arguments as simple (non-roundtrippable) strings.\n#\n# When deploying an application with multiple replicas, old (pre-Rails 7.1)\n# replicas will not be able to deserialize `BigDecimal` arguments from this\n# serializer. Therefore, this setting should only be enabled after all replicas\n# have been successfully upgraded to Rails 7.1.\n#++\n# Rails.application.config.active_job.use_big_decimal_serializer = true\n\n###\n# Specify if an `ArgumentError` should be raised if `Rails.cache` `fetch` or\n# `write` are given an invalid `expires_at` or `expires_in` time.\n# Options are `true`, and `false`. If `false`, the exception will be reported\n# as `handled` and logged instead.\n#++\n# Rails.application.config.active_support.raise_on_invalid_cache_expiration_time = true\n\n###\n# Specify whether Query Logs will format tags using the SQLCommenter format\n# (https://open-telemetry.github.io/opentelemetry-sqlcommenter/), or using the legacy format.\n# Options are `:legacy` and `:sqlcommenter`.\n#++\n# Rails.application.config.active_record.query_log_tags_format = :sqlcommenter\n\n###\n# Specify the default serializer used by `MessageEncryptor` and `MessageVerifier`\n# instances.\n#\n# The legacy default is `:marshal`, which is a potential vector for\n# deserialization attacks in cases where a message signing secret has been\n# leaked.\n#\n# In Rails 7.1, the new default is `:json_allow_marshal` which serializes and\n# deserializes with `ActiveSupport::JSON`, but can fall back to deserializing\n# with `Marshal` so that legacy messages can still be read.\n#\n# In Rails 7.2, the default will become `:json` which serializes and\n# deserializes with `ActiveSupport::JSON` only.\n#\n# Alternatively, you can choose `:message_pack` or `:message_pack_allow_marshal`,\n# which serialize with `ActiveSupport::MessagePack`. `ActiveSupport::MessagePack`\n# can roundtrip some Ruby types that are not supported by JSON, and may provide\n# improved performance, but it requires the `msgpack` gem.\n#\n# For more information, see\n# https://guides.rubyonrails.org/v7.1/configuring.html#config-active-support-message-serializer\n#\n# If you are performing a rolling deploy of a Rails 7.1 upgrade, wherein servers\n# that have not yet been upgraded must be able to read messages from upgraded\n# servers, first deploy without changing the serializer, then set the serializer\n# in a subsequent deploy.\n#++\n# Rails.application.config.active_support.message_serializer = :json_allow_marshal\n\n###\n# Enable a performance optimization that serializes message data and metadata\n# together. This changes the message format, so messages serialized this way\n# cannot be read by older versions of Rails. However, messages that use the old\n# format can still be read, regardless of whether this optimization is enabled.\n#\n# To perform a rolling deploy of a Rails 7.1 upgrade, wherein servers that have\n# not yet been upgraded must be able to read messages from upgraded servers,\n# leave this optimization off on the first deploy, then enable it on a\n# subsequent deploy.\n#++\n# Rails.application.config.active_support.use_message_serializer_for_metadata = true\n\n###\n# Set the maximum size for Rails log files.\n#\n# `config.load_defaults 7.1` does not set this value for environments other than\n# development and test.\n#++\n# if Rails.env.local?\n#   Rails.application.config.log_file_size = 100 * 1024 * 1024\n# end\n\n###\n# Enable raising on assignment to attr_readonly attributes. The previous\n# behavior would allow assignment but silently not persist changes to the\n# database.\n#++\n# Rails.application.config.active_record.raise_on_assign_to_attr_readonly = true\n\n###\n# Enable validating only parent-related columns for presence when the parent is mandatory.\n# The previous behavior was to validate the presence of the parent record, which performed an extra query\n# to get the parent every time the child record was updated, even when parent has not changed.\n#++\n# Rails.application.config.active_record.belongs_to_required_validates_foreign_key = false\n\n###\n# Enable precompilation of `config.filter_parameters`. Precompilation can\n# improve filtering performance, depending on the quantity and types of filters.\n#++\n# Rails.application.config.precompile_filter_parameters = true\n\n###\n# Enable before_committed! callbacks on all enrolled records in a transaction.\n# The previous behavior was to only run the callbacks on the first copy of a record\n# if there were multiple copies of the same record enrolled in the transaction.\n#++\n# Rails.application.config.active_record.before_committed_on_all_records = true\n\n###\n# Disable automatic column serialization into YAML.\n# To keep the historic behavior, you can set it to `YAML`, however it is\n# recommended to explicitly define the serialization method for each column\n# rather than to rely on a global default.\n#++\n# Rails.application.config.active_record.default_column_serializer = nil\n\n###\n# Enable a performance optimization that serializes Active Record models\n# in a faster and more compact way.\n#\n# To perform a rolling deploy of a Rails 7.1 upgrade, wherein servers that have\n# not yet been upgraded must be able to read caches from upgraded servers,\n# leave this optimization off on the first deploy, then enable it on a\n# subsequent deploy.\n#++\n# Rails.application.config.active_record.marshalling_format_version = 7.1\n\n###\n# Run `after_commit` and `after_*_commit` callbacks in the order they are defined in a model.\n# This matches the behaviour of all other callbacks.\n# In previous versions of Rails, they ran in the inverse order.\n#++\n# Rails.application.config.active_record.run_after_transaction_callbacks_in_order_defined = true\n\n###\n# Whether a `transaction` block is committed or rolled back when exited via `return`, `break` or `throw`.\n#++\n# Rails.application.config.active_record.commit_transaction_on_non_local_return = true\n\n###\n# Controls when to generate a value for <tt>has_secure_token</tt> declarations.\n#++\n# Rails.application.config.active_record.generate_secure_token_on = :initialize\n\n###\n# ** Please read carefully, this must be configured in config/application.rb **\n#\n# Change the format of the cache entry.\n#\n# Changing this default means that all new cache entries added to the cache\n# will have a different format that is not supported by Rails 7.0\n# applications.\n#\n# Only change this value after your application is fully deployed to Rails 7.1\n# and you have no plans to rollback.\n# When you're ready to change format, add this to `config/application.rb` (NOT\n# this file):\n#   config.active_support.cache_format_version = 7.1\n\n###\n# Configure Action View to use HTML5 standards-compliant sanitizers when they are supported on your\n# platform.\n#\n# `Rails::HTML::Sanitizer.best_supported_vendor` will cause Action View to use HTML5-compliant\n# sanitizers if they are supported, else fall back to HTML4 sanitizers.\n#\n# In previous versions of Rails, Action View always used `Rails::HTML4::Sanitizer` as its vendor.\n#++\n# Rails.application.config.action_view.sanitizer_vendor = Rails::HTML::Sanitizer.best_supported_vendor\n\n###\n# Configure Action Text to use an HTML5 standards-compliant sanitizer when it is supported on your\n# platform.\n#\n# `Rails::HTML::Sanitizer.best_supported_vendor` will cause Action Text to use HTML5-compliant\n# sanitizers if they are supported, else fall back to HTML4 sanitizers.\n#\n# In previous versions of Rails, Action Text always used `Rails::HTML4::Sanitizer` as its vendor.\n#++\n# Rails.application.config.action_text.sanitizer_vendor = Rails::HTML::Sanitizer.best_supported_vendor\n\n###\n# Configure the log level used by the DebugExceptions middleware when logging\n# uncaught exceptions during requests.\n#++\n# Rails.application.config.action_dispatch.debug_exception_log_level = :error\n\n###\n# Configure the test helpers in Action View, Action Dispatch, and rails-dom-testing to use HTML5\n# parsers.\n#\n# Nokogiri::HTML5 isn't supported on JRuby, so JRuby applications must set this to :html4.\n#\n# In previous versions of Rails, these test helpers always used an HTML4 parser.\n#++\n# Rails.application.config.dom_testing_default_html_version = :html5\n"
  },
  {
    "path": "config/initializers/permissions_policy.rb",
    "content": "# Be sure to restart your server when you modify this file.\n\n# Define an application-wide HTTP permissions policy. For further\n# information see: https://developers.google.com/web/updates/2018/06/feature-policy\n\n# Rails.application.config.permissions_policy do |policy|\n#   policy.camera      :none\n#   policy.gyroscope   :none\n#   policy.microphone  :none\n#   policy.usb         :none\n#   policy.fullscreen  :self\n#   policy.payment     :self, \"https://secure.example.com\"\n# end\n"
  },
  {
    "path": "config/initializers/wrap_parameters.rb",
    "content": "# Be sure to restart your server when you modify this file.\n\n# This file contains settings for ActionController::ParamsWrapper which\n# is enabled by default.\n\n# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.\nActiveSupport.on_load(:action_controller) do\n  wrap_parameters format: [:json]\nend\n\n# To enable root element in JSON for ActiveRecord objects.\n# ActiveSupport.on_load(:active_record) do\n#   self.include_root_in_json = true\n# end\n"
  },
  {
    "path": "config/locales/en.yml",
    "content": "en:\n  views:\n    pagination:\n      first: \"&laquo;\"\n      last: \"&raquo;\"\n      next: \"&rsaquo;\"\n      previous: \"&lsaquo;\"\n      truncate: \"&hellip;\"\n"
  },
  {
    "path": "config/puma.rb",
    "content": "# Puma can serve each request in a thread from an internal thread pool.\n# The `threads` method setting takes two numbers: a minimum and maximum.\n# Any libraries that use thread pools should be configured to match\n# the maximum value specified for Puma. Default is set to 5 threads for minimum\n# and maximum; this matches the default thread size of Active Record.\n#\nmax_threads_count = ENV.fetch(\"RAILS_MAX_THREADS\", 5)\nmin_threads_count = ENV.fetch(\"RAILS_MIN_THREADS\", max_threads_count)\nthreads min_threads_count, max_threads_count\n\n# Specifies the `worker_timeout` threshold that Puma will use to wait before\n# terminating a worker in development environments.\n#\nworker_timeout 3600 if ENV.fetch(\"RAILS_ENV\", \"development\") == \"development\"\n\n# Specifies the `port` that Puma will listen on to receive requests; default is 3000.\n#\nport ENV.fetch(\"PORT\", 3000)\n\n# Specifies the `environment` that Puma will run in.\n#\nenvironment ENV.fetch(\"RAILS_ENV\") { \"development\" }\n\n# Specifies the `pidfile` that Puma will use.\npidfile ENV.fetch(\"PIDFILE\") { \"tmp/pids/server.pid\" }\n\n# Specifies the number of `workers` to boot in clustered mode.\n# Workers are forked web server processes. If using threads and workers together\n# the concurrency of the application would be max `threads` * `workers`.\n# Workers do not work on JRuby or Windows (both of which do not support\n# processes).\n#\n# workers ENV.fetch(\"WEB_CONCURRENCY\") { 2 }\n\n# Use the `preload_app!` method when specifying a `workers` number.\n# This directive tells Puma to first boot the application and load code\n# before forking the application. This takes advantage of Copy On Write\n# process behavior so workers use less memory.\n#\n# preload_app!\n\n# Allow puma to be restarted by `rails restart` command.\nplugin :tmp_restart\n"
  },
  {
    "path": "config/routes.rb",
    "content": "Rails.application.routes.draw do\n  root \"home#show\"\n\n  get \"/frames\", to: \"home#frames\"\n  get \"/slow\", to: \"home#slow\"\n  get \"/pagination\", to: \"home#pagination\"\n  get \"/forms\", to: \"home#forms\"\n  get \"/replace_update_me\", to: \"home#replace_update_me\"\n  get \"/navigate_away\", to: \"home#navigate_away\"\n  get \"/replace_external_frame\", to: \"home#replace_external_frame\"\n  get \"/replace_form_frame\", to: \"home#replace_form_frame\"\n  get \"/slow_frame\", to: \"home#slow_frame\"\n  get \"/inline_fields\", to: \"home#inline_fields\"\n  post \"/refresh_stream_title\", to: \"home#refresh_stream_title\"\n  post \"/form_submission\", to: \"home#form_submission\"\n  get \"/inline_form_submission\", to: \"home#inline_form_submission\"\n  get \"/issues\", to: \"home#issues\"\n  get \"/form_get_submission\", to: \"home#form_get_submission\"\n  post \"/form_get_submission\", to: \"home#form_get_submission\"\n\n  get \"/streams\", to: \"home#streams\"\n\n  get \"/training\", to: \"training#show\"\n  get \"/training/instructions\", to: \"training#instructions\"\n  get \"/letters/:letter\", to: \"letters#show\"\n  get \"/letters/:letter/slow\", to: \"letters#slow\"\nend\n"
  },
  {
    "path": "config/spring.rb",
    "content": "Spring.watch(\n  \".ruby-version\",\n  \".rbenv-vars\",\n  \"tmp/restart.txt\",\n  \"tmp/caching-dev.txt\"\n)\n"
  },
  {
    "path": "config/storage.yml",
    "content": "test:\n  service: Disk\n  root: <%= Rails.root.join(\"tmp/storage\") %>\n\nlocal:\n  service: Disk\n  root: <%= Rails.root.join(\"storage\") %>\n\n# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)\n# amazon:\n#   service: S3\n#   access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>\n#   secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>\n#   region: us-east-1\n#   bucket: your_own_bucket\n\n# Remember not to checkin your GCS keyfile to a repository\n# google:\n#   service: GCS\n#   project: your_project\n#   credentials: <%= Rails.root.join(\"path/to/gcs.keyfile\") %>\n#   bucket: your_own_bucket\n\n# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)\n# microsoft:\n#   service: AzureStorage\n#   storage_account_name: your_account_name\n#   storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>\n#   container: your_container_name\n\n# mirror:\n#   service: Mirror\n#   primary: local\n#   mirrors: [ amazon, google, microsoft ]\n"
  },
  {
    "path": "config/webpack/development.js",
    "content": "process.env.NODE_ENV = process.env.NODE_ENV || 'development'\n\nconst environment = require('./environment')\n\nmodule.exports = environment.toWebpackConfig()\n"
  },
  {
    "path": "config/webpack/environment.js",
    "content": "const { environment } = require('@rails/webpacker')\n\nmodule.exports = environment\n"
  },
  {
    "path": "config/webpack/production.js",
    "content": "process.env.NODE_ENV = process.env.NODE_ENV || 'production'\n\nconst environment = require('./environment')\n\nmodule.exports = environment.toWebpackConfig()\n"
  },
  {
    "path": "config/webpack/test.js",
    "content": "process.env.NODE_ENV = process.env.NODE_ENV || 'development'\n\nconst environment = require('./environment')\n\nmodule.exports = environment.toWebpackConfig()\n"
  },
  {
    "path": "config/webpacker.yml",
    "content": "# Note: You must restart bin/webpack-dev-server for changes to take effect\n\ndefault: &default\n  source_path: app/javascript\n  source_entry_path: packs\n  public_root_path: public\n  public_output_path: packs\n  cache_path: tmp/cache/webpacker\n  webpack_compile_output: true\n\n  # Additional paths webpack should lookup modules\n  # ['app/assets', 'engine/foo/app/assets']\n  additional_paths: []\n\n  # Reload manifest.json on all requests so we reload latest compiled packs\n  cache_manifest: false\n\n  # Extract and emit a css file\n  extract_css: false\n\n  static_assets_extensions:\n    - .jpg\n    - .jpeg\n    - .png\n    - .gif\n    - .tiff\n    - .ico\n    - .svg\n    - .eot\n    - .otf\n    - .ttf\n    - .woff\n    - .woff2\n\n  extensions:\n    - .mjs\n    - .js\n    - .sass\n    - .scss\n    - .css\n    - .module.sass\n    - .module.scss\n    - .module.css\n    - .png\n    - .svg\n    - .gif\n    - .jpeg\n    - .jpg\n\ndevelopment:\n  <<: *default\n  compile: true\n\n  # Reference: https://webpack.js.org/configuration/dev-server/\n  dev_server:\n    https: false\n    host: localhost\n    port: 3035\n    public: localhost:3035\n    hmr: false\n    # Inline should be set to true if using HMR\n    inline: true\n    overlay: true\n    compress: true\n    disable_host_check: true\n    use_local_ip: false\n    quiet: false\n    pretty: false\n    headers:\n      'Access-Control-Allow-Origin': '*'\n    watch_options:\n      ignored: '**/node_modules/**'\n\n\ntest:\n  <<: *default\n  compile: true\n\n  # Compile test packs to a separate directory\n  public_output_path: packs-test\n\nproduction:\n  <<: *default\n\n  # Production depends on precompilation of packs prior to booting for performance.\n  compile: false\n\n  # Extract and emit a css file\n  extract_css: true\n\n  # Cache manifest.json for performance\n  cache_manifest: true\n"
  },
  {
    "path": "config.ru",
    "content": "# This file is used by Rack-based servers to start the application.\n\nrequire_relative \"config/environment\"\n\nrun Rails.application\nRails.application.load_server\n"
  },
  {
    "path": "db/cable_migrate/20250529140703_create_solid_cable_message.solid_cable.rb",
    "content": "# frozen_string_literal: true\n\n# This migration comes from solid_cable (originally 20240103034713)\nclass CreateSolidCableMessage < ActiveRecord::Migration[7.1]\n  def change\n    create_table :solid_cable_messages, if_not_exists: true do |t|\n      t.text :channel\n      t.text :payload\n\n      t.timestamps\n\n      t.index :created_at\n    end\n  end\nend\n"
  },
  {
    "path": "db/cable_migrate/20250529140704_index_channels.solid_cable.rb",
    "content": "# frozen_string_literal: true\n\n# This migration comes from solid_cable (originally 20240607184711)\nclass IndexChannels < ActiveRecord::Migration[7.1]\n  def change\n    add_index :solid_cable_messages, :channel, length: 500\n  end\nend\n"
  },
  {
    "path": "db/cable_schema.rb",
    "content": "# This file is auto-generated from the current state of the database. Instead\n# of editing this file, please use the migrations feature of Active Record to\n# incrementally modify your database, and then regenerate this schema definition.\n#\n# This file is the source Rails uses to define your schema when running `bin/rails\n# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to\n# be faster and is potentially less error prone than running all of your\n# migrations from scratch. Old migrations may fail to apply correctly if those\n# migrations use external dependencies or application code.\n#\n# It's strongly recommended that you check this file into your version control system.\n\nActiveRecord::Schema[7.1].define(version: 2025_05_29_140704) do\n  create_table \"solid_cable_messages\", force: :cascade do |t|\n    t.text \"channel\"\n    t.text \"payload\"\n    t.datetime \"created_at\", null: false\n    t.datetime \"updated_at\", null: false\n    t.index [\"channel\"], name: \"index_solid_cable_messages_on_channel\"\n    t.index [\"created_at\"], name: \"index_solid_cable_messages_on_created_at\"\n  end\nend\n"
  },
  {
    "path": "db/schema.rb",
    "content": "# This file is auto-generated from the current state of the database. Instead\n# of editing this file, please use the migrations feature of Active Record to\n# incrementally modify your database, and then regenerate this schema definition.\n#\n# This file is the source Rails uses to define your schema when running `bin/rails\n# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to\n# be faster and is potentially less error prone than running all of your\n# migrations from scratch. Old migrations may fail to apply correctly if those\n# migrations use external dependencies or application code.\n#\n# It's strongly recommended that you check this file into your version control system.\n\nActiveRecord::Schema[7.1].define(version: 0) do\nend\n"
  },
  {
    "path": "db/seeds.rb",
    "content": "# This file should contain all the record creation needed to seed the database with its default values.\n# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).\n#\n# Examples:\n#\n#   movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])\n#   Character.create(name: 'Luke', movie: movies.first)\n"
  },
  {
    "path": "lib/assets/.keep",
    "content": ""
  },
  {
    "path": "lib/tasks/.keep",
    "content": ""
  },
  {
    "path": "log/.keep",
    "content": ""
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"turbo-showcase\",\n  \"version\": \"0.1.0\",\n  \"private\": true,\n  \"dependencies\": {\n  }\n}\n"
  },
  {
    "path": "postcss.config.js",
    "content": "module.exports = {\n  plugins: [\n    require('postcss-import'),\n    require('postcss-flexbugs-fixes'),\n    require('postcss-preset-env')({\n      autoprefixer: {\n        flexbox: 'no-2009'\n      },\n      stage: 3\n    })\n  ]\n}\n"
  },
  {
    "path": "public/404.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n  <title>The page you were looking for doesn't exist (404)</title>\n  <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n  <style>\n  .rails-default-error-page {\n    background-color: #EFEFEF;\n    color: #2E2F30;\n    text-align: center;\n    font-family: arial, sans-serif;\n    margin: 0;\n  }\n\n  .rails-default-error-page div.dialog {\n    width: 95%;\n    max-width: 33em;\n    margin: 4em auto 0;\n  }\n\n  .rails-default-error-page div.dialog > div {\n    border: 1px solid #CCC;\n    border-right-color: #999;\n    border-left-color: #999;\n    border-bottom-color: #BBB;\n    border-top: #B00100 solid 4px;\n    border-top-left-radius: 9px;\n    border-top-right-radius: 9px;\n    background-color: white;\n    padding: 7px 12% 0;\n    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);\n  }\n\n  .rails-default-error-page h1 {\n    font-size: 100%;\n    color: #730E15;\n    line-height: 1.5em;\n  }\n\n  .rails-default-error-page div.dialog > p {\n    margin: 0 0 1em;\n    padding: 1em;\n    background-color: #F7F7F7;\n    border: 1px solid #CCC;\n    border-right-color: #999;\n    border-left-color: #999;\n    border-bottom-color: #999;\n    border-bottom-left-radius: 4px;\n    border-bottom-right-radius: 4px;\n    border-top-color: #DADADA;\n    color: #666;\n    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);\n  }\n  </style>\n</head>\n\n<body class=\"rails-default-error-page\">\n  <!-- This file lives in public/404.html -->\n  <div class=\"dialog\">\n    <div>\n      <h1>The page you were looking for doesn't exist.</h1>\n      <p>You may have mistyped the address or the page may have moved.</p>\n    </div>\n    <p>If you are the application owner check the logs for more information.</p>\n  </div>\n</body>\n</html>\n"
  },
  {
    "path": "public/422.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n  <title>The change you wanted was rejected (422)</title>\n  <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n  <style>\n  .rails-default-error-page {\n    background-color: #EFEFEF;\n    color: #2E2F30;\n    text-align: center;\n    font-family: arial, sans-serif;\n    margin: 0;\n  }\n\n  .rails-default-error-page div.dialog {\n    width: 95%;\n    max-width: 33em;\n    margin: 4em auto 0;\n  }\n\n  .rails-default-error-page div.dialog > div {\n    border: 1px solid #CCC;\n    border-right-color: #999;\n    border-left-color: #999;\n    border-bottom-color: #BBB;\n    border-top: #B00100 solid 4px;\n    border-top-left-radius: 9px;\n    border-top-right-radius: 9px;\n    background-color: white;\n    padding: 7px 12% 0;\n    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);\n  }\n\n  .rails-default-error-page h1 {\n    font-size: 100%;\n    color: #730E15;\n    line-height: 1.5em;\n  }\n\n  .rails-default-error-page div.dialog > p {\n    margin: 0 0 1em;\n    padding: 1em;\n    background-color: #F7F7F7;\n    border: 1px solid #CCC;\n    border-right-color: #999;\n    border-left-color: #999;\n    border-bottom-color: #999;\n    border-bottom-left-radius: 4px;\n    border-bottom-right-radius: 4px;\n    border-top-color: #DADADA;\n    color: #666;\n    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);\n  }\n  </style>\n</head>\n\n<body class=\"rails-default-error-page\">\n  <!-- This file lives in public/422.html -->\n  <div class=\"dialog\">\n    <div>\n      <h1>The change you wanted was rejected.</h1>\n      <p>Maybe you tried to change something you didn't have access to.</p>\n    </div>\n    <p>If you are the application owner check the logs for more information.</p>\n  </div>\n</body>\n</html>\n"
  },
  {
    "path": "public/500.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n  <title>We're sorry, but something went wrong (500)</title>\n  <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n  <style>\n  .rails-default-error-page {\n    background-color: #EFEFEF;\n    color: #2E2F30;\n    text-align: center;\n    font-family: arial, sans-serif;\n    margin: 0;\n  }\n\n  .rails-default-error-page div.dialog {\n    width: 95%;\n    max-width: 33em;\n    margin: 4em auto 0;\n  }\n\n  .rails-default-error-page div.dialog > div {\n    border: 1px solid #CCC;\n    border-right-color: #999;\n    border-left-color: #999;\n    border-bottom-color: #BBB;\n    border-top: #B00100 solid 4px;\n    border-top-left-radius: 9px;\n    border-top-right-radius: 9px;\n    background-color: white;\n    padding: 7px 12% 0;\n    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);\n  }\n\n  .rails-default-error-page h1 {\n    font-size: 100%;\n    color: #730E15;\n    line-height: 1.5em;\n  }\n\n  .rails-default-error-page div.dialog > p {\n    margin: 0 0 1em;\n    padding: 1em;\n    background-color: #F7F7F7;\n    border: 1px solid #CCC;\n    border-right-color: #999;\n    border-left-color: #999;\n    border-bottom-color: #999;\n    border-bottom-left-radius: 4px;\n    border-bottom-right-radius: 4px;\n    border-top-color: #DADADA;\n    color: #666;\n    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);\n  }\n  </style>\n</head>\n\n<body class=\"rails-default-error-page\">\n  <!-- This file lives in public/500.html -->\n  <div class=\"dialog\">\n    <div>\n      <h1>We're sorry, but something went wrong.</h1>\n    </div>\n    <p>If you are the application owner check the logs for more information.</p>\n  </div>\n</body>\n</html>\n"
  },
  {
    "path": "public/robots.txt",
    "content": "# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file\n"
  },
  {
    "path": "storage/.keep",
    "content": ""
  },
  {
    "path": "test/application_system_test_case.rb",
    "content": "require \"test_helper\"\n\nclass ApplicationSystemTestCase < ActionDispatch::SystemTestCase\n  driven_by :selenium, using: :chrome, screen_size: [1400, 1400]\nend\n"
  },
  {
    "path": "test/channels/application_cable/connection_test.rb",
    "content": "require \"test_helper\"\n\nclass ApplicationCable::ConnectionTest < ActionCable::Connection::TestCase\n  # test \"connects with cookies\" do\n  #   cookies.signed[:user_id] = 42\n  #\n  #   connect\n  #\n  #   assert_equal connection.user_id, \"42\"\n  # end\nend\n"
  },
  {
    "path": "test/controllers/.keep",
    "content": ""
  },
  {
    "path": "test/fixtures/files/.keep",
    "content": ""
  },
  {
    "path": "test/helpers/.keep",
    "content": ""
  },
  {
    "path": "test/integration/.keep",
    "content": ""
  },
  {
    "path": "test/mailers/.keep",
    "content": ""
  },
  {
    "path": "test/models/.keep",
    "content": ""
  },
  {
    "path": "test/system/.keep",
    "content": ""
  },
  {
    "path": "test/test_helper.rb",
    "content": "ENV[\"RAILS_ENV\"] ||= \"test\"\nrequire_relative \"../config/environment\"\nrequire \"rails/test_help\"\n\nclass ActiveSupport::TestCase\n  # Run tests in parallel with specified workers\n  parallelize(workers: :number_of_processors)\n\n  # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.\n  fixtures :all\n\n  # Add more helper methods to be used by all tests here...\nend\n"
  },
  {
    "path": "tmp/.keep",
    "content": ""
  },
  {
    "path": "vendor/.keep",
    "content": ""
  },
  {
    "path": "vendor/javascript/.keep",
    "content": ""
  }
]