diff --git a/app/.dockerignore b/app/.dockerignore new file mode 100644 index 0000000000..325bfc036d --- /dev/null +++ b/app/.dockerignore @@ -0,0 +1,51 @@ +# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files. + +# Ignore git directory. +/.git/ +/.gitignore + +# Ignore bundler config. +/.bundle + +# Ignore all environment files. +/.env* + +# Ignore all default key files. +/config/master.key +/config/credentials/*.key + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore pidfiles, but keep the directory. +/tmp/pids/* +!/tmp/pids/.keep + +# Ignore storage (uploaded files in development and any SQLite databases). +/storage/* +!/storage/.keep +/tmp/storage/* +!/tmp/storage/.keep + +# Ignore assets. +/node_modules/ +/app/assets/builds/* +!/app/assets/builds/.keep +/public/assets + +# Ignore CI service files. +/.github + +# Ignore Kamal files. +/config/deploy*.yml +/.kamal + +# Ignore development files +/.devcontainer + +# Ignore Docker-related files +/.dockerignore +/Dockerfile* diff --git a/app/.gitattributes b/app/.gitattributes new file mode 100644 index 0000000000..8dc4323435 --- /dev/null +++ b/app/.gitattributes @@ -0,0 +1,9 @@ +# See https://git-scm.com/docs/gitattributes for more about git attribute files. + +# Mark the database schema as having been generated. +db/schema.rb linguist-generated + +# Mark any vendored files as having been vendored. +vendor/* linguist-vendored +config/credentials/*.yml.enc diff=rails_credentials +config/credentials.yml.enc diff=rails_credentials diff --git a/app/.github/dependabot.yml b/app/.github/dependabot.yml new file mode 100644 index 0000000000..83610cfa4c --- /dev/null +++ b/app/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: +- package-ecosystem: bundler + directory: "/" + schedule: + interval: weekly + open-pull-requests-limit: 10 +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly + open-pull-requests-limit: 10 diff --git a/app/.github/workflows/ci.yml b/app/.github/workflows/ci.yml new file mode 100644 index 0000000000..4adf8d4f8b --- /dev/null +++ b/app/.github/workflows/ci.yml @@ -0,0 +1,124 @@ +name: CI + +on: + pull_request: + push: + branches: [ main ] + +jobs: + scan_ruby: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - name: Scan for common Rails security vulnerabilities using static analysis + run: bin/brakeman --no-pager + + - name: Scan for known security vulnerabilities in gems used + run: bin/bundler-audit + + scan_js: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - name: Scan for security vulnerabilities in JavaScript dependencies + run: bin/importmap audit + + lint: + runs-on: ubuntu-latest + env: + RUBOCOP_CACHE_ROOT: tmp/rubocop + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - name: Prepare RuboCop cache + uses: actions/cache@v4 + env: + DEPENDENCIES_HASH: ${{ hashFiles('.ruby-version', '**/.rubocop.yml', '**/.rubocop_todo.yml', 'Gemfile.lock') }} + with: + path: ${{ env.RUBOCOP_CACHE_ROOT }} + key: rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-${{ github.ref_name == github.event.repository.default_branch && github.run_id || 'default' }} + restore-keys: | + rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}- + + - name: Lint code for consistent style + run: bin/rubocop -f github + + test: + runs-on: ubuntu-latest + + # services: + # redis: + # image: valkey/valkey:8 + # ports: + # - 6379:6379 + # options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - name: Run tests + env: + RAILS_ENV: test + # RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} + # REDIS_URL: redis://localhost:6379/0 + run: bin/rails db:test:prepare test + + system-test: + runs-on: ubuntu-latest + + # services: + # redis: + # image: valkey/valkey:8 + # ports: + # - 6379:6379 + # options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - name: Run System Tests + env: + RAILS_ENV: test + # RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} + # REDIS_URL: redis://localhost:6379/0 + run: bin/rails db:test:prepare test:system + + - name: Keep screenshots from failed system tests + uses: actions/upload-artifact@v4 + if: failure() + with: + name: screenshots + path: ${{ github.workspace }}/tmp/screenshots + if-no-files-found: ignore diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000000..3776a38acd --- /dev/null +++ b/app/.gitignore @@ -0,0 +1,41 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# Temporary files generated by your text editor or operating system +# belong in git's global ignore instead: +# `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore` + +# Ignore bundler config. +/.bundle + +# Ignore all environment files. +/.env* + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore pidfiles, but keep the directory. +/tmp/pids/* +!/tmp/pids/ +!/tmp/pids/.keep + +# Ignore storage (uploaded files in development and any SQLite databases). +/storage/* +!/storage/.keep +/tmp/storage/* +!/tmp/storage/ +!/tmp/storage/.keep + +/public/assets + +# Ignore key files for decrypting credentials and more. +/config/*.key + + +/app/assets/builds/* +!/app/assets/builds/.keep + +!/tmp/rubycritic/ +!/tmp/saikuro_report/ \ No newline at end of file diff --git a/app/.kamal/hooks/docker-setup.sample b/app/.kamal/hooks/docker-setup.sample new file mode 100644 index 0000000000..2fb07d7d7a --- /dev/null +++ b/app/.kamal/hooks/docker-setup.sample @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Docker set up on $KAMAL_HOSTS..." diff --git a/app/.kamal/hooks/post-app-boot.sample b/app/.kamal/hooks/post-app-boot.sample new file mode 100644 index 0000000000..70f9c4bc95 --- /dev/null +++ b/app/.kamal/hooks/post-app-boot.sample @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Booted app version $KAMAL_VERSION on $KAMAL_HOSTS..." diff --git a/app/.kamal/hooks/post-deploy.sample b/app/.kamal/hooks/post-deploy.sample new file mode 100644 index 0000000000..fd364c2a77 --- /dev/null +++ b/app/.kamal/hooks/post-deploy.sample @@ -0,0 +1,14 @@ +#!/bin/sh + +# A sample post-deploy hook +# +# These environment variables are available: +# KAMAL_RECORDED_AT +# KAMAL_PERFORMER +# KAMAL_VERSION +# KAMAL_HOSTS +# KAMAL_ROLES (if set) +# KAMAL_DESTINATION (if set) +# KAMAL_RUNTIME + +echo "$KAMAL_PERFORMER deployed $KAMAL_VERSION to $KAMAL_DESTINATION in $KAMAL_RUNTIME seconds" diff --git a/app/.kamal/hooks/post-proxy-reboot.sample b/app/.kamal/hooks/post-proxy-reboot.sample new file mode 100644 index 0000000000..1435a677f2 --- /dev/null +++ b/app/.kamal/hooks/post-proxy-reboot.sample @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Rebooted kamal-proxy on $KAMAL_HOSTS" diff --git a/app/.kamal/hooks/pre-app-boot.sample b/app/.kamal/hooks/pre-app-boot.sample new file mode 100644 index 0000000000..45f7355045 --- /dev/null +++ b/app/.kamal/hooks/pre-app-boot.sample @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Booting app version $KAMAL_VERSION on $KAMAL_HOSTS..." diff --git a/app/.kamal/hooks/pre-build.sample b/app/.kamal/hooks/pre-build.sample new file mode 100644 index 0000000000..c5a55678b2 --- /dev/null +++ b/app/.kamal/hooks/pre-build.sample @@ -0,0 +1,51 @@ +#!/bin/sh + +# A sample pre-build hook +# +# Checks: +# 1. We have a clean checkout +# 2. A remote is configured +# 3. The branch has been pushed to the remote +# 4. The version we are deploying matches the remote +# +# These environment variables are available: +# KAMAL_RECORDED_AT +# KAMAL_PERFORMER +# KAMAL_VERSION +# KAMAL_HOSTS +# KAMAL_ROLES (if set) +# KAMAL_DESTINATION (if set) + +if [ -n "$(git status --porcelain)" ]; then + echo "Git checkout is not clean, aborting..." >&2 + git status --porcelain >&2 + exit 1 +fi + +first_remote=$(git remote) + +if [ -z "$first_remote" ]; then + echo "No git remote set, aborting..." >&2 + exit 1 +fi + +current_branch=$(git branch --show-current) + +if [ -z "$current_branch" ]; then + echo "Not on a git branch, aborting..." >&2 + exit 1 +fi + +remote_head=$(git ls-remote $first_remote --tags $current_branch | cut -f1) + +if [ -z "$remote_head" ]; then + echo "Branch not pushed to remote, aborting..." >&2 + exit 1 +fi + +if [ "$KAMAL_VERSION" != "$remote_head" ]; then + echo "Version ($KAMAL_VERSION) does not match remote HEAD ($remote_head), aborting..." >&2 + exit 1 +fi + +exit 0 diff --git a/app/.kamal/hooks/pre-connect.sample b/app/.kamal/hooks/pre-connect.sample new file mode 100644 index 0000000000..77744bdca8 --- /dev/null +++ b/app/.kamal/hooks/pre-connect.sample @@ -0,0 +1,47 @@ +#!/usr/bin/env ruby + +# A sample pre-connect check +# +# Warms DNS before connecting to hosts in parallel +# +# These environment variables are available: +# KAMAL_RECORDED_AT +# KAMAL_PERFORMER +# KAMAL_VERSION +# KAMAL_HOSTS +# KAMAL_ROLES (if set) +# KAMAL_DESTINATION (if set) +# KAMAL_RUNTIME + +hosts = ENV["KAMAL_HOSTS"].split(",") +results = nil +max = 3 + +elapsed = Benchmark.realtime do + results = hosts.map do |host| + Thread.new do + tries = 1 + + begin + Socket.getaddrinfo(host, 0, Socket::AF_UNSPEC, Socket::SOCK_STREAM, nil, Socket::AI_CANONNAME) + rescue SocketError + if tries < max + puts "Retrying DNS warmup: #{host}" + tries += 1 + sleep rand + retry + else + puts "DNS warmup failed: #{host}" + host + end + end + + tries + end + end.map(&:value) +end + +retries = results.sum - hosts.size +nopes = results.count { |r| r == max } + +puts "Prewarmed %d DNS lookups in %.2f sec: %d retries, %d failures" % [ hosts.size, elapsed, retries, nopes ] diff --git a/app/.kamal/hooks/pre-deploy.sample b/app/.kamal/hooks/pre-deploy.sample new file mode 100644 index 0000000000..05b3055b72 --- /dev/null +++ b/app/.kamal/hooks/pre-deploy.sample @@ -0,0 +1,122 @@ +#!/usr/bin/env ruby + +# A sample pre-deploy hook +# +# Checks the Github status of the build, waiting for a pending build to complete for up to 720 seconds. +# +# Fails unless the combined status is "success" +# +# These environment variables are available: +# KAMAL_RECORDED_AT +# KAMAL_PERFORMER +# KAMAL_VERSION +# KAMAL_HOSTS +# KAMAL_COMMAND +# KAMAL_SUBCOMMAND +# KAMAL_ROLES (if set) +# KAMAL_DESTINATION (if set) + +# Only check the build status for production deployments +if ENV["KAMAL_COMMAND"] == "rollback" || ENV["KAMAL_DESTINATION"] != "production" + exit 0 +end + +require "bundler/inline" + +# true = install gems so this is fast on repeat invocations +gemfile(true, quiet: true) do + source "https://rubygems.org" + + gem "octokit" + gem "faraday-retry" +end + +MAX_ATTEMPTS = 72 +ATTEMPTS_GAP = 10 + +def exit_with_error(message) + $stderr.puts message + exit 1 +end + +class GithubStatusChecks + attr_reader :remote_url, :git_sha, :github_client, :combined_status + + def initialize + @remote_url = github_repo_from_remote_url + @git_sha = `git rev-parse HEAD`.strip + @github_client = Octokit::Client.new(access_token: ENV["GITHUB_TOKEN"]) + refresh! + end + + def refresh! + @combined_status = github_client.combined_status(remote_url, git_sha) + end + + def state + combined_status[:state] + end + + def first_status_url + first_status = combined_status[:statuses].find { |status| status[:state] == state } + first_status && first_status[:target_url] + end + + def complete_count + combined_status[:statuses].count { |status| status[:state] != "pending"} + end + + def total_count + combined_status[:statuses].count + end + + def current_status + if total_count > 0 + "Completed #{complete_count}/#{total_count} checks, see #{first_status_url} ..." + else + "Build not started..." + end + end + + private + def github_repo_from_remote_url + url = `git config --get remote.origin.url`.strip.delete_suffix(".git") + if url.start_with?("https://github.com/") + url.delete_prefix("https://github.com/") + elsif url.start_with?("git@github.com:") + url.delete_prefix("git@github.com:") + else + url + end + end +end + + +$stdout.sync = true + +begin + puts "Checking build status..." + + attempts = 0 + checks = GithubStatusChecks.new + + loop do + case checks.state + when "success" + puts "Checks passed, see #{checks.first_status_url}" + exit 0 + when "failure" + exit_with_error "Checks failed, see #{checks.first_status_url}" + when "pending" + attempts += 1 + end + + exit_with_error "Checks are still pending, gave up after #{MAX_ATTEMPTS * ATTEMPTS_GAP} seconds" if attempts == MAX_ATTEMPTS + + puts checks.current_status + sleep(ATTEMPTS_GAP) + checks.refresh! + end +rescue Octokit::NotFound + exit_with_error "Build status could not be found" +end diff --git a/app/.kamal/hooks/pre-proxy-reboot.sample b/app/.kamal/hooks/pre-proxy-reboot.sample new file mode 100644 index 0000000000..061f8059e6 --- /dev/null +++ b/app/.kamal/hooks/pre-proxy-reboot.sample @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Rebooting kamal-proxy on $KAMAL_HOSTS..." diff --git a/app/.kamal/secrets b/app/.kamal/secrets new file mode 100644 index 0000000000..b3089d6f5a --- /dev/null +++ b/app/.kamal/secrets @@ -0,0 +1,20 @@ +# Secrets defined here are available for reference under registry/password, env/secret, builder/secrets, +# and accessories/*/env/secret in config/deploy.yml. All secrets should be pulled from either +# password manager, ENV, or a file. DO NOT ENTER RAW CREDENTIALS HERE! This file needs to be safe for git. + +# Example of extracting secrets from 1password (or another compatible pw manager) +# SECRETS=$(kamal secrets fetch --adapter 1password --account your-account --from Vault/Item KAMAL_REGISTRY_PASSWORD RAILS_MASTER_KEY) +# KAMAL_REGISTRY_PASSWORD=$(kamal secrets extract KAMAL_REGISTRY_PASSWORD ${SECRETS}) +# RAILS_MASTER_KEY=$(kamal secrets extract RAILS_MASTER_KEY ${SECRETS}) + +# Example of extracting secrets from Rails credentials +# KAMAL_REGISTRY_PASSWORD=$(rails credentials:fetch kamal.registry_password) + +# Use a GITHUB_TOKEN if private repositories are needed for the image +# GITHUB_TOKEN=$(gh config get -h github.com oauth_token) + +# Grab the registry password from ENV +# KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD + +# Improve security by using a password manager. Never check config/master.key into git! +RAILS_MASTER_KEY=$(cat config/master.key) diff --git a/app/.rspec b/app/.rspec new file mode 100644 index 0000000000..c99d2e7396 --- /dev/null +++ b/app/.rspec @@ -0,0 +1 @@ +--require spec_helper diff --git a/app/.rubocop.yml b/app/.rubocop.yml new file mode 100644 index 0000000000..f9d86d4a54 --- /dev/null +++ b/app/.rubocop.yml @@ -0,0 +1,8 @@ +# Omakase Ruby styling for Rails +inherit_gem: { rubocop-rails-omakase: rubocop.yml } + +# Overwrite or add rules to create your own house style +# +# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]` +# Layout/SpaceInsideArrayLiteralBrackets: +# Enabled: false diff --git a/app/.ruby-version b/app/.ruby-version new file mode 100644 index 0000000000..5f6fc5edc2 --- /dev/null +++ b/app/.ruby-version @@ -0,0 +1 @@ +3.3.10 diff --git a/app/Booting b/app/Booting new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/Dockerfile b/app/Dockerfile new file mode 100644 index 0000000000..cb471caad7 --- /dev/null +++ b/app/Dockerfile @@ -0,0 +1,76 @@ +# syntax=docker/dockerfile:1 +# check=error=true + +# This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand: +# docker build -t app . +# docker run -d -p 80:80 -e RAILS_MASTER_KEY= --name app app + +# For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html + +# Make sure RUBY_VERSION matches the Ruby version in .ruby-version +ARG RUBY_VERSION=3.3.10 +FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base + +# Rails app lives here +WORKDIR /rails + +# Install base packages +RUN apt-get update -qq && \ + apt-get install --no-install-recommends -y curl libjemalloc2 libvips sqlite3 && \ + ln -s /usr/lib/$(uname -m)-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so && \ + rm -rf /var/lib/apt/lists /var/cache/apt/archives + +# Set production environment variables and enable jemalloc for reduced memory usage and latency. +ENV RAILS_ENV="production" \ + BUNDLE_DEPLOYMENT="1" \ + BUNDLE_PATH="/usr/local/bundle" \ + BUNDLE_WITHOUT="development" \ + LD_PRELOAD="/usr/local/lib/libjemalloc.so" + +# Throw-away build stage to reduce size of final image +FROM base AS build + +# Install packages needed to build gems +RUN apt-get update -qq && \ + apt-get install --no-install-recommends -y build-essential git libyaml-dev pkg-config && \ + rm -rf /var/lib/apt/lists /var/cache/apt/archives + +# Install application gems +COPY Gemfile Gemfile.lock vendor ./ + +RUN bundle install && \ + rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \ + # -j 1 disable parallel compilation to avoid a QEMU bug: https://github.com/rails/bootsnap/issues/495 + bundle exec bootsnap precompile -j 1 --gemfile + +# Copy application code +COPY . . + +# Precompile bootsnap code for faster boot times. +# -j 1 disable parallel compilation to avoid a QEMU bug: https://github.com/rails/bootsnap/issues/495 +RUN bundle exec bootsnap precompile -j 1 app/ lib/ + +# Precompiling assets for production without requiring secret RAILS_MASTER_KEY +RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile + + + + +# Final stage for app image +FROM base + +# Run and own only the runtime files as a non-root user for security +RUN groupadd --system --gid 1000 rails && \ + useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash +USER 1000:1000 + +# Copy built artifacts: gems, application +COPY --chown=rails:rails --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}" +COPY --chown=rails:rails --from=build /rails /rails + +# Entrypoint prepares the database. +ENTRYPOINT ["/rails/bin/docker-entrypoint"] + +# Start server via Thruster by default, this can be overwritten at runtime +EXPOSE 80 +CMD ["./bin/thrust", "./bin/rails", "server"] diff --git a/app/Gemfile b/app/Gemfile new file mode 100644 index 0000000000..f01fd7fcd0 --- /dev/null +++ b/app/Gemfile @@ -0,0 +1,91 @@ +source "https://rubygems.org" + +# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" +gem "rails", "~> 8.1.1" +# The modern asset pipeline for Rails [https://github.com/rails/propshaft] +gem "propshaft" +# Use sqlite3 as the database for Active Record +gem "sqlite3", ">= 2.1" +# Use the Puma web server [https://github.com/puma/puma] +gem "puma", ">= 5.0" +# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] +gem "importmap-rails" +# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev] +gem "turbo-rails" +# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] +gem "stimulus-rails" +# Use Tailwind CSS [https://github.com/rails/tailwindcss-rails] +gem "tailwindcss-rails" +# Build JSON APIs with ease [https://github.com/rails/jbuilder] +gem "jbuilder" + +# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] +gem "bcrypt", "~> 3.1.7" + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem "tzinfo-data", platforms: %i[jruby] + +# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable +gem "solid_cache" +gem "solid_queue" +gem "solid_cable" + +# Reduces boot times through caching; required in config/boot.rb +gem "bootsnap", require: false + +# Deploy this application anywhere as a Docker container [https://kamal-deploy.org] +gem "kamal", require: false + +# Add HTTP asset caching/compression and X-Sendfile acceleration to Puma [https://github.com/basecamp/thruster/] +gem "thruster", require: false + +# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] +gem "image_processing", "~> 1.2" + +group :development, :test do + # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem + gem "debug", platforms: %i[ mri windows ], require: "debug/prelude" + + # Audits gems for known security defects (use config/bundler-audit.yml to ignore issues) + gem "bundler-audit", require: false + + # Static analysis for security vulnerabilities [https://brakemanscanner.org/] + gem "brakeman", require: false + + # Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/] + gem "rubocop-rails-omakase", require: false +end + +group :development do + # Use console on exceptions pages [https://github.com/rails/web-console] + gem "web-console" +end + +group :test do + # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing] + gem "capybara" + gem "selenium-webdriver" +end + +group :development, :test do + gem 'rspec-rails' +end + + +group :test do + gem 'simplecov', require: false +end + + +gem "view_component", "~> 4.1" + +gem "letter_opener", group: :development + +group :development, :test do + gem 'rubycritic', require: false + gem 'flog', '4.7.0', require: false +end + +group :development do + gem 'rdoc' +end \ No newline at end of file diff --git a/app/Gemfile.lock b/app/Gemfile.lock new file mode 100644 index 0000000000..63d298873d --- /dev/null +++ b/app/Gemfile.lock @@ -0,0 +1,565 @@ +GEM + remote: https://rubygems.org/ + specs: + action_text-trix (2.1.15) + railties + actioncable (8.1.1) + actionpack (= 8.1.1) + activesupport (= 8.1.1) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + zeitwerk (~> 2.6) + actionmailbox (8.1.1) + actionpack (= 8.1.1) + activejob (= 8.1.1) + activerecord (= 8.1.1) + activestorage (= 8.1.1) + activesupport (= 8.1.1) + mail (>= 2.8.0) + actionmailer (8.1.1) + actionpack (= 8.1.1) + actionview (= 8.1.1) + activejob (= 8.1.1) + activesupport (= 8.1.1) + mail (>= 2.8.0) + rails-dom-testing (~> 2.2) + actionpack (8.1.1) + actionview (= 8.1.1) + activesupport (= 8.1.1) + nokogiri (>= 1.8.5) + 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 (8.1.1) + action_text-trix (~> 2.1.15) + actionpack (= 8.1.1) + activerecord (= 8.1.1) + activestorage (= 8.1.1) + activesupport (= 8.1.1) + globalid (>= 0.6.0) + nokogiri (>= 1.8.5) + actionview (8.1.1) + activesupport (= 8.1.1) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activejob (8.1.1) + activesupport (= 8.1.1) + globalid (>= 0.3.6) + activemodel (8.1.1) + activesupport (= 8.1.1) + activerecord (8.1.1) + activemodel (= 8.1.1) + activesupport (= 8.1.1) + timeout (>= 0.4.0) + activestorage (8.1.1) + actionpack (= 8.1.1) + activejob (= 8.1.1) + activerecord (= 8.1.1) + activesupport (= 8.1.1) + marcel (~> 1.0) + activesupport (8.1.1) + base64 + 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) + addressable (2.8.7) + public_suffix (>= 2.0.2, < 7.0) + ast (2.4.3) + axiom-types (0.1.1) + descendants_tracker (~> 0.0.4) + ice_nine (~> 0.11.0) + thread_safe (~> 0.3, >= 0.3.1) + base64 (0.3.0) + bcrypt (3.1.20) + bcrypt_pbkdf (1.1.1) + bcrypt_pbkdf (1.1.1-arm64-darwin) + bcrypt_pbkdf (1.1.1-x64-mingw-ucrt) + bcrypt_pbkdf (1.1.1-x86_64-darwin) + bigdecimal (3.3.1) + bindex (0.8.1) + bootsnap (1.19.0) + msgpack (~> 1.2) + brakeman (7.1.1) + racc + builder (3.3.0) + bundler-audit (0.9.2) + bundler (>= 1.2.0, < 3) + thor (~> 1.0) + capybara (3.40.0) + addressable + matrix + mini_mime (>= 0.1.3) + nokogiri (~> 1.11) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (>= 1.5, < 3.0) + xpath (~> 3.2) + childprocess (5.1.0) + logger (~> 1.5) + coercible (1.0.0) + descendants_tracker (~> 0.0.1) + concurrent-ruby (1.3.5) + connection_pool (2.5.4) + crass (1.0.6) + date (3.5.0) + debug (1.11.0) + irb (~> 1.10) + reline (>= 0.3.8) + descendants_tracker (0.0.4) + thread_safe (~> 0.3, >= 0.3.1) + diff-lcs (1.6.2) + docile (1.4.1) + dotenv (3.1.8) + drb (2.2.3) + dry-configurable (1.3.0) + dry-core (~> 1.1) + zeitwerk (~> 2.6) + dry-core (1.1.0) + concurrent-ruby (~> 1.0) + logger + zeitwerk (~> 2.6) + dry-inflector (1.2.0) + dry-initializer (3.2.0) + dry-logic (1.6.0) + bigdecimal + concurrent-ruby (~> 1.0) + dry-core (~> 1.1) + zeitwerk (~> 2.6) + dry-schema (1.14.1) + concurrent-ruby (~> 1.0) + dry-configurable (~> 1.0, >= 1.0.1) + dry-core (~> 1.1) + dry-initializer (~> 3.2) + dry-logic (~> 1.5) + dry-types (~> 1.8) + zeitwerk (~> 2.6) + dry-types (1.8.3) + bigdecimal (~> 3.0) + concurrent-ruby (~> 1.0) + dry-core (~> 1.0) + dry-inflector (~> 1.0) + dry-logic (~> 1.4) + zeitwerk (~> 2.6) + ed25519 (1.4.0) + erb (6.0.0) + erubi (1.13.1) + et-orbi (1.4.0) + tzinfo + ffi (1.17.2-aarch64-linux-gnu) + ffi (1.17.2-aarch64-linux-musl) + ffi (1.17.2-arm-linux-gnu) + ffi (1.17.2-arm-linux-musl) + ffi (1.17.2-arm64-darwin) + ffi (1.17.2-x64-mingw-ucrt) + ffi (1.17.2-x86_64-darwin) + ffi (1.17.2-x86_64-linux-gnu) + ffi (1.17.2-x86_64-linux-musl) + flay (2.13.3) + erubi (~> 1.10) + path_expander (~> 1.0) + ruby_parser (~> 3.0) + sexp_processor (~> 4.0) + flog (4.7.0) + path_expander (~> 1.0) + ruby_parser (~> 3.1, > 3.1.0) + sexp_processor (~> 4.8) + fugit (1.12.1) + et-orbi (~> 1.4) + raabro (~> 1.4) + globalid (1.3.0) + activesupport (>= 6.1) + i18n (1.14.7) + concurrent-ruby (~> 1.0) + ice_nine (0.11.2) + image_processing (1.14.0) + mini_magick (>= 4.9.5, < 6) + ruby-vips (>= 2.0.17, < 3) + importmap-rails (2.2.2) + actionpack (>= 6.0.0) + activesupport (>= 6.0.0) + railties (>= 6.0.0) + io-console (0.8.1) + irb (1.15.3) + pp (>= 0.6.0) + rdoc (>= 4.0.0) + reline (>= 0.4.2) + jbuilder (2.14.1) + actionview (>= 7.0.0) + activesupport (>= 7.0.0) + json (2.16.0) + kamal (2.8.2) + activesupport (>= 7.0) + base64 (~> 0.2) + bcrypt_pbkdf (~> 1.0) + concurrent-ruby (~> 1.2) + dotenv (~> 3.1) + ed25519 (~> 1.4) + net-ssh (~> 7.3) + sshkit (>= 1.23.0, < 2.0) + thor (~> 1.3) + zeitwerk (>= 2.6.18, < 3.0) + language_server-protocol (3.17.0.5) + launchy (3.1.1) + addressable (~> 2.8) + childprocess (~> 5.0) + logger (~> 1.6) + letter_opener (1.10.0) + launchy (>= 2.2, < 4) + lint_roller (1.1.0) + logger (1.7.0) + loofah (2.24.1) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mail (2.9.0) + logger + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.1.0) + matrix (0.4.3) + mini_magick (5.3.1) + logger + mini_mime (1.1.5) + minitest (5.26.1) + msgpack (1.8.0) + net-imap (0.5.12) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-scp (4.1.0) + net-ssh (>= 2.6.5, < 8.0.0) + net-sftp (4.0.0) + net-ssh (>= 5.0.0, < 8.0.0) + net-smtp (0.5.1) + net-protocol + net-ssh (7.3.0) + nio4r (2.7.5) + nokogiri (1.18.10-aarch64-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.10-aarch64-linux-musl) + racc (~> 1.4) + nokogiri (1.18.10-arm-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.10-arm-linux-musl) + racc (~> 1.4) + nokogiri (1.18.10-arm64-darwin) + racc (~> 1.4) + nokogiri (1.18.10-x64-mingw-ucrt) + racc (~> 1.4) + nokogiri (1.18.10-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.18.10-x86_64-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.10-x86_64-linux-musl) + racc (~> 1.4) + ostruct (0.6.3) + parallel (1.27.0) + parser (3.3.10.0) + ast (~> 2.4.1) + racc + path_expander (1.1.3) + pp (0.6.3) + prettyprint + prettyprint (0.2.0) + prism (1.6.0) + propshaft (1.3.1) + actionpack (>= 7.0.0) + activesupport (>= 7.0.0) + rack + psych (5.2.6) + date + stringio + public_suffix (6.0.2) + puma (7.1.0) + nio4r (~> 2.0) + raabro (1.4.0) + racc (1.8.1) + rack (3.2.4) + rack-session (2.1.1) + base64 (>= 0.1.0) + rack (>= 3.0.0) + rack-test (2.2.0) + rack (>= 1.3) + rackup (2.2.1) + rack (>= 3) + rails (8.1.1) + actioncable (= 8.1.1) + actionmailbox (= 8.1.1) + actionmailer (= 8.1.1) + actionpack (= 8.1.1) + actiontext (= 8.1.1) + actionview (= 8.1.1) + activejob (= 8.1.1) + activemodel (= 8.1.1) + activerecord (= 8.1.1) + activestorage (= 8.1.1) + activesupport (= 8.1.1) + bundler (>= 1.15.0) + railties (= 8.1.1) + rails-dom-testing (2.3.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.2) + loofah (~> 2.21) + 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) + railties (8.1.1) + actionpack (= 8.1.1) + activesupport (= 8.1.1) + irb (~> 1.13) + rackup (>= 1.0.0) + rake (>= 12.2) + thor (~> 1.0, >= 1.2.2) + tsort (>= 0.2) + zeitwerk (~> 2.6) + rainbow (3.1.1) + rake (13.3.1) + rdoc (6.15.1) + erb + psych (>= 4.0.0) + tsort + reek (6.5.0) + dry-schema (~> 1.13) + logger (~> 1.6) + parser (~> 3.3.0) + rainbow (>= 2.0, < 4.0) + rexml (~> 3.1) + regexp_parser (2.11.3) + reline (0.6.3) + io-console (~> 0.5) + rexml (3.4.4) + rspec-core (3.13.6) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.5) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.7) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-rails (8.0.2) + actionpack (>= 7.2) + activesupport (>= 7.2) + railties (>= 7.2) + rspec-core (~> 3.13) + rspec-expectations (~> 3.13) + rspec-mocks (~> 3.13) + rspec-support (~> 3.13) + rspec-support (3.13.6) + rubocop (1.81.7) + json (~> 2.3) + language_server-protocol (~> 3.17.0.2) + lint_roller (~> 1.1.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.9.3, < 3.0) + rubocop-ast (>= 1.47.1, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.48.0) + parser (>= 3.3.7.2) + prism (~> 1.4) + rubocop-performance (1.26.1) + lint_roller (~> 1.1) + rubocop (>= 1.75.0, < 2.0) + rubocop-ast (>= 1.47.1, < 2.0) + rubocop-rails (2.34.0) + activesupport (>= 4.2.0) + lint_roller (~> 1.1) + rack (>= 1.1) + rubocop (>= 1.75.0, < 2.0) + rubocop-ast (>= 1.44.0, < 2.0) + rubocop-rails-omakase (1.1.0) + rubocop (>= 1.72) + rubocop-performance (>= 1.24) + rubocop-rails (>= 2.30) + ruby-progressbar (1.13.0) + ruby-vips (2.2.5) + ffi (~> 1.12) + logger + ruby_parser (3.21.1) + racc (~> 1.5) + sexp_processor (~> 4.16) + rubycritic (4.11.0) + flay (~> 2.13) + flog (~> 4.7) + launchy (>= 2.5.2) + parser (>= 3.3.0.5) + rainbow (~> 3.1.1) + reek (~> 6.5.0, < 7.0) + rexml + ruby_parser (~> 3.21) + simplecov (>= 0.22.0) + tty-which (~> 0.5.0) + virtus (~> 2.0) + rubyzip (3.2.2) + securerandom (0.4.1) + selenium-webdriver (4.38.0) + base64 (~> 0.2) + logger (~> 1.4) + rexml (~> 3.2, >= 3.2.5) + rubyzip (>= 1.2.2, < 4.0) + websocket (~> 1.0) + sexp_processor (4.17.4) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.13.2) + simplecov_json_formatter (0.1.4) + solid_cable (3.0.12) + actioncable (>= 7.2) + activejob (>= 7.2) + activerecord (>= 7.2) + railties (>= 7.2) + solid_cache (1.0.10) + activejob (>= 7.2) + activerecord (>= 7.2) + railties (>= 7.2) + solid_queue (1.2.4) + activejob (>= 7.1) + activerecord (>= 7.1) + concurrent-ruby (>= 1.3.1) + fugit (~> 1.11) + railties (>= 7.1) + thor (>= 1.3.1) + sqlite3 (2.8.0-aarch64-linux-gnu) + sqlite3 (2.8.0-aarch64-linux-musl) + sqlite3 (2.8.0-arm-linux-gnu) + sqlite3 (2.8.0-arm-linux-musl) + sqlite3 (2.8.0-arm64-darwin) + sqlite3 (2.8.0-x64-mingw-ucrt) + sqlite3 (2.8.0-x86_64-darwin) + sqlite3 (2.8.0-x86_64-linux-gnu) + sqlite3 (2.8.0-x86_64-linux-musl) + sshkit (1.24.0) + base64 + logger + net-scp (>= 1.1.2) + net-sftp (>= 2.1.2) + net-ssh (>= 2.8.0) + ostruct + stimulus-rails (1.3.4) + railties (>= 6.0.0) + stringio (3.1.8) + tailwindcss-rails (4.4.0) + railties (>= 7.0.0) + tailwindcss-ruby (~> 4.0) + tailwindcss-ruby (4.1.16) + tailwindcss-ruby (4.1.16-aarch64-linux-gnu) + tailwindcss-ruby (4.1.16-aarch64-linux-musl) + tailwindcss-ruby (4.1.16-arm64-darwin) + tailwindcss-ruby (4.1.16-x64-mingw-ucrt) + tailwindcss-ruby (4.1.16-x86_64-darwin) + tailwindcss-ruby (4.1.16-x86_64-linux-gnu) + tailwindcss-ruby (4.1.16-x86_64-linux-musl) + thor (1.4.0) + thread_safe (0.3.6) + thruster (0.1.16) + thruster (0.1.16-aarch64-linux) + thruster (0.1.16-arm64-darwin) + thruster (0.1.16-x86_64-darwin) + thruster (0.1.16-x86_64-linux) + timeout (0.4.4) + tsort (0.2.0) + tty-which (0.5.0) + turbo-rails (2.0.20) + actionpack (>= 7.1.0) + railties (>= 7.1.0) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + tzinfo-data (1.2025.2) + tzinfo (>= 1.0.0) + unicode-display_width (3.2.0) + unicode-emoji (~> 4.1) + unicode-emoji (4.1.0) + uri (1.1.1) + useragent (0.16.11) + view_component (4.1.1) + actionview (>= 7.1.0, < 8.2) + activesupport (>= 7.1.0, < 8.2) + concurrent-ruby (~> 1) + virtus (2.0.0) + axiom-types (~> 0.1) + coercible (~> 1.0) + descendants_tracker (~> 0.0, >= 0.0.3) + web-console (4.2.1) + actionview (>= 6.0.0) + activemodel (>= 6.0.0) + bindex (>= 0.4.0) + railties (>= 6.0.0) + websocket (1.2.11) + websocket-driver (0.8.0) + base64 + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + xpath (3.2.0) + nokogiri (~> 1.8) + zeitwerk (2.7.3) + +PLATFORMS + aarch64-linux + aarch64-linux-gnu + aarch64-linux-musl + arm-linux-gnu + arm-linux-musl + arm64-darwin + x64-mingw-ucrt + x86_64-darwin + x86_64-linux + x86_64-linux-gnu + x86_64-linux-musl + +DEPENDENCIES + bcrypt (~> 3.1.7) + bootsnap + brakeman + bundler-audit + capybara + debug + flog (= 4.7.0) + image_processing (~> 1.2) + importmap-rails + jbuilder + kamal + letter_opener + propshaft + puma (>= 5.0) + rails (~> 8.1.1) + rdoc + rspec-rails + rubocop-rails-omakase + rubycritic + selenium-webdriver + simplecov + solid_cable + solid_cache + solid_queue + sqlite3 (>= 2.1) + stimulus-rails + tailwindcss-rails + thruster + turbo-rails + tzinfo-data + view_component (~> 4.1) + web-console + +BUNDLED WITH + 2.5.22 diff --git a/app/Procfile.dev b/app/Procfile.dev new file mode 100644 index 0000000000..da151fee94 --- /dev/null +++ b/app/Procfile.dev @@ -0,0 +1,2 @@ +web: bin/rails server +css: bin/rails tailwindcss:watch diff --git a/app/README.md b/app/README.md new file mode 100644 index 0000000000..7db80e4ca1 --- /dev/null +++ b/app/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/app/Rails b/app/Rails new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/Rakefile b/app/Rakefile new file mode 100644 index 0000000000..9a5ea7383a --- /dev/null +++ b/app/Rakefile @@ -0,0 +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_relative "config/application" + +Rails.application.load_tasks diff --git a/app/Run b/app/Run new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/app/assets/builds/.keep b/app/app/assets/builds/.keep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/app/assets/images/.keep b/app/app/assets/images/.keep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/app/assets/stylesheets/application.css b/app/app/assets/stylesheets/application.css new file mode 100644 index 0000000000..fe93333c0f --- /dev/null +++ b/app/app/assets/stylesheets/application.css @@ -0,0 +1,10 @@ +/* + * This is a manifest file that'll be compiled into application.css. + * + * With Propshaft, assets are served efficiently without preprocessing steps. You can still include + * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard + * cascading order, meaning styles declared later in the document or manifest will override earlier ones, + * depending on specificity. + * + * Consider organizing styles into separate files for maintainability. + */ diff --git a/app/app/assets/tailwind/application.css b/app/app/assets/tailwind/application.css new file mode 100644 index 0000000000..f1d8c73cdc --- /dev/null +++ b/app/app/assets/tailwind/application.css @@ -0,0 +1 @@ +@import "tailwindcss"; diff --git a/app/app/components/brand_panel_component.html.erb b/app/app/components/brand_panel_component.html.erb new file mode 100644 index 0000000000..7f960321c7 --- /dev/null +++ b/app/app/components/brand_panel_component.html.erb @@ -0,0 +1,7 @@ +
+

