├── .dockerignore ├── .gitattributes ├── .gitignore ├── .ruby-version ├── Dockerfile ├── Gemfile ├── Gemfile.lock ├── Procfile.dev ├── README.md ├── Rakefile ├── app ├── assets │ ├── config │ │ └── manifest.js │ ├── images │ │ └── .keep │ └── stylesheets │ │ └── application.css ├── channels │ └── application_cable │ │ ├── channel.rb │ │ └── connection.rb ├── controllers │ ├── application_controller.rb │ ├── concerns │ │ └── .keep │ ├── home_controller.rb │ └── islands_controller.rb ├── helpers │ ├── application_helper.rb │ └── home_helper.rb ├── javascript │ └── entrypoints │ │ └── application.js ├── jobs │ └── application_job.rb ├── mailers │ └── application_mailer.rb ├── models │ ├── application_record.rb │ └── concerns │ │ └── .keep └── views │ ├── home │ └── index.html.erb │ ├── islands │ ├── _island_1.css │ ├── _island_1.html.erb │ ├── _island_1.js │ ├── _island_2.css │ ├── _island_2.html.erb │ ├── _island_2.js │ └── show.html.erb │ └── layouts │ ├── application.html.erb │ ├── mailer.html.erb │ └── mailer.text.erb ├── bin ├── bundle ├── docker-entrypoint ├── importmap ├── rails ├── rake ├── setup └── vite ├── config.ru ├── config ├── application.rb ├── boot.rb ├── cable.yml ├── credentials.yml.enc ├── database.yml ├── environment.rb ├── environments │ ├── development.rb │ ├── production.rb │ └── test.rb ├── initializers │ ├── content_security_policy.rb │ ├── filter_parameter_logging.rb │ ├── inflections.rb │ └── permissions_policy.rb ├── locales │ └── en.yml ├── puma.rb ├── routes.rb ├── storage.yml └── vite.json ├── db └── seeds.rb ├── lib ├── assets │ └── .keep └── tasks │ └── .keep ├── log └── .keep ├── package-lock.json ├── package.json ├── public ├── 404.html ├── 422.html ├── 500.html ├── apple-touch-icon-precomposed.png ├── apple-touch-icon.png ├── favicon.ico └── robots.txt ├── storage └── .keep ├── test ├── application_system_test_case.rb ├── channels │ └── application_cable │ │ └── connection_test.rb ├── controllers │ ├── .keep │ └── home_controller_test.rb ├── fixtures │ └── files │ │ └── .keep ├── helpers │ └── .keep ├── integration │ └── .keep ├── mailers │ └── .keep ├── models │ └── .keep ├── system │ └── .keep └── test_helper.rb ├── tmp ├── .keep ├── pids │ └── .keep └── storage │ └── .keep ├── vendor ├── .keep └── javascript │ └── .keep └── vite.config.ts /.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 | 6 | # Ignore bundler config. 7 | /.bundle 8 | 9 | # Ignore all environment files (except templates). 10 | /.env* 11 | !/.env*.erb 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 | -------------------------------------------------------------------------------- /.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 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files for more about ignoring files. 2 | # 3 | # If you find yourself ignoring temporary files generated by your text editor 4 | # or operating system, you probably want to add a global ignore instead: 5 | # git config --global core.excludesfile '~/.gitignore_global' 6 | 7 | # Ignore bundler config. 8 | /.bundle 9 | 10 | # Ignore all environment files (except templates). 11 | /.env* 12 | !/.env*.erb 13 | 14 | # Ignore all logfiles and tempfiles. 15 | /log/* 16 | /tmp/* 17 | !/log/.keep 18 | !/tmp/.keep 19 | 20 | # Ignore pidfiles, but keep the directory. 21 | /tmp/pids/* 22 | !/tmp/pids/ 23 | !/tmp/pids/.keep 24 | 25 | # Ignore storage (uploaded files in development and any SQLite databases). 26 | /storage/* 27 | !/storage/.keep 28 | /tmp/storage/* 29 | !/tmp/storage/ 30 | !/tmp/storage/.keep 31 | 32 | /public/assets 33 | 34 | # Ignore master key for decrypting credentials and more. 35 | /config/master.key 36 | 37 | # Vite Ruby 38 | /public/vite* 39 | node_modules 40 | # Vite uses dotenv and suggests to ignore local-only env files. See 41 | # https://vitejs.dev/guide/env-and-mode.html#env-files 42 | *.local 43 | 44 | -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | ruby-3.3.0 2 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax = docker/dockerfile:1 2 | 3 | # Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile 4 | ARG RUBY_VERSION=3.3.0 5 | FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base 6 | 7 | # Rails app lives here 8 | WORKDIR /rails 9 | 10 | # Set production environment 11 | ENV RAILS_ENV="production" \ 12 | BUNDLE_DEPLOYMENT="1" \ 13 | BUNDLE_PATH="/usr/local/bundle" \ 14 | BUNDLE_WITHOUT="development" 15 | 16 | 17 | # Throw-away build stage to reduce size of final image 18 | FROM base as build 19 | 20 | # Install packages needed to build gems 21 | RUN apt-get update -qq && \ 22 | apt-get install --no-install-recommends -y build-essential git libvips pkg-config 23 | 24 | # Install application gems 25 | COPY Gemfile Gemfile.lock ./ 26 | RUN bundle install && \ 27 | rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \ 28 | bundle exec bootsnap precompile --gemfile 29 | 30 | # Copy application code 31 | COPY . . 32 | 33 | # Precompile bootsnap code for faster boot times 34 | RUN bundle exec bootsnap precompile app/ lib/ 35 | 36 | # Precompiling assets for production without requiring secret RAILS_MASTER_KEY 37 | RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile 38 | 39 | 40 | # Final stage for app image 41 | FROM base 42 | 43 | # Install packages needed for deployment 44 | RUN apt-get update -qq && \ 45 | apt-get install --no-install-recommends -y curl libsqlite3-0 libvips && \ 46 | rm -rf /var/lib/apt/lists /var/cache/apt/archives 47 | 48 | # Copy built artifacts: gems, application 49 | COPY --from=build /usr/local/bundle /usr/local/bundle 50 | COPY --from=build /rails /rails 51 | 52 | # Run and own only the runtime files as a non-root user for security 53 | RUN useradd rails --create-home --shell /bin/bash && \ 54 | chown -R rails:rails db log storage tmp 55 | USER rails:rails 56 | 57 | # Entrypoint prepares the database. 58 | ENTRYPOINT ["/rails/bin/docker-entrypoint"] 59 | 60 | # Start the server by default, this can be overwritten at runtime 61 | EXPOSE 3000 62 | CMD ["./bin/rails", "server"] 63 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | ruby "3.3.0" 4 | 5 | # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" 6 | gem "rails", "~> 7.1.3", ">= 7.1.3.2" 7 | 8 | # Use sqlite3 as the database for Active Record 9 | gem "sqlite3", "~> 1.4" 10 | 11 | # Use the Puma web server [https://github.com/puma/puma] 12 | gem "puma", ">= 5.0" 13 | 14 | # Build JSON APIs with ease [https://github.com/rails/jbuilder] 15 | gem "jbuilder" 16 | 17 | # Use Redis adapter to run Action Cable in production 18 | gem "redis", ">= 4.0.1" 19 | 20 | # Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis] 21 | # gem "kredis" 22 | 23 | # Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] 24 | # gem "bcrypt", "~> 3.1.7" 25 | 26 | # Windows does not include zoneinfo files, so bundle the tzinfo-data gem 27 | gem "tzinfo-data", platforms: %i[ windows jruby ] 28 | 29 | # Reduces boot times through caching; required in config/boot.rb 30 | gem "bootsnap", require: false 31 | 32 | # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] 33 | # gem "image_processing", "~> 1.2" 34 | 35 | group :development, :test do 36 | # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem 37 | gem "debug", platforms: %i[ mri windows ] 38 | end 39 | 40 | group :development do 41 | # Use console on exceptions pages [https://github.com/rails/web-console] 42 | gem "web-console" 43 | 44 | # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler] 45 | # gem "rack-mini-profiler" 46 | 47 | # Speed up commands on slow machines / big apps [https://github.com/rails/spring] 48 | # gem "spring" 49 | end 50 | 51 | group :test do 52 | # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing] 53 | gem "capybara" 54 | gem "selenium-webdriver" 55 | end 56 | 57 | gem "vite_rails", "~> 3.0" 58 | -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | actioncable (7.1.3.4) 5 | actionpack (= 7.1.3.4) 6 | activesupport (= 7.1.3.4) 7 | nio4r (~> 2.0) 8 | websocket-driver (>= 0.6.1) 9 | zeitwerk (~> 2.6) 10 | actionmailbox (7.1.3.4) 11 | actionpack (= 7.1.3.4) 12 | activejob (= 7.1.3.4) 13 | activerecord (= 7.1.3.4) 14 | activestorage (= 7.1.3.4) 15 | activesupport (= 7.1.3.4) 16 | mail (>= 2.7.1) 17 | net-imap 18 | net-pop 19 | net-smtp 20 | actionmailer (7.1.3.4) 21 | actionpack (= 7.1.3.4) 22 | actionview (= 7.1.3.4) 23 | activejob (= 7.1.3.4) 24 | activesupport (= 7.1.3.4) 25 | mail (~> 2.5, >= 2.5.4) 26 | net-imap 27 | net-pop 28 | net-smtp 29 | rails-dom-testing (~> 2.2) 30 | actionpack (7.1.3.4) 31 | actionview (= 7.1.3.4) 32 | activesupport (= 7.1.3.4) 33 | nokogiri (>= 1.8.5) 34 | racc 35 | rack (>= 2.2.4) 36 | rack-session (>= 1.0.1) 37 | rack-test (>= 0.6.3) 38 | rails-dom-testing (~> 2.2) 39 | rails-html-sanitizer (~> 1.6) 40 | actiontext (7.1.3.4) 41 | actionpack (= 7.1.3.4) 42 | activerecord (= 7.1.3.4) 43 | activestorage (= 7.1.3.4) 44 | activesupport (= 7.1.3.4) 45 | globalid (>= 0.6.0) 46 | nokogiri (>= 1.8.5) 47 | actionview (7.1.3.4) 48 | activesupport (= 7.1.3.4) 49 | builder (~> 3.1) 50 | erubi (~> 1.11) 51 | rails-dom-testing (~> 2.2) 52 | rails-html-sanitizer (~> 1.6) 53 | activejob (7.1.3.4) 54 | activesupport (= 7.1.3.4) 55 | globalid (>= 0.3.6) 56 | activemodel (7.1.3.4) 57 | activesupport (= 7.1.3.4) 58 | activerecord (7.1.3.4) 59 | activemodel (= 7.1.3.4) 60 | activesupport (= 7.1.3.4) 61 | timeout (>= 0.4.0) 62 | activestorage (7.1.3.4) 63 | actionpack (= 7.1.3.4) 64 | activejob (= 7.1.3.4) 65 | activerecord (= 7.1.3.4) 66 | activesupport (= 7.1.3.4) 67 | marcel (~> 1.0) 68 | activesupport (7.1.3.4) 69 | base64 70 | bigdecimal 71 | concurrent-ruby (~> 1.0, >= 1.0.2) 72 | connection_pool (>= 2.2.5) 73 | drb 74 | i18n (>= 1.6, < 2) 75 | minitest (>= 5.1) 76 | mutex_m 77 | tzinfo (~> 2.0) 78 | addressable (2.8.7) 79 | public_suffix (>= 2.0.2, < 7.0) 80 | base64 (0.2.0) 81 | bigdecimal (3.1.8) 82 | bindex (0.8.1) 83 | bootsnap (1.18.3) 84 | msgpack (~> 1.2) 85 | builder (3.3.0) 86 | capybara (3.40.0) 87 | addressable 88 | matrix 89 | mini_mime (>= 0.1.3) 90 | nokogiri (~> 1.11) 91 | rack (>= 1.6.0) 92 | rack-test (>= 0.6.3) 93 | regexp_parser (>= 1.5, < 3.0) 94 | xpath (~> 3.2) 95 | concurrent-ruby (1.3.3) 96 | connection_pool (2.4.1) 97 | crass (1.0.6) 98 | date (3.3.4) 99 | debug (1.9.2) 100 | irb (~> 1.10) 101 | reline (>= 0.3.8) 102 | drb (2.2.1) 103 | dry-cli (1.0.0) 104 | erubi (1.13.0) 105 | globalid (1.2.1) 106 | activesupport (>= 6.1) 107 | i18n (1.14.5) 108 | concurrent-ruby (~> 1.0) 109 | io-console (0.7.2) 110 | irb (1.14.0) 111 | rdoc (>= 4.0.0) 112 | reline (>= 0.4.2) 113 | jbuilder (2.12.0) 114 | actionview (>= 5.0.0) 115 | activesupport (>= 5.0.0) 116 | logger (1.6.0) 117 | loofah (2.22.0) 118 | crass (~> 1.0.2) 119 | nokogiri (>= 1.12.0) 120 | mail (2.8.1) 121 | mini_mime (>= 0.1.1) 122 | net-imap 123 | net-pop 124 | net-smtp 125 | marcel (1.0.4) 126 | matrix (0.4.2) 127 | mini_mime (1.1.5) 128 | minitest (5.24.1) 129 | msgpack (1.7.2) 130 | mutex_m (0.2.0) 131 | net-imap (0.4.14) 132 | date 133 | net-protocol 134 | net-pop (0.1.2) 135 | net-protocol 136 | net-protocol (0.2.2) 137 | timeout 138 | net-smtp (0.5.0) 139 | net-protocol 140 | nio4r (2.7.3) 141 | nokogiri (1.16.6-aarch64-linux) 142 | racc (~> 1.4) 143 | nokogiri (1.16.6-arm-linux) 144 | racc (~> 1.4) 145 | nokogiri (1.16.6-arm64-darwin) 146 | racc (~> 1.4) 147 | nokogiri (1.16.6-x86-linux) 148 | racc (~> 1.4) 149 | nokogiri (1.16.6-x86_64-darwin) 150 | racc (~> 1.4) 151 | nokogiri (1.16.6-x86_64-linux) 152 | racc (~> 1.4) 153 | psych (5.1.2) 154 | stringio 155 | public_suffix (6.0.0) 156 | puma (6.4.2) 157 | nio4r (~> 2.0) 158 | racc (1.8.0) 159 | rack (3.1.6) 160 | rack-proxy (0.7.7) 161 | rack 162 | rack-session (2.0.0) 163 | rack (>= 3.0.0) 164 | rack-test (2.1.0) 165 | rack (>= 1.3) 166 | rackup (2.1.0) 167 | rack (>= 3) 168 | webrick (~> 1.8) 169 | rails (7.1.3.4) 170 | actioncable (= 7.1.3.4) 171 | actionmailbox (= 7.1.3.4) 172 | actionmailer (= 7.1.3.4) 173 | actionpack (= 7.1.3.4) 174 | actiontext (= 7.1.3.4) 175 | actionview (= 7.1.3.4) 176 | activejob (= 7.1.3.4) 177 | activemodel (= 7.1.3.4) 178 | activerecord (= 7.1.3.4) 179 | activestorage (= 7.1.3.4) 180 | activesupport (= 7.1.3.4) 181 | bundler (>= 1.15.0) 182 | railties (= 7.1.3.4) 183 | rails-dom-testing (2.2.0) 184 | activesupport (>= 5.0.0) 185 | minitest 186 | nokogiri (>= 1.6) 187 | rails-html-sanitizer (1.6.0) 188 | loofah (~> 2.21) 189 | nokogiri (~> 1.14) 190 | railties (7.1.3.4) 191 | actionpack (= 7.1.3.4) 192 | activesupport (= 7.1.3.4) 193 | irb 194 | rackup (>= 1.0.0) 195 | rake (>= 12.2) 196 | thor (~> 1.0, >= 1.2.2) 197 | zeitwerk (~> 2.6) 198 | rake (13.2.1) 199 | rdoc (6.7.0) 200 | psych (>= 4.0.0) 201 | redis (5.2.0) 202 | redis-client (>= 0.22.0) 203 | redis-client (0.22.2) 204 | connection_pool 205 | regexp_parser (2.9.2) 206 | reline (0.5.9) 207 | io-console (~> 0.5) 208 | rexml (3.3.1) 209 | strscan 210 | rubyzip (2.3.2) 211 | selenium-webdriver (4.22.0) 212 | base64 (~> 0.2) 213 | logger (~> 1.4) 214 | rexml (~> 3.2, >= 3.2.5) 215 | rubyzip (>= 1.2.2, < 3.0) 216 | websocket (~> 1.0) 217 | sqlite3 (1.7.3-aarch64-linux) 218 | sqlite3 (1.7.3-arm-linux) 219 | sqlite3 (1.7.3-arm64-darwin) 220 | sqlite3 (1.7.3-x86-linux) 221 | sqlite3 (1.7.3-x86_64-darwin) 222 | sqlite3 (1.7.3-x86_64-linux) 223 | stringio (3.1.1) 224 | strscan (3.1.0) 225 | thor (1.3.1) 226 | timeout (0.4.1) 227 | tzinfo (2.0.6) 228 | concurrent-ruby (~> 1.0) 229 | vite_rails (3.0.17) 230 | railties (>= 5.1, < 8) 231 | vite_ruby (~> 3.0, >= 3.2.2) 232 | vite_ruby (3.6.0) 233 | dry-cli (>= 0.7, < 2) 234 | rack-proxy (~> 0.6, >= 0.6.1) 235 | zeitwerk (~> 2.2) 236 | web-console (4.2.1) 237 | actionview (>= 6.0.0) 238 | activemodel (>= 6.0.0) 239 | bindex (>= 0.4.0) 240 | railties (>= 6.0.0) 241 | webrick (1.8.1) 242 | websocket (1.2.10) 243 | websocket-driver (0.7.6) 244 | websocket-extensions (>= 0.1.0) 245 | websocket-extensions (0.1.5) 246 | xpath (3.2.0) 247 | nokogiri (~> 1.8) 248 | zeitwerk (2.6.16) 249 | 250 | PLATFORMS 251 | aarch64-linux 252 | arm-linux 253 | arm64-darwin 254 | x86-linux 255 | x86_64-darwin 256 | x86_64-linux 257 | 258 | DEPENDENCIES 259 | bootsnap 260 | capybara 261 | debug 262 | jbuilder 263 | puma (>= 5.0) 264 | rails (~> 7.1.3, >= 7.1.3.2) 265 | redis (>= 4.0.1) 266 | selenium-webdriver 267 | sqlite3 (~> 1.4) 268 | tzinfo-data 269 | vite_rails (~> 3.0) 270 | web-console 271 | 272 | RUBY VERSION 273 | ruby 3.3.0p0 274 | 275 | BUNDLED WITH 276 | 2.5.6 277 | -------------------------------------------------------------------------------- /Procfile.dev: -------------------------------------------------------------------------------- 1 | vite: bin/vite dev 2 | web: PORT=3000 bin/rails s 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Purpose 2 | 3 | A small POC of how you could implement "islands" in Rails using Vite + Turbo frames 4 | 5 | ## Demonstration 6 | 7 | 8 | 9 | ## How does it work? 10 | 11 | It works by (ab)using `additionalEntrypoints` from Vite Rails, and then using View paths as conventions to grab the associated "sidecar assets" (co-located CSS / JS files) and loads them via ``s. It also comes with an `IslandsController` for lazy loading an island from a URL. 12 | 13 | ## Whats been modified to make this work? 14 | 15 | `config/vite.json` has the following: `"additionalEntrypoints": ["app/views/islands/**/*.(js|css)"]` 16 | 17 | This tells it to treat any JS or CSS files in `app/views/islands` as an entrypoint that can be loaded with: 18 | 19 | ```erb 20 | 21 | <%= vite_javascript_tag "/app/views/islands/_island_1.js" %> 22 | <%= vite_stylesheet_tag "/app/views/islands/_island_1.css" %> 23 | 24 | 25 | 26 | ``` 27 | 28 | There's also an `IslandsController` which is responsible for lazy-loading islands from a url like: 29 | 30 | `GET /islands/island_1` 31 | 32 | ## Key points: 33 | 34 | - Supports lazy loaded islands that go to `/islands/:id` and the controller will load up the proper HTML / CSS / JS and insert via `` 35 | - Could swap out `` for a solution like `` for more advanced loading or some other lazy loading solution that doesn't link via id so you can load the same island multiple times on the same page. 36 | 37 | ## Caveats 38 | 39 | - The steps for making an island are very manual right now by needing to wrap in a ``, supply an `id`, and manually add the CSS / JS files to be loaded in the view. (Check out [app/views/islands](/app/views/islands) and check out the `.html.erb` partials to see how this is done. 40 | 41 | - Right now only 1 instance of any particular island is allowed per page due to how `` requires ids to work properly. This seems fine...I doubt you load the same island twice. This will also inject your CSS / JS from your island multiple times as well. 42 | 43 | ## Running the repo 44 | 45 | ```bash 46 | git clone https://github.com/KonnorRogers/rails-islands.git 47 | cd rails-islands 48 | bundle install 49 | npm install 50 | overmind start -f Procfile.dev 51 | ``` 52 | 53 | Then go to `localhost:3000` and check out the magic. 54 | 55 | -------------------------------------------------------------------------------- /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 7 | -------------------------------------------------------------------------------- /app/assets/config/manifest.js: -------------------------------------------------------------------------------- 1 | //= link_tree ../images 2 | //= link_directory ../stylesheets .css 3 | //= link_tree ../../javascript .js 4 | //= link_tree ../../../vendor/javascript .js 5 | -------------------------------------------------------------------------------- /app/assets/images/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/app/assets/images/.keep -------------------------------------------------------------------------------- /app/assets/stylesheets/application.css: -------------------------------------------------------------------------------- 1 | /* 2 | * This is a manifest file that'll be compiled into application.css, which will include all the files 3 | * listed below. 4 | * 5 | * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's 6 | * vendor/assets/stylesheets directory can be referenced here using a relative path. 7 | * 8 | * You're free to add application-wide styles to this file and they'll appear at the bottom of the 9 | * compiled file so the styles you add here take precedence over styles defined in any other CSS 10 | * files in this directory. Styles in this file should be added after the last require_* statement. 11 | * It is generally better to create a new file per style scope. 12 | * 13 | *= require_tree . 14 | *= require_self 15 | */ 16 | -------------------------------------------------------------------------------- /app/channels/application_cable/channel.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Channel < ActionCable::Channel::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /app/channels/application_cable/connection.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Connection < ActionCable::Connection::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /app/controllers/application_controller.rb: -------------------------------------------------------------------------------- 1 | class ApplicationController < ActionController::Base 2 | end 3 | -------------------------------------------------------------------------------- /app/controllers/concerns/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/app/controllers/concerns/.keep -------------------------------------------------------------------------------- /app/controllers/home_controller.rb: -------------------------------------------------------------------------------- 1 | class HomeController < ApplicationController 2 | def index 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /app/controllers/islands_controller.rb: -------------------------------------------------------------------------------- 1 | class IslandsController < ApplicationController 2 | def show 3 | sleep(5) # Used for demo purposes to simulate slow connection. 4 | @island_name = params[:id] 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/home_helper.rb: -------------------------------------------------------------------------------- 1 | module HomeHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/javascript/entrypoints/application.js: -------------------------------------------------------------------------------- 1 | // To see this message, add the following to the `` section in your 2 | // views/layouts/application.html.erb 3 | // 4 | // <%= vite_client_tag %> 5 | // <%= vite_javascript_tag 'application' %> 6 | console.log('Vite ⚡️ Rails') 7 | 8 | // If using a TypeScript entrypoint file: 9 | // <%= vite_typescript_tag 'application' %> 10 | // 11 | // If you want to use .jsx or .tsx, add the extension: 12 | // <%= vite_javascript_tag 'application.jsx' %> 13 | 14 | console.log('Visit the guide for more information: ', 'https://vite-ruby.netlify.app/guide/rails') 15 | 16 | // Example: Load Rails libraries in Vite. 17 | // 18 | import * as Turbo from '@hotwired/turbo' 19 | // Turbo.start() 20 | // 21 | // import ActiveStorage from '@rails/activestorage' 22 | // ActiveStorage.start() 23 | // 24 | // // Import all channels. 25 | // const channels = import.meta.globEager('./**/*_channel.js') 26 | 27 | // Example: Import a stylesheet in app/frontend/index.css 28 | // import '~/index.css' 29 | -------------------------------------------------------------------------------- /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 8 | -------------------------------------------------------------------------------- /app/mailers/application_mailer.rb: -------------------------------------------------------------------------------- 1 | class ApplicationMailer < ActionMailer::Base 2 | default from: "from@example.com" 3 | layout "mailer" 4 | end 5 | -------------------------------------------------------------------------------- /app/models/application_record.rb: -------------------------------------------------------------------------------- 1 | class ApplicationRecord < ActiveRecord::Base 2 | primary_abstract_class 3 | end 4 | -------------------------------------------------------------------------------- /app/models/concerns/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/app/models/concerns/.keep -------------------------------------------------------------------------------- /app/views/home/index.html.erb: -------------------------------------------------------------------------------- 1 |

