Module: FeedbackEngine::Widget

Defined in:
lib/feedback_engine/widget.rb

Overview

Serves the self-contained browser widget. The JavaScript is plain ES (no framework, no build step) and styles itself inline, so it drops into any Rails app regardless of its CSS or JS setup. It is inlined into the page rather than served as a separate asset to avoid any dependency on the host's asset pipeline.

Constant Summary collapse

SOURCE =
File.expand_path('../../app/assets/feedback_engine/widget.js', __dir__)
RTL_LANGUAGES =

Right-to-left scripts, so the form renders mirrored for those locales. Matched on the language subtag, so region variants ("ar-EG") count too.

%w[ar arc ckb dv fa ha he ks ku ps sd ug ur yi].freeze

Class Method Summary collapse