+ Bem vindo
+ ao + Camaar +

+
\ No newline at end of file diff --git a/app/app/components/brand_panel_component.rb b/app/app/components/brand_panel_component.rb new file mode 100644 index 0000000000..1d3ec57369 --- /dev/null +++ b/app/app/components/brand_panel_component.rb @@ -0,0 +1,8 @@ +# Componente visual responsável por renderizar o painel de identidade visual (Branding). +# Geralmente utilizado em layouts de autenticação (Login/Cadastro) para exibir +# o logotipo, nome da aplicação ou imagem de destaque lateral. +# +# Atualmente não possui lógica de negócios (Ruby), servindo apenas como +# encapsulamento para o template HTML associado (brand_panel_component.html.erb). +class BrandPanelComponent < ViewComponent::Base +end \ No newline at end of file diff --git a/app/app/components/button_component.html.erb b/app/app/components/button_component.html.erb new file mode 100644 index 0000000000..93c5bf0b69 --- /dev/null +++ b/app/app/components/button_component.html.erb @@ -0,0 +1,9 @@ +<% if @link.present? %> + <%= link_to @link, role: "button", class: classes do %> + <%= @text %> + <% end %> +<% else %> + +<% end %> \ No newline at end of file diff --git a/app/app/components/button_component.rb b/app/app/components/button_component.rb new file mode 100644 index 0000000000..25365d1822 --- /dev/null +++ b/app/app/components/button_component.rb @@ -0,0 +1,51 @@ +# Componente de interface reutilizável para renderizar botões ou links com estilo de botão. +# Padroniza a aparência da aplicação, oferecendo variantes de cores pré-definidas (primary, secondary, etc.) +# e encapsulando as classes utilitárias do Tailwind CSS. +class ButtonComponent < ViewComponent::Base + + # Inicializa o componente com as configurações de exibição e comportamento. + # + # Args: + # - text: (String) O rótulo/texto a ser exibido dentro do botão. + # - type: (Symbol) O tipo do botão HTML (ex: :submit, :button). Padrão: :submit. + # - variant: (Symbol) O esquema de cores (:primary, :secondary, :tertiary). Padrão: :primary. + # - link: (String/nil) Se fornecido, o componente renderiza um link () em vez de um + +

<%= title %>

+ + +
+ +
+ + + + + +
+
+ \ No newline at end of file diff --git a/app/app/components/dashboard/header_component.rb b/app/app/components/dashboard/header_component.rb new file mode 100644 index 0000000000..5e82777f09 --- /dev/null +++ b/app/app/components/dashboard/header_component.rb @@ -0,0 +1,57 @@ +# Namespace que agrupa os componentes visuais exclusivos da área administrativa (Dashboard). +# Contém elementos de layout como cabeçalho e barra lateral. +module Dashboard + # Componente visual responsável por renderizar o cabeçalho superior do dashboard. + # Centraliza a lógica de exibição do título da página e do avatar do usuário, + # adaptando-se ao contexto (Admin ou Usuário comum). + class HeaderComponent < ViewComponent::Base + + # Inicializa o componente com os dados necessários para renderização. + # + # Args: + # - user (Usuario): O usuário logado atualmente. + # - path (String): O caminho da URL atual (request.path) para decisão do título. + # + # Retorno: Uma nova instância do componente. + # + # Efeitos Colaterais: Define as variáveis de instância @user e @path. + def initialize(user:, path:) + @user = user + @path = path + end + + # Extrai a primeira letra do nome do usuário para exibir no avatar (círculo de perfil). + # Possui tratamento de erro (rescue) para garantir uma exibição padrão caso o nome seja inválido. + # + # Args: Nenhum + # + # Retorno: + # - String: A primeira letra do nome em maiúsculo (ex: "D"). + # - String: "U" (default) caso ocorra erro ou o nome seja nulo. + # + # Efeitos Colaterais: Nenhum. + def initials + @user.nome.to_s.first.upcase + rescue + "U" + end + + # Determina o título textual da página baseado na rota atual. + # Diferencia visualmente a área administrativa da área de avaliações comuns. + # + # Args: Nenhum + # + # Retorno: + # - String: "Gerenciamento" se a URL começar com "/admin". + # - String: "Avaliações" para as demais rotas. + # + # Efeitos Colaterais: Nenhum. + def title + if @path.start_with?("/admin") + "Gerenciamento" + else + "Avaliações" + end + end + end +end \ No newline at end of file diff --git a/app/app/components/dashboard/sidebar_component.html.erb b/app/app/components/dashboard/sidebar_component.html.erb new file mode 100644 index 0000000000..5b2ae29645 --- /dev/null +++ b/app/app/components/dashboard/sidebar_component.html.erb @@ -0,0 +1,27 @@ +
\ No newline at end of file diff --git a/app/app/components/dashboard/sidebar_component.rb b/app/app/components/dashboard/sidebar_component.rb new file mode 100644 index 0000000000..d90f97428d --- /dev/null +++ b/app/app/components/dashboard/sidebar_component.rb @@ -0,0 +1,32 @@ +module Dashboard + # Componente visual responsável por renderizar a barra lateral de navegação (Sidebar). + # Gerencia a exibição dos links de menu, adaptando-os dinamicamente + # com base no perfil do usuário (Administrador ou Comum). + class SidebarComponent < ViewComponent::Base + + # Inicializa o componente com os dados do usuário para controle de permissões. + # + # Args: + # - user (Usuario): O usuário logado atualmente. + # + # Retorno: Uma nova instância do componente. + # + # Efeitos Colaterais: Define a variável de instância @user. + def initialize(user:) + @user = user + end + + # Helper utilizado no template para verificar permissões de administrador. + # Determina se os menus de gestão (Criar Template, Importar Turmas) devem ser exibidos. + # + # Args: Nenhum + # + # Retorno: + # - Boolean: true se o usuário for administrador, false caso contrário. + # + # Efeitos Colaterais: Nenhum. + def admin? + @user.is_admin? + end + end +end \ No newline at end of file diff --git a/app/app/components/evaluation_card_component.html.erb b/app/app/components/evaluation_card_component.html.erb new file mode 100644 index 0000000000..7adc6a96a3 --- /dev/null +++ b/app/app/components/evaluation_card_component.html.erb @@ -0,0 +1,21 @@ +<% tag_type = @formulario_id ? :a : :div %> +<% link_opts = @formulario_id ? { + href: formulario_path(@formulario_id, turma_id: @turma_id), + data: { turbo_frame: "modal" } # A MÁGICA ACONTECE AQUI + } : {} %> + +<%= content_tag tag_type, link_opts.merge(class: "block bg-white rounded-lg shadow-sm p-6 hover:shadow-md transition-shadow cursor-pointer border border-gray-100 flex flex-col justify-between h-40") do %> +
+

<%= @materia %>

+

<%= @semestre %>

+
+ +
+

<%= @professor %>

