practice doing this

first commit

johnrieth 5a665154

+2920
+51
.dockerignore
··· 1 + # See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files. 2 + 3 + # Ignore git directory. 4 + /.git/ 5 + /.gitignore 6 + 7 + # Ignore bundler config. 8 + /.bundle 9 + 10 + # Ignore all environment files. 11 + /.env* 12 + 13 + # Ignore all default key files. 14 + /config/master.key 15 + /config/credentials/*.key 16 + 17 + # Ignore all logfiles and tempfiles. 18 + /log/* 19 + /tmp/* 20 + !/log/.keep 21 + !/tmp/.keep 22 + 23 + # Ignore pidfiles, but keep the directory. 24 + /tmp/pids/* 25 + !/tmp/pids/.keep 26 + 27 + # Ignore storage (uploaded files in development and any SQLite databases). 28 + /storage/* 29 + !/storage/.keep 30 + /tmp/storage/* 31 + !/tmp/storage/.keep 32 + 33 + # Ignore assets. 34 + /node_modules/ 35 + /app/assets/builds/* 36 + !/app/assets/builds/.keep 37 + /public/assets 38 + 39 + # Ignore CI service files. 40 + /.github 41 + 42 + # Ignore Kamal files. 43 + /config/deploy*.yml 44 + /.kamal 45 + 46 + # Ignore development files 47 + /.devcontainer 48 + 49 + # Ignore Docker-related files 50 + /.dockerignore 51 + /Dockerfile*
+9
.gitattributes
··· 1 + # See https://git-scm.com/docs/gitattributes for more about git attribute files. 2 + 3 + # Mark the database schema as having been generated. 4 + db/schema.rb linguist-generated 5 + 6 + # Mark any vendored files as having been vendored. 7 + vendor/* linguist-vendored 8 + config/credentials/*.yml.enc diff=rails_credentials 9 + config/credentials.yml.enc diff=rails_credentials
+12
.github/dependabot.yml
··· 1 + version: 2 2 + updates: 3 + - package-ecosystem: bundler 4 + directory: "/" 5 + schedule: 6 + interval: weekly 7 + open-pull-requests-limit: 10 8 + - package-ecosystem: github-actions 9 + directory: "/" 10 + schedule: 11 + interval: weekly 12 + open-pull-requests-limit: 10
+124
.github/workflows/ci.yml
··· 1 + name: CI 2 + 3 + on: 4 + pull_request: 5 + push: 6 + branches: [ master ] 7 + 8 + jobs: 9 + scan_ruby: 10 + runs-on: ubuntu-latest 11 + 12 + steps: 13 + - name: Checkout code 14 + uses: actions/checkout@v5 15 + 16 + - name: Set up Ruby 17 + uses: ruby/setup-ruby@v1 18 + with: 19 + bundler-cache: true 20 + 21 + - name: Scan for common Rails security vulnerabilities using static analysis 22 + run: bin/brakeman --no-pager 23 + 24 + - name: Scan for known security vulnerabilities in gems used 25 + run: bin/bundler-audit 26 + 27 + scan_js: 28 + runs-on: ubuntu-latest 29 + 30 + steps: 31 + - name: Checkout code 32 + uses: actions/checkout@v5 33 + 34 + - name: Set up Ruby 35 + uses: ruby/setup-ruby@v1 36 + with: 37 + bundler-cache: true 38 + 39 + - name: Scan for security vulnerabilities in JavaScript dependencies 40 + run: bin/importmap audit 41 + 42 + lint: 43 + runs-on: ubuntu-latest 44 + env: 45 + RUBOCOP_CACHE_ROOT: tmp/rubocop 46 + steps: 47 + - name: Checkout code 48 + uses: actions/checkout@v5 49 + 50 + - name: Set up Ruby 51 + uses: ruby/setup-ruby@v1 52 + with: 53 + bundler-cache: true 54 + 55 + - name: Prepare RuboCop cache 56 + uses: actions/cache@v4 57 + env: 58 + DEPENDENCIES_HASH: ${{ hashFiles('.ruby-version', '**/.rubocop.yml', '**/.rubocop_todo.yml', 'Gemfile.lock') }} 59 + with: 60 + path: ${{ env.RUBOCOP_CACHE_ROOT }} 61 + key: rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-${{ github.ref_name == github.event.repository.default_branch && github.run_id || 'default' }} 62 + restore-keys: | 63 + rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}- 64 + 65 + - name: Lint code for consistent style 66 + run: bin/rubocop -f github 67 + 68 + test: 69 + runs-on: ubuntu-latest 70 + 71 + # services: 72 + # redis: 73 + # image: valkey/valkey:8 74 + # ports: 75 + # - 6379:6379 76 + # options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 77 + steps: 78 + - name: Checkout code 79 + uses: actions/checkout@v5 80 + 81 + - name: Set up Ruby 82 + uses: ruby/setup-ruby@v1 83 + with: 84 + bundler-cache: true 85 + 86 + - name: Run tests 87 + env: 88 + RAILS_ENV: test 89 + # RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} 90 + # REDIS_URL: redis://localhost:6379/0 91 + run: bin/rails db:test:prepare test 92 + 93 + system-test: 94 + runs-on: ubuntu-latest 95 + 96 + # services: 97 + # redis: 98 + # image: valkey/valkey:8 99 + # ports: 100 + # - 6379:6379 101 + # options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 102 + steps: 103 + - name: Checkout code 104 + uses: actions/checkout@v5 105 + 106 + - name: Set up Ruby 107 + uses: ruby/setup-ruby@v1 108 + with: 109 + bundler-cache: true 110 + 111 + - name: Run System Tests 112 + env: 113 + RAILS_ENV: test 114 + # RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} 115 + # REDIS_URL: redis://localhost:6379/0 116 + run: bin/rails db:test:prepare test:system 117 + 118 + - name: Keep screenshots from failed system tests 119 + uses: actions/upload-artifact@v4 120 + if: failure() 121 + with: 122 + name: screenshots 123 + path: ${{ github.workspace }}/tmp/screenshots 124 + if-no-files-found: ignore
+35
.gitignore
··· 1 + # See https://help.github.com/articles/ignoring-files for more about ignoring files. 2 + # 3 + # Temporary files generated by your text editor or operating system 4 + # belong in git's global ignore instead: 5 + # `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore` 6 + 7 + # Ignore bundler config. 8 + /.bundle 9 + 10 + # Ignore all environment files. 11 + /.env* 12 + 13 + # Ignore all logfiles and tempfiles. 14 + /log/* 15 + /tmp/* 16 + !/log/.keep 17 + !/tmp/.keep 18 + 19 + # Ignore pidfiles, but keep the directory. 20 + /tmp/pids/* 21 + !/tmp/pids/ 22 + !/tmp/pids/.keep 23 + 24 + # Ignore storage (uploaded files in development and any SQLite databases). 25 + /storage/* 26 + !/storage/.keep 27 + /tmp/storage/* 28 + !/tmp/storage/ 29 + !/tmp/storage/.keep 30 + 31 + /public/assets 32 + 33 + # Ignore key files for decrypting credentials and more. 34 + /config/*.key 35 +
+3
.kamal/hooks/docker-setup.sample
··· 1 + #!/bin/sh 2 + 3 + echo "Docker set up on $KAMAL_HOSTS..."
+3
.kamal/hooks/post-app-boot.sample
··· 1 + #!/bin/sh 2 + 3 + echo "Booted app version $KAMAL_VERSION on $KAMAL_HOSTS..."
+14
.kamal/hooks/post-deploy.sample
··· 1 + #!/bin/sh 2 + 3 + # A sample post-deploy hook 4 + # 5 + # These environment variables are available: 6 + # KAMAL_RECORDED_AT 7 + # KAMAL_PERFORMER 8 + # KAMAL_VERSION 9 + # KAMAL_HOSTS 10 + # KAMAL_ROLES (if set) 11 + # KAMAL_DESTINATION (if set) 12 + # KAMAL_RUNTIME 13 + 14 + echo "$KAMAL_PERFORMER deployed $KAMAL_VERSION to $KAMAL_DESTINATION in $KAMAL_RUNTIME seconds"
+3
.kamal/hooks/post-proxy-reboot.sample
··· 1 + #!/bin/sh 2 + 3 + echo "Rebooted kamal-proxy on $KAMAL_HOSTS"
+3
.kamal/hooks/pre-app-boot.sample
··· 1 + #!/bin/sh 2 + 3 + echo "Booting app version $KAMAL_VERSION on $KAMAL_HOSTS..."
+51
.kamal/hooks/pre-build.sample
··· 1 + #!/bin/sh 2 + 3 + # A sample pre-build hook 4 + # 5 + # Checks: 6 + # 1. We have a clean checkout 7 + # 2. A remote is configured 8 + # 3. The branch has been pushed to the remote 9 + # 4. The version we are deploying matches the remote 10 + # 11 + # These environment variables are available: 12 + # KAMAL_RECORDED_AT 13 + # KAMAL_PERFORMER 14 + # KAMAL_VERSION 15 + # KAMAL_HOSTS 16 + # KAMAL_ROLES (if set) 17 + # KAMAL_DESTINATION (if set) 18 + 19 + if [ -n "$(git status --porcelain)" ]; then 20 + echo "Git checkout is not clean, aborting..." >&2 21 + git status --porcelain >&2 22 + exit 1 23 + fi 24 + 25 + first_remote=$(git remote) 26 + 27 + if [ -z "$first_remote" ]; then 28 + echo "No git remote set, aborting..." >&2 29 + exit 1 30 + fi 31 + 32 + current_branch=$(git branch --show-current) 33 + 34 + if [ -z "$current_branch" ]; then 35 + echo "Not on a git branch, aborting..." >&2 36 + exit 1 37 + fi 38 + 39 + remote_head=$(git ls-remote $first_remote --tags $current_branch | cut -f1) 40 + 41 + if [ -z "$remote_head" ]; then 42 + echo "Branch not pushed to remote, aborting..." >&2 43 + exit 1 44 + fi 45 + 46 + if [ "$KAMAL_VERSION" != "$remote_head" ]; then 47 + echo "Version ($KAMAL_VERSION) does not match remote HEAD ($remote_head), aborting..." >&2 48 + exit 1 49 + fi 50 + 51 + exit 0
+47
.kamal/hooks/pre-connect.sample
··· 1 + #!/usr/bin/env ruby 2 + 3 + # A sample pre-connect check 4 + # 5 + # Warms DNS before connecting to hosts in parallel 6 + # 7 + # These environment variables are available: 8 + # KAMAL_RECORDED_AT 9 + # KAMAL_PERFORMER 10 + # KAMAL_VERSION 11 + # KAMAL_HOSTS 12 + # KAMAL_ROLES (if set) 13 + # KAMAL_DESTINATION (if set) 14 + # KAMAL_RUNTIME 15 + 16 + hosts = ENV["KAMAL_HOSTS"].split(",") 17 + results = nil 18 + max = 3 19 + 20 + elapsed = Benchmark.realtime do 21 + results = hosts.map do |host| 22 + Thread.new do 23 + tries = 1 24 + 25 + begin 26 + Socket.getaddrinfo(host, 0, Socket::AF_UNSPEC, Socket::SOCK_STREAM, nil, Socket::AI_CANONNAME) 27 + rescue SocketError 28 + if tries < max 29 + puts "Retrying DNS warmup: #{host}" 30 + tries += 1 31 + sleep rand 32 + retry 33 + else 34 + puts "DNS warmup failed: #{host}" 35 + host 36 + end 37 + end 38 + 39 + tries 40 + end 41 + end.map(&:value) 42 + end 43 + 44 + retries = results.sum - hosts.size 45 + nopes = results.count { |r| r == max } 46 + 47 + puts "Prewarmed %d DNS lookups in %.2f sec: %d retries, %d failures" % [ hosts.size, elapsed, retries, nopes ]
+122
.kamal/hooks/pre-deploy.sample
··· 1 + #!/usr/bin/env ruby 2 + 3 + # A sample pre-deploy hook 4 + # 5 + # Checks the Github status of the build, waiting for a pending build to complete for up to 720 seconds. 6 + # 7 + # Fails unless the combined status is "success" 8 + # 9 + # These environment variables are available: 10 + # KAMAL_RECORDED_AT 11 + # KAMAL_PERFORMER 12 + # KAMAL_VERSION 13 + # KAMAL_HOSTS 14 + # KAMAL_COMMAND 15 + # KAMAL_SUBCOMMAND 16 + # KAMAL_ROLES (if set) 17 + # KAMAL_DESTINATION (if set) 18 + 19 + # Only check the build status for production deployments 20 + if ENV["KAMAL_COMMAND"] == "rollback" || ENV["KAMAL_DESTINATION"] != "production" 21 + exit 0 22 + end 23 + 24 + require "bundler/inline" 25 + 26 + # true = install gems so this is fast on repeat invocations 27 + gemfile(true, quiet: true) do 28 + source "https://rubygems.org" 29 + 30 + gem "octokit" 31 + gem "faraday-retry" 32 + end 33 + 34 + MAX_ATTEMPTS = 72 35 + ATTEMPTS_GAP = 10 36 + 37 + def exit_with_error(message) 38 + $stderr.puts message 39 + exit 1 40 + end 41 + 42 + class GithubStatusChecks 43 + attr_reader :remote_url, :git_sha, :github_client, :combined_status 44 + 45 + def initialize 46 + @remote_url = github_repo_from_remote_url 47 + @git_sha = `git rev-parse HEAD`.strip 48 + @github_client = Octokit::Client.new(access_token: ENV["GITHUB_TOKEN"]) 49 + refresh! 50 + end 51 + 52 + def refresh! 53 + @combined_status = github_client.combined_status(remote_url, git_sha) 54 + end 55 + 56 + def state 57 + combined_status[:state] 58 + end 59 + 60 + def first_status_url 61 + first_status = combined_status[:statuses].find { |status| status[:state] == state } 62 + first_status && first_status[:target_url] 63 + end 64 + 65 + def complete_count 66 + combined_status[:statuses].count { |status| status[:state] != "pending"} 67 + end 68 + 69 + def total_count 70 + combined_status[:statuses].count 71 + end 72 + 73 + def current_status 74 + if total_count > 0 75 + "Completed #{complete_count}/#{total_count} checks, see #{first_status_url} ..." 76 + else 77 + "Build not started..." 78 + end 79 + end 80 + 81 + private 82 + def github_repo_from_remote_url 83 + url = `git config --get remote.origin.url`.strip.delete_suffix(".git") 84 + if url.start_with?("https://github.com/") 85 + url.delete_prefix("https://github.com/") 86 + elsif url.start_with?("git@github.com:") 87 + url.delete_prefix("git@github.com:") 88 + else 89 + url 90 + end 91 + end 92 + end 93 + 94 + 95 + $stdout.sync = true 96 + 97 + begin 98 + puts "Checking build status..." 99 + 100 + attempts = 0 101 + checks = GithubStatusChecks.new 102 + 103 + loop do 104 + case checks.state 105 + when "success" 106 + puts "Checks passed, see #{checks.first_status_url}" 107 + exit 0 108 + when "failure" 109 + exit_with_error "Checks failed, see #{checks.first_status_url}" 110 + when "pending" 111 + attempts += 1 112 + end 113 + 114 + exit_with_error "Checks are still pending, gave up after #{MAX_ATTEMPTS * ATTEMPTS_GAP} seconds" if attempts == MAX_ATTEMPTS 115 + 116 + puts checks.current_status 117 + sleep(ATTEMPTS_GAP) 118 + checks.refresh! 119 + end 120 + rescue Octokit::NotFound 121 + exit_with_error "Build status could not be found" 122 + end
+3
.kamal/hooks/pre-proxy-reboot.sample
··· 1 + #!/bin/sh 2 + 3 + echo "Rebooting kamal-proxy on $KAMAL_HOSTS..."
+20
.kamal/secrets
··· 1 + # Secrets defined here are available for reference under registry/password, env/secret, builder/secrets, 2 + # and accessories/*/env/secret in config/deploy.yml. All secrets should be pulled from either 3 + # password manager, ENV, or a file. DO NOT ENTER RAW CREDENTIALS HERE! This file needs to be safe for git. 4 + 5 + # Example of extracting secrets from 1password (or another compatible pw manager) 6 + # SECRETS=$(kamal secrets fetch --adapter 1password --account your-account --from Vault/Item KAMAL_REGISTRY_PASSWORD RAILS_MASTER_KEY) 7 + # KAMAL_REGISTRY_PASSWORD=$(kamal secrets extract KAMAL_REGISTRY_PASSWORD ${SECRETS}) 8 + # RAILS_MASTER_KEY=$(kamal secrets extract RAILS_MASTER_KEY ${SECRETS}) 9 + 10 + # Example of extracting secrets from Rails credentials 11 + # KAMAL_REGISTRY_PASSWORD=$(rails credentials:fetch kamal.registry_password) 12 + 13 + # Use a GITHUB_TOKEN if private repositories are needed for the image 14 + # GITHUB_TOKEN=$(gh config get -h github.com oauth_token) 15 + 16 + # Grab the registry password from ENV 17 + # KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD 18 + 19 + # Improve security by using a password manager. Never check config/master.key into git! 20 + RAILS_MASTER_KEY=$(cat config/master.key)
+8
.rubocop.yml
··· 1 + # Omakase Ruby styling for Rails 2 + inherit_gem: { rubocop-rails-omakase: rubocop.yml } 3 + 4 + # Overwrite or add rules to create your own house style 5 + # 6 + # # Use `[a, [b, c]]` not `[ a, [ b, c ] ]` 7 + # Layout/SpaceInsideArrayLiteralBrackets: 8 + # Enabled: false
+1
.ruby-version
··· 1 + ruby-3.4.8
+76
Dockerfile
··· 1 + # syntax=docker/dockerfile:1 2 + # check=error=true 3 + 4 + # This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand: 5 + # docker build -t practice . 6 + # docker run -d -p 80:80 -e RAILS_MASTER_KEY=<value from config/master.key> --name practice practice 7 + 8 + # For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html 9 + 10 + # Make sure RUBY_VERSION matches the Ruby version in .ruby-version 11 + ARG RUBY_VERSION=3.4.8 12 + FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base 13 + 14 + # Rails app lives here 15 + WORKDIR /rails 16 + 17 + # Install base packages 18 + RUN apt-get update -qq && \ 19 + apt-get install --no-install-recommends -y curl libjemalloc2 libvips sqlite3 && \ 20 + ln -s /usr/lib/$(uname -m)-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so && \ 21 + rm -rf /var/lib/apt/lists /var/cache/apt/archives 22 + 23 + # Set production environment variables and enable jemalloc for reduced memory usage and latency. 24 + ENV RAILS_ENV="production" \ 25 + BUNDLE_DEPLOYMENT="1" \ 26 + BUNDLE_PATH="/usr/local/bundle" \ 27 + BUNDLE_WITHOUT="development" \ 28 + LD_PRELOAD="/usr/local/lib/libjemalloc.so" 29 + 30 + # Throw-away build stage to reduce size of final image 31 + FROM base AS build 32 + 33 + # Install packages needed to build gems 34 + RUN apt-get update -qq && \ 35 + apt-get install --no-install-recommends -y build-essential git libyaml-dev pkg-config && \ 36 + rm -rf /var/lib/apt/lists /var/cache/apt/archives 37 + 38 + # Install application gems 39 + COPY Gemfile Gemfile.lock vendor ./ 40 + 41 + RUN bundle install && \ 42 + rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \ 43 + # -j 1 disable parallel compilation to avoid a QEMU bug: https://github.com/rails/bootsnap/issues/495 44 + bundle exec bootsnap precompile -j 1 --gemfile 45 + 46 + # Copy application code 47 + COPY . . 48 + 49 + # Precompile bootsnap code for faster boot times. 50 + # -j 1 disable parallel compilation to avoid a QEMU bug: https://github.com/rails/bootsnap/issues/495 51 + RUN bundle exec bootsnap precompile -j 1 app/ lib/ 52 + 53 + # Precompiling assets for production without requiring secret RAILS_MASTER_KEY 54 + RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile 55 + 56 + 57 + 58 + 59 + # Final stage for app image 60 + FROM base 61 + 62 + # Run and own only the runtime files as a non-root user for security 63 + RUN groupadd --system --gid 1000 rails && \ 64 + useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash 65 + USER 1000:1000 66 + 67 + # Copy built artifacts: gems, application 68 + COPY --chown=rails:rails --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}" 69 + COPY --chown=rails:rails --from=build /rails /rails 70 + 71 + # Entrypoint prepares the database. 72 + ENTRYPOINT ["/rails/bin/docker-entrypoint"] 73 + 74 + # Start server via Thruster by default, this can be overwritten at runtime 75 + EXPOSE 80 76 + CMD ["./bin/thrust", "./bin/rails", "server"]
+66
Gemfile
··· 1 + source "https://rubygems.org" 2 + 3 + # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" 4 + gem "rails", "~> 8.1.1" 5 + # The modern asset pipeline for Rails [https://github.com/rails/propshaft] 6 + gem "propshaft" 7 + # Use sqlite3 as the database for Active Record 8 + gem "sqlite3", ">= 2.1" 9 + # Use the Puma web server [https://github.com/puma/puma] 10 + gem "puma", ">= 5.0" 11 + # Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] 12 + gem "importmap-rails" 13 + # Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev] 14 + gem "turbo-rails" 15 + # Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] 16 + gem "stimulus-rails" 17 + # Build JSON APIs with ease [https://github.com/rails/jbuilder] 18 + gem "jbuilder" 19 + 20 + # Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] 21 + # gem "bcrypt", "~> 3.1.7" 22 + 23 + # Windows does not include zoneinfo files, so bundle the tzinfo-data gem 24 + gem "tzinfo-data", platforms: %i[ windows jruby ] 25 + 26 + # Use the database-backed adapters for Rails.cache, Active Job, and Action Cable 27 + gem "solid_cache" 28 + gem "solid_queue" 29 + gem "solid_cable" 30 + 31 + # Reduces boot times through caching; required in config/boot.rb 32 + gem "bootsnap", require: false 33 + 34 + # Deploy this application anywhere as a Docker container [https://kamal-deploy.org] 35 + gem "kamal", require: false 36 + 37 + # Add HTTP asset caching/compression and X-Sendfile acceleration to Puma [https://github.com/basecamp/thruster/] 38 + gem "thruster", require: false 39 + 40 + # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] 41 + gem "image_processing", "~> 1.2" 42 + 43 + group :development, :test do 44 + # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem 45 + gem "debug", platforms: %i[ mri windows ], require: "debug/prelude" 46 + 47 + # Audits gems for known security defects (use config/bundler-audit.yml to ignore issues) 48 + gem "bundler-audit", require: false 49 + 50 + # Static analysis for security vulnerabilities [https://brakemanscanner.org/] 51 + gem "brakeman", require: false 52 + 53 + # Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/] 54 + gem "rubocop-rails-omakase", require: false 55 + end 56 + 57 + group :development do 58 + # Use console on exceptions pages [https://github.com/rails/web-console] 59 + gem "web-console" 60 + end 61 + 62 + group :test do 63 + # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing] 64 + gem "capybara" 65 + gem "selenium-webdriver" 66 + end
+410
Gemfile.lock
··· 1 + GEM 2 + remote: https://rubygems.org/ 3 + specs: 4 + action_text-trix (2.1.15) 5 + railties 6 + actioncable (8.1.1) 7 + actionpack (= 8.1.1) 8 + activesupport (= 8.1.1) 9 + nio4r (~> 2.0) 10 + websocket-driver (>= 0.6.1) 11 + zeitwerk (~> 2.6) 12 + actionmailbox (8.1.1) 13 + actionpack (= 8.1.1) 14 + activejob (= 8.1.1) 15 + activerecord (= 8.1.1) 16 + activestorage (= 8.1.1) 17 + activesupport (= 8.1.1) 18 + mail (>= 2.8.0) 19 + actionmailer (8.1.1) 20 + actionpack (= 8.1.1) 21 + actionview (= 8.1.1) 22 + activejob (= 8.1.1) 23 + activesupport (= 8.1.1) 24 + mail (>= 2.8.0) 25 + rails-dom-testing (~> 2.2) 26 + actionpack (8.1.1) 27 + actionview (= 8.1.1) 28 + activesupport (= 8.1.1) 29 + nokogiri (>= 1.8.5) 30 + rack (>= 2.2.4) 31 + rack-session (>= 1.0.1) 32 + rack-test (>= 0.6.3) 33 + rails-dom-testing (~> 2.2) 34 + rails-html-sanitizer (~> 1.6) 35 + useragent (~> 0.16) 36 + actiontext (8.1.1) 37 + action_text-trix (~> 2.1.15) 38 + actionpack (= 8.1.1) 39 + activerecord (= 8.1.1) 40 + activestorage (= 8.1.1) 41 + activesupport (= 8.1.1) 42 + globalid (>= 0.6.0) 43 + nokogiri (>= 1.8.5) 44 + actionview (8.1.1) 45 + activesupport (= 8.1.1) 46 + builder (~> 3.1) 47 + erubi (~> 1.11) 48 + rails-dom-testing (~> 2.2) 49 + rails-html-sanitizer (~> 1.6) 50 + activejob (8.1.1) 51 + activesupport (= 8.1.1) 52 + globalid (>= 0.3.6) 53 + activemodel (8.1.1) 54 + activesupport (= 8.1.1) 55 + activerecord (8.1.1) 56 + activemodel (= 8.1.1) 57 + activesupport (= 8.1.1) 58 + timeout (>= 0.4.0) 59 + activestorage (8.1.1) 60 + actionpack (= 8.1.1) 61 + activejob (= 8.1.1) 62 + activerecord (= 8.1.1) 63 + activesupport (= 8.1.1) 64 + marcel (~> 1.0) 65 + activesupport (8.1.1) 66 + base64 67 + bigdecimal 68 + concurrent-ruby (~> 1.0, >= 1.3.1) 69 + connection_pool (>= 2.2.5) 70 + drb 71 + i18n (>= 1.6, < 2) 72 + json 73 + logger (>= 1.4.2) 74 + minitest (>= 5.1) 75 + securerandom (>= 0.3) 76 + tzinfo (~> 2.0, >= 2.0.5) 77 + uri (>= 0.13.1) 78 + addressable (2.8.8) 79 + public_suffix (>= 2.0.2, < 8.0) 80 + ast (2.4.3) 81 + base64 (0.3.0) 82 + bcrypt_pbkdf (1.1.2) 83 + bigdecimal (4.0.1) 84 + bindex (0.8.1) 85 + bootsnap (1.19.0) 86 + msgpack (~> 1.2) 87 + brakeman (7.1.1) 88 + racc 89 + builder (3.3.0) 90 + bundler-audit (0.9.3) 91 + bundler (>= 1.2.0) 92 + thor (~> 1.0) 93 + capybara (3.40.0) 94 + addressable 95 + matrix 96 + mini_mime (>= 0.1.3) 97 + nokogiri (~> 1.11) 98 + rack (>= 1.6.0) 99 + rack-test (>= 0.6.3) 100 + regexp_parser (>= 1.5, < 3.0) 101 + xpath (~> 3.2) 102 + concurrent-ruby (1.3.6) 103 + connection_pool (3.0.2) 104 + crass (1.0.6) 105 + date (3.5.1) 106 + debug (1.11.1) 107 + irb (~> 1.10) 108 + reline (>= 0.3.8) 109 + dotenv (3.2.0) 110 + drb (2.2.3) 111 + ed25519 (1.4.0) 112 + erb (6.0.1) 113 + erubi (1.13.1) 114 + et-orbi (1.4.0) 115 + tzinfo 116 + ffi (1.17.2-aarch64-linux-gnu) 117 + ffi (1.17.2-aarch64-linux-musl) 118 + ffi (1.17.2-arm-linux-gnu) 119 + ffi (1.17.2-arm-linux-musl) 120 + ffi (1.17.2-x86_64-linux-gnu) 121 + ffi (1.17.2-x86_64-linux-musl) 122 + fugit (1.12.1) 123 + et-orbi (~> 1.4) 124 + raabro (~> 1.4) 125 + globalid (1.3.0) 126 + activesupport (>= 6.1) 127 + i18n (1.14.8) 128 + concurrent-ruby (~> 1.0) 129 + image_processing (1.14.0) 130 + mini_magick (>= 4.9.5, < 6) 131 + ruby-vips (>= 2.0.17, < 3) 132 + importmap-rails (2.2.2) 133 + actionpack (>= 6.0.0) 134 + activesupport (>= 6.0.0) 135 + railties (>= 6.0.0) 136 + io-console (0.8.2) 137 + irb (1.16.0) 138 + pp (>= 0.6.0) 139 + rdoc (>= 4.0.0) 140 + reline (>= 0.4.2) 141 + jbuilder (2.14.1) 142 + actionview (>= 7.0.0) 143 + activesupport (>= 7.0.0) 144 + json (2.18.0) 145 + kamal (2.10.1) 146 + activesupport (>= 7.0) 147 + base64 (~> 0.2) 148 + bcrypt_pbkdf (~> 1.0) 149 + concurrent-ruby (~> 1.2) 150 + dotenv (~> 3.1) 151 + ed25519 (~> 1.4) 152 + net-ssh (~> 7.3) 153 + sshkit (>= 1.23.0, < 2.0) 154 + thor (~> 1.3) 155 + zeitwerk (>= 2.6.18, < 3.0) 156 + language_server-protocol (3.17.0.5) 157 + lint_roller (1.1.0) 158 + logger (1.7.0) 159 + loofah (2.25.0) 160 + crass (~> 1.0.2) 161 + nokogiri (>= 1.12.0) 162 + mail (2.9.0) 163 + logger 164 + mini_mime (>= 0.1.1) 165 + net-imap 166 + net-pop 167 + net-smtp 168 + marcel (1.1.0) 169 + matrix (0.4.3) 170 + mini_magick (5.3.1) 171 + logger 172 + mini_mime (1.1.5) 173 + minitest (6.0.0) 174 + prism (~> 1.5) 175 + msgpack (1.8.0) 176 + net-imap (0.6.2) 177 + date 178 + net-protocol 179 + net-pop (0.1.2) 180 + net-protocol 181 + net-protocol (0.2.2) 182 + timeout 183 + net-scp (4.1.0) 184 + net-ssh (>= 2.6.5, < 8.0.0) 185 + net-sftp (4.0.0) 186 + net-ssh (>= 5.0.0, < 8.0.0) 187 + net-smtp (0.5.1) 188 + net-protocol 189 + net-ssh (7.3.0) 190 + nio4r (2.7.5) 191 + nokogiri (1.18.10-aarch64-linux-gnu) 192 + racc (~> 1.4) 193 + nokogiri (1.18.10-aarch64-linux-musl) 194 + racc (~> 1.4) 195 + nokogiri (1.18.10-arm-linux-gnu) 196 + racc (~> 1.4) 197 + nokogiri (1.18.10-arm-linux-musl) 198 + racc (~> 1.4) 199 + nokogiri (1.18.10-x86_64-linux-gnu) 200 + racc (~> 1.4) 201 + nokogiri (1.18.10-x86_64-linux-musl) 202 + racc (~> 1.4) 203 + ostruct (0.6.3) 204 + parallel (1.27.0) 205 + parser (3.3.10.0) 206 + ast (~> 2.4.1) 207 + racc 208 + pp (0.6.3) 209 + prettyprint 210 + prettyprint (0.2.0) 211 + prism (1.7.0) 212 + propshaft (1.3.1) 213 + actionpack (>= 7.0.0) 214 + activesupport (>= 7.0.0) 215 + rack 216 + psych (5.3.1) 217 + date 218 + stringio 219 + public_suffix (7.0.0) 220 + puma (7.1.0) 221 + nio4r (~> 2.0) 222 + raabro (1.4.0) 223 + racc (1.8.1) 224 + rack (3.2.4) 225 + rack-session (2.1.1) 226 + base64 (>= 0.1.0) 227 + rack (>= 3.0.0) 228 + rack-test (2.2.0) 229 + rack (>= 1.3) 230 + rackup (2.3.1) 231 + rack (>= 3) 232 + rails (8.1.1) 233 + actioncable (= 8.1.1) 234 + actionmailbox (= 8.1.1) 235 + actionmailer (= 8.1.1) 236 + actionpack (= 8.1.1) 237 + actiontext (= 8.1.1) 238 + actionview (= 8.1.1) 239 + activejob (= 8.1.1) 240 + activemodel (= 8.1.1) 241 + activerecord (= 8.1.1) 242 + activestorage (= 8.1.1) 243 + activesupport (= 8.1.1) 244 + bundler (>= 1.15.0) 245 + railties (= 8.1.1) 246 + rails-dom-testing (2.3.0) 247 + activesupport (>= 5.0.0) 248 + minitest 249 + nokogiri (>= 1.6) 250 + rails-html-sanitizer (1.6.2) 251 + loofah (~> 2.21) 252 + nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) 253 + railties (8.1.1) 254 + actionpack (= 8.1.1) 255 + activesupport (= 8.1.1) 256 + irb (~> 1.13) 257 + rackup (>= 1.0.0) 258 + rake (>= 12.2) 259 + thor (~> 1.0, >= 1.2.2) 260 + tsort (>= 0.2) 261 + zeitwerk (~> 2.6) 262 + rainbow (3.1.1) 263 + rake (13.3.1) 264 + rdoc (7.0.2) 265 + erb 266 + psych (>= 4.0.0) 267 + tsort 268 + regexp_parser (2.11.3) 269 + reline (0.6.3) 270 + io-console (~> 0.5) 271 + rexml (3.4.4) 272 + rubocop (1.82.0) 273 + json (~> 2.3) 274 + language_server-protocol (~> 3.17.0.2) 275 + lint_roller (~> 1.1.0) 276 + parallel (~> 1.10) 277 + parser (>= 3.3.0.2) 278 + rainbow (>= 2.2.2, < 4.0) 279 + regexp_parser (>= 2.9.3, < 3.0) 280 + rubocop-ast (>= 1.48.0, < 2.0) 281 + ruby-progressbar (~> 1.7) 282 + unicode-display_width (>= 2.4.0, < 4.0) 283 + rubocop-ast (1.48.0) 284 + parser (>= 3.3.7.2) 285 + prism (~> 1.4) 286 + rubocop-performance (1.26.1) 287 + lint_roller (~> 1.1) 288 + rubocop (>= 1.75.0, < 2.0) 289 + rubocop-ast (>= 1.47.1, < 2.0) 290 + rubocop-rails (2.34.2) 291 + activesupport (>= 4.2.0) 292 + lint_roller (~> 1.1) 293 + rack (>= 1.1) 294 + rubocop (>= 1.75.0, < 2.0) 295 + rubocop-ast (>= 1.44.0, < 2.0) 296 + rubocop-rails-omakase (1.1.0) 297 + rubocop (>= 1.72) 298 + rubocop-performance (>= 1.24) 299 + rubocop-rails (>= 2.30) 300 + ruby-progressbar (1.13.0) 301 + ruby-vips (2.3.0) 302 + ffi (~> 1.12) 303 + logger 304 + rubyzip (3.2.2) 305 + securerandom (0.4.1) 306 + selenium-webdriver (4.39.0) 307 + base64 (~> 0.2) 308 + logger (~> 1.4) 309 + rexml (~> 3.2, >= 3.2.5) 310 + rubyzip (>= 1.2.2, < 4.0) 311 + websocket (~> 1.0) 312 + solid_cable (3.0.12) 313 + actioncable (>= 7.2) 314 + activejob (>= 7.2) 315 + activerecord (>= 7.2) 316 + railties (>= 7.2) 317 + solid_cache (1.0.10) 318 + activejob (>= 7.2) 319 + activerecord (>= 7.2) 320 + railties (>= 7.2) 321 + solid_queue (1.2.4) 322 + activejob (>= 7.1) 323 + activerecord (>= 7.1) 324 + concurrent-ruby (>= 1.3.1) 325 + fugit (~> 1.11) 326 + railties (>= 7.1) 327 + thor (>= 1.3.1) 328 + sqlite3 (2.8.1-aarch64-linux-gnu) 329 + sqlite3 (2.8.1-aarch64-linux-musl) 330 + sqlite3 (2.8.1-arm-linux-gnu) 331 + sqlite3 (2.8.1-arm-linux-musl) 332 + sqlite3 (2.8.1-x86_64-linux-gnu) 333 + sqlite3 (2.8.1-x86_64-linux-musl) 334 + sshkit (1.25.0) 335 + base64 336 + logger 337 + net-scp (>= 1.1.2) 338 + net-sftp (>= 2.1.2) 339 + net-ssh (>= 2.8.0) 340 + ostruct 341 + stimulus-rails (1.3.4) 342 + railties (>= 6.0.0) 343 + stringio (3.2.0) 344 + thor (1.4.0) 345 + thruster (0.1.17) 346 + thruster (0.1.17-aarch64-linux) 347 + thruster (0.1.17-x86_64-linux) 348 + timeout (0.6.0) 349 + tsort (0.2.0) 350 + turbo-rails (2.0.20) 351 + actionpack (>= 7.1.0) 352 + railties (>= 7.1.0) 353 + tzinfo (2.0.6) 354 + concurrent-ruby (~> 1.0) 355 + unicode-display_width (3.2.0) 356 + unicode-emoji (~> 4.1) 357 + unicode-emoji (4.2.0) 358 + uri (1.1.1) 359 + useragent (0.16.11) 360 + web-console (4.2.1) 361 + actionview (>= 6.0.0) 362 + activemodel (>= 6.0.0) 363 + bindex (>= 0.4.0) 364 + railties (>= 6.0.0) 365 + websocket (1.2.11) 366 + websocket-driver (0.8.0) 367 + base64 368 + websocket-extensions (>= 0.1.0) 369 + websocket-extensions (0.1.5) 370 + xpath (3.2.0) 371 + nokogiri (~> 1.8) 372 + zeitwerk (2.7.4) 373 + 374 + PLATFORMS 375 + aarch64-linux 376 + aarch64-linux-gnu 377 + aarch64-linux-musl 378 + arm-linux-gnu 379 + arm-linux-musl 380 + x86_64-linux 381 + x86_64-linux-gnu 382 + x86_64-linux-musl 383 + 384 + DEPENDENCIES 385 + bootsnap 386 + brakeman 387 + bundler-audit 388 + capybara 389 + debug 390 + image_processing (~> 1.2) 391 + importmap-rails 392 + jbuilder 393 + kamal 394 + propshaft 395 + puma (>= 5.0) 396 + rails (~> 8.1.1) 397 + rubocop-rails-omakase 398 + selenium-webdriver 399 + solid_cable 400 + solid_cache 401 + solid_queue 402 + sqlite3 (>= 2.1) 403 + stimulus-rails 404 + thruster 405 + turbo-rails 406 + tzinfo-data 407 + web-console 408 + 409 + BUNDLED WITH 410 + 2.6.9
+24
README.md
··· 1 + # README 2 + 3 + This README would normally document whatever steps are necessary to get the 4 + application up and running. 5 + 6 + Things you may want to cover: 7 + 8 + * Ruby version 9 + 10 + * System dependencies 11 + 12 + * Configuration 13 + 14 + * Database creation 15 + 16 + * Database initialization 17 + 18 + * How to run the test suite 19 + 20 + * Services (job queues, cache servers, search engines, etc.) 21 + 22 + * Deployment instructions 23 + 24 + * ...
+6
Rakefile
··· 1 + # Add your own tasks in files placed in lib/tasks ending in .rake, 2 + # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 + 4 + require_relative "config/application" 5 + 6 + Rails.application.load_tasks
app/assets/images/.keep

