diff --git a/Gemfile b/Gemfile index 1d4f5e6..5dd813e 100644 --- a/Gemfile +++ b/Gemfile @@ -32,9 +32,6 @@ gem "devise-async" gem "passenger" , "6.0.15" , require: "phusion_passenger/rack_handler" gem "bootsnap", require: false -gem "opal-rails" -gem "opal-browser" - group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem gem "debug", platforms: %i[ mri mingw x64_mingw ] diff --git a/Gemfile.lock b/Gemfile.lock index 2778ed6..f14f347 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -222,7 +222,7 @@ GEM crass (~> 1.0.2) nokogiri (>= 1.5.9) lumberjack (1.2.8) - mail (2.8.0.1) + mail (2.8.1) mini_mime (>= 0.1.1) net-imap net-pop @@ -250,7 +250,7 @@ GEM net-smtp (0.3.3) net-protocol nio4r (2.5.8) - nokogiri (1.14.0-x86_64-linux) + nokogiri (1.14.2-x86_64-linux) racc (~> 1.4) notiffany (0.1.3) nenv (~> 0.1) @@ -262,25 +262,9 @@ GEM mustache nokogiri (~> 1.7) sanitize - opal (1.7.2) - ast (>= 2.3.0) - parser (~> 3.0, >= 3.0.3.2) - opal-browser (0.3.3) - opal (>= 1.0, < 2.0) - paggio (>= 0.3.0) - opal-rails (2.0.2) - opal (~> 1.0) - opal-sprockets (~> 1.0) - rails (>= 6.0, < 7.1) - sprockets-rails (>= 3.0) - opal-sprockets (1.0.3) - opal (>= 1.0, < 2.0) - sprockets (~> 4.0) - tilt (>= 1.4) open4 (1.3.4) orm_adapter (0.5.0) - paggio (0.3.0) - parser (3.2.0.0) + parser (3.2.1.0) ast (~> 2.4.1) passenger (6.0.15) rack @@ -431,7 +415,7 @@ GEM websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) - zeitwerk (2.6.6) + zeitwerk (2.6.7) PLATFORMS x86_64-linux @@ -451,8 +435,6 @@ DEPENDENCIES kaminari merged! mina - opal-browser - opal-rails passenger (= 6.0.15) pg (~> 1.1) pundit (~> 2.3) diff --git a/app/assets/javascript/opal_main.js.rb b/app/assets/javascript/opal_main.js.rb deleted file mode 100644 index ca11882..0000000 --- a/app/assets/javascript/opal_main.js.rb +++ /dev/null @@ -1,5 +0,0 @@ -require "opal" -require "native" -require 'promise' -require 'browser/setup/mini' -require 'vue_r' diff --git a/app/views/layouts/application.haml b/app/views/layouts/application.haml index 160b7eb..3e9aab8 100644 --- a/app/views/layouts/application.haml +++ b/app/views/layouts/application.haml @@ -27,7 +27,6 @@ = csp_meta_tag = stylesheet_link_tag "tailwind" = stylesheet_link_tag "application" - = javascript_include_tag "opal_main" = javascript_importmap_tags - if false diff --git a/config/initializers/opal.rb b/config/initializers/opal.rb deleted file mode 100644 index aaba247..0000000 --- a/config/initializers/opal.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Check out the full list of the available configuration options at -# https://github.com/opal/opal/blob/master/lib/opal/config.rb - -Rails.application.configure do - # We suggest keeping the configuration above as default for all environments, - # disabling some of them might slightly reduce the bundle size or reduce performance - # by degrading some ruby features. - config.opal.method_missing_enabled = true - config.opal.const_missing_enabled = true - config.opal.arity_check_enabled = true - config.opal.freezing_stubs_enabled = true - config.opal.dynamic_require_severity = :ignore - - # To enable passing assigns from the controller to the opal template handler - # change the following configuration to one of these values: - # - # - true # both locals and instance variables - # - :locals # only locals - # - :ivars # only instance variables - # - config.opal.assigns_in_templates = false -end diff --git a/lib/opal/rails/haml_filter.rb b/lib/opal/rails/haml_filter.rb deleted file mode 100644 index 6d41a8e..0000000 --- a/lib/opal/rails/haml_filter.rb +++ /dev/null @@ -1,19 +0,0 @@ -require "haml" -require "haml/filters" -require "haml/filters/base" - -module Haml - class Filters - class Opal < Base - def compile(node) - temple = [:multi] - temple << [:static, ""] - temple - end - end - end -end - -Haml::Filters.registered[:opal] ||= Haml::Filters::Opal