+ <% if @formulario_id %> + Responder + <% else %> + Indisponível + <% end %> +
+<% end %> \ No newline at end of file diff --git a/app/app/components/evaluation_card_component.rb b/app/app/components/evaluation_card_component.rb new file mode 100644 index 0000000000..6b1560b171 --- /dev/null +++ b/app/app/components/evaluation_card_component.rb @@ -0,0 +1,30 @@ +# Componente visual responsável por renderizar o "card" de resumo de uma avaliação no Dashboard. +# Exibe informações concisas da disciplina (Matéria, Professor, Semestre) e contém +# o botão de ação para responder ao formulário (ou ver o status). +class EvaluationCardComponent < ViewComponent::Base + + # Inicializa o componente com os dados acadêmicos e de navegação. + # Prepara as variáveis que serão exibidas no template do card. + # + # Args: + # - turma: (String/Object) Identificador da turma (ex: "A", "01"). + # - materia: (String) O nome da disciplina (ex: "Engenharia de Software"). + # - professor: (String | nil) Nome do docente. Se nil, aplica um valor padrão. + # - semestre: (String) O período letivo (ex: "2024.1"). + # - formulario_id: (Integer | nil) ID do formulário associado (para gerar link de resposta). + # - turma_id: (Integer | nil) ID da turma no banco (para contexto do link). + # + # Retorno: Uma nova instância do componente EvaluationCardComponent. + # + # Efeitos Colaterais: + # - Define variáveis de instância para uso na view. + # - Aplica a string "Professor não atribuído" caso o argumento professor seja nulo. + def initialize(turma:, materia:, professor:, semestre:, formulario_id: nil, turma_id: nil) + @turma = turma + @materia = materia + @professor = professor || "Professor não atribuído" + @semestre = semestre + @formulario_id = formulario_id + @turma_id = turma_id + end +end \ No newline at end of file diff --git a/app/app/components/form_input_component.html.erb b/app/app/components/form_input_component.html.erb new file mode 100644 index 0000000000..234f63ba72 --- /dev/null +++ b/app/app/components/form_input_component.html.erb @@ -0,0 +1,12 @@ +
+ <% if @form && @attribute %> + <%= @form.label @attribute, @label, class: "block text-gray-600 text-sm font-bold mb-2 ml-1" %> + <%= @form.send "#{@type}_field", @attribute, + class: "appearance-none border border-gray-200 rounded w-full py-3 px-4 text-gray-700 leading-tight focus:outline-none focus:border-purple-500 placeholder-gray-400", + placeholder: @placeholder %> + <% else %> + <%= label_tag @name, @label, class: "block text-gray-600 text-sm font-bold mb-2 ml-1" %> + <%= tag.input type: @type, name: @name, id: @name, placeholder: @placeholder, + class: "appearance-none border border-gray-200 rounded w-full py-3 px-4 text-gray-700 leading-tight focus:outline-none focus:border-purple-500 placeholder-gray-400" %> + <% end %> +
\ No newline at end of file diff --git a/app/app/components/form_input_component.rb b/app/app/components/form_input_component.rb new file mode 100644 index 0000000000..4dcba43e5f --- /dev/null +++ b/app/app/components/form_input_component.rb @@ -0,0 +1,40 @@ +# Componente de interface reutilizável para renderizar campos de entrada (inputs) de formulário. +# Abstrai a complexidade de estilização (CSS) e estrutura HTML (Label + Input), +# garantindo consistência visual em toda a aplicação. +# +# Suporta dois modos de operação: +# 1. Baseado em Modelo (Model-Backed): Usando `form` e `attribute` (ex: Cadastro de Usuário). +# 2. Baseado em Tag (Tag-Based): Usando apenas `name` (ex: Login, onde não há model direto). +class FormInputComponent < ViewComponent::Base + + # Inicializa o componente aceitando tanto um input ligado a um modelo via `form`+`attribute` + # quanto um input livre via `name` (usado nas views de sessão/login). + # + # Args: + # - label: (String) O texto do rótulo exibido acima do campo. + # - form: (ActionView::Helpers::FormBuilder | nil) O objeto construtor do formulário. + # - attribute: (Symbol | nil) O nome do atributo do modelo (ex: :email). + # - name: (String | nil) O atributo 'name' do input HTML (usado quando não há `form`). + # - type: (Symbol) O tipo do input HTML (:text, :password, :email, etc.). Padrão: :text. + # - placeholder: (String) Texto de ajuda exibido dentro do campo quando vazio. + # + # Retorno: Uma nova instância do componente FormInputComponent. + # + # Efeitos Colaterais: + # - Define variáveis de instância para uso no template. + # - Lógica de Fallback: Se `attribute` for fornecido mas `name` não, define `name` baseado no atributo. + def initialize(label:, form: nil, attribute: nil, name: nil, type: :text, placeholder: "") + @label = label + @form = form + @attribute = attribute + @name = name + @type = type + @placeholder = placeholder + + # Se o atributo foi fornecido mas nenhum 'name' explícito, deriva um nome de fallback baseando-se no atributo + @name ||= @attribute.to_s if @attribute + end + + # Ao usar um template ERB, o ViewComponent renderizará esse template automaticamente. + # O template pode acessar as variáveis de instância definidas em `initialize`. +end \ No newline at end of file diff --git a/app/app/controllers/admins_controller.rb b/app/app/controllers/admins_controller.rb new file mode 100644 index 0000000000..a8d881010d --- /dev/null +++ b/app/app/controllers/admins_controller.rb @@ -0,0 +1,89 @@ +# Gerencia a área administrativa, incluindo dashboard, importação de dados do SIGAA +# e o fluxo de distribuição de formulários de avaliação para as turmas. +class AdminsController < ApplicationController + before_action :require_login + layout 'dashboard' + + # Exibe a dashboard principal do administrador. + # + # Args: Nenhum + # Retorno: Renderiza a view 'dashboard'. + # Efeitos Colaterais: Nenhum. + def dashboard; end + + # Renderiza o formulário para upload de arquivos de importação. + # + # Args: Nenhum + # Retorno: Renderiza a view 'import_form'. + # Efeitos Colaterais: Nenhum. + def import_form; end + + # Processa os arquivos JSON enviados para popular o banco de dados com dados acadêmicos. + # + # Args: + # - params[:arquivo_turmas] (ActionDispatch::Http::UploadedFile): Arquivo JSON de turmas. + # - params[:arquivo_membros] (ActionDispatch::Http::UploadedFile): Arquivo JSON de matrículas. + # Retorno: Redireciona para admin_path (sucesso) ou admin_importar_form_path (erro). + # Efeitos Colaterais: Cria/Atualiza registros de Turmas, Matérias e Usuários via SigaaService. + def importar + if files_present? + process_import_files + redirect_to admin_path, notice: "Importação realizada com sucesso!" + else + redirect_to admin_importar_form_path, alert: "Por favor, anexe os dois arquivos JSON." + end + end + + # Carrega os dados necessários para a tela de envio de formulários para turmas. + # + # Args: Nenhum + # Retorno: Renderiza a view 'send_forms' com @turmas e @templates carregados. + # Efeitos Colaterais: Realiza consultas ao banco de dados. + def send_forms + @turmas = Turma.all + @templates = Template.where(usuario_id: current_user.id).order(:nome) + end + + # Processa o envio (cópia) de um template selecionado para as turmas escolhidas. + # + # Args: + # - params[:template_id] (Integer): ID do template a ser copiado. + # - params[:turma_ids] (Array): Lista de IDs das turmas receptoras. + # Retorno: Redireciona para admin_send_forms_path. + # Efeitos Colaterais: Cria novas instâncias de Formulário, Questões e Opções via FormDistributionService. + def process_send_forms + template = Template.find_by(id: params[:template_id]) + turma_ids = params[:turma_ids] + + if template.blank? || turma_ids.blank? + return redirect_to admin_send_forms_path, alert: "Selecione um template e pelo menos uma turma." + end + + FormDistributionService.new(template, turma_ids).call + + redirect_to admin_send_forms_path, notice: "Formulários enviados com sucesso!" + end + + private + + # Verifica se os arquivos obrigatórios para importação estão presentes nos parâmetros. + # + # Args: + # - params (Hash implícito) + # Retorno: Boolean (true se ambos os arquivos estiverem presentes). + # Efeitos Colaterais: Nenhum. + def files_present? + params[:arquivo_turmas].present? && params[:arquivo_membros].present? + end + + # Instancia e executa o serviço de importação do SIGAA. + # + # Args: + # - params[:arquivo_turmas] + # - params[:arquivo_membros] + # Retorno: O resultado da execução do serviço (void/indefinido). + # Efeitos Colaterais: Executa lógica de negócio complexa de importação e persistência de dados. + def process_import_files + SigaaService.new(params[:arquivo_turmas].path, params[:arquivo_membros].path).call + end +end \ No newline at end of file diff --git a/app/app/controllers/application_controller.rb b/app/app/controllers/application_controller.rb new file mode 100644 index 0000000000..68c4993013 --- /dev/null +++ b/app/app/controllers/application_controller.rb @@ -0,0 +1,43 @@ +# Controlador base da aplicação. Define métodos auxiliares de autenticação +# e sessão que são compartilhados por todos os outros controllers. +class ApplicationController < ActionController::Base + helper_method :current_user, :logged_in? + + # Retorna a instância do usuário logado na sessão atual (memoized). + # Utiliza a técnica de memoization para evitar múltiplas consultas ao banco na mesma requisição. + # + # Args: Nenhum + # Retorno: + # - Objeto (Usuario): Se houver um usuário logado. + # - nil: Se não houver usuário na sessão. + # Efeitos Colaterais: Realiza consulta ao banco de dados (Usuario.find) na primeira chamada. + def current_user + @current_user ||= Usuario.find(session[:user_id]) if session[:user_id] + end + + # Verifica se há um usuário autenticado no sistema. + # + # Args: Nenhum + # Retorno: Boolean (true se logado, false caso contrário). + # Efeitos Colaterais: Nenhum. + def logged_in? + !!current_user + end + + # Filtro (callback) utilizado para bloquear o acesso a páginas restritas. + # Deve ser usado em 'before_action' nos controllers que exigem autenticação. + # + # Args: Nenhum + # Retorno: + # - nil: Se o usuário estiver logado (permite o fluxo continuar). + # - Redirecionamento: Se o usuário não estiver logado. + # Efeitos Colaterais: + # - Interrompe a execução da action atual. + # - Redireciona o navegador para a rota login_path. + # - Define uma mensagem de alerta (flash[:alert]). + def require_login + unless logged_in? + redirect_to login_path, alert: "Você precisa estar logado para acessar esta página." + end + end +end \ No newline at end of file diff --git a/app/app/controllers/concerns/.keep b/app/app/controllers/concerns/.keep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/app/controllers/dashboard_controller.rb b/app/app/controllers/dashboard_controller.rb new file mode 100644 index 0000000000..b5246c8726 --- /dev/null +++ b/app/app/controllers/dashboard_controller.rb @@ -0,0 +1,20 @@ +# Controlador responsável pela página inicial do usuário autenticado (Dashboard). +# Exibe informações gerais como turmas matriculadas e avaliações pendentes. +class DashboardController < ApplicationController + before_action :require_login + layout 'dashboard' + + # Carrega os dados necessários para a visualização do painel do aluno/professor. + # Busca as turmas vinculadas ao usuário e identifica quais formulários já foram respondidos. + # + # Args: Nenhum + # Retorno: Renderiza a view 'index' com as variáveis de instância @turmas e @ids_respondidos. + # Efeitos Colaterais: + # - Realiza consulta ao banco de dados para carregar turmas e suas associações (matéria, formulários). + # - Executa query para listar IDs de formulários respondidos pelo usuário atual. + def index + @turmas = current_user.turmas.includes(:materia, :formularios) + + @ids_respondidos = current_user.formulario_respondidos.pluck(:formulario_id) + end +end \ No newline at end of file diff --git a/app/app/controllers/formularios_controller.rb b/app/app/controllers/formularios_controller.rb new file mode 100644 index 0000000000..5044b40883 --- /dev/null +++ b/app/app/controllers/formularios_controller.rb @@ -0,0 +1,47 @@ +# Gerencia a exibição e o recebimento de respostas de formulários pelos alunos. +# Responsável por intermediar a interação do usuário com as avaliações pendentes. +class FormulariosController < ApplicationController + before_action :require_login + before_action :set_formulario, only: [:show, :responder] + + # Exibe a interface do formulário de avaliação para que o aluno possa responder. + # + # Args: + # - params[:id] (Integer): ID do formulário (via set_formulario). + # - params[:turma_id] (Integer): ID da turma à qual a avaliação pertence. + # Retorno: Renderiza a view 'show' com @formulario e @turma_id definidos. + # Efeitos Colaterais: Nenhuma alteração no banco, apenas leitura. + def show + @turma_id = params[:turma_id] + end + + # Processa e salva as respostas enviadas pelo aluno. + # Delega a lógica de persistência para o serviço FormResponseService. + # + # Args: + # - params[:respostas] (Hash): Mapa contendo { questao_id => resposta_valor }. + # - current_user (Usuario): Usuário logado submetendo a resposta. + # Retorno: Redireciona para dashboard_path com mensagem de sucesso ou erro. + # Efeitos Colaterais: + # - Persiste os registros de resposta no banco de dados via Service Object. + # - Define mensagens flash (notice/alert). + def responder + FormResponseService.new(current_user, @formulario, params[:respostas]).call + + redirect_to dashboard_path, notice: "Avaliação enviada com sucesso!" + rescue ActiveRecord::RecordInvalid + redirect_to dashboard_path, alert: "Erro ao salvar avaliação." + end + + private + + # Callback executado antes das ações para carregar o formulário. + # + # Args: + # - params[:id] (Integer): ID do formulário na URL. + # Retorno: Objeto Formulario. + # Efeitos Colaterais: Realiza consulta ao banco de dados (find). + def set_formulario + @formulario = Formulario.find(params[:id]) + end +end \ No newline at end of file diff --git a/app/app/controllers/password_resets_controller.rb b/app/app/controllers/password_resets_controller.rb new file mode 100644 index 0000000000..df5848d79f --- /dev/null +++ b/app/app/controllers/password_resets_controller.rb @@ -0,0 +1,95 @@ +# Gerencia o fluxo de redefinição de senha (esqueci minha senha). +# Permite solicitar um link por email e redefinir a senha usando um token seguro. +class PasswordResetsController < ApplicationController + before_action :resolve_user_from_token, only: %i[edit update] + + # Exibe o formulário para o usuário informar o e-mail e solicitar o link. + # + # Args: Nenhum + # Retorno: Renderiza a view 'new'. + # Efeitos Colaterais: Nenhum. + def new; end + + # Processa a solicitação de redefinição. Busca o usuário e dispara o e-mail. + # + # Args: + # - params[:email] (String): O e-mail cadastrado do usuário. + # Retorno: + # - Redireciona para login_path (se o usuário existir e o email for enviado). + # - Renderiza a view 'new' (se o e-mail não for encontrado). + # Efeitos Colaterais: + # - Gera um token de redefinição no banco (via model). + # - Envia um e-mail com o link de recuperação (UserMailer). + def create + user = Usuario.find_by(email: params[:email]) + + if user + user.send_password_reset_email + redirect_to login_path, notice: "Email enviado com instruções!" + else + flash.now[:alert] = "Email não encontrado" + render :new + end + end + + # Exibe o formulário para digitação da nova senha (acessado via link do email). + # + # Args: + # - params[:email] (String): E-mail do usuário (validado no before_action). + # - params[:id] (String): Token de redefinição (validado no before_action). + # Retorno: Renderiza a view 'edit'. + # Efeitos Colaterais: Nenhum (validações ocorrem no filtro). + def edit; end + + # Atualiza a senha do usuário no banco de dados. + # + # Args: + # - user_params (Hash): Contém :password e :password_confirmation. + # Retorno: + # - Redireciona para login_path com sucesso. + # - Renderiza a view 'edit' em caso de erro de validação (ex: senhas não batem). + # Efeitos Colaterais: + # - Atualiza a senha (criptografada) no banco de dados. + # - Limpa o token de redefinição (reset_digest) após o uso. + def update + if @user.update(user_params) + @user.clear_reset_digest + redirect_to login_path, notice: "Senha redefinida com sucesso! Faça login." + else + render :edit, status: :unprocessable_entity + end + end + + private + + # Filtra os parâmetros permitidos para atualização de senha. + # + # Args: params[:usuario] (ActionController::Parameters) + # Retorno: Hash com :password e :password_confirmation. + # Efeitos Colaterais: Nenhum. + def user_params + params.require(:usuario).permit(:password, :password_confirmation) + end + + # Filtro (before_action) que valida se o link de redefinição é legítimo. + # Verifica se o usuário existe e se o token é válido e não expirou. + # + # Args: + # - params[:email] + # - params[:id] (Token) + # Retorno: + # - nil (se válido, define a variável de instância @user). + # - Redireciona para new_password_reset_path (se inválido). + # Efeitos Colaterais: + # - Define a variável @user para uso nas actions edit/update. + # - Interrompe a requisição se o token for inválido. + def resolve_user_from_token + @user = Usuario.find_by(email: params[:email]) + + @token = params[:id] + + return if @user&.valid_reset_token?(@token) + + redirect_to new_password_reset_path, alert: "Link inválido ou expirado." + end +end \ No newline at end of file diff --git a/app/app/controllers/passwords_controller.rb b/app/app/controllers/passwords_controller.rb new file mode 100644 index 0000000000..1ba823ff97 --- /dev/null +++ b/app/app/controllers/passwords_controller.rb @@ -0,0 +1,43 @@ +# Gerencia a alteração de senha para usuários já autenticados (troca de senha). +# Diferente do PasswordResets, este controller exige que o usuário esteja logado. +class PasswordsController < ApplicationController + before_action :require_login + + # Exibe o formulário para o usuário alterar sua própria senha. + # + # Args: Nenhum + # Retorno: Renderiza a view 'edit'. + # Efeitos Colaterais: Nenhum. + def edit + end + + # Processa a atualização da senha do usuário logado. + # + # Args: + # - params[:usuario] (Hash): Contém :password e :password_confirmation. + # - current_user (Usuario): O usuário autenticado na sessão. + # Retorno: + # - Redireciona para dashboard_path (sucesso). + # - Renderiza a view 'edit' (erro de validação). + # Efeitos Colaterais: + # - Atualiza o campo password_digest no banco de dados. + # - Define mensagens flash (notice). + def update + if current_user.update(password_params) + redirect_to dashboard_path, notice: "Senha alterada com sucesso!" + else + render :edit, status: :unprocessable_entity + end + end + + private + + # Filtra os parâmetros permitidos para a alteração de senha (Strong Parameters). + # + # Args: params (ActionController::Parameters) + # Retorno: Hash contendo apenas :password e :password_confirmation. + # Efeitos Colaterais: Nenhum. + def password_params + params.require(:usuario).permit(:password, :password_confirmation) + end +end \ No newline at end of file diff --git a/app/app/controllers/resultados_controller.rb b/app/app/controllers/resultados_controller.rb new file mode 100644 index 0000000000..b6329caf9c --- /dev/null +++ b/app/app/controllers/resultados_controller.rb @@ -0,0 +1,37 @@ +# Controlador responsável pela visualização e exportação dos resultados +# das avaliações (formulários respondidos). +class ResultadosController < ApplicationController + before_action :require_login + layout 'dashboard' + + # Lista os formulários que já possuem pelo menos uma resposta registrada. + # Utilizado para exibir a tabela de formulários disponíveis para download de relatório. + # + # Args: Nenhum + # Retorno: Renderiza a view 'index' com a variável @formularios populada. + # Efeitos Colaterais: Executa query no banco (INNER JOIN) para filtrar apenas formulários respondidos. + def index + # Lista apenas formulários que têm pelo menos uma resposta + @formularios = Formulario.joins(:formulario_respondidos).distinct + end + + # Gera e inicia o download do arquivo CSV com os resultados consolidados de um formulário. + # + # Args: + # - params[:id] (Integer): ID do formulário cujos resultados serão exportados. + # Retorno: + # - Envia um arquivo de dados (send_data) com formato CSV para o navegador. + # Efeitos Colaterais: + # - Realiza consulta ao banco de dados. + # - Processa a geração do CSV em memória (via método gerar_csv do model). + def baixar + @formulario = Formulario.find(params[:id]) + + respond_to do |format| + format.csv do + send_data @formulario.gerar_csv, + filename: "resultados-#{Date.today}-#{@formulario.titulo.parameterize}.csv" + end + end + end +end \ No newline at end of file diff --git a/app/app/controllers/sessions_controller.rb b/app/app/controllers/sessions_controller.rb new file mode 100644 index 0000000000..4c5d8817af --- /dev/null +++ b/app/app/controllers/sessions_controller.rb @@ -0,0 +1,48 @@ +# Gerencia o ciclo de vida da autenticação do usuário (Login e Logout). +# Responsável por criar e destruir a sessão do usuário no navegador. +class SessionsController < ApplicationController + + # Exibe o formulário de login para o usuário. + # + # Args: Nenhum + # Retorno: Renderiza a view 'new'. + # Efeitos Colaterais: Nenhum. + def new; end + + # Processa as credenciais de login enviadas pelo formulário. + # Verifica se o usuário existe e se a senha confere. + # + # Args: + # - params[:email] (String): O e-mail do usuário. + # - params[:password] (String): A senha em texto plano. + # Retorno: + # - Redireciona para root_path (se as credenciais forem válidas). + # - Renderiza a view 'new' com status unprocessable_entity (se inválidas). + # Efeitos Colaterais: + # - Realiza consulta ao banco de dados (find_by). + # - Define o ID do usuário na sessão (session[:user_id]) em caso de sucesso. + # - Define mensagens flash (notice ou alert). + def create + user = Usuario.find_by(email: params[:email]) + + if user&.authenticate(params[:password]) + session[:user_id] = user.id + redirect_to root_path, notice: 'Logado com sucesso!' + else + flash.now[:alert] = 'Email ou senha inválidos' + render :new, status: :unprocessable_entity + end + end + + # Encerra a sessão atual do usuário (Logout). + # + # Args: Nenhum + # Retorno: Redireciona para a tela de login (login_path). + # Efeitos Colaterais: + # - Remove o ID do usuário da sessão (session[:user_id] = nil). + # - Define mensagem flash de sucesso. + def destroy + session[:user_id] = nil + redirect_to login_path, notice: 'Deslogado.' + end +end \ No newline at end of file diff --git a/app/app/controllers/templates_controller.rb b/app/app/controllers/templates_controller.rb new file mode 100644 index 0000000000..60a98e8da8 --- /dev/null +++ b/app/app/controllers/templates_controller.rb @@ -0,0 +1,145 @@ +# Gerencia as operações de CRUD (Criação, Leitura, Atualização e Exclusão) +# para os Templates de avaliação. Permite que administradores configurem +# questionários base que serão clonados para as turmas. +class TemplatesController < ApplicationController + before_action :require_login + layout 'dashboard' + + rescue_from ActiveRecord::RecordNotFound, with: :handle_not_found + + before_action :load_and_authorize_template, only: %i[edit update destroy] + + # Lista todos os templates cadastrados no sistema, ordenados por data de criação. + # + # Args: Nenhum + # Retorno: Renderiza a view 'index' com a variável @templates populada. + # Efeitos Colaterais: Realiza consulta ao banco de dados (all). + def index + @templates = Template.all.order(created_at: :desc) + end + + # Instancia um novo objeto Template e constrói a estrutura inicial de questões. + # Utilizado para renderizar o formulário de criação vazio. + # + # Args: Nenhum + # Retorno: Renderiza a view 'new'. + # Efeitos Colaterais: Instancia objetos em memória (Template, QuestaoTemplate, OpcaoTemplate). + def new + @template = Template.new + @template.build_initial_structure + end + + # Processa a criação de um novo template no banco de dados. + # + # Args: + # - params[:template] (Hash): Parâmetros do formulário contendo nome e questões aninhadas. + # Retorno: + # - Redireciona para templates_path (sucesso). + # - Renderiza a view 'new' (erro). + # Efeitos Colaterais: + # - Insere registros nas tabelas Template, QuestaoTemplate e OpcaoTemplate. + # - Define mensagens flash. + def create + @template = Template.new(template_params) + @template.usuario = current_user + handle_persistence(@template, :new, "criado") + end + + # Exibe o formulário de edição para um template existente. + # + # Args: + # - params[:id] (Integer): ID do template (validado no before_action). + # Retorno: Renderiza a view 'edit'. + # Efeitos Colaterais: Pode instanciar estruturas vazias em memória se o template não tiver questões. + def edit + @template.build_initial_structure if @template.questao_templates.empty? + end + + # Atualiza os atributos de um template existente. + # + # Args: + # - params[:id] (Integer): ID do template. + # - params[:template] (Hash): Novos dados do formulário. + # Retorno: + # - Redireciona para templates_path (sucesso). + # - Renderiza a view 'edit' (erro). + # Efeitos Colaterais: + # - Atualiza registros no banco de dados. + # - Define mensagens flash. + def update + @template.assign_attributes(template_params) + handle_persistence(@template, :edit, "atualizado") + end + + # Remove permanentemente um template do sistema. + # + # Args: + # - params[:id] (Integer): ID do template a ser excluído. + # Retorno: Redireciona para templates_path. + # Efeitos Colaterais: + # - Remove o registro e suas associações (questões/opções) do banco de dados. + # - Define mensagem flash de sucesso. + def destroy + nome = @template.nome + @template.destroy + redirect_to templates_path, notice: "Template '#{nome}' excluído com sucesso." + end + + private + + # Método auxiliar para centralizar a lógica de salvamento e resposta (DRY). + # + # Args: + # - template (Template): A instância do objeto a ser salvo. + # - render_view (Symbol): A view a ser renderizada em caso de erro (:new ou :edit). + # - success_action (String): Verbo para mensagem de sucesso ("criado" ou "atualizado"). + # Retorno: Redirecionamento ou Renderização. + # Efeitos Colaterais: Executa o .save no banco e define Flash messages. + def handle_persistence(template, render_view, success_action) + if template.save + redirect_to templates_path, notice: "Template #{success_action} com sucesso!" + else + flash.now[:alert] = "Erro ao salvar template. Verifique os campos." + render render_view, status: :unprocessable_entity + end + end + + # Define os parâmetros permitidos (Strong Parameters) para templates e nested attributes. + # + # Args: params (ActionController::Parameters) + # Retorno: Hash permitido com a estrutura do template. + # Efeitos Colaterais: Nenhum. + def template_params + params.require(:template).permit( + :nome, + questao_templates_attributes: [ + :id, :texto_questao, :tipo_resposta, :_destroy, + { opcao_templates_attributes: %i[id texto_opcao numero_opcao _destroy] } + ] + ) + end + + # Carrega o template e verifica se o usuário atual é o dono dele. + # + # Args: params[:id] + # Retorno: + # - nil (se autorizado). + # - Redireciona para templates_path (se não autorizado). + # Efeitos Colaterais: Define @template ou interrompe a requisição. + def load_and_authorize_template + @template = Template.includes(questao_templates: :opcao_templates).find(params[:id]) + + return if @template.usuario_id == current_user.id + + redirect_to templates_path, alert: "Você não tem permissão para acessar este template." + end + + # Trata exceções de registro não encontrado. + # + # Args: Nenhum + # Retorno: Redireciona para a listagem. + # Efeitos Colaterais: Define mensagem flash de alerta. + def handle_not_found + redirect_to templates_path, alert: "Template não encontrado." + end +end \ No newline at end of file diff --git a/app/app/controllers/users_controller.rb b/app/app/controllers/users_controller.rb new file mode 100644 index 0000000000..20c3c01efa --- /dev/null +++ b/app/app/controllers/users_controller.rb @@ -0,0 +1,48 @@ +# Controlador responsável pelo cadastro de novos usuários no sistema (Sign Up). +class UsersController < ApplicationController + + # Exibe o formulário de cadastro para um novo usuário. + # + # Args: Nenhum + # Retorno: Renderiza a view 'new' com a variável @usuario inicializada. + # Efeitos Colaterais: Instancia um objeto Usuario em memória. + def new + @usuario = Usuario.new + end + + # Processa os dados do formulário de cadastro e cria o usuário no banco. + # Se bem-sucedido, realiza o login automático do usuário. + # + # Args: + # - params[:usuario] (Hash): Atributos do usuário (nome, email, senha, etc). + # Retorno: + # - Redireciona para root_path (sucesso). + # - Renderiza a view 'new' com status unprocessable_entity (erro). + # Efeitos Colaterais: + # - Cria um novo registro na tabela usuarios. + # - Define a sessão do usuário (session[:user_id]). + # - Define mensagens flash (notice/alert). + def create + @usuario = Usuario.new(user_params) + + if @usuario.save + session[:user_id] = @usuario.id + flash[:notice] = "Cadastro realizado com sucesso!" + redirect_to root_path + else + flash.now[:alert] = "Não foi possível realizar o cadastro." + render :new, status: :unprocessable_entity + end + end + + private + + # Filtra os parâmetros permitidos para o cadastro de usuário (Strong Parameters). + # + # Args: params (ActionController::Parameters) + # Retorno: Hash contendo apenas os atributos permitidos para Usuario. + # Efeitos Colaterais: Nenhum. + def user_params + params.require(:usuario).permit(:nome, :email, :matricula, :password, :password_confirmation, :ocupacao) + end +end \ No newline at end of file diff --git a/app/app/helpers/application_helper.rb b/app/app/helpers/application_helper.rb new file mode 100644 index 0000000000..df27358c26 --- /dev/null +++ b/app/app/helpers/application_helper.rb @@ -0,0 +1,7 @@ +# Módulo auxiliar base para as views da aplicação. +# Métodos definidos aqui ficam disponíveis automaticamente em todas as views (.html.erb) do sistema. +# +# Embora esteja vazio atualmente, serve como ponto central para definir lógica de apresentação +# compartilhada (formatadores de data, badges de status, etc.) no futuro. +module ApplicationHelper +end \ No newline at end of file diff --git a/app/app/helpers/dashboard_helper.rb b/app/app/helpers/dashboard_helper.rb new file mode 100644 index 0000000000..6b475c0257 --- /dev/null +++ b/app/app/helpers/dashboard_helper.rb @@ -0,0 +1,76 @@ +# Módulo auxiliar para a lógica de apresentação do Dashboard do usuário (Aluno/Professor). +# Centraliza verificações de status de formulários e contagem de pendências para manter as views limpas. +module DashboardHelper + + # Verifica se existe uma avaliação disponível para a turma que ainda não foi respondida pelo aluno. + # Utiliza o primeiro formulário associado à turma como base para a verificação. + # + # Args: + # - turma (Turma): O objeto da turma a ser verificado. + # - ids_respondidos (Array): Lista de IDs dos formulários que o usuário atual já respondeu. + # + # Retorna: + # - Boolean: true se houver um formulário presente e não respondido, false caso contrário. + # + # Efeitos Colaterais: Nenhum (apenas leitura de dados). + def turma_tem_formulario_pendente?(turma, ids_respondidos) + formulario = turma.formularios.first + formulario.present? && !ids_respondidos.include?(formulario.id) + end + + # Determina o estado atual de um formulário específico com base no histórico do usuário. + # + # Args: + # - formulario_id (Integer): O ID do formulário a ser verificado. + # - ids_respondidos (Array): Lista de IDs de formulários já submetidos pelo usuário. + # + # Retorna: + # - String: 'respondido' (se o ID estiver na lista) ou 'pendente' (caso contrário). + # + # Efeitos Colaterais: Nenhum. + def status_formulario(formulario_id, ids_respondidos) + if ids_respondidos.include?(formulario_id) + 'respondido' + else + 'pendente' + end + end + + # Calcula o número total de avaliações que o aluno ainda precisa responder. + # Útil para exibir contadores de notificação ou badges no painel. + # + # Args: + # - turmas (ActiveRecord::Relation | Array): Coleção de turmas em que o aluno está matriculado. + # - ids_respondidos (Array): Lista de IDs de formulários já respondidos. + # + # Retorna: + # - Integer: A quantidade de turmas com formulários pendentes. + # + # Efeitos Colaterais: Itera sobre a coleção de turmas. + def contar_formularios_pendentes(turmas, ids_respondidos) + turmas.count do |turma| + turma_tem_formulario_pendente?(turma, ids_respondidos) + end + end + + # Traduz o código de status técnico para uma mensagem legível (human-readable) na interface. + # + # Args: + # - status (String): O código de status ('respondido', 'pendente', etc.). + # + # Retorna: + # - String: O texto formatado para exibição (ex: "Avaliação Respondida"). + # - String: "Status Desconhecido" caso o argumento não corresponda a nenhum caso. + # + # Efeitos Colaterais: Nenhum. + def mensagem_status_formulario(status) + case status + when 'respondido' + 'Avaliação Respondida' + when 'pendente' + 'Avaliação Pendente' + else + 'Status Desconhecido' + end + end +end \ No newline at end of file diff --git a/app/app/helpers/formularios_helper.rb b/app/app/helpers/formularios_helper.rb new file mode 100644 index 0000000000..16e30cca69 --- /dev/null +++ b/app/app/helpers/formularios_helper.rb @@ -0,0 +1,63 @@ +# Módulo auxiliar para a exibição de detalhes dos formulários nas views. +# Responsável por formatação de textos técnicos, definição de estilos visuais (CSS) +# baseados em estado e verificações de conteúdo do formulário. +module FormulariosHelper + + # Traduz o código técnico do tipo de resposta para um texto legível na interface. + # Útil para mostrar ao usuário "Resposta Aberta" ao invés de "texto" ou "text_area". + # + # Args: + # - tipo (String): O identificador do tipo de resposta (ex: 'texto', 'multipla_escolha'). + # + # Retorno: + # - String: O nome formatado e amigável (Human Readable). + # + # Efeitos Colaterais: Nenhum. + def formato_tipo_resposta(tipo) + case tipo + when 'texto' + 'Resposta Aberta' + when 'multipla_escolha' + 'Múltipla Escolha' + else + tipo.humanize + end + end + + # Retorna as classes CSS apropriadas para estilizar o container da pergunta + # com base no seu tipo. Permite diferenciação visual (ex: cores diferentes) + # entre perguntas de texto e de múltipla escolha. + # + # Args: + # - tipo (String): O identificador do tipo de resposta. + # + # Retorno: + # - String: Uma lista de classes CSS (ex: Tailwind 'bg-blue-50 ...'). + # + # Efeitos Colaterais: Nenhum. + def classe_tipo_resposta(tipo) + case tipo + when 'texto' + 'bg-blue-50 border-blue-200' + when 'multipla_escolha' + 'bg-purple-50 border-purple-200' + else + 'bg-gray-50 border-gray-200' + end + end + + # Verifica se um formulário específico possui perguntas associadas. + # Utilizado para exibir mensagens de "Formulário vazio" ou ocultar botões de envio. + # + # Args: + # - formulario (Formulario): O objeto formulário a ser verificado. + # + # Retorno: + # - Boolean: true se houver pelo menos uma questão, false caso contrário. + # + # Efeitos Colaterais: + # - Realiza consulta ao banco de dados (exists?/any?) na associação questao_formularios. + def formulario_tem_questoes?(formulario) + formulario.questao_formularios.any? + end +end \ No newline at end of file diff --git a/app/app/helpers/sessions_helper.rb b/app/app/helpers/sessions_helper.rb new file mode 100644 index 0000000000..99af1a83ff --- /dev/null +++ b/app/app/helpers/sessions_helper.rb @@ -0,0 +1,8 @@ +# Módulo auxiliar para gerenciar a lógica de visualização relacionada à sessão do usuário. +# +# Embora a lógica principal de autenticação (como current_user e logged_in?) +# esteja frequentemente centralizada no ApplicationController e exposta via helper_method, +# este módulo serve como namespace reservado para helpers específicos das views de login/logout +# (ex: formatação de mensagens de boas-vindas, links condicionais de sessão) em expansões futuras. +module SessionsHelper +end diff --git a/app/app/javascript/application.js b/app/app/javascript/application.js new file mode 100644 index 0000000000..ec0bf07de9 --- /dev/null +++ b/app/app/javascript/application.js @@ -0,0 +1,4 @@ +// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails +import "@hotwired/turbo-rails" +import "controllers" +import "controllers/template_form_handler" \ No newline at end of file diff --git a/app/app/javascript/controllers/application.js b/app/app/javascript/controllers/application.js new file mode 100644 index 0000000000..1213e85c7a --- /dev/null +++ b/app/app/javascript/controllers/application.js @@ -0,0 +1,9 @@ +import { Application } from "@hotwired/stimulus" + +const application = Application.start() + +// Configure Stimulus development experience +application.debug = false +window.Stimulus = application + +export { application } diff --git a/app/app/javascript/controllers/dropdown_controller.js b/app/app/javascript/controllers/dropdown_controller.js new file mode 100644 index 0000000000..1806630fa0 --- /dev/null +++ b/app/app/javascript/controllers/dropdown_controller.js @@ -0,0 +1,17 @@ +import { Controller } from "@hotwired/stimulus" + +export default class extends Controller { + static targets = ["menu"] + + toggle() { + // Alterna a visibilidade do menu + this.menuTarget.classList.toggle("hidden") + } + + // (Opcional) Fecha o menu se clicar fora dele + hide(event) { + if (!this.element.contains(event.target)) { + this.menuTarget.classList.add("hidden") + } + } +} \ No newline at end of file diff --git a/app/app/javascript/controllers/hello_controller.js b/app/app/javascript/controllers/hello_controller.js new file mode 100644 index 0000000000..5975c0789d --- /dev/null +++ b/app/app/javascript/controllers/hello_controller.js @@ -0,0 +1,7 @@ +import { Controller } from "@hotwired/stimulus" + +export default class extends Controller { + connect() { + this.element.textContent = "Hello World!" + } +} diff --git a/app/app/javascript/controllers/index.js b/app/app/javascript/controllers/index.js new file mode 100644 index 0000000000..1156bf8362 --- /dev/null +++ b/app/app/javascript/controllers/index.js @@ -0,0 +1,4 @@ +// Import and register all your controllers from the importmap via controllers/**/*_controller +import { application } from "controllers/application" +import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading" +eagerLoadControllersFrom("controllers", application) diff --git a/app/app/javascript/controllers/sidebar_controller.js b/app/app/javascript/controllers/sidebar_controller.js new file mode 100644 index 0000000000..e39fd601bd --- /dev/null +++ b/app/app/javascript/controllers/sidebar_controller.js @@ -0,0 +1,9 @@ +import { Controller } from "@hotwired/stimulus" + +export default class extends Controller { + static targets = [ "menu" ] + + toggle() { + this.menuTarget.classList.toggle("hidden") + } +} \ No newline at end of file diff --git a/app/app/javascript/controllers/template_form_handler.js b/app/app/javascript/controllers/template_form_handler.js new file mode 100644 index 0000000000..e8d5d1056d --- /dev/null +++ b/app/app/javascript/controllers/template_form_handler.js @@ -0,0 +1,206 @@ +document.addEventListener('turbo:load', () => { + const formContainer = document.querySelector('.template-form-container'); + if (!formContainer) return; + + // Inicializa o índice global de questões para NOVOS campos. + // O valor inicial é o número de blocos existentes na página (para que novos IDs não se sobreponham). + let questionIndex = formContainer.querySelectorAll('.js-question-block').length; + let optionCounters = {}; + + // --- Lógica de Remoção (Marca para exclusão ou remove do DOM) --- + const removeNestedItem = (event) => { + event.preventDefault(); + // Item pode ser o bloco da Questão (.js-question-block) ou Opção (.js-option-item) + const itemToRemove = event.target.closest('.js-question-block') || event.target.closest('.js-option-item'); + if (!itemToRemove) return; + + // O campo _destroy é necessário para dizer ao Rails para deletar no banco. + const destroyField = itemToRemove.querySelector('input[name*="_destroy"]'); + + if (destroyField) { + // Se tem _destroy (item existe no banco ou foi recém-criado na tela): + destroyField.value = '1'; + itemToRemove.style.display = 'none'; // Esconde visualmente (soft delete) + } else { + // Se não tem (item criado e deletado antes de salvar), apenas remove do DOM: + itemToRemove.remove(); + } + }; + + // --- Lógica de Criação --- + + const toggleOptionsVisibility = (typeSelect) => { + const questionBlock = typeSelect.closest('.js-question-block'); + if (!questionBlock) return; + + const optionsContainer = questionBlock.querySelector('.js-options-container'); + const addOptionButton = questionBlock.querySelector('.js-add-option-button'); + + if (typeSelect.value === 'Radio') { + optionsContainer.classList.remove('hidden'); + addOptionButton.classList.remove('hidden'); + } else { + optionsContainer.classList.add('hidden'); + addOptionButton.classList.add('hidden'); + } + }; + + // ADICIONAR NOVA OPÇÃO (CORRIGIDO: NOME DA ASSOCIAÇÃO) + const addOptionField = (event) => { + event.preventDefault(); + + const questionBlock = event.target.closest('.js-question-block'); + // Pega o índice único da questão pai + const qIndex = questionBlock.dataset.qindex; + const optionList = questionBlock.querySelector('.js-options-list'); + + // Garante que o contador comece do zero para novos índices + if (optionCounters[qIndex] === undefined) { + // Se for a primeira vez, conta as existentes para continuar + optionCounters[qIndex] = questionBlock.querySelectorAll('.js-option-item').length; + } + + const optionIndex = new Date().getTime(); // Usar timestamp para índice único (Rails) + + const newOption = document.createElement('div'); + newOption.classList.add('mt-2', 'js-option-item'); + + newOption.innerHTML = ` +
+ + + + + + + + +
+ `; + optionList.appendChild(newOption); + + // Atribui listener ao novo botão de remoção + newOption.querySelector('.js-remove-option-btn').addEventListener('click', removeNestedItem); + optionCounters[qIndex]++; // Incrementa o contador de opções para a próxima + }; + + // ADICIONAR NOVA QUESTÃO (CORRIGIDO: INCLUSÃO DE CAMPOS OBRIGATÓRIOS) + const addNewQuestionBlock = (event) => { + event.preventDefault(); + + // Usa o índice global e incrementa + const qIndex = new Date().getTime(); // Timestamp para índice único (importante para novos) + optionCounters[qIndex] = 0; + + const newQuestionHTML = ` +
+

Nova Questão