This is a binary file and will not be displayed.

+10
app/assets/stylesheets/application.css
··· 1 + /* 2 + * This is a manifest file that'll be compiled into application.css. 3 + * 4 + * With Propshaft, assets are served efficiently without preprocessing steps. You can still include 5 + * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard 6 + * cascading order, meaning styles declared later in the document or manifest will override earlier ones, 7 + * depending on specificity. 8 + * 9 + * Consider organizing styles into separate files for maintainability. 10 + */
+7
app/controllers/application_controller.rb
··· 1 + class ApplicationController < ActionController::Base 2 + # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. 3 + allow_browser versions: :modern 4 + 5 + # Changes to the importmap will invalidate the etag for HTML responses 6 + stale_when_importmap_changes 7 + end
app/controllers/concerns/.keep

This is a binary file and will not be displayed.

+2
app/helpers/application_helper.rb
··· 1 + module ApplicationHelper 2 + end
+3
app/javascript/application.js
··· 1 + // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails 2 + import "@hotwired/turbo-rails" 3 + import "controllers"
+9
app/javascript/controllers/application.js
··· 1 + import { Application } from "@hotwired/stimulus" 2 + 3 + const application = Application.start() 4 + 5 + // Configure Stimulus development experience 6 + application.debug = false 7 + window.Stimulus = application 8 + 9 + export { application }
+7
app/javascript/controllers/hello_controller.js
··· 1 + import { Controller } from "@hotwired/stimulus" 2 + 3 + export default class extends Controller { 4 + connect() { 5 + this.element.textContent = "Hello World!" 6 + } 7 + }
+4
app/javascript/controllers/index.js
··· 1 + // Import and register all your controllers from the importmap via controllers/**/*_controller 2 + import { application } from "controllers/application" 3 + import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading" 4 + eagerLoadControllersFrom("controllers", application)
+7
app/jobs/application_job.rb
··· 1 + class ApplicationJob < ActiveJob::Base 2 + # Automatically retry jobs that encountered a deadlock 3 + # retry_on ActiveRecord::Deadlocked 4 + 5 + # Most jobs are safe to ignore if the underlying records are no longer available 6 + # discard_on ActiveJob::DeserializationError 7 + end
+4
app/mailers/application_mailer.rb
··· 1 + class ApplicationMailer < ActionMailer::Base 2 + default from: "from@example.com" 3 + layout "mailer" 4 + end
+3
app/models/application_record.rb
··· 1 + class ApplicationRecord < ActiveRecord::Base 2 + primary_abstract_class 3 + end
app/models/concerns/.keep

