Gui improvements and ideas

This commit is contained in:
david 2024-07-20 16:52:12 +02:00
parent 3f4c7d17bf
commit 2ae0b55e42
54 changed files with 639 additions and 237 deletions

View file

@ -33,7 +33,7 @@ module A11yist
# 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.time_zone = "Europe/Zurich"
# config.eager_load_paths << Rails.root.join("extras")
end
end

View file

@ -92,6 +92,8 @@ Rails.application.configure do
# "example.com", # Allow requests from example.com
# /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
# ]
config.hosts = ENV.fetch('APP_HOSTS', '').split(',')
# Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
config.active_record.sqlite3_production_warning=false
end

View file

@ -0,0 +1,18 @@
ActionText::ContentHelper.allowed_attributes ||= []
ActionText::ContentHelper.allowed_attributes += [
"target", # We set target="_blank" on external links
"abbr",
"alt",
"cite",
"class",
"datetime",
"height",
"href",
"lang",
"name",
"src",
"title",
"width",
"xml:lang",
]
ActionText::ContentHelper.allowed_attributes += ActionText::Attachment::ATTRIBUTES

View file

@ -10,4 +10,4 @@ Rails.application.config.assets.paths << Rails.root.join('node_modules/bootstrap
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
Rails.application.config.assets.precompile += %w( actiontext.css )

View file

@ -0,0 +1,2 @@
# Add this line to config/initializers/mime_types.rb in your Rails application
Mime::Type.register "application/vnd.openxmlformats-officedocument.wordprocessingml.document", :docx

View file

@ -1,18 +1,42 @@
de-CH:
activerecord:
attributes:
success_criterion:
title: Titel
description_html: Richtline
comment_html: Testkommentar
level: Stufe
result: Testergebnis
results/passed: Bestanden
results/failed: Nicht bestanden
results/not_applicable: Nicht anwendbar
check:
id: ID
level: Stufe
position: Position
success_criterion_html: Erfolgskriterium
element:
id: ID
title: Beschreibung
description_html: Details
path: Pfad
checklists: Checkliste
report:
name: Bezeichnung
comment_html: Projektbeschreibung
models:
check:
one: Check
other: Checks
checklist_entry:
one: Check
other: Checks
checklist:
one: Checkliste
other: Checklisten
report:
one: Prüfbericht
other: Prüfberichte
success_criterion:
one: Erfolgskriterium
other: Erfolgskriterien