Home#index

2 |

Find me in app/views/home/index.html.erb

3 | 4 | 12 | 13 | 14 | <%= render partial: "islands/island_1" %> 15 | 16 | 17 | 18 | Loading Island 2... 19 | 20 | -------------------------------------------------------------------------------- /app/views/islands/_island_1.css: -------------------------------------------------------------------------------- 1 | #island-1 { 2 | background-color: rgba(0, 0, 255, 0.54); 3 | } 4 | -------------------------------------------------------------------------------- /app/views/islands/_island_1.html.erb: -------------------------------------------------------------------------------- 1 | 6 | 7 | <% base_name = File.basename(__FILE__, ".html.erb") %> 8 | <% base_path = "/app/views/islands/#{base_name}" %> 9 | <%= vite_javascript_tag "#{base_path}.js" %> 10 | <%= vite_stylesheet_tag "#{base_path}.css" %> 11 | 12 |
13 | Hello from Island 1 14 |
15 |
16 | -------------------------------------------------------------------------------- /app/views/islands/_island_1.js: -------------------------------------------------------------------------------- 1 | console.log("Hello from island_1") 2 | -------------------------------------------------------------------------------- /app/views/islands/_island_2.css: -------------------------------------------------------------------------------- 1 | /** for when its lazy loaded */ 2 | #island-2 { 3 | background-color: rgba(0, 255, 0, 0.54); 4 | } 5 | -------------------------------------------------------------------------------- /app/views/islands/_island_2.html.erb: -------------------------------------------------------------------------------- 1 | 2 | <% base_name = File.basename(__FILE__, ".html.erb") %> 3 | <% base_path = "/app/views/islands/#{base_name}" %> 4 | <%= vite_javascript_tag "#{base_path}.js" %> 5 | <%= vite_stylesheet_tag "#{base_path}.css" %> 6 | 7 |
8 | Hello From Island 2 9 |
10 |
11 | -------------------------------------------------------------------------------- /app/views/islands/_island_2.js: -------------------------------------------------------------------------------- 1 | console.log("Hello from island_2") 2 | -------------------------------------------------------------------------------- /app/views/islands/show.html.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: "islands/#{@island_name}" %> 2 | -------------------------------------------------------------------------------- /app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Rails Islands 5 | 6 | <%= csrf_meta_tags %> 7 | <%= csp_meta_tag %> 8 | 9 | <%= vite_client_tag %> 10 | <%= vite_javascript_tag 'application' %> 11 | <%# <%= vite_stylesheet_tag 'application' %1> %> 12 | 13 | 14 | 15 | <%= yield %> 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/views/layouts/mailer.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | <%= yield %> 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/views/layouts/mailer.text.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /bin/bundle: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | # 5 | # This file was generated by Bundler. 6 | # 7 | # The application 'bundle' is installed as part of a gem, and 8 | # this file is here to facilitate running it. 9 | # 10 | 11 | require "rubygems" 12 | 13 | m = Module.new do 14 | module_function 15 | 16 | def invoked_as_script? 17 | File.expand_path($0) == File.expand_path(__FILE__) 18 | end 19 | 20 | def env_var_version 21 | ENV["BUNDLER_VERSION"] 22 | end 23 | 24 | def cli_arg_version 25 | return unless invoked_as_script? # don't want to hijack other binstubs 26 | return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update` 27 | bundler_version = nil 28 | update_index = nil 29 | ARGV.each_with_index do |a, i| 30 | if update_index && update_index.succ == i && a.match?(Gem::Version::ANCHORED_VERSION_PATTERN) 31 | bundler_version = a 32 | end 33 | next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/ 34 | bundler_version = $1 35 | update_index = i 36 | end 37 | bundler_version 38 | end 39 | 40 | def gemfile 41 | gemfile = ENV["BUNDLE_GEMFILE"] 42 | return gemfile if gemfile && !gemfile.empty? 43 | 44 | File.expand_path("../Gemfile", __dir__) 45 | end 46 | 47 | def lockfile 48 | lockfile = 49 | case File.basename(gemfile) 50 | when "gems.rb" then gemfile.sub(/\.rb$/, ".locked") 51 | else "#{gemfile}.lock" 52 | end 53 | File.expand_path(lockfile) 54 | end 55 | 56 | def lockfile_version 57 | return unless File.file?(lockfile) 58 | lockfile_contents = File.read(lockfile) 59 | return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/ 60 | Regexp.last_match(1) 61 | end 62 | 63 | def bundler_requirement 64 | @bundler_requirement ||= 65 | env_var_version || 66 | cli_arg_version || 67 | bundler_requirement_for(lockfile_version) 68 | end 69 | 70 | def bundler_requirement_for(version) 71 | return "#{Gem::Requirement.default}.a" unless version 72 | 73 | bundler_gem_version = Gem::Version.new(version) 74 | 75 | bundler_gem_version.approximate_recommendation 76 | end 77 | 78 | def load_bundler! 79 | ENV["BUNDLE_GEMFILE"] ||= gemfile 80 | 81 | activate_bundler 82 | end 83 | 84 | def activate_bundler 85 | gem_error = activation_error_handling do 86 | gem "bundler", bundler_requirement 87 | end 88 | return if gem_error.nil? 89 | require_error = activation_error_handling do 90 | require "bundler/version" 91 | end 92 | return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION)) 93 | warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`" 94 | exit 42 95 | end 96 | 97 | def activation_error_handling 98 | yield 99 | nil 100 | rescue StandardError, LoadError => e 101 | e 102 | end 103 | end 104 | 105 | m.load_bundler! 106 | 107 | if m.invoked_as_script? 108 | load Gem.bin_path("bundler", "bundle") 109 | end 110 | -------------------------------------------------------------------------------- /bin/docker-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | # If running the rails server then create or migrate existing database 4 | if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then 5 | ./bin/rails db:prepare 6 | fi 7 | 8 | exec "${@}" 9 | -------------------------------------------------------------------------------- /bin/importmap: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require_relative "../config/application" 4 | require "importmap/commands" 5 | -------------------------------------------------------------------------------- /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" 5 | -------------------------------------------------------------------------------- /bin/rake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require_relative "../config/boot" 3 | require "rake" 4 | Rake.application.run 5 | -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require "fileutils" 3 | 4 | # path to your application root. 5 | APP_ROOT = File.expand_path("..", __dir__) 6 | 7 | def system!(*args) 8 | system(*args, exception: true) 9 | end 10 | 11 | FileUtils.chdir APP_ROOT do 12 | # This script is a way to set up or update your development environment automatically. 13 | # This script is idempotent, so that you can run it at any time and get an expectable outcome. 14 | # Add necessary setup steps to this file. 15 | 16 | puts "== Installing dependencies ==" 17 | system! "gem install bundler --conservative" 18 | system("bundle check") || system!("bundle install") 19 | 20 | # puts "\n== Copying sample files ==" 21 | # unless File.exist?("config/database.yml") 22 | # FileUtils.cp "config/database.yml.sample", "config/database.yml" 23 | # end 24 | 25 | puts "\n== Preparing database ==" 26 | system! "bin/rails db:prepare" 27 | 28 | puts "\n== Removing old logs and tempfiles ==" 29 | system! "bin/rails log:clear tmp:clear" 30 | 31 | puts "\n== Restarting application server ==" 32 | system! "bin/rails restart" 33 | end 34 | -------------------------------------------------------------------------------- /bin/vite: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | # 5 | # This file was generated by Bundler. 6 | # 7 | # The application 'vite' 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("vite_ruby", "vite") 28 | -------------------------------------------------------------------------------- /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 7 | -------------------------------------------------------------------------------- /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 RailsIslands 10 | class Application < Rails::Application 11 | # Initialize configuration defaults for originally generated Rails version. 12 | config.load_defaults 7.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 28 | -------------------------------------------------------------------------------- /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/cable.yml: -------------------------------------------------------------------------------- 1 | development: 2 | adapter: redis 3 | url: redis://localhost:6379/1 4 | 5 | test: 6 | adapter: test 7 | 8 | production: 9 | adapter: redis 10 | url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> 11 | channel_prefix: island_test_production 12 | -------------------------------------------------------------------------------- /config/credentials.yml.enc: -------------------------------------------------------------------------------- 1 | 58FwwDNRMQzaEO9i02gxNQLCE40PNjB4EpXlmO1lDcOy+Y9diDP5Ddf+yhwU1SDKMZj/kRMIiQH5sjPBfLlM8VKbNs6kd0KkNva0/XWQ3zqXgyXqkXAYabFUpteYJCV+irCWrAe/LZODd/6xUv3JwTCaJ2xTQoEQEAElm00YmoVqLwegIfoOewrGrfvEZsuXuMPQ4/mqQoEeBg2bzNsThOvIJBl/36raWy1ZdvgxUUaRtE38FKPaUOUBdmAvjt/Yw4SKJmRG5war91JPaF9JxFoDcZMB/0Dl0KhZ2XvmfkmK/L0ZR5o4gKpsUsnz9U1VeGAMjYjcBJC5bCBg92KHB5S9e4Wh5vJTXMovQCuWxFXqhgW/ZXqFU/rbDk1F62NvonJsw49zZ52cGRxckBFrrTSD/kyg--lbg9utQP8ZUZj5TG--QcrblKECncA46gaavSyLEw== -------------------------------------------------------------------------------- /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 | pool: <%= 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 | production: 24 | <<: *default 25 | database: storage/production.sqlite3 26 | -------------------------------------------------------------------------------- /config/environment.rb: -------------------------------------------------------------------------------- 1 | # Load the Rails application. 2 | require_relative "application" 3 | 4 | # Initialize the Rails application. 5 | Rails.application.initialize! 6 | -------------------------------------------------------------------------------- /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 | # In the development environment your application's code is reloaded any time 7 | # it changes. This slows down response time but is perfect for development 8 | # since you don't have to restart the web server when you make code changes. 9 | config.enable_reloading = true 10 | 11 | # Do not eager load code on boot. 12 | config.eager_load = false 13 | 14 | # Show full error reports. 15 | config.consider_all_requests_local = true 16 | 17 | # Enable server timing 18 | config.server_timing = true 19 | 20 | # Enable/disable caching. By default caching is disabled. 21 | # Run rails dev:cache to toggle caching. 22 | if Rails.root.join("tmp/caching-dev.txt").exist? 23 | config.action_controller.perform_caching = true 24 | config.action_controller.enable_fragment_cache_logging = true 25 | 26 | config.cache_store = :memory_store 27 | config.public_file_server.headers = { 28 | "Cache-Control" => "public, max-age=#{2.days.to_i}" 29 | } 30 | else 31 | config.action_controller.perform_caching = false 32 | 33 | config.cache_store = :null_store 34 | end 35 | 36 | # Store uploaded files on the local file system (see config/storage.yml for options). 37 | config.active_storage.service = :local 38 | 39 | # Don't care if the mailer can't send. 40 | config.action_mailer.raise_delivery_errors = false 41 | 42 | config.action_mailer.perform_caching = false 43 | 44 | # Print deprecation notices to the Rails logger. 45 | config.active_support.deprecation = :log 46 | 47 | # Raise exceptions for disallowed deprecations. 48 | config.active_support.disallowed_deprecation = :raise 49 | 50 | # Tell Active Support which deprecation messages to disallow. 51 | config.active_support.disallowed_deprecation_warnings = [] 52 | 53 | # Raise an error on page load if there are pending migrations. 54 | config.active_record.migration_error = :page_load 55 | 56 | # Highlight code that triggered database queries in logs. 57 | config.active_record.verbose_query_logs = true 58 | 59 | # Highlight code that enqueued background job in logs. 60 | config.active_job.verbose_enqueue_logs = true 61 | 62 | # Raises error for missing translations. 63 | # config.i18n.raise_on_missing_translations = true 64 | 65 | # Annotate rendered view with file names. 66 | # config.action_view.annotate_rendered_view_with_filenames = true 67 | 68 | # Uncomment if you wish to allow Action Cable access from any origin. 69 | # config.action_cable.disable_request_forgery_protection = true 70 | 71 | # Raise error when a before_action's only/except options reference missing actions 72 | config.action_controller.raise_on_missing_callback_actions = true 73 | end 74 | -------------------------------------------------------------------------------- /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. This eager loads most of Rails and 10 | # your application in memory, allowing both threaded web servers 11 | # and those relying on copy on write to perform better. 12 | # Rake tasks automatically ignore this option for performance. 13 | config.eager_load = true 14 | 15 | # Full error reports are disabled and caching is turned on. 16 | config.consider_all_requests_local = false 17 | config.action_controller.perform_caching = true 18 | 19 | # Ensures that a master key has been made available in ENV["RAILS_MASTER_KEY"], config/master.key, or an environment 20 | # key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files). 21 | # config.require_master_key = true 22 | 23 | # Disable serving static files from `public/`, relying on NGINX/Apache to do so instead. 24 | # config.public_file_server.enabled = false 25 | 26 | # Enable serving of images, stylesheets, and JavaScripts from an asset server. 27 | # config.asset_host = "http://assets.example.com" 28 | 29 | # Specifies the header that your server uses for sending files. 30 | # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache 31 | # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX 32 | 33 | # Store uploaded files on the local file system (see config/storage.yml for options). 34 | config.active_storage.service = :local 35 | 36 | # Mount Action Cable outside main process or domain. 37 | # config.action_cable.mount_path = nil 38 | # config.action_cable.url = "wss://example.com/cable" 39 | # config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ] 40 | 41 | # Assume all access to the app is happening through a SSL-terminating reverse proxy. 42 | # Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies. 43 | # config.assume_ssl = true 44 | 45 | # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. 46 | config.force_ssl = true 47 | 48 | # Log to STDOUT by default 49 | config.logger = ActiveSupport::Logger.new(STDOUT) 50 | .tap { |logger| logger.formatter = ::Logger::Formatter.new } 51 | .then { |logger| ActiveSupport::TaggedLogging.new(logger) } 52 | 53 | # Prepend all log lines with the following tags. 54 | config.log_tags = [ :request_id ] 55 | 56 | # "info" includes generic and useful information about system operation, but avoids logging too much 57 | # information to avoid inadvertent exposure of personally identifiable information (PII). If you 58 | # want to log everything, set the level to "debug". 59 | config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info") 60 | 61 | # Use a different cache store in production. 62 | # config.cache_store = :mem_cache_store 63 | 64 | # Use a real queuing backend for Active Job (and separate queues per environment). 65 | # config.active_job.queue_adapter = :resque 66 | # config.active_job.queue_name_prefix = "island_test_production" 67 | 68 | config.action_mailer.perform_caching = false 69 | 70 | # Ignore bad email addresses and do not raise email delivery errors. 71 | # Set this to true and configure the email server for immediate delivery to raise delivery errors. 72 | # config.action_mailer.raise_delivery_errors = false 73 | 74 | # Enable locale fallbacks for I18n (makes lookups for any locale fall back to 75 | # the I18n.default_locale when a translation cannot be found). 76 | config.i18n.fallbacks = true 77 | 78 | # Don't log any deprecations. 79 | config.active_support.report_deprecations = false 80 | 81 | # Do not dump schema after migrations. 82 | config.active_record.dump_schema_after_migration = false 83 | 84 | # Enable DNS rebinding protection and other `Host` header attacks. 85 | # config.hosts = [ 86 | # "example.com", # Allow requests from example.com 87 | # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com` 88 | # ] 89 | # Skip DNS rebinding protection for the default health check endpoint. 90 | # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } 91 | end 92 | -------------------------------------------------------------------------------- /config/environments/test.rb: -------------------------------------------------------------------------------- 1 | require "active_support/core_ext/integer/time" 2 | 3 | # The test environment is used exclusively to run your application's 4 | # test suite. You never need to work with it otherwise. Remember that 5 | # your test database is "scratch space" for the test suite and is wiped 6 | # and recreated between test runs. Don't rely on the data there! 7 | 8 | Rails.application.configure do 9 | # Settings specified here will take precedence over those in config/application.rb. 10 | 11 | # While tests run files are not watched, reloading is not necessary. 12 | config.enable_reloading = false 13 | 14 | # Eager loading loads your entire application. When running a single test locally, 15 | # this is usually not necessary, and can slow down your test suite. However, it's 16 | # recommended that you enable it in continuous integration systems to ensure eager 17 | # loading is working properly before deploying your code. 18 | config.eager_load = ENV["CI"].present? 19 | 20 | # Configure public file server for tests with Cache-Control for performance. 21 | config.public_file_server.enabled = true 22 | config.public_file_server.headers = { 23 | "Cache-Control" => "public, max-age=#{1.hour.to_i}" 24 | } 25 | 26 | # Show full error reports and disable caching. 27 | config.consider_all_requests_local = true 28 | config.action_controller.perform_caching = false 29 | config.cache_store = :null_store 30 | 31 | # Render exception templates for rescuable exceptions and raise for other exceptions. 32 | config.action_dispatch.show_exceptions = :rescuable 33 | 34 | # Disable request forgery protection in test environment. 35 | config.action_controller.allow_forgery_protection = false 36 | 37 | # Store uploaded files on the local file system in a temporary directory. 38 | config.active_storage.service = :test 39 | 40 | config.action_mailer.perform_caching = false 41 | 42 | # Tell Action Mailer not to deliver emails to the real world. 43 | # The :test delivery method accumulates sent emails in the 44 | # ActionMailer::Base.deliveries array. 45 | config.action_mailer.delivery_method = :test 46 | 47 | # Print deprecation notices to the stderr. 48 | config.active_support.deprecation = :stderr 49 | 50 | # Raise exceptions for disallowed deprecations. 51 | config.active_support.disallowed_deprecation = :raise 52 | 53 | # Tell Active Support which deprecation messages to disallow. 54 | config.active_support.disallowed_deprecation_warnings = [] 55 | 56 | # Raises error for missing translations. 57 | # config.i18n.raise_on_missing_translations = true 58 | 59 | # Annotate rendered view with file names. 60 | # config.action_view.annotate_rendered_view_with_filenames = true 61 | 62 | # Raise error when a before_action's only/except options reference missing actions 63 | config.action_controller.raise_on_missing_callback_actions = true 64 | end 65 | -------------------------------------------------------------------------------- /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 | # Allow @vite/client to hot reload javascript changes in development 15 | # policy.script_src *policy.script_src, :unsafe_eval, "http://#{ ViteRuby.config.host_with_port }" if Rails.env.development? 16 | 17 | # You may need to enable this in production as well depending on your setup. 18 | # policy.script_src *policy.script_src, :blob if Rails.env.test? 19 | 20 | # policy.style_src :self, :https 21 | # Allow @vite/client to hot reload style changes in development 22 | # policy.style_src *policy.style_src, :unsafe_inline if Rails.env.development? 23 | 24 | # # Specify URI for violation reports 25 | # # policy.report_uri "/csp-violation-report-endpoint" 26 | # end 27 | # 28 | # # Generate session nonces for permitted importmap, inline scripts, and inline styles. 29 | # config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s } 30 | # config.content_security_policy_nonce_directives = %w(script-src style-src) 31 | # 32 | # # Report violations without enforcing the policy. 33 | # # config.content_security_policy_report_only = true 34 | # end 35 | -------------------------------------------------------------------------------- /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, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn 8 | ] 9 | -------------------------------------------------------------------------------- /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 17 | -------------------------------------------------------------------------------- /config/initializers/permissions_policy.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Define an application-wide HTTP permissions policy. For further 4 | # information see: https://developers.google.com/web/updates/2018/06/feature-policy 5 | 6 | # Rails.application.config.permissions_policy do |policy| 7 | # policy.camera :none 8 | # policy.gyroscope :none 9 | # policy.microphone :none 10 | # policy.usb :none 11 | # policy.fullscreen :self 12 | # policy.payment :self, "https://secure.example.com" 13 | # end 14 | -------------------------------------------------------------------------------- /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" 32 | -------------------------------------------------------------------------------- /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 can serve each request in a thread from an internal thread pool. 6 | # The `threads` method setting takes two numbers: a minimum and maximum. 7 | # Any libraries that use thread pools should be configured to match 8 | # the maximum value specified for Puma. Default is set to 5 threads for minimum 9 | # and maximum; this matches the default thread size of Active Record. 10 | max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } 11 | min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count } 12 | threads min_threads_count, max_threads_count 13 | 14 | # Specifies that the worker count should equal the number of processors in production. 15 | if ENV["RAILS_ENV"] == "production" 16 | require "concurrent-ruby" 17 | worker_count = Integer(ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count }) 18 | workers worker_count if worker_count > 1 19 | end 20 | 21 | # Specifies the `worker_timeout` threshold that Puma will use to wait before 22 | # terminating a worker in development environments. 23 | worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development" 24 | 25 | # Specifies the `port` that Puma will listen on to receive requests; default is 3000. 26 | port ENV.fetch("PORT") { 3000 } 27 | 28 | # Specifies the `environment` that Puma will run in. 29 | environment ENV.fetch("RAILS_ENV") { "development" } 30 | 31 | # Specifies the `pidfile` that Puma will use. 32 | pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" } 33 | 34 | # Allow puma to be restarted by `bin/rails restart` command. 35 | plugin :tmp_restart 36 | -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- 1 | Rails.application.routes.draw do 2 | # Defines the root path route ("/") 3 | root "home#index" 4 | 5 | get 'home/index' 6 | 7 | # This allows dynamically fetching islands. 8 | get '/islands/:id', to: 'islands#show' 9 | 10 | # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. 11 | # Can be used by load balancers and uptime monitors to verify that the app is live. 12 | get "up" => "rails/health#show", as: :rails_health_check 13 | end 14 | -------------------------------------------------------------------------------- /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 | # Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key) 25 | # microsoft: 26 | # service: AzureStorage 27 | # storage_account_name: your_account_name 28 | # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %> 29 | # container: your_container_name-<%= Rails.env %> 30 | 31 | # mirror: 32 | # service: Mirror 33 | # primary: local 34 | # mirrors: [ amazon, google, microsoft ] 35 | -------------------------------------------------------------------------------- /config/vite.json: -------------------------------------------------------------------------------- 1 | { 2 | "all": { 3 | "sourceCodeDir": "app/javascript", 4 | "watchAdditionalPaths": [], 5 | "additionalEntrypoints": ["app/views/islands/**/*.(js|css)"] 6 | }, 7 | "development": { 8 | "autoBuild": true, 9 | "publicOutputDir": "vite-dev", 10 | "port": 3036 11 | }, 12 | "test": { 13 | "autoBuild": true, 14 | "publicOutputDir": "vite-test", 15 | "port": 3037 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /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 10 | -------------------------------------------------------------------------------- /lib/assets/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/lib/assets/.keep -------------------------------------------------------------------------------- /lib/tasks/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/lib/tasks/.keep -------------------------------------------------------------------------------- /log/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/log/.keep -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "island-test", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "dependencies": { 8 | "@hotwired/turbo": "^8.0.4" 9 | }, 10 | "devDependencies": { 11 | "vite": "^5.3.3", 12 | "vite-plugin-ruby": "^5.0.0" 13 | } 14 | }, 15 | "node_modules/@esbuild/aix-ppc64": { 16 | "version": "0.21.5", 17 | "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", 18 | "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", 19 | "cpu": [ 20 | "ppc64" 21 | ], 22 | "dev": true, 23 | "optional": true, 24 | "os": [ 25 | "aix" 26 | ], 27 | "engines": { 28 | "node": ">=12" 29 | } 30 | }, 31 | "node_modules/@esbuild/android-arm": { 32 | "version": "0.21.5", 33 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", 34 | "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", 35 | "cpu": [ 36 | "arm" 37 | ], 38 | "dev": true, 39 | "optional": true, 40 | "os": [ 41 | "android" 42 | ], 43 | "engines": { 44 | "node": ">=12" 45 | } 46 | }, 47 | "node_modules/@esbuild/android-arm64": { 48 | "version": "0.21.5", 49 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", 50 | "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", 51 | "cpu": [ 52 | "arm64" 53 | ], 54 | "dev": true, 55 | "optional": true, 56 | "os": [ 57 | "android" 58 | ], 59 | "engines": { 60 | "node": ">=12" 61 | } 62 | }, 63 | "node_modules/@esbuild/android-x64": { 64 | "version": "0.21.5", 65 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", 66 | "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", 67 | "cpu": [ 68 | "x64" 69 | ], 70 | "dev": true, 71 | "optional": true, 72 | "os": [ 73 | "android" 74 | ], 75 | "engines": { 76 | "node": ">=12" 77 | } 78 | }, 79 | "node_modules/@esbuild/darwin-arm64": { 80 | "version": "0.21.5", 81 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", 82 | "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", 83 | "cpu": [ 84 | "arm64" 85 | ], 86 | "dev": true, 87 | "optional": true, 88 | "os": [ 89 | "darwin" 90 | ], 91 | "engines": { 92 | "node": ">=12" 93 | } 94 | }, 95 | "node_modules/@esbuild/darwin-x64": { 96 | "version": "0.21.5", 97 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", 98 | "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", 99 | "cpu": [ 100 | "x64" 101 | ], 102 | "dev": true, 103 | "optional": true, 104 | "os": [ 105 | "darwin" 106 | ], 107 | "engines": { 108 | "node": ">=12" 109 | } 110 | }, 111 | "node_modules/@esbuild/freebsd-arm64": { 112 | "version": "0.21.5", 113 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", 114 | "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", 115 | "cpu": [ 116 | "arm64" 117 | ], 118 | "dev": true, 119 | "optional": true, 120 | "os": [ 121 | "freebsd" 122 | ], 123 | "engines": { 124 | "node": ">=12" 125 | } 126 | }, 127 | "node_modules/@esbuild/freebsd-x64": { 128 | "version": "0.21.5", 129 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", 130 | "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", 131 | "cpu": [ 132 | "x64" 133 | ], 134 | "dev": true, 135 | "optional": true, 136 | "os": [ 137 | "freebsd" 138 | ], 139 | "engines": { 140 | "node": ">=12" 141 | } 142 | }, 143 | "node_modules/@esbuild/linux-arm": { 144 | "version": "0.21.5", 145 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", 146 | "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", 147 | "cpu": [ 148 | "arm" 149 | ], 150 | "dev": true, 151 | "optional": true, 152 | "os": [ 153 | "linux" 154 | ], 155 | "engines": { 156 | "node": ">=12" 157 | } 158 | }, 159 | "node_modules/@esbuild/linux-arm64": { 160 | "version": "0.21.5", 161 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", 162 | "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", 163 | "cpu": [ 164 | "arm64" 165 | ], 166 | "dev": true, 167 | "optional": true, 168 | "os": [ 169 | "linux" 170 | ], 171 | "engines": { 172 | "node": ">=12" 173 | } 174 | }, 175 | "node_modules/@esbuild/linux-ia32": { 176 | "version": "0.21.5", 177 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", 178 | "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", 179 | "cpu": [ 180 | "ia32" 181 | ], 182 | "dev": true, 183 | "optional": true, 184 | "os": [ 185 | "linux" 186 | ], 187 | "engines": { 188 | "node": ">=12" 189 | } 190 | }, 191 | "node_modules/@esbuild/linux-loong64": { 192 | "version": "0.21.5", 193 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", 194 | "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", 195 | "cpu": [ 196 | "loong64" 197 | ], 198 | "dev": true, 199 | "optional": true, 200 | "os": [ 201 | "linux" 202 | ], 203 | "engines": { 204 | "node": ">=12" 205 | } 206 | }, 207 | "node_modules/@esbuild/linux-mips64el": { 208 | "version": "0.21.5", 209 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", 210 | "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", 211 | "cpu": [ 212 | "mips64el" 213 | ], 214 | "dev": true, 215 | "optional": true, 216 | "os": [ 217 | "linux" 218 | ], 219 | "engines": { 220 | "node": ">=12" 221 | } 222 | }, 223 | "node_modules/@esbuild/linux-ppc64": { 224 | "version": "0.21.5", 225 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", 226 | "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", 227 | "cpu": [ 228 | "ppc64" 229 | ], 230 | "dev": true, 231 | "optional": true, 232 | "os": [ 233 | "linux" 234 | ], 235 | "engines": { 236 | "node": ">=12" 237 | } 238 | }, 239 | "node_modules/@esbuild/linux-riscv64": { 240 | "version": "0.21.5", 241 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", 242 | "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", 243 | "cpu": [ 244 | "riscv64" 245 | ], 246 | "dev": true, 247 | "optional": true, 248 | "os": [ 249 | "linux" 250 | ], 251 | "engines": { 252 | "node": ">=12" 253 | } 254 | }, 255 | "node_modules/@esbuild/linux-s390x": { 256 | "version": "0.21.5", 257 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", 258 | "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", 259 | "cpu": [ 260 | "s390x" 261 | ], 262 | "dev": true, 263 | "optional": true, 264 | "os": [ 265 | "linux" 266 | ], 267 | "engines": { 268 | "node": ">=12" 269 | } 270 | }, 271 | "node_modules/@esbuild/linux-x64": { 272 | "version": "0.21.5", 273 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", 274 | "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", 275 | "cpu": [ 276 | "x64" 277 | ], 278 | "dev": true, 279 | "optional": true, 280 | "os": [ 281 | "linux" 282 | ], 283 | "engines": { 284 | "node": ">=12" 285 | } 286 | }, 287 | "node_modules/@esbuild/netbsd-x64": { 288 | "version": "0.21.5", 289 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", 290 | "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", 291 | "cpu": [ 292 | "x64" 293 | ], 294 | "dev": true, 295 | "optional": true, 296 | "os": [ 297 | "netbsd" 298 | ], 299 | "engines": { 300 | "node": ">=12" 301 | } 302 | }, 303 | "node_modules/@esbuild/openbsd-x64": { 304 | "version": "0.21.5", 305 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", 306 | "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", 307 | "cpu": [ 308 | "x64" 309 | ], 310 | "dev": true, 311 | "optional": true, 312 | "os": [ 313 | "openbsd" 314 | ], 315 | "engines": { 316 | "node": ">=12" 317 | } 318 | }, 319 | "node_modules/@esbuild/sunos-x64": { 320 | "version": "0.21.5", 321 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", 322 | "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", 323 | "cpu": [ 324 | "x64" 325 | ], 326 | "dev": true, 327 | "optional": true, 328 | "os": [ 329 | "sunos" 330 | ], 331 | "engines": { 332 | "node": ">=12" 333 | } 334 | }, 335 | "node_modules/@esbuild/win32-arm64": { 336 | "version": "0.21.5", 337 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", 338 | "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", 339 | "cpu": [ 340 | "arm64" 341 | ], 342 | "dev": true, 343 | "optional": true, 344 | "os": [ 345 | "win32" 346 | ], 347 | "engines": { 348 | "node": ">=12" 349 | } 350 | }, 351 | "node_modules/@esbuild/win32-ia32": { 352 | "version": "0.21.5", 353 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", 354 | "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", 355 | "cpu": [ 356 | "ia32" 357 | ], 358 | "dev": true, 359 | "optional": true, 360 | "os": [ 361 | "win32" 362 | ], 363 | "engines": { 364 | "node": ">=12" 365 | } 366 | }, 367 | "node_modules/@esbuild/win32-x64": { 368 | "version": "0.21.5", 369 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", 370 | "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", 371 | "cpu": [ 372 | "x64" 373 | ], 374 | "dev": true, 375 | "optional": true, 376 | "os": [ 377 | "win32" 378 | ], 379 | "engines": { 380 | "node": ">=12" 381 | } 382 | }, 383 | "node_modules/@hotwired/turbo": { 384 | "version": "8.0.4", 385 | "resolved": "https://registry.npmjs.org/@hotwired/turbo/-/turbo-8.0.4.tgz", 386 | "integrity": "sha512-mlZEFUZrJnpfj+g/XeCWWuokvQyN68WvM78JM+0jfSFc98wegm259vCbC1zSllcspRwbgXK31ibehCy5PA78/Q==", 387 | "engines": { 388 | "node": ">= 14" 389 | } 390 | }, 391 | "node_modules/@nodelib/fs.scandir": { 392 | "version": "2.1.5", 393 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 394 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 395 | "dev": true, 396 | "dependencies": { 397 | "@nodelib/fs.stat": "2.0.5", 398 | "run-parallel": "^1.1.9" 399 | }, 400 | "engines": { 401 | "node": ">= 8" 402 | } 403 | }, 404 | "node_modules/@nodelib/fs.stat": { 405 | "version": "2.0.5", 406 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 407 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 408 | "dev": true, 409 | "engines": { 410 | "node": ">= 8" 411 | } 412 | }, 413 | "node_modules/@nodelib/fs.walk": { 414 | "version": "1.2.8", 415 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 416 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 417 | "dev": true, 418 | "dependencies": { 419 | "@nodelib/fs.scandir": "2.1.5", 420 | "fastq": "^1.6.0" 421 | }, 422 | "engines": { 423 | "node": ">= 8" 424 | } 425 | }, 426 | "node_modules/@rollup/rollup-android-arm-eabi": { 427 | "version": "4.18.0", 428 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz", 429 | "integrity": "sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==", 430 | "cpu": [ 431 | "arm" 432 | ], 433 | "dev": true, 434 | "optional": true, 435 | "os": [ 436 | "android" 437 | ] 438 | }, 439 | "node_modules/@rollup/rollup-android-arm64": { 440 | "version": "4.18.0", 441 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.0.tgz", 442 | "integrity": "sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==", 443 | "cpu": [ 444 | "arm64" 445 | ], 446 | "dev": true, 447 | "optional": true, 448 | "os": [ 449 | "android" 450 | ] 451 | }, 452 | "node_modules/@rollup/rollup-darwin-arm64": { 453 | "version": "4.18.0", 454 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.0.tgz", 455 | "integrity": "sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==", 456 | "cpu": [ 457 | "arm64" 458 | ], 459 | "dev": true, 460 | "optional": true, 461 | "os": [ 462 | "darwin" 463 | ] 464 | }, 465 | "node_modules/@rollup/rollup-darwin-x64": { 466 | "version": "4.18.0", 467 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.0.tgz", 468 | "integrity": "sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==", 469 | "cpu": [ 470 | "x64" 471 | ], 472 | "dev": true, 473 | "optional": true, 474 | "os": [ 475 | "darwin" 476 | ] 477 | }, 478 | "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 479 | "version": "4.18.0", 480 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.0.tgz", 481 | "integrity": "sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==", 482 | "cpu": [ 483 | "arm" 484 | ], 485 | "dev": true, 486 | "optional": true, 487 | "os": [ 488 | "linux" 489 | ] 490 | }, 491 | "node_modules/@rollup/rollup-linux-arm-musleabihf": { 492 | "version": "4.18.0", 493 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.0.tgz", 494 | "integrity": "sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==", 495 | "cpu": [ 496 | "arm" 497 | ], 498 | "dev": true, 499 | "optional": true, 500 | "os": [ 501 | "linux" 502 | ] 503 | }, 504 | "node_modules/@rollup/rollup-linux-arm64-gnu": { 505 | "version": "4.18.0", 506 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.0.tgz", 507 | "integrity": "sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==", 508 | "cpu": [ 509 | "arm64" 510 | ], 511 | "dev": true, 512 | "optional": true, 513 | "os": [ 514 | "linux" 515 | ] 516 | }, 517 | "node_modules/@rollup/rollup-linux-arm64-musl": { 518 | "version": "4.18.0", 519 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.0.tgz", 520 | "integrity": "sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==", 521 | "cpu": [ 522 | "arm64" 523 | ], 524 | "dev": true, 525 | "optional": true, 526 | "os": [ 527 | "linux" 528 | ] 529 | }, 530 | "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { 531 | "version": "4.18.0", 532 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.0.tgz", 533 | "integrity": "sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==", 534 | "cpu": [ 535 | "ppc64" 536 | ], 537 | "dev": true, 538 | "optional": true, 539 | "os": [ 540 | "linux" 541 | ] 542 | }, 543 | "node_modules/@rollup/rollup-linux-riscv64-gnu": { 544 | "version": "4.18.0", 545 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.0.tgz", 546 | "integrity": "sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==", 547 | "cpu": [ 548 | "riscv64" 549 | ], 550 | "dev": true, 551 | "optional": true, 552 | "os": [ 553 | "linux" 554 | ] 555 | }, 556 | "node_modules/@rollup/rollup-linux-s390x-gnu": { 557 | "version": "4.18.0", 558 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.0.tgz", 559 | "integrity": "sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==", 560 | "cpu": [ 561 | "s390x" 562 | ], 563 | "dev": true, 564 | "optional": true, 565 | "os": [ 566 | "linux" 567 | ] 568 | }, 569 | "node_modules/@rollup/rollup-linux-x64-gnu": { 570 | "version": "4.18.0", 571 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.0.tgz", 572 | "integrity": "sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==", 573 | "cpu": [ 574 | "x64" 575 | ], 576 | "dev": true, 577 | "optional": true, 578 | "os": [ 579 | "linux" 580 | ] 581 | }, 582 | "node_modules/@rollup/rollup-linux-x64-musl": { 583 | "version": "4.18.0", 584 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.0.tgz", 585 | "integrity": "sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==", 586 | "cpu": [ 587 | "x64" 588 | ], 589 | "dev": true, 590 | "optional": true, 591 | "os": [ 592 | "linux" 593 | ] 594 | }, 595 | "node_modules/@rollup/rollup-win32-arm64-msvc": { 596 | "version": "4.18.0", 597 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.0.tgz", 598 | "integrity": "sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==", 599 | "cpu": [ 600 | "arm64" 601 | ], 602 | "dev": true, 603 | "optional": true, 604 | "os": [ 605 | "win32" 606 | ] 607 | }, 608 | "node_modules/@rollup/rollup-win32-ia32-msvc": { 609 | "version": "4.18.0", 610 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.0.tgz", 611 | "integrity": "sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==", 612 | "cpu": [ 613 | "ia32" 614 | ], 615 | "dev": true, 616 | "optional": true, 617 | "os": [ 618 | "win32" 619 | ] 620 | }, 621 | "node_modules/@rollup/rollup-win32-x64-msvc": { 622 | "version": "4.18.0", 623 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.0.tgz", 624 | "integrity": "sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==", 625 | "cpu": [ 626 | "x64" 627 | ], 628 | "dev": true, 629 | "optional": true, 630 | "os": [ 631 | "win32" 632 | ] 633 | }, 634 | "node_modules/@types/estree": { 635 | "version": "1.0.5", 636 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", 637 | "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", 638 | "dev": true 639 | }, 640 | "node_modules/braces": { 641 | "version": "3.0.3", 642 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 643 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 644 | "dev": true, 645 | "dependencies": { 646 | "fill-range": "^7.1.1" 647 | }, 648 | "engines": { 649 | "node": ">=8" 650 | } 651 | }, 652 | "node_modules/debug": { 653 | "version": "4.3.5", 654 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", 655 | "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", 656 | "dev": true, 657 | "dependencies": { 658 | "ms": "2.1.2" 659 | }, 660 | "engines": { 661 | "node": ">=6.0" 662 | }, 663 | "peerDependenciesMeta": { 664 | "supports-color": { 665 | "optional": true 666 | } 667 | } 668 | }, 669 | "node_modules/esbuild": { 670 | "version": "0.21.5", 671 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", 672 | "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", 673 | "dev": true, 674 | "hasInstallScript": true, 675 | "bin": { 676 | "esbuild": "bin/esbuild" 677 | }, 678 | "engines": { 679 | "node": ">=12" 680 | }, 681 | "optionalDependencies": { 682 | "@esbuild/aix-ppc64": "0.21.5", 683 | "@esbuild/android-arm": "0.21.5", 684 | "@esbuild/android-arm64": "0.21.5", 685 | "@esbuild/android-x64": "0.21.5", 686 | "@esbuild/darwin-arm64": "0.21.5", 687 | "@esbuild/darwin-x64": "0.21.5", 688 | "@esbuild/freebsd-arm64": "0.21.5", 689 | "@esbuild/freebsd-x64": "0.21.5", 690 | "@esbuild/linux-arm": "0.21.5", 691 | "@esbuild/linux-arm64": "0.21.5", 692 | "@esbuild/linux-ia32": "0.21.5", 693 | "@esbuild/linux-loong64": "0.21.5", 694 | "@esbuild/linux-mips64el": "0.21.5", 695 | "@esbuild/linux-ppc64": "0.21.5", 696 | "@esbuild/linux-riscv64": "0.21.5", 697 | "@esbuild/linux-s390x": "0.21.5", 698 | "@esbuild/linux-x64": "0.21.5", 699 | "@esbuild/netbsd-x64": "0.21.5", 700 | "@esbuild/openbsd-x64": "0.21.5", 701 | "@esbuild/sunos-x64": "0.21.5", 702 | "@esbuild/win32-arm64": "0.21.5", 703 | "@esbuild/win32-ia32": "0.21.5", 704 | "@esbuild/win32-x64": "0.21.5" 705 | } 706 | }, 707 | "node_modules/fast-glob": { 708 | "version": "3.3.2", 709 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", 710 | "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", 711 | "dev": true, 712 | "dependencies": { 713 | "@nodelib/fs.stat": "^2.0.2", 714 | "@nodelib/fs.walk": "^1.2.3", 715 | "glob-parent": "^5.1.2", 716 | "merge2": "^1.3.0", 717 | "micromatch": "^4.0.4" 718 | }, 719 | "engines": { 720 | "node": ">=8.6.0" 721 | } 722 | }, 723 | "node_modules/fastq": { 724 | "version": "1.17.1", 725 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", 726 | "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", 727 | "dev": true, 728 | "dependencies": { 729 | "reusify": "^1.0.4" 730 | } 731 | }, 732 | "node_modules/fill-range": { 733 | "version": "7.1.1", 734 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 735 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 736 | "dev": true, 737 | "dependencies": { 738 | "to-regex-range": "^5.0.1" 739 | }, 740 | "engines": { 741 | "node": ">=8" 742 | } 743 | }, 744 | "node_modules/fsevents": { 745 | "version": "2.3.3", 746 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 747 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 748 | "dev": true, 749 | "hasInstallScript": true, 750 | "optional": true, 751 | "os": [ 752 | "darwin" 753 | ], 754 | "engines": { 755 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 756 | } 757 | }, 758 | "node_modules/glob-parent": { 759 | "version": "5.1.2", 760 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 761 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 762 | "dev": true, 763 | "dependencies": { 764 | "is-glob": "^4.0.1" 765 | }, 766 | "engines": { 767 | "node": ">= 6" 768 | } 769 | }, 770 | "node_modules/is-extglob": { 771 | "version": "2.1.1", 772 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 773 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 774 | "dev": true, 775 | "engines": { 776 | "node": ">=0.10.0" 777 | } 778 | }, 779 | "node_modules/is-glob": { 780 | "version": "4.0.3", 781 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 782 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 783 | "dev": true, 784 | "dependencies": { 785 | "is-extglob": "^2.1.1" 786 | }, 787 | "engines": { 788 | "node": ">=0.10.0" 789 | } 790 | }, 791 | "node_modules/is-number": { 792 | "version": "7.0.0", 793 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 794 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 795 | "dev": true, 796 | "engines": { 797 | "node": ">=0.12.0" 798 | } 799 | }, 800 | "node_modules/merge2": { 801 | "version": "1.4.1", 802 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 803 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 804 | "dev": true, 805 | "engines": { 806 | "node": ">= 8" 807 | } 808 | }, 809 | "node_modules/micromatch": { 810 | "version": "4.0.7", 811 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", 812 | "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", 813 | "dev": true, 814 | "dependencies": { 815 | "braces": "^3.0.3", 816 | "picomatch": "^2.3.1" 817 | }, 818 | "engines": { 819 | "node": ">=8.6" 820 | } 821 | }, 822 | "node_modules/ms": { 823 | "version": "2.1.2", 824 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 825 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 826 | "dev": true 827 | }, 828 | "node_modules/nanoid": { 829 | "version": "3.3.7", 830 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", 831 | "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", 832 | "dev": true, 833 | "funding": [ 834 | { 835 | "type": "github", 836 | "url": "https://github.com/sponsors/ai" 837 | } 838 | ], 839 | "bin": { 840 | "nanoid": "bin/nanoid.cjs" 841 | }, 842 | "engines": { 843 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 844 | } 845 | }, 846 | "node_modules/picocolors": { 847 | "version": "1.0.1", 848 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", 849 | "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", 850 | "dev": true 851 | }, 852 | "node_modules/picomatch": { 853 | "version": "2.3.1", 854 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 855 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 856 | "dev": true, 857 | "engines": { 858 | "node": ">=8.6" 859 | }, 860 | "funding": { 861 | "url": "https://github.com/sponsors/jonschlinkert" 862 | } 863 | }, 864 | "node_modules/postcss": { 865 | "version": "8.4.39", 866 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.39.tgz", 867 | "integrity": "sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==", 868 | "dev": true, 869 | "funding": [ 870 | { 871 | "type": "opencollective", 872 | "url": "https://opencollective.com/postcss/" 873 | }, 874 | { 875 | "type": "tidelift", 876 | "url": "https://tidelift.com/funding/github/npm/postcss" 877 | }, 878 | { 879 | "type": "github", 880 | "url": "https://github.com/sponsors/ai" 881 | } 882 | ], 883 | "dependencies": { 884 | "nanoid": "^3.3.7", 885 | "picocolors": "^1.0.1", 886 | "source-map-js": "^1.2.0" 887 | }, 888 | "engines": { 889 | "node": "^10 || ^12 || >=14" 890 | } 891 | }, 892 | "node_modules/queue-microtask": { 893 | "version": "1.2.3", 894 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 895 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 896 | "dev": true, 897 | "funding": [ 898 | { 899 | "type": "github", 900 | "url": "https://github.com/sponsors/feross" 901 | }, 902 | { 903 | "type": "patreon", 904 | "url": "https://www.patreon.com/feross" 905 | }, 906 | { 907 | "type": "consulting", 908 | "url": "https://feross.org/support" 909 | } 910 | ] 911 | }, 912 | "node_modules/reusify": { 913 | "version": "1.0.4", 914 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 915 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 916 | "dev": true, 917 | "engines": { 918 | "iojs": ">=1.0.0", 919 | "node": ">=0.10.0" 920 | } 921 | }, 922 | "node_modules/rollup": { 923 | "version": "4.18.0", 924 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.18.0.tgz", 925 | "integrity": "sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==", 926 | "dev": true, 927 | "dependencies": { 928 | "@types/estree": "1.0.5" 929 | }, 930 | "bin": { 931 | "rollup": "dist/bin/rollup" 932 | }, 933 | "engines": { 934 | "node": ">=18.0.0", 935 | "npm": ">=8.0.0" 936 | }, 937 | "optionalDependencies": { 938 | "@rollup/rollup-android-arm-eabi": "4.18.0", 939 | "@rollup/rollup-android-arm64": "4.18.0", 940 | "@rollup/rollup-darwin-arm64": "4.18.0", 941 | "@rollup/rollup-darwin-x64": "4.18.0", 942 | "@rollup/rollup-linux-arm-gnueabihf": "4.18.0", 943 | "@rollup/rollup-linux-arm-musleabihf": "4.18.0", 944 | "@rollup/rollup-linux-arm64-gnu": "4.18.0", 945 | "@rollup/rollup-linux-arm64-musl": "4.18.0", 946 | "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0", 947 | "@rollup/rollup-linux-riscv64-gnu": "4.18.0", 948 | "@rollup/rollup-linux-s390x-gnu": "4.18.0", 949 | "@rollup/rollup-linux-x64-gnu": "4.18.0", 950 | "@rollup/rollup-linux-x64-musl": "4.18.0", 951 | "@rollup/rollup-win32-arm64-msvc": "4.18.0", 952 | "@rollup/rollup-win32-ia32-msvc": "4.18.0", 953 | "@rollup/rollup-win32-x64-msvc": "4.18.0", 954 | "fsevents": "~2.3.2" 955 | } 956 | }, 957 | "node_modules/run-parallel": { 958 | "version": "1.2.0", 959 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 960 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 961 | "dev": true, 962 | "funding": [ 963 | { 964 | "type": "github", 965 | "url": "https://github.com/sponsors/feross" 966 | }, 967 | { 968 | "type": "patreon", 969 | "url": "https://www.patreon.com/feross" 970 | }, 971 | { 972 | "type": "consulting", 973 | "url": "https://feross.org/support" 974 | } 975 | ], 976 | "dependencies": { 977 | "queue-microtask": "^1.2.2" 978 | } 979 | }, 980 | "node_modules/source-map-js": { 981 | "version": "1.2.0", 982 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", 983 | "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", 984 | "dev": true, 985 | "engines": { 986 | "node": ">=0.10.0" 987 | } 988 | }, 989 | "node_modules/to-regex-range": { 990 | "version": "5.0.1", 991 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 992 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 993 | "dev": true, 994 | "dependencies": { 995 | "is-number": "^7.0.0" 996 | }, 997 | "engines": { 998 | "node": ">=8.0" 999 | } 1000 | }, 1001 | "node_modules/vite": { 1002 | "version": "5.3.3", 1003 | "resolved": "https://registry.npmjs.org/vite/-/vite-5.3.3.tgz", 1004 | "integrity": "sha512-NPQdeCU0Dv2z5fu+ULotpuq5yfCS1BzKUIPhNbP3YBfAMGJXbt2nS+sbTFu+qchaqWTD+H3JK++nRwr6XIcp6A==", 1005 | "dev": true, 1006 | "dependencies": { 1007 | "esbuild": "^0.21.3", 1008 | "postcss": "^8.4.39", 1009 | "rollup": "^4.13.0" 1010 | }, 1011 | "bin": { 1012 | "vite": "bin/vite.js" 1013 | }, 1014 | "engines": { 1015 | "node": "^18.0.0 || >=20.0.0" 1016 | }, 1017 | "funding": { 1018 | "url": "https://github.com/vitejs/vite?sponsor=1" 1019 | }, 1020 | "optionalDependencies": { 1021 | "fsevents": "~2.3.3" 1022 | }, 1023 | "peerDependencies": { 1024 | "@types/node": "^18.0.0 || >=20.0.0", 1025 | "less": "*", 1026 | "lightningcss": "^1.21.0", 1027 | "sass": "*", 1028 | "stylus": "*", 1029 | "sugarss": "*", 1030 | "terser": "^5.4.0" 1031 | }, 1032 | "peerDependenciesMeta": { 1033 | "@types/node": { 1034 | "optional": true 1035 | }, 1036 | "less": { 1037 | "optional": true 1038 | }, 1039 | "lightningcss": { 1040 | "optional": true 1041 | }, 1042 | "sass": { 1043 | "optional": true 1044 | }, 1045 | "stylus": { 1046 | "optional": true 1047 | }, 1048 | "sugarss": { 1049 | "optional": true 1050 | }, 1051 | "terser": { 1052 | "optional": true 1053 | } 1054 | } 1055 | }, 1056 | "node_modules/vite-plugin-ruby": { 1057 | "version": "5.0.0", 1058 | "resolved": "https://registry.npmjs.org/vite-plugin-ruby/-/vite-plugin-ruby-5.0.0.tgz", 1059 | "integrity": "sha512-c8PjTp21Ah/ttgnNUyu0qvCXZI08Jr9I24oUKg3TRIRhF5GcOZ++6wtlTCrNFd9COEQbpXHxlRIXd/MEg0iZJw==", 1060 | "dev": true, 1061 | "dependencies": { 1062 | "debug": "^4.3.4", 1063 | "fast-glob": "^3.3.2" 1064 | }, 1065 | "peerDependencies": { 1066 | "vite": ">=5.0.0" 1067 | } 1068 | } 1069 | } 1070 | } 1071 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "vite": "^5.3.3", 4 | "vite-plugin-ruby": "^5.0.0" 5 | }, 6 | "dependencies": { 7 | "@hotwired/turbo": "^8.0.4" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /public/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The page you were looking for doesn't exist (404) 5 | 6 | 55 | 56 | 57 | 58 | 59 |
60 |
61 |

