Copy the Chatwoot (v4.14.0) frontend runnable subset into frontend/ for customization: - app/javascript/ (Vue SPA: dashboard, widget, sdk, portal, superadmin) - app/views/ (ERB templates for vite-plugin-ruby entrypoint resolution) - app/helpers/, app/assets/ (Rails view helpers, static assets) - enterprise/ (Enterprise edition frontend overlay) - config/vite.json, vite.config.ts, bin/vite (Vite-Rails toolchain) - package.json, pnpm-lock.yaml, tailwind/postcss/eslint configs - Gemfile, Gemfile.lock (vite_rails gem for bin/vite binstub) Excluded Rails backend: controllers, models, services, jobs, mailers, policies, db, lib, spec, public, node_modules. Update references to the new frontend location: - .gitignore: exclude frontend build artifacts (node_modules, tmp, packs), keep frontend/bin/ and frontend/vendor/ via negation - backend/scripts/parity_frontend_smoke.sh: CHATWOOT_DIR default reference/chatwoot -> ../frontend - backend/scripts/parity_frontend_browser_smoke.mjs: same default update - AGENTS.md: add frontend section with Rails/Vite coupling notes - README: architecture tree includes frontend/
45 lines
1.7 KiB
Ruby
45 lines
1.7 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
Devise.setup do |config|
|
|
# ==> Configuration for the Devise Secure Password extension
|
|
# Module: password_has_required_content
|
|
#
|
|
# Configure password content requirements including the number of uppercase,
|
|
# lowercase, number, and special characters that are required. To configure the
|
|
# minimum and maximum length refer to the Devise config.password_length
|
|
# standard configuration parameter.
|
|
|
|
# The number of uppercase letters (latin A-Z) required in a password:
|
|
config.password_required_uppercase_count = 1
|
|
|
|
# The number of lowercase letters (latin A-Z) required in a password:
|
|
config.password_required_lowercase_count = 1
|
|
|
|
# The number of numbers (0-9) required in a password:
|
|
config.password_required_number_count = 1
|
|
|
|
# The number of special characters (!@#$%^&*()_+-=[]{}|') required in a password:
|
|
config.password_required_special_character_count = 1
|
|
|
|
# we are not using the configurations below
|
|
# ==> Configuration for the Devise Secure Password extension
|
|
# Module: password_disallows_frequent_reuse
|
|
#
|
|
# The number of previously used passwords that can not be reused:
|
|
# config.password_previously_used_count = 8
|
|
|
|
# ==> Configuration for the Devise Secure Password extension
|
|
# Module: password_disallows_frequent_changes
|
|
# *Requires* password_disallows_frequent_reuse
|
|
#
|
|
# The minimum time that must pass between password changes:
|
|
# config.password_minimum_age = 1.days
|
|
|
|
# ==> Configuration for the Devise Secure Password extension
|
|
# Module: password_requires_regular_updates
|
|
# *Requires* password_disallows_frequent_reuse
|
|
#
|
|
# The maximum allowed age of a password:
|
|
# config.password_maximum_age = 180.days
|
|
end
|