diff --git a/.gitignore b/.gitignore index 41326af31..f3a60f38e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ /app/assets/javascripts/custom/ /app/assets/stylesheets/custom/ /app/assets/images/custom/ +/app/assets/builds/* +!/app/assets/builds/.keep /vendor/assets/bower_components/ /volumes/proxy/certs /volumes/traefik/certs diff --git a/.ruby-version b/.ruby-version index 6c165c284..25e863282 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.13 +3.4.12 diff --git a/.rvmrc b/.rvmrc index abbfe854b..2d6572388 100644 --- a/.rvmrc +++ b/.rvmrc @@ -1,2 +1 @@ -rvm 3.3.12 - +rvm 3.4.11 diff --git a/Dockerfile b/Dockerfile index b4c4e01ec..548ae59ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.3.13-trixie +FROM ruby:3.4.12-trixie # Install essential Linux packages RUN apt-get update -qq && apt-get install -y \ diff --git a/Gemfile b/Gemfile index 6d9f462bd..658e6c36b 100644 --- a/Gemfile +++ b/Gemfile @@ -2,34 +2,31 @@ ruby file: ".ruby-version" source 'https://rubygems.org' -gem 'rails','~> 7.2.0' +gem 'rails','~> 8.1.0' #The `content_tag_for` method has been removed from Rails. To continue using it, add the `record_tag_helper` gem to your Gemfile: gem 'record_tag_helper' gem 'active_model_serializers' -gem 'activeadmin', '~> 3.4' +gem 'activeadmin', '4.0.0.beta23' gem 'acts-as-taggable-on' gem 'ancestry'#, github: 'stefankroes/ancestry' gem 'authority'#, github: 'nathanl/authority' gem 'bitmask_attributes' -gem 'bootsnap' +# Reduces boot times through caching; required in config/boot.rb +gem "bootsnap", require: false gem 'bootstrap4-kaminari-views' gem 'chartkick' gem 'cocoon' gem 'coderay' -gem 'countries', '~> 5', require: 'countries/global' -gem 'country_select', '~> 8.0' -gem 'dalli', '~> 3.2.3' -gem 'dartsass-sprockets' +gem 'countries', require: 'countries/global' +gem 'country_select' gem 'discourse_api' -gem 'doorkeeper', '~>5.8.0' +gem 'doorkeeper', '~>5.9.0' gem 'dotenv-rails' gem 'dragonfly', '~> 1.4.0' gem 'dragonfly-s3_data_store', '~> 1.3.0' gem 'jsonapi-serializer', '~> 2.2' # To support JSONAPI.org format -gem 'json', '< 3' # untill rails 8.1 -gem 'flatpickr' gem "font-awesome-sass", "~> 6.5" # https://docs.fontawesome.com/v6/web/use-with/ruby-on-rails gem 'friendly_id' gem 'groupdate' #used by chartkick @@ -40,17 +37,17 @@ gem 'http_accept_language' gem 'httparty' gem 'inherited_resources' gem 'invisible_captcha' +# Build JSON APIs with ease [https://github.com/rails/jbuilder] gem 'jbuilder' -gem 'jquery-rails' gem 'kaminari' gem 'letter_opener' -gem 'momentjs-rails' # Remove? It is already included with Chart.js bundle gem 'nest' gem 'paper_trail' gem 'pg' gem 'pg_search' gem 'premailer-rails' -gem 'puma' +# Use the Puma web server [https://github.com/puma/puma] +gem "puma", ">= 5.0" gem 'rack-attack' gem 'rack-cache' gem 'rack-cors', require: 'rack/cors' @@ -59,26 +56,29 @@ gem 'redcarpet' gem 'redis' gem 'rolify' gem 'rspec' -gem 'coffee-rails' gem 'sentry-ruby' gem 'sentry-rails' -gem 'sidekiq', '< 8' +gem 'sidekiq' gem 'simplecov', :require => false, :group => :test gem 'simple_form' gem 'sitemap_generator' gem 'slim' gem 'sort_alphabetical' -gem 'sprockets' -gem 'sprockets-rails' gem 'stamp' +# Asset pipeline: Propshaft (digests & serves), Dart Sass (stylesheets), esbuild (JavaScript) +# The modern asset pipeline for Rails [https://github.com/rails/propshaft] +gem 'propshaft' +gem 'jsbundling-rails' +gem 'cssbundling-rails' # used by ActiveAdmin (Tailwind CSS build) +# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] +gem 'importmap-rails' # used by ActiveAdmin (admin JS via importmap) gem 'csv' gem 'timezone'#, '~> 1.0' -gem 'uglifier'#, '>= 1.3.0' gem 'workflow-activerecord', '~> 6.0' # https://github.com/geekq/workflow-activerecord group :doc do # bundle exec rake doc:rails generates the API under doc/api. - gem 'sdoc', '2.3.1', require: false + gem 'sdoc', '~> 2.3', require: false end group :development do @@ -115,7 +115,7 @@ group :test do gem 'zonebie' end -# Use ActiveModel has_secure_password +# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] gem 'bcrypt' # gem 'foreman' diff --git a/Gemfile.lock b/Gemfile.lock index 5aa5981be..23ddd3b16 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,49 +1,49 @@ GEM remote: https://rubygems.org/ specs: - actioncable (7.2.3) - actionpack (= 7.2.3) - activesupport (= 7.2.3) + action_text-trix (2.1.19) + railties + actioncable (8.1.4) + actionpack (= 8.1.4) + activesupport (= 8.1.4) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (7.2.3) - actionpack (= 7.2.3) - activejob (= 7.2.3) - activerecord (= 7.2.3) - activestorage (= 7.2.3) - activesupport (= 7.2.3) + actionmailbox (8.1.4) + actionpack (= 8.1.4) + activejob (= 8.1.4) + activerecord (= 8.1.4) + activestorage (= 8.1.4) + activesupport (= 8.1.4) mail (>= 2.8.0) - actionmailer (7.2.3) - actionpack (= 7.2.3) - actionview (= 7.2.3) - activejob (= 7.2.3) - activesupport (= 7.2.3) + actionmailer (8.1.4) + actionpack (= 8.1.4) + actionview (= 8.1.4) + activejob (= 8.1.4) + activesupport (= 8.1.4) mail (>= 2.8.0) rails-dom-testing (~> 2.2) - actionpack (7.2.3) - actionview (= 7.2.3) - activesupport (= 7.2.3) - cgi + actionpack (8.1.4) + actionview (= 8.1.4) + activesupport (= 8.1.4) nokogiri (>= 1.8.5) - racc - rack (>= 2.2.4, < 3.3) + rack (>= 2.2.4) rack-session (>= 1.0.1) rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) useragent (~> 0.16) - actiontext (7.2.3) - actionpack (= 7.2.3) - activerecord (= 7.2.3) - activestorage (= 7.2.3) - activesupport (= 7.2.3) + actiontext (8.1.4) + action_text-trix (~> 2.1.15) + actionpack (= 8.1.4) + activerecord (= 8.1.4) + activestorage (= 8.1.4) + activesupport (= 8.1.4) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.2.3) - activesupport (= 7.2.3) + actionview (8.1.4) + activesupport (= 8.1.4) builder (~> 3.1) - cgi erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) @@ -52,43 +52,43 @@ GEM activemodel (>= 4.1) case_transform (>= 0.2) jsonapi-renderer (>= 0.1.1.beta1, < 0.3) - activeadmin (3.5.2) - arbre (~> 1.2, >= 1.2.1) + activeadmin (4.0.0.beta23) + arbre (~> 2.0) csv - formtastic (>= 3.1) - formtastic_i18n (>= 0.4) - inherited_resources (~> 1.7) - jquery-rails (>= 4.2) + formtastic (>= 6.0) + formtastic_i18n (>= 0.7) + inherited_resources (~> 2.0) kaminari (>= 1.2.1) - railties (>= 6.1) + railties (>= 7.2) ransack (>= 4.0) - activejob (7.2.3) - activesupport (= 7.2.3) + activejob (8.1.4) + activesupport (= 8.1.4) globalid (>= 0.3.6) - activemodel (7.2.3) - activesupport (= 7.2.3) - activerecord (7.2.3) - activemodel (= 7.2.3) - activesupport (= 7.2.3) + activemodel (8.1.4) + activesupport (= 8.1.4) + activerecord (8.1.4) + activemodel (= 8.1.4) + activesupport (= 8.1.4) timeout (>= 0.4.0) - activestorage (7.2.3) - actionpack (= 7.2.3) - activejob (= 7.2.3) - activerecord (= 7.2.3) - activesupport (= 7.2.3) + activestorage (8.1.4) + actionpack (= 8.1.4) + activejob (= 8.1.4) + activerecord (= 8.1.4) + activesupport (= 8.1.4) marcel (~> 1.0) - activesupport (7.2.3) + activesupport (8.1.4) base64 - benchmark (>= 0.3) bigdecimal concurrent-ruby (~> 1.0, >= 1.3.1) connection_pool (>= 2.2.5) drb i18n (>= 1.6, < 2) + json logger (>= 1.4.2) minitest (>= 5.1) securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) + uri (>= 0.13.1) acts-as-taggable-on (13.0.0) activerecord (>= 7.1, < 8.2) zeitwerk (>= 2.4, < 3.0) @@ -97,15 +97,13 @@ GEM ancestry (5.1.0) activerecord (>= 5.2.6) logger - arbre (1.7.0) - activesupport (>= 3.0.0) - ruby2_keywords (>= 0.0.2) + arbre (2.2.1) + activesupport (>= 7.0) ast (2.4.3) authority (3.3.0) activesupport (>= 3.0.0) base64 (0.3.0) bcrypt (3.1.22) - benchmark (0.5.0) bigdecimal (4.1.3) bindex (0.8.1) binding_of_caller (2.0.0) @@ -134,25 +132,17 @@ GEM xpath (~> 3.2) case_transform (0.2) activesupport - cgi (0.5.2) chartkick (5.3.0) childprocess (5.1.0) logger (~> 1.5) cocoon (1.2.15) coderay (1.1.3) - coffee-rails (5.0.0) - coffee-script (>= 2.2.0) - railties (>= 5.2.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) concurrent-ruby (1.3.8) - connection_pool (2.5.5) - countries (5.7.2) + connection_pool (3.0.2) + countries (8.1.0) unaccent (~> 0.3) - country_select (8.0.3) - countries (~> 5.0) + country_select (11.0.0) + countries (> 6.0, < 9.0) crack (1.0.1) bigdecimal rexml @@ -161,15 +151,9 @@ GEM addressable base64 ssrf_filter (~> 1.5) + cssbundling-rails (1.4.3) + railties (>= 6.0.0) csv (3.3.6) - dalli (3.2.13) - logger - dartsass-sprockets (3.2.1) - railties (>= 4.0.0) - sassc-embedded (~> 1.80.1) - sprockets (> 3.0) - sprockets-rails - tilt date (3.6.0) debug_inspector (1.2.0) diff-lcs (1.6.2) @@ -178,7 +162,7 @@ GEM faraday-follow_redirects faraday-multipart rack (>= 1.6) - doorkeeper (5.8.2) + doorkeeper (5.9.9) railties (>= 5) dotenv (3.2.0) dotenv-rails (3.2.0) @@ -193,11 +177,10 @@ GEM dragonfly (~> 1.0) fog-aws drb (2.2.3) + erb (6.0.7) erubi (1.13.1) excon (1.8.0) logger - execjs (2.10.2) - json (>= 2) factory_bot (6.6.0) activesupport (>= 6.1.0) factory_bot_rails (6.5.1) @@ -215,7 +198,6 @@ GEM net-http (~> 0.5) ffaker (2.25.0) ffi (1.17.4-x86_64-linux-gnu) - flatpickr (4.6.13.1) fog-aws (3.33.4) base64 (>= 0.2, < 0.4) fog-core (~> 2.6) @@ -244,15 +226,11 @@ GEM geocoder (1.8.6) base64 (>= 0.1.0) csv (>= 3.0.0) - gibbon (4.0.1) + gibbon (4.0.0) faraday (>= 1.0) - json (< 3.0) multi_json (>= 1.11.0) globalid (1.4.0) activesupport (>= 6.1) - google-protobuf (4.36.2-x86_64-linux-gnu) - bigdecimal - rake (~> 13.3) groupdate (6.8.0) activesupport (>= 7.2) guard (2.20.2) @@ -307,10 +285,14 @@ GEM rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.8, >= 1.8.1) terminal-table (>= 1.5.1) - inherited_resources (1.14.0) - actionpack (>= 6.0) + importmap-rails (2.2.3) + actionpack (>= 6.0.0) + activesupport (>= 6.0.0) + railties (>= 6.0.0) + inherited_resources (2.1.0) + actionpack (>= 7.0) has_scope (>= 0.6) - railties (>= 6.0) + railties (>= 7.0) responders (>= 2) interception (0.5) invisible_captcha (2.3.0) @@ -324,11 +306,9 @@ GEM jbuilder (2.15.1) actionview (>= 7.0.0) activesupport (>= 7.0.0) - jquery-rails (4.6.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (2.21.2) + jsbundling-rails (1.3.1) + railties (>= 6.0.0) + json (3.1.0) jsonapi-renderer (0.2.2) jsonapi-serializer (2.2.0) activesupport (>= 4.2) @@ -376,8 +356,6 @@ GEM minitest (6.0.6) drb (~> 2.0) prism (~> 1.5) - momentjs-rails (2.29.4.1) - railties (>= 3.1) msgpack (1.8.5) multi_json (1.21.2) multi_xml (0.9.1) @@ -416,9 +394,9 @@ GEM ast (~> 2.4.1) racc pg (1.7.0-x86_64-linux) - pg_search (2.3.8) - activerecord (>= 7.2) - activesupport (>= 7.2) + pg_search (2.4.0) + activerecord (>= 8.0) + activesupport (>= 8.0) power_assert (3.1.0) pp (0.6.4) prettyprint @@ -432,6 +410,10 @@ GEM premailer (~> 1.7, >= 1.7.9) prettyprint (0.2.1) prism (1.9.0) + propshaft (1.3.2) + actionpack (>= 7.0.0) + activesupport (>= 7.0.0) + rack pry (0.16.1) coderay (~> 1.1) method_source (~> 1.0) @@ -468,20 +450,20 @@ GEM rack (>= 1.3) rackup (2.3.1) rack (>= 3) - rails (7.2.3) - actioncable (= 7.2.3) - actionmailbox (= 7.2.3) - actionmailer (= 7.2.3) - actionpack (= 7.2.3) - actiontext (= 7.2.3) - actionview (= 7.2.3) - activejob (= 7.2.3) - activemodel (= 7.2.3) - activerecord (= 7.2.3) - activestorage (= 7.2.3) - activesupport (= 7.2.3) + rails (8.1.4) + actioncable (= 8.1.4) + actionmailbox (= 8.1.4) + actionmailer (= 8.1.4) + actionpack (= 8.1.4) + actiontext (= 8.1.4) + actionview (= 8.1.4) + activejob (= 8.1.4) + activemodel (= 8.1.4) + activerecord (= 8.1.4) + activestorage (= 8.1.4) + activesupport (= 8.1.4) bundler (>= 1.15.0) - railties (= 7.2.3) + railties (= 8.1.4) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1) @@ -493,13 +475,12 @@ GEM rails-html-sanitizer (1.7.1) loofah (~> 2.25, >= 2.25.2) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) - rails-i18n (7.0.10) + rails-i18n (8.1.0) i18n (>= 0.7, < 2) - railties (>= 6.0.0, < 8) - railties (7.2.3) - actionpack (= 7.2.3) - activesupport (= 7.2.3) - cgi + railties (>= 8.0.0, < 9) + railties (8.1.4) + actionpack (= 8.1.4) + activesupport (= 8.1.4) irb (~> 1.13) rackup (>= 1.0.0) rake (>= 12.2) @@ -515,7 +496,15 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rdoc (6.3.4.1) + rbs (4.2.0) + logger + prism (>= 1.6.0) + tsort + rdoc (8.1.0) + erb + prism (>= 1.6.0) + rbs (>= 4.0.0) + tsort record_tag_helper (1.0.1) actionview (>= 5) redcarpet (3.6.1) @@ -557,16 +546,11 @@ GEM rspec-support (>= 3.13.0, < 5.0.0) rspec-support (3.13.7) ruby-progressbar (1.13.0) - ruby2_keywords (0.0.5) rubyzip (3.7.0) - sass-embedded (1.106.1-x86_64-linux-gnu) - google-protobuf (~> 4.31) sassc (2.4.0) ffi (~> 1.9) - sassc-embedded (1.80.10) - sass-embedded (~> 1.80) - sdoc (2.3.1) - rdoc (>= 5.0, < 6.4.0) + sdoc (2.6.5) + rdoc (>= 5.0) securerandom (0.4.1) selenium-webdriver (4.51.0) base64 (~> 0.2) @@ -583,12 +567,12 @@ GEM shellany (0.0.1) shoulda-matchers (8.0.1) activesupport (>= 7.2) - sidekiq (7.3.10) - base64 - connection_pool (>= 2.3.0, < 3) - logger - rack (>= 2.2.4, < 3.3) - redis-client (>= 0.23.0, < 1) + sidekiq (8.1.7) + connection_pool (>= 3.0.0) + json (>= 2.16.0) + logger (>= 1.7.0) + rack (>= 3.2.0) + redis-client (>= 0.29.0) simple_form (5.4.1) actionpack (>= 7.0) activemodel (>= 7.0) @@ -600,14 +584,6 @@ GEM tilt (>= 2.1.0) sort_alphabetical (1.1.0) unicode_utils (>= 1.2.2) - sprockets (4.4.1) - concurrent-ruby (~> 1.1) - logger - rack (>= 2.2.4, < 4) - sprockets-rails (3.5.2) - actionpack (>= 6.1) - activesupport (>= 6.1) - sprockets (>= 3.0.0) ssrf_filter (1.6.0) stamp (0.7.0) temple (0.10.7) @@ -624,8 +600,6 @@ GEM tsort (0.2.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - uglifier (4.2.1) - execjs (>= 0.3.0, < 3) unaccent (0.4.0) unicode-display_width (3.3.0) unicode-emoji (~> 4.3) @@ -634,11 +608,10 @@ GEM uniform_notifier (1.18.1) uri (1.1.2) useragent (0.16.11) - web-console (4.2.1) - actionview (>= 6.0.0) - activemodel (>= 6.0.0) + web-console (4.3.0) + actionview (>= 8.0.0) bindex (>= 0.4.0) - railties (>= 6.0.0) + railties (>= 8.0.0) webmock (3.34.0) addressable (>= 2.8.0) crack (>= 0.3.2) @@ -662,7 +635,7 @@ PLATFORMS DEPENDENCIES active_model_serializers - activeadmin (~> 3.4) + activeadmin (= 4.0.0.beta23) acts-as-taggable-on ancestry authority @@ -676,20 +649,17 @@ DEPENDENCIES chartkick cocoon coderay - coffee-rails - countries (~> 5) - country_select (~> 8.0) + countries + country_select + cssbundling-rails csv - dalli (~> 3.2.3) - dartsass-sprockets discourse_api - doorkeeper (~> 5.8.0) + doorkeeper (~> 5.9.0) dotenv-rails dragonfly (~> 1.4.0) dragonfly-s3_data_store (~> 1.3.0) factory_bot_rails ffaker - flatpickr font-awesome-sass (~> 6.5) friendly_id geocoder @@ -700,35 +670,35 @@ DEPENDENCIES http_accept_language httparty i18n-tasks + importmap-rails inherited_resources invisible_captcha jbuilder - jquery-rails - json (< 3) + jsbundling-rails jsonapi-serializer (~> 2.2) kaminari launchy letter_opener listen minitest - momentjs-rails nest net-ssh paper_trail pg pg_search premailer-rails + propshaft pry pry-byebug pry-rails pry-rescue pry-stack_explorer - puma + puma (>= 5.0) rack-attack rack-cache rack-cors rack-mini-profiler - rails (~> 7.2.0) + rails (~> 8.1.0) rails-controller-testing ransack record_tag_helper @@ -737,30 +707,27 @@ DEPENDENCIES rolify rspec rspec-rails - sdoc (= 2.3.1) + sdoc (~> 2.3) selenium-webdriver (~> 4.0) sentry-rails sentry-ruby shoulda-matchers - sidekiq (< 8) + sidekiq simple_form simplecov sitemap_generator slim sort_alphabetical - sprockets - sprockets-rails stamp test-unit timezone - uglifier web-console webmock workflow-activerecord (~> 6.0) zonebie RUBY VERSION - ruby 3.3.13p207 + ruby 3.4.12p148 BUNDLED WITH - 2.5.22 + 2.6.9 diff --git a/Procfile b/Procfile deleted file mode 100644 index 896645142..000000000 --- a/Procfile +++ /dev/null @@ -1,3 +0,0 @@ -web: bundle exec rails server -worker: bundle exec sidekiq -# locale: bundle exec localeapp daemon diff --git a/Rakefile b/Rakefile index f0296d3a9..996c49b6d 100644 --- a/Rakefile +++ b/Rakefile @@ -1,13 +1,6 @@ # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. -require File.expand_path('../config/application', __FILE__) - -module TempFixForRakeLastComment - def last_comment - last_description - end -end -Rake::Application.send :include, TempFixForRakeLastComment +require_relative "config/application" Fablabs::Application.load_tasks diff --git a/app/admin/dashboard.rb b/app/admin/dashboard.rb index 5b69bc692..42bc61007 100644 --- a/app/admin/dashboard.rb +++ b/app/admin/dashboard.rb @@ -1,35 +1,16 @@ +# frozen_string_literal: true ActiveAdmin.register_page "Dashboard" do menu priority: 1, label: proc { I18n.t("active_admin.dashboard") } content title: proc { I18n.t("active_admin.dashboard") } do - columns do - column do - panel "Recent Users" do - ul do - User.last(25).reverse.map do |item| - li link_to(item.full_name, admin_user_path(item)) - end - end - end - end - - column do - panel "Recent Labs" do - Lab.last(25).reverse.map do |item| - li link_to(item.name, admin_lab_path(item)) - end - end - end - - column do - panel "Recent Jobs" do - ul do - Job.last(25).reverse.map do |item| - li link_to(item.title, admin_job_path(item)) - end - end - end + div class: "px-4 py-16 md:py-32 text-center m-auto max-w-3xl" do + h2 "Welcome to ActiveAdmin", class: "text-base font-semibold leading-7 text-indigo-600 dark:text-indigo-500" + para "This is the default page", class: "mt-2 text-3xl sm:text-4xl font-bold text-gray-900 dark:text-gray-200" + para class: "mt-6 text-xl leading-8 text-gray-700 dark:text-gray-400" do + text_node "To update the content, edit the" + strong "app/admin/dashboard.rb" + text_node "file to get started." end end - end # content -end + end +end \ No newline at end of file diff --git a/vendor/assets/javascripts/.keep b/app/assets/builds/.keep similarity index 100% rename from vendor/assets/javascripts/.keep rename to app/assets/builds/.keep diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js deleted file mode 100644 index 7d52bcf35..000000000 --- a/app/assets/config/manifest.js +++ /dev/null @@ -1,3 +0,0 @@ -//= link_tree ../images -//= link_directory ../stylesheets .css -//= link_directory ../javascripts .js diff --git a/app/assets/javascripts/active_admin.js b/app/assets/javascripts/active_admin.js deleted file mode 100644 index d2b66c59f..000000000 --- a/app/assets/javascripts/active_admin.js +++ /dev/null @@ -1 +0,0 @@ -//= require active_admin/base diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js deleted file mode 100644 index 16607738b..000000000 --- a/app/assets/javascripts/application.js +++ /dev/null @@ -1,51 +0,0 @@ -// This is a manifest file that'll be compiled into application.js, which will include all the files -// listed below. -// -// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery/dist/jquery.slim.js -//= require bootstrap/dist/js/bootstrap.bundle.js -//= require jquery.limit-1.2 -//= require leaflet -//= require Control.Loading.js -//= require jquery.geocomplete -//= require cocoon -//= require list -//= require flatpickr -//= require underscore -//= require select2/dist/js/select2 -//= require messenger -//= require messenger-theme-flat -//= require jquery.autosize -//= require moment -//= require spin.js/spin -//= require leaflet-spin -//= require rails-ujs -//= require ./labs.js - - -document.addEventListener("DOMContentLoaded", function() { - - // $('textarea.trumbowyg').trumbowyg(); used in Pages; held back sass upgrad; not used for now - $("select").select2({ width: '100%' }); - - // This flatpicker does not have the Time, HH:MM - flatpickr('.flatpickr', { - enableTime: false, - dateFormat: "Y-m-d", - time_24hr: true - }) - - // This flatpickr has Time, HH:MM - flatpickr('.flatpickr-time', { - enableTime: true, - dateFormat: "Y-m-d H:i", - time_24hr: true - }) - - return $('*[data-limit]').each(function() { - return $(this).limit(parseInt($(this).data('limit')), $(this).data('counter')); - }); - -}); diff --git a/app/assets/javascripts/labs.js.coffee b/app/assets/javascripts/labs.js.coffee deleted file mode 100644 index cd94a1dfc..000000000 --- a/app/assets/javascripts/labs.js.coffee +++ /dev/null @@ -1,108 +0,0 @@ -window.labs = [] -window.map = null -window.showingContacts = false - -down = false - -toggleActivityDateFields = (status) -> - switch status - when 'planned' - $('.input.lab_activity_start_at').show() - $('.input.lab_activity_inaugurated_at').hide() - $('.input.lab_activity_closed_at').hide() - when 'active' - $('.input.lab_activity_start_at').show() - $('.input.lab_activity_inaugurated_at').show() - $('.input.lab_activity_closed_at').hide() - else - $('.input.lab_activity_start_at').show() - $('.input.lab_activity_inaugurated_at').show() - $('.input.lab_activity_closed_at').show() - - - -ready = -> - options = { - valueNames: [ 'name', 'year' ] - } - window.userList = new List('students', options) - - last_valid_selection = $('.referee_approval').val - - - # Toggle fields on load - toggleActivityDateFields($('.activity-status-radio:checked').val()) - - # Toggle fields on change - $('.activity-status-radio').on 'change', (event) -> - if $(event.target).is(':checked') - toggleActivityDateFields(event.target.value) - - - $('.referee_approval').on 'change', (event) -> - if $(this).val().length > 3 - $(this).val last_valid_selection - else - last_valid_selection = $(this).val() - return - - if $('#students-filter') - $('#students-filter a').on 'click', (e) -> - e.preventDefault() - $('#students-filter dd').removeClass('active') - $(this).parents('dd').addClass('active') - if $(this).data('year') - window.userList.filter (item) => - return parseInt(item._values.year) == parseInt($(this).data('year')) - else - window.userList.filter() - - $('#check-labs').on 'change', () -> - alert("We already have '#{$(this).val()}' lab in our database, if it is not yet visible on the site it will be soon") - - $(document).on 'mousedown', () -> - down = true - .on 'mouseup', () -> - down = false - - $('.opening-hours td').on 'mouseover', () -> - $(this).toggleClass 'active' if (down) - .on 'click', () -> - $(this).toggleClass 'active' - - - $('[data-toggle=offcanvas]').on 'click', () -> - $('.row-offcanvas').toggleClass('active') - - -# Map in a Lab page - - - $('#lab_name').on 'change', () -> - unless $('#lab_slug').val() - $('#lab_slug').val( $(this).val().toLowerCase().replace(/[^A-Za-z0-9]/g,''); ) - - updateFormWithLatLng = (lat, lng) -> - $('.c-labs.a-new #lab_address_1').focus() - $("input#lab_latitude").val lat - $("input#lab_longitude").val lng - $('select#lab_country_code').trigger('change') - $('#lab_geoinfo') - .find('strong') - .text(Number(lat).toFixed(6) + ' / ' + Number(lng).toFixed(6)) - - # $('.step-2').css(opacity: 0.5) - $(".c-labs input#geocomplete").geocomplete - map: "#location-picker-map" - location: $('#geocomplete').data('latlng') - details: ".c-labs.a-new .address" - detailsAttribute: "data-geo" - markerOptions: - draggable: true - .on 'geocode:dragged', (event, latLng) -> - updateFormWithLatLng(latLng.lat(), latLng.lng()) - .on 'geocode:result', (event, result) -> - updateFormWithLatLng(result.geometry.location.lat(), result.geometry.location.lng()) - -$(document).ready ready -# $(document).on "page:load", ready \ No newline at end of file diff --git a/app/assets/stylesheets/active_admin.css b/app/assets/stylesheets/active_admin.css new file mode 100644 index 000000000..caa58b334 --- /dev/null +++ b/app/assets/stylesheets/active_admin.css @@ -0,0 +1,3 @@ +@import "tailwindcss"; + +@config "../../../tailwind-active_admin.config.js"; diff --git a/app/assets/stylesheets/active_admin.scss b/app/assets/stylesheets/active_admin.scss deleted file mode 100644 index 41c27b384..000000000 --- a/app/assets/stylesheets/active_admin.scss +++ /dev/null @@ -1,17 +0,0 @@ -// Sass variable overrides must be declared before loading up Active Admin's styles. -// -// To view the variables that Active Admin provides, take a look at -// `app/assets/stylesheets/active_admin/mixins/_variables.scss` in the -// Active Admin source. -// -// For example, to change the sidebar width: -// $sidebar-width: 242px; - -// Active Admin's got SASS! -@import "active_admin/mixins"; -@import "active_admin/base"; - -// Overriding any non-variable Sass must be done after the fact. -// For example, to change the default status-tag color: -// -// .status_tag { background: #6090DB; } diff --git a/app/assets/stylesheets/alt.css.scss b/app/assets/stylesheets/alt.css.scss index a9f472b9f..332de260e 100644 --- a/app/assets/stylesheets/alt.css.scss +++ b/app/assets/stylesheets/alt.css.scss @@ -1,6 +1,6 @@ .homepage-features-list { li { - list-style-image: image_url("dot.png"); + list-style-image: url("/dot.png"); list-style-position: inside; font-size: 18px; line-height: 32px; diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index da4cf1802..a3d0af14a 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -1,29 +1,11 @@ -/* - * This is a manifest file that'll be compiled into application.css, which will include all the files - * listed below. - * - * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, - * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. - * - * You're free to add application-wide styles to this file and they'll appear at the top of the - * compiled file, but it's generally better to create a new file per style scope. - * - *= require Control.Loading.css - *= require select2/dist/css/select2 - *= require taggd - *= require intlTelInput - *= require messenger - *= require messenger-theme-flat - *= require bootstrap/dist/css/bootstrap.min.css - *= require flatpickr - *= require leaflet - *= stub active_admin - *= require_self - *= require_tree . - */ +@import "select2/dist/css/select2"; + +@import "bootstrap/dist/css/bootstrap.min"; +@import "flatpickr/dist/flatpickr.min"; + +/* App styles; more imports at bottom */ @import "common_vars"; -@import "font-awesome"; a{ cursor: pointer; @@ -31,7 +13,7 @@ a{ #embed-logo { display: block; - background: image_url("embed-logo.png"); + background: url("/embed-logo.png"); width: 200px; height: 51px; bottom: 18px; @@ -449,4 +431,21 @@ a.text-primary { } - +@import "alt.css.scss"; +@import "backstage/backstage.css.scss"; +@import "backstage/labs.css.scss"; +@import "discourse.css.scss"; +@import "embed.css.scss"; +@import "flags.css.scss"; +@import "footer.css.scss"; +@import "forms.css.scss"; +@import "header.css.scss"; +@import "home.css.scss"; +@import "labs.css.scss"; +@import "machines.css.scss"; +@import "map.css.scss"; +@import "projects.css.scss"; +@import "sessions.css.scss"; +@import "users.css.scss"; +@import "vertical-timeline.css.scss"; +@import "doorkeeper-application"; diff --git a/app/assets/stylesheets/doorkeeper-application.scss b/app/assets/stylesheets/doorkeeper-application.scss new file mode 100644 index 000000000..0f5751aba --- /dev/null +++ b/app/assets/stylesheets/doorkeeper-application.scss @@ -0,0 +1,52 @@ +.doorkeeper-application { + background-color: #fff; + border: 1px solid #999; + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 6px; + -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); + box-shadow: 0 3px 20px rgba(0, 0, 0, 0.3); + margin: 2em auto; + max-width: 600px; + outline: 0; + padding: 1em; + width: 80%; + + .page-header { + margin-top: 20px; + } + + #oauth-permissions { + width: 260px; + } + + .actions { + border-top: 1px solid #eee; + margin-top: 1em; + padding-top: 9px; + } + + .actions > form > .btn { + margin-top: 5px; + } + + .separator { + color: #eee; + padding: 0 .5em; + } + + .inline_block { + display: inline-block; + } + + #oauth { + margin-bottom: 1em; + } + + #oauth > .btn { + width: 7em; + } + + td { + vertical-align: middle !important; + } +} \ No newline at end of file diff --git a/app/assets/stylesheets/flags.css.scss b/app/assets/stylesheets/flags.css.scss index 7193c9ae7..e733c5302 100644 --- a/app/assets/stylesheets/flags.css.scss +++ b/app/assets/stylesheets/flags.css.scss @@ -2,7 +2,7 @@ width: 16px; height: 11px; // margin: 3px 5px 0 0; - background: image-url("flags-sprite.png") no-repeat; + background: url("/flags-sprite.png") no-repeat; display: inline-block; } diff --git a/app/assets/stylesheets/fontawesome/LICENSE.txt b/app/assets/stylesheets/fontawesome/LICENSE.txt new file mode 100644 index 000000000..e69c5e39a --- /dev/null +++ b/app/assets/stylesheets/fontawesome/LICENSE.txt @@ -0,0 +1,165 @@ +Fonticons, Inc. (https://fontawesome.com) + +-------------------------------------------------------------------------------- + +Font Awesome Free License + +Font Awesome Free is free, open source, and GPL friendly. You can use it for +commercial projects, open source projects, or really almost whatever you want. +Full Font Awesome Free license: https://fontawesome.com/license/free. + +-------------------------------------------------------------------------------- + +# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/) + +The Font Awesome Free download is licensed under a Creative Commons +Attribution 4.0 International License and applies to all icons packaged +as SVG and JS file types. + +-------------------------------------------------------------------------------- + +# Fonts: SIL OFL 1.1 License + +In the Font Awesome Free download, the SIL OFL license applies to all icons +packaged as web and desktop font files. + +Copyright (c) 2024 Fonticons, Inc. (https://fontawesome.com) +with Reserved Font Name: "Font Awesome". + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +SIL OPEN FONT LICENSE +Version 1.1 - 26 February 2007 + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting — in part or in whole — any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + +-------------------------------------------------------------------------------- + +# Code: MIT License (https://opensource.org/licenses/MIT) + +In the Font Awesome Free download, the MIT license applies to all non-font and +non-icon files. + +Copyright 2024 Fonticons, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in the +Software without restriction, including without limitation the rights to use, copy, +modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +-------------------------------------------------------------------------------- + +# Attribution + +Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font +Awesome Free files already contain embedded comments with sufficient +attribution, so you shouldn't need to do anything additional when using these +files normally. + +We've kept attribution comments terse, so we ask that you do not actively work +to remove them from files, especially code. They're a great way for folks to +learn about Font Awesome. + +-------------------------------------------------------------------------------- + +# Brand Icons + +All brand icons are trademarks of their respective owners. The use of these +trademarks does not indicate endorsement of the trademark holder by Font +Awesome, nor vice versa. **Please do not use brand logos for any purpose except +to represent the company, product, or service to which they refer.** diff --git a/app/assets/stylesheets/fontawesome/css/fontawesome.css b/app/assets/stylesheets/fontawesome/css/fontawesome.css new file mode 100644 index 000000000..a9b2ec89b --- /dev/null +++ b/app/assets/stylesheets/fontawesome/css/fontawesome.css @@ -0,0 +1,6243 @@ +/*! + * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2024 Fonticons, Inc. + */ +.fa { + font-family: var(--fa-style-family, "Font Awesome 6 Free"); + font-weight: var(--fa-style, 900); } + +.fas, +.far, +.fab, +.fa-solid, +.fa-regular, +.fa-brands, +.fa { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + display: var(--fa-display, inline-block); + font-style: normal; + font-variant: normal; + line-height: 1; + text-rendering: auto; } + +.fas::before, +.far::before, +.fab::before, +.fa-solid::before, +.fa-regular::before, +.fa-brands::before, +.fa::before { + content: var(--fa); } + +.fa-classic, +.fas, +.fa-solid, +.far, +.fa-regular { + font-family: 'Font Awesome 6 Free'; } + +.fa-brands, +.fab { + font-family: 'Font Awesome 6 Brands'; } + +.fa-1x { + font-size: 1em; } + +.fa-2x { + font-size: 2em; } + +.fa-3x { + font-size: 3em; } + +.fa-4x { + font-size: 4em; } + +.fa-5x { + font-size: 5em; } + +.fa-6x { + font-size: 6em; } + +.fa-7x { + font-size: 7em; } + +.fa-8x { + font-size: 8em; } + +.fa-9x { + font-size: 9em; } + +.fa-10x { + font-size: 10em; } + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; } + +.fa-xs { + font-size: 0.75em; + line-height: 0.08333em; + vertical-align: 0.125em; } + +.fa-sm { + font-size: 0.875em; + line-height: 0.07143em; + vertical-align: 0.05357em; } + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; } + +.fa-xl { + font-size: 1.5em; + line-height: 0.04167em; + vertical-align: -0.125em; } + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; } + +.fa-fw { + text-align: center; + width: 1.25em; } + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; } + .fa-ul > li { + position: relative; } + +.fa-li { + left: calc(-1 * var(--fa-li-width, 2em)); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; } + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); } + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); } + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); } + +.fa-beat { + animation-name: fa-beat; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); } + +.fa-bounce { + animation-name: fa-bounce; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); } + +.fa-fade { + animation-name: fa-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } + +.fa-beat-fade { + animation-name: fa-beat-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } + +.fa-flip { + animation-name: fa-flip; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); } + +.fa-shake { + animation-name: fa-shake; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); } + +.fa-spin { + animation-name: fa-spin; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 2s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); } + +.fa-spin-reverse { + --fa-animation-direction: reverse; } + +.fa-pulse, +.fa-spin-pulse { + animation-name: fa-spin; + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, steps(8)); } + +@media (prefers-reduced-motion: reduce) { + .fa-beat, + .fa-bounce, + .fa-fade, + .fa-beat-fade, + .fa-flip, + .fa-pulse, + .fa-shake, + .fa-spin, + .fa-spin-pulse { + animation-delay: -1ms; + animation-duration: 1ms; + animation-iteration-count: 1; + transition-delay: 0s; + transition-duration: 0s; } } + +@keyframes fa-beat { + 0%, 90% { + transform: scale(1); } + 45% { + transform: scale(var(--fa-beat-scale, 1.25)); } } + +@keyframes fa-bounce { + 0% { + transform: scale(1, 1) translateY(0); } + 10% { + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } + 30% { + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); } + 50% { + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } + 57% { + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } + 64% { + transform: scale(1, 1) translateY(0); } + 100% { + transform: scale(1, 1) translateY(0); } } + +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); } } + +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + transform: scale(1); } + 50% { + opacity: 1; + transform: scale(var(--fa-beat-fade-scale, 1.125)); } } + +@keyframes fa-flip { + 50% { + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } + +@keyframes fa-shake { + 0% { + transform: rotate(-15deg); } + 4% { + transform: rotate(15deg); } + 8%, 24% { + transform: rotate(-18deg); } + 12%, 28% { + transform: rotate(18deg); } + 16% { + transform: rotate(-22deg); } + 20% { + transform: rotate(22deg); } + 32% { + transform: rotate(-12deg); } + 36% { + transform: rotate(12deg); } + 40%, 100% { + transform: rotate(0deg); } } + +@keyframes fa-spin { + 0% { + transform: rotate(0deg); } + 100% { + transform: rotate(360deg); } } + +.fa-rotate-90 { + transform: rotate(90deg); } + +.fa-rotate-180 { + transform: rotate(180deg); } + +.fa-rotate-270 { + transform: rotate(270deg); } + +.fa-flip-horizontal { + transform: scale(-1, 1); } + +.fa-flip-vertical { + transform: scale(1, -1); } + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + transform: scale(-1, -1); } + +.fa-rotate-by { + transform: rotate(var(--fa-rotate-angle, 0)); } + +.fa-stack { + display: inline-block; + height: 2em; + line-height: 2em; + position: relative; + vertical-align: middle; + width: 2.5em; } + +.fa-stack-1x, +.fa-stack-2x { + left: 0; + position: absolute; + text-align: center; + width: 100%; + z-index: var(--fa-stack-z-index, auto); } + +.fa-stack-1x { + line-height: inherit; } + +.fa-stack-2x { + font-size: 2em; } + +.fa-inverse { + color: var(--fa-inverse, #fff); } + +/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen +readers do not read off random characters that represent icons */ + +.fa-0 { + --fa: "\30"; } + +.fa-1 { + --fa: "\31"; } + +.fa-2 { + --fa: "\32"; } + +.fa-3 { + --fa: "\33"; } + +.fa-4 { + --fa: "\34"; } + +.fa-5 { + --fa: "\35"; } + +.fa-6 { + --fa: "\36"; } + +.fa-7 { + --fa: "\37"; } + +.fa-8 { + --fa: "\38"; } + +.fa-9 { + --fa: "\39"; } + +.fa-fill-drip { + --fa: "\f576"; } + +.fa-arrows-to-circle { + --fa: "\e4bd"; } + +.fa-circle-chevron-right { + --fa: "\f138"; } + +.fa-chevron-circle-right { + --fa: "\f138"; } + +.fa-at { + --fa: "\40"; } + +.fa-trash-can { + --fa: "\f2ed"; } + +.fa-trash-alt { + --fa: "\f2ed"; } + +.fa-text-height { + --fa: "\f034"; } + +.fa-user-xmark { + --fa: "\f235"; } + +.fa-user-times { + --fa: "\f235"; } + +.fa-stethoscope { + --fa: "\f0f1"; } + +.fa-message { + --fa: "\f27a"; } + +.fa-comment-alt { + --fa: "\f27a"; } + +.fa-info { + --fa: "\f129"; } + +.fa-down-left-and-up-right-to-center { + --fa: "\f422"; } + +.fa-compress-alt { + --fa: "\f422"; } + +.fa-explosion { + --fa: "\e4e9"; } + +.fa-file-lines { + --fa: "\f15c"; } + +.fa-file-alt { + --fa: "\f15c"; } + +.fa-file-text { + --fa: "\f15c"; } + +.fa-wave-square { + --fa: "\f83e"; } + +.fa-ring { + --fa: "\f70b"; } + +.fa-building-un { + --fa: "\e4d9"; } + +.fa-dice-three { + --fa: "\f527"; } + +.fa-calendar-days { + --fa: "\f073"; } + +.fa-calendar-alt { + --fa: "\f073"; } + +.fa-anchor-circle-check { + --fa: "\e4aa"; } + +.fa-building-circle-arrow-right { + --fa: "\e4d1"; } + +.fa-volleyball { + --fa: "\f45f"; } + +.fa-volleyball-ball { + --fa: "\f45f"; } + +.fa-arrows-up-to-line { + --fa: "\e4c2"; } + +.fa-sort-down { + --fa: "\f0dd"; } + +.fa-sort-desc { + --fa: "\f0dd"; } + +.fa-circle-minus { + --fa: "\f056"; } + +.fa-minus-circle { + --fa: "\f056"; } + +.fa-door-open { + --fa: "\f52b"; } + +.fa-right-from-bracket { + --fa: "\f2f5"; } + +.fa-sign-out-alt { + --fa: "\f2f5"; } + +.fa-atom { + --fa: "\f5d2"; } + +.fa-soap { + --fa: "\e06e"; } + +.fa-icons { + --fa: "\f86d"; } + +.fa-heart-music-camera-bolt { + --fa: "\f86d"; } + +.fa-microphone-lines-slash { + --fa: "\f539"; } + +.fa-microphone-alt-slash { + --fa: "\f539"; } + +.fa-bridge-circle-check { + --fa: "\e4c9"; } + +.fa-pump-medical { + --fa: "\e06a"; } + +.fa-fingerprint { + --fa: "\f577"; } + +.fa-hand-point-right { + --fa: "\f0a4"; } + +.fa-magnifying-glass-location { + --fa: "\f689"; } + +.fa-search-location { + --fa: "\f689"; } + +.fa-forward-step { + --fa: "\f051"; } + +.fa-step-forward { + --fa: "\f051"; } + +.fa-face-smile-beam { + --fa: "\f5b8"; } + +.fa-smile-beam { + --fa: "\f5b8"; } + +.fa-flag-checkered { + --fa: "\f11e"; } + +.fa-football { + --fa: "\f44e"; } + +.fa-football-ball { + --fa: "\f44e"; } + +.fa-school-circle-exclamation { + --fa: "\e56c"; } + +.fa-crop { + --fa: "\f125"; } + +.fa-angles-down { + --fa: "\f103"; } + +.fa-angle-double-down { + --fa: "\f103"; } + +.fa-users-rectangle { + --fa: "\e594"; } + +.fa-people-roof { + --fa: "\e537"; } + +.fa-people-line { + --fa: "\e534"; } + +.fa-beer-mug-empty { + --fa: "\f0fc"; } + +.fa-beer { + --fa: "\f0fc"; } + +.fa-diagram-predecessor { + --fa: "\e477"; } + +.fa-arrow-up-long { + --fa: "\f176"; } + +.fa-long-arrow-up { + --fa: "\f176"; } + +.fa-fire-flame-simple { + --fa: "\f46a"; } + +.fa-burn { + --fa: "\f46a"; } + +.fa-person { + --fa: "\f183"; } + +.fa-male { + --fa: "\f183"; } + +.fa-laptop { + --fa: "\f109"; } + +.fa-file-csv { + --fa: "\f6dd"; } + +.fa-menorah { + --fa: "\f676"; } + +.fa-truck-plane { + --fa: "\e58f"; } + +.fa-record-vinyl { + --fa: "\f8d9"; } + +.fa-face-grin-stars { + --fa: "\f587"; } + +.fa-grin-stars { + --fa: "\f587"; } + +.fa-bong { + --fa: "\f55c"; } + +.fa-spaghetti-monster-flying { + --fa: "\f67b"; } + +.fa-pastafarianism { + --fa: "\f67b"; } + +.fa-arrow-down-up-across-line { + --fa: "\e4af"; } + +.fa-spoon { + --fa: "\f2e5"; } + +.fa-utensil-spoon { + --fa: "\f2e5"; } + +.fa-jar-wheat { + --fa: "\e517"; } + +.fa-envelopes-bulk { + --fa: "\f674"; } + +.fa-mail-bulk { + --fa: "\f674"; } + +.fa-file-circle-exclamation { + --fa: "\e4eb"; } + +.fa-circle-h { + --fa: "\f47e"; } + +.fa-hospital-symbol { + --fa: "\f47e"; } + +.fa-pager { + --fa: "\f815"; } + +.fa-address-book { + --fa: "\f2b9"; } + +.fa-contact-book { + --fa: "\f2b9"; } + +.fa-strikethrough { + --fa: "\f0cc"; } + +.fa-k { + --fa: "\4b"; } + +.fa-landmark-flag { + --fa: "\e51c"; } + +.fa-pencil { + --fa: "\f303"; } + +.fa-pencil-alt { + --fa: "\f303"; } + +.fa-backward { + --fa: "\f04a"; } + +.fa-caret-right { + --fa: "\f0da"; } + +.fa-comments { + --fa: "\f086"; } + +.fa-paste { + --fa: "\f0ea"; } + +.fa-file-clipboard { + --fa: "\f0ea"; } + +.fa-code-pull-request { + --fa: "\e13c"; } + +.fa-clipboard-list { + --fa: "\f46d"; } + +.fa-truck-ramp-box { + --fa: "\f4de"; } + +.fa-truck-loading { + --fa: "\f4de"; } + +.fa-user-check { + --fa: "\f4fc"; } + +.fa-vial-virus { + --fa: "\e597"; } + +.fa-sheet-plastic { + --fa: "\e571"; } + +.fa-blog { + --fa: "\f781"; } + +.fa-user-ninja { + --fa: "\f504"; } + +.fa-person-arrow-up-from-line { + --fa: "\e539"; } + +.fa-scroll-torah { + --fa: "\f6a0"; } + +.fa-torah { + --fa: "\f6a0"; } + +.fa-broom-ball { + --fa: "\f458"; } + +.fa-quidditch { + --fa: "\f458"; } + +.fa-quidditch-broom-ball { + --fa: "\f458"; } + +.fa-toggle-off { + --fa: "\f204"; } + +.fa-box-archive { + --fa: "\f187"; } + +.fa-archive { + --fa: "\f187"; } + +.fa-person-drowning { + --fa: "\e545"; } + +.fa-arrow-down-9-1 { + --fa: "\f886"; } + +.fa-sort-numeric-desc { + --fa: "\f886"; } + +.fa-sort-numeric-down-alt { + --fa: "\f886"; } + +.fa-face-grin-tongue-squint { + --fa: "\f58a"; } + +.fa-grin-tongue-squint { + --fa: "\f58a"; } + +.fa-spray-can { + --fa: "\f5bd"; } + +.fa-truck-monster { + --fa: "\f63b"; } + +.fa-w { + --fa: "\57"; } + +.fa-earth-africa { + --fa: "\f57c"; } + +.fa-globe-africa { + --fa: "\f57c"; } + +.fa-rainbow { + --fa: "\f75b"; } + +.fa-circle-notch { + --fa: "\f1ce"; } + +.fa-tablet-screen-button { + --fa: "\f3fa"; } + +.fa-tablet-alt { + --fa: "\f3fa"; } + +.fa-paw { + --fa: "\f1b0"; } + +.fa-cloud { + --fa: "\f0c2"; } + +.fa-trowel-bricks { + --fa: "\e58a"; } + +.fa-face-flushed { + --fa: "\f579"; } + +.fa-flushed { + --fa: "\f579"; } + +.fa-hospital-user { + --fa: "\f80d"; } + +.fa-tent-arrow-left-right { + --fa: "\e57f"; } + +.fa-gavel { + --fa: "\f0e3"; } + +.fa-legal { + --fa: "\f0e3"; } + +.fa-binoculars { + --fa: "\f1e5"; } + +.fa-microphone-slash { + --fa: "\f131"; } + +.fa-box-tissue { + --fa: "\e05b"; } + +.fa-motorcycle { + --fa: "\f21c"; } + +.fa-bell-concierge { + --fa: "\f562"; } + +.fa-concierge-bell { + --fa: "\f562"; } + +.fa-pen-ruler { + --fa: "\f5ae"; } + +.fa-pencil-ruler { + --fa: "\f5ae"; } + +.fa-people-arrows { + --fa: "\e068"; } + +.fa-people-arrows-left-right { + --fa: "\e068"; } + +.fa-mars-and-venus-burst { + --fa: "\e523"; } + +.fa-square-caret-right { + --fa: "\f152"; } + +.fa-caret-square-right { + --fa: "\f152"; } + +.fa-scissors { + --fa: "\f0c4"; } + +.fa-cut { + --fa: "\f0c4"; } + +.fa-sun-plant-wilt { + --fa: "\e57a"; } + +.fa-toilets-portable { + --fa: "\e584"; } + +.fa-hockey-puck { + --fa: "\f453"; } + +.fa-table { + --fa: "\f0ce"; } + +.fa-magnifying-glass-arrow-right { + --fa: "\e521"; } + +.fa-tachograph-digital { + --fa: "\f566"; } + +.fa-digital-tachograph { + --fa: "\f566"; } + +.fa-users-slash { + --fa: "\e073"; } + +.fa-clover { + --fa: "\e139"; } + +.fa-reply { + --fa: "\f3e5"; } + +.fa-mail-reply { + --fa: "\f3e5"; } + +.fa-star-and-crescent { + --fa: "\f699"; } + +.fa-house-fire { + --fa: "\e50c"; } + +.fa-square-minus { + --fa: "\f146"; } + +.fa-minus-square { + --fa: "\f146"; } + +.fa-helicopter { + --fa: "\f533"; } + +.fa-compass { + --fa: "\f14e"; } + +.fa-square-caret-down { + --fa: "\f150"; } + +.fa-caret-square-down { + --fa: "\f150"; } + +.fa-file-circle-question { + --fa: "\e4ef"; } + +.fa-laptop-code { + --fa: "\f5fc"; } + +.fa-swatchbook { + --fa: "\f5c3"; } + +.fa-prescription-bottle { + --fa: "\f485"; } + +.fa-bars { + --fa: "\f0c9"; } + +.fa-navicon { + --fa: "\f0c9"; } + +.fa-people-group { + --fa: "\e533"; } + +.fa-hourglass-end { + --fa: "\f253"; } + +.fa-hourglass-3 { + --fa: "\f253"; } + +.fa-heart-crack { + --fa: "\f7a9"; } + +.fa-heart-broken { + --fa: "\f7a9"; } + +.fa-square-up-right { + --fa: "\f360"; } + +.fa-external-link-square-alt { + --fa: "\f360"; } + +.fa-face-kiss-beam { + --fa: "\f597"; } + +.fa-kiss-beam { + --fa: "\f597"; } + +.fa-film { + --fa: "\f008"; } + +.fa-ruler-horizontal { + --fa: "\f547"; } + +.fa-people-robbery { + --fa: "\e536"; } + +.fa-lightbulb { + --fa: "\f0eb"; } + +.fa-caret-left { + --fa: "\f0d9"; } + +.fa-circle-exclamation { + --fa: "\f06a"; } + +.fa-exclamation-circle { + --fa: "\f06a"; } + +.fa-school-circle-xmark { + --fa: "\e56d"; } + +.fa-arrow-right-from-bracket { + --fa: "\f08b"; } + +.fa-sign-out { + --fa: "\f08b"; } + +.fa-circle-chevron-down { + --fa: "\f13a"; } + +.fa-chevron-circle-down { + --fa: "\f13a"; } + +.fa-unlock-keyhole { + --fa: "\f13e"; } + +.fa-unlock-alt { + --fa: "\f13e"; } + +.fa-cloud-showers-heavy { + --fa: "\f740"; } + +.fa-headphones-simple { + --fa: "\f58f"; } + +.fa-headphones-alt { + --fa: "\f58f"; } + +.fa-sitemap { + --fa: "\f0e8"; } + +.fa-circle-dollar-to-slot { + --fa: "\f4b9"; } + +.fa-donate { + --fa: "\f4b9"; } + +.fa-memory { + --fa: "\f538"; } + +.fa-road-spikes { + --fa: "\e568"; } + +.fa-fire-burner { + --fa: "\e4f1"; } + +.fa-flag { + --fa: "\f024"; } + +.fa-hanukiah { + --fa: "\f6e6"; } + +.fa-feather { + --fa: "\f52d"; } + +.fa-volume-low { + --fa: "\f027"; } + +.fa-volume-down { + --fa: "\f027"; } + +.fa-comment-slash { + --fa: "\f4b3"; } + +.fa-cloud-sun-rain { + --fa: "\f743"; } + +.fa-compress { + --fa: "\f066"; } + +.fa-wheat-awn { + --fa: "\e2cd"; } + +.fa-wheat-alt { + --fa: "\e2cd"; } + +.fa-ankh { + --fa: "\f644"; } + +.fa-hands-holding-child { + --fa: "\e4fa"; } + +.fa-asterisk { + --fa: "\2a"; } + +.fa-square-check { + --fa: "\f14a"; } + +.fa-check-square { + --fa: "\f14a"; } + +.fa-peseta-sign { + --fa: "\e221"; } + +.fa-heading { + --fa: "\f1dc"; } + +.fa-header { + --fa: "\f1dc"; } + +.fa-ghost { + --fa: "\f6e2"; } + +.fa-list { + --fa: "\f03a"; } + +.fa-list-squares { + --fa: "\f03a"; } + +.fa-square-phone-flip { + --fa: "\f87b"; } + +.fa-phone-square-alt { + --fa: "\f87b"; } + +.fa-cart-plus { + --fa: "\f217"; } + +.fa-gamepad { + --fa: "\f11b"; } + +.fa-circle-dot { + --fa: "\f192"; } + +.fa-dot-circle { + --fa: "\f192"; } + +.fa-face-dizzy { + --fa: "\f567"; } + +.fa-dizzy { + --fa: "\f567"; } + +.fa-egg { + --fa: "\f7fb"; } + +.fa-house-medical-circle-xmark { + --fa: "\e513"; } + +.fa-campground { + --fa: "\f6bb"; } + +.fa-folder-plus { + --fa: "\f65e"; } + +.fa-futbol { + --fa: "\f1e3"; } + +.fa-futbol-ball { + --fa: "\f1e3"; } + +.fa-soccer-ball { + --fa: "\f1e3"; } + +.fa-paintbrush { + --fa: "\f1fc"; } + +.fa-paint-brush { + --fa: "\f1fc"; } + +.fa-lock { + --fa: "\f023"; } + +.fa-gas-pump { + --fa: "\f52f"; } + +.fa-hot-tub-person { + --fa: "\f593"; } + +.fa-hot-tub { + --fa: "\f593"; } + +.fa-map-location { + --fa: "\f59f"; } + +.fa-map-marked { + --fa: "\f59f"; } + +.fa-house-flood-water { + --fa: "\e50e"; } + +.fa-tree { + --fa: "\f1bb"; } + +.fa-bridge-lock { + --fa: "\e4cc"; } + +.fa-sack-dollar { + --fa: "\f81d"; } + +.fa-pen-to-square { + --fa: "\f044"; } + +.fa-edit { + --fa: "\f044"; } + +.fa-car-side { + --fa: "\f5e4"; } + +.fa-share-nodes { + --fa: "\f1e0"; } + +.fa-share-alt { + --fa: "\f1e0"; } + +.fa-heart-circle-minus { + --fa: "\e4ff"; } + +.fa-hourglass-half { + --fa: "\f252"; } + +.fa-hourglass-2 { + --fa: "\f252"; } + +.fa-microscope { + --fa: "\f610"; } + +.fa-sink { + --fa: "\e06d"; } + +.fa-bag-shopping { + --fa: "\f290"; } + +.fa-shopping-bag { + --fa: "\f290"; } + +.fa-arrow-down-z-a { + --fa: "\f881"; } + +.fa-sort-alpha-desc { + --fa: "\f881"; } + +.fa-sort-alpha-down-alt { + --fa: "\f881"; } + +.fa-mitten { + --fa: "\f7b5"; } + +.fa-person-rays { + --fa: "\e54d"; } + +.fa-users { + --fa: "\f0c0"; } + +.fa-eye-slash { + --fa: "\f070"; } + +.fa-flask-vial { + --fa: "\e4f3"; } + +.fa-hand { + --fa: "\f256"; } + +.fa-hand-paper { + --fa: "\f256"; } + +.fa-om { + --fa: "\f679"; } + +.fa-worm { + --fa: "\e599"; } + +.fa-house-circle-xmark { + --fa: "\e50b"; } + +.fa-plug { + --fa: "\f1e6"; } + +.fa-chevron-up { + --fa: "\f077"; } + +.fa-hand-spock { + --fa: "\f259"; } + +.fa-stopwatch { + --fa: "\f2f2"; } + +.fa-face-kiss { + --fa: "\f596"; } + +.fa-kiss { + --fa: "\f596"; } + +.fa-bridge-circle-xmark { + --fa: "\e4cb"; } + +.fa-face-grin-tongue { + --fa: "\f589"; } + +.fa-grin-tongue { + --fa: "\f589"; } + +.fa-chess-bishop { + --fa: "\f43a"; } + +.fa-face-grin-wink { + --fa: "\f58c"; } + +.fa-grin-wink { + --fa: "\f58c"; } + +.fa-ear-deaf { + --fa: "\f2a4"; } + +.fa-deaf { + --fa: "\f2a4"; } + +.fa-deafness { + --fa: "\f2a4"; } + +.fa-hard-of-hearing { + --fa: "\f2a4"; } + +.fa-road-circle-check { + --fa: "\e564"; } + +.fa-dice-five { + --fa: "\f523"; } + +.fa-square-rss { + --fa: "\f143"; } + +.fa-rss-square { + --fa: "\f143"; } + +.fa-land-mine-on { + --fa: "\e51b"; } + +.fa-i-cursor { + --fa: "\f246"; } + +.fa-stamp { + --fa: "\f5bf"; } + +.fa-stairs { + --fa: "\e289"; } + +.fa-i { + --fa: "\49"; } + +.fa-hryvnia-sign { + --fa: "\f6f2"; } + +.fa-hryvnia { + --fa: "\f6f2"; } + +.fa-pills { + --fa: "\f484"; } + +.fa-face-grin-wide { + --fa: "\f581"; } + +.fa-grin-alt { + --fa: "\f581"; } + +.fa-tooth { + --fa: "\f5c9"; } + +.fa-v { + --fa: "\56"; } + +.fa-bangladeshi-taka-sign { + --fa: "\e2e6"; } + +.fa-bicycle { + --fa: "\f206"; } + +.fa-staff-snake { + --fa: "\e579"; } + +.fa-rod-asclepius { + --fa: "\e579"; } + +.fa-rod-snake { + --fa: "\e579"; } + +.fa-staff-aesculapius { + --fa: "\e579"; } + +.fa-head-side-cough-slash { + --fa: "\e062"; } + +.fa-truck-medical { + --fa: "\f0f9"; } + +.fa-ambulance { + --fa: "\f0f9"; } + +.fa-wheat-awn-circle-exclamation { + --fa: "\e598"; } + +.fa-snowman { + --fa: "\f7d0"; } + +.fa-mortar-pestle { + --fa: "\f5a7"; } + +.fa-road-barrier { + --fa: "\e562"; } + +.fa-school { + --fa: "\f549"; } + +.fa-igloo { + --fa: "\f7ae"; } + +.fa-joint { + --fa: "\f595"; } + +.fa-angle-right { + --fa: "\f105"; } + +.fa-horse { + --fa: "\f6f0"; } + +.fa-q { + --fa: "\51"; } + +.fa-g { + --fa: "\47"; } + +.fa-notes-medical { + --fa: "\f481"; } + +.fa-temperature-half { + --fa: "\f2c9"; } + +.fa-temperature-2 { + --fa: "\f2c9"; } + +.fa-thermometer-2 { + --fa: "\f2c9"; } + +.fa-thermometer-half { + --fa: "\f2c9"; } + +.fa-dong-sign { + --fa: "\e169"; } + +.fa-capsules { + --fa: "\f46b"; } + +.fa-poo-storm { + --fa: "\f75a"; } + +.fa-poo-bolt { + --fa: "\f75a"; } + +.fa-face-frown-open { + --fa: "\f57a"; } + +.fa-frown-open { + --fa: "\f57a"; } + +.fa-hand-point-up { + --fa: "\f0a6"; } + +.fa-money-bill { + --fa: "\f0d6"; } + +.fa-bookmark { + --fa: "\f02e"; } + +.fa-align-justify { + --fa: "\f039"; } + +.fa-umbrella-beach { + --fa: "\f5ca"; } + +.fa-helmet-un { + --fa: "\e503"; } + +.fa-bullseye { + --fa: "\f140"; } + +.fa-bacon { + --fa: "\f7e5"; } + +.fa-hand-point-down { + --fa: "\f0a7"; } + +.fa-arrow-up-from-bracket { + --fa: "\e09a"; } + +.fa-folder { + --fa: "\f07b"; } + +.fa-folder-blank { + --fa: "\f07b"; } + +.fa-file-waveform { + --fa: "\f478"; } + +.fa-file-medical-alt { + --fa: "\f478"; } + +.fa-radiation { + --fa: "\f7b9"; } + +.fa-chart-simple { + --fa: "\e473"; } + +.fa-mars-stroke { + --fa: "\f229"; } + +.fa-vial { + --fa: "\f492"; } + +.fa-gauge { + --fa: "\f624"; } + +.fa-dashboard { + --fa: "\f624"; } + +.fa-gauge-med { + --fa: "\f624"; } + +.fa-tachometer-alt-average { + --fa: "\f624"; } + +.fa-wand-magic-sparkles { + --fa: "\e2ca"; } + +.fa-magic-wand-sparkles { + --fa: "\e2ca"; } + +.fa-e { + --fa: "\45"; } + +.fa-pen-clip { + --fa: "\f305"; } + +.fa-pen-alt { + --fa: "\f305"; } + +.fa-bridge-circle-exclamation { + --fa: "\e4ca"; } + +.fa-user { + --fa: "\f007"; } + +.fa-school-circle-check { + --fa: "\e56b"; } + +.fa-dumpster { + --fa: "\f793"; } + +.fa-van-shuttle { + --fa: "\f5b6"; } + +.fa-shuttle-van { + --fa: "\f5b6"; } + +.fa-building-user { + --fa: "\e4da"; } + +.fa-square-caret-left { + --fa: "\f191"; } + +.fa-caret-square-left { + --fa: "\f191"; } + +.fa-highlighter { + --fa: "\f591"; } + +.fa-key { + --fa: "\f084"; } + +.fa-bullhorn { + --fa: "\f0a1"; } + +.fa-globe { + --fa: "\f0ac"; } + +.fa-synagogue { + --fa: "\f69b"; } + +.fa-person-half-dress { + --fa: "\e548"; } + +.fa-road-bridge { + --fa: "\e563"; } + +.fa-location-arrow { + --fa: "\f124"; } + +.fa-c { + --fa: "\43"; } + +.fa-tablet-button { + --fa: "\f10a"; } + +.fa-building-lock { + --fa: "\e4d6"; } + +.fa-pizza-slice { + --fa: "\f818"; } + +.fa-money-bill-wave { + --fa: "\f53a"; } + +.fa-chart-area { + --fa: "\f1fe"; } + +.fa-area-chart { + --fa: "\f1fe"; } + +.fa-house-flag { + --fa: "\e50d"; } + +.fa-person-circle-minus { + --fa: "\e540"; } + +.fa-ban { + --fa: "\f05e"; } + +.fa-cancel { + --fa: "\f05e"; } + +.fa-camera-rotate { + --fa: "\e0d8"; } + +.fa-spray-can-sparkles { + --fa: "\f5d0"; } + +.fa-air-freshener { + --fa: "\f5d0"; } + +.fa-star { + --fa: "\f005"; } + +.fa-repeat { + --fa: "\f363"; } + +.fa-cross { + --fa: "\f654"; } + +.fa-box { + --fa: "\f466"; } + +.fa-venus-mars { + --fa: "\f228"; } + +.fa-arrow-pointer { + --fa: "\f245"; } + +.fa-mouse-pointer { + --fa: "\f245"; } + +.fa-maximize { + --fa: "\f31e"; } + +.fa-expand-arrows-alt { + --fa: "\f31e"; } + +.fa-charging-station { + --fa: "\f5e7"; } + +.fa-shapes { + --fa: "\f61f"; } + +.fa-triangle-circle-square { + --fa: "\f61f"; } + +.fa-shuffle { + --fa: "\f074"; } + +.fa-random { + --fa: "\f074"; } + +.fa-person-running { + --fa: "\f70c"; } + +.fa-running { + --fa: "\f70c"; } + +.fa-mobile-retro { + --fa: "\e527"; } + +.fa-grip-lines-vertical { + --fa: "\f7a5"; } + +.fa-spider { + --fa: "\f717"; } + +.fa-hands-bound { + --fa: "\e4f9"; } + +.fa-file-invoice-dollar { + --fa: "\f571"; } + +.fa-plane-circle-exclamation { + --fa: "\e556"; } + +.fa-x-ray { + --fa: "\f497"; } + +.fa-spell-check { + --fa: "\f891"; } + +.fa-slash { + --fa: "\f715"; } + +.fa-computer-mouse { + --fa: "\f8cc"; } + +.fa-mouse { + --fa: "\f8cc"; } + +.fa-arrow-right-to-bracket { + --fa: "\f090"; } + +.fa-sign-in { + --fa: "\f090"; } + +.fa-shop-slash { + --fa: "\e070"; } + +.fa-store-alt-slash { + --fa: "\e070"; } + +.fa-server { + --fa: "\f233"; } + +.fa-virus-covid-slash { + --fa: "\e4a9"; } + +.fa-shop-lock { + --fa: "\e4a5"; } + +.fa-hourglass-start { + --fa: "\f251"; } + +.fa-hourglass-1 { + --fa: "\f251"; } + +.fa-blender-phone { + --fa: "\f6b6"; } + +.fa-building-wheat { + --fa: "\e4db"; } + +.fa-person-breastfeeding { + --fa: "\e53a"; } + +.fa-right-to-bracket { + --fa: "\f2f6"; } + +.fa-sign-in-alt { + --fa: "\f2f6"; } + +.fa-venus { + --fa: "\f221"; } + +.fa-passport { + --fa: "\f5ab"; } + +.fa-thumbtack-slash { + --fa: "\e68f"; } + +.fa-thumb-tack-slash { + --fa: "\e68f"; } + +.fa-heart-pulse { + --fa: "\f21e"; } + +.fa-heartbeat { + --fa: "\f21e"; } + +.fa-people-carry-box { + --fa: "\f4ce"; } + +.fa-people-carry { + --fa: "\f4ce"; } + +.fa-temperature-high { + --fa: "\f769"; } + +.fa-microchip { + --fa: "\f2db"; } + +.fa-crown { + --fa: "\f521"; } + +.fa-weight-hanging { + --fa: "\f5cd"; } + +.fa-xmarks-lines { + --fa: "\e59a"; } + +.fa-file-prescription { + --fa: "\f572"; } + +.fa-weight-scale { + --fa: "\f496"; } + +.fa-weight { + --fa: "\f496"; } + +.fa-user-group { + --fa: "\f500"; } + +.fa-user-friends { + --fa: "\f500"; } + +.fa-arrow-up-a-z { + --fa: "\f15e"; } + +.fa-sort-alpha-up { + --fa: "\f15e"; } + +.fa-chess-knight { + --fa: "\f441"; } + +.fa-face-laugh-squint { + --fa: "\f59b"; } + +.fa-laugh-squint { + --fa: "\f59b"; } + +.fa-wheelchair { + --fa: "\f193"; } + +.fa-circle-arrow-up { + --fa: "\f0aa"; } + +.fa-arrow-circle-up { + --fa: "\f0aa"; } + +.fa-toggle-on { + --fa: "\f205"; } + +.fa-person-walking { + --fa: "\f554"; } + +.fa-walking { + --fa: "\f554"; } + +.fa-l { + --fa: "\4c"; } + +.fa-fire { + --fa: "\f06d"; } + +.fa-bed-pulse { + --fa: "\f487"; } + +.fa-procedures { + --fa: "\f487"; } + +.fa-shuttle-space { + --fa: "\f197"; } + +.fa-space-shuttle { + --fa: "\f197"; } + +.fa-face-laugh { + --fa: "\f599"; } + +.fa-laugh { + --fa: "\f599"; } + +.fa-folder-open { + --fa: "\f07c"; } + +.fa-heart-circle-plus { + --fa: "\e500"; } + +.fa-code-fork { + --fa: "\e13b"; } + +.fa-city { + --fa: "\f64f"; } + +.fa-microphone-lines { + --fa: "\f3c9"; } + +.fa-microphone-alt { + --fa: "\f3c9"; } + +.fa-pepper-hot { + --fa: "\f816"; } + +.fa-unlock { + --fa: "\f09c"; } + +.fa-colon-sign { + --fa: "\e140"; } + +.fa-headset { + --fa: "\f590"; } + +.fa-store-slash { + --fa: "\e071"; } + +.fa-road-circle-xmark { + --fa: "\e566"; } + +.fa-user-minus { + --fa: "\f503"; } + +.fa-mars-stroke-up { + --fa: "\f22a"; } + +.fa-mars-stroke-v { + --fa: "\f22a"; } + +.fa-champagne-glasses { + --fa: "\f79f"; } + +.fa-glass-cheers { + --fa: "\f79f"; } + +.fa-clipboard { + --fa: "\f328"; } + +.fa-house-circle-exclamation { + --fa: "\e50a"; } + +.fa-file-arrow-up { + --fa: "\f574"; } + +.fa-file-upload { + --fa: "\f574"; } + +.fa-wifi { + --fa: "\f1eb"; } + +.fa-wifi-3 { + --fa: "\f1eb"; } + +.fa-wifi-strong { + --fa: "\f1eb"; } + +.fa-bath { + --fa: "\f2cd"; } + +.fa-bathtub { + --fa: "\f2cd"; } + +.fa-underline { + --fa: "\f0cd"; } + +.fa-user-pen { + --fa: "\f4ff"; } + +.fa-user-edit { + --fa: "\f4ff"; } + +.fa-signature { + --fa: "\f5b7"; } + +.fa-stroopwafel { + --fa: "\f551"; } + +.fa-bold { + --fa: "\f032"; } + +.fa-anchor-lock { + --fa: "\e4ad"; } + +.fa-building-ngo { + --fa: "\e4d7"; } + +.fa-manat-sign { + --fa: "\e1d5"; } + +.fa-not-equal { + --fa: "\f53e"; } + +.fa-border-top-left { + --fa: "\f853"; } + +.fa-border-style { + --fa: "\f853"; } + +.fa-map-location-dot { + --fa: "\f5a0"; } + +.fa-map-marked-alt { + --fa: "\f5a0"; } + +.fa-jedi { + --fa: "\f669"; } + +.fa-square-poll-vertical { + --fa: "\f681"; } + +.fa-poll { + --fa: "\f681"; } + +.fa-mug-hot { + --fa: "\f7b6"; } + +.fa-car-battery { + --fa: "\f5df"; } + +.fa-battery-car { + --fa: "\f5df"; } + +.fa-gift { + --fa: "\f06b"; } + +.fa-dice-two { + --fa: "\f528"; } + +.fa-chess-queen { + --fa: "\f445"; } + +.fa-glasses { + --fa: "\f530"; } + +.fa-chess-board { + --fa: "\f43c"; } + +.fa-building-circle-check { + --fa: "\e4d2"; } + +.fa-person-chalkboard { + --fa: "\e53d"; } + +.fa-mars-stroke-right { + --fa: "\f22b"; } + +.fa-mars-stroke-h { + --fa: "\f22b"; } + +.fa-hand-back-fist { + --fa: "\f255"; } + +.fa-hand-rock { + --fa: "\f255"; } + +.fa-square-caret-up { + --fa: "\f151"; } + +.fa-caret-square-up { + --fa: "\f151"; } + +.fa-cloud-showers-water { + --fa: "\e4e4"; } + +.fa-chart-bar { + --fa: "\f080"; } + +.fa-bar-chart { + --fa: "\f080"; } + +.fa-hands-bubbles { + --fa: "\e05e"; } + +.fa-hands-wash { + --fa: "\e05e"; } + +.fa-less-than-equal { + --fa: "\f537"; } + +.fa-train { + --fa: "\f238"; } + +.fa-eye-low-vision { + --fa: "\f2a8"; } + +.fa-low-vision { + --fa: "\f2a8"; } + +.fa-crow { + --fa: "\f520"; } + +.fa-sailboat { + --fa: "\e445"; } + +.fa-window-restore { + --fa: "\f2d2"; } + +.fa-square-plus { + --fa: "\f0fe"; } + +.fa-plus-square { + --fa: "\f0fe"; } + +.fa-torii-gate { + --fa: "\f6a1"; } + +.fa-frog { + --fa: "\f52e"; } + +.fa-bucket { + --fa: "\e4cf"; } + +.fa-image { + --fa: "\f03e"; } + +.fa-microphone { + --fa: "\f130"; } + +.fa-cow { + --fa: "\f6c8"; } + +.fa-caret-up { + --fa: "\f0d8"; } + +.fa-screwdriver { + --fa: "\f54a"; } + +.fa-folder-closed { + --fa: "\e185"; } + +.fa-house-tsunami { + --fa: "\e515"; } + +.fa-square-nfi { + --fa: "\e576"; } + +.fa-arrow-up-from-ground-water { + --fa: "\e4b5"; } + +.fa-martini-glass { + --fa: "\f57b"; } + +.fa-glass-martini-alt { + --fa: "\f57b"; } + +.fa-square-binary { + --fa: "\e69b"; } + +.fa-rotate-left { + --fa: "\f2ea"; } + +.fa-rotate-back { + --fa: "\f2ea"; } + +.fa-rotate-backward { + --fa: "\f2ea"; } + +.fa-undo-alt { + --fa: "\f2ea"; } + +.fa-table-columns { + --fa: "\f0db"; } + +.fa-columns { + --fa: "\f0db"; } + +.fa-lemon { + --fa: "\f094"; } + +.fa-head-side-mask { + --fa: "\e063"; } + +.fa-handshake { + --fa: "\f2b5"; } + +.fa-gem { + --fa: "\f3a5"; } + +.fa-dolly { + --fa: "\f472"; } + +.fa-dolly-box { + --fa: "\f472"; } + +.fa-smoking { + --fa: "\f48d"; } + +.fa-minimize { + --fa: "\f78c"; } + +.fa-compress-arrows-alt { + --fa: "\f78c"; } + +.fa-monument { + --fa: "\f5a6"; } + +.fa-snowplow { + --fa: "\f7d2"; } + +.fa-angles-right { + --fa: "\f101"; } + +.fa-angle-double-right { + --fa: "\f101"; } + +.fa-cannabis { + --fa: "\f55f"; } + +.fa-circle-play { + --fa: "\f144"; } + +.fa-play-circle { + --fa: "\f144"; } + +.fa-tablets { + --fa: "\f490"; } + +.fa-ethernet { + --fa: "\f796"; } + +.fa-euro-sign { + --fa: "\f153"; } + +.fa-eur { + --fa: "\f153"; } + +.fa-euro { + --fa: "\f153"; } + +.fa-chair { + --fa: "\f6c0"; } + +.fa-circle-check { + --fa: "\f058"; } + +.fa-check-circle { + --fa: "\f058"; } + +.fa-circle-stop { + --fa: "\f28d"; } + +.fa-stop-circle { + --fa: "\f28d"; } + +.fa-compass-drafting { + --fa: "\f568"; } + +.fa-drafting-compass { + --fa: "\f568"; } + +.fa-plate-wheat { + --fa: "\e55a"; } + +.fa-icicles { + --fa: "\f7ad"; } + +.fa-person-shelter { + --fa: "\e54f"; } + +.fa-neuter { + --fa: "\f22c"; } + +.fa-id-badge { + --fa: "\f2c1"; } + +.fa-marker { + --fa: "\f5a1"; } + +.fa-face-laugh-beam { + --fa: "\f59a"; } + +.fa-laugh-beam { + --fa: "\f59a"; } + +.fa-helicopter-symbol { + --fa: "\e502"; } + +.fa-universal-access { + --fa: "\f29a"; } + +.fa-circle-chevron-up { + --fa: "\f139"; } + +.fa-chevron-circle-up { + --fa: "\f139"; } + +.fa-lari-sign { + --fa: "\e1c8"; } + +.fa-volcano { + --fa: "\f770"; } + +.fa-person-walking-dashed-line-arrow-right { + --fa: "\e553"; } + +.fa-sterling-sign { + --fa: "\f154"; } + +.fa-gbp { + --fa: "\f154"; } + +.fa-pound-sign { + --fa: "\f154"; } + +.fa-viruses { + --fa: "\e076"; } + +.fa-square-person-confined { + --fa: "\e577"; } + +.fa-user-tie { + --fa: "\f508"; } + +.fa-arrow-down-long { + --fa: "\f175"; } + +.fa-long-arrow-down { + --fa: "\f175"; } + +.fa-tent-arrow-down-to-line { + --fa: "\e57e"; } + +.fa-certificate { + --fa: "\f0a3"; } + +.fa-reply-all { + --fa: "\f122"; } + +.fa-mail-reply-all { + --fa: "\f122"; } + +.fa-suitcase { + --fa: "\f0f2"; } + +.fa-person-skating { + --fa: "\f7c5"; } + +.fa-skating { + --fa: "\f7c5"; } + +.fa-filter-circle-dollar { + --fa: "\f662"; } + +.fa-funnel-dollar { + --fa: "\f662"; } + +.fa-camera-retro { + --fa: "\f083"; } + +.fa-circle-arrow-down { + --fa: "\f0ab"; } + +.fa-arrow-circle-down { + --fa: "\f0ab"; } + +.fa-file-import { + --fa: "\f56f"; } + +.fa-arrow-right-to-file { + --fa: "\f56f"; } + +.fa-square-arrow-up-right { + --fa: "\f14c"; } + +.fa-external-link-square { + --fa: "\f14c"; } + +.fa-box-open { + --fa: "\f49e"; } + +.fa-scroll { + --fa: "\f70e"; } + +.fa-spa { + --fa: "\f5bb"; } + +.fa-location-pin-lock { + --fa: "\e51f"; } + +.fa-pause { + --fa: "\f04c"; } + +.fa-hill-avalanche { + --fa: "\e507"; } + +.fa-temperature-empty { + --fa: "\f2cb"; } + +.fa-temperature-0 { + --fa: "\f2cb"; } + +.fa-thermometer-0 { + --fa: "\f2cb"; } + +.fa-thermometer-empty { + --fa: "\f2cb"; } + +.fa-bomb { + --fa: "\f1e2"; } + +.fa-registered { + --fa: "\f25d"; } + +.fa-address-card { + --fa: "\f2bb"; } + +.fa-contact-card { + --fa: "\f2bb"; } + +.fa-vcard { + --fa: "\f2bb"; } + +.fa-scale-unbalanced-flip { + --fa: "\f516"; } + +.fa-balance-scale-right { + --fa: "\f516"; } + +.fa-subscript { + --fa: "\f12c"; } + +.fa-diamond-turn-right { + --fa: "\f5eb"; } + +.fa-directions { + --fa: "\f5eb"; } + +.fa-burst { + --fa: "\e4dc"; } + +.fa-house-laptop { + --fa: "\e066"; } + +.fa-laptop-house { + --fa: "\e066"; } + +.fa-face-tired { + --fa: "\f5c8"; } + +.fa-tired { + --fa: "\f5c8"; } + +.fa-money-bills { + --fa: "\e1f3"; } + +.fa-smog { + --fa: "\f75f"; } + +.fa-crutch { + --fa: "\f7f7"; } + +.fa-cloud-arrow-up { + --fa: "\f0ee"; } + +.fa-cloud-upload { + --fa: "\f0ee"; } + +.fa-cloud-upload-alt { + --fa: "\f0ee"; } + +.fa-palette { + --fa: "\f53f"; } + +.fa-arrows-turn-right { + --fa: "\e4c0"; } + +.fa-vest { + --fa: "\e085"; } + +.fa-ferry { + --fa: "\e4ea"; } + +.fa-arrows-down-to-people { + --fa: "\e4b9"; } + +.fa-seedling { + --fa: "\f4d8"; } + +.fa-sprout { + --fa: "\f4d8"; } + +.fa-left-right { + --fa: "\f337"; } + +.fa-arrows-alt-h { + --fa: "\f337"; } + +.fa-boxes-packing { + --fa: "\e4c7"; } + +.fa-circle-arrow-left { + --fa: "\f0a8"; } + +.fa-arrow-circle-left { + --fa: "\f0a8"; } + +.fa-group-arrows-rotate { + --fa: "\e4f6"; } + +.fa-bowl-food { + --fa: "\e4c6"; } + +.fa-candy-cane { + --fa: "\f786"; } + +.fa-arrow-down-wide-short { + --fa: "\f160"; } + +.fa-sort-amount-asc { + --fa: "\f160"; } + +.fa-sort-amount-down { + --fa: "\f160"; } + +.fa-cloud-bolt { + --fa: "\f76c"; } + +.fa-thunderstorm { + --fa: "\f76c"; } + +.fa-text-slash { + --fa: "\f87d"; } + +.fa-remove-format { + --fa: "\f87d"; } + +.fa-face-smile-wink { + --fa: "\f4da"; } + +.fa-smile-wink { + --fa: "\f4da"; } + +.fa-file-word { + --fa: "\f1c2"; } + +.fa-file-powerpoint { + --fa: "\f1c4"; } + +.fa-arrows-left-right { + --fa: "\f07e"; } + +.fa-arrows-h { + --fa: "\f07e"; } + +.fa-house-lock { + --fa: "\e510"; } + +.fa-cloud-arrow-down { + --fa: "\f0ed"; } + +.fa-cloud-download { + --fa: "\f0ed"; } + +.fa-cloud-download-alt { + --fa: "\f0ed"; } + +.fa-children { + --fa: "\e4e1"; } + +.fa-chalkboard { + --fa: "\f51b"; } + +.fa-blackboard { + --fa: "\f51b"; } + +.fa-user-large-slash { + --fa: "\f4fa"; } + +.fa-user-alt-slash { + --fa: "\f4fa"; } + +.fa-envelope-open { + --fa: "\f2b6"; } + +.fa-handshake-simple-slash { + --fa: "\e05f"; } + +.fa-handshake-alt-slash { + --fa: "\e05f"; } + +.fa-mattress-pillow { + --fa: "\e525"; } + +.fa-guarani-sign { + --fa: "\e19a"; } + +.fa-arrows-rotate { + --fa: "\f021"; } + +.fa-refresh { + --fa: "\f021"; } + +.fa-sync { + --fa: "\f021"; } + +.fa-fire-extinguisher { + --fa: "\f134"; } + +.fa-cruzeiro-sign { + --fa: "\e152"; } + +.fa-greater-than-equal { + --fa: "\f532"; } + +.fa-shield-halved { + --fa: "\f3ed"; } + +.fa-shield-alt { + --fa: "\f3ed"; } + +.fa-book-atlas { + --fa: "\f558"; } + +.fa-atlas { + --fa: "\f558"; } + +.fa-virus { + --fa: "\e074"; } + +.fa-envelope-circle-check { + --fa: "\e4e8"; } + +.fa-layer-group { + --fa: "\f5fd"; } + +.fa-arrows-to-dot { + --fa: "\e4be"; } + +.fa-archway { + --fa: "\f557"; } + +.fa-heart-circle-check { + --fa: "\e4fd"; } + +.fa-house-chimney-crack { + --fa: "\f6f1"; } + +.fa-house-damage { + --fa: "\f6f1"; } + +.fa-file-zipper { + --fa: "\f1c6"; } + +.fa-file-archive { + --fa: "\f1c6"; } + +.fa-square { + --fa: "\f0c8"; } + +.fa-martini-glass-empty { + --fa: "\f000"; } + +.fa-glass-martini { + --fa: "\f000"; } + +.fa-couch { + --fa: "\f4b8"; } + +.fa-cedi-sign { + --fa: "\e0df"; } + +.fa-italic { + --fa: "\f033"; } + +.fa-table-cells-column-lock { + --fa: "\e678"; } + +.fa-church { + --fa: "\f51d"; } + +.fa-comments-dollar { + --fa: "\f653"; } + +.fa-democrat { + --fa: "\f747"; } + +.fa-z { + --fa: "\5a"; } + +.fa-person-skiing { + --fa: "\f7c9"; } + +.fa-skiing { + --fa: "\f7c9"; } + +.fa-road-lock { + --fa: "\e567"; } + +.fa-a { + --fa: "\41"; } + +.fa-temperature-arrow-down { + --fa: "\e03f"; } + +.fa-temperature-down { + --fa: "\e03f"; } + +.fa-feather-pointed { + --fa: "\f56b"; } + +.fa-feather-alt { + --fa: "\f56b"; } + +.fa-p { + --fa: "\50"; } + +.fa-snowflake { + --fa: "\f2dc"; } + +.fa-newspaper { + --fa: "\f1ea"; } + +.fa-rectangle-ad { + --fa: "\f641"; } + +.fa-ad { + --fa: "\f641"; } + +.fa-circle-arrow-right { + --fa: "\f0a9"; } + +.fa-arrow-circle-right { + --fa: "\f0a9"; } + +.fa-filter-circle-xmark { + --fa: "\e17b"; } + +.fa-locust { + --fa: "\e520"; } + +.fa-sort { + --fa: "\f0dc"; } + +.fa-unsorted { + --fa: "\f0dc"; } + +.fa-list-ol { + --fa: "\f0cb"; } + +.fa-list-1-2 { + --fa: "\f0cb"; } + +.fa-list-numeric { + --fa: "\f0cb"; } + +.fa-person-dress-burst { + --fa: "\e544"; } + +.fa-money-check-dollar { + --fa: "\f53d"; } + +.fa-money-check-alt { + --fa: "\f53d"; } + +.fa-vector-square { + --fa: "\f5cb"; } + +.fa-bread-slice { + --fa: "\f7ec"; } + +.fa-language { + --fa: "\f1ab"; } + +.fa-face-kiss-wink-heart { + --fa: "\f598"; } + +.fa-kiss-wink-heart { + --fa: "\f598"; } + +.fa-filter { + --fa: "\f0b0"; } + +.fa-question { + --fa: "\3f"; } + +.fa-file-signature { + --fa: "\f573"; } + +.fa-up-down-left-right { + --fa: "\f0b2"; } + +.fa-arrows-alt { + --fa: "\f0b2"; } + +.fa-house-chimney-user { + --fa: "\e065"; } + +.fa-hand-holding-heart { + --fa: "\f4be"; } + +.fa-puzzle-piece { + --fa: "\f12e"; } + +.fa-money-check { + --fa: "\f53c"; } + +.fa-star-half-stroke { + --fa: "\f5c0"; } + +.fa-star-half-alt { + --fa: "\f5c0"; } + +.fa-code { + --fa: "\f121"; } + +.fa-whiskey-glass { + --fa: "\f7a0"; } + +.fa-glass-whiskey { + --fa: "\f7a0"; } + +.fa-building-circle-exclamation { + --fa: "\e4d3"; } + +.fa-magnifying-glass-chart { + --fa: "\e522"; } + +.fa-arrow-up-right-from-square { + --fa: "\f08e"; } + +.fa-external-link { + --fa: "\f08e"; } + +.fa-cubes-stacked { + --fa: "\e4e6"; } + +.fa-won-sign { + --fa: "\f159"; } + +.fa-krw { + --fa: "\f159"; } + +.fa-won { + --fa: "\f159"; } + +.fa-virus-covid { + --fa: "\e4a8"; } + +.fa-austral-sign { + --fa: "\e0a9"; } + +.fa-f { + --fa: "\46"; } + +.fa-leaf { + --fa: "\f06c"; } + +.fa-road { + --fa: "\f018"; } + +.fa-taxi { + --fa: "\f1ba"; } + +.fa-cab { + --fa: "\f1ba"; } + +.fa-person-circle-plus { + --fa: "\e541"; } + +.fa-chart-pie { + --fa: "\f200"; } + +.fa-pie-chart { + --fa: "\f200"; } + +.fa-bolt-lightning { + --fa: "\e0b7"; } + +.fa-sack-xmark { + --fa: "\e56a"; } + +.fa-file-excel { + --fa: "\f1c3"; } + +.fa-file-contract { + --fa: "\f56c"; } + +.fa-fish-fins { + --fa: "\e4f2"; } + +.fa-building-flag { + --fa: "\e4d5"; } + +.fa-face-grin-beam { + --fa: "\f582"; } + +.fa-grin-beam { + --fa: "\f582"; } + +.fa-object-ungroup { + --fa: "\f248"; } + +.fa-poop { + --fa: "\f619"; } + +.fa-location-pin { + --fa: "\f041"; } + +.fa-map-marker { + --fa: "\f041"; } + +.fa-kaaba { + --fa: "\f66b"; } + +.fa-toilet-paper { + --fa: "\f71e"; } + +.fa-helmet-safety { + --fa: "\f807"; } + +.fa-hard-hat { + --fa: "\f807"; } + +.fa-hat-hard { + --fa: "\f807"; } + +.fa-eject { + --fa: "\f052"; } + +.fa-circle-right { + --fa: "\f35a"; } + +.fa-arrow-alt-circle-right { + --fa: "\f35a"; } + +.fa-plane-circle-check { + --fa: "\e555"; } + +.fa-face-rolling-eyes { + --fa: "\f5a5"; } + +.fa-meh-rolling-eyes { + --fa: "\f5a5"; } + +.fa-object-group { + --fa: "\f247"; } + +.fa-chart-line { + --fa: "\f201"; } + +.fa-line-chart { + --fa: "\f201"; } + +.fa-mask-ventilator { + --fa: "\e524"; } + +.fa-arrow-right { + --fa: "\f061"; } + +.fa-signs-post { + --fa: "\f277"; } + +.fa-map-signs { + --fa: "\f277"; } + +.fa-cash-register { + --fa: "\f788"; } + +.fa-person-circle-question { + --fa: "\e542"; } + +.fa-h { + --fa: "\48"; } + +.fa-tarp { + --fa: "\e57b"; } + +.fa-screwdriver-wrench { + --fa: "\f7d9"; } + +.fa-tools { + --fa: "\f7d9"; } + +.fa-arrows-to-eye { + --fa: "\e4bf"; } + +.fa-plug-circle-bolt { + --fa: "\e55b"; } + +.fa-heart { + --fa: "\f004"; } + +.fa-mars-and-venus { + --fa: "\f224"; } + +.fa-house-user { + --fa: "\e1b0"; } + +.fa-home-user { + --fa: "\e1b0"; } + +.fa-dumpster-fire { + --fa: "\f794"; } + +.fa-house-crack { + --fa: "\e3b1"; } + +.fa-martini-glass-citrus { + --fa: "\f561"; } + +.fa-cocktail { + --fa: "\f561"; } + +.fa-face-surprise { + --fa: "\f5c2"; } + +.fa-surprise { + --fa: "\f5c2"; } + +.fa-bottle-water { + --fa: "\e4c5"; } + +.fa-circle-pause { + --fa: "\f28b"; } + +.fa-pause-circle { + --fa: "\f28b"; } + +.fa-toilet-paper-slash { + --fa: "\e072"; } + +.fa-apple-whole { + --fa: "\f5d1"; } + +.fa-apple-alt { + --fa: "\f5d1"; } + +.fa-kitchen-set { + --fa: "\e51a"; } + +.fa-r { + --fa: "\52"; } + +.fa-temperature-quarter { + --fa: "\f2ca"; } + +.fa-temperature-1 { + --fa: "\f2ca"; } + +.fa-thermometer-1 { + --fa: "\f2ca"; } + +.fa-thermometer-quarter { + --fa: "\f2ca"; } + +.fa-cube { + --fa: "\f1b2"; } + +.fa-bitcoin-sign { + --fa: "\e0b4"; } + +.fa-shield-dog { + --fa: "\e573"; } + +.fa-solar-panel { + --fa: "\f5ba"; } + +.fa-lock-open { + --fa: "\f3c1"; } + +.fa-elevator { + --fa: "\e16d"; } + +.fa-money-bill-transfer { + --fa: "\e528"; } + +.fa-money-bill-trend-up { + --fa: "\e529"; } + +.fa-house-flood-water-circle-arrow-right { + --fa: "\e50f"; } + +.fa-square-poll-horizontal { + --fa: "\f682"; } + +.fa-poll-h { + --fa: "\f682"; } + +.fa-circle { + --fa: "\f111"; } + +.fa-backward-fast { + --fa: "\f049"; } + +.fa-fast-backward { + --fa: "\f049"; } + +.fa-recycle { + --fa: "\f1b8"; } + +.fa-user-astronaut { + --fa: "\f4fb"; } + +.fa-plane-slash { + --fa: "\e069"; } + +.fa-trademark { + --fa: "\f25c"; } + +.fa-basketball { + --fa: "\f434"; } + +.fa-basketball-ball { + --fa: "\f434"; } + +.fa-satellite-dish { + --fa: "\f7c0"; } + +.fa-circle-up { + --fa: "\f35b"; } + +.fa-arrow-alt-circle-up { + --fa: "\f35b"; } + +.fa-mobile-screen-button { + --fa: "\f3cd"; } + +.fa-mobile-alt { + --fa: "\f3cd"; } + +.fa-volume-high { + --fa: "\f028"; } + +.fa-volume-up { + --fa: "\f028"; } + +.fa-users-rays { + --fa: "\e593"; } + +.fa-wallet { + --fa: "\f555"; } + +.fa-clipboard-check { + --fa: "\f46c"; } + +.fa-file-audio { + --fa: "\f1c7"; } + +.fa-burger { + --fa: "\f805"; } + +.fa-hamburger { + --fa: "\f805"; } + +.fa-wrench { + --fa: "\f0ad"; } + +.fa-bugs { + --fa: "\e4d0"; } + +.fa-rupee-sign { + --fa: "\f156"; } + +.fa-rupee { + --fa: "\f156"; } + +.fa-file-image { + --fa: "\f1c5"; } + +.fa-circle-question { + --fa: "\f059"; } + +.fa-question-circle { + --fa: "\f059"; } + +.fa-plane-departure { + --fa: "\f5b0"; } + +.fa-handshake-slash { + --fa: "\e060"; } + +.fa-book-bookmark { + --fa: "\e0bb"; } + +.fa-code-branch { + --fa: "\f126"; } + +.fa-hat-cowboy { + --fa: "\f8c0"; } + +.fa-bridge { + --fa: "\e4c8"; } + +.fa-phone-flip { + --fa: "\f879"; } + +.fa-phone-alt { + --fa: "\f879"; } + +.fa-truck-front { + --fa: "\e2b7"; } + +.fa-cat { + --fa: "\f6be"; } + +.fa-anchor-circle-exclamation { + --fa: "\e4ab"; } + +.fa-truck-field { + --fa: "\e58d"; } + +.fa-route { + --fa: "\f4d7"; } + +.fa-clipboard-question { + --fa: "\e4e3"; } + +.fa-panorama { + --fa: "\e209"; } + +.fa-comment-medical { + --fa: "\f7f5"; } + +.fa-teeth-open { + --fa: "\f62f"; } + +.fa-file-circle-minus { + --fa: "\e4ed"; } + +.fa-tags { + --fa: "\f02c"; } + +.fa-wine-glass { + --fa: "\f4e3"; } + +.fa-forward-fast { + --fa: "\f050"; } + +.fa-fast-forward { + --fa: "\f050"; } + +.fa-face-meh-blank { + --fa: "\f5a4"; } + +.fa-meh-blank { + --fa: "\f5a4"; } + +.fa-square-parking { + --fa: "\f540"; } + +.fa-parking { + --fa: "\f540"; } + +.fa-house-signal { + --fa: "\e012"; } + +.fa-bars-progress { + --fa: "\f828"; } + +.fa-tasks-alt { + --fa: "\f828"; } + +.fa-faucet-drip { + --fa: "\e006"; } + +.fa-cart-flatbed { + --fa: "\f474"; } + +.fa-dolly-flatbed { + --fa: "\f474"; } + +.fa-ban-smoking { + --fa: "\f54d"; } + +.fa-smoking-ban { + --fa: "\f54d"; } + +.fa-terminal { + --fa: "\f120"; } + +.fa-mobile-button { + --fa: "\f10b"; } + +.fa-house-medical-flag { + --fa: "\e514"; } + +.fa-basket-shopping { + --fa: "\f291"; } + +.fa-shopping-basket { + --fa: "\f291"; } + +.fa-tape { + --fa: "\f4db"; } + +.fa-bus-simple { + --fa: "\f55e"; } + +.fa-bus-alt { + --fa: "\f55e"; } + +.fa-eye { + --fa: "\f06e"; } + +.fa-face-sad-cry { + --fa: "\f5b3"; } + +.fa-sad-cry { + --fa: "\f5b3"; } + +.fa-audio-description { + --fa: "\f29e"; } + +.fa-person-military-to-person { + --fa: "\e54c"; } + +.fa-file-shield { + --fa: "\e4f0"; } + +.fa-user-slash { + --fa: "\f506"; } + +.fa-pen { + --fa: "\f304"; } + +.fa-tower-observation { + --fa: "\e586"; } + +.fa-file-code { + --fa: "\f1c9"; } + +.fa-signal { + --fa: "\f012"; } + +.fa-signal-5 { + --fa: "\f012"; } + +.fa-signal-perfect { + --fa: "\f012"; } + +.fa-bus { + --fa: "\f207"; } + +.fa-heart-circle-xmark { + --fa: "\e501"; } + +.fa-house-chimney { + --fa: "\e3af"; } + +.fa-home-lg { + --fa: "\e3af"; } + +.fa-window-maximize { + --fa: "\f2d0"; } + +.fa-face-frown { + --fa: "\f119"; } + +.fa-frown { + --fa: "\f119"; } + +.fa-prescription { + --fa: "\f5b1"; } + +.fa-shop { + --fa: "\f54f"; } + +.fa-store-alt { + --fa: "\f54f"; } + +.fa-floppy-disk { + --fa: "\f0c7"; } + +.fa-save { + --fa: "\f0c7"; } + +.fa-vihara { + --fa: "\f6a7"; } + +.fa-scale-unbalanced { + --fa: "\f515"; } + +.fa-balance-scale-left { + --fa: "\f515"; } + +.fa-sort-up { + --fa: "\f0de"; } + +.fa-sort-asc { + --fa: "\f0de"; } + +.fa-comment-dots { + --fa: "\f4ad"; } + +.fa-commenting { + --fa: "\f4ad"; } + +.fa-plant-wilt { + --fa: "\e5aa"; } + +.fa-diamond { + --fa: "\f219"; } + +.fa-face-grin-squint { + --fa: "\f585"; } + +.fa-grin-squint { + --fa: "\f585"; } + +.fa-hand-holding-dollar { + --fa: "\f4c0"; } + +.fa-hand-holding-usd { + --fa: "\f4c0"; } + +.fa-chart-diagram { + --fa: "\e695"; } + +.fa-bacterium { + --fa: "\e05a"; } + +.fa-hand-pointer { + --fa: "\f25a"; } + +.fa-drum-steelpan { + --fa: "\f56a"; } + +.fa-hand-scissors { + --fa: "\f257"; } + +.fa-hands-praying { + --fa: "\f684"; } + +.fa-praying-hands { + --fa: "\f684"; } + +.fa-arrow-rotate-right { + --fa: "\f01e"; } + +.fa-arrow-right-rotate { + --fa: "\f01e"; } + +.fa-arrow-rotate-forward { + --fa: "\f01e"; } + +.fa-redo { + --fa: "\f01e"; } + +.fa-biohazard { + --fa: "\f780"; } + +.fa-location-crosshairs { + --fa: "\f601"; } + +.fa-location { + --fa: "\f601"; } + +.fa-mars-double { + --fa: "\f227"; } + +.fa-child-dress { + --fa: "\e59c"; } + +.fa-users-between-lines { + --fa: "\e591"; } + +.fa-lungs-virus { + --fa: "\e067"; } + +.fa-face-grin-tears { + --fa: "\f588"; } + +.fa-grin-tears { + --fa: "\f588"; } + +.fa-phone { + --fa: "\f095"; } + +.fa-calendar-xmark { + --fa: "\f273"; } + +.fa-calendar-times { + --fa: "\f273"; } + +.fa-child-reaching { + --fa: "\e59d"; } + +.fa-head-side-virus { + --fa: "\e064"; } + +.fa-user-gear { + --fa: "\f4fe"; } + +.fa-user-cog { + --fa: "\f4fe"; } + +.fa-arrow-up-1-9 { + --fa: "\f163"; } + +.fa-sort-numeric-up { + --fa: "\f163"; } + +.fa-door-closed { + --fa: "\f52a"; } + +.fa-shield-virus { + --fa: "\e06c"; } + +.fa-dice-six { + --fa: "\f526"; } + +.fa-mosquito-net { + --fa: "\e52c"; } + +.fa-file-fragment { + --fa: "\e697"; } + +.fa-bridge-water { + --fa: "\e4ce"; } + +.fa-person-booth { + --fa: "\f756"; } + +.fa-text-width { + --fa: "\f035"; } + +.fa-hat-wizard { + --fa: "\f6e8"; } + +.fa-pen-fancy { + --fa: "\f5ac"; } + +.fa-person-digging { + --fa: "\f85e"; } + +.fa-digging { + --fa: "\f85e"; } + +.fa-trash { + --fa: "\f1f8"; } + +.fa-gauge-simple { + --fa: "\f629"; } + +.fa-gauge-simple-med { + --fa: "\f629"; } + +.fa-tachometer-average { + --fa: "\f629"; } + +.fa-book-medical { + --fa: "\f7e6"; } + +.fa-poo { + --fa: "\f2fe"; } + +.fa-quote-right { + --fa: "\f10e"; } + +.fa-quote-right-alt { + --fa: "\f10e"; } + +.fa-shirt { + --fa: "\f553"; } + +.fa-t-shirt { + --fa: "\f553"; } + +.fa-tshirt { + --fa: "\f553"; } + +.fa-cubes { + --fa: "\f1b3"; } + +.fa-divide { + --fa: "\f529"; } + +.fa-tenge-sign { + --fa: "\f7d7"; } + +.fa-tenge { + --fa: "\f7d7"; } + +.fa-headphones { + --fa: "\f025"; } + +.fa-hands-holding { + --fa: "\f4c2"; } + +.fa-hands-clapping { + --fa: "\e1a8"; } + +.fa-republican { + --fa: "\f75e"; } + +.fa-arrow-left { + --fa: "\f060"; } + +.fa-person-circle-xmark { + --fa: "\e543"; } + +.fa-ruler { + --fa: "\f545"; } + +.fa-align-left { + --fa: "\f036"; } + +.fa-dice-d6 { + --fa: "\f6d1"; } + +.fa-restroom { + --fa: "\f7bd"; } + +.fa-j { + --fa: "\4a"; } + +.fa-users-viewfinder { + --fa: "\e595"; } + +.fa-file-video { + --fa: "\f1c8"; } + +.fa-up-right-from-square { + --fa: "\f35d"; } + +.fa-external-link-alt { + --fa: "\f35d"; } + +.fa-table-cells { + --fa: "\f00a"; } + +.fa-th { + --fa: "\f00a"; } + +.fa-file-pdf { + --fa: "\f1c1"; } + +.fa-book-bible { + --fa: "\f647"; } + +.fa-bible { + --fa: "\f647"; } + +.fa-o { + --fa: "\4f"; } + +.fa-suitcase-medical { + --fa: "\f0fa"; } + +.fa-medkit { + --fa: "\f0fa"; } + +.fa-user-secret { + --fa: "\f21b"; } + +.fa-otter { + --fa: "\f700"; } + +.fa-person-dress { + --fa: "\f182"; } + +.fa-female { + --fa: "\f182"; } + +.fa-comment-dollar { + --fa: "\f651"; } + +.fa-business-time { + --fa: "\f64a"; } + +.fa-briefcase-clock { + --fa: "\f64a"; } + +.fa-table-cells-large { + --fa: "\f009"; } + +.fa-th-large { + --fa: "\f009"; } + +.fa-book-tanakh { + --fa: "\f827"; } + +.fa-tanakh { + --fa: "\f827"; } + +.fa-phone-volume { + --fa: "\f2a0"; } + +.fa-volume-control-phone { + --fa: "\f2a0"; } + +.fa-hat-cowboy-side { + --fa: "\f8c1"; } + +.fa-clipboard-user { + --fa: "\f7f3"; } + +.fa-child { + --fa: "\f1ae"; } + +.fa-lira-sign { + --fa: "\f195"; } + +.fa-satellite { + --fa: "\f7bf"; } + +.fa-plane-lock { + --fa: "\e558"; } + +.fa-tag { + --fa: "\f02b"; } + +.fa-comment { + --fa: "\f075"; } + +.fa-cake-candles { + --fa: "\f1fd"; } + +.fa-birthday-cake { + --fa: "\f1fd"; } + +.fa-cake { + --fa: "\f1fd"; } + +.fa-envelope { + --fa: "\f0e0"; } + +.fa-angles-up { + --fa: "\f102"; } + +.fa-angle-double-up { + --fa: "\f102"; } + +.fa-paperclip { + --fa: "\f0c6"; } + +.fa-arrow-right-to-city { + --fa: "\e4b3"; } + +.fa-ribbon { + --fa: "\f4d6"; } + +.fa-lungs { + --fa: "\f604"; } + +.fa-arrow-up-9-1 { + --fa: "\f887"; } + +.fa-sort-numeric-up-alt { + --fa: "\f887"; } + +.fa-litecoin-sign { + --fa: "\e1d3"; } + +.fa-border-none { + --fa: "\f850"; } + +.fa-circle-nodes { + --fa: "\e4e2"; } + +.fa-parachute-box { + --fa: "\f4cd"; } + +.fa-indent { + --fa: "\f03c"; } + +.fa-truck-field-un { + --fa: "\e58e"; } + +.fa-hourglass { + --fa: "\f254"; } + +.fa-hourglass-empty { + --fa: "\f254"; } + +.fa-mountain { + --fa: "\f6fc"; } + +.fa-user-doctor { + --fa: "\f0f0"; } + +.fa-user-md { + --fa: "\f0f0"; } + +.fa-circle-info { + --fa: "\f05a"; } + +.fa-info-circle { + --fa: "\f05a"; } + +.fa-cloud-meatball { + --fa: "\f73b"; } + +.fa-camera { + --fa: "\f030"; } + +.fa-camera-alt { + --fa: "\f030"; } + +.fa-square-virus { + --fa: "\e578"; } + +.fa-meteor { + --fa: "\f753"; } + +.fa-car-on { + --fa: "\e4dd"; } + +.fa-sleigh { + --fa: "\f7cc"; } + +.fa-arrow-down-1-9 { + --fa: "\f162"; } + +.fa-sort-numeric-asc { + --fa: "\f162"; } + +.fa-sort-numeric-down { + --fa: "\f162"; } + +.fa-hand-holding-droplet { + --fa: "\f4c1"; } + +.fa-hand-holding-water { + --fa: "\f4c1"; } + +.fa-water { + --fa: "\f773"; } + +.fa-calendar-check { + --fa: "\f274"; } + +.fa-braille { + --fa: "\f2a1"; } + +.fa-prescription-bottle-medical { + --fa: "\f486"; } + +.fa-prescription-bottle-alt { + --fa: "\f486"; } + +.fa-landmark { + --fa: "\f66f"; } + +.fa-truck { + --fa: "\f0d1"; } + +.fa-crosshairs { + --fa: "\f05b"; } + +.fa-person-cane { + --fa: "\e53c"; } + +.fa-tent { + --fa: "\e57d"; } + +.fa-vest-patches { + --fa: "\e086"; } + +.fa-check-double { + --fa: "\f560"; } + +.fa-arrow-down-a-z { + --fa: "\f15d"; } + +.fa-sort-alpha-asc { + --fa: "\f15d"; } + +.fa-sort-alpha-down { + --fa: "\f15d"; } + +.fa-money-bill-wheat { + --fa: "\e52a"; } + +.fa-cookie { + --fa: "\f563"; } + +.fa-arrow-rotate-left { + --fa: "\f0e2"; } + +.fa-arrow-left-rotate { + --fa: "\f0e2"; } + +.fa-arrow-rotate-back { + --fa: "\f0e2"; } + +.fa-arrow-rotate-backward { + --fa: "\f0e2"; } + +.fa-undo { + --fa: "\f0e2"; } + +.fa-hard-drive { + --fa: "\f0a0"; } + +.fa-hdd { + --fa: "\f0a0"; } + +.fa-face-grin-squint-tears { + --fa: "\f586"; } + +.fa-grin-squint-tears { + --fa: "\f586"; } + +.fa-dumbbell { + --fa: "\f44b"; } + +.fa-rectangle-list { + --fa: "\f022"; } + +.fa-list-alt { + --fa: "\f022"; } + +.fa-tarp-droplet { + --fa: "\e57c"; } + +.fa-house-medical-circle-check { + --fa: "\e511"; } + +.fa-person-skiing-nordic { + --fa: "\f7ca"; } + +.fa-skiing-nordic { + --fa: "\f7ca"; } + +.fa-calendar-plus { + --fa: "\f271"; } + +.fa-plane-arrival { + --fa: "\f5af"; } + +.fa-circle-left { + --fa: "\f359"; } + +.fa-arrow-alt-circle-left { + --fa: "\f359"; } + +.fa-train-subway { + --fa: "\f239"; } + +.fa-subway { + --fa: "\f239"; } + +.fa-chart-gantt { + --fa: "\e0e4"; } + +.fa-indian-rupee-sign { + --fa: "\e1bc"; } + +.fa-indian-rupee { + --fa: "\e1bc"; } + +.fa-inr { + --fa: "\e1bc"; } + +.fa-crop-simple { + --fa: "\f565"; } + +.fa-crop-alt { + --fa: "\f565"; } + +.fa-money-bill-1 { + --fa: "\f3d1"; } + +.fa-money-bill-alt { + --fa: "\f3d1"; } + +.fa-left-long { + --fa: "\f30a"; } + +.fa-long-arrow-alt-left { + --fa: "\f30a"; } + +.fa-dna { + --fa: "\f471"; } + +.fa-virus-slash { + --fa: "\e075"; } + +.fa-minus { + --fa: "\f068"; } + +.fa-subtract { + --fa: "\f068"; } + +.fa-chess { + --fa: "\f439"; } + +.fa-arrow-left-long { + --fa: "\f177"; } + +.fa-long-arrow-left { + --fa: "\f177"; } + +.fa-plug-circle-check { + --fa: "\e55c"; } + +.fa-street-view { + --fa: "\f21d"; } + +.fa-franc-sign { + --fa: "\e18f"; } + +.fa-volume-off { + --fa: "\f026"; } + +.fa-hands-asl-interpreting { + --fa: "\f2a3"; } + +.fa-american-sign-language-interpreting { + --fa: "\f2a3"; } + +.fa-asl-interpreting { + --fa: "\f2a3"; } + +.fa-hands-american-sign-language-interpreting { + --fa: "\f2a3"; } + +.fa-gear { + --fa: "\f013"; } + +.fa-cog { + --fa: "\f013"; } + +.fa-droplet-slash { + --fa: "\f5c7"; } + +.fa-tint-slash { + --fa: "\f5c7"; } + +.fa-mosque { + --fa: "\f678"; } + +.fa-mosquito { + --fa: "\e52b"; } + +.fa-star-of-david { + --fa: "\f69a"; } + +.fa-person-military-rifle { + --fa: "\e54b"; } + +.fa-cart-shopping { + --fa: "\f07a"; } + +.fa-shopping-cart { + --fa: "\f07a"; } + +.fa-vials { + --fa: "\f493"; } + +.fa-plug-circle-plus { + --fa: "\e55f"; } + +.fa-place-of-worship { + --fa: "\f67f"; } + +.fa-grip-vertical { + --fa: "\f58e"; } + +.fa-hexagon-nodes { + --fa: "\e699"; } + +.fa-arrow-turn-up { + --fa: "\f148"; } + +.fa-level-up { + --fa: "\f148"; } + +.fa-u { + --fa: "\55"; } + +.fa-square-root-variable { + --fa: "\f698"; } + +.fa-square-root-alt { + --fa: "\f698"; } + +.fa-clock { + --fa: "\f017"; } + +.fa-clock-four { + --fa: "\f017"; } + +.fa-backward-step { + --fa: "\f048"; } + +.fa-step-backward { + --fa: "\f048"; } + +.fa-pallet { + --fa: "\f482"; } + +.fa-faucet { + --fa: "\e005"; } + +.fa-baseball-bat-ball { + --fa: "\f432"; } + +.fa-s { + --fa: "\53"; } + +.fa-timeline { + --fa: "\e29c"; } + +.fa-keyboard { + --fa: "\f11c"; } + +.fa-caret-down { + --fa: "\f0d7"; } + +.fa-house-chimney-medical { + --fa: "\f7f2"; } + +.fa-clinic-medical { + --fa: "\f7f2"; } + +.fa-temperature-three-quarters { + --fa: "\f2c8"; } + +.fa-temperature-3 { + --fa: "\f2c8"; } + +.fa-thermometer-3 { + --fa: "\f2c8"; } + +.fa-thermometer-three-quarters { + --fa: "\f2c8"; } + +.fa-mobile-screen { + --fa: "\f3cf"; } + +.fa-mobile-android-alt { + --fa: "\f3cf"; } + +.fa-plane-up { + --fa: "\e22d"; } + +.fa-piggy-bank { + --fa: "\f4d3"; } + +.fa-battery-half { + --fa: "\f242"; } + +.fa-battery-3 { + --fa: "\f242"; } + +.fa-mountain-city { + --fa: "\e52e"; } + +.fa-coins { + --fa: "\f51e"; } + +.fa-khanda { + --fa: "\f66d"; } + +.fa-sliders { + --fa: "\f1de"; } + +.fa-sliders-h { + --fa: "\f1de"; } + +.fa-folder-tree { + --fa: "\f802"; } + +.fa-network-wired { + --fa: "\f6ff"; } + +.fa-map-pin { + --fa: "\f276"; } + +.fa-hamsa { + --fa: "\f665"; } + +.fa-cent-sign { + --fa: "\e3f5"; } + +.fa-flask { + --fa: "\f0c3"; } + +.fa-person-pregnant { + --fa: "\e31e"; } + +.fa-wand-sparkles { + --fa: "\f72b"; } + +.fa-ellipsis-vertical { + --fa: "\f142"; } + +.fa-ellipsis-v { + --fa: "\f142"; } + +.fa-ticket { + --fa: "\f145"; } + +.fa-power-off { + --fa: "\f011"; } + +.fa-right-long { + --fa: "\f30b"; } + +.fa-long-arrow-alt-right { + --fa: "\f30b"; } + +.fa-flag-usa { + --fa: "\f74d"; } + +.fa-laptop-file { + --fa: "\e51d"; } + +.fa-tty { + --fa: "\f1e4"; } + +.fa-teletype { + --fa: "\f1e4"; } + +.fa-diagram-next { + --fa: "\e476"; } + +.fa-person-rifle { + --fa: "\e54e"; } + +.fa-house-medical-circle-exclamation { + --fa: "\e512"; } + +.fa-closed-captioning { + --fa: "\f20a"; } + +.fa-person-hiking { + --fa: "\f6ec"; } + +.fa-hiking { + --fa: "\f6ec"; } + +.fa-venus-double { + --fa: "\f226"; } + +.fa-images { + --fa: "\f302"; } + +.fa-calculator { + --fa: "\f1ec"; } + +.fa-people-pulling { + --fa: "\e535"; } + +.fa-n { + --fa: "\4e"; } + +.fa-cable-car { + --fa: "\f7da"; } + +.fa-tram { + --fa: "\f7da"; } + +.fa-cloud-rain { + --fa: "\f73d"; } + +.fa-building-circle-xmark { + --fa: "\e4d4"; } + +.fa-ship { + --fa: "\f21a"; } + +.fa-arrows-down-to-line { + --fa: "\e4b8"; } + +.fa-download { + --fa: "\f019"; } + +.fa-face-grin { + --fa: "\f580"; } + +.fa-grin { + --fa: "\f580"; } + +.fa-delete-left { + --fa: "\f55a"; } + +.fa-backspace { + --fa: "\f55a"; } + +.fa-eye-dropper { + --fa: "\f1fb"; } + +.fa-eye-dropper-empty { + --fa: "\f1fb"; } + +.fa-eyedropper { + --fa: "\f1fb"; } + +.fa-file-circle-check { + --fa: "\e5a0"; } + +.fa-forward { + --fa: "\f04e"; } + +.fa-mobile { + --fa: "\f3ce"; } + +.fa-mobile-android { + --fa: "\f3ce"; } + +.fa-mobile-phone { + --fa: "\f3ce"; } + +.fa-face-meh { + --fa: "\f11a"; } + +.fa-meh { + --fa: "\f11a"; } + +.fa-align-center { + --fa: "\f037"; } + +.fa-book-skull { + --fa: "\f6b7"; } + +.fa-book-dead { + --fa: "\f6b7"; } + +.fa-id-card { + --fa: "\f2c2"; } + +.fa-drivers-license { + --fa: "\f2c2"; } + +.fa-outdent { + --fa: "\f03b"; } + +.fa-dedent { + --fa: "\f03b"; } + +.fa-heart-circle-exclamation { + --fa: "\e4fe"; } + +.fa-house { + --fa: "\f015"; } + +.fa-home { + --fa: "\f015"; } + +.fa-home-alt { + --fa: "\f015"; } + +.fa-home-lg-alt { + --fa: "\f015"; } + +.fa-calendar-week { + --fa: "\f784"; } + +.fa-laptop-medical { + --fa: "\f812"; } + +.fa-b { + --fa: "\42"; } + +.fa-file-medical { + --fa: "\f477"; } + +.fa-dice-one { + --fa: "\f525"; } + +.fa-kiwi-bird { + --fa: "\f535"; } + +.fa-arrow-right-arrow-left { + --fa: "\f0ec"; } + +.fa-exchange { + --fa: "\f0ec"; } + +.fa-rotate-right { + --fa: "\f2f9"; } + +.fa-redo-alt { + --fa: "\f2f9"; } + +.fa-rotate-forward { + --fa: "\f2f9"; } + +.fa-utensils { + --fa: "\f2e7"; } + +.fa-cutlery { + --fa: "\f2e7"; } + +.fa-arrow-up-wide-short { + --fa: "\f161"; } + +.fa-sort-amount-up { + --fa: "\f161"; } + +.fa-mill-sign { + --fa: "\e1ed"; } + +.fa-bowl-rice { + --fa: "\e2eb"; } + +.fa-skull { + --fa: "\f54c"; } + +.fa-tower-broadcast { + --fa: "\f519"; } + +.fa-broadcast-tower { + --fa: "\f519"; } + +.fa-truck-pickup { + --fa: "\f63c"; } + +.fa-up-long { + --fa: "\f30c"; } + +.fa-long-arrow-alt-up { + --fa: "\f30c"; } + +.fa-stop { + --fa: "\f04d"; } + +.fa-code-merge { + --fa: "\f387"; } + +.fa-upload { + --fa: "\f093"; } + +.fa-hurricane { + --fa: "\f751"; } + +.fa-mound { + --fa: "\e52d"; } + +.fa-toilet-portable { + --fa: "\e583"; } + +.fa-compact-disc { + --fa: "\f51f"; } + +.fa-file-arrow-down { + --fa: "\f56d"; } + +.fa-file-download { + --fa: "\f56d"; } + +.fa-caravan { + --fa: "\f8ff"; } + +.fa-shield-cat { + --fa: "\e572"; } + +.fa-bolt { + --fa: "\f0e7"; } + +.fa-zap { + --fa: "\f0e7"; } + +.fa-glass-water { + --fa: "\e4f4"; } + +.fa-oil-well { + --fa: "\e532"; } + +.fa-vault { + --fa: "\e2c5"; } + +.fa-mars { + --fa: "\f222"; } + +.fa-toilet { + --fa: "\f7d8"; } + +.fa-plane-circle-xmark { + --fa: "\e557"; } + +.fa-yen-sign { + --fa: "\f157"; } + +.fa-cny { + --fa: "\f157"; } + +.fa-jpy { + --fa: "\f157"; } + +.fa-rmb { + --fa: "\f157"; } + +.fa-yen { + --fa: "\f157"; } + +.fa-ruble-sign { + --fa: "\f158"; } + +.fa-rouble { + --fa: "\f158"; } + +.fa-rub { + --fa: "\f158"; } + +.fa-ruble { + --fa: "\f158"; } + +.fa-sun { + --fa: "\f185"; } + +.fa-guitar { + --fa: "\f7a6"; } + +.fa-face-laugh-wink { + --fa: "\f59c"; } + +.fa-laugh-wink { + --fa: "\f59c"; } + +.fa-horse-head { + --fa: "\f7ab"; } + +.fa-bore-hole { + --fa: "\e4c3"; } + +.fa-industry { + --fa: "\f275"; } + +.fa-circle-down { + --fa: "\f358"; } + +.fa-arrow-alt-circle-down { + --fa: "\f358"; } + +.fa-arrows-turn-to-dots { + --fa: "\e4c1"; } + +.fa-florin-sign { + --fa: "\e184"; } + +.fa-arrow-down-short-wide { + --fa: "\f884"; } + +.fa-sort-amount-desc { + --fa: "\f884"; } + +.fa-sort-amount-down-alt { + --fa: "\f884"; } + +.fa-less-than { + --fa: "\3c"; } + +.fa-angle-down { + --fa: "\f107"; } + +.fa-car-tunnel { + --fa: "\e4de"; } + +.fa-head-side-cough { + --fa: "\e061"; } + +.fa-grip-lines { + --fa: "\f7a4"; } + +.fa-thumbs-down { + --fa: "\f165"; } + +.fa-user-lock { + --fa: "\f502"; } + +.fa-arrow-right-long { + --fa: "\f178"; } + +.fa-long-arrow-right { + --fa: "\f178"; } + +.fa-anchor-circle-xmark { + --fa: "\e4ac"; } + +.fa-ellipsis { + --fa: "\f141"; } + +.fa-ellipsis-h { + --fa: "\f141"; } + +.fa-chess-pawn { + --fa: "\f443"; } + +.fa-kit-medical { + --fa: "\f479"; } + +.fa-first-aid { + --fa: "\f479"; } + +.fa-person-through-window { + --fa: "\e5a9"; } + +.fa-toolbox { + --fa: "\f552"; } + +.fa-hands-holding-circle { + --fa: "\e4fb"; } + +.fa-bug { + --fa: "\f188"; } + +.fa-credit-card { + --fa: "\f09d"; } + +.fa-credit-card-alt { + --fa: "\f09d"; } + +.fa-car { + --fa: "\f1b9"; } + +.fa-automobile { + --fa: "\f1b9"; } + +.fa-hand-holding-hand { + --fa: "\e4f7"; } + +.fa-book-open-reader { + --fa: "\f5da"; } + +.fa-book-reader { + --fa: "\f5da"; } + +.fa-mountain-sun { + --fa: "\e52f"; } + +.fa-arrows-left-right-to-line { + --fa: "\e4ba"; } + +.fa-dice-d20 { + --fa: "\f6cf"; } + +.fa-truck-droplet { + --fa: "\e58c"; } + +.fa-file-circle-xmark { + --fa: "\e5a1"; } + +.fa-temperature-arrow-up { + --fa: "\e040"; } + +.fa-temperature-up { + --fa: "\e040"; } + +.fa-medal { + --fa: "\f5a2"; } + +.fa-bed { + --fa: "\f236"; } + +.fa-square-h { + --fa: "\f0fd"; } + +.fa-h-square { + --fa: "\f0fd"; } + +.fa-podcast { + --fa: "\f2ce"; } + +.fa-temperature-full { + --fa: "\f2c7"; } + +.fa-temperature-4 { + --fa: "\f2c7"; } + +.fa-thermometer-4 { + --fa: "\f2c7"; } + +.fa-thermometer-full { + --fa: "\f2c7"; } + +.fa-bell { + --fa: "\f0f3"; } + +.fa-superscript { + --fa: "\f12b"; } + +.fa-plug-circle-xmark { + --fa: "\e560"; } + +.fa-star-of-life { + --fa: "\f621"; } + +.fa-phone-slash { + --fa: "\f3dd"; } + +.fa-paint-roller { + --fa: "\f5aa"; } + +.fa-handshake-angle { + --fa: "\f4c4"; } + +.fa-hands-helping { + --fa: "\f4c4"; } + +.fa-location-dot { + --fa: "\f3c5"; } + +.fa-map-marker-alt { + --fa: "\f3c5"; } + +.fa-file { + --fa: "\f15b"; } + +.fa-greater-than { + --fa: "\3e"; } + +.fa-person-swimming { + --fa: "\f5c4"; } + +.fa-swimmer { + --fa: "\f5c4"; } + +.fa-arrow-down { + --fa: "\f063"; } + +.fa-droplet { + --fa: "\f043"; } + +.fa-tint { + --fa: "\f043"; } + +.fa-eraser { + --fa: "\f12d"; } + +.fa-earth-americas { + --fa: "\f57d"; } + +.fa-earth { + --fa: "\f57d"; } + +.fa-earth-america { + --fa: "\f57d"; } + +.fa-globe-americas { + --fa: "\f57d"; } + +.fa-person-burst { + --fa: "\e53b"; } + +.fa-dove { + --fa: "\f4ba"; } + +.fa-battery-empty { + --fa: "\f244"; } + +.fa-battery-0 { + --fa: "\f244"; } + +.fa-socks { + --fa: "\f696"; } + +.fa-inbox { + --fa: "\f01c"; } + +.fa-section { + --fa: "\e447"; } + +.fa-gauge-high { + --fa: "\f625"; } + +.fa-tachometer-alt { + --fa: "\f625"; } + +.fa-tachometer-alt-fast { + --fa: "\f625"; } + +.fa-envelope-open-text { + --fa: "\f658"; } + +.fa-hospital { + --fa: "\f0f8"; } + +.fa-hospital-alt { + --fa: "\f0f8"; } + +.fa-hospital-wide { + --fa: "\f0f8"; } + +.fa-wine-bottle { + --fa: "\f72f"; } + +.fa-chess-rook { + --fa: "\f447"; } + +.fa-bars-staggered { + --fa: "\f550"; } + +.fa-reorder { + --fa: "\f550"; } + +.fa-stream { + --fa: "\f550"; } + +.fa-dharmachakra { + --fa: "\f655"; } + +.fa-hotdog { + --fa: "\f80f"; } + +.fa-person-walking-with-cane { + --fa: "\f29d"; } + +.fa-blind { + --fa: "\f29d"; } + +.fa-drum { + --fa: "\f569"; } + +.fa-ice-cream { + --fa: "\f810"; } + +.fa-heart-circle-bolt { + --fa: "\e4fc"; } + +.fa-fax { + --fa: "\f1ac"; } + +.fa-paragraph { + --fa: "\f1dd"; } + +.fa-check-to-slot { + --fa: "\f772"; } + +.fa-vote-yea { + --fa: "\f772"; } + +.fa-star-half { + --fa: "\f089"; } + +.fa-boxes-stacked { + --fa: "\f468"; } + +.fa-boxes { + --fa: "\f468"; } + +.fa-boxes-alt { + --fa: "\f468"; } + +.fa-link { + --fa: "\f0c1"; } + +.fa-chain { + --fa: "\f0c1"; } + +.fa-ear-listen { + --fa: "\f2a2"; } + +.fa-assistive-listening-systems { + --fa: "\f2a2"; } + +.fa-tree-city { + --fa: "\e587"; } + +.fa-play { + --fa: "\f04b"; } + +.fa-font { + --fa: "\f031"; } + +.fa-table-cells-row-lock { + --fa: "\e67a"; } + +.fa-rupiah-sign { + --fa: "\e23d"; } + +.fa-magnifying-glass { + --fa: "\f002"; } + +.fa-search { + --fa: "\f002"; } + +.fa-table-tennis-paddle-ball { + --fa: "\f45d"; } + +.fa-ping-pong-paddle-ball { + --fa: "\f45d"; } + +.fa-table-tennis { + --fa: "\f45d"; } + +.fa-person-dots-from-line { + --fa: "\f470"; } + +.fa-diagnoses { + --fa: "\f470"; } + +.fa-trash-can-arrow-up { + --fa: "\f82a"; } + +.fa-trash-restore-alt { + --fa: "\f82a"; } + +.fa-naira-sign { + --fa: "\e1f6"; } + +.fa-cart-arrow-down { + --fa: "\f218"; } + +.fa-walkie-talkie { + --fa: "\f8ef"; } + +.fa-file-pen { + --fa: "\f31c"; } + +.fa-file-edit { + --fa: "\f31c"; } + +.fa-receipt { + --fa: "\f543"; } + +.fa-square-pen { + --fa: "\f14b"; } + +.fa-pen-square { + --fa: "\f14b"; } + +.fa-pencil-square { + --fa: "\f14b"; } + +.fa-suitcase-rolling { + --fa: "\f5c1"; } + +.fa-person-circle-exclamation { + --fa: "\e53f"; } + +.fa-chevron-down { + --fa: "\f078"; } + +.fa-battery-full { + --fa: "\f240"; } + +.fa-battery { + --fa: "\f240"; } + +.fa-battery-5 { + --fa: "\f240"; } + +.fa-skull-crossbones { + --fa: "\f714"; } + +.fa-code-compare { + --fa: "\e13a"; } + +.fa-list-ul { + --fa: "\f0ca"; } + +.fa-list-dots { + --fa: "\f0ca"; } + +.fa-school-lock { + --fa: "\e56f"; } + +.fa-tower-cell { + --fa: "\e585"; } + +.fa-down-long { + --fa: "\f309"; } + +.fa-long-arrow-alt-down { + --fa: "\f309"; } + +.fa-ranking-star { + --fa: "\e561"; } + +.fa-chess-king { + --fa: "\f43f"; } + +.fa-person-harassing { + --fa: "\e549"; } + +.fa-brazilian-real-sign { + --fa: "\e46c"; } + +.fa-landmark-dome { + --fa: "\f752"; } + +.fa-landmark-alt { + --fa: "\f752"; } + +.fa-arrow-up { + --fa: "\f062"; } + +.fa-tv { + --fa: "\f26c"; } + +.fa-television { + --fa: "\f26c"; } + +.fa-tv-alt { + --fa: "\f26c"; } + +.fa-shrimp { + --fa: "\e448"; } + +.fa-list-check { + --fa: "\f0ae"; } + +.fa-tasks { + --fa: "\f0ae"; } + +.fa-jug-detergent { + --fa: "\e519"; } + +.fa-circle-user { + --fa: "\f2bd"; } + +.fa-user-circle { + --fa: "\f2bd"; } + +.fa-user-shield { + --fa: "\f505"; } + +.fa-wind { + --fa: "\f72e"; } + +.fa-car-burst { + --fa: "\f5e1"; } + +.fa-car-crash { + --fa: "\f5e1"; } + +.fa-y { + --fa: "\59"; } + +.fa-person-snowboarding { + --fa: "\f7ce"; } + +.fa-snowboarding { + --fa: "\f7ce"; } + +.fa-truck-fast { + --fa: "\f48b"; } + +.fa-shipping-fast { + --fa: "\f48b"; } + +.fa-fish { + --fa: "\f578"; } + +.fa-user-graduate { + --fa: "\f501"; } + +.fa-circle-half-stroke { + --fa: "\f042"; } + +.fa-adjust { + --fa: "\f042"; } + +.fa-clapperboard { + --fa: "\e131"; } + +.fa-circle-radiation { + --fa: "\f7ba"; } + +.fa-radiation-alt { + --fa: "\f7ba"; } + +.fa-baseball { + --fa: "\f433"; } + +.fa-baseball-ball { + --fa: "\f433"; } + +.fa-jet-fighter-up { + --fa: "\e518"; } + +.fa-diagram-project { + --fa: "\f542"; } + +.fa-project-diagram { + --fa: "\f542"; } + +.fa-copy { + --fa: "\f0c5"; } + +.fa-volume-xmark { + --fa: "\f6a9"; } + +.fa-volume-mute { + --fa: "\f6a9"; } + +.fa-volume-times { + --fa: "\f6a9"; } + +.fa-hand-sparkles { + --fa: "\e05d"; } + +.fa-grip { + --fa: "\f58d"; } + +.fa-grip-horizontal { + --fa: "\f58d"; } + +.fa-share-from-square { + --fa: "\f14d"; } + +.fa-share-square { + --fa: "\f14d"; } + +.fa-child-combatant { + --fa: "\e4e0"; } + +.fa-child-rifle { + --fa: "\e4e0"; } + +.fa-gun { + --fa: "\e19b"; } + +.fa-square-phone { + --fa: "\f098"; } + +.fa-phone-square { + --fa: "\f098"; } + +.fa-plus { + --fa: "\2b"; } + +.fa-add { + --fa: "\2b"; } + +.fa-expand { + --fa: "\f065"; } + +.fa-computer { + --fa: "\e4e5"; } + +.fa-xmark { + --fa: "\f00d"; } + +.fa-close { + --fa: "\f00d"; } + +.fa-multiply { + --fa: "\f00d"; } + +.fa-remove { + --fa: "\f00d"; } + +.fa-times { + --fa: "\f00d"; } + +.fa-arrows-up-down-left-right { + --fa: "\f047"; } + +.fa-arrows { + --fa: "\f047"; } + +.fa-chalkboard-user { + --fa: "\f51c"; } + +.fa-chalkboard-teacher { + --fa: "\f51c"; } + +.fa-peso-sign { + --fa: "\e222"; } + +.fa-building-shield { + --fa: "\e4d8"; } + +.fa-baby { + --fa: "\f77c"; } + +.fa-users-line { + --fa: "\e592"; } + +.fa-quote-left { + --fa: "\f10d"; } + +.fa-quote-left-alt { + --fa: "\f10d"; } + +.fa-tractor { + --fa: "\f722"; } + +.fa-trash-arrow-up { + --fa: "\f829"; } + +.fa-trash-restore { + --fa: "\f829"; } + +.fa-arrow-down-up-lock { + --fa: "\e4b0"; } + +.fa-lines-leaning { + --fa: "\e51e"; } + +.fa-ruler-combined { + --fa: "\f546"; } + +.fa-copyright { + --fa: "\f1f9"; } + +.fa-equals { + --fa: "\3d"; } + +.fa-blender { + --fa: "\f517"; } + +.fa-teeth { + --fa: "\f62e"; } + +.fa-shekel-sign { + --fa: "\f20b"; } + +.fa-ils { + --fa: "\f20b"; } + +.fa-shekel { + --fa: "\f20b"; } + +.fa-sheqel { + --fa: "\f20b"; } + +.fa-sheqel-sign { + --fa: "\f20b"; } + +.fa-map { + --fa: "\f279"; } + +.fa-rocket { + --fa: "\f135"; } + +.fa-photo-film { + --fa: "\f87c"; } + +.fa-photo-video { + --fa: "\f87c"; } + +.fa-folder-minus { + --fa: "\f65d"; } + +.fa-hexagon-nodes-bolt { + --fa: "\e69a"; } + +.fa-store { + --fa: "\f54e"; } + +.fa-arrow-trend-up { + --fa: "\e098"; } + +.fa-plug-circle-minus { + --fa: "\e55e"; } + +.fa-sign-hanging { + --fa: "\f4d9"; } + +.fa-sign { + --fa: "\f4d9"; } + +.fa-bezier-curve { + --fa: "\f55b"; } + +.fa-bell-slash { + --fa: "\f1f6"; } + +.fa-tablet { + --fa: "\f3fb"; } + +.fa-tablet-android { + --fa: "\f3fb"; } + +.fa-school-flag { + --fa: "\e56e"; } + +.fa-fill { + --fa: "\f575"; } + +.fa-angle-up { + --fa: "\f106"; } + +.fa-drumstick-bite { + --fa: "\f6d7"; } + +.fa-holly-berry { + --fa: "\f7aa"; } + +.fa-chevron-left { + --fa: "\f053"; } + +.fa-bacteria { + --fa: "\e059"; } + +.fa-hand-lizard { + --fa: "\f258"; } + +.fa-notdef { + --fa: "\e1fe"; } + +.fa-disease { + --fa: "\f7fa"; } + +.fa-briefcase-medical { + --fa: "\f469"; } + +.fa-genderless { + --fa: "\f22d"; } + +.fa-chevron-right { + --fa: "\f054"; } + +.fa-retweet { + --fa: "\f079"; } + +.fa-car-rear { + --fa: "\f5de"; } + +.fa-car-alt { + --fa: "\f5de"; } + +.fa-pump-soap { + --fa: "\e06b"; } + +.fa-video-slash { + --fa: "\f4e2"; } + +.fa-battery-quarter { + --fa: "\f243"; } + +.fa-battery-2 { + --fa: "\f243"; } + +.fa-radio { + --fa: "\f8d7"; } + +.fa-baby-carriage { + --fa: "\f77d"; } + +.fa-carriage-baby { + --fa: "\f77d"; } + +.fa-traffic-light { + --fa: "\f637"; } + +.fa-thermometer { + --fa: "\f491"; } + +.fa-vr-cardboard { + --fa: "\f729"; } + +.fa-hand-middle-finger { + --fa: "\f806"; } + +.fa-percent { + --fa: "\25"; } + +.fa-percentage { + --fa: "\25"; } + +.fa-truck-moving { + --fa: "\f4df"; } + +.fa-glass-water-droplet { + --fa: "\e4f5"; } + +.fa-display { + --fa: "\e163"; } + +.fa-face-smile { + --fa: "\f118"; } + +.fa-smile { + --fa: "\f118"; } + +.fa-thumbtack { + --fa: "\f08d"; } + +.fa-thumb-tack { + --fa: "\f08d"; } + +.fa-trophy { + --fa: "\f091"; } + +.fa-person-praying { + --fa: "\f683"; } + +.fa-pray { + --fa: "\f683"; } + +.fa-hammer { + --fa: "\f6e3"; } + +.fa-hand-peace { + --fa: "\f25b"; } + +.fa-rotate { + --fa: "\f2f1"; } + +.fa-sync-alt { + --fa: "\f2f1"; } + +.fa-spinner { + --fa: "\f110"; } + +.fa-robot { + --fa: "\f544"; } + +.fa-peace { + --fa: "\f67c"; } + +.fa-gears { + --fa: "\f085"; } + +.fa-cogs { + --fa: "\f085"; } + +.fa-warehouse { + --fa: "\f494"; } + +.fa-arrow-up-right-dots { + --fa: "\e4b7"; } + +.fa-splotch { + --fa: "\f5bc"; } + +.fa-face-grin-hearts { + --fa: "\f584"; } + +.fa-grin-hearts { + --fa: "\f584"; } + +.fa-dice-four { + --fa: "\f524"; } + +.fa-sim-card { + --fa: "\f7c4"; } + +.fa-transgender { + --fa: "\f225"; } + +.fa-transgender-alt { + --fa: "\f225"; } + +.fa-mercury { + --fa: "\f223"; } + +.fa-arrow-turn-down { + --fa: "\f149"; } + +.fa-level-down { + --fa: "\f149"; } + +.fa-person-falling-burst { + --fa: "\e547"; } + +.fa-award { + --fa: "\f559"; } + +.fa-ticket-simple { + --fa: "\f3ff"; } + +.fa-ticket-alt { + --fa: "\f3ff"; } + +.fa-building { + --fa: "\f1ad"; } + +.fa-angles-left { + --fa: "\f100"; } + +.fa-angle-double-left { + --fa: "\f100"; } + +.fa-qrcode { + --fa: "\f029"; } + +.fa-clock-rotate-left { + --fa: "\f1da"; } + +.fa-history { + --fa: "\f1da"; } + +.fa-face-grin-beam-sweat { + --fa: "\f583"; } + +.fa-grin-beam-sweat { + --fa: "\f583"; } + +.fa-file-export { + --fa: "\f56e"; } + +.fa-arrow-right-from-file { + --fa: "\f56e"; } + +.fa-shield { + --fa: "\f132"; } + +.fa-shield-blank { + --fa: "\f132"; } + +.fa-arrow-up-short-wide { + --fa: "\f885"; } + +.fa-sort-amount-up-alt { + --fa: "\f885"; } + +.fa-comment-nodes { + --fa: "\e696"; } + +.fa-house-medical { + --fa: "\e3b2"; } + +.fa-golf-ball-tee { + --fa: "\f450"; } + +.fa-golf-ball { + --fa: "\f450"; } + +.fa-circle-chevron-left { + --fa: "\f137"; } + +.fa-chevron-circle-left { + --fa: "\f137"; } + +.fa-house-chimney-window { + --fa: "\e00d"; } + +.fa-pen-nib { + --fa: "\f5ad"; } + +.fa-tent-arrow-turn-left { + --fa: "\e580"; } + +.fa-tents { + --fa: "\e582"; } + +.fa-wand-magic { + --fa: "\f0d0"; } + +.fa-magic { + --fa: "\f0d0"; } + +.fa-dog { + --fa: "\f6d3"; } + +.fa-carrot { + --fa: "\f787"; } + +.fa-moon { + --fa: "\f186"; } + +.fa-wine-glass-empty { + --fa: "\f5ce"; } + +.fa-wine-glass-alt { + --fa: "\f5ce"; } + +.fa-cheese { + --fa: "\f7ef"; } + +.fa-yin-yang { + --fa: "\f6ad"; } + +.fa-music { + --fa: "\f001"; } + +.fa-code-commit { + --fa: "\f386"; } + +.fa-temperature-low { + --fa: "\f76b"; } + +.fa-person-biking { + --fa: "\f84a"; } + +.fa-biking { + --fa: "\f84a"; } + +.fa-broom { + --fa: "\f51a"; } + +.fa-shield-heart { + --fa: "\e574"; } + +.fa-gopuram { + --fa: "\f664"; } + +.fa-earth-oceania { + --fa: "\e47b"; } + +.fa-globe-oceania { + --fa: "\e47b"; } + +.fa-square-xmark { + --fa: "\f2d3"; } + +.fa-times-square { + --fa: "\f2d3"; } + +.fa-xmark-square { + --fa: "\f2d3"; } + +.fa-hashtag { + --fa: "\23"; } + +.fa-up-right-and-down-left-from-center { + --fa: "\f424"; } + +.fa-expand-alt { + --fa: "\f424"; } + +.fa-oil-can { + --fa: "\f613"; } + +.fa-t { + --fa: "\54"; } + +.fa-hippo { + --fa: "\f6ed"; } + +.fa-chart-column { + --fa: "\e0e3"; } + +.fa-infinity { + --fa: "\f534"; } + +.fa-vial-circle-check { + --fa: "\e596"; } + +.fa-person-arrow-down-to-line { + --fa: "\e538"; } + +.fa-voicemail { + --fa: "\f897"; } + +.fa-fan { + --fa: "\f863"; } + +.fa-person-walking-luggage { + --fa: "\e554"; } + +.fa-up-down { + --fa: "\f338"; } + +.fa-arrows-alt-v { + --fa: "\f338"; } + +.fa-cloud-moon-rain { + --fa: "\f73c"; } + +.fa-calendar { + --fa: "\f133"; } + +.fa-trailer { + --fa: "\e041"; } + +.fa-bahai { + --fa: "\f666"; } + +.fa-haykal { + --fa: "\f666"; } + +.fa-sd-card { + --fa: "\f7c2"; } + +.fa-dragon { + --fa: "\f6d5"; } + +.fa-shoe-prints { + --fa: "\f54b"; } + +.fa-circle-plus { + --fa: "\f055"; } + +.fa-plus-circle { + --fa: "\f055"; } + +.fa-face-grin-tongue-wink { + --fa: "\f58b"; } + +.fa-grin-tongue-wink { + --fa: "\f58b"; } + +.fa-hand-holding { + --fa: "\f4bd"; } + +.fa-plug-circle-exclamation { + --fa: "\e55d"; } + +.fa-link-slash { + --fa: "\f127"; } + +.fa-chain-broken { + --fa: "\f127"; } + +.fa-chain-slash { + --fa: "\f127"; } + +.fa-unlink { + --fa: "\f127"; } + +.fa-clone { + --fa: "\f24d"; } + +.fa-person-walking-arrow-loop-left { + --fa: "\e551"; } + +.fa-arrow-up-z-a { + --fa: "\f882"; } + +.fa-sort-alpha-up-alt { + --fa: "\f882"; } + +.fa-fire-flame-curved { + --fa: "\f7e4"; } + +.fa-fire-alt { + --fa: "\f7e4"; } + +.fa-tornado { + --fa: "\f76f"; } + +.fa-file-circle-plus { + --fa: "\e494"; } + +.fa-book-quran { + --fa: "\f687"; } + +.fa-quran { + --fa: "\f687"; } + +.fa-anchor { + --fa: "\f13d"; } + +.fa-border-all { + --fa: "\f84c"; } + +.fa-face-angry { + --fa: "\f556"; } + +.fa-angry { + --fa: "\f556"; } + +.fa-cookie-bite { + --fa: "\f564"; } + +.fa-arrow-trend-down { + --fa: "\e097"; } + +.fa-rss { + --fa: "\f09e"; } + +.fa-feed { + --fa: "\f09e"; } + +.fa-draw-polygon { + --fa: "\f5ee"; } + +.fa-scale-balanced { + --fa: "\f24e"; } + +.fa-balance-scale { + --fa: "\f24e"; } + +.fa-gauge-simple-high { + --fa: "\f62a"; } + +.fa-tachometer { + --fa: "\f62a"; } + +.fa-tachometer-fast { + --fa: "\f62a"; } + +.fa-shower { + --fa: "\f2cc"; } + +.fa-desktop { + --fa: "\f390"; } + +.fa-desktop-alt { + --fa: "\f390"; } + +.fa-m { + --fa: "\4d"; } + +.fa-table-list { + --fa: "\f00b"; } + +.fa-th-list { + --fa: "\f00b"; } + +.fa-comment-sms { + --fa: "\f7cd"; } + +.fa-sms { + --fa: "\f7cd"; } + +.fa-book { + --fa: "\f02d"; } + +.fa-user-plus { + --fa: "\f234"; } + +.fa-check { + --fa: "\f00c"; } + +.fa-battery-three-quarters { + --fa: "\f241"; } + +.fa-battery-4 { + --fa: "\f241"; } + +.fa-house-circle-check { + --fa: "\e509"; } + +.fa-angle-left { + --fa: "\f104"; } + +.fa-diagram-successor { + --fa: "\e47a"; } + +.fa-truck-arrow-right { + --fa: "\e58b"; } + +.fa-arrows-split-up-and-left { + --fa: "\e4bc"; } + +.fa-hand-fist { + --fa: "\f6de"; } + +.fa-fist-raised { + --fa: "\f6de"; } + +.fa-cloud-moon { + --fa: "\f6c3"; } + +.fa-briefcase { + --fa: "\f0b1"; } + +.fa-person-falling { + --fa: "\e546"; } + +.fa-image-portrait { + --fa: "\f3e0"; } + +.fa-portrait { + --fa: "\f3e0"; } + +.fa-user-tag { + --fa: "\f507"; } + +.fa-rug { + --fa: "\e569"; } + +.fa-earth-europe { + --fa: "\f7a2"; } + +.fa-globe-europe { + --fa: "\f7a2"; } + +.fa-cart-flatbed-suitcase { + --fa: "\f59d"; } + +.fa-luggage-cart { + --fa: "\f59d"; } + +.fa-rectangle-xmark { + --fa: "\f410"; } + +.fa-rectangle-times { + --fa: "\f410"; } + +.fa-times-rectangle { + --fa: "\f410"; } + +.fa-window-close { + --fa: "\f410"; } + +.fa-baht-sign { + --fa: "\e0ac"; } + +.fa-book-open { + --fa: "\f518"; } + +.fa-book-journal-whills { + --fa: "\f66a"; } + +.fa-journal-whills { + --fa: "\f66a"; } + +.fa-handcuffs { + --fa: "\e4f8"; } + +.fa-triangle-exclamation { + --fa: "\f071"; } + +.fa-exclamation-triangle { + --fa: "\f071"; } + +.fa-warning { + --fa: "\f071"; } + +.fa-database { + --fa: "\f1c0"; } + +.fa-share { + --fa: "\f064"; } + +.fa-mail-forward { + --fa: "\f064"; } + +.fa-bottle-droplet { + --fa: "\e4c4"; } + +.fa-mask-face { + --fa: "\e1d7"; } + +.fa-hill-rockslide { + --fa: "\e508"; } + +.fa-right-left { + --fa: "\f362"; } + +.fa-exchange-alt { + --fa: "\f362"; } + +.fa-paper-plane { + --fa: "\f1d8"; } + +.fa-road-circle-exclamation { + --fa: "\e565"; } + +.fa-dungeon { + --fa: "\f6d9"; } + +.fa-align-right { + --fa: "\f038"; } + +.fa-money-bill-1-wave { + --fa: "\f53b"; } + +.fa-money-bill-wave-alt { + --fa: "\f53b"; } + +.fa-life-ring { + --fa: "\f1cd"; } + +.fa-hands { + --fa: "\f2a7"; } + +.fa-sign-language { + --fa: "\f2a7"; } + +.fa-signing { + --fa: "\f2a7"; } + +.fa-calendar-day { + --fa: "\f783"; } + +.fa-water-ladder { + --fa: "\f5c5"; } + +.fa-ladder-water { + --fa: "\f5c5"; } + +.fa-swimming-pool { + --fa: "\f5c5"; } + +.fa-arrows-up-down { + --fa: "\f07d"; } + +.fa-arrows-v { + --fa: "\f07d"; } + +.fa-face-grimace { + --fa: "\f57f"; } + +.fa-grimace { + --fa: "\f57f"; } + +.fa-wheelchair-move { + --fa: "\e2ce"; } + +.fa-wheelchair-alt { + --fa: "\e2ce"; } + +.fa-turn-down { + --fa: "\f3be"; } + +.fa-level-down-alt { + --fa: "\f3be"; } + +.fa-person-walking-arrow-right { + --fa: "\e552"; } + +.fa-square-envelope { + --fa: "\f199"; } + +.fa-envelope-square { + --fa: "\f199"; } + +.fa-dice { + --fa: "\f522"; } + +.fa-bowling-ball { + --fa: "\f436"; } + +.fa-brain { + --fa: "\f5dc"; } + +.fa-bandage { + --fa: "\f462"; } + +.fa-band-aid { + --fa: "\f462"; } + +.fa-calendar-minus { + --fa: "\f272"; } + +.fa-circle-xmark { + --fa: "\f057"; } + +.fa-times-circle { + --fa: "\f057"; } + +.fa-xmark-circle { + --fa: "\f057"; } + +.fa-gifts { + --fa: "\f79c"; } + +.fa-hotel { + --fa: "\f594"; } + +.fa-earth-asia { + --fa: "\f57e"; } + +.fa-globe-asia { + --fa: "\f57e"; } + +.fa-id-card-clip { + --fa: "\f47f"; } + +.fa-id-card-alt { + --fa: "\f47f"; } + +.fa-magnifying-glass-plus { + --fa: "\f00e"; } + +.fa-search-plus { + --fa: "\f00e"; } + +.fa-thumbs-up { + --fa: "\f164"; } + +.fa-user-clock { + --fa: "\f4fd"; } + +.fa-hand-dots { + --fa: "\f461"; } + +.fa-allergies { + --fa: "\f461"; } + +.fa-file-invoice { + --fa: "\f570"; } + +.fa-window-minimize { + --fa: "\f2d1"; } + +.fa-mug-saucer { + --fa: "\f0f4"; } + +.fa-coffee { + --fa: "\f0f4"; } + +.fa-brush { + --fa: "\f55d"; } + +.fa-file-half-dashed { + --fa: "\e698"; } + +.fa-mask { + --fa: "\f6fa"; } + +.fa-magnifying-glass-minus { + --fa: "\f010"; } + +.fa-search-minus { + --fa: "\f010"; } + +.fa-ruler-vertical { + --fa: "\f548"; } + +.fa-user-large { + --fa: "\f406"; } + +.fa-user-alt { + --fa: "\f406"; } + +.fa-train-tram { + --fa: "\e5b4"; } + +.fa-user-nurse { + --fa: "\f82f"; } + +.fa-syringe { + --fa: "\f48e"; } + +.fa-cloud-sun { + --fa: "\f6c4"; } + +.fa-stopwatch-20 { + --fa: "\e06f"; } + +.fa-square-full { + --fa: "\f45c"; } + +.fa-magnet { + --fa: "\f076"; } + +.fa-jar { + --fa: "\e516"; } + +.fa-note-sticky { + --fa: "\f249"; } + +.fa-sticky-note { + --fa: "\f249"; } + +.fa-bug-slash { + --fa: "\e490"; } + +.fa-arrow-up-from-water-pump { + --fa: "\e4b6"; } + +.fa-bone { + --fa: "\f5d7"; } + +.fa-table-cells-row-unlock { + --fa: "\e691"; } + +.fa-user-injured { + --fa: "\f728"; } + +.fa-face-sad-tear { + --fa: "\f5b4"; } + +.fa-sad-tear { + --fa: "\f5b4"; } + +.fa-plane { + --fa: "\f072"; } + +.fa-tent-arrows-down { + --fa: "\e581"; } + +.fa-exclamation { + --fa: "\21"; } + +.fa-arrows-spin { + --fa: "\e4bb"; } + +.fa-print { + --fa: "\f02f"; } + +.fa-turkish-lira-sign { + --fa: "\e2bb"; } + +.fa-try { + --fa: "\e2bb"; } + +.fa-turkish-lira { + --fa: "\e2bb"; } + +.fa-dollar-sign { + --fa: "\24"; } + +.fa-dollar { + --fa: "\24"; } + +.fa-usd { + --fa: "\24"; } + +.fa-x { + --fa: "\58"; } + +.fa-magnifying-glass-dollar { + --fa: "\f688"; } + +.fa-search-dollar { + --fa: "\f688"; } + +.fa-users-gear { + --fa: "\f509"; } + +.fa-users-cog { + --fa: "\f509"; } + +.fa-person-military-pointing { + --fa: "\e54a"; } + +.fa-building-columns { + --fa: "\f19c"; } + +.fa-bank { + --fa: "\f19c"; } + +.fa-institution { + --fa: "\f19c"; } + +.fa-museum { + --fa: "\f19c"; } + +.fa-university { + --fa: "\f19c"; } + +.fa-umbrella { + --fa: "\f0e9"; } + +.fa-trowel { + --fa: "\e589"; } + +.fa-d { + --fa: "\44"; } + +.fa-stapler { + --fa: "\e5af"; } + +.fa-masks-theater { + --fa: "\f630"; } + +.fa-theater-masks { + --fa: "\f630"; } + +.fa-kip-sign { + --fa: "\e1c4"; } + +.fa-hand-point-left { + --fa: "\f0a5"; } + +.fa-handshake-simple { + --fa: "\f4c6"; } + +.fa-handshake-alt { + --fa: "\f4c6"; } + +.fa-jet-fighter { + --fa: "\f0fb"; } + +.fa-fighter-jet { + --fa: "\f0fb"; } + +.fa-square-share-nodes { + --fa: "\f1e1"; } + +.fa-share-alt-square { + --fa: "\f1e1"; } + +.fa-barcode { + --fa: "\f02a"; } + +.fa-plus-minus { + --fa: "\e43c"; } + +.fa-video { + --fa: "\f03d"; } + +.fa-video-camera { + --fa: "\f03d"; } + +.fa-graduation-cap { + --fa: "\f19d"; } + +.fa-mortar-board { + --fa: "\f19d"; } + +.fa-hand-holding-medical { + --fa: "\e05c"; } + +.fa-person-circle-check { + --fa: "\e53e"; } + +.fa-turn-up { + --fa: "\f3bf"; } + +.fa-level-up-alt { + --fa: "\f3bf"; } + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; } + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; } diff --git a/app/assets/stylesheets/fontawesome/css/regular.css b/app/assets/stylesheets/fontawesome/css/regular.css new file mode 100644 index 000000000..be1e468fc --- /dev/null +++ b/app/assets/stylesheets/fontawesome/css/regular.css @@ -0,0 +1,19 @@ +/*! + * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2024 Fonticons, Inc. + */ +:root, :host { + --fa-style-family-classic: 'Font Awesome 6 Free'; + --fa-font-regular: normal 400 1em/1 'Font Awesome 6 Free'; } + +@font-face { + font-family: 'Font Awesome 6 Free'; + font-style: normal; + font-weight: 400; + font-display: block; + src: url("../webfonts/fa-regular-400.woff2") format("woff2"), url("../webfonts/fa-regular-400.ttf") format("truetype"); } + +.far, +.fa-regular { + font-weight: 400; } diff --git a/app/assets/stylesheets/fontawesome/css/solid.css b/app/assets/stylesheets/fontawesome/css/solid.css new file mode 100644 index 000000000..6742be336 --- /dev/null +++ b/app/assets/stylesheets/fontawesome/css/solid.css @@ -0,0 +1,19 @@ +/*! + * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2024 Fonticons, Inc. + */ +:root, :host { + --fa-style-family-classic: 'Font Awesome 6 Free'; + --fa-font-solid: normal 900 1em/1 'Font Awesome 6 Free'; } + +@font-face { + font-family: 'Font Awesome 6 Free'; + font-style: normal; + font-weight: 900; + font-display: block; + src: url("../webfonts/fa-solid-900.woff2") format("woff2"), url("../webfonts/fa-solid-900.ttf") format("truetype"); } + +.fas, +.fa-solid { + font-weight: 900; } diff --git a/app/assets/stylesheets/fontawesome/webfonts/fa-regular-400.ttf b/app/assets/stylesheets/fontawesome/webfonts/fa-regular-400.ttf new file mode 100644 index 000000000..9ee1919dc Binary files /dev/null and b/app/assets/stylesheets/fontawesome/webfonts/fa-regular-400.ttf differ diff --git a/app/assets/stylesheets/fontawesome/webfonts/fa-regular-400.woff2 b/app/assets/stylesheets/fontawesome/webfonts/fa-regular-400.woff2 new file mode 100644 index 000000000..57d917965 Binary files /dev/null and b/app/assets/stylesheets/fontawesome/webfonts/fa-regular-400.woff2 differ diff --git a/app/assets/stylesheets/fontawesome/webfonts/fa-solid-900.ttf b/app/assets/stylesheets/fontawesome/webfonts/fa-solid-900.ttf new file mode 100644 index 000000000..1c10972ec Binary files /dev/null and b/app/assets/stylesheets/fontawesome/webfonts/fa-solid-900.ttf differ diff --git a/app/assets/stylesheets/fontawesome/webfonts/fa-solid-900.woff2 b/app/assets/stylesheets/fontawesome/webfonts/fa-solid-900.woff2 new file mode 100644 index 000000000..16721020f Binary files /dev/null and b/app/assets/stylesheets/fontawesome/webfonts/fa-solid-900.woff2 differ diff --git a/app/assets/stylesheets/home.css.scss b/app/assets/stylesheets/home.css.scss index c098d44b9..461e9be82 100644 --- a/app/assets/stylesheets/home.css.scss +++ b/app/assets/stylesheets/home.css.scss @@ -2,7 +2,7 @@ .homepage-header { height: 545px; - background-image: image_url("home/header-background.jpg"); + background-image: url("/home/header-background.jpg"); background-size: cover; background-position: center; padding-top: 90px; @@ -92,7 +92,7 @@ } .homepage-circle-2 { - background-image: image_url("home/lab.jpg"); + background-image: url("/home/lab.jpg"); width: 252px; height: 252px; left: 393px; @@ -100,7 +100,7 @@ } .homepage-circle-3 { - background-image: image_url("home/person.jpg"); + background-image: url("/home/person.jpg"); width: 408px; height: 408px; left: -30px; @@ -124,7 +124,7 @@ } .homepage-circle-6 { - background-image: image_url("home/machine.jpg"); + background-image: url("/home/machine.jpg"); width: 252px; height: 252px; left: 461px; diff --git a/app/assets/stylesheets/labs.css.scss b/app/assets/stylesheets/labs.css.scss index 40feb839d..caf8408b9 100644 --- a/app/assets/stylesheets/labs.css.scss +++ b/app/assets/stylesheets/labs.css.scss @@ -15,28 +15,28 @@ } .icon_active { - background-image: image_url("map-icons/active.svg"); + background-image: url("/map-icons/active.svg"); } .icon_closed { - background-image: image_url("map-icons/closed.svg"); + background-image: url("/map-icons/closed.svg"); } // Old names .icon_fab_lab { - background-image: image_url("map-icons/fab_lab.svg"); + background-image: url("/map-icons/fab_lab.svg"); } .icon_mobile { - background-image: image_url("map-icons/mobile.svg"); + background-image: url("/map-icons/mobile.svg"); } .icon_supernode { - background-image: image_url("map-icons/supernode.svg"); + background-image: url("/map-icons/supernode.svg"); } .icon_corona{ - background-image: image_url("map-icons/corona.svg"); + background-image: url("/map-icons/corona.svg"); } .zoom4 .icon_custom, diff --git a/app/javascript/application.js b/app/javascript/application.js new file mode 100644 index 000000000..753b4d9fa --- /dev/null +++ b/app/javascript/application.js @@ -0,0 +1,40 @@ +/* + * Main application JavaScript — bundled by esbuild (jsbundling-rails) into + * app/assets/builds/application.js. + * + */ + +import bootstrap from "bootstrap"; +import flatpickr from "flatpickr"; +import jQuery from "jquery"; +import select2 from 'select2'; +import Rails from '@rails/ujs' + +window.$ = window.jQuery = jQuery; + +// Nested forms (jQuery plugin; needs window.jQuery) +require("@nathanvda/cocoon") + +window.Rails = Rails +Rails.start() + +document.addEventListener("DOMContentLoaded", function() { + // Select2 dropdowns (its CommonJS export is a factory that must be called) + select2(); + + $("select").select2({ width: '100%' }); + + // This flatpickr does not have Time, HH:MM + flatpickr('.flatpickr', { + enableTime: false, + dateFormat: "Y-m-d", + time_24hr: true + }) + + // This flatpickr has Time, HH:MM + flatpickr('.flatpickr-time', { + enableTime: true, + dateFormat: "Y-m-d H:i", + time_24hr: true + }) +}); diff --git a/app/javascript/labs.js b/app/javascript/labs.js new file mode 100644 index 000000000..f18fe2d5f --- /dev/null +++ b/app/javascript/labs.js @@ -0,0 +1,133 @@ +/* + * Ported from labs.js.coffee (CoffeeScript is no longer supported + */ + +import jQuery from "jquery"; + +window.$ = window.jQuery = jQuery; + +// Google Maps geocoding helper (needs the Google Maps API script tag) +require("geocomplete"); + +window.labs = [] +window.map = null +window.showingContacts = false + +var down = false + +function toggleActivityDateFields(status) { + switch (status) { + case 'planned': + $('.input.lab_activity_start_at').show() + $('.input.lab_activity_inaugurated_at').hide() + $('.input.lab_activity_closed_at').hide() + break + case 'active': + $('.input.lab_activity_start_at').show() + $('.input.lab_activity_inaugurated_at').show() + $('.input.lab_activity_closed_at').hide() + break + default: + $('.input.lab_activity_start_at').show() + $('.input.lab_activity_inaugurated_at').show() + $('.input.lab_activity_closed_at').show() + } +} + +function ready() { + var options = { + valueNames: [ 'name', 'year' ] + } + // window.userList = new List('students', options) + + var last_valid_selection = $('.referee_approval').val() + + // Toggle fields on load + toggleActivityDateFields($('.activity-status-radio:checked').val()) + + // Toggle fields on change + $('.activity-status-radio').on('change', function(event) { + if ($(event.target).is(':checked')) { + toggleActivityDateFields(event.target.value) + } + }) + + $('.referee_approval').on('change', function(event) { + if ($(this).val().length > 3) { + $(this).val(last_valid_selection) + } else { + last_valid_selection = $(this).val() + } + }) + + // if ($('#students-filter')) { + // $('#students-filter a').on('click', function(e) { + // e.preventDefault() + // $('#students-filter dd').removeClass('active') + // $(this).parents('dd').addClass('active') + // if ($(this).data('year')) { + // window.userList.filter(function(item) { + // return parseInt(item._values.year) == parseInt($(this).data('year')) + // }.bind(this)) + // } else { + // window.userList.filter() + // } + // }) + // } + + $('#check-labs').on('change', function() { + alert("We already have '" + $(this).val() + "' lab in our database, if it is not yet visible on the site it will be soon") + }) + + $(document).on('mousedown', function() { + down = true + }).on('mouseup', function() { + down = false + }) + + $('.opening-hours td').on('mouseover', function() { + if (down) { $(this).toggleClass('active') } + }).on('click', function() { + $(this).toggleClass('active') + }) + + $('[data-toggle=offcanvas]').on('click', function() { + $('.row-offcanvas').toggleClass('active') + }) + + // Map in a Lab page + + $('#lab_name').on('change', function() { + if (!$('#lab_slug').val()) { + $('#lab_slug').val($(this).val().toLowerCase().replace(/[^A-Za-z0-9]/g, '')) + } + }) + + function updateFormWithLatLng(lat, lng) { + $('.c-labs.a-new #lab_address_1').focus() + $("input#lab_latitude").val(lat) + $("input#lab_longitude").val(lng) + $('select#lab_country_code').trigger('change') + $('#lab_geoinfo') + .find('strong') + .text(Number(lat).toFixed(6) + ' / ' + Number(lng).toFixed(6)) + } + + $(".c-labs input#geocomplete").geocomplete({ + map: "#location-picker-map", + location: $('#geocomplete').data('latlng'), + details: ".c-labs.a-new .address", + detailsAttribute: "data-geo", + markerOptions: { + draggable: true + } + }) + .on('geocode:dragged', function(event, latLng) { + updateFormWithLatLng(latLng.lat(), latLng.lng()) + }) + .on('geocode:result', function(event, result) { + updateFormWithLatLng(result.geometry.location.lat(), result.geometry.location.lng()) + }) +} + +$(document).ready(ready) diff --git a/app/views/application/_head.html.haml b/app/views/application/_head.html.haml index e41bdaf5d..e971422ec 100644 --- a/app/views/application/_head.html.haml +++ b/app/views/application/_head.html.haml @@ -25,6 +25,9 @@ = stylesheet_link_tag "//fonts.googleapis.com/css?family=Open+Sans:400|Montserrat" = stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true + = stylesheet_link_tag "fontawesome/css/fontawesome" + = stylesheet_link_tag "fontawesome/css/regular" + = stylesheet_link_tag "fontawesome/css/solid" %link{type: "text/plain", rel: "author", href: "/humans.txt"} = csrf_meta_tags diff --git a/app/views/doorkeeper/applications/show.html.erb b/app/views/doorkeeper/applications/show.html.erb index 540ba4848..afd87d160 100644 --- a/app/views/doorkeeper/applications/show.html.erb +++ b/app/views/doorkeeper/applications/show.html.erb @@ -4,10 +4,10 @@
-

<%= t('.application_id') %>:

+

<%= t('.application_id') %>

<%= @application.uid %>

-

<%= t('.secret') %>:

+

<%= t('.secret') %>

<% secret = flash[:application_secret].presence || @application.plaintext_secret %> @@ -19,7 +19,7 @@

-

<%= t('.scopes') %>:

+

<%= t('.scopes') %>

<% if @application.scopes.present? %> @@ -30,10 +30,10 @@

-

<%= t('.confidential') %>:

+

<%= t('.confidential') %>

<%= @application.confidential? %>

-

<%= t('.callback_urls') %>:

+

<%= t('.callback_urls') %>

<% if @application.redirect_uri.present? %> diff --git a/app/views/doorkeeper/authorizations/error.html.erb b/app/views/doorkeeper/authorizations/error.html.erb index 41b47b455..3f11f1c6c 100644 --- a/app/views/doorkeeper/authorizations/error.html.erb +++ b/app/views/doorkeeper/authorizations/error.html.erb @@ -3,5 +3,7 @@
-
<%= @pre_auth.error_response.body[:error_description] %>
+
+    <%= (local_assigns[:error_response] ? error_response : @pre_auth.error_response).body[:error_description] %>
+  
diff --git a/app/views/doorkeeper/authorizations/form_post.html.erb b/app/views/doorkeeper/authorizations/form_post.html.erb index 5e142a8a1..179a7846b 100644 --- a/app/views/doorkeeper/authorizations/form_post.html.erb +++ b/app/views/doorkeeper/authorizations/form_post.html.erb @@ -3,7 +3,7 @@ <%= form_tag @pre_auth.redirect_uri, method: :post, name: :redirect_form, authenticity_token: false do %> - <% @authorize_response.body.compact.each do |key, value| %> + <% auth.body.compact.each do |key, value| %> <%= hidden_field_tag key, value %> <% end %> <% end %> diff --git a/app/views/doorkeeper/authorizations/new.html.erb b/app/views/doorkeeper/authorizations/new.html.erb index 83d7d0793..bfe505ff7 100644 --- a/app/views/doorkeeper/authorizations/new.html.erb +++ b/app/views/doorkeeper/authorizations/new.html.erb @@ -1,10 +1,5 @@
@@ -14,7 +9,7 @@ <% if @pre_auth.scopes.count > 0 %>
-

<%= t('.able_to') %>:

+

<%= t('.able_to') %>

    <% @pre_auth.scopes.each do |scope| %> @@ -26,33 +21,26 @@
    <%= form_tag oauth_authorization_path, method: :post do %> - <%= hidden_field_tag :client_id, @pre_auth.client.uid %> - <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri %> - <%= hidden_field_tag :state, @pre_auth.state %> - <%= hidden_field_tag :response_type, @pre_auth.response_type %> - <%= hidden_field_tag :response_mode, @pre_auth.response_mode %> - <%= hidden_field_tag :scope, @pre_auth.scope %> - <%= hidden_field_tag :code_challenge, @pre_auth.code_challenge %> - <%= hidden_field_tag :code_challenge_method, @pre_auth.code_challenge_method %> - <%= submit_tag t('doorkeeper.authorizations.buttons.authorize', for: current_user.username), class: "btn btn-success btn-lg btn-block" %> + <%= hidden_field_tag :client_id, @pre_auth.client.uid, id: nil %> + <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri, id: nil %> + <%= hidden_field_tag :state, @pre_auth.state, id: nil %> + <%= hidden_field_tag :response_type, @pre_auth.response_type, id: nil %> + <%= hidden_field_tag :response_mode, @pre_auth.response_mode, id: nil %> + <%= hidden_field_tag :scope, @pre_auth.scope, id: nil %> + <%= hidden_field_tag :code_challenge, @pre_auth.code_challenge, id: nil %> + <%= hidden_field_tag :code_challenge_method, @pre_auth.code_challenge_method, id: nil %> + <%= submit_tag t('doorkeeper.authorizations.buttons.authorize'), class: "btn btn-success btn-lg btn-block" %> <% end %> - -

    - <%= raw t('.redirect_to') %> -
    - <%= @pre_auth.redirect_uri %> -

    - <%= form_tag oauth_authorization_path, method: :delete do %> - <%= hidden_field_tag :client_id, @pre_auth.client.uid %> - <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri %> - <%= hidden_field_tag :state, @pre_auth.state %> - <%= hidden_field_tag :response_type, @pre_auth.response_type %> - <%= hidden_field_tag :response_mode, @pre_auth.response_mode %> - <%= hidden_field_tag :scope, @pre_auth.scope %> - <%= hidden_field_tag :code_challenge, @pre_auth.code_challenge %> - <%= hidden_field_tag :code_challenge_method, @pre_auth.code_challenge_method %> - <%= submit_tag t('doorkeeper.authorizations.buttons.deny'), class: "btn btn-outline-danger btn-lg btn-block" %> + <%= hidden_field_tag :client_id, @pre_auth.client.uid, id: nil %> + <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri, id: nil %> + <%= hidden_field_tag :state, @pre_auth.state, id: nil %> + <%= hidden_field_tag :response_type, @pre_auth.response_type, id: nil %> + <%= hidden_field_tag :response_mode, @pre_auth.response_mode, id: nil %> + <%= hidden_field_tag :scope, @pre_auth.scope, id: nil %> + <%= hidden_field_tag :code_challenge, @pre_auth.code_challenge, id: nil %> + <%= hidden_field_tag :code_challenge_method, @pre_auth.code_challenge_method, id: nil %> + <%= submit_tag t('doorkeeper.authorizations.buttons.deny'), class: "btn btn-danger btn-lg btn-block" %> <% end %>
diff --git a/app/views/doorkeeper/authorizations/show.html.erb b/app/views/doorkeeper/authorizations/show.html.erb index f4d661019..827a98fd1 100644 --- a/app/views/doorkeeper/authorizations/show.html.erb +++ b/app/views/doorkeeper/authorizations/show.html.erb @@ -1,5 +1,5 @@
diff --git a/app/views/labs/_form.html.haml b/app/views/labs/_form.html.haml index 0fd5129e5..44d9a3f93 100644 --- a/app/views/labs/_form.html.haml +++ b/app/views/labs/_form.html.haml @@ -1,4 +1,6 @@ = javascript_include_tag "//maps.googleapis.com/maps/api/js?libraries=places&key=#{ENV['GOOGLE_MAPS_API_KEY']}" += javascript_include_tag "labs", "data-turbolinks-track" => true + = simple_form_for lab, html: { class: 'row' } do |f| = render 'form_errors', resource: lab diff --git a/app/views/layouts/doorkeeper/admin.html.erb b/app/views/layouts/doorkeeper/admin.html.erb index 3d1aeadec..0073ca5a0 100644 --- a/app/views/layouts/doorkeeper/admin.html.erb +++ b/app/views/layouts/doorkeeper/admin.html.erb @@ -1,39 +1,15 @@ +<% title title t('doorkeeper.layouts.admin.title') %> - - - - - - <%= t('doorkeeper.layouts.admin.title') %> - <%= stylesheet_link_tag "doorkeeper/admin/application" %> - <%= csrf_meta_tags %> - - - - -
- <%- if flash[:notice].present? %> -
- <%= flash[:notice] %> + +<%= render 'head' %> + + <%= render "application/header" %> +
+
+ <%= yield %>
- <% end -%> - - <%= yield %> -
+
+ <%= cookie_policy_script %> + <%= render 'footer' %> diff --git a/app/views/layouts/doorkeeper/application.html.erb b/app/views/layouts/doorkeeper/application.html.erb index 562005af0..92ebab311 100644 --- a/app/views/layouts/doorkeeper/application.html.erb +++ b/app/views/layouts/doorkeeper/application.html.erb @@ -1,23 +1,15 @@ +<% title t('doorkeeper.layouts.application.title') %> - - - <%= t('doorkeeper.layouts.application.title') %> - - - - - <%= stylesheet_link_tag "doorkeeper/application" %> - <%= csrf_meta_tags %> - - -
- <%- if flash[:notice].present? %> -
- <%= flash[:notice] %> + +<%= render 'head' %> + +
+
+ <%= link_to root_path do %> + <%= image_tag("logo.svg", alt: "fablabs.io") %> + <% end %>
- <% end -%> - - <%= yield %> -
+ <%= yield %> +
diff --git a/bin/bundle b/bin/bundle index f19acf5b5..50da5fdf9 100755 --- a/bin/bundle +++ b/bin/bundle @@ -1,3 +1,109 @@ #!/usr/bin/env ruby -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) -load Gem.bin_path('bundler', 'bundle') +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'bundle' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require "rubygems" + +m = Module.new do + module_function + + def invoked_as_script? + File.expand_path($0) == File.expand_path(__FILE__) + end + + def env_var_version + ENV["BUNDLER_VERSION"] + end + + def cli_arg_version + return unless invoked_as_script? # don't want to hijack other binstubs + return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update` + bundler_version = nil + update_index = nil + ARGV.each_with_index do |a, i| + if update_index && update_index.succ == i && a.match?(Gem::Version::ANCHORED_VERSION_PATTERN) + bundler_version = a + end + next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/ + bundler_version = $1 + update_index = i + end + bundler_version + end + + def gemfile + gemfile = ENV["BUNDLE_GEMFILE"] + return gemfile if gemfile && !gemfile.empty? + + File.expand_path("../Gemfile", __dir__) + end + + def lockfile + lockfile = + case File.basename(gemfile) + when "gems.rb" then gemfile.sub(/\.rb$/, ".locked") + else "#{gemfile}.lock" + end + File.expand_path(lockfile) + end + + def lockfile_version + return unless File.file?(lockfile) + lockfile_contents = File.read(lockfile) + return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/ + Regexp.last_match(1) + end + + def bundler_requirement + @bundler_requirement ||= + env_var_version || + cli_arg_version || + bundler_requirement_for(lockfile_version) + end + + def bundler_requirement_for(version) + return "#{Gem::Requirement.default}.a" unless version + + bundler_gem_version = Gem::Version.new(version) + + bundler_gem_version.approximate_recommendation + end + + def load_bundler! + ENV["BUNDLE_GEMFILE"] ||= gemfile + + activate_bundler + end + + def activate_bundler + gem_error = activation_error_handling do + gem "bundler", bundler_requirement + end + return if gem_error.nil? + require_error = activation_error_handling do + require "bundler/version" + end + return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION)) + 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}'`" + exit 42 + end + + def activation_error_handling + yield + nil + rescue StandardError, LoadError => e + e + end +end + +m.load_bundler! + +if m.invoked_as_script? + load Gem.bin_path("bundler", "bundle") +end diff --git a/bin/ci b/bin/ci new file mode 100755 index 000000000..4137ad5bb --- /dev/null +++ b/bin/ci @@ -0,0 +1,6 @@ +#!/usr/bin/env ruby +require_relative "../config/boot" +require "active_support/continuous_integration" + +CI = ActiveSupport::ContinuousIntegration +require_relative "../config/ci.rb" diff --git a/bin/dev b/bin/dev new file mode 100755 index 000000000..5f91c2054 --- /dev/null +++ b/bin/dev @@ -0,0 +1,2 @@ +#!/usr/bin/env ruby +exec "./bin/rails", "server", *ARGV diff --git a/bin/setup b/bin/setup index aaaf20ef6..0e9fbf0de 100755 --- a/bin/setup +++ b/bin/setup @@ -14,7 +14,6 @@ FileUtils.chdir APP_ROOT do # Add necessary setup steps to this file. puts "== Installing dependencies ==" - system! "gem install bundler --conservative" system("bundle check") || system!("bundle install") # puts "\n== Copying sample files ==" @@ -24,14 +23,14 @@ FileUtils.chdir APP_ROOT do puts "\n== Preparing database ==" system! "bin/rails db:prepare" + system! "bin/rails db:reset" if ARGV.include?("--reset") puts "\n== Removing old logs and tempfiles ==" system! "bin/rails log:clear tmp:clear" - puts "\n== Restarting application server ==" - system! "bin/rails restart" - - # puts "\n== Configuring puma-dev ==" - # system "ln -nfs #{APP_ROOT} ~/.puma-dev/#{APP_NAME}" - # system "curl -Is https://#{APP_NAME}.test/up | head -n 1" + unless ARGV.include?("--skip-server") + puts "\n== Starting development server ==" + STDOUT.flush # flush the output before exec(2) so that it displays + exec "bin/dev" + end end diff --git a/config/application.rb b/config/application.rb index d13fb9c28..877ce1f04 100644 --- a/config/application.rb +++ b/config/application.rb @@ -12,7 +12,6 @@ # require "action_text/engine" require "action_view/railtie" require "action_cable/engine" -require "sprockets/railtie" require "rails/test_unit/railtie" # Require the gems listed in Gemfile, including any gems @@ -22,7 +21,7 @@ module Fablabs class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 7.2 + config.load_defaults 8.0 # Please, add to the `ignore` list any other `lib` subdirectories that do # not contain `.rb` files, or that should not be reloaded or eager loaded. @@ -60,23 +59,6 @@ class Application < Rails::Application g.integration_specs true end - config.action_mailer.default_url_options = { host: 'www.fablabs.io', protocol: 'https' } - config.action_mailer.delivery_method = :smtp - config.action_mailer.perform_deliveries = true - config.action_mailer.raise_delivery_errors = true - config.action_mailer.smtp_settings = { - authentication: ENV['EMAIL_AUTHENTICATION'], - address: ENV['EMAIL_ADDRESS'], - port: ENV['EMAIL_PORT'].to_i, - domain: ENV['EMAIL_DOMAIN'], - user_name: ENV['EMAIL_USERNAME'], - password: ENV['EMAIL_PASSWORD'] - } - - config.assets.paths << Rails.root.join('vendor', 'assets') - - config.sass.silence_deprecations = ['import','global-builtin'] - config.app_generators.scaffold_controller = :scaffold_controller end end diff --git a/config/ci.rb b/config/ci.rb new file mode 100644 index 000000000..1dcd62ed8 --- /dev/null +++ b/config/ci.rb @@ -0,0 +1,20 @@ +# Run using bin/ci + +CI.run do + step "Setup", "bin/setup --skip-server" + + step "Security: Importmap vulnerability audit", "bin/importmap audit" + step "Tests: Rails", "bin/rails test" + step "Tests: Seeds", "env RAILS_ENV=test bin/rails db:seed:replant" + + # Optional: Run system tests + # step "Tests: System", "bin/rails test:system" + + # Optional: set a green GitHub commit status to unblock PR merge. + # Requires the `gh` CLI and `gh extension install basecamp/gh-signoff`. + # if success? + # step "Signoff: All systems go. Ready for merge and deploy.", "gh signoff" + # else + # failure "Signoff: CI failed. Do not merge or deploy.", "Fix the issues and try again." + # end +end diff --git a/config/environments/development.rb b/config/environments/development.rb index 5197892f3..2556bc17e 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -5,9 +5,7 @@ config.hosts.clear - # In the development environment your application's code is reloaded any time - # it changes. This slows down response time but is perfect for development - # since you don't have to restart the web server when you make code changes. + # Make code changes take effect immediately without server restart. config.enable_reloading = true # Do not eager load code on boot. @@ -19,49 +17,46 @@ # Enable server timing. config.server_timing = true - # Enable/disable caching. By default caching is disabled. - # Run rails dev:cache to toggle caching. + # Enable/disable Action Controller caching. By default Action Controller caching is disabled. + # Run rails dev:cache to toggle Action Controller caching. if Rails.root.join("tmp/caching-dev.txt").exist? config.action_controller.perform_caching = true config.action_controller.enable_fragment_cache_logging = true - - config.cache_store = :memory_store - config.public_file_server.headers = { - "Cache-Control" => "public, max-age=#{2.days.to_i}" - } + config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" } else config.action_controller.perform_caching = false - - config.cache_store = :null_store end + # Change to :null_store to avoid any caching. + config.cache_store = :memory_store + # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false - # Disable caching for Action Mailer templates even if Action Controller - # caching is enabled. + # Make template changes take effect immediately. config.action_mailer.perform_caching = false + # Set localhost to be used by links generated in mailer templates. config.action_mailer.default_url_options = { host: "www.fablabs.local", port: 3000 } # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log - # Raise exceptions for disallowed deprecations. - config.active_support.disallowed_deprecation = :raise - - # Tell Active Support which deprecation messages to disallow. - config.active_support.disallowed_deprecation_warnings = [] - # Raise an error on page load if there are pending migrations. config.active_record.migration_error = :page_load # Highlight code that triggered database queries in logs. config.active_record.verbose_query_logs = true + # Append comments with runtime information tags to SQL queries in logs. + config.active_record.query_log_tags_enabled = true + # Highlight code that enqueued background job in logs. config.active_job.verbose_enqueue_logs = true + # Highlight code that triggered redirect in logs. + config.action_dispatch.verbose_redirect_logs = true + # Suppress logger output for asset requests. config.assets.quiet = true @@ -69,7 +64,6 @@ # config.i18n.raise_on_missing_translations = true # Annotate rendered view with file names. - # config.action_view.annotate_rendered_view_with_filenames = true config.action_view.annotate_rendered_view_with_filenames = true # Use an evented file watcher to asynchronously detect changes in source code, diff --git a/config/environments/production.rb b/config/environments/production.rb index e3541a45d..d140d2a77 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -10,47 +10,26 @@ # Code is not reloaded between requests. config.enable_reloading = false - # Eager load code on boot. This eager loads most of Rails and - # your application in memory, allowing both threaded web servers - # and those relying on copy on write to perform better. - # Rake tasks automatically ignore this option for performance. + # Eager load code on boot for better performance and memory savings (ignored by Rake tasks). config.eager_load = true - # Full error reports are disabled and caching is turned on. + # Full error reports are disabled. config.consider_all_requests_local = false - config.action_controller.perform_caching = true - # Ensures that a master key has been made available in ENV["RAILS_MASTER_KEY"], config/master.key, or an environment - # key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files). - # config.require_master_key = true + # Turn on fragment caching in view templates. + config.action_controller.perform_caching = true # Disable serving static files from `public/`, relying on NGINX/Apache to do so instead. config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? - # Compress JavaScripts and CSS. - config.assets.js_compressor = :uglifier - - # Compress CSS using a preprocessor. - # config.assets.css_compressor = :sass - - # Do not fall back to assets pipeline if a precompiled asset is missed. - config.assets.compile = false + # Cache assets for far-future expiry since they are all digest stamped. + config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" } # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.asset_host = "http://assets.example.com" - # Specifies the header that your server uses for sending files. - # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache - # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX - - # Mount Action Cable outside main process or domain. - # config.action_cable.mount_path = nil - # config.action_cable.url = "wss://example.com/cable" - # config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ] - # Assume all access to the app is happening through a SSL-terminating reverse proxy. - # Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies. - # config.assume_ssl = true + config.assume_ssl = true # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. config.force_ssl = true @@ -58,42 +37,50 @@ # Skip http-to-https redirect for the default health check endpoint. # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } } - # Log to STDOUT by default - config.logger = ActiveSupport::Logger.new(STDOUT) - .tap { |logger| logger.formatter = ::Logger::Formatter.new } - .then { |logger| ActiveSupport::TaggedLogging.new(logger) } - - # Prepend all log lines with the following tags. + # Log to STDOUT with the current request id as a default log tag. config.log_tags = [ :request_id ] + config.logger = ActiveSupport::TaggedLogging.logger(STDOUT) - # "info" includes generic and useful information about system operation, but avoids logging too much - # information to avoid inadvertent exposure of personally identifiable information (PII). If you - # want to log everything, set the level to "debug". + # Change to "debug" to log everything (including potentially personally-identifiable information!). config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info") - # Use a different cache store in production. + # Prevent health checks from clogging up the logs. + config.silence_healthcheck_path = "/up" + + # Don't log any deprecations. + config.active_support.report_deprecations = false + + # Replace the default in-process memory cache store with a durable alternative. # config.cache_store = :mem_cache_store config.cache_store = :redis_cache_store, { url: ENV["REDIS_URL"] } - # Use a real queuing backend for Active Job (and separate queues per environment). + # Replace the default in-process and non-durable queuing backend for Active Job. # config.active_job.queue_adapter = :resque - # config.active_job.queue_name_prefix = "fablabs_production" - # Disable caching for Action Mailer templates even if Action Controller - # caching is enabled. - config.action_mailer.perform_caching = false + config.action_mailer.delivery_method = :smtp + config.action_mailer.perform_deliveries = true # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false + config.action_mailer.raise_delivery_errors = true + + # Set host to be used by links generated in mailer templates. + config.action_mailer.default_url_options = { host: 'www.fablabs.io', protocol: 'https' } + + # Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit. + config.action_mailer.smtp_settings = { + authentication: ENV['EMAIL_AUTHENTICATION'], + address: ENV['EMAIL_ADDRESS'], + port: ENV['EMAIL_PORT'].to_i, + domain: ENV['EMAIL_DOMAIN'], + user_name: ENV['EMAIL_USERNAME'], + password: ENV['EMAIL_PASSWORD'] + } # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true - # Don't log any deprecations. - config.active_support.report_deprecations = false - # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false @@ -105,6 +92,7 @@ # "example.com", # Allow requests from example.com # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com` # ] + # # Skip DNS rebinding protection for the default health check endpoint. # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } end diff --git a/config/environments/test.rb b/config/environments/test.rb index 29779dbd2..0bb0b3e21 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,5 +1,3 @@ -require "active_support/core_ext/integer/time" - # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped @@ -17,15 +15,11 @@ # loading is working properly before deploying your code. config.eager_load = ENV["CI"].present? - # Configure public file server for tests with Cache-Control for performance. - config.public_file_server.enabled = true - config.public_file_server.headers = { - "Cache-Control" => "public, max-age=#{1.hour.to_i}" - } + # Configure public file server for tests with cache-control for performance. + config.public_file_server.headers = { "cache-control" => "public, max-age=3600" } - # Show full error reports and disable caching. + # Show full error reports. config.consider_all_requests_local = true - config.action_controller.perform_caching = false config.cache_store = :null_store # Render exception templates for rescuable exceptions and raise for other exceptions. @@ -34,28 +28,17 @@ # Disable request forgery protection in test environment. config.action_controller.allow_forgery_protection = false - # Disable caching for Action Mailer templates even if Action Controller - # caching is enabled. - config.action_mailer.perform_caching = false - # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test - # Unlike controllers, the mailer instance doesn't have any context about the - # incoming request so you'll need to provide the :host parameter yourself. - config.action_mailer.default_url_options = { host: "www.fablabs.io" } + # Set host to be used by links generated in mailer templates. + config.action_mailer.default_url_options = { host: "example.com" } # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr - # Raise exceptions for disallowed deprecations. - config.active_support.disallowed_deprecation = :raise - - # Tell Active Support which deprecation messages to disallow. - config.active_support.disallowed_deprecation_warnings = [] - # Raises error for missing translations. # config.i18n.raise_on_missing_translations = true diff --git a/config/initializers/active_admin.rb b/config/initializers/active_admin.rb index 402840d3b..d3c1ad953 100644 --- a/config/initializers/active_admin.rb +++ b/config/initializers/active_admin.rb @@ -2,21 +2,28 @@ # == Site Title # # Set the title that is displayed on the main layout - # for each of the active admin pages. + # for each of the active admin pages. Can also be customized + # by extracting the _site_header partial into your project + # to use your own logo, styles, etc. # config.site_title = "Fablabs" - # Set the link url for the title. For example, to take - # users to your main site. Defaults to no link. + # == Load Paths # - # config.site_title_link = "/" - - # Set an optional image to be displayed for the header - # instead of a string (overrides :site_title) + # By default Active Admin files go inside app/admin/. + # You can change this directory. + # + # eg: + # config.load_paths = [File.join(Rails.root, 'app', 'ui')] # - # Note: Aim for an image that's 21px high so it fits in the header. + # Or, you can also load more directories. + # Useful when setting namespaces with users that are not your main AdminUser entity. # - # config.site_title_image = "logo.png" + # eg: + # config.load_paths = [ + # File.join(Rails.root, 'app', 'admin'), + # File.join(Rails.root, 'app', 'cashier') + # ] # == Default Namespace # @@ -61,8 +68,10 @@ # Active Admin will automatically call an authorization # method in a before filter of all controller actions to # ensure that there is a user with proper rights. You can use - # CanCanAdapter or make your own. Please refer to documentation. + # CanCanAdapter, PunditAdapter, or make your own. Please + # refer to the documentation. # config.authorization_adapter = ActiveAdmin::CanCanAdapter + # config.authorization_adapter = ActiveAdmin::PunditAdapter # In case you prefer Pundit over other solutions you can here pass # the name of default policy class. This policy will be used in every @@ -99,18 +108,13 @@ # settings configure the location and method used for the link. # # This setting changes the path where the link points to. If it's - # a string, the strings is used as the path. If it's a Symbol, we + # a string, the string is used as the path. If it's a Symbol, we # will call the method to return the path. # # Default: + # config.logout_link_path = :destroy_admin_user_session_path config.logout_link_path = "signout" - # This setting changes the http method used when rendering the - # link. For example :get, :delete, :put, etc.. - # - # Default: - config.logout_link_method = :get - # == Root # # Set the action to call for the root path. You can set different @@ -170,23 +174,6 @@ # config.localize_format = :long - # == Setting a Favicon - # - # config.favicon = 'favicon.ico' - - # == Meta Tags - # - # Add additional meta tags to the head element of active admin pages. - # - # Add tags to all pages logged in users see: - # config.meta_tags = { author: 'My Company' } - - # By default, sign up/sign in/recover password pages are excluded - # from showing up in search engine results by adding a robots meta - # tag. You can reset the hash of meta tags included in logged out - # pages: - # config.meta_tags_for_logged_out_pages = {} - # == Removing Breadcrumbs # # Breadcrumbs are enabled by default. You can customize them for individual @@ -201,21 +188,6 @@ # # config.create_another = true - # == Register Stylesheets & Javascripts - # - # We recommend using the built in Active Admin layout and loading - # up your own stylesheets / javascripts to customize the look - # and feel. - # - # To load a stylesheet: - # config.register_stylesheet 'my_stylesheet.css' - # - # You can provide an options hash for more control, which is passed along to stylesheet_link_tag(): - # config.register_stylesheet 'my_print_stylesheet.css', media: :print - # - # To load a javascript file: - # config.register_javascript 'my_javascript.js' - # == CSV options # # Set the CSV builder separator @@ -228,20 +200,11 @@ # # You can add a navigation menu to be used in your application, or configure a provided menu # - # To change the default utility navigation to show a link to your website & a logout btn - # - # config.namespace :admin do |admin| - # admin.build_menu :utility_navigation do |menu| - # menu.add label: "My Great Website", url: "http://www.mygreatwebsite.com", html_options: { target: :blank } - # admin.add_logout_button_to_menu menu - # end - # end - # # If you wanted to add a static menu item to the default menu provided: # # config.namespace :admin do |admin| # admin.build_menu :default do |menu| - # menu.add label: "My Great Website", url: "http://www.mygreatwebsite.com", html_options: { target: :blank } + # menu.add label: "My Great Website", url: "https://mygreatwebsite.example.com", html_options: { target: "_blank" } # end # end @@ -257,11 +220,10 @@ # # Disable the links entirely # admin.download_links = false # - # # Only show XML & PDF options + # # Only show XML & PDF options. You must register the format mime type with `Mime::Type.register`. # admin.download_links = [:xml, :pdf] # - # # Enable/disable the links based on block - # # (for example, with cancan) + # # Enable/disable the links based on block (for example, with cancan) # admin.download_links = proc { can?(:view_download_links) } # # end @@ -303,21 +265,7 @@ # :title, # :email, # ] - # config.filter_method_for_large_association = '_starts_with' - - # == Head - # - # You can add your own content to the site head like analytics. Make sure - # you only pass content you trust. - # - # config.head = ''.html_safe - - # == Footer - # - # By default, the footer shows the current Active Admin version. You can - # override the content of the footer here. - # - # config.footer = 'my custom footer text' + # config.filter_method_for_large_association = '_start' # == Sorting # @@ -325,11 +273,4 @@ # You can inherit it with own class and inject it for all resources # # config.order_clause = MyOrderClause - - # == Webpacker - # - # By default, Active Admin uses Sprocket's asset pipeline. - # You can switch to using Webpacker here. - # - # config.use_webpacker = true end diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index d929f7800..e50a4d8fe 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -5,10 +5,5 @@ # Add additional assets to the asset load path. # Rails.application.config.assets.paths << Emoji.images_path -# Add Yarn node_modules folder to the asset load path. -Rails.application.config.assets.paths << Rails.root.join('node_modules') -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in the app/assets -# folder are already added. -# Rails.application.config.assets.precompile += %w[ admin.js admin.css ] +Rails.application.config.assets.paths << Rails.root.join("app", "assets", "stylesheets", "fontawesome") diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index b3076b38f..d51d71397 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -20,6 +20,10 @@ # config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s } # config.content_security_policy_nonce_directives = %w(script-src style-src) # +# # Automatically add `nonce` to `javascript_tag`, `javascript_include_tag`, and `stylesheet_link_tag` +# # if the corresponding directives are specified in `content_security_policy_nonce_directives`. +# # config.content_security_policy_nonce_auto = true +# # # Report violations without enforcing the policy. # # config.content_security_policy_report_only = true # end diff --git a/config/initializers/css_precompile_hook.rb b/config/initializers/css_precompile_hook.rb new file mode 100644 index 000000000..44766a57f --- /dev/null +++ b/config/initializers/css_precompile_hook.rb @@ -0,0 +1,6 @@ +if Rake::Task.task_defined?("assets:precompile") + Rake::Task["assets:precompile"].enhance do + puts "Building Admin CSS..." + system("yarn run build:css:activeadmin") + end +end diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb index 549b05ddd..f07826f94 100644 --- a/config/initializers/doorkeeper.rb +++ b/config/initializers/doorkeeper.rb @@ -1,13 +1,24 @@ +# frozen_string_literal: true + Doorkeeper.configure do - # Change the ORM that doorkeeper will use. - # Currently supported options are :active_record, :mongoid2, :mongoid3, :mongo_mapper + # Change the ORM that doorkeeper will use (requires ORM extensions installed). + # Check the list of supported ORMs here: https://github.com/doorkeeper-gem/doorkeeper#orms orm :active_record - base_controller 'ApplicationController' - - # custom model class - application_class "Doorkeeper::Application" - + # Enable support for multiple database configurations with read replicas. + # When enabled, Doorkeeper will wrap database write operations to ensure they + # use the primary (writable) database when automatic role switching is enabled. + # + # For ActiveRecord (Rails 6.1+), this uses `ActiveRecord::Base.connected_to(role: :writing)`. + # Other ORM extensions can implement their own primary database targeting logic. + # + # enable_multiple_database_roles + # + # This prevents `ActiveRecord::ReadOnlyError` when using read replicas with Rails + # automatic role switching. Enable this if your application uses multiple databases + # with automatic role switching for read replicas. + # + # See: https://guides.rubyonrails.org/active_record_multiple_databases.html#activating-automatic-role-switching # This block will be called to check whether the resource owner is authenticated or not. resource_owner_authenticator do @@ -33,56 +44,514 @@ end end - # Authorization Code expiration time (default 10 minutes). + # You can use your own model classes if you need to extend (or even override) default + # Doorkeeper models such as `Application`, `AccessToken` and `AccessGrant. + # + # By default Doorkeeper ActiveRecord ORM uses its own classes: + # + # access_token_class "Doorkeeper::AccessToken" + # access_grant_class "Doorkeeper::AccessGrant" + application_class "Doorkeeper::Application" + # + # Don't forget to include Doorkeeper ORM mixins into your custom models: + # + # * ::Doorkeeper::Orm::ActiveRecord::Mixins::AccessToken - for access token + # * ::Doorkeeper::Orm::ActiveRecord::Mixins::AccessGrant - for access grant + # * ::Doorkeeper::Orm::ActiveRecord::Mixins::Application - for application (OAuth2 clients) + # + # For example: + # + # access_token_class "MyAccessToken" + # + # class MyAccessToken < ApplicationRecord + # include ::Doorkeeper::Orm::ActiveRecord::Mixins::AccessToken + # + # self.table_name = "hey_i_wanna_my_name" + # + # def destroy_me! + # destroy + # end + # end + + # Enables polymorphic Resource Owner association for Access Tokens and Access Grants. + # By default this option is disabled. + # + # Make sure you properly setup you database and have all the required columns (run + # `bundle exec rails generate doorkeeper:enable_polymorphic_resource_owner` and execute Rails + # migrations). + # + # If this option enabled, Doorkeeper will store not only Resource Owner primary key + # value, but also it's type (class name). See "Polymorphic Associations" section of + # Rails guides: https://guides.rubyonrails.org/association_basics.html#polymorphic-associations + # + # [NOTE] If you apply this option on already existing project don't forget to manually + # update `resource_owner_type` column in the database and fix migration template as it will + # set NOT NULL constraint for Access Grants table. + # + # use_polymorphic_resource_owner + + # If you are planning to use Doorkeeper in Rails 5 API-only application, then you might + # want to use API mode that will skip all the views management and change the way how + # Doorkeeper responds to a requests. + # + # api_only + + # Enforce token request content type to application/x-www-form-urlencoded. + # It is not enabled by default to not break prior versions of the gem. + # + # enforce_content_type + + # Authorization Code expiration time (default: 10 minutes). + # authorization_code_expires_in 10.minutes - # Access token expiration time (default 2 hours). - # If you want to disable expiration, set this to nil. - access_token_expires_in #2.hours + # Access token expiration time (default: 2 hours). + # If you set this to `nil` Doorkeeper will not expire the token and omit expires_in in response. + # It is RECOMMENDED to set expiration time explicitly. + # Prefer access_token_expires_in 100.years or similar, + # which would be functionally equivalent and avoid the risk of unexpected behavior by callers. + # + access_token_expires_in 2.hours + + # Assign custom TTL for access tokens. Will be used instead of access_token_expires_in + # option if defined. In case the block returns `nil` value Doorkeeper fallbacks to + # +access_token_expires_in+ configuration option value. If you really need to issue a + # non-expiring access token (which is not recommended) then you need to return + # Float::INFINITY from this block. + # + # `context` has the following properties available: + # + # * `client` - the OAuth client application (see Doorkeeper::OAuth::Client) + # * `grant_type` - the grant type of the request (see Doorkeeper::OAuth) + # * `scopes` - the requested scopes (see Doorkeeper::OAuth::Scopes) + # * `resource_owner` - authorized resource owner instance (if present) + # + # custom_access_token_expires_in do |context| + # context.client.additional_settings.implicit_oauth_expiration + # end + + # Use a custom class for generating the access token. + # See https://doorkeeper.gitbook.io/guides/configuration/other-configurations#custom-access-token-generator + # + # access_token_generator '::Doorkeeper::JWT' + # The controller +Doorkeeper::ApplicationController+ inherits from. + # Defaults to +ActionController::Base+ unless +api_only+ is set, which changes the default to + # +ActionController::API+. The return value of this option must be a stringified class name. + # See https://doorkeeper.gitbook.io/guides/configuration/other-configurations#custom-controllers + # + base_controller 'ApplicationController' + + # Reuse access token for the same resource owner within an application (disabled by default). + # + # This option protects your application from creating new tokens before old **valid** one becomes + # expired so your database doesn't bloat. Keep in mind that when this option is enabled Doorkeeper + # doesn't update existing token expiration time, it will create a new token instead if no active matching + # token found for the application, resources owner and/or set of scopes. + # Rationale: https://github.com/doorkeeper-gem/doorkeeper/issues/383 + # + # You can not enable this option together with +hash_token_secrets+. + # reuse_access_token - # Issue access tokens with refresh token (disabled by default) + # In case you enabled `reuse_access_token` option Doorkeeper will try to find matching + # token using `matching_token_for` Access Token API that searches for valid records + # in batches in order not to pollute the memory with all the database records. By default + # Doorkeeper uses batch size of 10 000 records. You can increase or decrease this value + # depending on your needs and server capabilities. + # + # token_lookup_batch_size 10_000 + + # Set a limit for token_reuse if using reuse_access_token option + # + # This option limits token_reusability to some extent. + # If not set then access_token will be reused unless it expires. + # Rationale: https://github.com/doorkeeper-gem/doorkeeper/issues/1189 + # + # This option should be a percentage(i.e. (0,100]) + # + # token_reuse_limit 100 + + # Only allow one valid access token obtained via client credentials + # per client. If a new access token is obtained before the old one + # expired, the old one gets revoked (disabled by default) + # + # When enabling this option, make sure that you do not expect multiple processes + # using the same credentials at the same time (e.g. web servers spanning + # multiple machines and/or processes). + # + # revoke_previous_client_credentials_token + + # Only allow one valid access token obtained via authorization code + # per client. If a new access token is obtained before the old one + # expired, the old one gets revoked (disabled by default) + # + # revoke_previous_authorization_code_token + + # Require non-confidential clients to use PKCE when using an authorization code + # to obtain an access_token (disabled by default) + # + # force_pkce + + # Hash access and refresh tokens before persisting them. + # This will disable the possibility to use +reuse_access_token+ + # since plain values can no longer be retrieved. + # + # Note: If you are already a user of doorkeeper and have existing tokens + # in your installation, they will be invalid without adding 'fallback: :plain'. + # + # hash_token_secrets + # By default, token secrets will be hashed using the + # +Doorkeeper::Hashing::SHA256+ strategy. + # + # If you wish to use another hashing implementation, you can override + # this strategy as follows: + # + # hash_token_secrets using: '::Doorkeeper::Hashing::MyCustomHashImpl' + # + # Keep in mind that changing the hashing function will invalidate all existing + # secrets, if there are any. + + # Hash application secrets before persisting them. + # + # hash_application_secrets + # + # By default, applications will be hashed + # with the +Doorkeeper::SecretStoring::SHA256+ strategy. + # + # If you wish to use bcrypt for application secret hashing, uncomment + # this line instead: + # + # hash_application_secrets using: '::Doorkeeper::SecretStoring::BCrypt' + + # When the above option is enabled, and a hashed token or secret is not found, + # you can allow to fall back to another strategy. For users upgrading + # doorkeeper and wishing to enable hashing, you will probably want to enable + # the fallback to plain tokens. + # + # This will ensure that old access tokens and secrets + # will remain valid even if the hashing above is enabled. + # + # This can be done by adding 'fallback: plain', e.g. : + # + # hash_application_secrets using: '::Doorkeeper::SecretStoring::BCrypt', fallback: :plain + + # Issue access tokens with refresh token (disabled by default), you may also + # pass a block which accepts `context` to customize when to give a refresh + # token or not. Similar to +custom_access_token_expires_in+, `context` has + # the following properties: + # + # `client` - the OAuth client application (see Doorkeeper::OAuth::Client) + # `grant_type` - the grant type of the request (see Doorkeeper::OAuth) + # `scopes` - the requested scopes (see Doorkeeper::OAuth::Scopes) + # # use_refresh_token # Provide support for an owner to be assigned to each registered application (disabled by default) - # Optional parameter :confirmation => true (default false) if you want to enforce ownership of + # Optional parameter confirmation: true (default: false) if you want to enforce ownership of # a registered application - # Note: you must also run the rails g doorkeeper:application_owner generator to provide the necessary support - enable_application_owner :confirmation => true + # NOTE: you must also run the rails g doorkeeper:application_owner generator + # to provide the necessary support + # + enable_application_owner confirmation: false # Define access token scopes for your provider - # For more information go to https://github.com/applicake/doorkeeper/wiki/Using-Scopes + # For more information go to + # https://doorkeeper.gitbook.io/guides/ruby-on-rails/scopes + # default_scopes :public # optional_scopes :write, :update + # Allows to restrict only certain scopes for grant_type. + # By default, all the scopes will be available for all the grant types. + # + # Keys to this hash should be the name of grant_type and + # values should be the array of scopes for that grant type. + # Note: scopes should be from configured_scopes (i.e. default or optional) + # + # scopes_by_grant_type password: [:write], client_credentials: [:update] + + # Forbids creating/updating applications with arbitrary scopes that are + # not in configuration, i.e. +default_scopes+ or +optional_scopes+. + # (disabled by default) + # + # enforce_configured_scopes + # Change the way client credentials are retrieved from the request object. # By default it retrieves first from the `HTTP_AUTHORIZATION` header, then # falls back to the `:client_id` and `:client_secret` params from the `params` object. - # Check out the wiki for more information on customization + # Check out https://github.com/doorkeeper-gem/doorkeeper/wiki/Changing-how-clients-are-authenticated + # for more information on customization + # + # NOTE: configuring a callable extractor opts the request out of the RFC 6749 + # §2.3 checks that reject a request authenticating the client with more than + # one method, or presenting more than one client identity. A callable may + # legitimately overlap the built-in extractors, and the extractors after the + # matching one are never called, so what they would have returned is unknown. + # Prefer the symbol extractors unless you need something they cannot express; + # a callable has to reject such a request itself. + # # client_credentials :from_basic, :from_params # Change the way access token is authenticated from the request object. # By default it retrieves first from the `HTTP_AUTHORIZATION` header, then # falls back to the `:access_token` or `:bearer_token` params from the `params` object. - # Check out the wiki for more information on customization + # Check out https://github.com/doorkeeper-gem/doorkeeper/wiki/Changing-how-clients-are-authenticated + # for more information on customization + # # access_token_methods :from_bearer_authorization, :from_access_token_param, :from_bearer_param - # # Change the test redirect uri for client apps - # # When clients register with the following redirect uri, they won't be redirected to any server and the authorization code will be displayed within the provider - # # The value can be any string. Use nil to disable this feature. When disabled, clients must provide a valid URL - # # (Similar behaviour: https://developers.google.com/accounts/docs/OAuth2InstalledApp#choosingredirecturi) - # # - #test_redirect_uri nil#'urn:ietf:wg:oauth:2.0:oob' + # Forces the usage of the HTTPS protocol in non-native redirect uris (enabled + # by default in non-development environments). OAuth2 delegates security in + # communication to the HTTPS protocol so it is wise to keep this enabled. + # + # Callable objects such as proc, lambda, block or any object that responds to + # #call can be used in order to allow conditional checks (to allow non-SSL + # redirects to localhost for example). + # + # force_ssl_in_redirect_uri !Rails.env.development? + # + # force_ssl_in_redirect_uri { |uri| uri.host != 'localhost' } force_ssl_in_redirect_uri false + # Specify what redirect URI's you want to block during Application creation. + # Any redirect URI is allowed by default. + # + # Redirect URIs with a script scheme (`javascript`, `vbscript`, `data`) are + # always rejected, regardless of this option. + # + # You can use this option in order to forbid URI's of a particular host + # for example. + # + # forbid_redirect_uri { |uri| uri.host == 'example.com' } - # # Under some circumstances you might want to have applications auto-approved, - # # so that the user skips the authorization step. - # # For example if dealing with trusted a application. + # Allows to set blank redirect URIs for Applications in case Doorkeeper configured + # to use URI-less OAuth grant flows like Client Credentials or Resource Owner + # Password Credentials. The option is on by default and checks configured grant + # types, but you **need** to manually drop `NOT NULL` constraint from `redirect_uri` + # column for `oauth_applications` database table. + # + # You can completely disable this feature with: + # + # allow_blank_redirect_uri false + # + # Or you can define your custom check: + # + # allow_blank_redirect_uri do |grant_flows, client| + # client.superapp? + # end + + # Specify how authorization errors should be handled. + # By default, doorkeeper renders json errors when access token + # is invalid, expired, revoked or has invalid scopes. + # + # If you want to render error response yourself (i.e. rescue exceptions), + # set +handle_auth_errors+ to `:raise` and rescue Doorkeeper::Errors::InvalidToken + # or following specific errors: + # + # Doorkeeper::Errors::TokenForbidden, Doorkeeper::Errors::TokenExpired, + # Doorkeeper::Errors::TokenRevoked, Doorkeeper::Errors::TokenUnknown + # + # handle_auth_errors :raise + # + # If you want to redirect back to the client application in accordance with + # https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2.1, you can set + # +handle_auth_errors+ to :redirect + # + # handle_auth_errors :redirect + + # Customize token introspection response. + # Allows to add your own fields to default one that are required by the OAuth spec + # for the introspection response. It could be `sub`, `aud` and so on. + # This configuration option can be a proc, lambda or any Ruby object responds + # to `.call` method and result of it's invocation must be a Hash. + # + # custom_introspection_response do |token, context| + # { + # "sub": "Z5O3upPC88QrAjx00dis", + # "aud": "https://protected.example.net/resource", + # "username": User.find(token.resource_owner_id).username + # } + # end + # + # or + # + # custom_introspection_response CustomIntrospectionResponder + + # Specify what grant flows are enabled in array of Strings. The valid + # strings and the flows they enable are: + # + # "authorization_code" => Authorization Code Grant Flow + # "implicit" => Implicit Grant Flow + # "password" => Resource Owner Password Credentials Grant Flow + # "client_credentials" => Client Credentials Grant Flow + # + # If not specified, Doorkeeper enables authorization_code and + # client_credentials. + # + # implicit and password grant flows have risks that you should understand + # before enabling: + # https://datatracker.ietf.org/doc/html/rfc6819#section-4.4.2 + # https://datatracker.ietf.org/doc/html/rfc6819#section-4.4.3 + # + # grant_flows %w[authorization_code client_credentials] + + # Allows to customize OAuth grant flows that +each+ application support. + # You can configure a custom block (or use a class respond to `#call`) that must + # return `true` in case Application instance supports requested OAuth grant flow + # during the authorization request to the server. This configuration +doesn't+ + # set flows per application, it only allows to check if application supports + # specific grant flow. + # + # For example you can add an additional database column to `oauth_applications` table, + # say `t.array :grant_flows, default: []`, and store allowed grant flows that can + # be used with this application there. Then when authorization requested Doorkeeper + # will call this block to check if specific Application (passed with client_id and/or + # client_secret) is allowed to perform the request for the specific grant type + # (authorization, password, client_credentials, etc). + # + # Example of the block: + # + # ->(flow, client) { client.grant_flows.include?(flow) } + # + # In case this option invocation result is `false`, Doorkeeper server returns + # :unauthorized_client error and stops the request. + # + # @param allow_grant_flow_for_client [Proc] Block or any object respond to #call + # @return [Boolean] `true` if allow or `false` if forbid the request + # + # allow_grant_flow_for_client do |grant_flow, client| + # # `grant_flows` is an Array column with grant + # # flows that application supports + # + # client.grant_flows.include?(grant_flow) + # end + + # If you need arbitrary Resource Owner-Client authorization you can enable this option + # and implement the check your need. Config option must respond to #call and return + # true in case resource owner authorized for the specific application or false in other + # cases. + # + # By default all Resource Owners are authorized to any Client (application). + # + # authorize_resource_owner_for_client do |client, resource_owner| + # resource_owner.admin? || client.owners_allowlist.include?(resource_owner) + # end + + # Allows additional data fields to be sent while granting access to an application, + # and for this additional data to be included in subsequently generated access tokens. + # The 'authorizations/new' page will need to be overridden to include this additional data + # in the request params when granting access. The access grant and access token models + # will both need to respond to these additional data fields, and have a database column + # to store them in. + # + # Example: + # You have a multi-tenanted platform and want to be able to grant access to a specific + # tenant, rather than all the tenants a user has access to. You can use this config + # option to specify that a ':tenant_id' will be passed when authorizing. This tenant_id + # will be included in the access tokens. When a request is made with one of these access + # tokens, you can check that the requested data belongs to the specified tenant. + # + # Default value is an empty Array: [] + # custom_access_token_attributes [:tenant_id] + + # Hook into the strategies' request & response life-cycle in case your + # application needs advanced customization or logging: + # + # before_successful_strategy_response do |request| + # puts "BEFORE HOOK FIRED! #{request}" + # end + # + # after_successful_strategy_response do |request, response| + # puts "AFTER HOOK FIRED! #{request}, #{response}" + # end + + # Hook into Authorization flow in order to implement Single Sign Out + # or add any other functionality. Inside the block you have an access + # to `controller` (authorizations controller instance) and `context` + # (Doorkeeper::OAuth::Hooks::Context instance) which provides pre auth + # or auth objects with issued token based on hook type (before or after). + # + # before_successful_authorization do |controller, context| + # Rails.logger.info(controller.request.params.inspect) + # + # Rails.logger.info(context.pre_auth.inspect) + # end + # + # after_successful_authorization do |controller, context| + # controller.session[:logout_urls] << + # Doorkeeper::Application + # .find_by(controller.request.params.slice(:redirect_uri)) + # .logout_uri + # + # Rails.logger.info(context.auth.inspect) + # Rails.logger.info(context.issued_token) + # end + + # Under some circumstances you might want to have applications auto-approved, + # so that the user skips the authorization step. + # For example if dealing with a trusted application. + # skip_authorization do |resource_owner, client| false - # client.superapp? or resource_owner.admin? end + + # Configure custom constraints for the Token Introspection request. + # By default this configuration option allows to introspect a token by another + # token of the same application, OR to introspect the token that belongs to + # authorized client (from authenticated client) OR when token doesn't + # belong to any client (public token). Otherwise requester has no access to the + # introspection and it will return response as stated in the RFC. + # + # Block arguments: + # + # @param token [Doorkeeper::AccessToken] + # token to be introspected + # + # @param authorized_client [Doorkeeper::Application] + # authorized client (if request is authorized using Basic auth with + # Client Credentials for example) + # + # @param authorized_token [Doorkeeper::AccessToken] + # Bearer token used to authorize the request + # + # In case the block returns `nil` or `false` introspection responses with 401 status code + # when using authorized token to introspect, or you'll get 200 with { "active": false } body + # when using authorized client to introspect as stated in the + # RFC 7662 section 2.2. Introspection Response. + # + # Using with caution: + # Keep in mind that these three parameters pass to block can be nil as following case: + # `authorized_client` is nil if and only if `authorized_token` is present, and vice versa. + # `token` will be nil if and only if `authorized_token` is present. + # So remember to use `&` or check if it is present before calling method on + # them to make sure you doesn't get NoMethodError exception. + # + # You can define your custom check: + # + # allow_token_introspection do |token, authorized_client, authorized_token| + # if authorized_token + # # customize: require `introspection` scope + # authorized_token.application == token&.application || + # authorized_token.scopes.include?("introspection") + # elsif token.application + # # `protected_resource` is a new database boolean column, for example + # authorized_client == token.application || authorized_client.protected_resource? + # else + # # public token (when token.application is nil, token doesn't belong to any application) + # true + # end + # end + # + # Or you can completely disable any token introspection: + # + # allow_token_introspection false + # + # If you need to block the request at all, then configure your routes.rb or web-server + # like nginx to forbid the request. + + # WWW-Authenticate Realm (default: "Doorkeeper"). + # + # realm "Doorkeeper" end diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb index 004dcef91..d79f6d6ea 100644 --- a/config/initializers/filter_parameter_logging.rb +++ b/config/initializers/filter_parameter_logging.rb @@ -4,7 +4,7 @@ # Use this to limit dissemination of sensitive information. # See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors. Rails.application.config.filter_parameters += [ - :passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn + :passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc ] Rails.application.config.filter_parameters += [ diff --git a/config/initializers/new_framework_defaults_8_1.rb b/config/initializers/new_framework_defaults_8_1.rb new file mode 100644 index 000000000..8569b5b1c --- /dev/null +++ b/config/initializers/new_framework_defaults_8_1.rb @@ -0,0 +1,74 @@ +# Be sure to restart your server when you modify this file. +# +# This file eases your Rails 8.1 framework defaults upgrade. +# +# Uncomment each configuration one by one to switch to the new default. +# Once your application is ready to run with all new defaults, you can remove +# this file and set the `config.load_defaults` to `8.1`. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. +# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html + +### +# Skips escaping HTML entities and line separators. When set to `false`, the +# JSON renderer no longer escapes these to improve performance. +# +# Example: +# class PostsController < ApplicationController +# def index +# render json: { key: "\u2028\u2029<>&" } +# end +# end +# +# Renders `{"key":"\u2028\u2029\u003c\u003e\u0026"}` with the previous default, but `{"key":"

<>&"}` with the config +# set to `false`. +# +# Applications that want to keep the escaping behavior can set the config to `true`. +#++ +# Rails.configuration.action_controller.escape_json_responses = false + +### +# Skips escaping LINE SEPARATOR (U+2028) and PARAGRAPH SEPARATOR (U+2029) in JSON. +# +# Historically these characters were not valid inside JavaScript literal strings but that changed in ECMAScript 2019. +# As such it's no longer a concern in modern browsers: https://caniuse.com/mdn-javascript_builtins_json_json_superset. +#++ +# Rails.configuration.active_support.escape_js_separators_in_json = false + +### +# Raises an error when order dependent finder methods (e.g. `#first`, `#second`) are called without `order` values +# on the relation, and the model does not have any order columns (`implicit_order_column`, `query_constraints`, or +# `primary_key`) to fall back on. +# +# The current behavior of not raising an error has been deprecated, and this configuration option will be removed in +# Rails 8.2. +#++ +# Rails.configuration.active_record.raise_on_missing_required_finder_order_columns = true + +### +# Controls how Rails handles path relative URL redirects. +# When set to `:raise`, Rails will raise an `ActionController::Redirecting::UnsafeRedirectError` +# for relative URLs without a leading slash, which can help prevent open redirect vulnerabilities. +# +# Example: +# redirect_to "example.com" # Raises UnsafeRedirectError +# redirect_to "@attacker.com" # Raises UnsafeRedirectError +# redirect_to "/safe/path" # Works correctly +# +# Applications that want to allow these redirects can set the config to `:log` (previous default) +# to only log warnings, or `:notify` to send ActiveSupport notifications. +#++ +# Rails.configuration.action_controller.action_on_path_relative_redirect = :raise + +### +# Use a Ruby parser to track dependencies between Action View templates +#++ +# Rails.configuration.action_view.render_tracker = :ruby + +### +# When enabled, hidden inputs generated by `form_tag`, `token_tag`, `method_tag`, and the hidden parameter fields +# included in `button_to` forms will omit the `autocomplete="off"` attribute. +# +# Applications that want to keep generating the `autocomplete` attribute for those tags can set it to `false`. +#++ +# Rails.configuration.action_view.remove_hidden_field_autocomplete = true diff --git a/config/locales/de.yml b/config/locales/de.yml index 413d48020..0524cda96 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -27,7 +27,8 @@ de: home: around_the_world: Weltweit beyond_that: Und außerdem? - fab_labs_description: Fab Labs bieten Zugang zu modernen Entwicklungsmethoden. + fab_labs_description: | + Fab Labs bieten Zugang zu modernen Entwicklungsmethoden. Was als Projekt am Center for Bits and Atoms (CBA) des MIT begann, wurde zu einem weltweiten Netzwerk der Zusammenarbeit. Mehr Informationen über Fab Labs findest du auf %{fab_foundation}. Das untenstehende Foto zeigt die Ausstattung diff --git a/config/locales/doorkeeper.en.yml b/config/locales/doorkeeper.en.yml index 95689e954..7444d9268 100644 --- a/config/locales/doorkeeper.en.yml +++ b/config/locales/doorkeeper.en.yml @@ -11,9 +11,12 @@ en: redirect_uri: fragment_present: 'cannot contain a fragment.' invalid_uri: 'must be a valid URI.' + unspecified_scheme: 'must specify a scheme.' relative_uri: 'must be an absolute URI.' secured_uri: 'must be an HTTPS/SSL URI.' forbidden_uri: 'is forbidden by the server.' + scopes: + not_match_configured: "doesn't match those configured on the server." doorkeeper: scopes: @@ -31,38 +34,49 @@ en: form: error: 'Whoops! Check your form for possible errors' help: + confidential: 'Application will be used where the client secret can be kept confidential. Native mobile apps and Single Page Apps are considered non-confidential.' redirect_uri: 'Use one line per URI' + blank_redirect_uri: "Leave it blank if you configured your provider to use Client Credentials, Resource Owner Password Credentials or any other grant type that doesn't require a redirect URI." scopes: 'Separate scopes with spaces. Leave blank to use the default scopes.' edit: - title: 'Edit application' + title: 'Edit OAuth application' index: - title: 'Your applications' - new: 'New Application' + title: 'Your OAuth applications' + new: 'Create OAuth Application' name: 'Name' callback_url: 'Callback URL' + confidential: 'Confidential?' + actions: 'Actions' + confidentiality: + 'yes': 'Yes' + 'no': 'No' new: - title: 'New Application' + title: 'New OAuth Application' show: title: 'Application: %{name}' - application_id: 'Application Id' - secret: 'Secret' - scopes: 'Scopes' - callback_urls: 'Callback urls' + application_id: 'UID:' + secret: 'Secret:' + secret_hashed: 'Secret hashed' + scopes: 'Scopes:' + confidential: 'Confidential:' + callback_urls: 'Callback URLs:' actions: 'Actions' + not_defined: 'Not defined' authorizations: buttons: - authorize: 'Authorize for "%{for}"' + authorize: 'Authorize' deny: 'Deny' error: title: 'An error has occurred' new: title: 'Authorization required' - prompt: 'The %{client_name} app is requesting access to your account?' - able_to: 'This application will be able to' - redirect_to: 'Authorizing will redirect to' + prompt: 'Authorize %{client_name} to use your account?' + able_to: 'This application will be able to:' show: - title: 'Authorization code' + title: 'Authorization code:' + form_post: + title: 'Submit this form' authorized_applications: confirmations: @@ -75,27 +89,37 @@ en: created_at: 'Created At' date_format: '%Y-%m-%d %H:%M:%S' + pre_authorization: + status: 'Pre-authorization' + errors: messages: # Common error messages invalid_request: unknown: 'The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed.' missing_param: 'Missing required parameter: %{value}.' - not_support_pkce: 'Invalid code_verifier parameter. Server does not support pkce.' - request_not_authorized: 'Request need to be authorized. Required parameter for authorizing request is missing or invalid.' - invalid_redirect_uri: "The requested redirect uri is malformed or doesn't match client redirect URI." + request_not_authorized: 'Request needs to be authorized. Required parameter for authorizing the request is missing or invalid.' + invalid_code_challenge: 'Code challenge is required.' + multiple_client_auth_methods: 'The request utilizes more than one mechanism for authenticating the client.' + invalid_redirect_uri: "The requested redirect URI is malformed or doesn't match the client redirect URI." unauthorized_client: 'The client is not authorized to perform this request using this method.' access_denied: 'The resource owner or authorization server denied the request.' invalid_scope: 'The requested scope is invalid, unknown, or malformed.' + invalid_code_challenge_method: + zero: 'The authorization server does not support PKCE as there are no accepted code_challenge_method values.' + one: 'The code_challenge_method must be %{challenge_methods}.' + other: 'The code_challenge_method must be one of %{challenge_methods}.' server_error: 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' temporarily_unavailable: 'The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.' # Configuration error messages credential_flow_not_configured: 'Resource Owner Password Credentials flow failed due to Doorkeeper.configure.resource_owner_from_credentials being unconfigured.' resource_owner_authenticator_not_configured: 'Resource Owner find failed due to Doorkeeper.configure.resource_owner_authenticator being unconfigured.' + admin_authenticator_not_configured: 'Access to admin panel is forbidden due to Doorkeeper.configure.admin_authenticator being unconfigured.' # Access grant errors unsupported_response_type: 'The authorization server does not support this response type.' + unsupported_response_mode: 'The authorization server does not support this response mode.' # Access token errors invalid_client: 'Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.' @@ -106,6 +130,11 @@ en: revoked: "The access token was revoked" expired: "The access token expired" unknown: "The access token is invalid" + revoke: + unauthorized: "You are not authorized to revoke this token" + + forbidden_token: + missing_scope: 'Access to this resource requires scope "%{oauth_scopes}".' flash: applications: @@ -121,8 +150,9 @@ en: layouts: admin: + title: 'Doorkeeper' nav: - oauth2_provider: 'Fablabs.io Developer Console' + oauth2_provider: 'OAuth2 Provider' applications: 'Applications' home: 'Home' application: diff --git a/config/locales/en.yml b/config/locales/en.yml index e12288f63..34e06d2af 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -22,7 +22,8 @@ en: add_a_lab: Add Lab all_countries: All countries new: - answer-1: In order to be listed on FabLabs.io, you have to fill the form below + answer-1: | + In order to be listed on FabLabs.io, you have to fill the form below and discuss your ne Lab with 3 Referee Labs that you can choose in the form. Please fill the details of the form below and choose 3 of the Referee Labs available and contact them, they will approve you after you have exchanged @@ -32,42 +33,54 @@ en: list. It's not important that you already know them, it's important that you start a discussion with them. We are doing this so that the connections among the Labs (especially for new Labs) get strengthened. - answer-2: Referee Labs might be busy, so it depends also on their time. Please + answer-2: | + Referee Labs might be busy, so it depends also on their time. Please do not forget that being listed on FabLabs.io is not the only thing that makes your lab a Fab Lab, you need to interact with the global Fab Lab network continuously and not only when creating the application. - answer-3: For the moment the process is simple, the important thing is to get + answer-3: | + For the moment the process is simple, the important thing is to get in contact with the 3 Referee Labs you choose. - answer-4: You can ask for support to the administrators and the whole community + answer-4: | + You can ask for support to the administrators and the whole community in the Fablabs.io forum section. As soon as you create the application of a Fab Lab here, a new thread about your Lab will be created in the forum. answer-5: If you have technical issues, you can report them on GitHub. faq: F.A.Q - item-1: We have recently redesigned the Fab Lab approval process to minimise + item-1: | + We have recently redesigned the Fab Lab approval process to minimise the waiting time for Labs to get approved. - item-2: Each new Lab need to go through the referee approval process in order + item-2: | + Each new Lab need to go through the referee approval process in order to get approved on the platform. - item-3: Each Lab, need to select three Referee Labs during the application process. + item-3: | + Each Lab, need to select three Referee Labs during the application process. These are trusted Labs on our platform. Please note that you can, but you do not have to necessarily select, labs close to you geographically. - item-4: Referees might request more info about your Lab. In this case you will + item-4: | + Referees might request more info about your Lab. In this case you will receive an email inviting you to add more content to some sections of the Lab form. - item-5: Referees can also send a Lab for admin approval. In this case, it will + item-5: | + Referees can also send a Lab for admin approval. In this case, it will be up to the platform admins to approve or not the new Lab. - item-6: When submitted, is first assigned the "unverified" state. If one of + item-6: | + When submitted, is first assigned the "unverified" state. If one of the referee gives their first approval the Lab is moved into the "referee approval" state. - item-7: If the Referee rejects, the Lab is moved to the "might need review" + item-7: | + If the Referee rejects, the Lab is moved to the "might need review" state. Being in one of the two states doesn't guarantee approval, nor means that the Lab will be rejected. item-8: The Lab will be rejected or approved depending on the vote of the Referees. question-1: How does the registration of a new Lab work? - question-2: What is the average/ rough time-span for an new Lab to achieve the + question-2: | + What is the average/ rough time-span for an new Lab to achieve the status of a "Fab Lab" on the list? question-3: Are there multiple stages to complete the registration? question-4: What can I do if I have problems with the registration process? - we_are_in_the_process: We are in the process of improving the list of Fab Labs + we_are_in_the_process: | + We are in the process of improving the list of Fab Labs and the approval process, which may change in the future. Before adding a Lab sure to read the current approval process guidelines below. show: @@ -127,6 +140,7 @@ en: 'yes': 'Yes' views: header: + developer_console: OAuth Applications events: Events jobs: Jobs labs: Labs @@ -134,7 +148,7 @@ en: me: Me organizations: Orgs projects: Projects - search: "\U0001F50E Search, anything" + search: "🔎 Search, anything" settings: Settings home: around_the_world: Around the world @@ -144,11 +158,11 @@ en: description: In order to build a global network, a distributed laboratory for research and invention. title: All Fab Labs share common tools and processes. - fab_labs_description: Fab labs provide widespread access to modern means for + fab_labs_description: | + Fab labs provide widespread access to modern means for invention. They began as an outreach project from MIT's Center for Bits and Atoms (CBA), and became into a collaborative and global network. You can find - more information about Fab Labs on the Fab - Foundation Website. The annotated photo below illustrates the facilities + more information about Fab Labs on the %{fab_foundation} Website. The annotated photo below illustrates the facilities of a typical Fab Lab. fablabs-section: cta: See the full list @@ -176,7 +190,8 @@ en: the world subtitle: Explore title: I’m a Person - quote: Because all Fab Labs share common tools and processes, the program is + quote: | + Because all Fab Labs share common tools and processes, the program is building a global network, a distributed laboratory for research and invention. welcome: Welcome what_can_i_do: What can I do? diff --git a/config/locales/es.yml b/config/locales/es.yml index a857a48a0..0857bc8e9 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -35,7 +35,8 @@ es: home: around_the_world: Alrededor del mundo beyond_that: Y más alla de eso? - fab_labs_description: Los fab labs proporcionan acceso abierto a medios modernos + fab_labs_description: | + Los fab labs proporcionan acceso abierto a medios modernos de invención. Empezaron como un proyecto de extension del Center for Bits and Atoms del Massachusetts Institute of Technology, y se convirtió en una red global y colaborativa. Puedes encontrar mas informacion sobre los Fab diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 48a586ee4..12711f306 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -26,7 +26,8 @@ fr: home: around_the_world: Autour du monde beyond_that: Et ensuite? - fab_labs_description: Les Fab Labs fournissent un accès global aux moyens modernes + fab_labs_description: | + Les Fab Labs fournissent un accès global aux moyens modernes d''invention. Ils ont commencé comme un projet de sensibilisation du MIT Center pour Bits and Atoms (CBA) et sont devenus un réseau global et collaboratif. Vous pourrez trouver plus d''informations sur les Fab Labs sur %{fab_foundation}. diff --git a/config/locales/is.yml b/config/locales/is.yml index 4ffd02963..b1b2f8d0a 100644 --- a/config/locales/is.yml +++ b/config/locales/is.yml @@ -1,3 +1,4 @@ +--- is: capabilities: circuit_production: Circuit production @@ -21,25 +22,54 @@ is: add_a_lab: Bæta við smiðju all_countries: Öll lönd new: - answer-1: In order to be listed on FabLabs.io, you have to fill the form below and discuss your ne Lab with 3 Referee Labs that you can choose in the form. Please fill the details of the form below and choose 3 of the Referee Labs available and contact them, they will approve you after you have exchanged more information with them. The list of Referee Labs is limited to some Fab Labs with experience and a history of collaborating with the global Fab Lab Network, at the moment it is not possible to choose Referee Labs outside that list. It's not important that you already know them, it's important that you start a discussion with them. We are doing this so that the connections among the Labs (especially for new Labs) get strengthened. - answer-2: Referee Labs might be busy, so it depends also on their time. Please do not forget that being listed on FabLabs.io is not the only thing that makes your lab a Fab Lab, you need to interact with the global Fab Lab network continuously and not only when creating the application. - answer-3: For the moment the process is simple, the important thing is to get in contact with the 3 Referee Labs you choose. - answer-4: You can ask for support to the administrators and the whole community in the Fablabs.io forum section. As soon as you create the application of a Fab Lab here, a new thread about your Lab will be created in the forum. + answer-1: In order to be listed on FabLabs.io, you have to fill the form below + and discuss your ne Lab with 3 Referee Labs that you can choose in the form. + Please fill the details of the form below and choose 3 of the Referee Labs + available and contact them, they will approve you after you have exchanged + more information with them. The list of Referee Labs is limited to some Fab + Labs with experience and a history of collaborating with the global Fab Lab + Network, at the moment it is not possible to choose Referee Labs outside that + list. It's not important that you already know them, it's important that you + start a discussion with them. We are doing this so that the connections among + the Labs (especially for new Labs) get strengthened. + answer-2: Referee Labs might be busy, so it depends also on their time. Please + do not forget that being listed on FabLabs.io is not the only thing that makes + your lab a Fab Lab, you need to interact with the global Fab Lab network continuously + and not only when creating the application. + answer-3: For the moment the process is simple, the important thing is to get + in contact with the 3 Referee Labs you choose. + answer-4: You can ask for support to the administrators and the whole community + in the Fablabs.io forum section. As soon as you create the application of + a Fab Lab here, a new thread about your Lab will be created in the forum. answer-5: If you have technical issues, you can report them on GitHub. faq: F.A.Q - item-1: We have recently redesigned the Fab Lab approval process to minimise the waiting time for Labs to get approved. - item-2: Each new Lab need to go through the referee approval process in order to get approved on the platform. - item-3: Each Lab, need to select three Referee Labs during the application process. These are trusted Labs on our platform. Please note that you can, but you do not have to necessarily select, labs close to you geographically. - item-4: Referees might request more info about your Lab. In this case you will receive an email inviting you to add more content to some sections of the Lab form. - item-5: Referees can also send a Lab for admin approval. In this case, it will be up to the platform admins to approve or not the new Lab. - item-6: When submitted, is first assigned the "unverified" state. If one of the referee gives their first approval the Lab is moved into the "referee approval" state. - item-7: If the Referee rejects, the Lab is moved to the "might need review" state. Being in one of the two states doesn't guarantee approval, nor means that the Lab will be rejected. + item-1: We have recently redesigned the Fab Lab approval process to minimise + the waiting time for Labs to get approved. + item-2: Each new Lab need to go through the referee approval process in order + to get approved on the platform. + item-3: Each Lab, need to select three Referee Labs during the application process. + These are trusted Labs on our platform. Please note that you can, but you + do not have to necessarily select, labs close to you geographically. + item-4: Referees might request more info about your Lab. In this case you will + receive an email inviting you to add more content to some sections of the + Lab form. + item-5: Referees can also send a Lab for admin approval. In this case, it will + be up to the platform admins to approve or not the new Lab. + item-6: When submitted, is first assigned the "unverified" state. If one of + the referee gives their first approval the Lab is moved into the "referee + approval" state. + item-7: If the Referee rejects, the Lab is moved to the "might need review" + state. Being in one of the two states doesn't guarantee approval, nor means + that the Lab will be rejected. item-8: The Lab will be rejected or approved depending on the vote of the Referees. question-1: How does the registration of a new Lab work? - question-2: What is the average/ rough time-span for an new Lab to achieve the status of a "Fab Lab" on the list? + question-2: What is the average/ rough time-span for an new Lab to achieve the + status of a "Fab Lab" on the list? question-3: Are there multiple stages to complete the registration? question-4: What can I do if I have problems with the registration process? - we_are_in_the_process: We are in the process of improving the list of Fab Labs and the approval process, which may change in the future. Before adding a Lab sure to read the current approval process guidelines below. + we_are_in_the_process: We are in the process of improving the list of Fab Labs + and the approval process, which may change in the future. Before adding a + Lab sure to read the current approval process guidelines below. show: nearby_labs: Nálægar smiðjur machines: @@ -59,7 +89,8 @@ is: signed_in: Signed in. signed_out: Signed out! styleguide: Styleguide - success_sign_up: Thanks for signing up. Please check your email to complete your registration! + success_sign_up: Thanks for signing up. Please check your email to complete your + registration! simple_form: error_notification: default_message: 'Please review the problems below:' @@ -103,19 +134,25 @@ is: me: Ég organizations: Samtök projects: Verkefni - search: "Leita" + search: Leita settings: Stillingar home: around_the_world: Umhverfis heiminn beyond_that: Og lengra? circles-section: cta: Nánar - description: In order to build a global network, a distributed laboratory for research and invention. + description: In order to build a global network, a distributed laboratory + for research and invention. title: All Fab Labs share common tools and processes. - fab_labs_description: Fab labs provide widespread access to modern means for invention. They began as an outreach project from MIT's Center for Bits and Atoms (CBA), and became into a collaborative and global network. You can find more information about Fab Labs on the Fab Foundation Website. The annotated photo below illustrates the facilities of a typical Fab Lab. + fab_labs_description: Fab labs provide widespread access to modern means for + invention. They began as an outreach project from MIT's Center for Bits and + Atoms (CBA), and became into a collaborative and global network. You can find + more information about Fab Labs on the %{fab_foundation} Website. The annotated + photo below illustrates the facilities of a typical Fab Lab. fablabs-section: cta: Sjá allan listann - description: In order to build a global network, a distributed laboratory for research and invention. + description: In order to build a global network, a distributed laboratory + for research and invention. title: Global league of fab labs for local purposes. features: activity_feeds: Activity feeds @@ -126,17 +163,20 @@ is: opening_hours: Opnunartímar lab_card: cta: Skráðu smiðjuna þína - description: Hver einasta smiðja hefur sína eigin síðu sem starfsfólk getur uppfært + description: Hver einasta smiðja hefur sína eigin síðu sem starfsfólk getur + uppfært subtitle: Profile title: Ég er Fablab lab_profiles: Lab profiles machines: Vélar person_card: cta: Stofna aðgang - description: An interactive map showing the location of all the Fab Labs around the world + description: An interactive map showing the location of all the Fab Labs around + the world subtitle: Skoða title: Ég er persóna - quote: Because all Fab Labs share common tools and processes, the program is building a global network, a distributed laboratory for research and invention. + quote: Because all Fab Labs share common tools and processes, the program is + building a global network, a distributed laboratory for research and invention. welcome: Velkomin what_can_i_do: Hvað get ég gert? whats_a_fab_lab: I'm new here. What's a Fab Lab? diff --git a/config/locales/it.yml b/config/locales/it.yml index 4838f1bbe..109a85442 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -27,7 +27,8 @@ it: home: around_the_world: In tutto il mondo beyond_that: E oltre quello? - fab_labs_description: I Fab Lab forniscono un accesso diffuso a moderni strumenti + fab_labs_description: | + I Fab Lab forniscono un accesso diffuso a moderni strumenti di invenzione. Sono iniziati come un progetto di estensione del Center for Bits and Atoms (CBA) presso il MIT, e sono diventati una rete collaborativa e globale. Puoi trovare maggior informazioni sui Fab Lab sul sito della %{fab_foundation}. diff --git a/config/locales/nl.yml b/config/locales/nl.yml index d7325cbf5..f791313dc 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -27,7 +27,8 @@ nl: home: around_the_world: 'WereldWijd ' beyond_that: En verder? - fab_labs_description: Fablabs verlenen een wijdverspreide toegang tot moderne + fab_labs_description: | + Fablabs verlenen een wijdverspreide toegang tot moderne technieken voor uitvindingen. Het begon als een ''outreach project'' van MIT''s Center for Bits and Atoms en werd al snel een collaboratief globaal netwerk. Je kan meer informatie vinden op de website van %{fab_foundation}. De onderstaande diff --git a/config/locales/pt.yml b/config/locales/pt.yml index f8098b5ee..8f71ffe90 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -27,10 +27,11 @@ pt: home: around_the_world: Ao redor do mundo beyond_that: E além disso? - fab_labs_description: Fab Labs fornecem um acesso amplo aos meios modernos de + fab_labs_description: | + Fab Labs fornecem um acesso amplo aos meios modernos de invenção. Eles começaram como um projeto de extensão do Center for Bits and Atoms (CBA) do MIT, e se tornaram uma rede colaborativa e global. Você pode - encontrar mais informações sobre Fab Labs no site % {fab_foundation}. A foto + encontrar mais informações sobre Fab Labs no site %{fab_foundation}. A foto abaixo ilustra as instalações de um Fab Lab típico. features: activity_feeds: Feed de Atividades diff --git a/config/puma.rb b/config/puma.rb index 03c166f4c..38c4b8659 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1,13 +1,18 @@ # This configuration file will be evaluated by Puma. The top-level methods that # are invoked here are part of Puma's configuration DSL. For more information # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. - +# # Puma starts a configurable number of processes (workers) and each process # serves each request in a thread from an internal thread pool. # +# You can control the number of workers using ENV["WEB_CONCURRENCY"]. You +# should only set this value when you want to run 2 or more workers. The +# default is already 1. You can set it to `auto` to automatically start a worker +# for each available processor. +# # The ideal number of threads per worker depends both on how much time the # application spends waiting for IO operations and on how much you wish to -# to prioritize throughput over latency. +# prioritize throughput over latency. # # As a rule of thumb, increasing the number of threads will increase how much # traffic a given process can handle (throughput), but due to CRuby's @@ -29,6 +34,9 @@ # Allow puma to be restarted by `bin/rails restart` command. plugin :tmp_restart +# Run the Solid Queue supervisor inside of Puma for single-server deployments. +plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"] + # Specify the PID file. Defaults to tmp/pids/server.pid in development. # In other environments, only set the PID file if requested. pidfile ENV["PIDFILE"] if ENV["PIDFILE"] diff --git a/config/routes.rb b/config/routes.rb index 3344e27ed..cf97ebb6b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,6 +3,10 @@ require 'sidekiq/web' mount Sidekiq::Web, at: '/sidekiq', constraints: AdminConstraint.new + # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. + # Can be used by load balancers and uptime monitors to verify that the app is live. + get "up" => "rails/health#show", as: :rails_health_check + get "discourse/sso" get "discuss" => 'discourse#embed' diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 2c5d835fb..6053b61ef 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -19,16 +19,16 @@ services: context: . dockerfile: Dockerfile volumes: - - ./app:/fablabs/app - - ./config:/fablabs/config - - ./db:/fablabs/db - - ./lib:/fablabs/lib - - ./log:/fablabs/log - - ./public:/fablabs/public - - ./spec:/fablabs/spec - - ./Gemfile:/fablabs/Gemfile - - ./Gemfile.lock:/fablabs/Gemfile.lock - # - .:/fablabs + # - ./app:/fablabs/app + # - ./config:/fablabs/config + # - ./db:/fablabs/db + # - ./lib:/fablabs/lib + # - ./log:/fablabs/log + # - ./public:/fablabs/public + # - ./spec:/fablabs/spec + # - ./Gemfile:/fablabs/Gemfile + # - ./Gemfile.lock:/fablabs/Gemfile.lock + - .:/fablabs - app-tmp:/fablabs/tmp - bundle_path:/usr/local/bundle # environment: diff --git a/package.json b/package.json index edd498b31..20ca40beb 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,26 @@ "main": "index.js", "repository": "git@github.com:fablabbcn/fablabs.io.git", "license": "MIT", + "scripts": { + "build": "esbuild app/javascript/*.js --bundle --sourcemap --format=esm --outdir=app/assets/builds --public-path=/assets", + "build:css:activeadmin": "npx @tailwindcss/cli -i ./app/assets/stylesheets/active_admin.css -o ./app/assets/builds/active_admin.css --minify", + "build:css": "sass ./app/assets/stylesheets/application.css.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules --silence-deprecation=import,global-builtin,slash-div,color-functions,legacy-js-api" + }, "dependencies": { + "@activeadmin/activeadmin": "4.0.0-beta23", + "@nathanvda/cocoon": "^1.2.14", + "@rails/ujs": "^7.1.3-4", "bootstrap": "^4.4.1", + "flatpickr": "^4.6.13", + "geocomplete": "^1.7.0", "jquery": "~3.7.0", - "leaflet": "~1.0.3", - "leaflet-spin": "~1.1.0", + "popper.js": "^1.16.1", "select2": "~4.0.3" + }, + "devDependencies": { + "@tailwindcss/cli": "^4.0.0", + "esbuild": "^0.28.2", + "sass": "^1.105.1", + "tailwindcss": "^4.0.0" } } diff --git a/public/400.html b/public/400.html new file mode 100644 index 000000000..640de0339 --- /dev/null +++ b/public/400.html @@ -0,0 +1,135 @@ + + + + + + + The server cannot process the request due to a client error (400 Bad Request) + + + + + + + + + + + + + +
+
+ +
+
+

The server cannot process the request due to a client error. Please check the request and try again. If you're the application owner check the logs for more information.

+
+
+ + + + diff --git a/public/404.html b/public/404.html index 498a6ae3f..d7f0f1422 100644 --- a/public/404.html +++ b/public/404.html @@ -1,61 +1,135 @@ - - - - The page you were looking for doesn't exist (404) - - - - - -
- -
-
-

The page you were looking for doesn't exist.

-

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

-
-

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

- + + + + + + + The page you were looking for doesn't exist (404 Not found) + + + + + + + + + + + + + +
+
+ +
+
+

The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved. If you're the application owner check the logs for more information.

+
+
+ + + diff --git a/public/406-unsupported-browser.html b/public/406-unsupported-browser.html new file mode 100644 index 000000000..43d2811e8 --- /dev/null +++ b/public/406-unsupported-browser.html @@ -0,0 +1,135 @@ + + + + + + + Your browser is not supported (406 Not Acceptable) + + + + + + + + + + + + + +
+
+ +
+
+

Your browser is not supported.
Please upgrade your browser to continue.

+
+
+ + + + diff --git a/public/422.html b/public/422.html index 3b73a09ea..f12fb4aa1 100644 --- a/public/422.html +++ b/public/422.html @@ -1,61 +1,135 @@ - - - - The change you wanted was rejected (422) - - - - - -
- -
-
-

The change you wanted was rejected.

-

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

-
-

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

- + + + + + + + The change you wanted was rejected (422 Unprocessable Entity) + + + + + + + + + + + + + +
+
+ +
+
+

The change you wanted was rejected. Maybe you tried to change something you didn't have access to. If you're the application owner check the logs for more information.

+
+
+ + + diff --git a/public/500.html b/public/500.html index 4ce7591a3..e4eb18a75 100644 --- a/public/500.html +++ b/public/500.html @@ -1,65 +1,135 @@ - - - - We're sorry, but something went wrong (500) - - - - - -
- -
-
-

We're sorry, but something went wrong with the internal server.

-
-
-

Please contact a system adninistrator to report what happend and the time UTC, so we can help you along.

-
- + + + + + + + We're sorry, but something went wrong (500 Internal Server Error) + + + + + + + + + + + + + +
+
+ +
+
+

We're sorry, but something went wrong.
If you're the application owner check the logs for more information.

+
+
+ + + diff --git a/spec/controllers/oauth/applications_controller_spec.rb b/spec/controllers/oauth/applications_controller_spec.rb index 256f24619..766041023 100644 --- a/spec/controllers/oauth/applications_controller_spec.rb +++ b/spec/controllers/oauth/applications_controller_spec.rb @@ -40,7 +40,7 @@ status, headers, body = *response expect(response).to be_successful expect(response).to render_template(:index) - expect(response.body).to include("Your applications") + expect(response.body).to include("Your OAuth applications") expect(response.body).to include(app.name) end diff --git a/spec/i18n_spec.rb b/spec/i18n_spec.rb new file mode 100644 index 000000000..e154082e9 --- /dev/null +++ b/spec/i18n_spec.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +require "i18n/tasks" + +RSpec.describe I18n do + let(:i18n) { I18n::Tasks::BaseTask.new } + let(:missing_keys) { i18n.missing_keys } + let(:unused_keys) { i18n.unused_keys } + let(:inconsistent_interpolations) { i18n.inconsistent_interpolations } + + skip it "does not have missing keys" do + expect(missing_keys).to be_empty, + "Missing #{missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them" + end + + skip it "does not have unused keys" do + expect(unused_keys).to be_empty, + "#{unused_keys.leaves.count} unused i18n keys, run `i18n-tasks unused' to show them" + end + + it "files are normalized" do + non_normalized = i18n.non_normalized_paths + error_message = "The following files need to be normalized:\n" \ + "#{non_normalized.map { |path| " #{path}" }.join("\n")}\n" \ + "Please run `i18n-tasks normalize' to fix" + expect(non_normalized).to be_empty, error_message + end + + it "does not have inconsistent interpolations" do + error_message = "#{inconsistent_interpolations.leaves.count} i18n keys have inconsistent interpolations.\n" \ + "Run `i18n-tasks check-consistent-interpolations' to show them" + expect(inconsistent_interpolations).to be_empty, error_message + end +end diff --git a/tailwind-active_admin.config.js b/tailwind-active_admin.config.js new file mode 100644 index 000000000..55694b7a5 --- /dev/null +++ b/tailwind-active_admin.config.js @@ -0,0 +1,22 @@ +import { execSync } from 'child_process'; +import activeAdminPlugin from '@activeadmin/activeadmin/plugin'; + +// Always use the last line of output since Bundler's DEBUG env will print additional lines. +const activeAdminPath = execSync('bundle show activeadmin', { encoding: 'utf-8' }).trim().split(/\r?\n/).pop(); + +export default { + content: [ + `${activeAdminPath}/vendor/javascript/flowbite.js`, + `${activeAdminPath}/plugin.js`, + `${activeAdminPath}/app/views/**/*.{arb,erb,html,rb}`, + './app/admin/**/*.{arb,erb,html,rb}', + './app/views/active_admin/**/*.{arb,erb,html,rb}', + './app/views/admin/**/*.{arb,erb,html,rb}', + './app/views/layouts/active_admin*.{erb,html}', + './app/javascript/**/*.js' + ], + darkMode: "selector", + plugins: [ + activeAdminPlugin + ] +} diff --git a/vendor/assets/javascripts/Control.Loading.js b/vendor/assets/javascripts/Control.Loading.js deleted file mode 100644 index c33ff7e17..000000000 --- a/vendor/assets/javascripts/Control.Loading.js +++ /dev/null @@ -1,205 +0,0 @@ -/* - * L.Control.Loading is a control that shows a loading indicator when tiles are - * loading or when map-related AJAX requests are taking place. - */ -L.Control.Loading = L.Control.extend({ - options: { - position: 'topleft', - separate: false, - zoomControl: null - }, - - initialize: function(options) { - L.setOptions(this, options); - this._dataLoaders = {}; - - // Try to set the zoom control this control is attached to from the - // options - if (this.options.zoomControl !== null) { - this.zoomControl = this.options.zoomControl; - } - }, - - onAdd: function(map) { - this._addLayerListeners(map); - this._addMapListeners(map); - - // Try to set the zoom control this control is attached to from the map - // the control is being added to - if (!this.options.separate && !this.zoomControl) { - this.zoomControl = map.zoomControl; - } - - // Create the loading indicator - var classes = 'leaflet-control-loading'; - var container; - if (this.zoomControl && !this.options.separate) { - // If there is a zoom control, hook into the bottom of it - container = this.zoomControl._container; - // These classes are no longer used as of Leaflet 0.6 - classes += ' leaflet-bar-part-bottom leaflet-bar-part last'; - } - else { - // Otherwise, create a container for the indicator - container = L.DomUtil.create('div', 'leaflet-control-zoom leaflet-bar'); - } - this._indicator = L.DomUtil.create('a', classes, container); - return container; - }, - - onRemove: function(map) { - this._removeLayerListeners(map); - this._removeMapListeners(map); - }, - - removeFrom: function (map) { - if (this.zoomControl && !this.options.separate) { - // Override Control.removeFrom() to avoid clobbering the entire - // _container, which is the same as zoomControl's - this._container.removeChild(this._indicator); - this._map = null; - this.onRemove(map); - return this; - } - else { - // If this control is separate from the zoomControl, call the - // parent method so we don't leave behind an empty container - return L.Control.prototype.removeFrom.call(this, map); - } - }, - - addLoader: function(id) { - this._dataLoaders[id] = true; - this.updateIndicator(); - }, - - removeLoader: function(id) { - delete this._dataLoaders[id]; - this.updateIndicator(); - }, - - updateIndicator: function() { - if (this.isLoading()) { - this._showIndicator(); - } - else { - this._hideIndicator(); - } - }, - - isLoading: function() { - return this._countLoaders() > 0; - }, - - _countLoaders: function() { - var size = 0, key; - for (key in this._dataLoaders) { - if (this._dataLoaders.hasOwnProperty(key)) size++; - } - return size; - }, - - _showIndicator: function() { - // Show loading indicator - L.DomUtil.addClass(this._indicator, 'is-loading'); - - // If zoomControl exists, make the zoom-out button not last - if (this.zoomControl && !this.options.separate) { - L.DomUtil.removeClass(this.zoomControl._zoomOutButton, 'leaflet-bar-part-bottom'); - } - }, - - _hideIndicator: function() { - // Hide loading indicator - L.DomUtil.removeClass(this._indicator, 'is-loading'); - - // If zoomControl exists, make the zoom-out button last - if (this.zoomControl && !this.options.separate) { - L.DomUtil.addClass(this.zoomControl._zoomOutButton, 'leaflet-bar-part-bottom'); - } - }, - - _handleLoading: function(e) { - this.addLoader(this.getEventId(e)); - }, - - _handleLoad: function(e) { - this.removeLoader(this.getEventId(e)); - }, - - getEventId: function(e) { - if (e.id) { - return e.id; - } - else if (e.layer) { - return e.layer._leaflet_id; - } - return e.target._leaflet_id; - }, - - _layerAdd: function(e) { - if (!e.layer || !e.layer.on) return - e.layer.on({ - loading: this._handleLoading, - load: this._handleLoad - }, this); - }, - - _addLayerListeners: function(map) { - // Add listeners for begin and end of load to any layers already on the - // map - map.eachLayer(function(layer) { - if (!layer.on) return; - layer.on({ - loading: this._handleLoading, - load: this._handleLoad - }, this); - }, this); - - // When a layer is added to the map, add listeners for begin and end - // of load - map.on('layeradd', this._layerAdd, this); - }, - - _removeLayerListeners: function(map) { - // Remove listeners for begin and end of load from all layers - map.eachLayer(function(layer) { - if (!layer.off) return; - layer.off({ - loading: this._handleLoading, - load: this._handleLoad - }, this); - }, this); - - // Remove layeradd listener from map - map.off('layeradd', this._layerAdd, this); - }, - - _addMapListeners: function(map) { - // Add listeners to the map for (custom) dataloading and dataload - // events, eg, for AJAX calls that affect the map but will not be - // reflected in the above layer events. - map.on({ - dataloading: this._handleLoading, - dataload: this._handleLoad - }, this); - }, - - _removeMapListeners: function(map) { - map.off({ - dataloading: this._handleLoading, - dataload: this._handleLoad - }, this); - } -}); - -L.Map.addInitHook(function () { - if (this.options.loadingControl) { - this.loadingControl = new L.Control.Loading(); - this.addControl(this.loadingControl); - } -}); - -L.Control.loading = function(options) { - return new L.Control.Loading(options); -}; diff --git a/vendor/assets/javascripts/intlTelInput.js b/vendor/assets/javascripts/intlTelInput.js deleted file mode 100755 index 4f3026663..000000000 --- a/vendor/assets/javascripts/intlTelInput.js +++ /dev/null @@ -1,1519 +0,0 @@ -/* -intl-tel-input -version: 0.9.4 -description: A jQuery plugin for entering international telephone numbers -repository: https://github.com/Bluefieldscom/intl-tel-input.git -license: MIT -author: Jack O'Connor (http://jackocnr.com) -*/ -(function() { -"use strict"; - -(function($, window, document, undefined) { - var pluginName = "intlTelInput", id = 1, // give each instance it's own id for namespaced event handling - defaults = { - preferredCountries: [ "us", "gb" ], - // united states and united kingdom - initialDialCode: true, - americaMode: false, - onlyCountries: [], - defaultStyling: true - }; - function Plugin(element, options) { - this.element = element; - this.options = $.extend({}, defaults, options); - this._defaults = defaults; - this.id = id++; - this._name = pluginName; - this.init(); - } - Plugin.prototype = { - init: function() { - var that = this; - // process onlyCountries array and update intlData.countries - // and intlData.countryCodes accordingly - if (this.options.onlyCountries.length > 0) { - var newCountries = [], newCountryCodes = {}; - $.each(this.options.onlyCountries, function(i, countryCode) { - var countryData = that._getCountryData(countryCode); - if (countryData) { - newCountries.push(countryData); - var callingCode = countryData["calling-code"]; - if (newCountryCodes[callingCode]) { - newCountryCodes[callingCode].push(countryCode); - } else { - newCountryCodes[callingCode] = [ countryCode ]; - } - } - }); - // update the global data object - intlData.countries = newCountries; - intlData.countryCodes = newCountryCodes; - } - // process preferred countries - iterate through the preferences, - // finding the relevant data from the provided intlData.countries array - var preferredCountries = []; - $.each(this.options.preferredCountries, function(i, countryCode) { - var countryData = that._getCountryData(countryCode); - if (countryData) { - preferredCountries.push(countryData); - } - }); - this.defaultCountry = preferredCountries.length ? preferredCountries[0] : intlData.countries[0]; - // telephone input - this.telInput = $(this.element); - // if initialDialCode is enabled (and input is not pre-populated), insert the default dial code - // update: also check that the default country is not america, or if it is, that americaMode is false - if (this.options.initialDialCode && this.telInput.val() === "" && (this.defaultCountry.cca2 != "us" || !this.options.americaMode)) { - this.telInput.val("+" + this.defaultCountry["calling-code"] + " "); - } - // containers (mostly for positioning) - var mainClass = "intl-tel-input"; - if (this.options.defaultStyling) { - mainClass += " pretty"; - } - this.telInput.wrap($("
", { - "class": mainClass - })); - var flagsContainer = $("
", { - "class": "flag-dropdown f16" - }).insertBefore(this.telInput); - // currently selected flag (displayed to left of input) - var selectedFlag = $("
", { - "class": "selected-flag" - }).appendTo(flagsContainer); - // here we default to the first country in the list - var firstCountry = this.defaultCountry.cca2; - this.selectedFlagInner = $("
", { - "class": "flag " + firstCountry - }).appendTo(selectedFlag); - // CSS triangle - $("
", { - "class": "down-arrow" - }).appendTo(this.selectedFlagInner); - // country list contains: preferred countries, then divider, then all countries - this.countryList = $("
    ", { - "class": "country-list hide" - }).appendTo(flagsContainer); - if (preferredCountries.length) { - this._appendListItems(preferredCountries, "preferred"); - $("
  • ", { - "class": "divider" - }).appendTo(this.countryList); - } - this._appendListItems(intlData.countries, ""); - this.countryListItems = this.countryList.children(".country"); - // auto select the top one - this.countryListItems.first().addClass("active"); - // update flag on keyup - // (by extracting the dial code from the input value) - this.telInput.keyup(function() { - var countryCode, alreadySelected = false; - // try and extract valid dial code from input - var dialCode = that._getDialCode(that.telInput.val()); - if (dialCode) { - // check if one of the matching country's is already selected - var countryCodes = intlData.countryCodes[dialCode]; - $.each(countryCodes, function(i, c) { - if (that.selectedFlagInner.hasClass(c)) { - alreadySelected = true; - } - }); - countryCode = countryCodes[0]; - } else { - countryCode = that.defaultCountry.cca2; - } - if (!alreadySelected) { - that._selectFlag(countryCode); - } - }); - // trigger it now in case there is already a number in the input - this.telInput.keyup(); - // toggle country dropdown on click - selectedFlag.click(function(e) { - // toggle dropdown - if (that.countryList.hasClass("hide")) { - // update highlighting and scroll to active list item - that.countryListItems.removeClass("highlight"); - var activeListItem = that.countryList.children(".active").addClass("highlight"); - // show it - that.countryList.removeClass("hide"); - that._scrollTo(activeListItem); - // click off to close - // (except when this initial opening click is bubbling up) - var isOpening = true; - $("html").bind("click.intlTelInput" + that.id, function(e) { - if (!isOpening) { - that._closeDropdown(); - } - isOpening = false; - }); - // listen for typing - $(document).bind("keydown.intlTelInput" + that.id, function(e) { - // up (38) and down (40) to navigate - if (e.which == 38 || e.which == 40) { - var current = that.countryList.children(".highlight").first(); - var next = e.which == 38 ? current.prev() : current.next(); - if (next) { - // skip the divider - if (next.hasClass("divider")) { - next = e.which == 38 ? next.prev() : next.next(); - } - that.countryListItems.removeClass("highlight"); - next.addClass("highlight"); - that._scrollTo(next); - } - } else if (e.which == 13) { - var currentCountry = that.countryList.children(".highlight").first(); - if (currentCountry.length) { - that._selectListItem(currentCountry); - } - } else if (e.which == 9 || e.which == 27) { - that._closeDropdown(); - } else if (e.which >= 97 && e.which <= 122 || e.which >= 65 && e.which <= 90) { - var letter = String.fromCharCode(e.which); - // filter out the countries beginning with that letter - var countries = that.countryListItems.filter(function() { - return $(this).text().charAt(0) == letter && !$(this).hasClass("preferred"); - }); - if (countries.length) { - // if one is already highlighted, then we want the next one - var highlightedCountry = countries.filter(".highlight").first(); - var listItem; - // if the next country in the list also starts with that letter - if (highlightedCountry && highlightedCountry.next() && highlightedCountry.next().text().charAt(0) == letter) { - listItem = highlightedCountry.next(); - } else { - listItem = countries.first(); - } - // update highlighting and scroll - that.countryListItems.removeClass("highlight"); - listItem.addClass("highlight"); - that._scrollTo(listItem); - } - } - }); - } - }); - // when mouse over a list item, remove any highlighting from any other items - this.countryListItems.mouseover(function() { - that.countryListItems.removeClass("highlight"); - $(this).addClass("highlight"); - }); - // listen for country selection - this.countryListItems.click(function(e) { - var listItem = $(e.currentTarget); - that._selectListItem(listItem); - }); - }, - // end of init() - /******************** - * PRIVATE METHODS - ********************/ - // find the country data for the given country code - _getCountryData: function(countryCode) { - for (var i = 0; i < intlData.countries.length; i++) { - if (intlData.countries[i].cca2 == countryCode) { - return intlData.countries[i]; - } - } - }, - // update the selected flag and the active list item - _selectFlag: function(countryCode) { - this.selectedFlagInner.attr("class", "flag " + countryCode); - // and the active list item - this.countryListItems.removeClass("active"); - var listItem = this.countryListItems.children(".flag." + countryCode).parent(); - listItem.addClass("active"); - return listItem; - }, - // called when the user selects a list item from the dropdown - _selectListItem: function(listItem) { - var countryCode = listItem.attr("data-country-code"); - // update selected flag - this.selectedFlagInner.attr("class", "flag " + countryCode); - // update input value - var newNumber = this._updateNumber(this.telInput.val(), listItem.attr("data-dial-code")); - this.telInput.val(newNumber); - // focus the input - this.telInput.focus(); - // mark the list item as active (incase they open the dropdown again) - this.countryListItems.removeClass("active highlight"); - listItem.addClass("active"); - }, - // close the dropdown and unbind any listeners - _closeDropdown: function() { - this.countryList.addClass("hide"); - $(document).unbind("keydown.intlTelInput" + this.id); - $("html").unbind("click.intlTelInput" + this.id); - }, - // check if an element is visible within it's container, else scroll until it is - _scrollTo: function(element) { - var container = this.countryList; - var containerHeight = container.height(); - var containerTop = container.offset().top; - var containerBottom = containerTop + containerHeight; - var elementHeight = element.outerHeight(); - var elementTop = element.offset().top; - var elementBottom = elementTop + elementHeight; - var newScrollTop = elementTop - containerTop + container.scrollTop(); - if (elementTop < containerTop) { - // scroll up - container.scrollTop(newScrollTop); - } else if (elementBottom > containerBottom) { - // scroll down - var heightDifference = containerHeight - elementHeight; - container.scrollTop(newScrollTop - heightDifference); - } - }, - // replace any existing dial code with the new one - _updateNumber: function(inputVal, dialCode) { - var prevDialCode = "+" + this._getDialCode(inputVal); - var newDialCode = "+" + dialCode; - var newNumber; - // if the previous number contained a valid dial code, replace it - // (if more than just a plus character) - if (prevDialCode.length > 1) { - newNumber = inputVal.replace(prevDialCode, newDialCode); - // if the old number was just the dial code, - // then we will need to add the space again - if (inputVal == prevDialCode) { - newNumber += " "; - } - } else if (inputVal.length && inputVal.substr(0, 1) != "+") { - // previous number didn't contain a dial code, so persist it - newNumber = newDialCode + " " + inputVal.trim(); - } else { - // previous number contained an invalid dial code, so wipe it - newNumber = newDialCode + " "; - } - // if americaMode is enabled, we dont display the dial code for american numbers - if (this.options.americaMode && newNumber.substring(0, 3) == "+1 ") { - newNumber = newNumber.substring(3); - } - return newNumber; - }, - // try and extract a valid international dial code from a full telephone number - _getDialCode: function(inputVal) { - var firstPart = inputVal.trim().split(" ")[0]; - // only interested in international numbers (starting with a plus) - if (firstPart.substring(0, 1) == "+") { - // strip out non-numeric chars (e.g. pluses, spaces, brackets) - // and grab the first 4 numbers (max length of a dial code is 4) - var dialCode = firstPart.replace(/\D/g, "").substring(0, 4); - // try first 4 digits, then 3, then 2, then 1... - for (var i = dialCode.length; i > 0; i--) { - dialCode = dialCode.substring(0, i); - // if we find a match (a valid dial code), then return the dial code - if (intlData.countryCodes[dialCode]) { - return dialCode; - } - } - } - return ""; - }, - // add a country
  • to the countryList
      container - _appendListItems: function(countries, className) { - // we create so many DOM elements, I decided it was faster to build a temp string - // and then add everything to the DOM in one go at the end - var tmp = ""; - // for each country - $.each(countries, function(i, c) { - // open the list item - tmp += "
    • "; - // add the flag - tmp += "
      "; - // and the country name and dial code - tmp += "" + c.name + ""; - tmp += "+" + c["calling-code"] + ""; - // close the list item - tmp += "
    • "; - }); - this.countryList.append(tmp); - }, - /******************** - * PUBLIC METHODS - ********************/ - // update the selected flag, and insert the dial code - selectCountry: function(countryCode) { - // check if already selected - if (!this.selectedFlagInner.hasClass(countryCode)) { - var listItem = this._selectFlag(countryCode); - var dialCode = listItem.attr("data-dial-code"); - this.telInput.val("+" + dialCode + " "); - } - }, - // get the country data object - getCountryData: function() { - return intlData; - }, - // set the country data object - setCountryData: function(obj) { - intlData = obj; - } - }; - // adapted to allow public functions - // using https://github.com/jquery-boilerplate/jquery-boilerplate/wiki/Extending-jQuery-Boilerplate - $.fn[pluginName] = function(options) { - var args = arguments; - // Is the first parameter an object (options), or was omitted, - // instantiate a new instance of the plugin. - if (options === undefined || typeof options === "object") { - return this.each(function() { - if (!$.data(this, "plugin_" + pluginName)) { - $.data(this, "plugin_" + pluginName, new Plugin(this, options)); - } - }); - } else if (typeof options === "string" && options[0] !== "_" && options !== "init") { - // Cache the method call to make it possible to return a value - var returns; - this.each(function() { - var instance = $.data(this, "plugin_" + pluginName); - // Tests that there's already a plugin-instance - // and checks that the requested public method exists - if (instance instanceof Plugin && typeof instance[options] === "function") { - // Call the method of our plugin instance, - // and pass it the supplied arguments. - returns = instance[options].apply(instance, Array.prototype.slice.call(args, 1)); - } - }); - // If the earlier cached method gives a value back return the value, - // otherwise return this to preserve chainability. - return returns !== undefined ? returns : this; - } - }; -})(jQuery, window, document); - -// Tell JSHint to ignore this warning: "character may get silently deleted by one or more browsers" -// jshint -W100 -// Namespaced to prevent clashes -var intlData = { - // Array of country objects for the flag dropdown. - // Each contains a name, country code (ISO 3166-1 alpha-2) and dial code. - // Originally from https://github.com/mledoze/countries - // then stripped down by copying the JSON into Chrome dev tools and manipulating it - // and then using JSON.stringify to print it out as a string again and copy it here. - // Also commented some countries which we dont yet have flags for. - countries: [ { - name: "Afghanistan (افغانستان‎)", - cca2: "af", - "calling-code": "93" - }, { - name: "Albania (Shqipëria)", - cca2: "al", - "calling-code": "355" - }, { - name: "Algeria (الجزائر‎)", - cca2: "dz", - "calling-code": "213" - }, { - name: "American Samoa", - cca2: "as", - "calling-code": "1684" - }, { - name: "Andorra", - cca2: "ad", - "calling-code": "376" - }, { - name: "Angola", - cca2: "ao", - "calling-code": "244" - }, { - name: "Anguilla", - cca2: "ai", - "calling-code": "1264" - }, { - name: "Antigua and Barbuda", - cca2: "ag", - "calling-code": "1268" - }, { - name: "Argentina", - cca2: "ar", - "calling-code": "54" - }, { - name: "Armenia (Հայաստան)", - cca2: "am", - "calling-code": "374" - }, { - name: "Aruba", - cca2: "aw", - "calling-code": "297" - }, { - name: "Australia", - cca2: "au", - "calling-code": "61" - }, { - name: "Austria (Österreich)", - cca2: "at", - "calling-code": "43" - }, { - name: "Azerbaijan (Azərbaycan)", - cca2: "az", - "calling-code": "994" - }, { - name: "Bahamas", - cca2: "bs", - "calling-code": "1242" - }, { - name: "Bahrain (البحرين‎)", - cca2: "bh", - "calling-code": "973" - }, { - name: "Bangladesh (বাংলাদেশ)", - cca2: "bd", - "calling-code": "880" - }, { - name: "Barbados", - cca2: "bb", - "calling-code": "1246" - }, { - name: "Belarus (Беларусь)", - cca2: "by", - "calling-code": "375" - }, { - name: "Belgium (België)", - cca2: "be", - "calling-code": "32" - }, { - name: "Belize", - cca2: "bz", - "calling-code": "501" - }, { - name: "Benin (Bénin)", - cca2: "bj", - "calling-code": "229" - }, { - name: "Bermuda", - cca2: "bm", - "calling-code": "1441" - }, { - name: "Bhutan (འབྲུག)", - cca2: "bt", - "calling-code": "975" - }, { - name: "Bolivia", - cca2: "bo", - "calling-code": "591" - }, { - name: "Bosnia and Herzegovina (Босна и Херцеговина)", - cca2: "ba", - "calling-code": "387" - }, { - name: "Botswana", - cca2: "bw", - "calling-code": "267" - }, { - name: "Brazil (Brasil)", - cca2: "br", - "calling-code": "55" - }, { - name: "Brunei", - cca2: "bn", - "calling-code": "673" - }, { - name: "Bulgaria (България)", - cca2: "bg", - "calling-code": "359" - }, { - name: "Burkina Faso", - cca2: "bf", - "calling-code": "226" - }, { - name: "Burundi (Uburundi)", - cca2: "bi", - "calling-code": "257" - }, { - name: "Cambodia (កម្ពុជា)", - cca2: "kh", - "calling-code": "855" - }, { - name: "Cameroon (Cameroun)", - cca2: "cm", - "calling-code": "237" - }, { - name: "Canada", - cca2: "ca", - "calling-code": "1" - }, { - name: "Cape Verde (Kabu Verdi)", - cca2: "cv", - "calling-code": "238" - }, { - name: "Cayman Islands", - cca2: "ky", - "calling-code": "1345" - }, { - name: "Central African Republic (République centrafricaine)", - cca2: "cf", - "calling-code": "236" - }, { - name: "Chad (Tchad)", - cca2: "td", - "calling-code": "235" - }, { - name: "Chile", - cca2: "cl", - "calling-code": "56" - }, { - name: "China (中国)", - cca2: "cn", - "calling-code": "86" - }, { - name: "Colombia", - cca2: "co", - "calling-code": "57" - }, { - name: "Comoros (جزر القمر‎)", - cca2: "km", - "calling-code": "269" - }, { - name: "Congo [DRC] (Jamhuri ya Kidemokrasia ya Kongo)", - cca2: "cd", - "calling-code": "243" - }, { - name: "Congo [Republic] (Congo-Brazzaville)", - cca2: "cg", - "calling-code": "242" - }, { - name: "Cook Islands", - cca2: "ck", - "calling-code": "682" - }, { - name: "Costa Rica", - cca2: "cr", - "calling-code": "506" - }, { - name: "Côte d’Ivoire", - cca2: "ci", - "calling-code": "225" - }, { - name: "Croatia (Hrvatska)", - cca2: "hr", - "calling-code": "385" - }, { - name: "Cuba", - cca2: "cu", - "calling-code": "53" - }, { - name: "Cyprus (Κύπρος)", - cca2: "cy", - "calling-code": "357" - }, { - name: "Czech Republic (Česká republika)", - cca2: "cz", - "calling-code": "420" - }, { - name: "Denmark (Danmark)", - cca2: "dk", - "calling-code": "45" - }, { - name: "Djibouti", - cca2: "dj", - "calling-code": "253" - }, { - name: "Dominica", - cca2: "dm", - "calling-code": "1767" - }, { - name: "Dominican Republic (República Dominicana)", - cca2: "do", - "calling-code": "1809" - }, { - name: "Ecuador", - cca2: "ec", - "calling-code": "593" - }, { - name: "Egypt (مصر‎)", - cca2: "eg", - "calling-code": "20" - }, { - name: "El Salvador", - cca2: "sv", - "calling-code": "503" - }, { - name: "Equatorial Guinea (Guinea Ecuatorial)", - cca2: "gq", - "calling-code": "240" - }, { - name: "Eritrea", - cca2: "er", - "calling-code": "291" - }, { - name: "Estonia (Eesti)", - cca2: "ee", - "calling-code": "372" - }, { - name: "Ethiopia", - cca2: "et", - "calling-code": "251" - }, { - name: "Faroe Islands (Føroyar)", - cca2: "fo", - "calling-code": "298" - }, { - name: "Fiji", - cca2: "fj", - "calling-code": "679" - }, { - name: "Finland (Suomi)", - cca2: "fi", - "calling-code": "358" - }, { - name: "France", - cca2: "fr", - "calling-code": "33" - }, { - name: "French Polynesia (Polynésie française)", - cca2: "pf", - "calling-code": "689" - }, { - name: "Gabon", - cca2: "ga", - "calling-code": "241" - }, { - name: "Gambia", - cca2: "gm", - "calling-code": "220" - }, { - name: "Georgia (საქართველო)", - cca2: "ge", - "calling-code": "995" - }, { - name: "Germany (Deutschland)", - cca2: "de", - "calling-code": "49" - }, { - name: "Ghana (Gaana)", - cca2: "gh", - "calling-code": "233" - }, { - name: "Gibraltar", - cca2: "gi", - "calling-code": "350" - }, { - name: "Greece (Ελλάδα)", - cca2: "gr", - "calling-code": "30" - }, { - name: "Greenland (Kalaallit Nunaat)", - cca2: "gl", - "calling-code": "299" - }, { - name: "Grenada", - cca2: "gd", - "calling-code": "1473" - }, { - name: "Guadeloupe", - cca2: "gp", - "calling-code": "590" - }, { - name: "Guam", - cca2: "gu", - "calling-code": "1671" - }, { - name: "Guatemala", - cca2: "gt", - "calling-code": "502" - }, { - name: "Guernsey", - cca2: "gg", - "calling-code": "44" - }, { - name: "Guinea (Guinée)", - cca2: "gn", - "calling-code": "224" - }, { - name: "Guinea-Bissau (Guiné Bissau)", - cca2: "gw", - "calling-code": "245" - }, { - name: "Guyana", - cca2: "gy", - "calling-code": "592" - }, { - name: "Haiti", - cca2: "ht", - "calling-code": "509" - }, { - name: "Honduras", - cca2: "hn", - "calling-code": "504" - }, { - name: "Hong Kong (香港)", - cca2: "hk", - "calling-code": "852" - }, { - name: "Hungary (Magyarország)", - cca2: "hu", - "calling-code": "36" - }, { - name: "Iceland (Ísland)", - cca2: "is", - "calling-code": "354" - }, { - name: "India (भारत)", - cca2: "in", - "calling-code": "91" - }, { - name: "Indonesia", - cca2: "id", - "calling-code": "62" - }, { - name: "Iran (ایران‎)", - cca2: "ir", - "calling-code": "98" - }, { - name: "Iraq (العراق‎)", - cca2: "iq", - "calling-code": "964" - }, { - name: "Ireland", - cca2: "ie", - "calling-code": "353" - }, { - name: "Isle of Man", - cca2: "im", - "calling-code": "44" - }, { - name: "Israel (ישראל‎)", - cca2: "il", - "calling-code": "972" - }, { - name: "Italy (Italia)", - cca2: "it", - "calling-code": "39" - }, { - name: "Jamaica", - cca2: "jm", - "calling-code": "1876" - }, { - name: "Japan (日本)", - cca2: "jp", - "calling-code": "81" - }, { - name: "Jersey", - cca2: "je", - "calling-code": "44" - }, { - name: "Jordan (الأردن‎)", - cca2: "jo", - "calling-code": "962" - }, { - name: "Kazakhstan (Казахстан)", - cca2: "kz", - "calling-code": "7" - }, { - name: "Kenya", - cca2: "ke", - "calling-code": "254" - }, { - name: "Kiribati", - cca2: "ki", - "calling-code": "686" - }, { - name: "Kuwait (الكويت‎)", - cca2: "kw", - "calling-code": "965" - }, { - name: "Kyrgyzstan", - cca2: "kg", - "calling-code": "996" - }, { - name: "Laos (ສ.ປ.ປ ລາວ)", - cca2: "la", - "calling-code": "856" - }, { - name: "Latvia (Latvija)", - cca2: "lv", - "calling-code": "371" - }, { - name: "Lebanon (لبنان‎)", - cca2: "lb", - "calling-code": "961" - }, { - name: "Lesotho", - cca2: "ls", - "calling-code": "266" - }, { - name: "Liberia", - cca2: "lr", - "calling-code": "231" - }, { - name: "Libya (ليبيا‎)", - cca2: "ly", - "calling-code": "218" - }, { - name: "Liechtenstein", - cca2: "li", - "calling-code": "423" - }, { - name: "Lithuania (Lietuva)", - cca2: "lt", - "calling-code": "370" - }, { - name: "Luxembourg", - cca2: "lu", - "calling-code": "352" - }, { - name: "Macau (澳門)", - cca2: "mo", - "calling-code": "853" - }, { - name: "Macedonia [FYROM] (Македонија)", - cca2: "mk", - "calling-code": "389" - }, { - name: "Madagascar (Madagasikara)", - cca2: "mg", - "calling-code": "261" - }, { - name: "Malawi", - cca2: "mw", - "calling-code": "265" - }, { - name: "Malaysia", - cca2: "my", - "calling-code": "60" - }, { - name: "Maldives", - cca2: "mv", - "calling-code": "960" - }, { - name: "Mali", - cca2: "ml", - "calling-code": "223" - }, { - name: "Malta", - cca2: "mt", - "calling-code": "356" - }, { - name: "Marshall Islands", - cca2: "mh", - "calling-code": "692" - }, { - name: "Martinique", - cca2: "mq", - "calling-code": "596" - }, { - name: "Mauritania (موريتانيا‎)", - cca2: "mr", - "calling-code": "222" - }, { - name: "Mauritius (Moris)", - cca2: "mu", - "calling-code": "230" - }, { - name: "Mexico (México)", - cca2: "mx", - "calling-code": "52" - }, { - name: "Micronesia", - cca2: "fm", - "calling-code": "691" - }, { - name: "Moldova (Republica Moldova)", - cca2: "md", - "calling-code": "373" - }, { - name: "Monaco", - cca2: "mc", - "calling-code": "377" - }, { - name: "Mongolia (Монгол)", - cca2: "mn", - "calling-code": "976" - }, { - name: "Montenegro (Crna Gora)", - cca2: "me", - "calling-code": "382" - }, { - name: "Montserrat", - cca2: "ms", - "calling-code": "1664" - }, { - name: "Morocco (المغرب‎)", - cca2: "ma", - "calling-code": "212" - }, { - name: "Mozambique (Moçambique)", - cca2: "mz", - "calling-code": "258" - }, { - name: "Myanmar [Burma] (မြန်မာ)", - cca2: "mm", - "calling-code": "95" - }, { - name: "Namibia", - cca2: "na", - "calling-code": "264" - }, { - name: "Nauru", - cca2: "nr", - "calling-code": "674" - }, { - name: "Nepal (नेपाल)", - cca2: "np", - "calling-code": "977" - }, { - name: "Netherlands (Nederland)", - cca2: "nl", - "calling-code": "31" - }, { - name: "New Caledonia (Nouvelle-Calédonie)", - cca2: "nc", - "calling-code": "687" - }, { - name: "New Zealand", - cca2: "nz", - "calling-code": "64" - }, { - name: "Nicaragua", - cca2: "ni", - "calling-code": "505" - }, { - name: "Niger (Nijar)", - cca2: "ne", - "calling-code": "227" - }, { - name: "Nigeria", - cca2: "ng", - "calling-code": "234" - }, { - name: "North Korea (조선 민주주의 인민 공화국)", - cca2: "kp", - "calling-code": "850" - }, { - name: "Norway (Norge)", - cca2: "no", - "calling-code": "47" - }, { - name: "Oman (عُمان‎)", - cca2: "om", - "calling-code": "968" - }, { - name: "Pakistan (پاکستان‎)", - cca2: "pk", - "calling-code": "92" - }, { - name: "Palau", - cca2: "pw", - "calling-code": "680" - }, { - name: "Palestine (فلسطين‎)", - cca2: "ps", - "calling-code": "970" - }, { - name: "Panama (Panamá)", - cca2: "pa", - "calling-code": "507" - }, { - name: "Papua New Guinea", - cca2: "pg", - "calling-code": "675" - }, { - name: "Paraguay", - cca2: "py", - "calling-code": "595" - }, { - name: "Peru (Perú)", - cca2: "pe", - "calling-code": "51" - }, { - name: "Philippines", - cca2: "ph", - "calling-code": "63" - }, { - name: "Poland (Polska)", - cca2: "pl", - "calling-code": "48" - }, { - name: "Portugal", - cca2: "pt", - "calling-code": "351" - }, { - name: "Puerto Rico", - cca2: "pr", - "calling-code": "1787" - }, { - name: "Qatar (قطر‎)", - cca2: "qa", - "calling-code": "974" - }, { - name: "Réunion", - cca2: "re", - "calling-code": "262" - }, { - name: "Romania (România)", - cca2: "ro", - "calling-code": "40" - }, { - name: "Russia (Россия)", - cca2: "ru", - "calling-code": "7" - }, { - name: "Rwanda", - cca2: "rw", - "calling-code": "250" - }, { - name: "Saint Kitts and Nevis", - cca2: "kn", - "calling-code": "1869" - }, { - name: "Saint Lucia", - cca2: "lc", - "calling-code": "1758" - }, { - name: "Saint Vincent and the Grenadines", - cca2: "vc", - "calling-code": "1784" - }, { - name: "Samoa", - cca2: "ws", - "calling-code": "685" - }, { - name: "San Marino", - cca2: "sm", - "calling-code": "378" - }, { - name: "São Tomé and Príncipe (São Tomé e Príncipe)", - cca2: "st", - "calling-code": "239" - }, { - name: "Saudi Arabia (المملكة العربية السعودية‎)", - cca2: "sa", - "calling-code": "966" - }, { - name: "Senegal (Sénégal)", - cca2: "sn", - "calling-code": "221" - }, { - name: "Serbia (Србија)", - cca2: "rs", - "calling-code": "381" - }, { - name: "Seychelles", - cca2: "sc", - "calling-code": "248" - }, { - name: "Sierra Leone", - cca2: "sl", - "calling-code": "232" - }, { - name: "Singapore", - cca2: "sg", - "calling-code": "65" - }, { - name: "Slovakia (Slovensko)", - cca2: "sk", - "calling-code": "421" - }, { - name: "Slovenia (Slovenija)", - cca2: "si", - "calling-code": "386" - }, { - name: "Solomon Islands", - cca2: "sb", - "calling-code": "677" - }, { - name: "Somalia (Soomaaliya)", - cca2: "so", - "calling-code": "252" - }, { - name: "South Africa", - cca2: "za", - "calling-code": "27" - }, { - name: "South Korea (대한민국)", - cca2: "kr", - "calling-code": "82" - }, { - name: "Spain (España)", - cca2: "es", - "calling-code": "34" - }, { - name: "Sri Lanka (ශ්‍රී ලංකාව)", - cca2: "lk", - "calling-code": "94" - }, { - name: "Sudan (السودان‎)", - cca2: "sd", - "calling-code": "249" - }, { - name: "Suriname", - cca2: "sr", - "calling-code": "597" - }, { - name: "Swaziland", - cca2: "sz", - "calling-code": "268" - }, { - name: "Sweden (Sverige)", - cca2: "se", - "calling-code": "46" - }, { - name: "Switzerland (Schweiz)", - cca2: "ch", - "calling-code": "41" - }, { - name: "Syria (سوريا‎)", - cca2: "sy", - "calling-code": "963" - }, { - name: "Taiwan (台灣)", - cca2: "tw", - "calling-code": "886" - }, { - name: "Tajikistan", - cca2: "tj", - "calling-code": "992" - }, { - name: "Tanzania", - cca2: "tz", - "calling-code": "255" - }, { - name: "Thailand (ไทย)", - cca2: "th", - "calling-code": "66" - }, { - name: "Timor-Leste", - cca2: "tl", - "calling-code": "670" - }, { - name: "Togo", - cca2: "tg", - "calling-code": "228" - }, { - name: "Tonga", - cca2: "to", - "calling-code": "676" - }, { - name: "Trinidad and Tobago", - cca2: "tt", - "calling-code": "1868" - }, { - name: "Tunisia (تونس‎)", - cca2: "tn", - "calling-code": "216" - }, { - name: "Turkey (Türkiye)", - cca2: "tr", - "calling-code": "90" - }, { - name: "Turkmenistan", - cca2: "tm", - "calling-code": "993" - }, { - name: "Turks and Caicos Islands", - cca2: "tc", - "calling-code": "1649" - }, { - name: "Tuvalu", - cca2: "tv", - "calling-code": "688" - }, { - name: "Uganda", - cca2: "ug", - "calling-code": "256" - }, { - name: "Ukraine (Україна)", - cca2: "ua", - "calling-code": "380" - }, { - name: "United Arab Emirates (الإمارات العربية المتحدة‎)", - cca2: "ae", - "calling-code": "971" - }, { - name: "United Kingdom", - cca2: "gb", - "calling-code": "44" - }, { - name: "United States", - cca2: "us", - "calling-code": "1" - }, { - name: "Uruguay", - cca2: "uy", - "calling-code": "598" - }, { - name: "Uzbekistan (Ўзбекистон)", - cca2: "uz", - "calling-code": "998" - }, { - name: "Vanuatu", - cca2: "vu", - "calling-code": "678" - }, { - name: "Vatican City (Città del Vaticano)", - cca2: "va", - "calling-code": "379" - }, { - name: "Venezuela", - cca2: "ve", - "calling-code": "58" - }, { - name: "Vietnam (Việt Nam)", - cca2: "vn", - "calling-code": "84" - }, { - name: "British Virgin Islands", - cca2: "vg", - "calling-code": "1284" - }, { - name: "U.S. Virgin Islands", - cca2: "vi", - "calling-code": "1340" - }, { - name: "Western Sahara (الصحراء الغربية‎)", - cca2: "eh", - "calling-code": "212" - }, { - name: "Yemen (اليمن‎)", - cca2: "ye", - "calling-code": "967" - }, { - name: "Zambia", - cca2: "zm", - "calling-code": "260" - }, { - name: "Zimbabwe", - cca2: "zw", - "calling-code": "263" - } ], - // JavaScript object mapping dial code to country code. - // This is used when the user enters a number, - // to quickly look up the corresponding country code. - // Originally from http://libphonenumber.googlecode.com/svn/trunk/javascript/i18n/phonenumbers/metadata.js - // then I commented some weird 001 entries and added some 4-digit country-code - // items at the end e.g. 1246 for Barbados - countryCodes: { - "1": [ "us", "ca" ], - "7": [ "ru", "kz" ], - "20": [ "eg" ], - "27": [ "za" ], - "30": [ "gr" ], - "31": [ "nl" ], - "32": [ "be" ], - "33": [ "fr" ], - "34": [ "es" ], - "36": [ "hu" ], - "39": [ "it" ], - "40": [ "ro" ], - "41": [ "ch" ], - "43": [ "at" ], - "44": [ "gb", "gg", "im", "je" ], - "45": [ "dk" ], - "46": [ "se" ], - "47": [ "no", "sj" ], - "48": [ "pl" ], - "49": [ "de" ], - "51": [ "pe" ], - "52": [ "mx" ], - "53": [ "cu" ], - "54": [ "ar" ], - "55": [ "br" ], - "56": [ "cl" ], - "57": [ "co" ], - "58": [ "ve" ], - "60": [ "my" ], - "61": [ "au", "cc", "cx" ], - "62": [ "id" ], - "63": [ "ph" ], - "64": [ "nz" ], - "65": [ "sg" ], - "66": [ "th" ], - "81": [ "jp" ], - "82": [ "kr" ], - "84": [ "vn" ], - "86": [ "cn" ], - "90": [ "tr" ], - "91": [ "in" ], - "92": [ "pk" ], - "93": [ "af" ], - "94": [ "lk" ], - "95": [ "mm" ], - "98": [ "ir" ], - "211": [ "ss" ], - "212": [ "ma", "eh" ], - "213": [ "dz" ], - "216": [ "tn" ], - "218": [ "ly" ], - "220": [ "gm" ], - "221": [ "sn" ], - "222": [ "mr" ], - "223": [ "ml" ], - "224": [ "gn" ], - "225": [ "ci" ], - "226": [ "bf" ], - "227": [ "ne" ], - "228": [ "tg" ], - "229": [ "bj" ], - "230": [ "mu" ], - "231": [ "lr" ], - "232": [ "sl" ], - "233": [ "gh" ], - "234": [ "ng" ], - "235": [ "td" ], - "236": [ "cf" ], - "237": [ "cm" ], - "238": [ "cv" ], - "239": [ "st" ], - "240": [ "gq" ], - "241": [ "ga" ], - "242": [ "cg" ], - "243": [ "cd" ], - "244": [ "ao" ], - "245": [ "gw" ], - "246": [ "io" ], - "247": [ "ac" ], - "248": [ "sc" ], - "249": [ "sd" ], - "250": [ "rw" ], - "251": [ "et" ], - "252": [ "so" ], - "253": [ "dj" ], - "254": [ "ke" ], - "255": [ "tz" ], - "256": [ "ug" ], - "257": [ "bi" ], - "258": [ "mz" ], - "260": [ "zm" ], - "261": [ "mg" ], - "262": [ "re", "yt" ], - "263": [ "zw" ], - "264": [ "na" ], - "265": [ "mw" ], - "266": [ "ls" ], - "267": [ "bw" ], - "268": [ "sz" ], - "269": [ "km" ], - "290": [ "sh" ], - "291": [ "er" ], - "297": [ "aw" ], - "298": [ "fo" ], - "299": [ "gl" ], - "350": [ "gi" ], - "351": [ "pt" ], - "352": [ "lu" ], - "353": [ "ie" ], - "354": [ "is" ], - "355": [ "al" ], - "356": [ "mt" ], - "357": [ "cy" ], - "358": [ "fi", "ax" ], - "359": [ "bg" ], - "370": [ "lt" ], - "371": [ "lv" ], - "372": [ "ee" ], - "373": [ "md" ], - "374": [ "am" ], - "375": [ "by" ], - "376": [ "ad" ], - "377": [ "mc" ], - "378": [ "sm" ], - "379": [ "va" ], - "380": [ "ua" ], - "381": [ "rs" ], - "382": [ "me" ], - "385": [ "hr" ], - "386": [ "si" ], - "387": [ "ba" ], - "389": [ "mk" ], - "420": [ "cz" ], - "421": [ "sk" ], - "423": [ "li" ], - "500": [ "fk" ], - "501": [ "bz" ], - "502": [ "gt" ], - "503": [ "sv" ], - "504": [ "hn" ], - "505": [ "ni" ], - "506": [ "cr" ], - "507": [ "pa" ], - "508": [ "pm" ], - "509": [ "ht" ], - "590": [ "gp", "bl", "mf" ], - "591": [ "bo" ], - "592": [ "gy" ], - "593": [ "ec" ], - "594": [ "gf" ], - "595": [ "py" ], - "596": [ "mq" ], - "597": [ "sr" ], - "598": [ "uy" ], - "599": [ "cw", "bq" ], - "670": [ "tl" ], - "672": [ "nf" ], - "673": [ "bn" ], - "674": [ "nr" ], - "675": [ "pg" ], - "676": [ "to" ], - "677": [ "sb" ], - "678": [ "vu" ], - "679": [ "fj" ], - "680": [ "pw" ], - "681": [ "wf" ], - "682": [ "ck" ], - "683": [ "nu" ], - "685": [ "ws" ], - "686": [ "ki" ], - "687": [ "nc" ], - "688": [ "tv" ], - "689": [ "pf" ], - "690": [ "tk" ], - "691": [ "fm" ], - "692": [ "mh" ], - "850": [ "kp" ], - "852": [ "hk" ], - "853": [ "mo" ], - "855": [ "kh" ], - "856": [ "la" ], - "880": [ "bd" ], - "886": [ "tw" ], - "960": [ "mv" ], - "961": [ "lb" ], - "962": [ "jo" ], - "963": [ "sy" ], - "964": [ "iq" ], - "965": [ "kw" ], - "966": [ "sa" ], - "967": [ "ye" ], - "968": [ "om" ], - "970": [ "ps" ], - "971": [ "ae" ], - "972": [ "il" ], - "973": [ "bh" ], - "974": [ "qa" ], - "975": [ "bt" ], - "976": [ "mn" ], - "977": [ "np" ], - "992": [ "tj" ], - "993": [ "tm" ], - "994": [ "az" ], - "995": [ "ge" ], - "996": [ "kg" ], - "998": [ "uz" ], - "1242": [ "bs" ], - "1246": [ "bb" ], - "1264": [ "ai" ], - "1268": [ "ag" ], - "1284": [ "vg" ], - "1340": [ "vi" ], - "1345": [ "ky" ], - "1441": [ "bm" ], - "1473": [ "gd" ], - "1649": [ "tc" ], - "1664": [ "ms" ], - "1671": [ "gu" ], - "1684": [ "as" ], - "1758": [ "lc" ], - "1767": [ "dm" ], - "1784": [ "vc" ], - "1787": [ "pr" ], - "1809": [ "do" ], - "1868": [ "tt" ], - "1869": [ "kn" ], - "1876": [ "jm" ] - } -}; - -})(); diff --git a/vendor/assets/javascripts/jquery.autosize.js b/vendor/assets/javascripts/jquery.autosize.js deleted file mode 100755 index 2a1f78852..000000000 --- a/vendor/assets/javascripts/jquery.autosize.js +++ /dev/null @@ -1,258 +0,0 @@ -/*! - Autosize v1.18.0 - 2013-10-20 - Automatically adjust textarea height based on user input. - (c) 2013 Jack Moore - http://www.jacklmoore.com/autosize - license: http://www.opensource.org/licenses/mit-license.php -*/ -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else { - // Browser globals: jQuery or jQuery-like library, such as Zepto - factory(window.jQuery || window.$); - } -}(function ($) { - var - defaults = { - className: 'autosizejs', - append: '', - callback: false, - resizeDelay: 10 - }, - - // border:0 is unnecessary, but avoids a bug in FireFox on OSX - copy = '