remove opal stuff

This commit is contained in:
Torsten 2023-02-14 19:11:06 +02:00
parent 5f0c2f37a7
commit d3c979926d
6 changed files with 4 additions and 72 deletions

View File

@ -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 ]

View File

@ -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)

View File

@ -1,5 +0,0 @@
require "opal"
require "native"
require 'promise'
require 'browser/setup/mini'
require 'vue_r'

View File

@ -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

View File

@ -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

View File

@ -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, "<script type='text/javascript'>\n"]
temple << [:static, ::Opal.compile(node.value[:text]) ]
temple << [:static, "\n</script>"]
temple
end
end
end
end
Haml::Filters.registered[:opal] ||= Haml::Filters::Opal