+ + + + + +
+
+ + +
+ +
+ + +
+
+ +
+ +
+
+
+ +
+ +
+ +
+ +
+
+ `; + + const container = formContainer.querySelector('#questions-container'); + container.insertAdjacentHTML('beforeend', newQuestionHTML); + + questionIndex++; // Incrementa o índice global (embora qIndex seja timestamp, o count é útil) + + // Atacha listeners para o novo bloco + attachListeners(); + }; + + + // --- Inicialização e Reaplicação de Listeners --- + const attachListeners = () => { + // 1. Visibilidade de Opções + formContainer.querySelectorAll('.js-type-select').forEach(select => { + select.removeEventListener('change', (e) => toggleOptionsVisibility(e.target)); + select.addEventListener('change', (e) => toggleOptionsVisibility(e.target)); + toggleOptionsVisibility(select); + }); + + // 2. Adicionar Opção + formContainer.querySelectorAll('.js-add-option').forEach(button => { + button.removeEventListener('click', addOptionField); + button.addEventListener('click', addOptionField); + }); + + // 3. Remover Questão + formContainer.querySelectorAll('.js-remove-question').forEach(button => { + button.removeEventListener('click', removeNestedItem); + button.addEventListener('click', removeNestedItem); + }); + + // 4. Remover Opção (Botões X) + formContainer.querySelectorAll('.js-remove-option-btn').forEach(button => { + button.removeEventListener('click', removeNestedItem); + button.addEventListener('click', removeNestedItem); + }); + + // 5. Adicionar Questão (Botão Principal) + const mainAddQuestionButton = formContainer.querySelector('.js-add-question'); + if (mainAddQuestionButton) { + mainAddQuestionButton.removeEventListener('click', addNewQuestionBlock); + mainAddQuestionButton.addEventListener('click', addNewQuestionBlock); + } + + // 6. INICIALIZAR data-qindex e optionCounters para campos existentes (ESSENCIAL PARA EDIÇÃO) + formContainer.querySelectorAll('.js-question-block').forEach((block, index) => { + if (!block.dataset.qindex) { + // Para campos existentes, usamos o índice sequencial para o JS + block.dataset.qindex = index; + + // Inicializa o contador de opções com base no que já está na tela + const existingOptionsCount = block.querySelectorAll('.js-option-item').length; + optionCounters[index] = existingOptionsCount; + } + }); + }; + + attachListeners(); +}); \ No newline at end of file diff --git a/app/app/jobs/application_job.rb b/app/app/jobs/application_job.rb new file mode 100644 index 0000000000..813ab6566c --- /dev/null +++ b/app/app/jobs/application_job.rb @@ -0,0 +1,13 @@ +# Classe base abstrata para todos os Jobs (tarefas em segundo plano) da aplicação. +# Centraliza configurações comuns, como estratégias de retentativa (retry) +# e tratamento de erros de serialização, que serão herdadas por todos os workers. +# +# Embora não tenha métodos ativos no momento, serve como ponto de extensão +# para configurações globais do ActiveJob. +class ApplicationJob < ActiveJob::Base + # Automatically retry jobs that encountered a deadlock + # retry_on ActiveRecord::Deadlocked + + # Most jobs are safe to ignore if the underlying records are no longer available + # discard_on ActiveJob::DeserializationError +end \ No newline at end of file diff --git a/app/app/mailers/application_mailer.rb b/app/app/mailers/application_mailer.rb new file mode 100644 index 0000000000..96aced9324 --- /dev/null +++ b/app/app/mailers/application_mailer.rb @@ -0,0 +1,12 @@ +# Classe base para todos os disparadores de e-mail (Mailers) da aplicação. +# Centraliza configurações comuns, como o remetente padrão e o layout visual, +# garantindo consistência em todas as comunicações enviadas pelo sistema. +class ApplicationMailer < ActionMailer::Base + # Define o remetente padrão ("From") para todos os e-mails. + # Este valor será usado caso um mailer específico não defina um remetente próprio. + default from: "from@example.com" + + # Define o arquivo de layout base (geralmente app/views/layouts/mailer.html.erb) + # que envolverá o corpo de todos os e-mails, aplicando estilos e estruturas comuns. + layout "mailer" +end \ No newline at end of file diff --git a/app/app/mailers/user_mailer.rb b/app/app/mailers/user_mailer.rb new file mode 100644 index 0000000000..dbff4c704a --- /dev/null +++ b/app/app/mailers/user_mailer.rb @@ -0,0 +1,24 @@ +# Responsável pelo envio de e-mails transacionais relacionados à conta do usuário. +# Gerencia as notificações de sistema, como a recuperação de senha. +class UserMailer < ApplicationMailer + + # Prepara o e-mail de redefinição de senha para ser enviado ao usuário. + # O corpo do e-mail conterá o link com o token necessário para autorizar a troca. + # + # Args: + # - user (Usuario): O objeto do usuário que solicitou a recuperação. + # - token (String): O token de segurança (em texto plano) gerado no model. + # + # Retorno: + # - Mail::Message: O objeto de e-mail construído, configurado e pronto para entrega. + # + # Efeitos Colaterais: + # - Renderiza o template de view associado (views/user_mailer/password_reset). + # - Define as variáveis de instância @user e @token disponíveis para o template. + def password_reset(user, token) + @user = user + @token = token + + mail to: user.email, subject: "Redefinição de Senha - CAMAAR" + end +end \ No newline at end of file diff --git a/app/app/models/application_record.rb b/app/app/models/application_record.rb new file mode 100644 index 0000000000..1c6c6b1006 --- /dev/null +++ b/app/app/models/application_record.rb @@ -0,0 +1,9 @@ +# Classe base abstrata para todos os modelos (Models) da aplicação. +# Atua como uma camada intermediária entre o framework (ActiveRecord::Base) +# e os modelos de negócio (Usuario, Template, Formulario, etc). +# +# A diretiva `primary_abstract_class` informa ao Rails que esta classe +# não possui uma tabela própria no banco de dados e serve apenas para herança. +class ApplicationRecord < ActiveRecord::Base + primary_abstract_class +end \ No newline at end of file diff --git a/app/app/models/concerns/.keep b/app/app/models/concerns/.keep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/app/models/concerns/password_resetable.rb b/app/app/models/concerns/password_resetable.rb new file mode 100644 index 0000000000..e2c3b538b3 --- /dev/null +++ b/app/app/models/concerns/password_resetable.rb @@ -0,0 +1,64 @@ +# Encapsula toda a lógica relacionada à redefinição de senha segura. +# Permite que o model Usuario foque apenas em identidade e validações. +module PasswordResetable + extend ActiveSupport::Concern + + # Gera um novo token de redefinição, salva o hash no banco e envia o e-mail ao usuário. + # + # Args: Nenhum + # Retorno: Objeto Mail (resultado do deliver_now). + # Efeitos Colaterais: + # - Atualiza colunas reset_digest e reset_sent_at no banco de dados. + # - Dispara um e-mail via SMTP/Provider. + def send_password_reset_email + token = create_reset_digest + UserMailer.password_reset(self, token).deliver_now + end + + # Limpa os dados de redefinição de senha após o uso bem-sucedido. + # Previne que o mesmo link seja usado duas vezes (ataque de replay). + # + # Args: Nenhum + # Retorno: Boolean (resultado da atualização). + # Efeitos Colaterais: Define reset_digest e reset_sent_at como nil no banco. + def clear_reset_digest + update_columns(reset_digest: nil, reset_sent_at: nil) + end + + # Verifica se o token fornecido é válido e se a solicitação não expirou. + # + # Args: + # - token (String): O token recebido via parâmetro na URL (texto plano). + # Retorno: Boolean (true se válido e não expirado, false caso contrário). + # Efeitos Colaterais: Nenhum. + def valid_reset_token?(token) + return false unless reset_digest + return false if password_reset_expired? + + BCrypt::Password.new(reset_digest).is_password?(token) + end + + private + + # Gera um token aleatório seguro, cria o hash BCrypt e salva no banco. + # + # Args: Nenhum + # Retorno: String (O token em texto plano para ser enviado por email). + # Efeitos Colaterais: Persiste o hash e o timestamp no banco de dados (update_columns). + def create_reset_digest + token = SecureRandom.urlsafe_base64 + update_columns(reset_digest: BCrypt::Password.create(token), reset_sent_at: Time.zone.now) + token + end + + # Verifica se o prazo de validade do token (2 horas) já passou. + # + # Args: Nenhum + # Retorno: Boolean (true se expirado ou sem data, false se válido). + # Efeitos Colaterais: Nenhum. + def password_reset_expired? + return true unless reset_sent_at + + reset_sent_at < 2.hours.ago + end +end \ No newline at end of file diff --git a/app/app/models/departamento.rb b/app/app/models/departamento.rb new file mode 100644 index 0000000000..a9ca60d6d3 --- /dev/null +++ b/app/app/models/departamento.rb @@ -0,0 +1,7 @@ +# Representa um Departamento da universidade (ex: Ciência da Computação, Matemática). +# Atua como uma entidade organizadora que agrupa as matérias ofertadas. +class Departamento < ApplicationRecord + # Associações: + # Um departamento é responsável por ofertar várias matérias. + has_many :materias +end \ No newline at end of file diff --git a/app/app/models/formulario.rb b/app/app/models/formulario.rb new file mode 100644 index 0000000000..1227b676f0 --- /dev/null +++ b/app/app/models/formulario.rb @@ -0,0 +1,24 @@ +# Representa o modelo de Formulário, contendo as definições das questões. +# É a entidade central que conecta as perguntas (QuestaoFormulario), +# as turmas onde foi aplicado (FormularioTurma) e as respostas dos alunos (FormularioRespondido). +class Formulario < ApplicationRecord + has_many :questao_formularios, dependent: :destroy + has_many :formulario_respondidos, dependent: :destroy + has_many :formulario_turmas + has_many :turmas, through: :formulario_turmas + + # Gera uma string formatada em CSV contendo os dados consolidados das respostas. + # Delega a complexidade de formatação para o serviço FormularioExportService. + # + # Args: Nenhum + # + # Retorno: + # - String: O conteúdo textual do CSV gerado (cabeçalhos + linhas de resposta). + # + # Efeitos Colaterais: + # - Realiza consultas ao banco de dados (via Service) para buscar questões e respostas associadas. + # - Não altera dados no banco. + def gerar_csv + FormularioExportService.new(self).call + end +end \ No newline at end of file diff --git a/app/app/models/formulario_respondido.rb b/app/app/models/formulario_respondido.rb new file mode 100644 index 0000000000..90d5540520 --- /dev/null +++ b/app/app/models/formulario_respondido.rb @@ -0,0 +1,20 @@ +# Representa a concretização de uma avaliação respondida por um usuário. +# Atua como a entidade "pai" que agrupa todas as respostas individuais (QuestaoRespondida) +# de um aluno para um determinado formulário. +class FormularioRespondido < ApplicationRecord + # Associações: + # - formulario: O questionário base que foi respondido. + # - usuario: O aluno ou professor que submeteu as respostas. + belongs_to :formulario + belongs_to :usuario + + # As respostas específicas para cada pergunta do formulário. + # A opção `dependent: :destroy` garante que, se a resposta geral for excluída, + # as respostas das questões individuais também sejam removidas do banco. + has_many :questao_respondidas, dependent: :destroy + + # Configuração que permite criar/salvar o objeto FormularioRespondido e + # seus objetos filhos (QuestaoRespondida) em uma única transação. + # Essencial para o funcionamento do FormResponseService. + accepts_nested_attributes_for :questao_respondidas +end \ No newline at end of file diff --git a/app/app/models/formulario_turma.rb b/app/app/models/formulario_turma.rb new file mode 100644 index 0000000000..f04a3a8ca9 --- /dev/null +++ b/app/app/models/formulario_turma.rb @@ -0,0 +1,12 @@ +# Modelo de associação (Join Table) entre Formulários e Turmas. +# Representa a aplicação de uma avaliação específica em uma turma específica. +# +# É através desta tabela que o sistema sabe quais turmas devem responder +# a quais formulários. +class FormularioTurma < ApplicationRecord + # Associações: + # - formulario: O questionário de avaliação a ser aplicado. + # - turma: A turma (matéria/semestre) que receberá esta avaliação. + belongs_to :formulario + belongs_to :turma +end \ No newline at end of file diff --git a/app/app/models/materia.rb b/app/app/models/materia.rb new file mode 100644 index 0000000000..6fb50ba216 --- /dev/null +++ b/app/app/models/materia.rb @@ -0,0 +1,10 @@ +# Representa uma disciplina ou matéria acadêmica ofertada pela universidade (ex: "Cálculo 1", "Engenharia de Software"). +# É a definição do conteúdo pedagógico, que pode ser ofertado em várias turmas ao longo dos semestres. +class Materia < ApplicationRecord + # Associações: + # - departamento: A unidade acadêmica responsável por ofertar esta matéria. + belongs_to :departamento + + # - turmas: As instâncias reais de oferta desta matéria (com professor, horário e semestre definidos). + has_many :turmas +end \ No newline at end of file diff --git a/app/app/models/opcao_formulario.rb b/app/app/models/opcao_formulario.rb new file mode 100644 index 0000000000..5ff3c9212e --- /dev/null +++ b/app/app/models/opcao_formulario.rb @@ -0,0 +1,11 @@ +# Representa uma opção de resposta disponível para uma questão de um formulário. +# (Ex: "Sim", "Não", "Talvez"). +# +# Geralmente é criada como uma cópia de uma `OpcaoTemplate` quando um template +# é distribuído para uma turma, garantindo que o histórico do formulário +# se mantenha intacto mesmo se o template original for alterado. +class OpcaoFormulario < ApplicationRecord + # Associações: + # - questao_formulario: A questão específica à qual esta opção pertence. + belongs_to :questao_formulario +end \ No newline at end of file diff --git a/app/app/models/opcao_template.rb b/app/app/models/opcao_template.rb new file mode 100644 index 0000000000..890cb7138f --- /dev/null +++ b/app/app/models/opcao_template.rb @@ -0,0 +1,14 @@ +# Representa uma opção de resposta predefinida para uma Questão de Template. +# É utilizada em questões de múltipla escolha (ex: "Concordo totalmente", "Discordo") +# durante a criação de um modelo de avaliação (Template) pelo administrador. +class OpcaoTemplate < ApplicationRecord + # Associações: + # - questao_template: A questão "pai" à qual esta opção pertence. + belongs_to :questao_template + + # Validações: + # - texto_opcao: O texto visível da opção (Obrigatório). + # - numero_opcao: A ordem ou valor numérico da opção para ordenação (Obrigatório). + validates :texto_opcao, presence: true + validates :numero_opcao, presence: true +end \ No newline at end of file diff --git a/app/app/models/questao_formulario.rb b/app/app/models/questao_formulario.rb new file mode 100644 index 0000000000..264ea5dea8 --- /dev/null +++ b/app/app/models/questao_formulario.rb @@ -0,0 +1,15 @@ +# Representa uma questão individual dentro de um formulário ativo. +# É criada (geralmente como cópia de uma QuestaoTemplate) quando um formulário +# é distribuído para uma turma, tornando-se independente do template original. +class QuestaoFormulario < ApplicationRecord + # Associações: + # - formulario: O questionário ao qual esta pergunta pertence. + belongs_to :formulario + + # - opcao_formularios: As alternativas de resposta disponíveis (para questões de múltipla escolha). + # A opção `dependent: :destroy` garante que as opções sejam apagadas se a questão for excluída. + has_many :opcao_formularios, dependent: :destroy + + # - questao_respondidas: O conjunto de respostas dadas pelos usuários para esta pergunta específica. + has_many :questao_respondidas +end \ No newline at end of file diff --git a/app/app/models/questao_respondida.rb b/app/app/models/questao_respondida.rb new file mode 100644 index 0000000000..cc52228203 --- /dev/null +++ b/app/app/models/questao_respondida.rb @@ -0,0 +1,19 @@ +# Representa a resposta individual dada por um usuário para uma única questão. +# É a menor unidade de informação de uma avaliação preenchida. +# +# Armazena o vínculo entre a pergunta feita (QuestaoFormulario) e o +# formulário preenchido (FormularioRespondido), contendo a escolha do usuário. +class QuestaoRespondida < ApplicationRecord + # Associações: + + # - formulario_respondido: O registro "pai" que agrupa todas as respostas deste envio. + belongs_to :formulario_respondido + + # - questao_formulario: A definição da pergunta que foi respondida. + belongs_to :questao_formulario + + # - opcao_formulario: A alternativa específica selecionada pelo usuário. + # Configurado como `optional: true` porque, em casos de perguntas dissertativas + # (texto livre), não existe uma opção selecionada (o valor fica nulo e a resposta vai em outra coluna). + belongs_to :opcao_formulario, optional: true +end \ No newline at end of file diff --git a/app/app/models/questao_template.rb b/app/app/models/questao_template.rb new file mode 100644 index 0000000000..fff8ac067f --- /dev/null +++ b/app/app/models/questao_template.rb @@ -0,0 +1,22 @@ +# Representa a definição de uma pergunta dentro de um Template de avaliação. +# Serve como o "molde" que será copiado para criar as QuestaoFormulario +# quando o template for distribuído para uma turma. +class QuestaoTemplate < ApplicationRecord + # Associações: + # - template: O modelo de avaliação "pai" ao qual esta questão pertence. + belongs_to :template + + # - opcao_templates: As alternativas de resposta (caso seja uma questão de múltipla escolha). + # A opção `dependent: :destroy` garante que, ao apagar a questão, as opções também sejam removidas. + has_many :opcao_templates, dependent: :destroy + + # Permite que o controller (AdminsController) receba e salve os dados das opções + # junto com os dados da questão em uma única submissão de formulário. + accepts_nested_attributes_for :opcao_templates, allow_destroy: true + + # Validações: + # - texto_questao: O enunciado da pergunta (Obrigatório). + # - tipo_resposta: Define o formato do input (ex: 'Radio', 'Text') (Obrigatório). + validates :texto_questao, presence: true + validates :tipo_resposta, presence: true +end \ No newline at end of file diff --git a/app/app/models/template.rb b/app/app/models/template.rb new file mode 100644 index 0000000000..479cbec02b --- /dev/null +++ b/app/app/models/template.rb @@ -0,0 +1,36 @@ +# Representa o "molde" ou estrutura base de um questionário de avaliação. +# É criado por um administrador e contém o conjunto de perguntas (QuestaoTemplate) +# que serão futuramente copiadas para criar os Formulários reais enviados às turmas. +class Template < ApplicationRecord + # Associações principais + belongs_to :usuario # Chave estrangeira: usuario_id + + # O nome do modelo de Questão é QuestaoTemplate, e a associação usa o plural snake_case + has_many :questao_templates, dependent: :destroy + + # Permite que o template processe dados para Questões aninhadas + # Deve usar o nome da associação no plural snake_case + accepts_nested_attributes_for :questao_templates, allow_destroy: true + + # Validação do nome do template (coluna na tabela templates é 'nome') + validates :nome, presence: true + + # Constrói a estrutura inicial de objetos aninhados necessária para renderizar + # o formulário de criação "nested" na view. + # + # Inicializa uma QuestaoTemplate vazia e, dentro dela, uma OpcaoTemplate vazia, + # garantindo que o usuário veja pelo menos um campo de pergunta ao abrir a tela "Novo". + # + # Args: Nenhum + # + # Retorno: + # - OpcaoTemplate: O último objeto instanciado na cadeia (instância vazia). + # + # Efeitos Colaterais: + # - Altera o estado do objeto em memória adicionando associações vazias. + # - Não salva nada no banco de dados. + def build_initial_structure + questao = questao_templates.build + questao.opcao_templates.build + end +end \ No newline at end of file diff --git a/app/app/models/turma.rb b/app/app/models/turma.rb new file mode 100644 index 0000000000..69a92d5015 --- /dev/null +++ b/app/app/models/turma.rb @@ -0,0 +1,33 @@ +# Representa uma turma específica de uma matéria (disciplina) ofertada em um semestre. +# É a unidade organizacional que agrupa os alunos matriculados e o professor responsável, +# servindo de ponto de aplicação para os formulários de avaliação. +class Turma < ApplicationRecord + # Associações: + # - materia: A disciplina pedagógica (conteúdo) desta turma (ex: "Cálculo 1"). + belongs_to :materia + + # - usuarios: Lista de alunos e professores vinculados a esta turma. + has_many :usuario_turmas + has_many :usuarios, through: :usuario_turmas + + # - formularios: Avaliações que foram distribuídas para esta turma responder. + has_many :formulario_turmas + has_many :formularios, through: :formulario_turmas + + # Identifica e retorna o nome do professor responsável pela turma. + # Realiza uma busca na lista de usuários vinculados filtrando pela ocupação. + # + # Args: Nenhum + # + # Retorno: + # - String: O nome do professor (se encontrado). + # - String: "Professor não atribuído" (se nenhum usuário com perfil docente for achado). + # + # Efeitos Colaterais: + # - Dispara uma consulta ao banco de dados para carregar a coleção de usuários da turma + # (caso ainda não tenha sido carregada em memória). + def professor + prof = usuarios.find { |u| u.ocupacao.to_s.downcase.include?('docente') || u.ocupacao.to_s.downcase.include?('professor') } + prof ? prof.nome : "Professor não atribuído" + end +end \ No newline at end of file diff --git a/app/app/models/usuario.rb b/app/app/models/usuario.rb new file mode 100644 index 0000000000..21fb76e049 --- /dev/null +++ b/app/app/models/usuario.rb @@ -0,0 +1,32 @@ +# Representa os usuários do sistema (Alunos, Professores, Admins). +# Centraliza o gerenciamento de credenciais, autenticação e dados cadastrais. +# +# Atua como o núcleo de identidade da aplicação, gerenciando senhas seguras +# e relacionamentos com turmas e formulários. +class Usuario < ApplicationRecord + # Inclui o Concern (Módulo) responsável pela lógica de "Esqueci minha senha". + # Adiciona métodos como: send_password_reset_email, clear_reset_digest, etc. + include PasswordResetable + + # Adiciona funcionalidade de hashing de senha usando BCrypt. + # Injeta automaticamente os métodos: #password=, #password_confirmation= e #authenticate. + has_secure_password + + # Validações de integridade dos dados cadastrais (Regras de Negócio): + validates :email, presence: true, uniqueness: true + validates :matricula, presence: true, uniqueness: true + validates :nome, presence: true + validates :ocupacao, presence: true + + # Associações Acadêmicas: + # Relacionamento N:N com Turmas (aluno matriculado ou professor alocado). + has_many :usuario_turmas + has_many :turmas, through: :usuario_turmas + + # Associações de Avaliação: + # - formulario_respondidos: Histórico de avaliações respondidas pelo usuário. + has_many :formulario_respondidos + + # - templates: Modelos de avaliação criados pelo usuário (geralmente Admin/Professor). + has_many :templates +end \ No newline at end of file diff --git a/app/app/models/usuario_turma.rb b/app/app/models/usuario_turma.rb new file mode 100644 index 0000000000..ef0b2b9742 --- /dev/null +++ b/app/app/models/usuario_turma.rb @@ -0,0 +1,12 @@ +# Modelo de associação (Join Model) responsável por vincular Usuários (alunos ou professores) às Turmas. +# Implementa o relacionamento N:N (Muitos-para-Muitos) entre essas duas entidades. +# +# Cada registro nesta tabela representa uma "matrícula" ou "atribuição" de um usuário +# em uma turma específica do semestre. +class UsuarioTurma < ApplicationRecord + # Associações: + # - usuario: O aluno matriculado ou professor alocado. + # - turma: A turma específica (matéria/horário) onde o vínculo ocorre. + belongs_to :usuario + belongs_to :turma +end \ No newline at end of file diff --git a/app/app/services/form_distribution_service.rb b/app/app/services/form_distribution_service.rb new file mode 100644 index 0000000000..4068728150 --- /dev/null +++ b/app/app/services/form_distribution_service.rb @@ -0,0 +1,99 @@ +# Service Object responsável por clonar a estrutura de um Template e distribuí-lo +# para múltiplas turmas na forma de formulários independentes. +# +# Encapsula a lógica de "Deep Copy" (cópia profunda) de Template -> Formulario, +# garantindo que cada turma tenha sua própria instância de avaliação. +class FormDistributionService + + # Inicializa o serviço com os dados necessários para a distribuição. + # + # Args: + # - template (Template): O modelo de questionário original a ser copiado. + # - turma_ids (Array): Lista de IDs das turmas que receberão a avaliação. + # + # Retorno: Instância do Service. + # + # Efeitos Colaterais: Apenas atribuição de variáveis de instância. + def initialize(template, turma_ids) + @template = template + @turma_ids = turma_ids + end + + # Executa o processo de distribuição dentro de uma transação de banco de dados. + # Garante atomicidade: ou todos os formulários são criados, ou nenhum é. + # + # Args: Nenhum + # + # Retorno: O resultado da execução do bloco de transação (geralmente a lista de IDs processada). + # + # Efeitos Colaterais: + # - Cria registros nas tabelas: Formulario, FormularioTurma, QuestaoFormulario e OpcaoFormulario. + def call + ActiveRecord::Base.transaction do + @turma_ids.each do |tid| + create_form_copy_for_class(tid) + end + end + end + + private + + # Cria uma cópia isolada do formulário para uma turma específica. + # + # Args: + # - turma_id (Integer): O ID da turma destino. + # + # Retorno: O objeto Formulario recém-criado (embora não utilizado explicitamente pelo caller). + # + # Efeitos Colaterais: + # - Cria o registro Formulario. + # - Cria o vínculo FormularioTurma. + # - Dispara a cópia em cascata das questões. + def create_form_copy_for_class(turma_id) + novo_formulario = Formulario.create!( + titulo: @template.nome, + so_alunos: true + ) + + FormularioTurma.create!(formulario: novo_formulario, turma_id: turma_id) + copy_questions(novo_formulario) + end + + # Duplica as perguntas do template para o novo formulário. + # + # Args: + # - novo_formulario (Formulario): A instância do formulário destino. + # + # Retorno: A coleção de QuestaoTemplate iterada. + # + # Efeitos Colaterais: Cria múltiplos registros de QuestaoFormulario. + def copy_questions(novo_formulario) + @template.questao_templates.each do |q_template| + nova_questao = QuestaoFormulario.create!( + formulario: novo_formulario, + texto_questao: q_template.texto_questao, + tipo_resposta: q_template.tipo_resposta + ) + copy_options(q_template, nova_questao) + end + end + + # Duplica as opções de resposta (se houver) de uma pergunta do template para a pergunta do formulário. + # + # Args: + # - q_template (QuestaoTemplate): A pergunta original (origem). + # - nova_questao (QuestaoFormulario): A pergunta nova (destino). + # + # Retorno: A coleção de OpcaoTemplate iterada. + # + # Efeitos Colaterais: Cria múltiplos registros de OpcaoFormulario. + def copy_options(q_template, nova_questao) + q_template.opcao_templates.each do |o_template| + OpcaoFormulario.create!( + questao_formulario: nova_questao, + texto_opcao: o_template.texto_opcao, + numero_opcao: o_template.numero_opcao + ) + end + end +end \ No newline at end of file diff --git a/app/app/services/form_response_service.rb b/app/app/services/form_response_service.rb new file mode 100644 index 0000000000..6377222099 --- /dev/null +++ b/app/app/services/form_response_service.rb @@ -0,0 +1,116 @@ +# Serviço responsável por processar e salvar as respostas de um formulário. +# +# Encapsula a lógica de recepção dos parâmetros de resposta, criação do registro +# de "Formulário Respondido" e a persistência individual de cada "Questão Respondida". +class FormResponseService + + # Inicializa o serviço com os dados do contexto da resposta. + # + # Args: + # - user (Usuario): O aluno/usuário que está respondendo. + # - formulario (Formulario): O objeto do formulário sendo respondido. + # - respostas_params (Hash): Um hash onde a chave é o ID da questão e o valor é a resposta. + # Ex: { "12" => "4", "13" => "Texto da resposta" } + # + # Retorno: Instância do FormResponseService. + # + # Efeitos Colaterais: Apenas atribuição de variáveis de instância. + def initialize(user, formulario, respostas_params) + @user = user + @formulario = formulario + @respostas_params = respostas_params + end + + # Executa a lógica principal de salvamento dentro de uma transação. + # Garante a integridade dos dados: se uma resposta falhar, nada é salvo. + # + # Args: Nenhum + # + # Retorno: + # - O resultado da execução do bloco (geralmente a coleção de respostas processadas). + # - Levanta exceção (ActiveRecord::RecordInvalid) se houver erro de validação (tratado no controller). + # + # Efeitos Colaterais: + # - Cria registro na tabela 'formulario_respondidos'. + # - Cria múltiplos registros na tabela 'questao_respondidas'. + def call + ActiveRecord::Base.transaction do + resposta_geral = create_general_response + process_answers(resposta_geral) if @respostas_params.present? + end + end + + private + + # Cria o registro pai que vincula o usuário ao formulário. + # + # Args: Nenhum + # + # Retorno: Instância de FormularioRespondido persistida. + # + # Efeitos Colaterais: Insere um registro no banco de dados. + def create_general_response + FormularioRespondido.create!( + formulario: @formulario, + usuario: @user + ) + end + + # Itera sobre o hash de parâmetros para processar cada resposta individualmente. + # + # Args: + # - resposta_geral (FormularioRespondido): O objeto pai criado anteriormente. + # + # Retorno: A coleção (Hash) que foi iterada. + # + # Efeitos Colaterais: Chama o método save_answer repetidamente. + def process_answers(resposta_geral) + @respostas_params.each do |questao_id, valor| + save_answer(resposta_geral, questao_id, valor) + end + end + + # Encontra a questão correspondente e salva a resposta específica. + # + # Args: + # - resposta_geral (FormularioRespondido): O vínculo com o formulário pai. + # - questao_id (Integer/String): O ID da questão que está sendo respondida. + # - valor (String/Integer): O conteúdo da resposta (ID da opção ou texto). + # + # Retorno: Boolean (true se salvo com sucesso). + # + # Efeitos Colaterais: + # - Realiza consulta ao banco (QuestaoFormulario.find). + # - Cria registro na tabela 'questao_respondidas'. + def save_answer(resposta_geral, questao_id, valor) + questao = QuestaoFormulario.find(questao_id) + nova_resposta = QuestaoRespondida.new( + formulario_respondido: resposta_geral, + questao_formulario: questao + ) + + assign_value(nova_resposta, questao.tipo_resposta, valor) + nova_resposta.save! + end + + # Define onde o valor da resposta será armazenado com base no tipo da questão. + # + # Args: + # - resposta_obj (QuestaoRespondida): O objeto em memória sendo construído. + # - tipo (String): O tipo da questão (ex: 'Radio', 'Text'). + # - valor (String/Integer): O dado enviado pelo usuário. + # + # Retorno: O valor atribuído. + # + # Efeitos Colaterais: + # - Modifica os atributos do objeto 'resposta_obj' em memória. + # - Se for 'Radio', preenche 'opcao_formulario_id'. + # - Se for outro tipo, preenche 'resposta' (campo de texto livre). + def assign_value(resposta_obj, tipo, valor) + if tipo == 'Radio' + resposta_obj.opcao_formulario_id = valor + else + resposta_obj.resposta = valor + end + end +end \ No newline at end of file diff --git a/app/app/services/formulario_export_service.rb b/app/app/services/formulario_export_service.rb new file mode 100644 index 0000000000..c5646fb2eb --- /dev/null +++ b/app/app/services/formulario_export_service.rb @@ -0,0 +1,126 @@ +require 'csv' + +# Service Object responsável pela exportação dos dados de um formulário para o formato CSV. +# +# Encapsula a lógica de formatação de colunas, cabeçalhos dinâmicos (baseados nas perguntas) +# e a consolidação das respostas dos alunos em linhas. +class FormularioExportService + + # Inicializa o serviço preparando os dados necessários. + # Carrega as questões ordenadas por ID para garantir que as colunas do CSV + # sigam sempre a mesma ordem lógica. + # + # Args: + # - formulario (Formulario): A instância do formulário cujos dados serão exportados. + # + # Retorno: Instância do FormularioExportService. + # + # Efeitos Colaterais: Atribui variáveis de instância (@formulario e @questoes). + def initialize(formulario) + @formulario = formulario + @questoes = @formulario.questao_formularios.order(:id) + end + + # Executa a geração do conteúdo CSV. + # Cria a estrutura do arquivo, adiciona o cabeçalho e itera sobre todas as respostas. + # + # Args: Nenhum + # + # Retorno: + # - String: O conteúdo textual completo do CSV gerado. + # + # Efeitos Colaterais: + # - Dispara consultas ao banco de dados (via responses_scope). + # - Não altera dados no banco. + def call + CSV.generate(headers: true) do |csv| + csv << headers + + responses_scope.each do |resposta_geral| + csv << build_row(resposta_geral) + end + end + end + + private + + # Constrói a primeira linha do CSV (Cabeçalho). + # Combina colunas fixas ('Matrícula', 'Nome') com as perguntas do formulário. + # + # Args: Nenhum + # + # Retorno: + # - Array: Lista de títulos das colunas. + # + # Efeitos Colaterais: Nenhum. + def headers + ['Matrícula', 'Nome'] + @questoes.map(&:texto_questao) + end + + # Define o escopo de busca das respostas no banco de dados. + # Utiliza 'includes' (Eager Loading) para carregar Usuário, Questões Respondidas + # e Opções de uma só vez, evitando o problema de N+1 queries. + # + # Args: Nenhum + # + # Retorno: + # - ActiveRecord::Relation: Coleção de objetos FormularioRespondido. + # + # Efeitos Colaterais: Executa a query SQL otimizada. + def responses_scope + @formulario.formulario_respondidos + .includes(:usuario, questao_respondidas: :opcao_formulario) + end + + # Monta uma única linha de dados para o CSV, correspondente a um aluno. + # + # Args: + # - resposta_geral (FormularioRespondido): O objeto contendo o vínculo Usuario-Formulario. + # + # Retorno: + # - Array: Os valores da linha (Matrícula, Nome, Resposta 1, Resposta 2...). + # + # Efeitos Colaterais: Processamento de dados em memória. + def build_row(resposta_geral) + respostas_map = map_answers(resposta_geral) + usuario = resposta_geral.usuario + + row = [usuario.matricula, usuario.nome] + + @questoes.each do |questao| + row << extract_value(respostas_map[questao.id]) + end + + row + end + + # Cria um Hash de mapeamento para acesso rápido às respostas. + # Transforma a lista de respostas em um dicionário onde a Chave é o ID da Questão. + # Isso evita ter que fazer um .find dentro do loop de colunas. + # + # Args: + # - resposta_geral (FormularioRespondido): O objeto pai das respostas. + # + # Retorno: + # - Hash: { questao_id => objeto_QuestaoRespondida }. + # + # Efeitos Colaterais: Nenhum. + def map_answers(resposta_geral) + resposta_geral.questao_respondidas.index_by(&:questao_formulario_id) + end + + # Extrai o texto legível da resposta, lidando com diferentes tipos de pergunta. + # + # Args: + # - resposta (QuestaoRespondida | nil): O objeto resposta (pode ser nulo se o aluno pulou). + # + # Retorno: + # - String: O texto da opção escolhida (se for Multipla Escolha). + # - String: O texto digitado (se for Dissertativa). + # - nil: Se não houver resposta. + # + # Efeitos Colaterais: Nenhum. + def extract_value(resposta) + resposta&.opcao_formulario&.texto_opcao || resposta&.resposta + end +end \ No newline at end of file diff --git a/app/app/services/sigaa_service.rb b/app/app/services/sigaa_service.rb new file mode 100644 index 0000000000..486496c8e3 --- /dev/null +++ b/app/app/services/sigaa_service.rb @@ -0,0 +1,177 @@ +require 'json' + +# Service Object responsável pela importação de dados acadêmicos (SIGAA). +# Processa arquivos JSON contendo Turmas e Membros para popular o banco de dados +# com Departamentos, Matérias, Turmas e Usuários (Docentes e Discentes). +class SigaaService + + # Inicializa o serviço com os caminhos dos arquivos a serem processados. + # + # Args: + # - classes_path (String): Caminho absoluto ou relativo para o arquivo JSON de turmas. + # - members_path (String): Caminho absoluto ou relativo para o arquivo JSON de membros. + # + # Retorno: Instância do SigaaService. + # + # Efeitos Colaterais: Apenas atribuição de variáveis de instância. + def initialize(classes_path, members_path) + @classes_path = classes_path + @members_path = members_path + end + + # Método principal que orquestra o fluxo de importação. + # Verifica a existência dos arquivos e dispara os métodos de processamento específicos. + # + # Args: Nenhum + # + # Retorno: nil (O retorno é a saída do último puts, irrelevante para a lógica). + # + # Efeitos Colaterais: + # - Imprime logs no console (puts). + # - Dispara a criação de registros no banco de dados (via métodos privados). + def call + puts ">>> INICIANDO SERVIÇO SIGAA <<<" + + if File.exist?(@classes_path) + puts "> Arquivo de Turmas encontrado. Processando..." + import_classes + else + puts "> ERRO: Arquivo de Turmas NÃO encontrado no caminho: #{@classes_path}" + end + + if File.exist?(@members_path) + puts "> Arquivo de Membros encontrado. Processando..." + import_members + else + puts "> ERRO: Arquivo de Membros NÃO encontrado no caminho: #{@members_path}" + end + + puts ">>> SERVIÇO FINALIZADO <<<" + end + + private + + # Lê o JSON de turmas e cria a estrutura acadêmica básica. + # + # Args: Nenhum + # + # Retorno: A coleção iterada ou nil em caso de erro. + # + # Efeitos Colaterais: + # - Lê arquivos do disco (File.read). + # - Cria ou encontra registros de: Departamento, Materia e Turma. + # - Imprime logs de progresso. + def import_classes + file_content = File.read(@classes_path) + data = JSON.parse(file_content) + puts "> Lendo #{data.size} matérias do JSON..." + + data.each do |entry| + # Dept Code + dept_code = entry['code'][0..2] + dep = Departamento.find_or_create_by!(nome: dept_code) + + # Matéria + mat = Materia.find_or_create_by!(codigo: entry['code']) do |m| + m.nome = entry['name'] + m.departamento = dep + end + puts " - Matéria Processada: #{mat.nome} (#{mat.codigo})" + + # Turma + turma = Turma.find_or_create_by!( + num_turma: entry['class']['classCode'], + semestre: entry['class']['semester'], + materia: mat + ) + puts " - Turma Criada/Encontrada: #{turma.num_turma} - #{turma.semestre}" + end + rescue => e + puts "CRASH EM IMPORT_CLASSES: #{e.message}" + end + + # Lê o JSON de membros e popula os usuários e matrículas. + # + # Args: Nenhum + # + # Retorno: A coleção iterada ou nil em caso de erro. + # + # Efeitos Colaterais: + # - Lê arquivos do disco. + # - Realiza consultas ao banco para encontrar Matérias e Turmas existentes. + # - Chama process_user para criar Docentes e Discentes. + def import_members + file_content = File.read(@members_path) + data = JSON.parse(file_content) + puts "> Lendo #{data.size} grupos de membros..." + + data.each do |entry| + puts "> Verificando grupo: #{entry['code']} - Turma #{entry['classCode']}" + + materia = Materia.find_by(codigo: entry['code']) + unless materia + puts " [PULADO] Matéria #{entry['code']} não existe no banco." + next + end + + turma = Turma.find_by( + num_turma: entry['classCode'], + semestre: entry['semester'], + materia: materia + ) + unless turma + puts " [PULADO] Turma #{entry['classCode']} não encontrada para esta matéria." + next + end + + # Docente + if entry['docente'] + puts " -> Processando Docente..." + process_user(entry['docente'], turma, 'docente') + end + + # Discentes + if entry['dicente'] + puts " -> Processando #{entry['dicente'].size} Discentes..." + entry['dicente'].each do |student_data| + process_user(student_data, turma, 'discente') + end + end + end + rescue => e + puts "CRASH EM IMPORT_MEMBERS: #{e.message}" + end + + # Método auxiliar para persistir um usuário e vinculá-lo a uma turma. + # + # Args: + # - user_data (Hash): Dados do usuário vindos do JSON (nome, usuario, email). + # - turma (Turma): Objeto da turma onde o usuário será vinculado. + # - ocupacao_padrao (String): 'docente' ou 'discente'. + # + # Retorno: + # - UsuarioTurma: Se o salvamento for bem-sucedido. + # - nil: Se houver erro de validação. + # + # Efeitos Colaterais: + # - Cria ou Atualiza registros na tabela Usuario. + # - Cria registros na tabela UsuarioTurma (Matrícula). + # - Imprime erros de validação caso ocorram. + def process_user(user_data, turma, ocupacao_padrao) + usuario = Usuario.find_or_initialize_by(matricula: user_data['usuario']) + + usuario.nome = user_data['nome'] + usuario.email = user_data['email'] + usuario.ocupacao = ocupacao_padrao + usuario.password = user_data['usuario'] + usuario.password_confirmation = user_data['usuario'] + usuario.is_admin = false if usuario.new_record? + + if usuario.save + print "." # Imprime um pontinho para cada sucesso + UsuarioTurma.find_or_create_by!(usuario: usuario, turma: turma) + else + puts "\n [ERRO AO SALVAR USER] #{usuario.nome}: #{usuario.errors.full_messages.join(', ')}" + end + end +end \ No newline at end of file diff --git a/app/app/views/admins/dashboard.html.erb b/app/app/views/admins/dashboard.html.erb new file mode 100644 index 0000000000..aaf8030aeb --- /dev/null +++ b/app/app/views/admins/dashboard.html.erb @@ -0,0 +1,25 @@ +
+
+

Gerenciamento

+ +
+ + <%= link_to admin_importar_form_path do %> + <%= render(ButtonComponent.new(text: "Importar dados", variant: :primary, type: :button)) %> + <% end %> + + <%= link_to templates_path do %> + <%= render(ButtonComponent.new(text: "Editar Templates", variant: :secondary, type: :button)) %> + <% end %> + + <%= link_to admin_send_forms_path do %> + <%= render(ButtonComponent.new(text: "Enviar Formulários", variant: :secondary, type: :button)) %> + <% end %> + + <%= link_to resultados_path do %> + <%= render(ButtonComponent.new(text: "Resultados", variant: :tertiary, type: :button)) %> + <% end %> + +
+
+
\ No newline at end of file diff --git a/app/app/views/admins/import_form.html.erb b/app/app/views/admins/import_form.html.erb new file mode 100644 index 0000000000..d7ac4016da --- /dev/null +++ b/app/app/views/admins/import_form.html.erb @@ -0,0 +1,23 @@ +
+ +

Upload de Dados do SIGAA

+ + <%= form_with url: admin_importar_path, local: true, multipart: true, class: "border border-gray-200 rounded p-6" do |f| %> + +
+ + <%= f.file_field :arquivo_turmas, class: "block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-purple-50 file:text-purple-700 hover:file:bg-purple-100" %> +
+ +
+ + <%= f.file_field :arquivo_membros, class: "block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-purple-50 file:text-purple-700 hover:file:bg-purple-100" %> +
+ + <%= f.submit "Iniciar Importação", class: "bg-purple-700 text-white font-bold py-2 px-4 rounded hover:bg-purple-800 cursor-pointer" %> + <% end %> + +
+ <%= link_to "Voltar ao Painel", admin_path, class: "text-purple-600 hover:text-purple-800 text-sm" %> +
+
\ No newline at end of file diff --git a/app/app/views/admins/send_forms.html.erb b/app/app/views/admins/send_forms.html.erb new file mode 100644 index 0000000000..aa8d0660ab --- /dev/null +++ b/app/app/views/admins/send_forms.html.erb @@ -0,0 +1,87 @@ +
+
+ + <%= form_with url: admin_process_send_forms_path, method: :post, local: true, class: "w-full" do %> + + +
+ + +
+ + +
+
+ + + + + + + + + + + + + <% @turmas.each_with_index do |turma, index| %> + + + + + + + + + + + + + + + + <% end %> + + +
MatériaSemestreTurma
+ + + <%= turma.materia.nome %> + + <%= turma.semestre %> + + <%= turma.num_turma %> +
+
+
+ + +
+ +
+ + <% end %> + +
+
diff --git a/app/app/views/dashboard/index.html.erb b/app/app/views/dashboard/index.html.erb new file mode 100644 index 0000000000..1f532c5a8a --- /dev/null +++ b/app/app/views/dashboard/index.html.erb @@ -0,0 +1,31 @@ +
+
+ + <% if @turmas.any? %> + <% @turmas.each do |turma| %> + + <%# CORREÇÃO: Iterar sobre TODOS os formulários da turma, não apenas o first %> + <% turma.formularios.each do |formulario| %> + + <%# 1. Se o aluno JÁ respondeu este formulário específico, pula ele. %> + <% next if @ids_respondidos.include?(formulario.id) %> + + <%# 2. Renderiza o Card para ESTE formulário %> + <%= render(EvaluationCardComponent.new( + turma: turma.num_turma, + materia: turma.materia.nome, + professor: turma.professor, # Certifique-se que o método professor existe em Turma + semestre: turma.semestre, + formulario_id: formulario.id, + turma_id: turma.id + )) %> + + <% end %> <%# Fim do loop de formulários %> + + <% end %> <%# Fim do loop de turmas %> + <% else %> +

Nenhuma turma encontrada.

+ <% end %> + +
+
\ No newline at end of file diff --git a/app/app/views/formularios/show.html.erb b/app/app/views/formularios/show.html.erb new file mode 100644 index 0000000000..ddfaf42578 --- /dev/null +++ b/app/app/views/formularios/show.html.erb @@ -0,0 +1,58 @@ + + + +
+
+ +
+

+ <%= @formulario.titulo %> +

+ <%= link_to dashboard_path, class: "text-white hover:text-gray-200" do %> + + <% end %> +
+ +
+ <%= form_with url: responder_formulario_path(@formulario), method: :post, local: true do |f| %> + + <%= hidden_field_tag :turma_id, @turma_id %> + + <% @formulario.questao_formularios.each do |questao| %> +
+ + + <%# CORREÇÃO AQUI: Verifique por 'Texto' (Maiúsculo) %> + <% if questao.tipo_resposta == 'Texto' %> + <%= text_area_tag "respostas[#{questao.id}]", nil, rows: 3, class: "w-full border border-gray-300 rounded p-2 focus:border-purple-500 focus:outline-none" %> + + <%# CORREÇÃO AQUI: Verifique por 'Radio' %> + <% elsif questao.tipo_resposta == 'Radio' %> +
+ <% questao.opcao_formularios.each do |opcao| %> +
+ <%# O valor enviado deve ser o ID da opção %> + <%= radio_button_tag "respostas[#{questao.id}]", opcao.id, false, class: "text-purple-600 focus:ring-purple-500" %> + +
+ <% end %> +
+ <% end %> +
+ <% end %> + +
+ <%= link_to "Cancelar", dashboard_path, class: "px-4 py-2 bg-gray-200 text-gray-700 rounded hover:bg-gray-300" %> + <%= f.submit "Enviar Avaliação", class: "px-4 py-2 bg-green-500 text-white rounded hover:bg-green-600 font-bold cursor-pointer" %> +
+ + <% end %> +
+ +
+
+
\ No newline at end of file diff --git a/app/app/views/layouts/application.html.erb b/app/app/views/layouts/application.html.erb new file mode 100644 index 0000000000..440a69e8db --- /dev/null +++ b/app/app/views/layouts/application.html.erb @@ -0,0 +1,31 @@ + + + + <%= content_for(:title) || "App" %> + + + + + <%= csrf_meta_tags %> + <%= csp_meta_tag %> + + <%= yield :head %> + + <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> + <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> + + + + + + <%# Includes all stylesheet files in app/assets/stylesheets %> + <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %> + <%= javascript_importmap_tags %> + + + +
+ <%= yield %> +
+ + diff --git a/app/app/views/layouts/dashboard.html.erb b/app/app/views/layouts/dashboard.html.erb new file mode 100644 index 0000000000..b5ff559cb8 --- /dev/null +++ b/app/app/views/layouts/dashboard.html.erb @@ -0,0 +1,36 @@ + + + + Camaar - Dashboard + + <%= csrf_meta_tags %> + <%= csp_meta_tag %> + <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %> + <%= javascript_importmap_tags %> + + + + + <% if flash[:notice] %> +
+ <%= flash[:notice] %> +
+ <% end %> + +
+ + <%= render(Dashboard::SidebarComponent.new(user: current_user)) %> + +
+ + <%= render(Dashboard::HeaderComponent.new(user: current_user, path: request.path)) %> + +
+ <%# O CONTEÚDO DA VIEW (dashboard/index ou admins/dashboard) ENTRA AQUI %> + <%= yield %> +
+
+
+ + + \ No newline at end of file diff --git a/app/app/views/layouts/mailer.html.erb b/app/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000000..3aac9002ed --- /dev/null +++ b/app/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/app/app/views/layouts/mailer.text.erb b/app/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000000..37f0bddbd7 --- /dev/null +++ b/app/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/app/app/views/password_resets/edit.html.erb b/app/app/views/password_resets/edit.html.erb new file mode 100644 index 0000000000..984dbfa876 --- /dev/null +++ b/app/app/views/password_resets/edit.html.erb @@ -0,0 +1,28 @@ +
+
+

Nova Senha

+ + <% if @user.errors.any? %> +
+ <%= @user.errors.full_messages.first %> +
+ <% end %> + + <%= form_with model: @user, url: password_reset_path(@token), method: :patch, local: true do |f| %> + + <%= hidden_field_tag :email, @user.email %> + +
+ + <%= f.password_field :password, class: "w-full border border-gray-300 rounded p-2 focus:border-purple-500 focus:outline-none" %> +
+ +
+ + <%= f.password_field :password_confirmation, class: "w-full border border-gray-300 rounded p-2 focus:border-purple-500 focus:outline-none" %> +
+ + <%= f.submit "Salvar Senha", class: "w-full bg-purple-700 text-white font-bold py-2 rounded hover:bg-purple-800 cursor-pointer" %> + <% end %> +
+
\ No newline at end of file diff --git a/app/app/views/password_resets/new.html.erb b/app/app/views/password_resets/new.html.erb new file mode 100644 index 0000000000..8f5fd80a8e --- /dev/null +++ b/app/app/views/password_resets/new.html.erb @@ -0,0 +1,49 @@ +
+ +
+ +
+ +

RECUPERAR

+

SENHA

+ + <% if flash[:alert] %> +
+ <%= flash[:alert] %> +
+ <% end %> + + <%= form_with url: password_resets_path, local: true, class: "space-y-6" do |form| %> + +

+ Digite seu email para receber o link de redefinição. +

+ + <%= render(FormInputComponent.new( + label: "Email", + name: "email", + type: :email, + placeholder: "aluno@aluno.unb.br" + )) %> + +
+ <%= render(ButtonComponent.new( + text: "Enviar Email", + type: :submit, + variant: :primary + )) %> +
+ +
+ <%= link_to "Voltar para Login", login_path, class: "text-sm text-purple-700 hover:text-purple-900 font-semibold" %> +
+ + <% end %> +
+ + + +
+
\ No newline at end of file diff --git a/app/app/views/passwords/edit.html.erb b/app/app/views/passwords/edit.html.erb new file mode 100644 index 0000000000..15bb13070b --- /dev/null +++ b/app/app/views/passwords/edit.html.erb @@ -0,0 +1,30 @@ +
+
+

Alterar Senha

+ + <% if current_user.errors.any? %> +
+ <%= current_user.errors.full_messages.first %> +
+ <% end %> + + <%= form_with model: current_user, url: password_path, method: :patch, local: true do |f| %> + +
+ + <%= f.password_field :password, class: "w-full border border-gray-300 rounded p-2 focus:border-purple-500 focus:outline-none" %> +
+ +
+ + <%= f.password_field :password_confirmation, class: "w-full border border-gray-300 rounded p-2 focus:border-purple-500 focus:outline-none" %> +
+ +
+ <%= f.submit "Atualizar Senha", class: "w-full bg-purple-700 text-white font-bold py-2 rounded hover:bg-purple-800 cursor-pointer" %> + + <%= link_to "Cancelar", dashboard_path, class: "text-center text-sm text-gray-600 hover:text-gray-800" %> +
+ <% end %> +
+
\ No newline at end of file diff --git a/app/app/views/pwa/manifest.json.erb b/app/app/views/pwa/manifest.json.erb new file mode 100644 index 0000000000..c295730cd4 --- /dev/null +++ b/app/app/views/pwa/manifest.json.erb @@ -0,0 +1,22 @@ +{ + "name": "App", + "icons": [ + { + "src": "/icon.png", + "type": "image/png", + "sizes": "512x512" + }, + { + "src": "/icon.png", + "type": "image/png", + "sizes": "512x512", + "purpose": "maskable" + } + ], + "start_url": "/", + "display": "standalone", + "scope": "/", + "description": "App.", + "theme_color": "red", + "background_color": "red" +} diff --git a/app/app/views/pwa/service-worker.js b/app/app/views/pwa/service-worker.js new file mode 100644 index 0000000000..b3a13fb7bb --- /dev/null +++ b/app/app/views/pwa/service-worker.js @@ -0,0 +1,26 @@ +// Add a service worker for processing Web Push notifications: +// +// self.addEventListener("push", async (event) => { +// const { title, options } = await event.data.json() +// event.waitUntil(self.registration.showNotification(title, options)) +// }) +// +// self.addEventListener("notificationclick", function(event) { +// event.notification.close() +// event.waitUntil( +// clients.matchAll({ type: "window" }).then((clientList) => { +// for (let i = 0; i < clientList.length; i++) { +// let client = clientList[i] +// let clientPath = (new URL(client.url)).pathname +// +// if (clientPath == event.notification.data.path && "focus" in client) { +// return client.focus() +// } +// } +// +// if (clients.openWindow) { +// return clients.openWindow(event.notification.data.path) +// } +// }) +// ) +// }) diff --git a/app/app/views/resultados/index.html.erb b/app/app/views/resultados/index.html.erb new file mode 100644 index 0000000000..8c60214fea --- /dev/null +++ b/app/app/views/resultados/index.html.erb @@ -0,0 +1,48 @@ +
+

Resultados das Avaliações

+ +
+ + + + + + + + + + <% @formularios.each do |form| %> + + + + + + <% end %> + +
+ Título do Formulário + + Respostas + + Ação +
+

<%= form.titulo %>

+
+ + + <%= form.formulario_respondidos.count %> respostas + + + <%= link_to baixar_resultado_path(form, format: :csv), class: "text-blue-600 hover:text-blue-900 flex items-center gap-1" do %> + + Baixar CSV + <% end %> +
+ + <% if @formularios.empty? %> +
+ Nenhum formulário foi respondido ainda. +
+ <% end %> +
+
\ No newline at end of file diff --git a/app/app/views/sessions/new.html.erb b/app/app/views/sessions/new.html.erb new file mode 100644 index 0000000000..d48df1d166 --- /dev/null +++ b/app/app/views/sessions/new.html.erb @@ -0,0 +1,69 @@ +
+ +
+ +
+ +

LOGIN

+ + <%# --- INICIO DA ALTERAÇÃO --- %> + <%# Adicionamos este bloco para exibir mensagens de sucesso (verde) %> + <% if flash[:notice] %> +
+ <%= flash[:notice] %> +
+ <% end %> + <%# --- FIM DA ALTERAÇÃO --- %> + + <% if flash[:alert] %> +
+ <%= flash[:alert] %> +
+ <% end %> + + <%= form_with url: login_path, local: true, class: "space-y-6" do |form| %> + + <%= render(FormInputComponent.new( + label: "Email", + name: "email", + type: :email, + placeholder: "aluno@aluno.unb.br" + )) %> + + <%= render(FormInputComponent.new( + label: "Senha", + name: "password", + type: :password, + placeholder: "Password" + )) %> + +
+ <%= link_to "Recuperar Senha", new_password_reset_path, class: "text-xs text-purple-700 hover:text-purple-900 font-semibold" %> +
+ +
+ <%= render(ButtonComponent.new( + text: "Entrar", + type: :submit, + variant: :primary + )) %> +
+ +
+ <%= render(ButtonComponent.new( + text: "Cadastrar", + type: :button, + variant: :primary, + link: cadastro_path + )) %> +
+ + <% end %> +
+ + + +
+
\ No newline at end of file diff --git a/app/app/views/templates/edit.html.erb b/app/app/views/templates/edit.html.erb new file mode 100644 index 0000000000..bf6b7a0bc1 --- /dev/null +++ b/app/app/views/templates/edit.html.erb @@ -0,0 +1,174 @@ +
+ + <%# O Rails inferirá o método PATCH e a URL com o ID, e carregará os dados %> + <%= form_with(model: @template,url: template_path(@template),method: :patch,local: true,html: { class: "template-form-container w-full max-w-xl" }) do |form| %> + +
+ +
+

Editar Template: <%= @template.nome %>

+ + <%# Exibe erros de validação %> + <% if @template.errors.any? %> +
+
    + <% @template.errors.full_messages.each do |msg| %> +
  • <%= msg %>
  • + <% end %> +
+
+ <% end %> + +
+ + <%= form.text_field :nome, required: true, placeholder: "Placeholder", class: "mt-1 block w-full border-b border-gray-300 focus:border-purple-600 focus:outline-none py-1" %> +
+ +
+ + <%# LOOP PRINCIPAL: fields_for para a associação has_many :questao_templates %> + <%# OMITIMOS o segundo parâmetro para iterar sobre TUDO que está em @template.questao_templates %> + <%= form.fields_for :questao_templates do |q_form| %> + +
+

Questão Existente

+ + <%# Campo ID (oculto): ESSENCIAL para identificar qual registro está sendo atualizado %> + <%= q_form.hidden_field :id %> + +
+
+ + <%# Campo tipo_resposta %> + <%= q_form.select :tipo_resposta, + [['Radio', 'Radio'], ['Texto', 'Texto']], + { selected: q_form.object.tipo_resposta }, + { class: "mt-1 block w-full border-b border-gray-300 focus:border-purple-600 focus:outline-none py-1 js-type-select" } %> +
+
+ + <%# Campo texto_questao %> + <%= q_form.text_field :texto_questao, placeholder: "Texto da Questão", class: "mt-1 block w-full border-b border-gray-300 focus:border-purple-600 focus:outline-none py-1" %> +
+
+ + <%# Container de Opções %> +
+ +
+ + <%# CORREÇÃO CRÍTICA: Iterar sobre as opções DENTRO do objeto da Questão %> + <% q_form.fields_for :opcao_templates do |o_form| %> + +
+ <%= o_form.hidden_field :id %> + + <%# Incluindo o campo obrigatório numero_opcao (como hidden) %> + <%= o_form.hidden_field :numero_opcao, value: o_form.object.numero_opcao || 1 %> + + <%# Campo texto_opcao %> + <%= o_form.text_field :texto_opcao, placeholder: "Opção Salva", class: "block w-full border-b border-gray-300 focus:border-purple-600 focus:outline-none py-1" %> + + <%# Checkbox _destroy para remover a opção (escondido) %> + <%= o_form.check_box :_destroy, class: 'hidden js-destroy-option-checkbox' %> + + <%# Botão visual para remover a opção (Ativa o checkbox _destroy via JS) %> + +
+ + <% end %> <%# Fim do loop de Opções %> +
+
+ +
+ +
+ + <%= q_form.check_box :_destroy, class: 'hidden js-destroy-question-checkbox' %> +
+ +
+ +
+ + <% end %> <%# Fim do loop de Questões %> +
+ +
+ +
+ +
+ +
+ <%= render(ButtonComponent.new(text: "Salvar Alterações", variant: :success, type: :submit)) %> +
+ +
+ <% end %> +
+ + +<%# --- TEMPLATES JS: Não precisam de alteração, mas foram incluídos para referência --- %> + + + \ No newline at end of file diff --git a/app/app/views/templates/index.html.erb b/app/app/views/templates/index.html.erb new file mode 100644 index 0000000000..55d074377b --- /dev/null +++ b/app/app/views/templates/index.html.erb @@ -0,0 +1,58 @@ +
+ +
+

Gerenciamento - Templates

+
+ +
+ + <% if notice %> + + <% elsif flash[:alert] %> + + <% end %> + +
+ + <% @templates.each do |template| %> +
+
+
+

<%= template.nome %>

+

Semestre e Código

+
+
+ + <%# Botão de EDIÇÃO (Lápis): GET para o formulário de edição %> + <%= link_to edit_template_path(template), + title: "Editar", + class: "cursor-pointer hover:text-purple-600" do %> + + <% end %> + + <%# Botão de EXCLUSÃO (Lixeira): DELETE para a action destroy_template %> + <%= link_to template_path(template), + data: { + turbo_method: :delete, + turbo_confirm: "Tem certeza que deseja excluir o template '#{template.nome}'?" + }, + title: "Excluir", + class: "cursor-pointer hover:text-red-600" do %> + + <% end %> +
+
+

Criado em: <%= template.created_at.strftime("%d/%m/%Y") %>

+
+ <% end %> + + <%# Botão para CRIAR Novo Template %> +
+ <%= link_to new_template_path, class: "w-full h-full flex items-center justify-center" do %> + + + <% end %> +
+ +
+
+
\ No newline at end of file diff --git a/app/app/views/templates/new.html.erb b/app/app/views/templates/new.html.erb new file mode 100644 index 0000000000..b36d6016bc --- /dev/null +++ b/app/app/views/templates/new.html.erb @@ -0,0 +1,43 @@ +
+ + <%= form_with model: @template, url: templates_path, local: true, html: { class: 'template-form-container w-full max-w-xl' } do |form| %> + +
+ +
+ + <%# Erros de validação %> + <% if @template.errors.any? %> +
+
    + <% @template.errors.full_messages.each do |msg| %> +
  • <%= msg %>
  • + <% end %> +
+
+ <% end %> + +
+ + <%= form.text_field :nome, required: true, placeholder: "Placeholder", class: "mt-1 block w-full border-b border-gray-300 focus:border-purple-600 focus:outline-none py-1" %> +
+ + <%# AQUI: container vazio onde o JS irá inserir as questões dinâmicas %> +
+ + <%# Botão para adicionar questão (JS usa .js-add-question) %> +
+ +
+ +
+ +
+ <%= render(ButtonComponent.new(text: "Criar", variant: :success, type: :submit)) %> +
+ +
+ <% end %> +
diff --git a/app/app/views/user_mailer/password_reset.html.erb b/app/app/views/user_mailer/password_reset.html.erb new file mode 100644 index 0000000000..9bdac51d23 --- /dev/null +++ b/app/app/views/user_mailer/password_reset.html.erb @@ -0,0 +1,8 @@ +

Redefinição de Senha

+ +

Para redefinir sua senha, clique no link abaixo:

+ +<%# ADICIONAMOS O EMAIL AQUI: %> +<%= link_to "Redefinir Senha", edit_password_reset_url(@token, email: @user.email) %> + +

Este link expira em duas horas.

\ No newline at end of file diff --git a/app/app/views/user_mailer/password_reset.text.erb b/app/app/views/user_mailer/password_reset.text.erb new file mode 100644 index 0000000000..1120a673c3 --- /dev/null +++ b/app/app/views/user_mailer/password_reset.text.erb @@ -0,0 +1,3 @@ +User#password_reset + +<%= @greeting %>, find me in app/views/user_mailer/password_reset.text.erb \ No newline at end of file diff --git a/app/app/views/users/new.html.erb b/app/app/views/users/new.html.erb new file mode 100644 index 0000000000..4d171d0a33 --- /dev/null +++ b/app/app/views/users/new.html.erb @@ -0,0 +1,87 @@ +
+
+ +
+ +

CADASTRO

+ + <% if flash[:alert] %> +
+ <%= flash[:alert] %> +
+ <% end %> + + <%# --- FORMULÁRIO DE CADASTRO --- %> + <%= form_with model: @usuario, url: cadastro_path, local: true, class: "space-y-6" do |form| %> + + <%# Campo Nome - REMOVIDAS AS CHAVES {} %> + <%= render FormInputComponent.new( + label: "Nome Completo", + form: form, + attribute: :nome, + type: :text, + placeholder: "Prof. Pardal" + ) %> + + <%# Campo Email - REMOVIDAS AS CHAVES {} %> + <%= render FormInputComponent.new( + label: "Email Institucional", + form: form, + attribute: :email, + type: :email, + placeholder: "pardal@unb.br" + ) %> + + <%# Campo Matrícula - REMOVIDAS AS CHAVES {} %> + <%= render FormInputComponent.new( + label: "Matrícula", + form: form, + attribute: :matricula, + type: :text, + placeholder: "000002" + ) %> + + <%# Campo Senha - REMOVIDAS AS CHAVES {} %> + <%= render FormInputComponent.new( + label: "Senha", + form: form, + attribute: :password, + type: :password, + placeholder: "Sua senha segura" + ) %> + + <%# Campo Confirmação de Senha - REMOVIDAS AS CHAVES {} %> + <%= render FormInputComponent.new( + label: "Confirme a Senha", + form: form, + attribute: :password_confirmation, + type: :password, + placeholder: "Repita a senha" + ) %> + + <%# Campo Ocupação (Select/Dropdown) - ESTE JÁ ESTAVA CORRETO %> +
+ <%= form.label :ocupacao, "Ocupação", class: "block text-sm font-medium text-gray-700" %> + <%= form.select :ocupacao, options_for_select(["docente", "discente"], @usuario.ocupacao), + { include_blank: "Selecione a Ocupação" }, + { class: "mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md" } %> +
+ +
+ <%# Botão de Cadastro - REMOVIDAS AS CHAVES {} %> + <%= render ButtonComponent.new( + text: "Cadastrar", + type: :submit, + variant: :primary + ) %> +
+ + <% end %> +
+ + + +
+
\ No newline at end of file diff --git a/app/bin/brakeman b/app/bin/brakeman new file mode 100755 index 0000000000..ace1c9ba08 --- /dev/null +++ b/app/bin/brakeman @@ -0,0 +1,7 @@ +#!/usr/bin/env ruby +require "rubygems" +require "bundler/setup" + +ARGV.unshift("--ensure-latest") + +load Gem.bin_path("brakeman", "brakeman") diff --git a/app/bin/bundler-audit b/app/bin/bundler-audit new file mode 100755 index 0000000000..e2ef22690c --- /dev/null +++ b/app/bin/bundler-audit @@ -0,0 +1,6 @@ +#!/usr/bin/env ruby +require_relative "../config/boot" +require "bundler/audit/cli" + +ARGV.concat %w[ --config config/bundler-audit.yml ] if ARGV.empty? || ARGV.include?("check") +Bundler::Audit::CLI.start diff --git a/app/bin/ci b/app/bin/ci new file mode 100755 index 0000000000..4137ad5bb0 --- /dev/null +++ b/app/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/app/bin/dev b/app/bin/dev new file mode 100755 index 0000000000..ad72c7d53c --- /dev/null +++ b/app/bin/dev @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +if ! gem list foreman -i --silent; then + echo "Installing foreman..." + gem install foreman +fi + +# Default to port 3000 if not specified +export PORT="${PORT:-3000}" + +# Let the debug gem allow remote connections, +# but avoid loading until `debugger` is called +export RUBY_DEBUG_OPEN="true" +export RUBY_DEBUG_LAZY="true" + +exec foreman start -f Procfile.dev "$@" diff --git a/app/bin/docker-entrypoint b/app/bin/docker-entrypoint new file mode 100755 index 0000000000..ed31659f40 --- /dev/null +++ b/app/bin/docker-entrypoint @@ -0,0 +1,8 @@ +#!/bin/bash -e + +# If running the rails server then create or migrate existing database +if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then + ./bin/rails db:prepare +fi + +exec "${@}" diff --git a/app/bin/importmap b/app/bin/importmap new file mode 100755 index 0000000000..36502ab16c --- /dev/null +++ b/app/bin/importmap @@ -0,0 +1,4 @@ +#!/usr/bin/env ruby + +require_relative "../config/application" +require "importmap/commands" diff --git a/app/bin/jobs b/app/bin/jobs new file mode 100755 index 0000000000..dcf59f309a --- /dev/null +++ b/app/bin/jobs @@ -0,0 +1,6 @@ +#!/usr/bin/env ruby + +require_relative "../config/environment" +require "solid_queue/cli" + +SolidQueue::Cli.start(ARGV) diff --git a/app/bin/kamal b/app/bin/kamal new file mode 100755 index 0000000000..cbe59b95ed --- /dev/null +++ b/app/bin/kamal @@ -0,0 +1,27 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'kamal' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) + +bundle_binstub = File.expand_path("bundle", __dir__) + +if File.file?(bundle_binstub) + if File.read(bundle_binstub, 300).include?("This file was generated by Bundler") + load(bundle_binstub) + else + abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + end +end + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("kamal", "kamal") diff --git a/app/bin/rails b/app/bin/rails new file mode 100755 index 0000000000..efc0377492 --- /dev/null +++ b/app/bin/rails @@ -0,0 +1,4 @@ +#!/usr/bin/env ruby +APP_PATH = File.expand_path("../config/application", __dir__) +require_relative "../config/boot" +require "rails/commands" diff --git a/app/bin/rake b/app/bin/rake new file mode 100755 index 0000000000..4fbf10b960 --- /dev/null +++ b/app/bin/rake @@ -0,0 +1,4 @@ +#!/usr/bin/env ruby +require_relative "../config/boot" +require "rake" +Rake.application.run diff --git a/app/bin/rubocop b/app/bin/rubocop new file mode 100755 index 0000000000..5a20504716 --- /dev/null +++ b/app/bin/rubocop @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby +require "rubygems" +require "bundler/setup" + +# Explicit RuboCop config increases performance slightly while avoiding config confusion. +ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__)) + +load Gem.bin_path("rubocop", "rubocop") diff --git a/app/bin/setup b/app/bin/setup new file mode 100755 index 0000000000..81be011e87 --- /dev/null +++ b/app/bin/setup @@ -0,0 +1,35 @@ +#!/usr/bin/env ruby +require "fileutils" + +APP_ROOT = File.expand_path("..", __dir__) + +def system!(*args) + system(*args, exception: true) +end + +FileUtils.chdir APP_ROOT do + # This script is a way to set up or update your development environment automatically. + # This script is idempotent, so that you can run it at any time and get an expectable outcome. + # Add necessary setup steps to this file. + + puts "== Installing dependencies ==" + system("bundle check") || system!("bundle install") + + # puts "\n== Copying sample files ==" + # unless File.exist?("config/database.yml") + # FileUtils.cp "config/database.yml.sample", "config/database.yml" + # end + + 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" + + 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/app/bin/thrust b/app/bin/thrust new file mode 100755 index 0000000000..36bde2d832 --- /dev/null +++ b/app/bin/thrust @@ -0,0 +1,5 @@ +#!/usr/bin/env ruby +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("thruster", "thrust") diff --git a/app/config.ru b/app/config.ru new file mode 100644 index 0000000000..4a3c09a688 --- /dev/null +++ b/app/config.ru @@ -0,0 +1,6 @@ +# This file is used by Rack-based servers to start the application. + +require_relative "config/environment" + +run Rails.application +Rails.application.load_server diff --git a/app/config/application.rb b/app/config/application.rb new file mode 100644 index 0000000000..a7c0e56c69 --- /dev/null +++ b/app/config/application.rb @@ -0,0 +1,27 @@ +require_relative "boot" + +require "rails/all" + +# Require the gems listed in Gemfile, including any gems +# you've limited to :test, :development, or :production. +Bundler.require(*Rails.groups) + +module App + class Application < Rails::Application + # Initialize configuration defaults for originally generated Rails version. + config.load_defaults 8.1 + + # 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. + # Common ones are `templates`, `generators`, or `middleware`, for example. + config.autoload_lib(ignore: %w[assets tasks]) + + # Configuration for the application, engines, and railties goes here. + # + # These settings can be overridden in specific environments using the files + # in config/environments, which are processed later. + # + # config.time_zone = "Central Time (US & Canada)" + # config.eager_load_paths << Rails.root.join("extras") + end +end diff --git a/app/config/boot.rb b/app/config/boot.rb new file mode 100644 index 0000000000..988a5ddc46 --- /dev/null +++ b/app/config/boot.rb @@ -0,0 +1,4 @@ +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) + +require "bundler/setup" # Set up gems listed in the Gemfile. +require "bootsnap/setup" # Speed up boot time by caching expensive operations. diff --git a/app/config/bundler-audit.yml b/app/config/bundler-audit.yml new file mode 100644 index 0000000000..e74b3af949 --- /dev/null +++ b/app/config/bundler-audit.yml @@ -0,0 +1,5 @@ +# Audit all gems listed in the Gemfile for known security problems by running bin/bundler-audit. +# CVEs that are not relevant to the application can be enumerated on the ignore list below. + +ignore: + - CVE-THAT-DOES-NOT-APPLY diff --git a/app/config/cable.yml b/app/config/cable.yml new file mode 100644 index 0000000000..b9adc5aa3a --- /dev/null +++ b/app/config/cable.yml @@ -0,0 +1,17 @@ +# Async adapter only works within the same process, so for manually triggering cable updates from a console, +# and seeing results in the browser, you must do so from the web console (running inside the dev process), +# not a terminal started via bin/rails console! Add "console" to any action or any ERB template view +# to make the web console appear. +development: + adapter: async + +test: + adapter: test + +production: + adapter: solid_cable + connects_to: + database: + writing: cable + polling_interval: 0.1.seconds + message_retention: 1.day diff --git a/app/config/cache.yml b/app/config/cache.yml new file mode 100644 index 0000000000..19d490843b --- /dev/null +++ b/app/config/cache.yml @@ -0,0 +1,16 @@ +default: &default + store_options: + # Cap age of oldest cache entry to fulfill retention policies + # max_age: <%= 60.days.to_i %> + max_size: <%= 256.megabytes %> + namespace: <%= Rails.env %> + +development: + <<: *default + +test: + <<: *default + +production: + database: cache + <<: *default diff --git a/app/config/ci.rb b/app/config/ci.rb new file mode 100644 index 0000000000..e56a92e418 --- /dev/null +++ b/app/config/ci.rb @@ -0,0 +1,23 @@ +# Run using bin/ci + +CI.run do + step "Setup", "bin/setup --skip-server" + + step "Style: Ruby", "bin/rubocop" + + step "Security: Gem audit", "bin/bundler-audit" + step "Security: Importmap vulnerability audit", "bin/importmap audit" + step "Security: Brakeman code analysis", "bin/brakeman --quiet --no-pager --exit-on-warn --exit-on-error" + + step "Tests: Rails", "bin/rails test" + step "Tests: System", "bin/rails test:system" + step "Tests: Seeds", "env RAILS_ENV=test bin/rails db:seed:replant" + + # 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/app/config/credentials.yml.enc b/app/config/credentials.yml.enc new file mode 100644 index 0000000000..0c92eb88c7 --- /dev/null +++ b/app/config/credentials.yml.enc @@ -0,0 +1 @@ +MTfpXCotsLi/o4SRIqzhTAZKU0CzJ326fPWJIFdlP60Ci2l2b7e/WmPANbuEsdop4Y/KfCY+mbPVEEY/zc9DkxopxAlRBxO5q0LTvr4fZZRP5+jwUBlY0eJBeSVWYnCMu8TR4C5A0I2iH9BSgKHPCExrPlTtkcb9tLZfWOOXJGkyg+ppdDaDh40uy9thds80CLBy0hybd3VYuoipsIH69kfnZ92kY2DoDrPdFbA0/eIUIGRZYjRRzO+O49VpU1hm1/K7v30tsUvVk/Mw79HSvtqJphR7+nx2AaaaZb9wGZg2kba7xlI8Ub1yqQPJRdAVrwKQcpWnEjtZKKt8D8Z6SFnvkfy3zlDE7NXGf3wGtIxuvCf8w+KA4D9dzscKO4KotsrRBZjY3iXSMtw7s0Uen1DVfTcX76ihPijxjgj+tTPIPsmBGEn3a3yl4j4Itvhm0/fSwVOLkKcCsN2/DUVojzYhSTNUjF+YTBENoO6EQ4uln0V1Hzzptr0V--qk9HAtHwYlFpp7nz--nceolNR7jFvtesZLazdbLg== \ No newline at end of file diff --git a/app/config/database.yml b/app/config/database.yml new file mode 100644 index 0000000000..693252b7c3 --- /dev/null +++ b/app/config/database.yml @@ -0,0 +1,41 @@ +# SQLite. Versions 3.8.0 and up are supported. +# gem install sqlite3 +# +# Ensure the SQLite 3 gem is defined in your Gemfile +# gem "sqlite3" +# +default: &default + adapter: sqlite3 + max_connections: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + timeout: 5000 + +development: + <<: *default + database: storage/development.sqlite3 + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + <<: *default + database: storage/test.sqlite3 + + +# Store production database in the storage/ directory, which by default +# is mounted as a persistent Docker volume in config/deploy.yml. +production: + primary: + <<: *default + database: storage/production.sqlite3 + cache: + <<: *default + database: storage/production_cache.sqlite3 + migrations_paths: db/cache_migrate + queue: + <<: *default + database: storage/production_queue.sqlite3 + migrations_paths: db/queue_migrate + cable: + <<: *default + database: storage/production_cable.sqlite3 + migrations_paths: db/cable_migrate diff --git a/app/config/deploy.yml b/app/config/deploy.yml new file mode 100644 index 0000000000..92e0aacd7f --- /dev/null +++ b/app/config/deploy.yml @@ -0,0 +1,120 @@ +# Name of your application. Used to uniquely configure containers. +service: app + +# Name of the container image (use your-user/app-name on external registries). +image: app + +# Deploy to these servers. +servers: + web: + - 192.168.0.1 + # job: + # hosts: + # - 192.168.0.1 + # cmd: bin/jobs + +# Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server. +# If used with Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption. +# +# Using an SSL proxy like this requires turning on config.assume_ssl and config.force_ssl in production.rb! +# +# Don't use this when deploying to multiple web servers (then you have to terminate SSL at your load balancer). +# +# proxy: +# ssl: true +# host: app.example.com + +# Where you keep your container images. +registry: + # Alternatives: hub.docker.com / registry.digitalocean.com / ghcr.io / ... + server: localhost:5555 + + # Needed for authenticated registries. + # username: your-user + + # Always use an access token rather than real password when possible. + # password: + # - KAMAL_REGISTRY_PASSWORD + +# Inject ENV variables into containers (secrets come from .kamal/secrets). +env: + secret: + - RAILS_MASTER_KEY + clear: + # Run the Solid Queue Supervisor inside the web server's Puma process to do jobs. + # When you start using multiple servers, you should split out job processing to a dedicated machine. + SOLID_QUEUE_IN_PUMA: true + + # Set number of processes dedicated to Solid Queue (default: 1) + # JOB_CONCURRENCY: 3 + + # Set number of cores available to the application on each server (default: 1). + # WEB_CONCURRENCY: 2 + + # Match this to any external database server to configure Active Record correctly + # Use app-db for a db accessory server on same machine via local kamal docker network. + # DB_HOST: 192.168.0.2 + + # Log everything from Rails + # RAILS_LOG_LEVEL: debug + +# Aliases are triggered with "bin/kamal ". You can overwrite arguments on invocation: +# "bin/kamal logs -r job" will tail logs from the first server in the job section. +aliases: + console: app exec --interactive --reuse "bin/rails console" + shell: app exec --interactive --reuse "bash" + logs: app logs -f + dbc: app exec --interactive --reuse "bin/rails dbconsole --include-password" + +# Use a persistent storage volume for sqlite database files and local Active Storage files. +# Recommended to change this to a mounted volume path that is backed up off server. +volumes: + - "app_storage:/rails/storage" + +# Bridge fingerprinted assets, like JS and CSS, between versions to avoid +# hitting 404 on in-flight requests. Combines all files from new and old +# version inside the asset_path. +asset_path: /rails/public/assets + + +# Configure the image builder. +builder: + arch: amd64 + + # # Build image via remote server (useful for faster amd64 builds on arm64 computers) + # remote: ssh://docker@docker-builder-server + # + # # Pass arguments and secrets to the Docker build process + # args: + # RUBY_VERSION: 3.3.10 + # secrets: + # - GITHUB_TOKEN + # - RAILS_MASTER_KEY + +# Use a different ssh user than root +# ssh: +# user: app + +# Use accessory services (secrets come from .kamal/secrets). +# accessories: +# db: +# image: mysql:8.0 +# host: 192.168.0.2 +# # Change to 3306 to expose port to the world instead of just local network. +# port: "127.0.0.1:3306:3306" +# env: +# clear: +# MYSQL_ROOT_HOST: '%' +# secret: +# - MYSQL_ROOT_PASSWORD +# files: +# - config/mysql/production.cnf:/etc/mysql/my.cnf +# - db/production.sql:/docker-entrypoint-initdb.d/setup.sql +# directories: +# - data:/var/lib/mysql +# redis: +# image: valkey/valkey:8 +# host: 192.168.0.2 +# port: 6379 +# directories: +# - data:/data diff --git a/app/config/environment.rb b/app/config/environment.rb new file mode 100644 index 0000000000..cac5315775 --- /dev/null +++ b/app/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative "application" + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/app/config/environments/development.rb b/app/config/environments/development.rb new file mode 100644 index 0000000000..4b999c5cab --- /dev/null +++ b/app/config/environments/development.rb @@ -0,0 +1,81 @@ +require "active_support/core_ext/integer/time" + +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # Make code changes take effect immediately without server restart. + config.enable_reloading = true + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable server timing. + config.server_timing = true + + # 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.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" } + else + config.action_controller.perform_caching = false + end + + # Change to :null_store to avoid any caching. + config.cache_store = :memory_store + + # Store uploaded files on the local file system (see config/storage.yml for options). + config.active_storage.service = :local + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + # 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: "localhost", port: 3000 } + + # Print deprecation notices to the Rails logger. + config.active_support.deprecation = :log + + # 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 + + # Raises error for missing translations. + # config.i18n.raise_on_missing_translations = true + + # Annotate rendered view with file names. + config.action_view.annotate_rendered_view_with_filenames = true + + # Uncomment if you wish to allow Action Cable access from any origin. + # config.action_cable.disable_request_forgery_protection = true + + # Raise error when a before_action's only/except options reference missing actions. + config.action_controller.raise_on_missing_callback_actions = true + + # Apply autocorrection by RuboCop to files generated by `bin/rails generate`. + # config.generators.apply_rubocop_autocorrect_after_generate! + + config.action_mailer.delivery_method = :letter_opener + config.action_mailer.perform_deliveries = true +end diff --git a/app/config/environments/production.rb b/app/config/environments/production.rb new file mode 100644 index 0000000000..f5763e04e5 --- /dev/null +++ b/app/config/environments/production.rb @@ -0,0 +1,90 @@ +require "active_support/core_ext/integer/time" + +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # Code is not reloaded between requests. + config.enable_reloading = false + + # Eager load code on boot for better performance and memory savings (ignored by Rake tasks). + config.eager_load = true + + # Full error reports are disabled. + config.consider_all_requests_local = false + + # Turn on fragment caching in view templates. + config.action_controller.perform_caching = true + + # 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" + + # Store uploaded files on the local file system (see config/storage.yml for options). + config.active_storage.service = :local + + # Assume all access to the app is happening through a SSL-terminating reverse proxy. + # config.assume_ssl = true + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Skip http-to-https redirect for the default health check endpoint. + # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } } + + # Log to STDOUT with the current request id as a default log tag. + config.log_tags = [ :request_id ] + config.logger = ActiveSupport::TaggedLogging.logger(STDOUT) + + # Change to "debug" to log everything (including potentially personally-identifiable information!). + config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info") + + # 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 = :solid_cache_store + + # Replace the default in-process and non-durable queuing backend for Active Job. + config.active_job.queue_adapter = :solid_queue + config.solid_queue.connects_to = { database: { writing: :queue } } + + # 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 + + # Set host to be used by links generated in mailer templates. + config.action_mailer.default_url_options = { host: "example.com" } + + # Specify outgoing SMTP server. Remember to add smtp/* credentials via bin/rails credentials:edit. + # config.action_mailer.smtp_settings = { + # user_name: Rails.application.credentials.dig(:smtp, :user_name), + # password: Rails.application.credentials.dig(:smtp, :password), + # address: "smtp.example.com", + # port: 587, + # authentication: :plain + # } + + # 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 + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false + + # Only use :id for inspections in production. + config.active_record.attributes_for_inspect = [ :id ] + + # Enable DNS rebinding protection and other `Host` header attacks. + # config.hosts = [ + # "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/app/config/environments/test.rb b/app/config/environments/test.rb new file mode 100644 index 0000000000..c2095b1174 --- /dev/null +++ b/app/config/environments/test.rb @@ -0,0 +1,53 @@ +# 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 +# and recreated between test runs. Don't rely on the data there! + +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # While tests run files are not watched, reloading is not necessary. + config.enable_reloading = false + + # Eager loading loads your entire application. When running a single test locally, + # this is usually not necessary, and can slow down your test suite. However, it's + # recommended that you enable it in continuous integration systems to ensure eager + # 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.headers = { "cache-control" => "public, max-age=3600" } + + # Show full error reports. + config.consider_all_requests_local = true + config.cache_store = :null_store + + # Render exception templates for rescuable exceptions and raise for other exceptions. + config.action_dispatch.show_exceptions = :rescuable + + # Disable request forgery protection in test environment. + config.action_controller.allow_forgery_protection = false + + # Store uploaded files on the local file system in a temporary directory. + config.active_storage.service = :test + + # 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 + + # 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 + + # Raises error for missing translations. + # config.i18n.raise_on_missing_translations = true + + # Annotate rendered view with file names. + # config.action_view.annotate_rendered_view_with_filenames = true + + # Raise error when a before_action's only/except options reference missing actions. + config.action_controller.raise_on_missing_callback_actions = true +end diff --git a/app/config/importmap.rb b/app/config/importmap.rb new file mode 100644 index 0000000000..909dfc542d --- /dev/null +++ b/app/config/importmap.rb @@ -0,0 +1,7 @@ +# Pin npm packages by running ./bin/importmap + +pin "application" +pin "@hotwired/turbo-rails", to: "turbo.min.js" +pin "@hotwired/stimulus", to: "stimulus.min.js" +pin "@hotwired/stimulus-loading", to: "stimulus-loading.js" +pin_all_from "app/javascript/controllers", under: "controllers" diff --git a/app/config/initializers/assets.rb b/app/config/initializers/assets.rb new file mode 100644 index 0000000000..487324424f --- /dev/null +++ b/app/config/initializers/assets.rb @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# Version of your assets, change this if you want to expire all your assets. +Rails.application.config.assets.version = "1.0" + +# Add additional assets to the asset load path. +# Rails.application.config.assets.paths << Emoji.images_path diff --git a/app/config/initializers/content_security_policy.rb b/app/config/initializers/content_security_policy.rb new file mode 100644 index 0000000000..d51d713979 --- /dev/null +++ b/app/config/initializers/content_security_policy.rb @@ -0,0 +1,29 @@ +# Be sure to restart your server when you modify this file. + +# Define an application-wide content security policy. +# See the Securing Rails Applications Guide for more information: +# https://guides.rubyonrails.org/security.html#content-security-policy-header + +# Rails.application.configure do +# config.content_security_policy do |policy| +# policy.default_src :self, :https +# policy.font_src :self, :https, :data +# policy.img_src :self, :https, :data +# policy.object_src :none +# policy.script_src :self, :https +# policy.style_src :self, :https +# # Specify URI for violation reports +# # policy.report_uri "/csp-violation-report-endpoint" +# end +# +# # Generate session nonces for permitted importmap, inline scripts, and inline styles. +# 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/app/config/initializers/filter_parameter_logging.rb b/app/config/initializers/filter_parameter_logging.rb new file mode 100644 index 0000000000..c0b717f7ec --- /dev/null +++ b/app/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file. +# 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, :cvv, :cvc +] diff --git a/app/config/initializers/inflections.rb b/app/config/initializers/inflections.rb new file mode 100644 index 0000000000..3860f659ea --- /dev/null +++ b/app/config/initializers/inflections.rb @@ -0,0 +1,16 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.plural /^(ox)$/i, "\\1en" +# inflect.singular /^(ox)en/i, "\\1" +# inflect.irregular "person", "people" +# inflect.uncountable %w( fish sheep ) +# end + +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.acronym "RESTful" +# end diff --git a/app/config/locales/en.yml b/app/config/locales/en.yml new file mode 100644 index 0000000000..6c349ae5e3 --- /dev/null +++ b/app/config/locales/en.yml @@ -0,0 +1,31 @@ +# Files in the config/locales directory are used for internationalization and +# are automatically loaded by Rails. If you want to use locales other than +# English, add the necessary files in this directory. +# +# To use the locales, use `I18n.t`: +# +# I18n.t "hello" +# +# In views, this is aliased to just `t`: +# +# <%= t("hello") %> +# +# To use a different locale, set it with `I18n.locale`: +# +# I18n.locale = :es +# +# This would use the information in config/locales/es.yml. +# +# To learn more about the API, please read the Rails Internationalization guide +# at https://guides.rubyonrails.org/i18n.html. +# +# Be aware that YAML interprets the following case-insensitive strings as +# booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings +# must be quoted to be interpreted as strings. For example: +# +# en: +# "yes": yup +# enabled: "ON" + +en: + hello: "Hello world" diff --git a/app/config/puma.rb b/app/config/puma.rb new file mode 100644 index 0000000000..38c4b86596 --- /dev/null +++ b/app/config/puma.rb @@ -0,0 +1,42 @@ +# 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 +# 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 +# Global VM Lock (GVL) it has diminishing returns and will degrade the +# response time (latency) of the application. +# +# The default is set to 3 threads as it's deemed a decent compromise between +# throughput and latency for the average Rails application. +# +# Any libraries that use a connection pool or another resource pool should +# be configured to provide at least as many connections as the number of +# threads. This includes Active Record's `pool` parameter in `database.yml`. +threads_count = ENV.fetch("RAILS_MAX_THREADS", 3) +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests; default is 3000. +port ENV.fetch("PORT", 3000) + +# 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/app/config/queue.yml b/app/config/queue.yml new file mode 100644 index 0000000000..9eace59c41 --- /dev/null +++ b/app/config/queue.yml @@ -0,0 +1,18 @@ +default: &default + dispatchers: + - polling_interval: 1 + batch_size: 500 + workers: + - queues: "*" + threads: 3 + processes: <%= ENV.fetch("JOB_CONCURRENCY", 1) %> + polling_interval: 0.1 + +development: + <<: *default + +test: + <<: *default + +production: + <<: *default diff --git a/app/config/recurring.yml b/app/config/recurring.yml new file mode 100644 index 0000000000..b4207f9b07 --- /dev/null +++ b/app/config/recurring.yml @@ -0,0 +1,15 @@ +# examples: +# periodic_cleanup: +# class: CleanSoftDeletedRecordsJob +# queue: background +# args: [ 1000, { batch_size: 500 } ] +# schedule: every hour +# periodic_cleanup_with_command: +# command: "SoftDeletedRecord.due.delete_all" +# priority: 2 +# schedule: at 5am every day + +production: + clear_solid_queue_finished_jobs: + command: "SolidQueue::Job.clear_finished_in_batches(sleep_between_batches: 0.3)" + schedule: every hour at minute 12 diff --git a/app/config/routes.rb b/app/config/routes.rb new file mode 100644 index 0000000000..5f9d7fc034 --- /dev/null +++ b/app/config/routes.rb @@ -0,0 +1,39 @@ +Rails.application.routes.draw do + get 'login', to: 'sessions#new' + post 'login', to: 'sessions#create' + delete 'logout', to: 'sessions#destroy' + + get 'cadastro', to: 'users#new', as: 'cadastro' + post 'cadastro', to: 'users#create' + + get 'dashboard', to: 'dashboard#index' + root to: 'dashboard#index' + + get 'admin', to: 'admins#dashboard', as: 'admin' + + get 'admin/importar', to: 'admins#import_form', as: 'admin_importar_form' + post 'admin/importar', to: 'admins#importar' + + get 'admin/send_forms', to: 'admins#send_forms', as: 'admin_send_forms' + post 'admin/send_forms', to: 'admins#process_send_forms', as: 'admin_process_send_forms' + + resources :templates + + scope '/admin' do + resources :resultados, only: [:index] do + member do + get :baixar + end + end + end + + resource :password, only: [:edit, :update] + + resources :formularios, only: [:show] do + member do + post :responder + end + end + + resources :password_resets, only: [:new, :create, :edit, :update] +end \ No newline at end of file diff --git a/app/config/storage.yml b/app/config/storage.yml new file mode 100644 index 0000000000..927dc537c8 --- /dev/null +++ b/app/config/storage.yml @@ -0,0 +1,27 @@ +test: + service: Disk + root: <%= Rails.root.join("tmp/storage") %> + +local: + service: Disk + root: <%= Rails.root.join("storage") %> + +# Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) +# amazon: +# service: S3 +# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> +# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> +# region: us-east-1 +# bucket: your_own_bucket-<%= Rails.env %> + +# Remember not to checkin your GCS keyfile to a repository +# google: +# service: GCS +# project: your_project +# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> +# bucket: your_own_bucket-<%= Rails.env %> + +# mirror: +# service: Mirror +# primary: local +# mirrors: [ amazon, google, microsoft ] diff --git a/app/coverage/.last_run.json b/app/coverage/.last_run.json new file mode 100644 index 0000000000..5571ada5e7 --- /dev/null +++ b/app/coverage/.last_run.json @@ -0,0 +1,5 @@ +{ + "result": { + "line": 98.31 + } +} diff --git a/app/coverage/.resultset.json b/app/coverage/.resultset.json new file mode 100644 index 0000000000..b2355345e0 --- /dev/null +++ b/app/coverage/.resultset.json @@ -0,0 +1,1094 @@ +{ + "RSpec": { + "coverage": { + "/home/davih/CAMAAR/app/app/helpers/application_helper.rb": { + "lines": [ + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/helpers/dashboard_helper.rb": { + "lines": [ + 1, + null, + 1, + 11, + 11, + null, + null, + null, + 1, + 3, + 1, + null, + 2, + null, + null, + null, + null, + 1, + 3, + 8, + null, + null, + null, + null, + 1, + 3, + null, + 1, + null, + 1, + null, + 1, + null, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/helpers/formularios_helper.rb": { + "lines": [ + 1, + null, + 1, + 3, + null, + 1, + null, + 1, + null, + 1, + null, + null, + null, + null, + 1, + 3, + null, + 1, + null, + 1, + null, + 1, + null, + null, + null, + null, + 1, + 2, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/helpers/sessions_helper.rb": { + "lines": [ + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/jobs/application_job.rb": { + "lines": [ + 1, + null, + null, + null, + null, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/mailers/user_mailer.rb": { + "lines": [ + 1, + 1, + 3, + 3, + null, + 3, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/mailers/application_mailer.rb": { + "lines": [ + 1, + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/departamento.rb": { + "lines": [ + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/application_record.rb": { + "lines": [ + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/formulario_respondido.rb": { + "lines": [ + 1, + 1, + 1, + null, + 1, + null, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/formulario.rb": { + "lines": [ + null, + 1, + 1, + 1, + 1, + 1, + null, + 1, + 1, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/formulario_turma.rb": { + "lines": [ + 1, + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/materia.rb": { + "lines": [ + 1, + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/opcao_formulario.rb": { + "lines": [ + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/opcao_template.rb": { + "lines": [ + 1, + null, + 1, + null, + null, + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/questao_formulario.rb": { + "lines": [ + 1, + 1, + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/questao_respondida.rb": { + "lines": [ + 1, + 1, + 1, + null, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/questao_template.rb": { + "lines": [ + 1, + null, + 1, + null, + null, + 1, + 1, + null, + null, + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/template.rb": { + "lines": [ + 1, + null, + 1, + null, + null, + 1, + null, + null, + null, + 1, + null, + null, + 1, + null, + 1, + 1, + 1, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/turma.rb": { + "lines": [ + 1, + 1, + null, + 1, + 1, + null, + 1, + 1, + null, + 1, + 4, + 2, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/usuario.rb": { + "lines": [ + null, + null, + 1, + 1, + null, + 1, + null, + 1, + 1, + 1, + 1, + null, + 1, + 1, + null, + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/concerns/password_resetable.rb": { + "lines": [ + null, + null, + 1, + 1, + null, + 1, + 1, + 1, + null, + null, + 1, + 1, + null, + null, + 1, + 4, + 3, + null, + 2, + null, + null, + 1, + null, + 1, + 2, + 2, + 2, + null, + null, + 1, + 4, + null, + 4, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/models/usuario_turma.rb": { + "lines": [ + 1, + 1, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/services/form_distribution_service.rb": { + "lines": [ + 1, + 1, + 1, + 1, + null, + null, + 1, + 1, + 1, + 2, + null, + null, + null, + null, + 1, + null, + 1, + 2, + null, + null, + null, + null, + 2, + 2, + null, + null, + 1, + 2, + 2, + null, + null, + null, + null, + 2, + null, + null, + null, + 1, + 2, + 2, + null, + null, + null, + null, + null, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/services/form_response_service.rb": { + "lines": [ + null, + 1, + 1, + 2, + 2, + 2, + null, + null, + 1, + 2, + 2, + 2, + null, + null, + null, + 1, + null, + 1, + 2, + null, + null, + null, + null, + null, + 1, + 1, + 2, + null, + null, + null, + 1, + 2, + 2, + null, + null, + null, + null, + 2, + 2, + null, + null, + 1, + 2, + 1, + null, + 1, + null, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/services/formulario_export_service.rb": { + "lines": [ + 1, + null, + 1, + 1, + 3, + 3, + null, + null, + 1, + 3, + 3, + null, + 3, + 2, + null, + null, + null, + null, + 1, + null, + 1, + 3, + null, + null, + 1, + 3, + null, + null, + null, + 1, + 2, + 2, + null, + 2, + null, + 2, + 3, + null, + null, + 2, + null, + null, + 1, + 2, + null, + null, + 1, + 3, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/services/sigaa_service.rb": { + "lines": [ + 1, + null, + 1, + 1, + 4, + 4, + null, + null, + 1, + 4, + null, + 4, + 2, + 2, + null, + 2, + null, + null, + 4, + 3, + 3, + null, + 1, + null, + null, + 4, + null, + null, + 1, + null, + 1, + 2, + 2, + 1, + null, + 1, + null, + 1, + 1, + null, + null, + 1, + 1, + 1, + null, + 1, + null, + null, + 1, + null, + null, + null, + null, + 1, + null, + null, + 1, + null, + null, + 1, + 3, + 3, + 3, + null, + 3, + 3, + null, + 3, + 3, + 2, + 2, + null, + null, + 1, + null, + null, + null, + null, + 1, + 0, + 0, + null, + null, + null, + 1, + 1, + 1, + null, + null, + null, + 1, + 1, + 1, + 1, + null, + null, + null, + null, + 0, + null, + null, + 1, + 2, + null, + 2, + 2, + 2, + 2, + 2, + 2, + null, + 2, + 2, + 2, + null, + 0, + null, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/controllers/sessions_controller.rb": { + "lines": [ + null, + null, + 1, + 1, + null, + 1, + 29, + null, + 29, + 27, + 27, + null, + 2, + 2, + null, + null, + null, + 1, + 1, + 1, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/controllers/application_controller.rb": { + "lines": [ + 1, + 1, + null, + 1, + 107, + null, + null, + 1, + 37, + null, + null, + 1, + 37, + 3, + null, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/components/form_input_component.rb": { + "lines": [ + null, + 1, + null, + null, + 1, + 32, + 32, + 32, + 32, + 32, + 32, + null, + null, + 32, + null, + null, + null, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/components/button_component.rb": { + "lines": [ + 1, + 1, + 31, + 31, + 31, + 31, + null, + null, + 1, + 31, + null, + 31, + null, + null, + 22, + null, + null, + 4, + null, + null, + 2, + null, + null, + 3, + null, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/components/brand_panel_component.rb": { + "lines": [ + null, + 1, + null + ] + }, + "/home/davih/CAMAAR/app/app/controllers/dashboard_controller.rb": { + "lines": [ + 1, + 1, + 1, + null, + 1, + 8, + null, + 8, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/components/dashboard/sidebar_component.rb": { + "lines": [ + 1, + 1, + 1, + 20, + null, + null, + 1, + 20, + null, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/components/dashboard/header_component.rb": { + "lines": [ + 1, + 1, + 1, + 20, + 20, + null, + null, + 1, + 20, + null, + 0, + null, + null, + 1, + 20, + 5, + null, + 15, + null, + null, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/controllers/templates_controller.rb": { + "lines": [ + null, + null, + null, + 1, + 1, + 1, + null, + 1, + null, + 1, + null, + 1, + 4, + null, + null, + 1, + 1, + 1, + null, + null, + 1, + 2, + 2, + 2, + null, + null, + 1, + 0, + null, + null, + 1, + 1, + 1, + null, + null, + 1, + 1, + 1, + 1, + null, + null, + 1, + null, + 1, + 3, + 1, + null, + 2, + 2, + null, + null, + null, + 1, + 3, + null, + null, + null, + null, + null, + null, + null, + null, + 1, + 3, + null, + 3, + null, + 1, + null, + null, + 1, + 0, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/components/evaluation_card_component.rb": { + "lines": [ + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 2, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/controllers/users_controller.rb": { + "lines": [ + null, + 1, + null, + 1, + null, + 2, + null, + null, + 1, + null, + 2, + null, + 2, + null, + 1, + 1, + 1, + null, + null, + 1, + 1, + null, + null, + null, + 1, + null, + 1, + null, + null, + null, + null, + 2, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/controllers/admins_controller.rb": { + "lines": [ + null, + null, + 1, + 1, + 1, + null, + 1, + null, + 1, + null, + 1, + 2, + 1, + 1, + null, + 1, + null, + null, + null, + 1, + 1, + 1, + null, + null, + 1, + 2, + 2, + null, + 2, + 1, + null, + null, + 1, + null, + 1, + null, + null, + 1, + null, + 1, + 2, + null, + null, + 1, + 1, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/controllers/formularios_controller.rb": { + "lines": [ + null, + 1, + 1, + 1, + null, + 1, + 1, + null, + null, + 1, + 1, + null, + 1, + null, + 0, + null, + null, + 1, + null, + 1, + 3, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/controllers/password_resets_controller.rb": { + "lines": [ + null, + null, + 1, + 1, + null, + 1, + null, + 1, + 2, + null, + 2, + 1, + 1, + null, + 1, + 1, + null, + null, + null, + 1, + null, + 1, + 2, + 1, + 1, + null, + 1, + null, + null, + null, + 1, + null, + 1, + 2, + null, + null, + 1, + 5, + null, + 5, + null, + 5, + null, + 3, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/controllers/passwords_controller.rb": { + "lines": [ + 1, + 1, + null, + 1, + null, + null, + 1, + 2, + 1, + null, + 1, + null, + null, + null, + 1, + null, + 1, + 2, + null, + null + ] + }, + "/home/davih/CAMAAR/app/app/controllers/resultados_controller.rb": { + "lines": [ + 1, + 1, + 1, + null, + 1, + null, + 1, + null, + null, + 1, + 1, + null, + 1, + 1, + 1, + null, + null, + null, + null, + null + ] + } + }, + "timestamp": 1765805923 + } +} diff --git a/app/coverage/.resultset.json.lock b/app/coverage/.resultset.json.lock new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc.png b/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc.png new file mode 100644 index 0000000000..e1ba61a805 Binary files /dev/null and b/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc.png differ diff --git a/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc_disabled.png b/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc_disabled.png new file mode 100644 index 0000000000..fb11dfe24a Binary files /dev/null and b/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc_disabled.png differ diff --git a/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_both.png b/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_both.png new file mode 100644 index 0000000000..af5bc7c5a1 Binary files /dev/null and b/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_both.png differ diff --git a/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc.png b/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc.png new file mode 100644 index 0000000000..0e156deb5f Binary files /dev/null and b/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc.png differ diff --git a/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc_disabled.png b/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc_disabled.png new file mode 100644 index 0000000000..c9fdd8a150 Binary files /dev/null and b/app/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc_disabled.png differ diff --git a/app/coverage/assets/0.13.2/application.css b/app/coverage/assets/0.13.2/application.css new file mode 100644 index 0000000000..a6f11a5e23 --- /dev/null +++ b/app/coverage/assets/0.13.2/application.css @@ -0,0 +1 @@ +html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,code,del,dfn,em,img,q,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,dialog,figure,footer,header,hgroup,nav,section{margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline}article,aside,dialog,figure,footer,header,hgroup,nav,section{display:block}body{line-height:1.5}table{border-collapse:separate;border-spacing:0}caption,th,td{text-align:left;font-weight:normal}table,td,th{vertical-align:middle}blockquote:before,blockquote:after,q:before,q:after{content:""}blockquote,q{quotes:"" ""}a img{border:none}html{font-size:100.01%}body{font-size:82%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif}h1,h2,h3,h4,h5,h6{font-weight:normal;color:#111}h1{font-size:3em;line-height:1;margin-bottom:0.5em}h2{font-size:2em;margin-bottom:0.75em}h3{font-size:1.5em;line-height:1;margin-bottom:1em}h4{font-size:1.2em;line-height:1.25;margin-bottom:1.25em}h5{font-size:1em;font-weight:bold;margin-bottom:1.5em}h6{font-size:1em;font-weight:bold}h1 img,h2 img,h3 img,h4 img,h5 img,h6 img{margin:0}p{margin:0 0 1.5em}p img.left{float:left;margin:1.5em 1.5em 1.5em 0;padding:0}p img.right{float:right;margin:1.5em 0 1.5em 1.5em}a:focus,a:hover{color:#000}a{color:#009;text-decoration:underline}blockquote{margin:1.5em;color:#666;font-style:italic}strong{font-weight:bold}em,dfn{font-style:italic}dfn{font-weight:bold}sup,sub{line-height:0}abbr,acronym{border-bottom:1px dotted #666}address{margin:0 0 1.5em;font-style:italic}del{color:#666}pre{margin:1.5em 0;white-space:pre}pre,code,tt{font:1em 'andale mono', 'lucida console', monospace;line-height:1.5}li ul,li ol{margin:0}ul,ol{margin:0 1.5em 1.5em 0;padding-left:3.333em}ul{list-style-type:disc}ol{list-style-type:decimal}dl{margin:0 0 1.5em 0}dl dt{font-weight:bold}dd{margin-left:1.5em}table{margin-bottom:1.4em;width:100%}th{font-weight:bold}thead th{background:#c3d9ff}th,td,caption{padding:4px 10px 4px 5px}tr.even td{background:#efefef}tfoot{font-style:italic}caption{background:#eee}.small{font-size:.8em;margin-bottom:1.875em;line-height:1.875em}.large{font-size:1.2em;line-height:2.5em;margin-bottom:1.25em}.hide{display:none}.quiet{color:#666}.loud{color:#000}.highlight{background:#ff0}.added{background:#060;color:#fff}.removed{background:#900;color:#fff}.first{margin-left:0;padding-left:0}.last{margin-right:0;padding-right:0}.top{margin-top:0;padding-top:0}.bottom{margin-bottom:0;padding-bottom:0}label{font-weight:bold}fieldset{padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc}legend{font-weight:bold;font-size:1.2em}input[type=text],input[type=password],input.text,input.title,textarea,select{background-color:#fff;border:1px solid #bbb}input[type=text]:focus,input[type=password]:focus,input.text:focus,input.title:focus,textarea:focus,select:focus{border-color:#666}input[type=text],input[type=password],input.text,input.title,textarea,select{margin:0.5em 0}input.text,input.title{width:300px;padding:5px}input.title{font-size:1.5em}textarea{width:390px;height:250px;padding:5px}input[type=checkbox],input[type=radio],input.checkbox,input.radio{position:relative;top:.25em}form.inline{line-height:3}form.inline p{margin-bottom:0}.error,.notice,.success{padding:.8em;margin-bottom:1em;border:2px solid #ddd}.error{background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4}.notice{background:#FFF6BF;color:#514721;border-color:#FFD324}.success{background:#E6EFC2;color:#264409;border-color:#C6D880}.error a{color:#8a1f11}.notice a{color:#514721}.success a{color:#264409}.box{padding:1.5em;margin-bottom:1.5em;background:#E5ECF9}hr{background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none}hr.space{background:#fff;color:#fff;visibility:hidden}.clearfix:after,.container:after{content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden}.clearfix,.container{display:block}.clear{clear:both}table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;*cursor:hand;background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7XQMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL%2BTq%2FQCM1oNiJidwox0355mXnG%2FDrEtIQ6azioNZQxI0ykPhTQIwhCR%2BBmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P%2BGtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC)}table.dataTable thead .sorting_asc{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS%2FgDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM%2BwTENuQahAvEO9DMwiGdwAxOymGJQLxTyD%2BjgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg%3D%3D)}table.dataTable thead .sorting_desc{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA%2FBOIv2PBIPFEUgxjB%2BIdQPwfC94HxLykus4GiD%2BhGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL%2BAuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII%3D)}table.dataTable thead .sorting_asc_disabled{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAW0lEQVQoz2NgoCm4w3Vnwh02wspK7%2Fy6k01Ikdadx3f%2B37l9RxmfIsY7c4GKQHDiHUbcyhzvvIMq%2B3THBpci3jv7oIpAcMcdduzKEu%2F8vPMdDn%2FeiWQYBYMKAAC3ykIEuYQJUgAAAABJRU5ErkJggg%3D%3D)}table.dataTable thead .sorting_desc_disabled{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAWUlEQVQoz2NgGAWDCtyJvPPzznc4%2FHknEbsy9js77vyHw313eHGZZ3PnE1TRuzuOuK1lvDMRqmzuHUZ87lO%2Bcxuo6PEdLUIeyb7z604pYf%2By3Zlwh4u2YQoAc7ZCBHH4jigAAAAASUVORK5CYII%3D)}table.dataTable tbody tr{background-color:#ffffff}table.dataTable tbody tr.selected{background-color:#B0BED9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#acbad4}table.dataTable.hover tbody tr:hover,table.dataTable.display tbody tr:hover{background-color:#f6f6f6}table.dataTable.hover tbody tr:hover.selected,table.dataTable.display tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:whitesmoke}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px 4px 4px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{margin-left:0.5em}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:white;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td{vertical-align:middle}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table.dataTable,.dataTables_wrapper.no-footer div.dataTables_scrollBody>table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}}pre .comment,pre .template_comment,pre .diff .header,pre .javadoc{color:#998;font-style:italic}pre .keyword,pre .css .rule .keyword,pre .winutils,pre .javascript .title,pre .lisp .title{color:#000;font-weight:bold}pre .number,pre .hexcolor{color:#458}pre .string,pre .tag .value,pre .phpdoc,pre .tex .formula{color:#d14}pre .subst{color:#712}pre .constant,pre .title,pre .id{color:#900;font-weight:bold}pre .javascript .title,pre .lisp .title,pre .subst{font-weight:normal}pre .class .title,pre .haskell .label,pre .tex .command{color:#458;font-weight:bold}pre .tag,pre .tag .title,pre .rules .property,pre .django .tag .keyword{color:#000080;font-weight:normal}pre .attribute,pre .variable,pre .instancevar,pre .lisp .body{color:#008080}pre .regexp{color:#009926}pre .class{color:#458;font-weight:bold}pre .symbol,pre .ruby .symbol .string,pre .ruby .symbol .keyword,pre .ruby .symbol .keymethods,pre .lisp .keyword,pre .tex .special,pre .input_number{color:#990073}pre .builtin,pre .built_in,pre .lisp .title{color:#0086b3}pre .preprocessor,pre .pi,pre .doctype,pre .shebang,pre .cdata{color:#999;font-weight:bold}pre .deletion{background:#fdd}pre .addition{background:#dfd}pre .diff .change{background:#0086b3}pre .chunk{color:#aaa}pre .tex .formula{opacity:0.5}.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{position:absolute;left:-99999999px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}.ui-helper-clearfix{display:inline-block}* html .ui-helper-clearfix{height:1%}.ui-helper-clearfix{display:block}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-state-disabled{cursor:default !important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaaaaa;background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAeUlEQVRoge3OMQHAIBAAsVL%2Fnh8JDDfAkCjImpn5HvbfDpwIVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVhtqiwTEKTLXTgAAAABJRU5ErkJggg%3D%3D) 50% 50% repeat-x;color:#222222}.ui-widget-content a{color:#222222}.ui-widget-header{border:1px solid #aaaaaa;background:#ccc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAYAAABHLFpgAAAALElEQVQYlWN49OjRfyYGBgaGIUT8%2F%2F8fSqBx0Yh%2F%2F%2F4RL8vAwAAVQ2MNOwIAl6g6KkOJwk8AAAAASUVORK5CYII%3D) 50% 50% repeat-x;color:#222222;font-weight:bold}.ui-widget-header a{color:#222222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAANUlEQVQ4je3LMQoAIBADwb38%2F6t5wFXaWAiCtUiaYZvF9hBACOFbuntVVe11B0CSjjeE8BwThQIJ8dhEl0YAAAAASUVORK5CYII%3D) 50% 50% repeat-x;font-weight:normal;color:#555555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999999;background:#dadada url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAANklEQVQ4jWN48uTJfyYGBgaGUWKUGCWGLfHt2zcoi5GREYNgYmJCZiG42IiB98woMUqMEtgIAMdjCdyg%2BeEBAAAAAElFTkSuQmCC) 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-hover a,.ui-state-hover a:hover{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaaaaa;background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAMElEQVQ4je3LIQ4AIBTD0O3f%2F8wrFgmKhMy8pKJKwkhSKeVbbGuAPU9f4PIopTxgAeS0DRtI4yK0AAAAAElFTkSuQmCC) 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-widget :active{outline:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAP0lEQVQ4je3PMQrAMABC0a%2F3v2zX0mCXNkOgc6C4PARd5DqPGKCU8luS8SbAQhiCQRgJE56kZTfbbP9RSvnkBsWcEAZRWcgqAAAAAElFTkSuQmCC) 50% 50% repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAPklEQVQ4je3PMQqAMABD0Z%2Fc%2F7aCIAXjJIhD10LJ8vgZw30eMUApZV%2FGhZNgSTjoLYElY%2FhNMJ%2FS6gullCkPiCIPCr4NiEwAAAAASUVORK5CYII%3D) 50% 50% repeat-x;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-icon{width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAADwCAMAAADYSUr5AAAA7VBMVEUkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiQkIiTww4gUAAAATnRSTlMAGBAyBAhQv4OZLiJUcEBmYBoSzQwgPBZCSEoeWiYwUiyFNIeBw2rJz8c4RBy9uXyrtaWNqa2zKP2fJO8KBgKPo2KVoa9s351GPm5%2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Xrsv7N9QALe%2FtvjA0kPWAXGbvebkbHn%2BD%2FJ5nMcHzx1UAAAAABJRU5ErkJggg%3D%3D)}.ui-state-default .ui-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAADwCAMAAADYSUr5AAAA7VBMVEWMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMioyMiozJxoFPAAAATnRSTlMAGBAyBAhQv4OZLiJUcEBmYBoSzQwgPBZCSEoeWiYwUiyFNIeBw2rJz8c4RBy9uXyrtaWNqa2zKP2fJO8KBgKPo2KVoa9s351GPm5%2BkWho0kj9AAAPhUlEQVR4nO1djWLbthEGyUiq5YSSLXtp7FpLOmfzkmxr126tmi2p03RJ1%2FXe%2F3EGgARxPyAgRbIk2%2FhkSz4CJO4%2BHsE7AJSVysjI2AMUUOxahZ2iANhzBtZWr4BoIRSYAVN5u4QwDwQDRbcwfUi5KS3wFuDmFnQLa4Dtb%2F%2FcqktwD5QEFFwfUs7PoCCA7y4bEJVFizcIob8KmhAplwwqVjt%2B9FBl3uINQniwEiryEyw9JHqGpQdEFNi%2BB4QQ7QOiHhysIPoAxUqxvdvvA9K42bsAv4S2fxfYOe57IJSRkZGRkZGxx7jxSHDHcRBXQMTyIjInBgHwBJ%2FbEx8PEANC%2BuhbpSSggCBAVODVabpI1S%2Fk4WLZpTn6NpMhoX9Y40hxYERFpMcqUs4AloCtDQdID1YhnyXZ2hLjAYWiO9Dy1PDB7tPhIqLx%2BuMB8grZaR%2BQxl2%2FC2RkZGRkZGRk7A7rBf7J0DR5%2FLUTjzUPIPSPGvQJiVJiB7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A5YF5DfY0vK3adfOX%2FgyNp2BW25MHdxAB9qvRiiP3%2FXpQQFGYDU4%2BMi%2F%2F%2FXumXG8pjvaUAOsBGlf4jJt%2BYYEzeEzAdw06F19R3juM7D1wita86GR0CKfDHgLuXCc4Bri6vMLdfjMc4VNSUNsdodo2xu%2F1%2BXl%2FK5%2Baz8jIyMhYG%2Fz5gJTMF1GtKq%2Fa3rpyCvz5gJTMl9GtKq%2Fa3rpyCmfQ4WwZmS%2BkXFVetb115ST48wEf%2FAGcfG1iw%2BtWbpbS2vJ3nQxcVr3lH3z5h972FUTLzYpOVk7l5hD%2BeYcYwDcAnewOotrZ4OtrPDucqi%2FLRX0%2FRR4qx7Nn4U8g%2BqjffvuN6Gf%2BnC85vwauHjaYyubqvWYKY4VEfSUMitdnBCT1Ue63R5439m%2BOgCn6DroAAaHPVQxKth%2FwkJgHmG8bmQMsT0D6EjDfvhVRKO3ywOQUgRA7nmL1uawZmHf1k%2BDPBwQ6NdcJ%2Bk6Md1LA5f5ONdhJ8vZ5J0vLHT99srkGOjmJbd%2FG1r2Nriqnse1AZt1AalU5jW2HsuuG0qvKGRkZGRkZGRG0gcONyXsP9v8D0%2FIdJADiBNiXl3327WRGgOL%2F9HC%2F0XwlIURkRhC4tz6Z%2Ffu7fUf2gHvfB9z3u0BGRkZGRkbGplHcnkgguQoSqtUXuhbs%2FwPtMwqV0HUJAvj5vk32b8IDuL23yn7qAXZ5u32hbRX7d3o82Df1FZXvbh9QOfhyxldr%2F%2B3xgXU9oKmvsHyr7F%2FXA269%2FeveBXrsv7N9QALe%2FtvjA0kPWAXGbvebkbHn%2BD%2FJ5nMcHzx1UAAAAABJRU5ErkJggg%3D%3D)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAADwCAMAAADYSUr5AAAA7VBMVEVERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRER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gJTMl9GtKq%2Fa3rpyCmfQ4WwZmS%2BkXFVetb115ST48wEf%2FAGcfG1iw%2BtWbpbS2vJ3nQxcVr3lH3z5h972FUTLzYpOVk7l5hD%2BeYcYwDcAnewOotrZ4OtrPDucqi%2FLRX0%2FRR4qx7Nn4U8g%2BqjffvuN6Gf%2BnC85vwauHjaYyubqvWYKY4VEfSUMitdnBCT1Ue63R5439m%2BOgCn6DroAAaHPVQxKth%2FwkJgHmG8bmQMsT0D6EjDfvhVRKO3ywOQUgRA7nmL1uawZmHf1k%2BDPBwQ6NdcJ%2Bk6Md1LA5f5ONdhJ8vZ5J0vLHT99srkGOjmJbd%2FG1r2Nriqnse1AZt1AalU5jW2HsuuG0qvKGRkZGRkZGRG0gcONyXsP9v8D0%2FIdJADiBNiXl3327WRGgOL%2F9HC%2F0XwlIURkRhC4tz6Z%2Ffu7fUf2gHvfB9z3u0BGRkZGRkbGplHcnkgguQoSqtUXuhbs%2FwPtMwqV0HUJAvj5vk32b8IDuL23yn7qAXZ5u32hbRX7d3o82Df1FZXvbh9QOfhyxldr%2F%2B3xgXU9oKmvsHyr7F%2FXA269%2FeveBXrsv7N9QALe%2FtvjA0kPWAXGbvebkbHn%2BD%2FJ5nMcHzx1UAAAAABJRU5ErkJggg%3D%3D)}.ui-state-active .ui-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAADwCAMAAADYSUr5AAAA7VBMVEVERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkQfbf86AAAATnRSTlMAGBAyBAhQv4OZLiJUcEBmYBoSzQwgPBZCS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j5vk32b8IDuL23yn7qAXZ5u32hbRX7d3o82Df1FZXvbh9QOfhyxldr%2F%2B3xgXU9oKmvsHyr7F%2FXA269%2FeveBXrsv7N9QALe%2FtvjA0kPWAXGbvebkbHn%2BD%2FJ5nMcHzx1UAAAAABJRU5ErkJggg%3D%3D)}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-off{background-position:-96px -144px}.ui-icon-radio-on{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-tl{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px}.ui-corner-tr{-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px}.ui-corner-bl{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px}.ui-corner-br{-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px}.ui-corner-top{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px}.ui-corner-bottom{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px}.ui-corner-right{-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px}.ui-corner-left{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px}.ui-corner-all{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.ui-widget-overlay{background:#aaa url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAe0lEQVRoge3OMQHAIBAAMcC%2FkjdZJHTI0A4XBdkz86wfO18H3hRUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUF8O8A8WdY6opAAAAAElFTkSuQmCC) 50% 50% repeat-x;opacity:.30;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAe0lEQVRoge3OMQHAIBAAMcC%2FkjdZJHTI0A4XBdkz86wfO18H3hRUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUF8O8A8WdY6opAAAAAElFTkSuQmCC) 50% 50% repeat-x;opacity:.30;filter:Alpha(Opacity=30);-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}#colorbox,#cboxOverlay,#cboxWrapper{position:absolute;top:0;left:0;z-index:9999;overflow:hidden}#cboxOverlay{position:fixed;width:100%;height:100%}#cboxMiddleLeft,#cboxBottomLeft{clear:left}#cboxContent{position:relative}#cboxLoadedContent{overflow:auto}#cboxTitle{margin:0}#cboxLoadingOverlay,#cboxLoadingGraphic{position:absolute;top:0;left:0;width:100%;height:100%}#cboxPrevious,#cboxNext,#cboxClose,#cboxSlideshow{cursor:pointer}.cboxPhoto{float:left;margin:auto;border:0;display:block;max-width:none}.cboxIframe{width:100%;height:100%;display:block;border:0}#colorbox,#cboxContent,#cboxLoadedContent{box-sizing:content-box}#cboxOverl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pDpKm85J9Mr7Ya4BACK4ZgAYGUaICAIdLxmroro7DVFQHGCFEX1ss7BRpi0wBTYrN4PBDdVumE5reOFSKsFqcnqZERVQaElh3r%2BA0dn5pwQ3mzOiIcqBgmjo1wZoiLE%2FA3LEBOLUzAMInVYMrCtUVv1m1hWyTIEgZfSYTZCIt6%2BiVEFqqurPoopiJHhEhUe7rCpSdvlkloLvwQViKziYpAoeoiogNIQoTysVUSYV9FGl4hUXoWkYAOIXREcl5hQwJeIaW4EQ4A0D3qEAKyMfP%2FYW%2B261Aw16H%2FLu3MyF36936o6Qpy9ENW4eRvmv6kbxpmIcO7lEHIMFuwCf3zYaSaE8%2BH%2FEL2GZ9BWOY9zWc7d%2BwSMQzFcbzDCTqVCnJ3ok4HdrpAKZRSWnInicUOQiVISYeem25O6Xz%2B4%2FYJWaokg8Px4P3%2Bgw%2Fp%2BL79p%2FAkQyEkIQlJSEISkpCEJCQhCUmofcJWIhXa%2B1KfcJlIBsIDSmEzCatLt%2FCW96pGLNzu2LlbeBcbe%2BeNURhs6r2%2BcQGvuczhVh%2BtsMsK1qdX769DuLqYLQyHdc%2Blht4CqfDnMy0LZmScjI%2B%2FN7Y8llpNT4hYGABRVSYSIp1PCBmZygJRCn1pV87UHsKurnnAK3Tnebu6zCDOgydEKZwnlts%2F%2BsrOBpY4hdbYOBtZACIWghHm7JyRCu3efEP6T4Vv0sK5wmQ8JLkAAAAASUVORK5CYII%3D) no-repeat 0 0}#cboxTopCenter{height:14px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABLCAMAAACGCB2xAAAAM1BMVEVSUlJHR0dPT09BQUFLS0tQUFA6OjpgYGCKioozMzPS0tJaWlpRUVHy8vKJiYn%2F%2F%2F%2Fm5eV3dK93AAAAK0lEQVR4XqXBhQ2AQBAAsJ48bvtPywyE1GLGYUgtlPuT0%2Bb5abealNDScL0YiAPSV%2FRH9wAAAABJRU5ErkJggg%3D%3D) repeat-x top left}#cboxTopRight{width:14px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y9ENW4eRvmv6kbxpmIcO7lEHIMFuwCf3zYaSaE8%2BH%2FEL2GZ9BWOY9zWc7d%2BwSMQzFcbzDCTqVCnJ3ok4HdrpAKZRSWnInicUOQiVISYeem25O6Xz%2B4%2FYJWaokg8Px4P3%2Bgw%2Fp%2BL79p%2FAkQyEkIQlJSEISkpCEJCQhCUmofcJWIhXa%2B1KfcJlIBsIDSmEzCatLt%2FCW96pGLNzu2LlbeBcbe%2BeNURhs6r2%2BcQGvuczhVh%2BtsMsK1qdX769DuLqYLQyHdc%2Blht4CqfDnMy0LZmScjI%2B%2FN7Y8llpNT4hYGABRVSYSIp1PCBmZygJRCn1pV87UHsKurnnAK3Tnebu6zCDOgydEKZwnlts%2F%2BsrOBpY4hdbYOBtZACIWghHm7JyRCu3efEP6T4Vv0sK5wmQ8JLkAAAAASUVORK5CYII%3D) no-repeat 0 -32px}#cboxBottomCenter{height:43px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABLCAMAAACGCB2xAAAAM1BMVEVSUlJHR0dPT09BQUFLS0tQUFA6OjpgYGCKioozMzPS0tJaWlpRUVHy8vKJiYn%2F%2F%2F%2Fm5eV3dK93AAAAK0lEQVR4XqXBhQ2AQBAAsJ48bvtPywyE1GLGYUgtlPuT0%2Bb5abealNDScL0YiAPSV%2FRH9wAAAABJRU5ErkJggg%3D%3D) repeat-x bottom left}#cboxBottomRight{width:14px;height:43px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAABLCAMAAACx6hDAAAABj1BMVEVPT0%2Fe3t7b29vS0tK7urq5uLjq6uqZmZmSkpJaWlrU1NTj4%2BPFxcWvr6%2BgoKBbW1u3t7c9PT27u7vCwsKsrKxiYWGqqqq5ublbWlpeXV2Xl5fExMSbmpq6ubmNjY18fHzy8vIrKystLS0sLCxNTU0uLi4wMDDNzc05OTns6%2Bvl5eUvLy%2Fq6ekqKipMTExDQ0M4ODgyMjI2NjbZ2dk6OjrY2NjMzMxL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RUdIvIpJayYNdgkIIukUDdYz8x2tnt96OjQMS8hbzexFhDn6QN2%2FeIyHTnoZByJD%2FKJwL58L5TdM%2FFY5uIZ3dQvx0C2l3C%2BHuFsNKmuF7%2Ftlm6vixdnR8vfm744tQV%2FOOX9UJEen4SBpDpKm85J9Mr7Ya4BACK4ZgAYGUaICAIdLxmroro7DVFQHGCFEX1ss7BRpi0wBTYrN4PBDdVumE5reOFSKsFqcnqZERVQaElh3r%2BA0dn5pwQ3mzOiIcqBgmjo1wZoiLE%2FA3LEBOLUzAMInVYMrCtUVv1m1hWyTIEgZfSYTZCIt6%2BiVEFqqurPoopiJHhEhUe7rCpSdvlkloLvwQViKziYpAoeoiogNIQoTysVUSYV9FGl4hUXoWkYAOIXREcl5hQwJeIaW4EQ4A0D3qEAKyMfP%2FYW%2B261Aw16H%2FLu3MyF36936o6Qpy9ENW4eRvmv6kbxpmIcO7lEHIMFuwCf3zYaSaE8%2BH%2FEL2GZ9BWOY9zWc7d%2BwSMQzFcbzDCTqVCnJ3ok4HdrpAKZRSWnInicUOQiVISYeem25O6Xz%2B4%2FYJWaokg8Px4P3%2Bgw%2Fp%2BL79p%2FAkQyEkIQlJSEISkpCEJCQhCUmofcJWIhXa%2B1KfcJlIBsIDSmEzCatLt%2FCW96pGLNzu2LlbeBcbe%2BeNURhs6r2%2BcQGvuczhVh%2BtsMsK1qdX769DuLqYLQyHdc%2Blht4CqfDnMy0LZmScjI%2B%2FN7Y8llpNT4hYGABRVSYSIp1PCBmZygJRCn1pV87UHsKurnnAK3Tnebu6zCDOgydEKZwnlts%2F%2BsrOBpY4hdbYOBtZACIWghHm7JyRCu3efEP6T4Vv0sK5wmQ8JLkAAAAASUVORK5CYII%3D) repeat-y -211px 0}#cboxContent{background:#fff;overflow:visible}.cboxIframe{background:#fff}#cboxError{padding:50px;border:1px solid #ccc}#cboxLoadedContent{margin-bottom:5px}#cboxLoadingOverlay{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAA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OGQi8oOJIkKzEChx00kAoUHb%2BM94pCFjkSEiXfEBUAMoAApkRDGlTw4MFEAkUkugFRFIOBRYss9ElU5IKNAwcfTnRQVABHLxCMFChAmWmRABcjD1EI%2BKgABxQvXBgigW4iJG7OJggCwRJHN5qMCDh7IY%2FngJHNnkECgpMENmc%2BF9xQB6mAi4MAbjgLMihfS6MorLY0JOCB2rVwB%2BPKnUtXbiAAOwAAAAAAAAAAAA%3D%3D) no-repeat center center}#cboxTitle{position:absolute;bottom:-25px;left:0;text-align:center;width:100%;font-weight:bold;color:#7C7C7C}#cboxCurrent{position:absolute;bottom:-25px;left:58px;font-weight:bold;color:#7C7C7C}#cboxPrevious,#cboxNext,#cboxClose,#cboxSlideshow{position:absolute;bottom:-29px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAABLCAMAAACx6hDAAAABj1BMVEVPT0%2Fe3t7b29vS0tK7urq5uLjq6uqZmZmSkpJaWlrU1NTj4%2BPFxcWvr6%2BgoKBbW1u3t7c9PT27u7vCwsKsrKxiYWGqqqq5ublbWlpeXV2Xl5fExMSbmpq6ubmNjY18fHzy8vIrKystLS0sLCxNTU0uLi4wMDDNzc05OTns6%2Bvl5eUvLy%2Fq6ekqKipMTExDQ0M4ODgyMjI2NjbZ2dk6OjrY2NjMzMxLS0vAwMBCQkLo5%2BdHR0cxMTFKSkpBQUHv7u43NzdISEhFRUVRUVHx8fE7Ozs8PDwzMzNJSUnp6elGRkZQUFDr6upeXl7t7e1gYGCoqKjv7%2B81NTWKiorn5uZERESCgoJdXV3p6OhOTk51dXVAQEA%2BPj6np6fu7e2%2Bvr5cXFxSUlKJiYnOzs7s7OxTU1P29vbw8PB2dnZfX1%2Fm5eV4eHifn59qamqmpqbQ0NCOjo7Kysqzs7P4%2BPiDg4Otra3z8%2FM%2FPz80NDSrq6u%2Fv7%2FPz890dHRpaWmBgYH5%2Bfn08%2FNoaGjPzs7%2F%2F%2F%2BioqIRuwm9AAAGHUlEQVR4Xs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Zwnlts%2F%2BsrOBpY4hdbYOBtZACIWghHm7JyRCu3efEP6T4Vv0sK5wmQ8JLkAAAAASUVORK5CYII%3D) no-repeat 0px 0px;width:23px;height:23px;text-indent:-9999px}#cboxPrevious{left:0px;background-position:-51px -25px}#cboxPrevious:hover{background-position:-51px 0px}#cboxNext{left:27px;background-position:-75px -25px}#cboxNext:hover{background-position:-75px 0px}#cboxClose{right:0;background-position:-100px -25px}#cboxClose:hover{background-position:-100px 0px}.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px;right:27px}.cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px}.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px;right:27px}.cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px}#loading{position:fixed;left:40%;top:50%}a{color:#333;text-decoration:none}a:hover{color:#000;text-decoration:underline}body{font-family:"Lucida Grande", Helvetica, "Helvetica Neue", Arial, sans-serif;padding:12px;background-color:#333}h1,h2,h3,h4{color:#1C2324;margin:0;padding:0;margin-bottom:12px}table{width:100%}#content{clear:left;background-color:white;border:2px solid #ddd;border-top:8px solid #ddd;padding:18px;-webkit-border-bottom-left-radius:5px;-webkit-border-bottom-right-radius:5px;-webkit-border-top-right-radius:5px;-moz-border-radius-bottomleft:5px;-moz-border-radius-bottomright:5px;-moz-border-radius-topright:5px;border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top-right-radius:5px}.dataTables_filter,.dataTables_info{padding:2px 6px}abbr.timeago{text-decoration:none;border:none;font-weight:bold}.timestamp{float:right;color:#ddd}.group_tabs{list-style:none;float:left;margin:0;padding:0}.group_tabs li{display:inline;float:left}.group_tabs li a{font-family:Helvetica, Arial, sans-serif;display:block;float:left;text-decoration:none;padding:4px 8px;background-color:#aaa;background:-webkit-gradient(linear, 0 0, 0 bottom, from(#ddd), to(#aaa));background:-moz-linear-gradient(#ddd, #aaa);background:linear-gradient(#ddd, #aaa);text-shadow:#e5e5e5 1px 1px 0px;border-bottom:none;color:#333;font-weight:bold;margin-right:8px;border-top:1px solid #efefef;-webkit-border-top-left-radius:2px;-webkit-border-top-right-radius:2px;-moz-border-radius-topleft:2px;-moz-border-radius-topright:2px;border-top-left-radius:2px;border-top-right-radius:2px}.group_tabs li a:hover{background-color:#ccc;background:-webkit-gradient(linear, 0 0, 0 bottom, from(#eee), to(#aaa));background:-moz-linear-gradient(#eee, #aaa);background:linear-gradient(#eee, #aaa)}.group_tabs li a:active{padding-top:5px;padding-bottom:3px}.group_tabs li.active a{color:black;text-shadow:#fff 1px 1px 0px;background-color:#ddd;background:-webkit-gradient(linear, 0 0, 0 bottom, from(#fff), to(#ddd));background:-moz-linear-gradient(#fff, #ddd);background:linear-gradient(#fff, #ddd)}.file_list{margin-bottom:18px}.file_list--responsive{overflow-x:auto;overflow-y:hidden}a.src_link{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAPCAYAAADQ4S5JAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5c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Bu61nFPX%2FDOugOqG%2ByLZuURj3npk%2B%2FnXRN%2F6xG8cW2Cw2Gsy3TdqynFyX8bXsGT%2Biu61OgMQwZaB%2Bdgm16%2BBRgApCh%2B7pwD4GQAAAAASUVORK5CYII%3D) no-repeat left 50%;padding-left:18px}tr,td{margin:0;padding:0}th{white-space:nowrap}th.ui-state-default{cursor:pointer}th span.ui-icon{float:left}td{padding:4px 8px}td.strong{font-weight:bold}.cell--number{text-align:right}.source_table h3,.source_table h4{padding:0;margin:0;margin-bottom:4px}.source_table .header{padding:10px}.source_table pre{margin:0;padding:0;white-space:normal;color:#000;font-family:"Monaco", "Inconsolata", "Consolas", monospace}.source_table code{color:#000;font-family:"Monaco", "Inconsolata", "Consolas", monospace}.source_table pre{background-color:#333}.source_table pre ol{margin:0px;padding:0px;margin-left:45px;font-size:12px;color:white}.source_table pre li{margin:0px;padding:2px 6px;border-left:5px solid white}.source_table pre li:hover{cursor:pointer;text-decoration:underline black}.source_table pre li code{white-space:pre;white-space:pre-wrap}.source_table pre .hits{float:right;margin-left:10px;padding:2px 4px;background-color:#444;background:-webkit-gradient(linear, 0 0, 0 bottom, from(#222), to(#666));background:-moz-linear-gradient(#222, #666);background:linear-gradient(#222, #666);color:white;font-family:Helvetica, "Helvetica Neue", Arial, sans-serif;font-size:10px;font-weight:bold;text-align:center;border-radius:6px}#cboxClose{position:absolute;top:-14px;right:-14px;width:30px;height:30px;background:#000;border:4px solid #fff;border-radius:100%}#cboxClose::before{text-indent:0;content:'×';color:#fff;font-size:23px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}#footer{color:#ddd;font-size:12px;font-weight:bold;margin-top:12px;text-align:right}#footer a{color:#eee;text-decoration:underline}#footer a:hover{color:#fff;text-decoration:none}.green{color:#090}.red{color:#900}.yellow{color:#da0}.blue{color:blue}thead th{background:white}.source_table .covered{border-color:#090}.source_table .missed{border-color:#900}.source_table .never{border-color:black}.source_table .skipped{border-color:#fc0}.source_table .missed-branch{border-color:#bf0000}.source_table .covered:nth-child(odd){background-color:#CDF2CD}.source_table .covered:nth-child(even){background-color:#DBF2DB}.source_table .missed:nth-child(odd){background-color:#F7C0C0}.source_table .missed:nth-child(even){background-color:#F7CFCF}.source_table .never:nth-child(odd){background-color:#efefef}.source_table .never:nth-child(even){background-color:#f4f4f4}.source_table .skipped:nth-child(odd){background-color:#FBF0C0}.source_table .skipped:nth-child(even){background-color:#FBFfCf}.source_table .missed-branch:nth-child(odd){background-color:#cc8e8e}.source_table .missed-branch:nth-child(even){background-color:#cc6e6e} diff --git a/app/coverage/assets/0.13.2/application.js b/app/coverage/assets/0.13.2/application.js new file mode 100644 index 0000000000..57b4005582 --- /dev/null +++ b/app/coverage/assets/0.13.2/application.js @@ -0,0 +1,7 @@ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(le,e){"use strict";function g(e,t,n){var r,a,i=(n=n||xe).createElement("script");if(i.text=e,t)for(r in we)(a=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,a);n.head.appendChild(i).parentNode.removeChild(i)}function m(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?se[he.call(e)]||"object":typeof e}function s(e){var t=!!e&&"length"in e&&e.length,n=m(e);return!ye(e)&&!be(e)&&("array"===n||0===t||"number"==typeof t&&0D.cacheLength&&delete n[r.shift()],n[e+" "]=t}var r=[];return n}function n(e){return e[R]=!0,e}function r(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(t){return function(e){return ue(e,"input")&&e.type===t}}function i(t){return function(e){return(ue(e,"input")||ue(e,"button"))&&e.type===t}}function o(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&oe(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function s(o){return n(function(i){return i=+i,n(function(e,t){for(var n,r=o([],e.length,i),a=r.length;a--;)e[n=r[a]]&&(e[n]=!(t[n]=e[n]))})})}function g(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function x(e){var t,n=e?e.ownerDocument||e:Ie;return n!=k&&9===n.nodeType&&n.documentElement&&(N=(k=n).documentElement,j=!De.isXMLDoc(k),L=N.matches||N.webkitMatchesSelector||N.msMatchesSelector,N.msMatchesSelector&&Ie!=k&&(t=k.defaultView)&&t.top!==t&&t.addEventListener("unload",ie),ve.getById=r(function(e){return N.appendChild(e).id=De.expando,!k.getElementsByName||!k.getElementsByName(De.expando).length}),ve.disconnectedMatch=r(function(e){return L.call(e,"*")}),ve.scope=r(function(){return k.querySelectorAll(":scope")}),ve.cssHas=r(function(){try{return k.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),ve.getById?(D.filter.ID=function(e){var t=e.replace(re,ae);return function(e){return e.getAttribute("id")===t}},D.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&j){var n=t.getElementById(e);return n?[n]:[]}}):(D.filter.ID=function(e){var n=e.replace(re,ae);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},D.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&j){var n,r,a,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(a=t.getElementsByName(e),r=0;i=a[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),D.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},D.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&j)return t.getElementsByClassName(e)},I=[],r(function(e){var t;N.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||I.push("\\["+ke+"*(?:value|"+$+")"),e.querySelectorAll("[id~="+R+"-]").length||I.push("~="),e.querySelectorAll("a#"+R+"+*").length||I.push(".#.+[+~]"),e.querySelectorAll(":checked").length||I.push(":checked"),(t=k.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),N.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&I.push(":enabled",":disabled"),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||I.push("\\["+ke+"*name"+ke+"*="+ke+"*(?:''|\"\")")}),ve.cssHas||I.push(":has"),I=I.length&&new RegExp(I.join("|")),W=function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!ve.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument==Ie&&p.contains(Ie,e)?-1:t===k||t.ownerDocument==Ie&&p.contains(Ie,t)?1:_?de.call(_,e)-de.call(_,t):0:4&n?-1:1)}),k}function l(){}function m(e,t){var n,r,a,i,o,s,l,u=M[e+" "];if(u)return t?0:u.slice(0);for(o=e,s=[],l=D.preFilter;o;){for(i in n&&!(r=V.exec(o))||(r&&(o=o.slice(r[0].length)||o),s.push(a=[])),n=!1,(r=G.exec(o))&&(n=r.shift(),a.push({value:n,type:r[0].replace(Ne," ")}),o=o.slice(n.length)),D.filter)!(r=K[i].exec(o))||l[i]&&!(r=l[i](r))||(n=r.shift(),a.push({value:n,type:i,matches:r}),o=o.slice(n.length));if(!n)break}return t?o.length:o?p.error(e):M(e,s).slice(0)}function v(e){for(var t=0,n=e.length,r="";t+~]|"+ke+")"+ke+"*"),J=new RegExp(ke+"|>"),Y=new RegExp(z),Z=new RegExp("^"+B+"$"),K={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ke+"*(even|odd|(([+-]|)(\\d*)n|)"+ke+"*(?:([+-]|)"+ke+"*(\\d+)|))"+ke+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+ke+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ke+"*((?:-\\d)?\\d*)"+ke+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,ee=/^h\d$/i,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,re=new RegExp("\\\\[\\da-fA-F]{1,6}"+ke+"?|\\\\([^\\r\\n\\f])","g"),ae=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=function(){x()},oe=f(function(e){return!0===e.disabled&&ue(e,"fieldset")},{dir:"parentNode",next:"legend"});try{E.apply(ce=fe.call(Ie.childNodes),Ie.childNodes),ce[Ie.childNodes.length].nodeType}catch(se){E={apply:function(e,t){Le.apply(e,fe.call(t))},call:function(e){Le.apply(e,fe.call(arguments,1))}}}for(c in p.matches=function(e,t){return p(e,null,null,t)},p.matchesSelector=function(e,t){if(x(e),j&&!q[t+" "]&&(!I||!I.test(t)))try{var n=L.call(e,t);if(n||ve.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(se){q(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,ae),e[3]=(e[3]||e[4]||e[5]||"").replace(re,ae),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||p.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&p.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,ae).toLowerCase();return"*"===e?function(){return!0}:function(e){return ue(e,t)}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+ke+")"+e+"("+ke+"|$)"))&&H(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,a){return function(e){var t=p.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===a:"!="===r?t!==a:"^="===r?a&&0===t.indexOf(a):"*="===r?a&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;De.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?De.find.matchesSelector(r,e)?[r]:[]:De.find.matches(e,De.grep(t,function(e){return 1===e.nodeType}))},De.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!=typeof e)return this.pushStack(De(e).filter(function(){for(t=0;t)[^>]*|#([\w-]+))$/;(De.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||He,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):ye(e)?n.ready!==undefined?n.ready(e):e(De):De.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Me.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof De?t[0]:t,De.merge(this,De.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:xe,!0)),Pe.test(r[1])&&De.isPlainObject(t))for(r in t)ye(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=xe.getElementById(r[2]))&&(this[0]=a,this.length=1),this}).prototype=De.fn,He=De(xe);var Oe=/^(?:parents|prev(?:Until|All))/,qe={children:!0,contents:!0,next:!0,prev:!0};De.fn.extend({has:function(e){var t=De(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,ct=/^$|^module$|\/(?:java|ecma)script/i;ot=xe.createDocumentFragment().appendChild(xe.createElement("div")),(st=xe.createElement("input")).setAttribute("type","radio"),st.setAttribute("checked","checked"),st.setAttribute("name","t"),ot.appendChild(st),ve.checkClone=ot.cloneNode(!0).cloneNode(!0).lastChild.checked,ot.innerHTML="",ve.noCloneChecked=!!ot.cloneNode(!0).lastChild.defaultValue,ot.innerHTML="",ve.option=!!ot.lastChild;var ft={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ft.tbody=ft.tfoot=ft.colgroup=ft.caption=ft.thead,ft.th=ft.td,ve.option||(ft.optgroup=ft.option=[1,""]);var dt=/<|&#?\w+;/,ht=/^([^.]*)(?:\.(.+)|)/;De.event={global:{},add:function(t,e,n,r,a){var i,o,s,l,u,c,f,d,h,p,g,m=Ge.get(t);if(Ve(t))for(n.handler&&(n=(i=n).handler,a=i.selector),a&&De.find.matchesSelector(tt,a),n.guid||(n.guid=De.guid++),(l=m.events)||(l=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(e){return void 0!==De&&De.event.triggered!==e.type?De.event.dispatch.apply(t,arguments):undefined}),u=(e=(e||"").match(We)||[""]).length;u--;)h=g=(s=ht.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),h&&(f=De.event.special[h]||{},h=(a?f.delegateType:f.bindType)||h,f=De.event.special[h]||{},c=De.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&De.expr.match.needsContext.test(a),namespace:p.join(".")},i),(d=l[h])||((d=l[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,o)||t.addEventListener&&t.addEventListener(h,o)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),a?d.splice(d.delegateCount++,0,c):d.push(c),De.event.global[h]=!0)},remove:function(e,t,n,r,a){var i,o,s,l,u,c,f,d,h,p,g,m=Ge.hasData(e)&&Ge.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(We)||[""]).length;u--;)if(h=g=(s=ht.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h){for(f=De.event.special[h]||{},d=l[h=(r?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=d.length;i--;)c=d[i],!a&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(i,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));o&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,p,m.handle)||De.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)De.event.remove(e,h+t[u],n,r,!0);De.isEmptyObject(l)&&Ge.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,i,o,s=new Array(arguments.length),l=De.event.fix(e),u=(Ge.get(this,"events")||Object.create(null))[l.type]||[],c=De.event.special[l.type]||{};for(s[0]=l,t=1;t\s*$/g;De.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,i,o,s=e.cloneNode(!0),l=nt(e);if(!(ve.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||De.isXMLDoc(e)))for(o=x(s),r=0,a=(i=x(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",a=function(e){r.remove(),a=null,e&&t("error"===e.type?404:200,e.type)}),xe.head.appendChild(r[0])},abort:function(){a&&a()}}});var ln,un=[],cn=/(=)\?(?=&|$)|\?\?/;De.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=un.pop()||De.expando+"_"+qt.guid++;return this[e]=!0,e}}),De.ajaxPrefilter("json jsonp",function(e,t,n){var r,a,i,o=!1!==e.jsonp&&(cn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&cn.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=ye(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(cn,"$1"+r):!1!==e.jsonp&&(e.url+=(Wt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return i||De.error(r+" was not called"),i[0]},e.dataTypes[0]="json",a=le[r],le[r]=function(){i=arguments},n.always(function(){a===undefined?De(le).removeProp(r):le[r]=a,e[r]&&(e.jsonpCallback=t.jsonpCallback,un.push(r)),i&&ye(a)&&a(i[0]),i=a=undefined}),"script"}),ve.createHTMLDocument=((ln=xe.implementation.createHTMLDocument("").body).innerHTML="
",2===ln.childNodes.length),De.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(ve.createHTMLDocument?((r=(t=xe.implementation.createHTMLDocument("")).createElement("base")).href=xe.location.href,t.head.appendChild(r)):t=xe),i=!n&&[],(a=Pe.exec(e))?[t.createElement(a[1])]:(a=S([e],t,i),i&&i.length&&De(i).remove(),De.merge([],a.childNodes)));var r,a,i},De.fn.load=function(e,t,n){var r,a,i,o=this,s=e.indexOf(" ");return-1").append(De.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},De.expr.pseudos.animated=function(t){return De.grep(De.timers,function(e){return t===e.elem}).length},De.offset={setOffset:function(e,t,n){var r,a,i,o,s,l,u=De.css(e,"position"),c=De(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),i=De.css(e,"top"),l=De.css(e,"left"),("absolute"===u||"fixed"===u)&&-1<(i+l).indexOf("auto")?(o=(r=c.position()).top,a=r.left):(o=parseFloat(i)||0,a=parseFloat(l)||0),ye(t)&&(t=t.call(e,n,De.extend({},s))),null!=t.top&&(f.top=t.top-s.top+o),null!=t.left&&(f.left=t.left-s.left+a),"using"in t?t.using.call(e,f):c.css(f)}},De.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){De.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===De.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===De.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((a=De(e).offset()).top+=De.css(e,"borderTopWidth",!0),a.left+=De.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-De.css(r,"marginTop",!0),left:t.left-a.left-De.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===De.css(e,"position");)e=e.offsetParent;return e||tt})}}),De.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,a){var i="pageYOffset"===a;De.fn[t]=function(e){return Ue(this,function(e,t,n){var r;if(be(e)?r=e:9===e.nodeType&&(r=e.defaultView),n===undefined)return r?r[a]:e[t];r?r.scrollTo(i?r.pageXOffset:n,i?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),De.each(["top","left"],function(e,n){De.cssHooks[n]=F(ve.pixelPosition,function(e,t){if(t)return t=R(e,n),vt.test(t)?De(e).position()[n]+"px":t})}),De.each({Height:"height",Width:"width"},function(o,s){De.each({padding:"inner"+o,content:s,"":"outer"+o},function(r,i){De.fn[i]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),a=r||(!0===e||!0===t?"margin":"border");return Ue(this,function(e,t,n){var r;return be(e)?0===i.indexOf("outer")?e["inner"+o]:e.document.documentElement["client"+o]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+o],r["scroll"+o],e.body["offset"+o],r["offset"+o],r["client"+o])):n===undefined?De.css(e,t,a):De.style(e,t,n,a)},s,n?e:undefined,n)}})}),De.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){De.fn[t]=function(e){return this.on(t,e)}}),De.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),De.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){De.fn[n]=function(e,t){return 0"}for(var i=0,o="",s=[];e.length||t.length;){var l=r().splice(0,1)[0];if(o+=w(n.substr(i,l.offset-i)),i=l.offset,"start"==l.event)o+=a(l.node),s.push(l.node);else if("stop"==l.event){var u=s.length;do{var c=s[--u];o+=""}while(c!=l.node);for(s.splice(u,1);u'+w(a[0])+""):n+=w(a[0]),r=t.lR.lastIndex,a=t.lR.exec(e)}return n+=w(e.substr(r,e.length-r))}function f(e,t){if(t.sL&&D[t.sL]){var n=T(t.sL,e);return g+=n.keyword_count,n.value}return r(e,t)}function d(e,t){var n=e.cN?'':"";e.rB?(m+=n,e.buffer=""):e.eB?(m+=w(t)+n,e.buffer=""):(m+=n,e.buffer=t),h.push(e),p+=e.r}function i(e,t,n){var r=h[h.length-1];if(n)return m+=f(r.buffer+e,r),!1;var a=l(t,r);if(a)return m+=f(r.buffer+e,r),d(a,t),a.rB;var i=u(h.length-1,t);if(i){var o=r.cN?"":"";for(r.rE?m+=f(r.buffer+e,r)+o:r.eE?m+=f(r.buffer+e,r)+o+w(t):m+=f(r.buffer+e+t,r)+o;1":"",m+=o,i--,h.length--;var s=h[h.length-1];return h.length--,h[h.length-1].buffer="",s.starts&&d(s.starts,""),r.rE}if(c(t,r))throw"Illegal"}var s=D[e],h=[s.dM],p=0,g=0,m="";try{var v=0;s.dM.buffer="";do{var y=n(t,v),b=i(y[0],y[1],y[2]);v+=y[0].length,b||(v+=y[1].length)}while(!y[2]);if(1o.keyword_count+o.r&&(o=l),l.keyword_count+l.r>i.keyword_count+i.r&&(o=i,i=l)}}var u=e.className;u.match(i.language)||(u=u?u+" "+i.language:i.language);var c=g(e);if(c.length)(f=document.createElement("pre")).innerHTML=i.value,i.value=m(c,g(f),r);if(n&&(i.value=i.value.replace(/^((<[^>]+>|\t)+)/gm,function(e,t){return t.replace(/\t/g,n)})),t&&(i.value=i.value.replace(/\n/g,"
")),/MSIE [678]/.test(navigator.userAgent)&&"CODE"==e.tagName&&"PRE"==e.parentNode.tagName){var f=e.parentNode,d=document.createElement("div");d.innerHTML="
"+i.value+"
",e=d.firstChild.firstChild,d.firstChild.cN=f.cN,f.parentNode.replaceChild(d.firstChild,f)}else e.innerHTML=i.value;e.className=u,e.dataset={},e.dataset.result={language:i.language,kw:i.keyword_count,re:i.r},o&&o.language&&(e.dataset.second_best={language:o.language,kw:o.keyword_count,re:o.r})}}function i(){if(!i.called){i.called=!0,v();for(var e=document.getElementsByTagName("pre"),t=0;t|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",this.BE={b:"\\\\.",r:0},this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[this.BE],r:0},this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[this.BE],r:0},this.CLCM={cN:"comment",b:"//",e:"$"},this.CBLCLM={cN:"comment",b:"/\\*",e:"\\*/"},this.HCM={cN:"comment",b:"#",e:"$"},this.NM={cN:"number",b:this.NR,r:0},this.CNM={cN:"number",b:this.CNR,r:0},this.inherit=function(e,t){var n={};for(var r in e)n[r]=e[r];if(t)for(var r in t)n[r]=t[r];return n}};hljs.LANGUAGES.ruby=function(){var e="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?",t="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",n={keyword:{and:1,"false":1,then:1,defined:1,module:1,"in":1,"return":1,redo:1,"if":1,BEGIN:1,retry:1,end:1,"for":1,"true":1,self:1,when:1,next:1,until:1,"do":1,begin:1,unless:1,END:1,rescue:1,nil:1,"else":1,"break":1,undef:1,not:1,"super":1,"class":1,"case":1,require:1,"yield":1,alias:1,"while":1,ensure:1,elsif:1,or:1,def:1},keymethods:{__id__:1,__send__:1,abort:1,abs:1,"all?":1,allocate:1,ancestors:1,"any?":1,arity:1,assoc:1,at:1,at_exit:1,autoload:1,"autoload?":1,"between?":1,binding:1,binmode:1,"block_given?":1,call:1,callcc:1,caller:1,capitalize:1,"capitalize!":1,casecmp:1,"catch":1,ceil:1,center:1,chomp:1,"chomp!":1,chop:1,"chop!":1,chr:1,"class":1,class_eval:1,"class_variable_defined?":1,class_variables:1,clear:1,clone:1,close:1,close_read:1,close_write:1,"closed?":1,coerce:1,collect:1,"collect!":1,compact:1,"compact!":1,concat:1,"const_defined?":1,const_get:1,const_missing:1,const_set:1,constants:1,count:1,crypt:1,"default":1,default_proc:1,"delete":1,"delete!":1,delete_at:1,delete_if:1,detect:1,display:1,div:1,divmod:1,downcase:1,"downcase!":1,downto:1,dump:1,dup:1,each:1,each_byte:1,each_index:1,each_key:1,each_line:1,each_pair:1,each_value:1,each_with_index:1,"empty?":1,entries:1,eof:1,"eof?":1,"eql?":1,"equal?":1,eval:1,exec:1,exit:1,"exit!":1,extend:1,fail:1,fcntl:1,fetch:1,fileno:1,fill:1,find:1,find_all:1,first:1,flatten:1,"flatten!":1,floor:1,flush:1,for_fd:1,foreach:1,fork:1,format:1,freeze:1,"frozen?":1,fsync:1,getc:1,gets:1,global_variables:1,grep:1,gsub:1,"gsub!":1,"has_key?":1,"has_value?":1,hash:1,hex:1,id:1,include:1,"include?":1,included_modules:1,index:1,indexes:1,indices:1,induced_from:1,inject:1,insert:1,inspect:1,instance_eval:1,instance_method:1,instance_methods:1,"instance_of?":1,"instance_variable_defined?":1,instance_variable_get:1,instance_variable_set:1,instance_variables:1,"integer?":1,intern:1,invert:1,ioctl:1,"is_a?":1,isatty:1,"iterator?":1,join:1,"key?":1,keys:1,"kind_of?":1,lambda:1,last:1,length:1,lineno:1,ljust:1,load:1,local_variables:1,loop:1,lstrip:1,"lstrip!":1,map:1,"map!":1,match:1,max:1,"member?":1,merge:1,"merge!":1,method:1,"method_defined?":1,method_missing:1,methods:1,min:1,module_eval:1,modulo:1,name:1,nesting:1,"new":1,next:1,"next!":1,"nil?":1,nitems:1,"nonzero?":1,object_id:1,oct:1,open:1,pack:1,partition:1,pid:1,pipe:1,pop:1,popen:1,pos:1,prec:1,prec_f:1,prec_i:1,print:1,printf:1,private_class_method:1,private_instance_methods:1,"private_method_defined?":1,private_methods:1,proc:1,protected_instance_methods:1,"protected_method_defined?":1,protected_methods:1,public_class_method:1,public_instance_methods:1,"public_method_defined?":1,public_methods:1,push:1,putc:1,puts:1,quo:1,raise:1,rand:1,rassoc:1,read:1,read_nonblock:1,readchar:1,readline:1,readlines:1,readpartial:1,rehash:1,reject:1,"reject!":1,remainder:1,reopen:1,replace:1,require:1,"respond_to?":1,reverse:1,"reverse!":1,reverse_each:1,rewind:1,rindex:1,rjust:1,round:1,rstrip:1,"rstrip!":1,scan:1,seek:1,select:1,send:1,set_trace_func:1,shift:1,singleton_method_added:1,singleton_methods:1,size:1,sleep:1,slice:1,"slice!":1,sort:1,"sort!":1,sort_by:1,split:1,sprintf:1,squeeze:1,"squeeze!":1,srand:1,stat:1,step:1,store:1,strip:1,"strip!":1,sub:1,"sub!":1,succ:1,"succ!":1,sum:1,superclass:1,swapcase:1,"swapcase!":1,sync:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,taint:1,"tainted?":1,tell:1,test:1,"throw":1,times:1,to_a:1,to_ary:1,to_f:1,to_hash:1,to_i:1,to_int:1,to_io:1,to_proc:1,to_s:1,to_str:1,to_sym:1,tr:1,"tr!":1,tr_s:1,"tr_s!":1,trace_var:1,transpose:1,trap:1,truncate:1,"tty?":1,type:1,ungetc:1,uniq:1,"uniq!":1,unpack:1,unshift:1,untaint:1,untrace_var:1,upcase:1,"upcase!":1, +update:1,upto:1,"value?":1,values:1,values_at:1,warn:1,write:1,write_nonblock:1,"zero?":1,zip:1}},r={cN:"yardoctag",b:"@[A-Za-z]+"},a={cN:"comment",b:"#",e:"$",c:[r]},i={cN:"comment",b:"^\\=begin",e:"^\\=end",c:[r],r:10},o={cN:"comment",b:"^__END__",e:"\\n$"},s={cN:"subst",b:"#\\{",e:"}",l:e,k:n},l=[hljs.BE,s],u={cN:"string",b:"'",e:"'",c:l,r:0},c={cN:"string",b:'"',e:'"',c:l,r:0},f={cN:"string",b:"%[qw]?\\(",e:"\\)",c:l,r:10},d={cN:"string",b:"%[qw]?\\[",e:"\\]",c:l,r:10},h={cN:"string",b:"%[qw]?{",e:"}",c:l,r:10},p={cN:"string",b:"%[qw]?<",e:">",c:l,r:10},g={cN:"string",b:"%[qw]?/",e:"/",c:l,r:10},m={cN:"string",b:"%[qw]?%",e:"%",c:l,r:10},v={cN:"string",b:"%[qw]?-",e:"-",c:l,r:10},y={cN:"string",b:"%[qw]?\\|",e:"\\|",c:l,r:10},b={cN:"function",b:"\\bdef\\s+",e:" |$|;",l:e,k:n,c:[{cN:"title",b:t,l:e,k:n},{cN:"params",b:"\\(",e:"\\)",l:e,k:n},a,i,o]},x={cN:"identifier",b:e,l:e,k:n,r:0},w=[a,i,o,u,c,f,d,h,p,g,m,v,y,{cN:"class",b:"\\b(class|module)\\b",e:"$|;",k:{"class":1,module:1},c:[{cN:"title",b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?",r:0},{cN:"inheritance",b:"<\\s*",c:[{cN:"parent",b:"("+hljs.IR+"::)?"+hljs.IR}]},a,i,o]},b,{cN:"constant",b:"(::)?([A-Z]\\w*(::)?)+",r:0},{cN:"symbol",b:":",c:[u,c,f,d,h,p,g,m,v,y,x],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"number",b:"\\?\\w"},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},x,{b:"("+hljs.RSR+")\\s*",c:[a,i,o,{cN:"regexp",b:"/",e:"/[a-z]*",i:"\\n",c:[hljs.BE]}],r:0}];return s.c=w,{dM:{l:e,k:n,c:b.c[1].c=w}}}(),function(c,s,o){function l(e,t,n){var r=s.createElement(e);return t&&(r.id=te+t),n&&(r.style.cssText=n),c(r)}function f(){return o.innerHeight?o.innerHeight:c(o).height()}function u(e,n){n!==Object(n)&&(n={}),this.cache={},this.el=e,this.value=function(e){var t;return this.cache[e]===undefined&&((t=c(this.el).attr("data-cbox-"+e))!==undefined?this.cache[e]=t:n[e]!==undefined?this.cache[e]=n[e]:Q[e]!==undefined&&(this.cache[e]=Q[e])),this.cache[e]},this.get=function(e){var t=this.value(e);return c.isFunction(t)?t.call(this.el,this):t}}function i(e){var t=N.length,n=(X+e)%t;return n<0?t+n:n}function d(e,t){return Math.round((/%/.test(e)?("x"===t?j.width():f())/100:1)*parseInt(e,10))}function h(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function p(e,t){return e.get("retinaUrl")&&1"),x()}}function a(){S||(t=!1,j=c(o),S=l(ce).attr({id:ee,"class":!1===c.support.opacity?te+"IE":"",role:"dialog",tabindex:"-1"}).hide(),w=l(ce,"Overlay").hide(),E=c([l(ce,"LoadingOverlay")[0],l(ce,"LoadingGraphic")[0]]),T=l(ce,"Wrapper"),D=l(ce,"Content").append(R=l(ce,"Title"),F=l(ce,"Current"),M=c('