The page you were looking for doesn't exist.

62 |

You may have mistyped the address or the page may have moved.

63 |
64 |

If you are the application owner check the logs for more information.

65 |
66 | 67 | 68 | -------------------------------------------------------------------------------- /public/422.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The change you wanted was rejected (422) 5 | 6 | 55 | 56 | 57 | 58 | 59 |
60 |
61 |

The change you wanted was rejected.

62 |

Maybe you tried to change something you didn't have access to.

63 |
64 |

If you are the application owner check the logs for more information.

65 |
66 | 67 | 68 | -------------------------------------------------------------------------------- /public/500.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | We're sorry, but something went wrong (500) 5 | 6 | 55 | 56 | 57 | 58 | 59 |
60 |
61 |

We're sorry, but something went wrong.

62 |
63 |

If you are the application owner check the logs for more information.

64 |
65 | 66 | 67 | -------------------------------------------------------------------------------- /public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/public/apple-touch-icon-precomposed.png -------------------------------------------------------------------------------- /public/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/public/apple-touch-icon.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/public/favicon.ico -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file 2 | -------------------------------------------------------------------------------- /storage/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/storage/.keep -------------------------------------------------------------------------------- /test/application_system_test_case.rb: -------------------------------------------------------------------------------- 1 | require "test_helper" 2 | 3 | class ApplicationSystemTestCase < ActionDispatch::SystemTestCase 4 | driven_by :selenium, using: :chrome, screen_size: [1400, 1400] 5 | end 6 | -------------------------------------------------------------------------------- /test/channels/application_cable/connection_test.rb: -------------------------------------------------------------------------------- 1 | require "test_helper" 2 | 3 | module ApplicationCable 4 | class ConnectionTest < ActionCable::Connection::TestCase 5 | # test "connects with cookies" do 6 | # cookies.signed[:user_id] = 42 7 | # 8 | # connect 9 | # 10 | # assert_equal connection.user_id, "42" 11 | # end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /test/controllers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/test/controllers/.keep -------------------------------------------------------------------------------- /test/controllers/home_controller_test.rb: -------------------------------------------------------------------------------- 1 | require "test_helper" 2 | 3 | class HomeControllerTest < ActionDispatch::IntegrationTest 4 | test "should get index" do 5 | get home_index_url 6 | assert_response :success 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /test/fixtures/files/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/test/fixtures/files/.keep -------------------------------------------------------------------------------- /test/helpers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/test/helpers/.keep -------------------------------------------------------------------------------- /test/integration/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/test/integration/.keep -------------------------------------------------------------------------------- /test/mailers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/test/mailers/.keep -------------------------------------------------------------------------------- /test/models/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/test/models/.keep -------------------------------------------------------------------------------- /test/system/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/test/system/.keep -------------------------------------------------------------------------------- /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 16 | -------------------------------------------------------------------------------- /tmp/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/tmp/.keep -------------------------------------------------------------------------------- /tmp/pids/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/tmp/pids/.keep -------------------------------------------------------------------------------- /tmp/storage/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/tmp/storage/.keep -------------------------------------------------------------------------------- /vendor/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/vendor/.keep -------------------------------------------------------------------------------- /vendor/javascript/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KonnorRogers/rails-islands/47d955cac4af8b959e4bd94d0e5568905d38dc34/vendor/javascript/.keep -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import RubyPlugin from 'vite-plugin-ruby' 3 | 4 | export default defineConfig({ 5 | plugins: [ 6 | RubyPlugin(), 7 | ], 8 | }) 9 | --------------------------------------------------------------------------------