This is a binary file and will not be displayed.

+29
app/views/layouts/application.html.erb
··· 1 + <!DOCTYPE html> 2 + <html> 3 + <head> 4 + <title><%= content_for(:title) || "Practice" %></title> 5 + <meta name="viewport" content="width=device-width,initial-scale=1"> 6 + <meta name="apple-mobile-web-app-capable" content="yes"> 7 + <meta name="application-name" content="Practice"> 8 + <meta name="mobile-web-app-capable" content="yes"> 9 + <%= csrf_meta_tags %> 10 + <%= csp_meta_tag %> 11 + 12 + <%= yield :head %> 13 + 14 + <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> 15 + <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> 16 + 17 + <link rel="icon" href="/icon.png" type="image/png"> 18 + <link rel="icon" href="/icon.svg" type="image/svg+xml"> 19 + <link rel="apple-touch-icon" href="/icon.png"> 20 + 21 + <%# Includes all stylesheet files in app/assets/stylesheets %> 22 + <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %> 23 + <%= javascript_importmap_tags %> 24 + </head> 25 + 26 + <body> 27 + <%= yield %> 28 + </body> 29 + </html>
+13
app/views/layouts/mailer.html.erb
··· 1 + <!DOCTYPE html> 2 + <html> 3 + <head> 4 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 + <style> 6 + /* Email styles need to be inline */ 7 + </style> 8 + </head> 9 + 10 + <body> 11 + <%= yield %> 12 + </body> 13 + </html>
+1
app/views/layouts/mailer.text.erb
··· 1 + <%= yield %>
+22
app/views/pwa/manifest.json.erb
··· 1 + { 2 + "name": "Practice", 3 + "icons": [ 4 + { 5 + "src": "/icon.png", 6 + "type": "image/png", 7 + "sizes": "512x512" 8 + }, 9 + { 10 + "src": "/icon.png", 11 + "type": "image/png", 12 + "sizes": "512x512", 13 + "purpose": "maskable" 14 + } 15 + ], 16 + "start_url": "/", 17 + "display": "standalone", 18 + "scope": "/", 19 + "description": "Practice.", 20 + "theme_color": "red", 21 + "background_color": "red" 22 + }
+26
app/views/pwa/service-worker.js
··· 1 + // Add a service worker for processing Web Push notifications: 2 + // 3 + // self.addEventListener("push", async (event) => { 4 + // const { title, options } = await event.data.json() 5 + // event.waitUntil(self.registration.showNotification(title, options)) 6 + // }) 7 + // 8 + // self.addEventListener("notificationclick", function(event) { 9 + // event.notification.close() 10 + // event.waitUntil( 11 + // clients.matchAll({ type: "window" }).then((clientList) => { 12 + // for (let i = 0; i < clientList.length; i++) { 13 + // let client = clientList[i] 14 + // let clientPath = (new URL(client.url)).pathname 15 + // 16 + // if (clientPath == event.notification.data.path && "focus" in client) { 17 + // return client.focus() 18 + // } 19 + // } 20 + // 21 + // if (clients.openWindow) { 22 + // return clients.openWindow(event.notification.data.path) 23 + // } 24 + // }) 25 + // ) 26 + // })
+7
bin/brakeman
··· 1 + #!/usr/bin/env ruby 2 + require "rubygems" 3 + require "bundler/setup" 4 + 5 + ARGV.unshift("--ensure-latest") 6 + 7 + load Gem.bin_path("brakeman", "brakeman")
+6
bin/bundler-audit
··· 1 + #!/usr/bin/env ruby 2 + require_relative "../config/boot" 3 + require "bundler/audit/cli" 4 + 5 + ARGV.concat %w[ --config config/bundler-audit.yml ] if ARGV.empty? || ARGV.include?("check") 6 + Bundler::Audit::CLI.start
+6
bin/ci
··· 1 + #!/usr/bin/env ruby 2 + require_relative "../config/boot" 3 + require "active_support/continuous_integration" 4 + 5 + CI = ActiveSupport::ContinuousIntegration 6 + require_relative "../config/ci.rb"
+2
bin/dev
··· 1 + #!/usr/bin/env ruby 2 + exec "./bin/rails", "server", *ARGV
+8
bin/docker-entrypoint
··· 1 + #!/bin/bash -e 2 + 3 + # If running the rails server then create or migrate existing database 4 + if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then 5 + ./bin/rails db:prepare 6 + fi 7 + 8 + exec "${@}"
+4
bin/importmap
··· 1 + #!/usr/bin/env ruby 2 + 3 + require_relative "../config/application" 4 + require "importmap/commands"
+6
bin/jobs
··· 1 + #!/usr/bin/env ruby 2 + 3 + require_relative "../config/environment" 4 + require "solid_queue/cli" 5 + 6 + SolidQueue::Cli.start(ARGV)
+27
bin/kamal
··· 1 + #!/usr/bin/env ruby 2 + # frozen_string_literal: true 3 + 4 + # 5 + # This file was generated by Bundler. 6 + # 7 + # The application 'kamal' is installed as part of a gem, and 8 + # this file is here to facilitate running it. 9 + # 10 + 11 + ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) 12 + 13 + bundle_binstub = File.expand_path("bundle", __dir__) 14 + 15 + if File.file?(bundle_binstub) 16 + if File.read(bundle_binstub, 300).include?("This file was generated by Bundler") 17 + load(bundle_binstub) 18 + else 19 + abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. 20 + Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") 21 + end 22 + end 23 + 24 + require "rubygems" 25 + require "bundler/setup" 26 + 27 + load Gem.bin_path("kamal", "kamal")
+4
bin/rails
··· 1 + #!/usr/bin/env ruby 2 + APP_PATH = File.expand_path("../config/application", __dir__) 3 + require_relative "../config/boot" 4 + require "rails/commands"
+4
bin/rake
··· 1 + #!/usr/bin/env ruby 2 + require_relative "../config/boot" 3 + require "rake" 4 + Rake.application.run
+8
bin/rubocop
··· 1 + #!/usr/bin/env ruby 2 + require "rubygems" 3 + require "bundler/setup" 4 + 5 + # Explicit RuboCop config increases performance slightly while avoiding config confusion. 6 + ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__)) 7 + 8 + load Gem.bin_path("rubocop", "rubocop")
+35
bin/setup
··· 1 + #!/usr/bin/env ruby 2 + require "fileutils" 3 + 4 + APP_ROOT = File.expand_path("..", __dir__) 5 + 6 + def system!(*args) 7 + system(*args, exception: true) 8 + end 9 + 10 + FileUtils.chdir APP_ROOT do 11 + # This script is a way to set up or update your development environment automatically. 12 + # This script is idempotent, so that you can run it at any time and get an expectable outcome. 13 + # Add necessary setup steps to this file. 14 + 15 + puts "== Installing dependencies ==" 16 + system("bundle check") || system!("bundle install") 17 + 18 + # puts "\n== Copying sample files ==" 19 + # unless File.exist?("config/database.yml") 20 + # FileUtils.cp "config/database.yml.sample", "config/database.yml" 21 + # end 22 + 23 + puts "\n== Preparing database ==" 24 + system! "bin/rails db:prepare" 25 + system! "bin/rails db:reset" if ARGV.include?("--reset") 26 + 27 + puts "\n== Removing old logs and tempfiles ==" 28 + system! "bin/rails log:clear tmp:clear" 29 + 30 + unless ARGV.include?("--skip-server") 31 + puts "\n== Starting development server ==" 32 + STDOUT.flush # flush the output before exec(2) so that it displays 33 + exec "bin/dev" 34 + end 35 + end
+5
bin/thrust
··· 1 + #!/usr/bin/env ruby 2 + require "rubygems" 3 + require "bundler/setup" 4 + 5 + load Gem.bin_path("thruster", "thrust")
+6
config.ru
··· 1 + # This file is used by Rack-based servers to start the application. 2 + 3 + require_relative "config/environment" 4 + 5 + run Rails.application 6 + Rails.application.load_server
+27
config/application.rb
··· 1 + require_relative "boot" 2 + 3 + require "rails/all" 4 + 5 + # Require the gems listed in Gemfile, including any gems 6 + # you've limited to :test, :development, or :production. 7 + Bundler.require(*Rails.groups) 8 + 9 + module Practice 10 + class Application < Rails::Application 11 + # Initialize configuration defaults for originally generated Rails version. 12 + config.load_defaults 8.1 13 + 14 + # Please, add to the `ignore` list any other `lib` subdirectories that do 15 + # not contain `.rb` files, or that should not be reloaded or eager loaded. 16 + # Common ones are `templates`, `generators`, or `middleware`, for example. 17 + config.autoload_lib(ignore: %w[assets tasks]) 18 + 19 + # Configuration for the application, engines, and railties goes here. 20 + # 21 + # These settings can be overridden in specific environments using the files 22 + # in config/environments, which are processed later. 23 + # 24 + # config.time_zone = "Central Time (US & Canada)" 25 + # config.eager_load_paths << Rails.root.join("extras") 26 + end 27 + end
+4
config/boot.rb
··· 1 + ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) 2 + 3 + require "bundler/setup" # Set up gems listed in the Gemfile. 4 + require "bootsnap/setup" # Speed up boot time by caching expensive operations.
+5
config/bundler-audit.yml
··· 1 + # Audit all gems listed in the Gemfile for known security problems by running bin/bundler-audit. 2 + # CVEs that are not relevant to the application can be enumerated on the ignore list below. 3 + 4 + ignore: 5 + - CVE-THAT-DOES-NOT-APPLY
+17
config/cable.yml
··· 1 + # Async adapter only works within the same process, so for manually triggering cable updates from a console, 2 + # and seeing results in the browser, you must do so from the web console (running inside the dev process), 3 + # not a terminal started via bin/rails console! Add "console" to any action or any ERB template view 4 + # to make the web console appear. 5 + development: 6 + adapter: async 7 + 8 + test: 9 + adapter: test 10 + 11 + production: 12 + adapter: solid_cable 13 + connects_to: 14 + database: 15 + writing: cable 16 + polling_interval: 0.1.seconds 17 + message_retention: 1.day
+16
config/cache.yml
··· 1 + default: &default 2 + store_options: 3 + # Cap age of oldest cache entry to fulfill retention policies 4 + # max_age: <%= 60.days.to_i %> 5 + max_size: <%= 256.megabytes %> 6 + namespace: <%= Rails.env %> 7 + 8 + development: 9 + <<: *default 10 + 11 + test: 12 + <<: *default 13 + 14 + production: 15 + database: cache 16 + <<: *default
+23
config/ci.rb
··· 1 + # Run using bin/ci 2 + 3 + CI.run do 4 + step "Setup", "bin/setup --skip-server" 5 + 6 + step "Style: Ruby", "bin/rubocop" 7 + 8 + step "Security: Gem audit", "bin/bundler-audit" 9 + step "Security: Importmap vulnerability audit", "bin/importmap audit" 10 + step "Security: Brakeman code analysis", "bin/brakeman --quiet --no-pager --exit-on-warn --exit-on-error" 11 + 12 + step "Tests: Rails", "bin/rails test" 13 + step "Tests: System", "bin/rails test:system" 14 + step "Tests: Seeds", "env RAILS_ENV=test bin/rails db:seed:replant" 15 + 16 + # Optional: set a green GitHub commit status to unblock PR merge. 17 + # Requires the `gh` CLI and `gh extension install basecamp/gh-signoff`. 18 + # if success? 19 + # step "Signoff: All systems go. Ready for merge and deploy.", "gh signoff" 20 + # else 21 + # failure "Signoff: CI failed. Do not merge or deploy.", "Fix the issues and try again." 22 + # end 23 + end
+1
config/credentials.yml.enc
··· 1 + 7NhOPN6Nc5VXgH60gQbZbj2OGZq2zF0zkQDNXunaITWSlgRGSyIOGk0A0IkERy98ZxhMUXYYjj0v80oUgaI9BAG5BvZqrekQ3wfpqA3GWdvX5RCgzKk8wj2rAtAnvVN8jqyrA0M+VX0G6MZ9ET/HSIBy7RhwzjKduBE7HL3TziesKI7vaRqhXOXn5Pcv8Fe1yoFNd2Bz5UK1z8LSLECCz9G6TeassG7kiY47N4oXuH4TOSr8h+DOu3NMyGyEwjWLBKb8eZwp2GCJGBdtC4Q2YG181ye/CET+6Gui3vDopsT97dfwD7/RhBFC1b9WVg/QHIG5LyAIF7jb4AKKQXMzVR0iEy89l9PDB7t21cUtKdR09TliVWfThHocC6X+tauAS5gdJE4QS0oBqbm8HxyN559VYLtmzT+DuxSSr+pIvXyyD6AlMHR3gyeVGL/Wi7CanP1bEcNdT7weczANm1OKIPlIbAvdFIl99HYYNSkjru5mBeg2aJ9DyTTm--57P/9Rbr4W1eJ0PN--wZQCMz5da2UohvH7/ff/jw==
+41
config/database.yml
··· 1 + # SQLite. Versions 3.8.0 and up are supported. 2 + # gem install sqlite3 3 + # 4 + # Ensure the SQLite 3 gem is defined in your Gemfile 5 + # gem "sqlite3" 6 + # 7 + default: &default 8 + adapter: sqlite3 9 + max_connections: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> 10 + timeout: 5000 11 + 12 + development: 13 + <<: *default 14 + database: storage/development.sqlite3 15 + 16 + # Warning: The database defined as "test" will be erased and 17 + # re-generated from your development database when you run "rake". 18 + # Do not set this db to the same as development or production. 19 + test: 20 + <<: *default 21 + database: storage/test.sqlite3 22 + 23 + 24 + # Store production database in the storage/ directory, which by default 25 + # is mounted as a persistent Docker volume in config/deploy.yml. 26 + production: 27 + primary: 28 + <<: *default 29 + database: storage/production.sqlite3 30 + cache: 31 + <<: *default 32 + database: storage/production_cache.sqlite3 33 + migrations_paths: db/cache_migrate 34 + queue: 35 + <<: *default 36 + database: storage/production_queue.sqlite3 37 + migrations_paths: db/queue_migrate 38 + cable: 39 + <<: *default 40 + database: storage/production_cable.sqlite3 41 + migrations_paths: db/cable_migrate
+120
config/deploy.yml
··· 1 + # Name of your application. Used to uniquely configure containers. 2 + service: practice 3 + 4 + # Name of the container image (use your-user/app-name on external registries). 5 + image: practice 6 + 7 + # Deploy to these servers. 8 + servers: 9 + web: 10 + - 192.168.0.1 11 + # job: 12 + # hosts: 13 + # - 192.168.0.1 14 + # cmd: bin/jobs 15 + 16 + # Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server. 17 + # If used with Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption. 18 + # 19 + # Using an SSL proxy like this requires turning on config.assume_ssl and config.force_ssl in production.rb! 20 + # 21 + # Don't use this when deploying to multiple web servers (then you have to terminate SSL at your load balancer). 22 + # 23 + # proxy: 24 + # ssl: true 25 + # host: app.example.com 26 + 27 + # Where you keep your container images. 28 + registry: 29 + # Alternatives: hub.docker.com / registry.digitalocean.com / ghcr.io / ... 30 + server: localhost:5555 31 + 32 + # Needed for authenticated registries. 33 + # username: your-user 34 + 35 + # Always use an access token rather than real password when possible. 36 + # password: 37 + # - KAMAL_REGISTRY_PASSWORD 38 + 39 + # Inject ENV variables into containers (secrets come from .kamal/secrets). 40 + env: 41 + secret: 42 + - RAILS_MASTER_KEY 43 + clear: 44 + # Run the Solid Queue Supervisor inside the web server's Puma process to do jobs. 45 + # When you start using multiple servers, you should split out job processing to a dedicated machine. 46 + SOLID_QUEUE_IN_PUMA: true 47 + 48 + # Set number of processes dedicated to Solid Queue (default: 1) 49 + # JOB_CONCURRENCY: 3 50 + 51 + # Set number of cores available to the application on each server (default: 1). 52 + # WEB_CONCURRENCY: 2 53 + 54 + # Match this to any external database server to configure Active Record correctly 55 + # Use practice-db for a db accessory server on same machine via local kamal docker network. 56 + # DB_HOST: 192.168.0.2 57 + 58 + # Log everything from Rails 59 + # RAILS_LOG_LEVEL: debug 60 + 61 + # Aliases are triggered with "bin/kamal <alias>". You can overwrite arguments on invocation: 62 + # "bin/kamal logs -r job" will tail logs from the first server in the job section. 63 + aliases: 64 + console: app exec --interactive --reuse "bin/rails console" 65 + shell: app exec --interactive --reuse "bash" 66 + logs: app logs -f 67 + dbc: app exec --interactive --reuse "bin/rails dbconsole --include-password" 68 + 69 + # Use a persistent storage volume for sqlite database files and local Active Storage files. 70 + # Recommended to change this to a mounted volume path that is backed up off server. 71 + volumes: 72 + - "practice_storage:/rails/storage" 73 + 74 + # Bridge fingerprinted assets, like JS and CSS, between versions to avoid 75 + # hitting 404 on in-flight requests. Combines all files from new and old 76 + # version inside the asset_path. 77 + asset_path: /rails/public/assets 78 + 79 + 80 + # Configure the image builder. 81 + builder: 82 + arch: amd64 83 + 84 + # # Build image via remote server (useful for faster amd64 builds on arm64 computers) 85 + # remote: ssh://docker@docker-builder-server 86 + # 87 + # # Pass arguments and secrets to the Docker build process 88 + # args: 89 + # RUBY_VERSION: ruby-3.4.8 90 + # secrets: 91 + # - GITHUB_TOKEN 92 + # - RAILS_MASTER_KEY 93 + 94 + # Use a different ssh user than root 95 + # ssh: 96 + # user: app 97 + 98 + # Use accessory services (secrets come from .kamal/secrets). 99 + # accessories: 100 + # db: 101 + # image: mysql:8.0 102 + # host: 192.168.0.2 103 + # # Change to 3306 to expose port to the world instead of just local network. 104 + # port: "127.0.0.1:3306:3306" 105 + # env: 106 + # clear: 107 + # MYSQL_ROOT_HOST: '%' 108 + # secret: 109 + # - MYSQL_ROOT_PASSWORD 110 + # files: 111 + # - config/mysql/production.cnf:/etc/mysql/my.cnf 112 + # - db/production.sql:/docker-entrypoint-initdb.d/setup.sql 113 + # directories: 114 + # - data:/var/lib/mysql 115 + # redis: 116 + # image: valkey/valkey:8 117 + # host: 192.168.0.2 118 + # port: 6379 119 + # directories: 120 + # - data:/data
+5
config/environment.rb
··· 1 + # Load the Rails application. 2 + require_relative "application" 3 + 4 + # Initialize the Rails application. 5 + Rails.application.initialize!
+78
config/environments/development.rb
··· 1 + require "active_support/core_ext/integer/time" 2 + 3 + Rails.application.configure do 4 + # Settings specified here will take precedence over those in config/application.rb. 5 + 6 + # Make code changes take effect immediately without server restart. 7 + config.enable_reloading = true 8 + 9 + # Do not eager load code on boot. 10 + config.eager_load = false 11 + 12 + # Show full error reports. 13 + config.consider_all_requests_local = true 14 + 15 + # Enable server timing. 16 + config.server_timing = true 17 + 18 + # Enable/disable Action Controller caching. By default Action Controller caching is disabled. 19 + # Run rails dev:cache to toggle Action Controller caching. 20 + if Rails.root.join("tmp/caching-dev.txt").exist? 21 + config.action_controller.perform_caching = true 22 + config.action_controller.enable_fragment_cache_logging = true 23 + config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" } 24 + else 25 + config.action_controller.perform_caching = false 26 + end 27 + 28 + # Change to :null_store to avoid any caching. 29 + config.cache_store = :memory_store 30 + 31 + # Store uploaded files on the local file system (see config/storage.yml for options). 32 + config.active_storage.service = :local 33 + 34 + # Don't care if the mailer can't send. 35 + config.action_mailer.raise_delivery_errors = false 36 + 37 + # Make template changes take effect immediately. 38 + config.action_mailer.perform_caching = false 39 + 40 + # Set localhost to be used by links generated in mailer templates. 41 + config.action_mailer.default_url_options = { host: "localhost", port: 3000 } 42 + 43 + # Print deprecation notices to the Rails logger. 44 + config.active_support.deprecation = :log 45 + 46 + # Raise an error on page load if there are pending migrations. 47 + config.active_record.migration_error = :page_load 48 + 49 + # Highlight code that triggered database queries in logs. 50 + config.active_record.verbose_query_logs = true 51 + 52 + # Append comments with runtime information tags to SQL queries in logs. 53 + config.active_record.query_log_tags_enabled = true 54 + 55 + # Highlight code that enqueued background job in logs. 56 + config.active_job.verbose_enqueue_logs = true 57 + 58 + # Highlight code that triggered redirect in logs. 59 + config.action_dispatch.verbose_redirect_logs = true 60 + 61 + # Suppress logger output for asset requests. 62 + config.assets.quiet = true 63 + 64 + # Raises error for missing translations. 65 + # config.i18n.raise_on_missing_translations = true 66 + 67 + # Annotate rendered view with file names. 68 + config.action_view.annotate_rendered_view_with_filenames = true 69 + 70 + # Uncomment if you wish to allow Action Cable access from any origin. 71 + # config.action_cable.disable_request_forgery_protection = true 72 + 73 + # Raise error when a before_action's only/except options reference missing actions. 74 + config.action_controller.raise_on_missing_callback_actions = true 75 + 76 + # Apply autocorrection by RuboCop to files generated by `bin/rails generate`. 77 + # config.generators.apply_rubocop_autocorrect_after_generate! 78 + end
+90
config/environments/production.rb
··· 1 + require "active_support/core_ext/integer/time" 2 + 3 + Rails.application.configure do 4 + # Settings specified here will take precedence over those in config/application.rb. 5 + 6 + # Code is not reloaded between requests. 7 + config.enable_reloading = false 8 + 9 + # Eager load code on boot for better performance and memory savings (ignored by Rake tasks). 10 + config.eager_load = true 11 + 12 + # Full error reports are disabled. 13 + config.consider_all_requests_local = false 14 + 15 + # Turn on fragment caching in view templates. 16 + config.action_controller.perform_caching = true 17 + 18 + # Cache assets for far-future expiry since they are all digest stamped. 19 + config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" } 20 + 21 + # Enable serving of images, stylesheets, and JavaScripts from an asset server. 22 + # config.asset_host = "http://assets.example.com" 23 + 24 + # Store uploaded files on the local file system (see config/storage.yml for options). 25 + config.active_storage.service = :local 26 + 27 + # Assume all access to the app is happening through a SSL-terminating reverse proxy. 28 + # config.assume_ssl = true 29 + 30 + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. 31 + # config.force_ssl = true 32 + 33 + # Skip http-to-https redirect for the default health check endpoint. 34 + # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } } 35 + 36 + # Log to STDOUT with the current request id as a default log tag. 37 + config.log_tags = [ :request_id ] 38 + config.logger = ActiveSupport::TaggedLogging.logger(STDOUT) 39 + 40 + # Change to "debug" to log everything (including potentially personally-identifiable information!). 41 + config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info") 42 + 43 + # Prevent health checks from clogging up the logs. 44 + config.silence_healthcheck_path = "/up" 45 + 46 + # Don't log any deprecations. 47 + config.active_support.report_deprecations = false 48 + 49 + # Replace the default in-process memory cache store with a durable alternative. 50 + config.cache_store = :solid_cache_store 51 + 52 + # Replace the default in-process and non-durable queuing backend for Active Job. 53 + config.active_job.queue_adapter = :solid_queue 54 + config.solid_queue.connects_to = { database: { writing: :queue } } 55 + 56 + # Ignore bad email addresses and do not raise email delivery errors. 57 + # Set this to true and configure the email server for immediate delivery to raise delivery errors. 58 + # config.action_mailer.raise_delivery_errors = false 59 + 60 + # Set host to be used by links generated in mailer templates. 61 + config.action_mailer.default_url_options = { host: "example.com" } 62 + 63 + # Specify outgoing SMTP server. Remember to add smtp/* credentials via bin/rails credentials:edit. 64 + # config.action_mailer.smtp_settings = { 65 + # user_name: Rails.application.credentials.dig(:smtp, :user_name), 66 + # password: Rails.application.credentials.dig(:smtp, :password), 67 + # address: "smtp.example.com", 68 + # port: 587, 69 + # authentication: :plain 70 + # } 71 + 72 + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to 73 + # the I18n.default_locale when a translation cannot be found). 74 + config.i18n.fallbacks = true 75 + 76 + # Do not dump schema after migrations. 77 + config.active_record.dump_schema_after_migration = false 78 + 79 + # Only use :id for inspections in production. 80 + config.active_record.attributes_for_inspect = [ :id ] 81 + 82 + # Enable DNS rebinding protection and other `Host` header attacks. 83 + # config.hosts = [ 84 + # "example.com", # Allow requests from example.com 85 + # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com` 86 + # ] 87 + # 88 + # Skip DNS rebinding protection for the default health check endpoint. 89 + # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } 90 + end
+53
config/environments/test.rb
··· 1 + # The test environment is used exclusively to run your application's 2 + # test suite. You never need to work with it otherwise. Remember that 3 + # your test database is "scratch space" for the test suite and is wiped 4 + # and recreated between test runs. Don't rely on the data there! 5 + 6 + Rails.application.configure do 7 + # Settings specified here will take precedence over those in config/application.rb. 8 + 9 + # While tests run files are not watched, reloading is not necessary. 10 + config.enable_reloading = false 11 + 12 + # Eager loading loads your entire application. When running a single test locally, 13 + # this is usually not necessary, and can slow down your test suite. However, it's 14 + # recommended that you enable it in continuous integration systems to ensure eager 15 + # loading is working properly before deploying your code. 16 + config.eager_load = ENV["CI"].present? 17 + 18 + # Configure public file server for tests with cache-control for performance. 19 + config.public_file_server.headers = { "cache-control" => "public, max-age=3600" } 20 + 21 + # Show full error reports. 22 + config.consider_all_requests_local = true 23 + config.cache_store = :null_store 24 + 25 + # Render exception templates for rescuable exceptions and raise for other exceptions. 26 + config.action_dispatch.show_exceptions = :rescuable 27 + 28 + # Disable request forgery protection in test environment. 29 + config.action_controller.allow_forgery_protection = false 30 + 31 + # Store uploaded files on the local file system in a temporary directory. 32 + config.active_storage.service = :test 33 + 34 + # Tell Action Mailer not to deliver emails to the real world. 35 + # The :test delivery method accumulates sent emails in the 36 + # ActionMailer::Base.deliveries array. 37 + config.action_mailer.delivery_method = :test 38 + 39 + # Set host to be used by links generated in mailer templates. 40 + config.action_mailer.default_url_options = { host: "example.com" } 41 + 42 + # Print deprecation notices to the stderr. 43 + config.active_support.deprecation = :stderr 44 + 45 + # Raises error for missing translations. 46 + # config.i18n.raise_on_missing_translations = true 47 + 48 + # Annotate rendered view with file names. 49 + # config.action_view.annotate_rendered_view_with_filenames = true 50 + 51 + # Raise error when a before_action's only/except options reference missing actions. 52 + config.action_controller.raise_on_missing_callback_actions = true 53 + end
+7
config/importmap.rb
··· 1 + # Pin npm packages by running ./bin/importmap 2 + 3 + pin "application" 4 + pin "@hotwired/turbo-rails", to: "turbo.min.js" 5 + pin "@hotwired/stimulus", to: "stimulus.min.js" 6 + pin "@hotwired/stimulus-loading", to: "stimulus-loading.js" 7 + pin_all_from "app/javascript/controllers", under: "controllers"
+7
config/initializers/assets.rb
··· 1 + # Be sure to restart your server when you modify this file. 2 + 3 + # Version of your assets, change this if you want to expire all your assets. 4 + Rails.application.config.assets.version = "1.0" 5 + 6 + # Add additional assets to the asset load path. 7 + # Rails.application.config.assets.paths << Emoji.images_path
+29
config/initializers/content_security_policy.rb
··· 1 + # Be sure to restart your server when you modify this file. 2 + 3 + # Define an application-wide content security policy. 4 + # See the Securing Rails Applications Guide for more information: 5 + # https://guides.rubyonrails.org/security.html#content-security-policy-header 6 + 7 + # Rails.application.configure do 8 + # config.content_security_policy do |policy| 9 + # policy.default_src :self, :https 10 + # policy.font_src :self, :https, :data 11 + # policy.img_src :self, :https, :data 12 + # policy.object_src :none 13 + # policy.script_src :self, :https 14 + # policy.style_src :self, :https 15 + # # Specify URI for violation reports 16 + # # policy.report_uri "/csp-violation-report-endpoint" 17 + # end 18 + # 19 + # # Generate session nonces for permitted importmap, inline scripts, and inline styles. 20 + # config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s } 21 + # config.content_security_policy_nonce_directives = %w(script-src style-src) 22 + # 23 + # # Automatically add `nonce` to `javascript_tag`, `javascript_include_tag`, and `stylesheet_link_tag` 24 + # # if the corresponding directives are specified in `content_security_policy_nonce_directives`. 25 + # # config.content_security_policy_nonce_auto = true 26 + # 27 + # # Report violations without enforcing the policy. 28 + # # config.content_security_policy_report_only = true 29 + # end
+8
config/initializers/filter_parameter_logging.rb
··· 1 + # Be sure to restart your server when you modify this file. 2 + 3 + # Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file. 4 + # Use this to limit dissemination of sensitive information. 5 + # See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors. 6 + Rails.application.config.filter_parameters += [ 7 + :passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc 8 + ]
+16
config/initializers/inflections.rb
··· 1 + # Be sure to restart your server when you modify this file. 2 + 3 + # Add new inflection rules using the following format. Inflections 4 + # are locale specific, and you may define rules for as many different 5 + # locales as you wish. All of these examples are active by default: 6 + # ActiveSupport::Inflector.inflections(:en) do |inflect| 7 + # inflect.plural /^(ox)$/i, "\\1en" 8 + # inflect.singular /^(ox)en/i, "\\1" 9 + # inflect.irregular "person", "people" 10 + # inflect.uncountable %w( fish sheep ) 11 + # end 12 + 13 + # These inflection rules are supported but not enabled by default: 14 + # ActiveSupport::Inflector.inflections(:en) do |inflect| 15 + # inflect.acronym "RESTful" 16 + # end
+31
config/locales/en.yml
··· 1 + # Files in the config/locales directory are used for internationalization and 2 + # are automatically loaded by Rails. If you want to use locales other than 3 + # English, add the necessary files in this directory. 4 + # 5 + # To use the locales, use `I18n.t`: 6 + # 7 + # I18n.t "hello" 8 + # 9 + # In views, this is aliased to just `t`: 10 + # 11 + # <%= t("hello") %> 12 + # 13 + # To use a different locale, set it with `I18n.locale`: 14 + # 15 + # I18n.locale = :es 16 + # 17 + # This would use the information in config/locales/es.yml. 18 + # 19 + # To learn more about the API, please read the Rails Internationalization guide 20 + # at https://guides.rubyonrails.org/i18n.html. 21 + # 22 + # Be aware that YAML interprets the following case-insensitive strings as 23 + # booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings 24 + # must be quoted to be interpreted as strings. For example: 25 + # 26 + # en: 27 + # "yes": yup 28 + # enabled: "ON" 29 + 30 + en: 31 + hello: "Hello world"
+42
config/puma.rb
··· 1 + # This configuration file will be evaluated by Puma. The top-level methods that 2 + # are invoked here are part of Puma's configuration DSL. For more information 3 + # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. 4 + # 5 + # Puma starts a configurable number of processes (workers) and each process 6 + # serves each request in a thread from an internal thread pool. 7 + # 8 + # You can control the number of workers using ENV["WEB_CONCURRENCY"]. You 9 + # should only set this value when you want to run 2 or more workers. The 10 + # default is already 1. You can set it to `auto` to automatically start a worker 11 + # for each available processor. 12 + # 13 + # The ideal number of threads per worker depends both on how much time the 14 + # application spends waiting for IO operations and on how much you wish to 15 + # prioritize throughput over latency. 16 + # 17 + # As a rule of thumb, increasing the number of threads will increase how much 18 + # traffic a given process can handle (throughput), but due to CRuby's 19 + # Global VM Lock (GVL) it has diminishing returns and will degrade the 20 + # response time (latency) of the application. 21 + # 22 + # The default is set to 3 threads as it's deemed a decent compromise between 23 + # throughput and latency for the average Rails application. 24 + # 25 + # Any libraries that use a connection pool or another resource pool should 26 + # be configured to provide at least as many connections as the number of 27 + # threads. This includes Active Record's `pool` parameter in `database.yml`. 28 + threads_count = ENV.fetch("RAILS_MAX_THREADS", 3) 29 + threads threads_count, threads_count 30 + 31 + # Specifies the `port` that Puma will listen on to receive requests; default is 3000. 32 + port ENV.fetch("PORT", 3000) 33 + 34 + # Allow puma to be restarted by `bin/rails restart` command. 35 + plugin :tmp_restart 36 + 37 + # Run the Solid Queue supervisor inside of Puma for single-server deployments. 38 + plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"] 39 + 40 + # Specify the PID file. Defaults to tmp/pids/server.pid in development. 41 + # In other environments, only set the PID file if requested. 42 + pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
+18
config/queue.yml
··· 1 + default: &default 2 + dispatchers: 3 + - polling_interval: 1 4 + batch_size: 500 5 + workers: 6 + - queues: "*" 7 + threads: 3 8 + processes: <%= ENV.fetch("JOB_CONCURRENCY", 1) %> 9 + polling_interval: 0.1 10 + 11 + development: 12 + <<: *default 13 + 14 + test: 15 + <<: *default 16 + 17 + production: 18 + <<: *default
+15
config/recurring.yml
··· 1 + # examples: 2 + # periodic_cleanup: 3 + # class: CleanSoftDeletedRecordsJob 4 + # queue: background 5 + # args: [ 1000, { batch_size: 500 } ] 6 + # schedule: every hour 7 + # periodic_cleanup_with_command: 8 + # command: "SoftDeletedRecord.due.delete_all" 9 + # priority: 2 10 + # schedule: at 5am every day 11 + 12 + production: 13 + clear_solid_queue_finished_jobs: 14 + command: "SolidQueue::Job.clear_finished_in_batches(sleep_between_batches: 0.3)" 15 + schedule: every hour at minute 12
+14
config/routes.rb
··· 1 + Rails.application.routes.draw do 2 + # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html 3 + 4 + # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. 5 + # Can be used by load balancers and uptime monitors to verify that the app is live. 6 + get "up" => "rails/health#show", as: :rails_health_check 7 + 8 + # Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb) 9 + # get "manifest" => "rails/pwa#manifest", as: :pwa_manifest 10 + # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker 11 + 12 + # Defines the root path route ("/") 13 + # root "posts#index" 14 + end
+27
config/storage.yml
··· 1 + test: 2 + service: Disk 3 + root: <%= Rails.root.join("tmp/storage") %> 4 + 5 + local: 6 + service: Disk 7 + root: <%= Rails.root.join("storage") %> 8 + 9 + # Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) 10 + # amazon: 11 + # service: S3 12 + # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> 13 + # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> 14 + # region: us-east-1 15 + # bucket: your_own_bucket-<%= Rails.env %> 16 + 17 + # Remember not to checkin your GCS keyfile to a repository 18 + # google: 19 + # service: GCS 20 + # project: your_project 21 + # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> 22 + # bucket: your_own_bucket-<%= Rails.env %> 23 + 24 + # mirror: 25 + # service: Mirror 26 + # primary: local 27 + # mirrors: [ amazon, google, microsoft ]
+11
db/cable_schema.rb
··· 1 + ActiveRecord::Schema[7.1].define(version: 1) do 2 + create_table "solid_cable_messages", force: :cascade do |t| 3 + t.binary "channel", limit: 1024, null: false 4 + t.binary "payload", limit: 536870912, null: false 5 + t.datetime "created_at", null: false 6 + t.integer "channel_hash", limit: 8, null: false 7 + t.index ["channel"], name: "index_solid_cable_messages_on_channel" 8 + t.index ["channel_hash"], name: "index_solid_cable_messages_on_channel_hash" 9 + t.index ["created_at"], name: "index_solid_cable_messages_on_created_at" 10 + end 11 + end
+12
db/cache_schema.rb
··· 1 + ActiveRecord::Schema[7.2].define(version: 1) do 2 + create_table "solid_cache_entries", force: :cascade do |t| 3 + t.binary "key", limit: 1024, null: false 4 + t.binary "value", limit: 536870912, null: false 5 + t.datetime "created_at", null: false 6 + t.integer "key_hash", limit: 8, null: false 7 + t.integer "byte_size", limit: 4, null: false 8 + t.index ["byte_size"], name: "index_solid_cache_entries_on_byte_size" 9 + t.index ["key_hash", "byte_size"], name: "index_solid_cache_entries_on_key_hash_and_byte_size" 10 + t.index ["key_hash"], name: "index_solid_cache_entries_on_key_hash", unique: true 11 + end 12 + end
+129
db/queue_schema.rb
··· 1 + ActiveRecord::Schema[7.1].define(version: 1) do 2 + create_table "solid_queue_blocked_executions", force: :cascade do |t| 3 + t.bigint "job_id", null: false 4 + t.string "queue_name", null: false 5 + t.integer "priority", default: 0, null: false 6 + t.string "concurrency_key", null: false 7 + t.datetime "expires_at", null: false 8 + t.datetime "created_at", null: false 9 + t.index [ "concurrency_key", "priority", "job_id" ], name: "index_solid_queue_blocked_executions_for_release" 10 + t.index [ "expires_at", "concurrency_key" ], name: "index_solid_queue_blocked_executions_for_maintenance" 11 + t.index [ "job_id" ], name: "index_solid_queue_blocked_executions_on_job_id", unique: true 12 + end 13 + 14 + create_table "solid_queue_claimed_executions", force: :cascade do |t| 15 + t.bigint "job_id", null: false 16 + t.bigint "process_id" 17 + t.datetime "created_at", null: false 18 + t.index [ "job_id" ], name: "index_solid_queue_claimed_executions_on_job_id", unique: true 19 + t.index [ "process_id", "job_id" ], name: "index_solid_queue_claimed_executions_on_process_id_and_job_id" 20 + end 21 + 22 + create_table "solid_queue_failed_executions", force: :cascade do |t| 23 + t.bigint "job_id", null: false 24 + t.text "error" 25 + t.datetime "created_at", null: false 26 + t.index [ "job_id" ], name: "index_solid_queue_failed_executions_on_job_id", unique: true 27 + end 28 + 29 + create_table "solid_queue_jobs", force: :cascade do |t| 30 + t.string "queue_name", null: false 31 + t.string "class_name", null: false 32 + t.text "arguments" 33 + t.integer "priority", default: 0, null: false 34 + t.string "active_job_id" 35 + t.datetime "scheduled_at" 36 + t.datetime "finished_at" 37 + t.string "concurrency_key" 38 + t.datetime "created_at", null: false 39 + t.datetime "updated_at", null: false 40 + t.index [ "active_job_id" ], name: "index_solid_queue_jobs_on_active_job_id" 41 + t.index [ "class_name" ], name: "index_solid_queue_jobs_on_class_name" 42 + t.index [ "finished_at" ], name: "index_solid_queue_jobs_on_finished_at" 43 + t.index [ "queue_name", "finished_at" ], name: "index_solid_queue_jobs_for_filtering" 44 + t.index [ "scheduled_at", "finished_at" ], name: "index_solid_queue_jobs_for_alerting" 45 + end 46 + 47 + create_table "solid_queue_pauses", force: :cascade do |t| 48 + t.string "queue_name", null: false 49 + t.datetime "created_at", null: false 50 + t.index [ "queue_name" ], name: "index_solid_queue_pauses_on_queue_name", unique: true 51 + end 52 + 53 + create_table "solid_queue_processes", force: :cascade do |t| 54 + t.string "kind", null: false 55 + t.datetime "last_heartbeat_at", null: false 56 + t.bigint "supervisor_id" 57 + t.integer "pid", null: false 58 + t.string "hostname" 59 + t.text "metadata" 60 + t.datetime "created_at", null: false 61 + t.string "name", null: false 62 + t.index [ "last_heartbeat_at" ], name: "index_solid_queue_processes_on_last_heartbeat_at" 63 + t.index [ "name", "supervisor_id" ], name: "index_solid_queue_processes_on_name_and_supervisor_id", unique: true 64 + t.index [ "supervisor_id" ], name: "index_solid_queue_processes_on_supervisor_id" 65 + end 66 + 67 + create_table "solid_queue_ready_executions", force: :cascade do |t| 68 + t.bigint "job_id", null: false 69 + t.string "queue_name", null: false 70 + t.integer "priority", default: 0, null: false 71 + t.datetime "created_at", null: false 72 + t.index [ "job_id" ], name: "index_solid_queue_ready_executions_on_job_id", unique: true 73 + t.index [ "priority", "job_id" ], name: "index_solid_queue_poll_all" 74 + t.index [ "queue_name", "priority", "job_id" ], name: "index_solid_queue_poll_by_queue" 75 + end 76 + 77 + create_table "solid_queue_recurring_executions", force: :cascade do |t| 78 + t.bigint "job_id", null: false 79 + t.string "task_key", null: false 80 + t.datetime "run_at", null: false 81 + t.datetime "created_at", null: false 82 + t.index [ "job_id" ], name: "index_solid_queue_recurring_executions_on_job_id", unique: true 83 + t.index [ "task_key", "run_at" ], name: "index_solid_queue_recurring_executions_on_task_key_and_run_at", unique: true 84 + end 85 + 86 + create_table "solid_queue_recurring_tasks", force: :cascade do |t| 87 + t.string "key", null: false 88 + t.string "schedule", null: false 89 + t.string "command", limit: 2048 90 + t.string "class_name" 91 + t.text "arguments" 92 + t.string "queue_name" 93 + t.integer "priority", default: 0 94 + t.boolean "static", default: true, null: false 95 + t.text "description" 96 + t.datetime "created_at", null: false 97 + t.datetime "updated_at", null: false 98 + t.index [ "key" ], name: "index_solid_queue_recurring_tasks_on_key", unique: true 99 + t.index [ "static" ], name: "index_solid_queue_recurring_tasks_on_static" 100 + end 101 + 102 + create_table "solid_queue_scheduled_executions", force: :cascade do |t| 103 + t.bigint "job_id", null: false 104 + t.string "queue_name", null: false 105 + t.integer "priority", default: 0, null: false 106 + t.datetime "scheduled_at", null: false 107 + t.datetime "created_at", null: false 108 + t.index [ "job_id" ], name: "index_solid_queue_scheduled_executions_on_job_id", unique: true 109 + t.index [ "scheduled_at", "priority", "job_id" ], name: "index_solid_queue_dispatch_all" 110 + end 111 + 112 + create_table "solid_queue_semaphores", force: :cascade do |t| 113 + t.string "key", null: false 114 + t.integer "value", default: 1, null: false 115 + t.datetime "expires_at", null: false 116 + t.datetime "created_at", null: false 117 + t.datetime "updated_at", null: false 118 + t.index [ "expires_at" ], name: "index_solid_queue_semaphores_on_expires_at" 119 + t.index [ "key", "value" ], name: "index_solid_queue_semaphores_on_key_and_value" 120 + t.index [ "key" ], name: "index_solid_queue_semaphores_on_key", unique: true 121 + end 122 + 123 + add_foreign_key "solid_queue_blocked_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade 124 + add_foreign_key "solid_queue_claimed_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade 125 + add_foreign_key "solid_queue_failed_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade 126 + add_foreign_key "solid_queue_ready_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade 127 + add_foreign_key "solid_queue_recurring_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade 128 + add_foreign_key "solid_queue_scheduled_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade 129 + end
+9
db/seeds.rb
··· 1 + # This file should ensure the existence of records required to run the application in every environment (production, 2 + # development, test). The code here should be idempotent so that it can be executed at any point in every environment. 3 + # The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup). 4 + # 5 + # Example: 6 + # 7 + # ["Action", "Comedy", "Drama", "Horror"].each do |genre_name| 8 + # MovieGenre.find_or_create_by!(name: genre_name) 9 + # end
lib/tasks/.keep

