Skip to content

Commit

Permalink
Merge branch '263731-webform-demo' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbutura committed May 1, 2024
2 parents 819827a + 7960211 commit b857600
Show file tree
Hide file tree
Showing 8 changed files with 195 additions and 2 deletions.
69 changes: 69 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module:
google_analytics: 0
help: 0
history: 0
honeypot: 0
ics_link_field: 0
image: 0
image_field_caption: 0
Expand Down
30 changes: 30 additions & 0 deletions config/sync/honeypot.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
_core:
default_config_hash: 9bVDfWSa_In6VzTXmy04jJ_3ZQobihKjO9isuuUCPaw
protect_all_forms: false
unprotected_forms:
- user_login_form
- search_form
- search_block_form
- views_exposed_form
- honeypot_settings_form
log: false
element_name: url
time_limit: 5
expire: 300
form_settings:
user_register_form: false
user_pass: false
contact_message_feedback_form: false
contact_message_personal_form: false
node_article_form: false
node_basic_page_form: false
node_deliverables_form: false
node_events_form: false
node_institution_form: false
node_laboratory_form: false
node_opportunity_form: false
node_page_form: false
node_project_form: false
node_publications_form: false
node_thematic_areas_form: false
comment_comment_form: false
70 changes: 70 additions & 0 deletions config/sync/tour.tour.honeypot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
uuid: 6eff7ca0-34ae-443e-909c-5fd64d080a4e
langcode: en
status: true
dependencies:
module:
- honeypot
_core:
default_config_hash: A_dlRbNEX9_hOqUkQ5m4AskEmat7VEA8qvFt7tVeufQ
id: honeypot
label: Honeypot
module: honeypot
routes:
-
route_name: honeypot.config
tips:
honeypot-configuration:
id: honeypot-configuration
plugin: text
label: Honeypot
weight: -10
body: "Congratulations on installing Honeypot on your site! With just a few clicks, you can have your site well-protected against automated spam bots.\r\n\r\nClick Next to be guided through this configuration page."
position: top-start
protect-all-forms:
id: protect-all-forms
plugin: text
label: 'Protect all forms'
weight: -9
selector: '#edit-protect-all-forms'
body: "Protecting all the forms is the easiest way to quickly cut down on spam on your site, but doing this disables Drupal's caching for every page where a form is displayed.\r\n\r\nNote: If you have the honeypot time limit enabled, this option may cause issues with Drupal Commerce product forms or similarly-sparse forms that are able to be completed in a very short time."
position: bottom-start
log-blocked-form-submissions:
id: log-blocked-form-submissions
plugin: text
label: 'Log blocked form submissions'
weight: -8
selector: '#edit-log'
body: 'Check this box to log every form submission using watchdog. If you have Database Logging enabled, you can view these log entries in the Recent log messages page under Reports.'
position: bottom-start
honeypot-element-name:
id: honeypot-element-name
plugin: text
label: 'Honeypot Element Name'
weight: -7
selector: '#edit-element-name'
body: "Spam bots typically fill out any field they believe will help get links back to their site, so tempting them with a field named something like 'url', 'homepage', or 'link' makes it hard for them to resist filling in the field—and easy to catch them in the trap and reject their submissions!"
position: top-start
honeypot-time-limit:
id: honeypot-time-limit
plugin: text
label: 'Honeypot Time Limit'
weight: -6
selector: '#edit-time-limit'
body: "If you enter a positive value, Honeypot will require that all protected forms take at least that many seconds long to fill out. Most forms take at least 5-10 seconds to complete (if you're a human), so setting this to a value < 5 will help protect against spam bots. Set to 0 to disable."
position: top-start
honeypot-expire:
id: honeypot-expire
plugin: text
label: 'Honeypot Expire'
weight: -5
selector: '#edit-expire'
body: "If you enter a positive value, Honeypot will require that all protected forms take at least that many seconds long to fill out. Most forms take at least 5-10 seconds to complete (if you're a human), so setting this to a value < 5 will help protect against spam bots. Set to 0 to disable."
position: top-start
honeypot-form-specific-settings:
id: honeypot-form-specific-settings
plugin: text
label: 'Honeypot form-specific settings'
weight: -4
selector: '#edit-form-settings'
body: 'If you would like to choose particular forms to be protected by Honeypot, check the forms you wish to protect in this section. Most common types of forms are available for protection.'
position: top-start
17 changes: 17 additions & 0 deletions config/sync/ultimate_cron.job.honeypot_cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
uuid: 3a6a4488-31d8-48db-b265-ce30295f671f
langcode: en
status: true
dependencies:
module:
- honeypot
title: 'Default cron handler'
id: honeypot_cron
weight: 0
module: honeypot
callback: honeypot_cron
scheduler:
id: simple
launcher:
id: serial
logger:
id: database
7 changes: 6 additions & 1 deletion config/sync/webform.webform.survey.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
uuid: 5d12e695-12c7-4e38-86e8-114f028b88ab
langcode: en
status: open
dependencies: { }
dependencies:
module:
- honeypot
third_party_settings:
honeypot:
honeypot: true
weight: 0
open: null
close: null
Expand Down
2 changes: 1 addition & 1 deletion web/themes/custom/parc/css/components/webform/webform.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@

.form-actions {
margin-top: 30px;
margin-bottom: 60px;

.btn-primary {
font-weight: 600;
Expand Down

0 comments on commit b857600

Please sign in to comment.