This is a binary file and will not be displayed.

log/.keep

This is a binary file and will not be displayed.

+135
public/400.html
··· 1 + <!doctype html> 2 + 3 + <html lang="en"> 4 + 5 + <head> 6 + 7 + <title>The server cannot process the request due to a client error (400 Bad Request)</title> 8 + 9 + <meta charset="utf-8"> 10 + <meta name="viewport" content="initial-scale=1, width=device-width"> 11 + <meta name="robots" content="noindex, nofollow"> 12 + 13 + <style> 14 + 15 + *, *::before, *::after { 16 + box-sizing: border-box; 17 + } 18 + 19 + * { 20 + margin: 0; 21 + } 22 + 23 + html { 24 + font-size: 16px; 25 + } 26 + 27 + body { 28 + background: #FFF; 29 + color: #261B23; 30 + display: grid; 31 + font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 32 + font-size: clamp(1rem, 2.5vw, 2rem); 33 + -webkit-font-smoothing: antialiased; 34 + font-style: normal; 35 + font-weight: 400; 36 + letter-spacing: -0.0025em; 37 + line-height: 1.4; 38 + min-height: 100dvh; 39 + place-items: center; 40 + text-rendering: optimizeLegibility; 41 + -webkit-text-size-adjust: 100%; 42 + } 43 + 44 + #error-description { 45 + fill: #d30001; 46 + } 47 + 48 + #error-id { 49 + fill: #f0eff0; 50 + } 51 + 52 + @media (prefers-color-scheme: dark) { 53 + body { 54 + background: #101010; 55 + color: #e0e0e0; 56 + } 57 + 58 + #error-description { 59 + fill: #FF6161; 60 + } 61 + 62 + #error-id { 63 + fill: #2c2c2c; 64 + } 65 + } 66 + 67 + a { 68 + color: inherit; 69 + font-weight: 700; 70 + text-decoration: underline; 71 + text-underline-offset: 0.0925em; 72 + } 73 + 74 + b, strong { 75 + font-weight: 700; 76 + } 77 + 78 + i, em { 79 + font-style: italic; 80 + } 81 + 82 + main { 83 + display: grid; 84 + gap: 1em; 85 + padding: 2em; 86 + place-items: center; 87 + text-align: center; 88 + } 89 + 90 + main header { 91 + width: min(100%, 12em); 92 + } 93 + 94 + main header svg { 95 + height: auto; 96 + max-width: 100%; 97 + width: 100%; 98 + } 99 + 100 + main article { 101 + width: min(100%, 30em); 102 + } 103 + 104 + main article p { 105 + font-size: 75%; 106 + } 107 + 108 + main article br { 109 + display: none; 110 + 111 + @media(min-width: 48em) { 112 + display: inline; 113 + } 114 + } 115 + 116 + </style> 117 + 118 + </head> 119 + 120 + <body> 121 + 122 + <!-- This file lives in public/400.html --> 123 + 124 + <main> 125 + <header> 126 + <svg height="172" viewBox="0 0 480 172" width="480" xmlns="http://www.w3.org/2000/svg"><path d="m124.48 3.00509-45.6889 100.02991h26.2239v-28.1168h38.119v28.1168h21.628v35.145h-21.628v30.82h-37.308v-30.82h-72.1833v-31.901l50.2851-103.27391zm115.583 168.69891c-40.822 0-64.884-35.146-64.884-85.7015 0-50.5554 24.062-85.700907 64.884-85.700907 40.823 0 64.884 35.145507 64.884 85.700907 0 50.5555-24.061 85.7015-64.884 85.7015zm0-133.2831c-17.572 0-22.709 21.8984-22.709 47.5816 0 25.6835 5.137 47.5815 22.709 47.5815 17.303 0 22.71-21.898 22.71-47.5815 0-25.6832-5.407-47.5816-22.71-47.5816zm140.456 133.2831c-40.823 0-64.884-35.146-64.884-85.7015 0-50.5554 24.061-85.700907 64.884-85.700907 40.822 0 64.884 35.145507 64.884 85.700907 0 50.5555-24.062 85.7015-64.884 85.7015zm0-133.2831c-17.573 0-22.71 21.8984-22.71 47.5816 0 25.6835 5.137 47.5815 22.71 47.5815 17.302 0 22.709-21.898 22.709-47.5815 0-25.6832-5.407-47.5816-22.709-47.5816z" id="error-id"/><path d="m123.606 85.4445c3.212 1.0523 5.538 4.2089 5.538 8.0301 0 6.1472-4.209 9.5254-11.298 9.5254h-15.617v-34.0033h14.565c7.089 0 11.353 3.1566 11.353 9.2484 0 3.6551-2.049 6.3134-4.541 7.1994zm-12.904-2.9905h5.095c2.603 0 3.988-.9968 3.988-3.1013 0-2.1044-1.385-3.0459-3.988-3.0459h-5.095zm0 6.6456v6.5902h5.981c2.492 0 3.877-1.3291 3.877-3.2674 0-2.049-1.385-3.3228-3.877-3.3228zm43.786 13.9004h-8.362v-1.274c-.831.831-3.323 1.717-5.981 1.717-4.929 0-9.083-2.769-9.083-8.0301 0-4.818 4.154-7.9193 9.581-7.9193 2.049 0 4.486.6646 5.483 1.3845v-1.606c0-1.606-.942-2.9905-3.046-2.9905-1.606 0-2.548.7199-2.935 1.8275h-8.197c.72-4.8181 4.985-8.6393 11.409-8.6393 7.088 0 11.131 3.7659 11.131 10.2453zm-8.362-6.9779v-1.4399c-.554-1.0522-2.049-1.7167-3.655-1.7167-1.717 0-3.434.7199-3.434 2.3813 0 1.7168 1.717 2.4367 3.434 2.4367 1.606 0 3.101-.6645 3.655-1.6614zm27.996 6.9779v-1.994c-1.163 1.329-3.599 2.548-6.147 2.548-7.199 0-11.131-5.8151-11.131-13.0145s3.932-13.0143 11.131-13.0143c2.548 0 4.984 1.2184 6.147 2.5475v-13.0697h8.695v35.997zm0-9.1931v-6.5902c-.664-1.3291-2.159-2.326-3.821-2.326-2.99 0-4.763 2.4368-4.763 5.6488s1.773 5.5934 4.763 5.5934c1.717 0 3.157-.9415 3.821-2.326zm35.471-2.049h-3.101v11.2421h-8.806v-34.0033h15.285c7.31 0 12.35 4.1535 12.35 11.5744 0 5.1503-2.603 8.6947-6.757 10.2453l7.975 12.1836h-9.858zm-3.101-15.2849v8.1962h5.538c3.156 0 4.596-1.606 4.596-4.0981s-1.44-4.0981-4.596-4.0981zm36.957 17.8323h8.03c-.886 5.7597-5.206 9.2487-11.685 9.2487-7.643 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.316-13.0143 12.515-13.0143 7.643 0 11.962 5.095 11.962 12.5159v2.1598h-16.115c.277 2.9905 1.827 4.5965 4.32 4.5965 1.772 0 3.156-.7753 3.655-2.4921zm-3.822-10.0237c-2.049 0-3.433 1.2737-3.987 3.5997h7.532c-.111-2.0491-1.385-3.5997-3.545-3.5997zm30.98 27.5234v-10.799c-1.163 1.329-3.6 2.548-6.147 2.548-7.2 0-11.132-5.9259-11.132-13.0145 0-7.144 3.932-13.0143 11.132-13.0143 2.547 0 4.984 1.2184 6.147 2.5475v-1.9937h8.695v33.726zm0-17.9981v-6.5902c-.665-1.3291-2.105-2.326-3.821-2.326-2.991 0-4.763 2.4368-4.763 5.6488s1.772 5.5934 4.763 5.5934c1.661 0 3.156-.9415 3.821-2.326zm36.789-15.7279v24.921h-8.695v-2.16c-1.329 1.551-3.821 2.714-6.646 2.714-5.482 0-8.75-3.5999-8.75-9.1379v-16.3371h8.64v14.288c0 2.1045.996 3.5997 3.212 3.5997 1.606 0 3.101-1.0522 3.544-2.769v-15.1187zm19.084 16.2263h8.03c-.886 5.7597-5.206 9.2487-11.685 9.2487-7.643 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.316-13.0143 12.515-13.0143 7.643 0 11.963 5.095 11.963 12.5159v2.1598h-16.116c.277 2.9905 1.828 4.5965 4.32 4.5965 1.772 0 3.156-.7753 3.655-2.4921zm-3.822-10.0237c-2.049 0-3.433 1.2737-3.987 3.5997h7.532c-.111-2.0491-1.385-3.5997-3.545-3.5997zm13.428 11.0206h8.474c.387 1.3845 1.606 2.1598 3.156 2.1598 1.44 0 2.548-.5538 2.548-1.7168 0-.9414-.72-1.2737-1.939-1.5506l-4.873-.9969c-4.154-.886-6.867-2.8797-6.867-7.2547 0-5.3165 4.762-8.4178 10.633-8.4178 6.812 0 10.522 3.1567 11.297 8.0855h-8.03c-.277-1.0522-1.052-1.9937-3.046-1.9937-1.273 0-2.326.5538-2.326 1.6614 0 .7753.554 1.163 1.717 1.3845l4.929 1.163c4.541 1.0522 6.978 3.4335 6.978 7.4763 0 5.3168-4.818 8.2518-10.91 8.2518-6.369 0-10.965-2.88-11.741-8.2518zm27.538-.8861v-9.5807h-3.655v-6.7564h3.655v-6.8671h8.584v6.8671h5.205v6.7564h-5.205v8.307c0 1.9383.941 2.769 2.658 2.769.941 0 1.993-.2216 2.769-.5538v7.3654c-.997.443-2.88.775-4.818.775-5.871 0-9.193-2.769-9.193-9.0819z" id="error-description"/></svg> 127 + </header> 128 + <article> 129 + <p><strong>The server cannot process the request due to a client error.</strong> Please check the request and try again. If you're the application owner check the logs for more information.</p> 130 + </article> 131 + </main> 132 + 133 + </body> 134 + 135 + </html>
+135
public/404.html
··· 1 + <!doctype html> 2 + 3 + <html lang="en"> 4 + 5 + <head> 6 + 7 + <title>The page you were looking for doesn't exist (404 Not found)</title> 8 + 9 + <meta charset="utf-8"> 10 + <meta name="viewport" content="initial-scale=1, width=device-width"> 11 + <meta name="robots" content="noindex, nofollow"> 12 + 13 + <style> 14 + 15 + *, *::before, *::after { 16 + box-sizing: border-box; 17 + } 18 + 19 + * { 20 + margin: 0; 21 + } 22 + 23 + html { 24 + font-size: 16px; 25 + } 26 + 27 + body { 28 + background: #FFF; 29 + color: #261B23; 30 + display: grid; 31 + font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 32 + font-size: clamp(1rem, 2.5vw, 2rem); 33 + -webkit-font-smoothing: antialiased; 34 + font-style: normal; 35 + font-weight: 400; 36 + letter-spacing: -0.0025em; 37 + line-height: 1.4; 38 + min-height: 100dvh; 39 + place-items: center; 40 + text-rendering: optimizeLegibility; 41 + -webkit-text-size-adjust: 100%; 42 + } 43 + 44 + #error-description { 45 + fill: #d30001; 46 + } 47 + 48 + #error-id { 49 + fill: #f0eff0; 50 + } 51 + 52 + @media (prefers-color-scheme: dark) { 53 + body { 54 + background: #101010; 55 + color: #e0e0e0; 56 + } 57 + 58 + #error-description { 59 + fill: #FF6161; 60 + } 61 + 62 + #error-id { 63 + fill: #2c2c2c; 64 + } 65 + } 66 + 67 + a { 68 + color: inherit; 69 + font-weight: 700; 70 + text-decoration: underline; 71 + text-underline-offset: 0.0925em; 72 + } 73 + 74 + b, strong { 75 + font-weight: 700; 76 + } 77 + 78 + i, em { 79 + font-style: italic; 80 + } 81 + 82 + main { 83 + display: grid; 84 + gap: 1em; 85 + padding: 2em; 86 + place-items: center; 87 + text-align: center; 88 + } 89 + 90 + main header { 91 + width: min(100%, 12em); 92 + } 93 + 94 + main header svg { 95 + height: auto; 96 + max-width: 100%; 97 + width: 100%; 98 + } 99 + 100 + main article { 101 + width: min(100%, 30em); 102 + } 103 + 104 + main article p { 105 + font-size: 75%; 106 + } 107 + 108 + main article br { 109 + display: none; 110 + 111 + @media(min-width: 48em) { 112 + display: inline; 113 + } 114 + } 115 + 116 + </style> 117 + 118 + </head> 119 + 120 + <body> 121 + 122 + <!-- This file lives in public/404.html --> 123 + 124 + <main> 125 + <header> 126 + <svg height="172" viewBox="0 0 480 172" width="480" xmlns="http://www.w3.org/2000/svg"><path d="m124.48 3.00509-45.6889 100.02991h26.2239v-28.1168h38.119v28.1168h21.628v35.145h-21.628v30.82h-37.308v-30.82h-72.1833v-31.901l50.2851-103.27391zm115.583 168.69891c-40.822 0-64.884-35.146-64.884-85.7015 0-50.5554 24.062-85.700907 64.884-85.700907 40.823 0 64.884 35.145507 64.884 85.700907 0 50.5555-24.061 85.7015-64.884 85.7015zm0-133.2831c-17.572 0-22.709 21.8984-22.709 47.5816 0 25.6835 5.137 47.5815 22.709 47.5815 17.303 0 22.71-21.898 22.71-47.5815 0-25.6832-5.407-47.5816-22.71-47.5816zm165.328-35.41581-45.689 100.02991h26.224v-28.1168h38.119v28.1168h21.628v35.145h-21.628v30.82h-37.308v-30.82h-72.184v-31.901l50.285-103.27391z" id="error-id"/><path d="m157.758 68.9967v34.0033h-7.199l-14.233-19.8814v19.8814h-8.584v-34.0033h8.307l13.125 18.7184v-18.7184zm28.454 21.5428c0 7.6978-5.15 13.0145-12.737 13.0145-7.532 0-12.738-5.3167-12.738-13.0145s5.206-13.0143 12.738-13.0143c7.587 0 12.737 5.3165 12.737 13.0143zm-8.528 0c0-3.4336-1.496-5.8703-4.209-5.8703-2.659 0-4.154 2.4367-4.154 5.8703s1.495 5.8149 4.154 5.8149c2.713 0 4.209-2.3813 4.209-5.8149zm13.184 3.8766v-9.5807h-3.655v-6.7564h3.655v-6.8671h8.584v6.8671h5.205v6.7564h-5.205v8.307c0 1.9383.941 2.769 2.658 2.769.941 0 1.994-.2216 2.769-.5538v7.3654c-.997.443-2.88.775-4.818.775-5.87 0-9.193-2.769-9.193-9.0819zm37.027 8.5839h-8.806v-34.0033h23.924v7.6978h-15.118v6.7564h13.9v7.5316h-13.9zm41.876-12.4605c0 7.6978-5.15 13.0145-12.737 13.0145-7.532 0-12.738-5.3167-12.738-13.0145s5.206-13.0143 12.738-13.0143c7.587 0 12.737 5.3165 12.737 13.0143zm-8.529 0c0-3.4336-1.495-5.8703-4.208-5.8703-2.659 0-4.154 2.4367-4.154 5.8703s1.495 5.8149 4.154 5.8149c2.713 0 4.208-2.3813 4.208-5.8149zm35.337-12.4605v24.921h-8.695v-2.16c-1.329 1.551-3.821 2.714-6.646 2.714-5.482 0-8.75-3.5999-8.75-9.1379v-16.3371h8.64v14.288c0 2.1045.997 3.5997 3.212 3.5997 1.606 0 3.101-1.0522 3.544-2.769v-15.1187zm4.076 24.921v-24.921h8.694v2.1598c1.385-1.5506 3.822-2.7136 6.701-2.7136 5.538 0 8.806 3.5997 8.806 9.1377v16.3371h-8.639v-14.2327c0-2.049-1.053-3.5443-3.268-3.5443-1.717 0-3.156.9969-3.6 2.7136v15.0634zm44.113 0v-1.994c-1.163 1.329-3.6 2.548-6.147 2.548-7.2 0-11.132-5.8151-11.132-13.0145s3.932-13.0143 11.132-13.0143c2.547 0 4.984 1.2184 6.147 2.5475v-13.0697h8.695v35.997zm0-9.1931v-6.5902c-.665-1.3291-2.16-2.326-3.821-2.326-2.991 0-4.763 2.4368-4.763 5.6488s1.772 5.5934 4.763 5.5934c1.717 0 3.156-.9415 3.821-2.326z" id="error-description"/></svg> 127 + </header> 128 + <article> 129 + <p><strong>The page you were looking for doesn't exist.</strong> You may have mistyped the address or the page may have moved. If you're the application owner check the logs for more information.</p> 130 + </article> 131 + </main> 132 + 133 + </body> 134 + 135 + </html>
+135
public/406-unsupported-browser.html
··· 1 + <!doctype html> 2 + 3 + <html lang="en"> 4 + 5 + <head> 6 + 7 + <title>Your browser is not supported (406 Not Acceptable)</title> 8 + 9 + <meta charset="utf-8"> 10 + <meta name="viewport" content="initial-scale=1, width=device-width"> 11 + <meta name="robots" content="noindex, nofollow"> 12 + 13 + <style> 14 + 15 + *, *::before, *::after { 16 + box-sizing: border-box; 17 + } 18 + 19 + * { 20 + margin: 0; 21 + } 22 + 23 + html { 24 + font-size: 16px; 25 + } 26 + 27 + body { 28 + background: #FFF; 29 + color: #261B23; 30 + display: grid; 31 + font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 32 + font-size: clamp(1rem, 2.5vw, 2rem); 33 + -webkit-font-smoothing: antialiased; 34 + font-style: normal; 35 + font-weight: 400; 36 + letter-spacing: -0.0025em; 37 + line-height: 1.4; 38 + min-height: 100dvh; 39 + place-items: center; 40 + text-rendering: optimizeLegibility; 41 + -webkit-text-size-adjust: 100%; 42 + } 43 + 44 + #error-description { 45 + fill: #d30001; 46 + } 47 + 48 + #error-id { 49 + fill: #f0eff0; 50 + } 51 + 52 + @media (prefers-color-scheme: dark) { 53 + body { 54 + background: #101010; 55 + color: #e0e0e0; 56 + } 57 + 58 + #error-description { 59 + fill: #FF6161; 60 + } 61 + 62 + #error-id { 63 + fill: #2c2c2c; 64 + } 65 + } 66 + 67 + a { 68 + color: inherit; 69 + font-weight: 700; 70 + text-decoration: underline; 71 + text-underline-offset: 0.0925em; 72 + } 73 + 74 + b, strong { 75 + font-weight: 700; 76 + } 77 + 78 + i, em { 79 + font-style: italic; 80 + } 81 + 82 + main { 83 + display: grid; 84 + gap: 1em; 85 + padding: 2em; 86 + place-items: center; 87 + text-align: center; 88 + } 89 + 90 + main header { 91 + width: min(100%, 12em); 92 + } 93 + 94 + main header svg { 95 + height: auto; 96 + max-width: 100%; 97 + width: 100%; 98 + } 99 + 100 + main article { 101 + width: min(100%, 30em); 102 + } 103 + 104 + main article p { 105 + font-size: 75%; 106 + } 107 + 108 + main article br { 109 + display: none; 110 + 111 + @media(min-width: 48em) { 112 + display: inline; 113 + } 114 + } 115 + 116 + </style> 117 + 118 + </head> 119 + 120 + <body> 121 + 122 + <!-- This file lives in public/406-unsupported-browser.html --> 123 + 124 + <main> 125 + <header> 126 + <svg height="172" viewBox="0 0 480 172" width="480" xmlns="http://www.w3.org/2000/svg"><path d="m124.48 3.00509-45.6889 100.02991h26.2239v-28.1168h38.119v28.1168h21.628v35.145h-21.628v30.82h-37.308v-30.82h-72.1833v-31.901l50.2851-103.27391zm115.583 168.69891c-40.822 0-64.884-35.146-64.884-85.7015 0-50.5554 24.062-85.700907 64.884-85.700907 40.823 0 64.884 35.145507 64.884 85.700907 0 50.5555-24.061 85.7015-64.884 85.7015zm0-133.2831c-17.572 0-22.709 21.8984-22.709 47.5816 0 25.6835 5.137 47.5815 22.709 47.5815 17.303 0 22.71-21.898 22.71-47.5815 0-25.6832-5.407-47.5816-22.71-47.5816zm202.906 9.7326h-41.093c-2.433-7.2994-7.84-12.4361-17.302-12.4361-16.221 0-25.413 17.5728-25.954 34.8752v1.3517c5.137-7.0291 16.221-12.4361 30.82-12.4361 33.524 0 54.881 24.0612 54.881 53.7998 0 33.253-23.791 58.396-61.64 58.396-21.628 0-39.741-10.003-50.825-27.576-9.733-14.599-13.788-32.442-13.788-54.3406 0-51.9072 24.331-89.485807 66.236-89.485807 32.712 0 53.258 18.654107 58.665 47.851907zm-82.727 66.2355c0 13.247 9.463 22.439 22.71 22.439 12.977 0 22.439-9.192 22.439-22.439 0-13.517-9.462-22.7091-22.439-22.7091-13.247 0-22.71 9.1921-22.71 22.7091z" id="error-id"/><path d="m100.761 68.9967v34.0033h-7.1991l-14.2326-19.8814v19.8814h-8.5839v-34.0033h8.307l13.125 18.7184v-18.7184zm28.454 21.5428c0 7.6978-5.15 13.0145-12.737 13.0145-7.532 0-12.738-5.3167-12.738-13.0145s5.206-13.0143 12.738-13.0143c7.587 0 12.737 5.3165 12.737 13.0143zm-8.529 0c0-3.4336-1.495-5.8703-4.208-5.8703-2.659 0-4.154 2.4367-4.154 5.8703s1.495 5.8149 4.154 5.8149c2.713 0 4.208-2.3813 4.208-5.8149zm13.185 3.8766v-9.5807h-3.655v-6.7564h3.655v-6.8671h8.584v6.8671h5.205v6.7564h-5.205v8.307c0 1.9383.941 2.769 2.658 2.769.941 0 1.994-.2216 2.769-.5538v7.3654c-.997.443-2.88.775-4.818.775-5.87 0-9.193-2.769-9.193-9.0819zm39.02-25.4194h9.083l12.958 34.0033h-9.027l-2.436-6.5902h-12.35l-2.381 6.5902h-8.806zm4.431 10.5222-3.489 9.5807h6.978zm17.44 11.0206c0-7.6978 5.095-13.0143 12.572-13.0143 6.701 0 10.854 3.9874 11.574 9.8023h-8.418c-.221-1.4953-1.384-2.6029-3.156-2.6029-2.437 0-3.988 2.2706-3.988 5.8149s1.551 5.7595 3.988 5.7595c1.772 0 2.935-1.0522 3.156-2.5475h8.418c-.72 5.7596-4.873 9.8025-11.574 9.8025-7.477 0-12.572-5.3167-12.572-13.0145zm25.676 0c0-7.6978 5.095-13.0143 12.572-13.0143 6.701 0 10.854 3.9874 11.574 9.8023h-8.418c-.221-1.4953-1.384-2.6029-3.156-2.6029-2.437 0-3.988 2.2706-3.988 5.8149s1.551 5.7595 3.988 5.7595c1.772 0 2.935-1.0522 3.156-2.5475h8.418c-.72 5.7596-4.873 9.8025-11.574 9.8025-7.477 0-12.572-5.3167-12.572-13.0145zm42.013 3.7658h8.031c-.887 5.7597-5.206 9.2487-11.686 9.2487-7.642 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.317-13.0143 12.516-13.0143 7.643 0 11.962 5.095 11.962 12.5159v2.1598h-16.115c.277 2.9905 1.827 4.5965 4.319 4.5965 1.773 0 3.157-.7753 3.655-2.4921zm-3.821-10.0237c-2.049 0-3.433 1.2737-3.987 3.5997h7.532c-.111-2.0491-1.385-3.5997-3.545-3.5997zm23.4 16.7244v10.799h-8.694v-33.726h8.694v1.9937c1.163-1.3291 3.6-2.5475 6.148-2.5475 7.199 0 11.131 5.8703 11.131 13.0143 0 7.0886-3.932 13.0145-11.131 13.0145-2.548 0-4.985-1.219-6.148-2.548zm0-13.7893v6.5902c.665 1.3845 2.16 2.326 3.822 2.326 2.99 0 4.762-2.3814 4.762-5.5934s-1.772-5.6488-4.762-5.6488c-1.717 0-3.157.9969-3.822 2.326zm21.892 7.1994v-9.5807h-3.655v-6.7564h3.655v-6.8671h8.584v6.8671h5.206v6.7564h-5.206v8.307c0 1.9383.941 2.769 2.658 2.769.942 0 1.994-.2216 2.769-.5538v7.3654c-.997.443-2.88.775-4.818.775-5.87 0-9.193-2.769-9.193-9.0819zm39.458 8.5839h-8.363v-1.274c-.83.831-3.322 1.717-5.981 1.717-4.928 0-9.082-2.769-9.082-8.0301 0-4.818 4.154-7.9193 9.581-7.9193 2.049 0 4.486.6646 5.482 1.3845v-1.606c0-1.606-.941-2.9905-3.045-2.9905-1.606 0-2.548.7199-2.936 1.8275h-8.196c.72-4.8181 4.984-8.6393 11.408-8.6393 7.089 0 11.132 3.7659 11.132 10.2453zm-8.363-6.9779v-1.4399c-.553-1.0522-2.049-1.7167-3.655-1.7167-1.716 0-3.433.7199-3.433 2.3813 0 1.7168 1.717 2.4367 3.433 2.4367 1.606 0 3.102-.6645 3.655-1.6614zm20.742 4.9839v1.994h-8.694v-35.997h8.694v13.0697c1.163-1.3291 3.6-2.5475 6.148-2.5475 7.199 0 11.131 5.8149 11.131 13.0143s-3.932 13.0145-11.131 13.0145c-2.548 0-4.985-1.219-6.148-2.548zm0-13.7893v6.5902c.665 1.3845 2.105 2.326 3.822 2.326 2.99 0 4.762-2.3814 4.762-5.5934s-1.772-5.6488-4.762-5.6488c-1.662 0-3.157.9969-3.822 2.326zm28.759-20.2137v35.997h-8.695v-35.997zm19.172 27.3023h8.03c-.886 5.7597-5.206 9.2487-11.685 9.2487-7.643 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.316-13.0143 12.516-13.0143 7.642 0 11.962 5.095 11.962 12.5159v2.1598h-16.116c.277 2.9905 1.828 4.5965 4.32 4.5965 1.772 0 3.157-.7753 3.655-2.4921zm-3.821-10.0237c-2.049 0-3.434 1.2737-3.988 3.5997h7.532c-.111-2.0491-1.384-3.5997-3.544-3.5997z" id="error-description"/></svg> 127 + </header> 128 + <article> 129 + <p><strong>Your browser is not supported.</strong><br> Please upgrade your browser to continue.</p> 130 + </article> 131 + </main> 132 + 133 + </body> 134 + 135 + </html>
+135
public/422.html
··· 1 + <!doctype html> 2 + 3 + <html lang="en"> 4 + 5 + <head> 6 + 7 + <title>The change you wanted was rejected (422 Unprocessable Entity)</title> 8 + 9 + <meta charset="utf-8"> 10 + <meta name="viewport" content="initial-scale=1, width=device-width"> 11 + <meta name="robots" content="noindex, nofollow"> 12 + 13 + <style> 14 + 15 + *, *::before, *::after { 16 + box-sizing: border-box; 17 + } 18 + 19 + * { 20 + margin: 0; 21 + } 22 + 23 + html { 24 + font-size: 16px; 25 + } 26 + 27 + body { 28 + background: #FFF; 29 + color: #261B23; 30 + display: grid; 31 + font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 32 + font-size: clamp(1rem, 2.5vw, 2rem); 33 + -webkit-font-smoothing: antialiased; 34 + font-style: normal; 35 + font-weight: 400; 36 + letter-spacing: -0.0025em; 37 + line-height: 1.4; 38 + min-height: 100dvh; 39 + place-items: center; 40 + text-rendering: optimizeLegibility; 41 + -webkit-text-size-adjust: 100%; 42 + } 43 + 44 + #error-description { 45 + fill: #d30001; 46 + } 47 + 48 + #error-id { 49 + fill: #f0eff0; 50 + } 51 + 52 + @media (prefers-color-scheme: dark) { 53 + body { 54 + background: #101010; 55 + color: #e0e0e0; 56 + } 57 + 58 + #error-description { 59 + fill: #FF6161; 60 + } 61 + 62 + #error-id { 63 + fill: #2c2c2c; 64 + } 65 + } 66 + 67 + a { 68 + color: inherit; 69 + font-weight: 700; 70 + text-decoration: underline; 71 + text-underline-offset: 0.0925em; 72 + } 73 + 74 + b, strong { 75 + font-weight: 700; 76 + } 77 + 78 + i, em { 79 + font-style: italic; 80 + } 81 + 82 + main { 83 + display: grid; 84 + gap: 1em; 85 + padding: 2em; 86 + place-items: center; 87 + text-align: center; 88 + } 89 + 90 + main header { 91 + width: min(100%, 12em); 92 + } 93 + 94 + main header svg { 95 + height: auto; 96 + max-width: 100%; 97 + width: 100%; 98 + } 99 + 100 + main article { 101 + width: min(100%, 30em); 102 + } 103 + 104 + main article p { 105 + font-size: 75%; 106 + } 107 + 108 + main article br { 109 + display: none; 110 + 111 + @media(min-width: 48em) { 112 + display: inline; 113 + } 114 + } 115 + 116 + </style> 117 + 118 + </head> 119 + 120 + <body> 121 + 122 + <!-- This file lives in public/422.html --> 123 + 124 + <main> 125 + <header> 126 + <svg height="172" viewBox="0 0 480 172" width="480" xmlns="http://www.w3.org/2000/svg"><path d="m124.48 3.00509-45.6889 100.02991h26.2239v-28.1168h38.119v28.1168h21.628v35.145h-21.628v30.82h-37.308v-30.82h-72.1833v-31.901l50.2851-103.27391zm130.453 51.63681c0-8.9215-6.218-15.4099-15.681-15.4099-10.273 0-15.95 7.5698-16.491 16.4913h-44.608c3.244-30.8199 25.683-55.421707 61.099-55.421707 36.498 0 59.477 20.816907 59.477 51.636807 0 21.3577-14.869 36.7676-31.901 52.7186l-27.305 27.035h59.747v37.308h-120.306v-27.846l57.044-56.7736c11.084-11.8954 18.925-20.0059 18.925-29.7385zm140.455 0c0-8.9215-6.218-15.4099-15.68-15.4099-10.274 0-15.951 7.5698-16.492 16.4913h-44.608c3.245-30.8199 25.684-55.421707 61.1-55.421707 36.497 0 59.477 20.816907 59.477 51.636807 0 21.3577-14.87 36.7676-31.902 52.7186l-27.305 27.035h59.747v37.308h-120.305v-27.846l57.043-56.7736c11.085-11.8954 18.925-20.0059 18.925-29.7385z" id="error-id"/><path d="m19.3936 103.554c-8.9715 0-14.84183-5.0952-14.84183-14.4544v-20.1029h8.86083v19.3276c0 4.8181 2.2706 7.3102 5.981 7.3102 3.6551 0 5.9257-2.4921 5.9257-7.3102v-19.3276h8.8608v20.1583c0 9.3038-5.8149 14.399-14.7865 14.399zm18.734-.554v-24.921h8.6947v2.1598c1.3845-1.5506 3.8212-2.7136 6.701-2.7136 5.538 0 8.8054 3.5997 8.8054 9.1377v16.3371h-8.6393v-14.2327c0-2.049-1.0522-3.5443-3.2674-3.5443-1.7168 0-3.1567.9969-3.5997 2.7136v15.0634zm36.8584-1.994v10.799h-8.6946v-33.726h8.6946v1.9937c1.163-1.3291 3.5997-2.5475 6.1472-2.5475 7.1994 0 11.1314 5.8703 11.1314 13.0143 0 7.0886-3.932 13.0145-11.1314 13.0145-2.5475 0-4.9842-1.219-6.1472-2.548zm0-13.7893v6.5902c.6646 1.3845 2.1599 2.326 3.8213 2.326 2.9905 0 4.7626-2.3814 4.7626-5.5934s-1.7721-5.6488-4.7626-5.6488c-1.7168 0-3.1567.9969-3.8213 2.326zm36.789-9.2485v8.3624c-1.052-.5538-2.215-.7753-3.6-.7753-2.381 0-3.987 1.0522-4.43 2.8244v14.6203h-8.6949v-24.921h8.6949v2.2152c1.218-1.6614 3.156-2.769 5.648-2.769 1.108 0 1.994.2215 2.382.443zm26.769 12.5713c0 7.6978-5.15 13.0145-12.737 13.0145-7.532 0-12.738-5.3167-12.738-13.0145s5.206-13.0143 12.738-13.0143c7.587 0 12.737 5.3165 12.737 13.0143zm-8.528 0c0-3.4336-1.496-5.8703-4.209-5.8703-2.659 0-4.154 2.4367-4.154 5.8703s1.495 5.8149 4.154 5.8149c2.713 0 4.209-2.3813 4.209-5.8149zm10.352 0c0-7.6978 5.095-13.0143 12.571-13.0143 6.701 0 10.855 3.9874 11.574 9.8023h-8.417c-.222-1.4953-1.385-2.6029-3.157-2.6029-2.437 0-3.987 2.2706-3.987 5.8149s1.55 5.7595 3.987 5.7595c1.772 0 2.935-1.0522 3.157-2.5475h8.417c-.719 5.7596-4.873 9.8025-11.574 9.8025-7.476 0-12.571-5.3167-12.571-13.0145zm42.013 3.7658h8.03c-.886 5.7597-5.206 9.2487-11.685 9.2487-7.643 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.316-13.0143 12.516-13.0143 7.642 0 11.962 5.095 11.962 12.5159v2.1598h-16.116c.277 2.9905 1.828 4.5965 4.32 4.5965 1.772 0 3.156-.7753 3.655-2.4921zm-3.821-10.0237c-2.049 0-3.434 1.2737-3.988 3.5997h7.532c-.111-2.0491-1.385-3.5997-3.544-3.5997zm13.428 11.0206h8.473c.387 1.3845 1.606 2.1598 3.156 2.1598 1.44 0 2.548-.5538 2.548-1.7168 0-.9414-.72-1.2737-1.938-1.5506l-4.874-.9969c-4.153-.886-6.867-2.8797-6.867-7.2547 0-5.3165 4.763-8.4178 10.633-8.4178 6.812 0 10.522 3.1567 11.297 8.0855h-8.03c-.277-1.0522-1.052-1.9937-3.046-1.9937-1.273 0-2.326.5538-2.326 1.6614 0 .7753.554 1.163 1.717 1.3845l4.929 1.163c4.541 1.0522 6.978 3.4335 6.978 7.4763 0 5.3168-4.818 8.2518-10.91 8.2518-6.369 0-10.965-2.88-11.74-8.2518zm24.269 0h8.474c.387 1.3845 1.606 2.1598 3.156 2.1598 1.44 0 2.548-.5538 2.548-1.7168 0-.9414-.72-1.2737-1.939-1.5506l-4.873-.9969c-4.154-.886-6.867-2.8797-6.867-7.2547 0-5.3165 4.763-8.4178 10.633-8.4178 6.812 0 10.522 3.1567 11.297 8.0855h-8.03c-.277-1.0522-1.052-1.9937-3.046-1.9937-1.273 0-2.326.5538-2.326 1.6614 0 .7753.554 1.163 1.717 1.3845l4.929 1.163c4.541 1.0522 6.978 3.4335 6.978 7.4763 0 5.3168-4.818 8.2518-10.91 8.2518-6.369 0-10.965-2.88-11.741-8.2518zm47.918 7.6978h-8.363v-1.274c-.831.831-3.323 1.717-5.981 1.717-4.929 0-9.082-2.769-9.082-8.0301 0-4.818 4.153-7.9193 9.581-7.9193 2.049 0 4.485.6646 5.482 1.3845v-1.606c0-1.606-.941-2.9905-3.046-2.9905-1.606 0-2.547.7199-2.935 1.8275h-8.196c.72-4.8181 4.984-8.6393 11.408-8.6393 7.089 0 11.132 3.7659 11.132 10.2453zm-8.363-6.9779v-1.4399c-.554-1.0522-2.049-1.7167-3.655-1.7167-1.717 0-3.434.7199-3.434 2.3813 0 1.7168 1.717 2.4367 3.434 2.4367 1.606 0 3.101-.6645 3.655-1.6614zm20.742 4.9839v1.994h-8.695v-35.997h8.695v13.0697c1.163-1.3291 3.6-2.5475 6.147-2.5475 7.2 0 11.132 5.8149 11.132 13.0143s-3.932 13.0145-11.132 13.0145c-2.547 0-4.984-1.219-6.147-2.548zm0-13.7893v6.5902c.665 1.3845 2.105 2.326 3.821 2.326 2.991 0 4.763-2.3814 4.763-5.5934s-1.772-5.6488-4.763-5.6488c-1.661 0-3.156.9969-3.821 2.326zm28.759-20.2137v35.997h-8.695v-35.997zm19.172 27.3023h8.03c-.886 5.7597-5.206 9.2487-11.685 9.2487-7.643 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.316-13.0143 12.515-13.0143 7.643 0 11.962 5.095 11.962 12.5159v2.1598h-16.115c.277 2.9905 1.827 4.5965 4.32 4.5965 1.772 0 3.156-.7753 3.655-2.4921zm-3.822-10.0237c-2.049 0-3.433 1.2737-3.987 3.5997h7.532c-.111-2.0491-1.385-3.5997-3.545-3.5997zm25.461-15.2849h24.311v7.6424h-15.561v5.3165h14.232v7.4763h-14.232v5.8703h15.561v7.6978h-24.311zm27.942 34.0033v-24.921h8.694v2.1598c1.385-1.5506 3.822-2.7136 6.701-2.7136 5.538 0 8.806 3.5997 8.806 9.1377v16.3371h-8.639v-14.2327c0-2.049-1.053-3.5443-3.268-3.5443-1.717 0-3.157.9969-3.6 2.7136v15.0634zm29.991-8.5839v-9.5807h-3.655v-6.7564h3.655v-6.8671h8.584v6.8671h5.206v6.7564h-5.206v8.307c0 1.9383.941 2.769 2.658 2.769.942 0 1.994-.2216 2.769-.5538v7.3654c-.997.443-2.88.775-4.818.775-5.87 0-9.193-2.769-9.193-9.0819zm26.161-16.3371v24.921h-8.694v-24.921zm.61-6.7564c0 2.8244-2.271 4.652-4.929 4.652s-4.929-1.8276-4.929-4.652c0-2.8797 2.271-4.7073 4.929-4.7073s4.929 1.8276 4.929 4.7073zm5.382 23.0935v-9.5807h-3.655v-6.7564h3.655v-6.8671h8.584v6.8671h5.206v6.7564h-5.206v8.307c0 1.9383.941 2.769 2.658 2.769.941 0 1.994-.2216 2.769-.5538v7.3654c-.997.443-2.88.775-4.818.775-5.87 0-9.193-2.769-9.193-9.0819zm29.22 17.3889h-8.584l3.655-9.414-9.303-24.312h9.026l4.763 14.1773 4.652-14.1773h8.639z" id="error-description"/></svg> 127 + </header> 128 + <article> 129 + <p><strong>The change you wanted was rejected.</strong> Maybe you tried to change something you didn't have access to. If you're the application owner check the logs for more information.</p> 130 + </article> 131 + </main> 132 + 133 + </body> 134 + 135 + </html>
+135
public/500.html
··· 1 + <!doctype html> 2 + 3 + <html lang="en"> 4 + 5 + <head> 6 + 7 + <title>We're sorry, but something went wrong (500 Internal Server Error)</title> 8 + 9 + <meta charset="utf-8"> 10 + <meta name="viewport" content="initial-scale=1, width=device-width"> 11 + <meta name="robots" content="noindex, nofollow"> 12 + 13 + <style> 14 + 15 + *, *::before, *::after { 16 + box-sizing: border-box; 17 + } 18 + 19 + * { 20 + margin: 0; 21 + } 22 + 23 + html { 24 + font-size: 16px; 25 + } 26 + 27 + body { 28 + background: #FFF; 29 + color: #261B23; 30 + display: grid; 31 + font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 32 + font-size: clamp(1rem, 2.5vw, 2rem); 33 + -webkit-font-smoothing: antialiased; 34 + font-style: normal; 35 + font-weight: 400; 36 + letter-spacing: -0.0025em; 37 + line-height: 1.4; 38 + min-height: 100dvh; 39 + place-items: center; 40 + text-rendering: optimizeLegibility; 41 + -webkit-text-size-adjust: 100%; 42 + } 43 + 44 + #error-description { 45 + fill: #d30001; 46 + } 47 + 48 + #error-id { 49 + fill: #f0eff0; 50 + } 51 + 52 + @media (prefers-color-scheme: dark) { 53 + body { 54 + background: #101010; 55 + color: #e0e0e0; 56 + } 57 + 58 + #error-description { 59 + fill: #FF6161; 60 + } 61 + 62 + #error-id { 63 + fill: #2c2c2c; 64 + } 65 + } 66 + 67 + a { 68 + color: inherit; 69 + font-weight: 700; 70 + text-decoration: underline; 71 + text-underline-offset: 0.0925em; 72 + } 73 + 74 + b, strong { 75 + font-weight: 700; 76 + } 77 + 78 + i, em { 79 + font-style: italic; 80 + } 81 + 82 + main { 83 + display: grid; 84 + gap: 1em; 85 + padding: 2em; 86 + place-items: center; 87 + text-align: center; 88 + } 89 + 90 + main header { 91 + width: min(100%, 12em); 92 + } 93 + 94 + main header svg { 95 + height: auto; 96 + max-width: 100%; 97 + width: 100%; 98 + } 99 + 100 + main article { 101 + width: min(100%, 30em); 102 + } 103 + 104 + main article p { 105 + font-size: 75%; 106 + } 107 + 108 + main article br { 109 + display: none; 110 + 111 + @media(min-width: 48em) { 112 + display: inline; 113 + } 114 + } 115 + 116 + </style> 117 + 118 + </head> 119 + 120 + <body> 121 + 122 + <!-- This file lives in public/500.html --> 123 + 124 + <main> 125 + <header> 126 + <svg height="172" viewBox="0 0 480 172" width="480" xmlns="http://www.w3.org/2000/svg"><path d="m101.23 93.8427c-8.1103 0-15.4098 3.7849-19.7354 8.3813h-36.2269v-99.21891h103.8143v37.03791h-68.3984v24.8722c5.1366-2.7035 15.1396-5.9477 24.6014-5.9477 35.146 0 56.233 22.7094 56.233 55.4215 0 34.605-23.791 57.315-60.558 57.315-37.8492 0-61.64-22.169-63.8028-55.963h42.9857c1.0814 10.814 9.1919 19.195 21.6281 19.195 11.355 0 19.465-8.381 19.465-20.547 0-11.625-7.299-20.5463-20.006-20.5463zm138.833 77.8613c-40.822 0-64.884-35.146-64.884-85.7015 0-50.5554 24.062-85.700907 64.884-85.700907 40.823 0 64.884 35.145507 64.884 85.700907 0 50.5555-24.061 85.7015-64.884 85.7015zm0-133.2831c-17.572 0-22.709 21.8984-22.709 47.5816 0 25.6835 5.137 47.5815 22.709 47.5815 17.303 0 22.71-21.898 22.71-47.5815 0-25.6832-5.407-47.5816-22.71-47.5816zm140.456 133.2831c-40.823 0-64.884-35.146-64.884-85.7015 0-50.5554 24.061-85.700907 64.884-85.700907 40.822 0 64.884 35.145507 64.884 85.700907 0 50.5555-24.062 85.7015-64.884 85.7015zm0-133.2831c-17.573 0-22.71 21.8984-22.71 47.5816 0 25.6835 5.137 47.5815 22.71 47.5815 17.302 0 22.709-21.898 22.709-47.5815 0-25.6832-5.407-47.5816-22.709-47.5816z" id="error-id"/><path d="m23.1377 68.9967v34.0033h-8.9162v-34.0033zm4.3157 34.0033v-24.921h8.6947v2.1598c1.3845-1.5506 3.8212-2.7136 6.701-2.7136 5.538 0 8.8054 3.5997 8.8054 9.1377v16.3371h-8.6393v-14.2327c0-2.049-1.0522-3.5443-3.2674-3.5443-1.7168 0-3.1567.9969-3.5997 2.7136v15.0634zm29.9913-8.5839v-9.5807h-3.655v-6.7564h3.655v-6.8671h8.5839v6.8671h5.2058v6.7564h-5.2058v8.307c0 1.9383.9415 2.769 2.6583 2.769.9414 0 1.9937-.2216 2.769-.5538v7.3654c-.9969.443-2.8798.775-4.8181.775-5.8703 0-9.1931-2.769-9.1931-9.0819zm32.3666-.1108h8.0301c-.8861 5.7597-5.2057 9.2487-11.6852 9.2487-7.6424 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.3165-13.0143 12.5159-13.0143 7.6424 0 11.9621 5.095 11.9621 12.5159v2.1598h-16.1156c.2769 2.9905 1.8275 4.5965 4.3196 4.5965 1.7722 0 3.1567-.7753 3.6551-2.4921zm-3.8212-10.0237c-2.0491 0-3.4336 1.2737-3.9874 3.5997h7.5317c-.1107-2.0491-1.3845-3.5997-3.5443-3.5997zm31.4299-6.3134v8.3624c-1.052-.5538-2.215-.7753-3.599-.7753-2.382 0-3.988 1.0522-4.431 2.8244v14.6203h-8.694v-24.921h8.694v2.2152c1.219-1.6614 3.157-2.769 5.649-2.769 1.108 0 1.994.2215 2.381.443zm2.949 25.0318v-24.921h8.694v2.1598c1.385-1.5506 3.821-2.7136 6.701-2.7136 5.538 0 8.806 3.5997 8.806 9.1377v16.3371h-8.64v-14.2327c0-2.049-1.052-3.5443-3.267-3.5443-1.717 0-3.157.9969-3.6 2.7136v15.0634zm50.371 0h-8.363v-1.274c-.83.831-3.323 1.717-5.981 1.717-4.929 0-9.082-2.769-9.082-8.0301 0-4.818 4.153-7.9193 9.581-7.9193 2.049 0 4.485.6646 5.482 1.3845v-1.606c0-1.606-.941-2.9905-3.046-2.9905-1.606 0-2.547.7199-2.935 1.8275h-8.196c.72-4.8181 4.984-8.6393 11.408-8.6393 7.089 0 11.132 3.7659 11.132 10.2453zm-8.363-6.9779v-1.4399c-.554-1.0522-2.049-1.7167-3.655-1.7167-1.717 0-3.433.7199-3.433 2.3813 0 1.7168 1.716 2.4367 3.433 2.4367 1.606 0 3.101-.6645 3.655-1.6614zm20.742-29.0191v35.997h-8.694v-35.997zm13.036 25.9178h9.248c.72 2.326 2.714 3.489 5.483 3.489 2.713 0 4.596-1.163 4.596-3.2674 0-1.6061-1.052-2.326-3.212-2.8244l-6.534-1.3845c-4.985-1.1076-8.751-3.7105-8.751-9.47 0-6.6456 5.538-11.0206 13.07-11.0206 8.307 0 13.014 4.5411 13.956 10.4114h-8.695c-.72-1.8829-2.27-3.3228-5.205-3.3228-2.548 0-4.265 1.1076-4.265 2.9905 0 1.4953 1.052 2.326 2.825 2.7137l6.645 1.5506c5.815 1.3845 9.027 4.5412 9.027 9.8023 0 6.9778-5.87 10.9654-13.291 10.9654-8.141 0-13.679-3.9322-14.897-10.6332zm46.509 1.3845h8.031c-.887 5.7597-5.206 9.2487-11.686 9.2487-7.642 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.317-13.0143 12.516-13.0143 7.643 0 11.962 5.095 11.962 12.5159v2.1598h-16.115c.277 2.9905 1.827 4.5965 4.319 4.5965 1.773 0 3.157-.7753 3.655-2.4921zm-3.821-10.0237c-2.049 0-3.433 1.2737-3.987 3.5997h7.532c-.111-2.0491-1.385-3.5997-3.545-3.5997zm31.431-6.3134v8.3624c-1.053-.5538-2.216-.7753-3.6-.7753-2.381 0-3.988 1.0522-4.431 2.8244v14.6203h-8.694v-24.921h8.694v2.2152c1.219-1.6614 3.157-2.769 5.649-2.769 1.108 0 1.994.2215 2.382.443zm18.288 25.0318h-7.809l-9.47-24.921h8.861l4.763 14.288 4.652-14.288h8.528zm25.614-8.6947h8.03c-.886 5.7597-5.206 9.2487-11.685 9.2487-7.642 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.316-13.0143 12.516-13.0143 7.642 0 11.962 5.095 11.962 12.5159v2.1598h-16.116c.277 2.9905 1.828 4.5965 4.32 4.5965 1.772 0 3.157-.7753 3.655-2.4921zm-3.821-10.0237c-2.049 0-3.434 1.2737-3.988 3.5997h7.532c-.111-2.0491-1.384-3.5997-3.544-3.5997zm31.43-6.3134v8.3624c-1.052-.5538-2.215-.7753-3.6-.7753-2.381 0-3.987 1.0522-4.43 2.8244v14.6203h-8.695v-24.921h8.695v2.2152c1.218-1.6614 3.157-2.769 5.649-2.769 1.107 0 1.993.2215 2.381.443zm13.703-8.9715h24.312v7.6424h-15.562v5.3165h14.232v7.4763h-14.232v5.8703h15.562v7.6978h-24.312zm44.667 8.9715v8.3624c-1.052-.5538-2.215-.7753-3.6-.7753-2.381 0-3.987 1.0522-4.43 2.8244v14.6203h-8.695v-24.921h8.695v2.2152c1.218-1.6614 3.156-2.769 5.648-2.769 1.108 0 1.994.2215 2.382.443zm19.673 0v8.3624c-1.053-.5538-2.216-.7753-3.6-.7753-2.381 0-3.987 1.0522-4.43 2.8244v14.6203h-8.695v-24.921h8.695v2.2152c1.218-1.6614 3.156-2.769 5.648-2.769 1.108 0 1.994.2215 2.382.443zm26.769 12.5713c0 7.6978-5.15 13.0145-12.737 13.0145-7.532 0-12.738-5.3167-12.738-13.0145s5.206-13.0143 12.738-13.0143c7.587 0 12.737 5.3165 12.737 13.0143zm-8.529 0c0-3.4336-1.495-5.8703-4.208-5.8703-2.659 0-4.154 2.4367-4.154 5.8703s1.495 5.8149 4.154 5.8149c2.713 0 4.208-2.3813 4.208-5.8149zm28.082-12.5713v8.3624c-1.052-.5538-2.215-.7753-3.6-.7753-2.381 0-3.987 1.0522-4.43 2.8244v14.6203h-8.695v-24.921h8.695v2.2152c1.218-1.6614 3.157-2.769 5.649-2.769 1.107 0 1.993.2215 2.381.443z" id="error-description"/></svg> 127 + </header> 128 + <article> 129 + <p><strong>We're sorry, but something went wrong.</strong><br> If you're the application owner check the logs for more information.</p> 130 + </article> 131 + </main> 132 + 133 + </body> 134 + 135 + </html>
public/icon.png

This is a binary file and will not be displayed.

+3
public/icon.svg
··· 1 + <svg width="512" height="512" xmlns="http://www.w3.org/2000/svg"> 2 + <circle cx="256" cy="256" r="256" fill="red"/> 3 + </svg>
+1
public/robots.txt
··· 1 + # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
script/.keep

This is a binary file and will not be displayed.

storage/.keep

This is a binary file and will not be displayed.

+5
test/application_system_test_case.rb
··· 1 + require "test_helper" 2 + 3 + class ApplicationSystemTestCase < ActionDispatch::SystemTestCase 4 + driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ] 5 + end
test/controllers/.keep

This is a binary file and will not be displayed.

test/fixtures/files/.keep

This is a binary file and will not be displayed.

test/helpers/.keep

This is a binary file and will not be displayed.

test/integration/.keep

This is a binary file and will not be displayed.

test/mailers/.keep

This is a binary file and will not be displayed.

test/models/.keep

This is a binary file and will not be displayed.

test/system/.keep

This is a binary file and will not be displayed.

+15
test/test_helper.rb
··· 1 + ENV["RAILS_ENV"] ||= "test" 2 + require_relative "../config/environment" 3 + require "rails/test_help" 4 + 5 + module ActiveSupport 6 + class TestCase 7 + # Run tests in parallel with specified workers 8 + parallelize(workers: :number_of_processors) 9 + 10 + # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. 11 + fixtures :all 12 + 13 + # Add more helper methods to be used by all tests here... 14 + end 15 + end
tmp/.keep

This is a binary file and will not be displayed.

tmp/pids/.keep

This is a binary file and will not be displayed.

tmp/storage/.keep

This is a binary file and will not be displayed.

vendor/.keep

This is a binary file and will not be displayed.

vendor/javascript/.keep

This is a binary file and will not be displayed.