Enable and configure permissions for visitors module #124

This commit is contained in:
benjamin melançon 2024-06-06 01:06:17 -04:00
parent 723290cd22
commit 53043d7d4f
6 changed files with 1277 additions and 0 deletions

View file

@ -136,6 +136,8 @@ module:
video_embed_field: 0 video_embed_field: 0
views_plain: 0 views_plain: 0
views_ui: 0 views_ui: 0
visitors: 0
visitors_geoip: 0
workflow_buttons: 0 workflow_buttons: 0
workflow_buttons_trash: 0 workflow_buttons_trash: 0
workflows: 0 workflows: 0

View file

@ -28,6 +28,7 @@ dependencies:
- taxonomy - taxonomy
- toolbar - toolbar
- tour - tour
- visitors
_core: _core:
default_config_hash: p1SmYFXVP1KLKKQI-wkTYJ2dVCvR7HgO7SL3BAKTyTE default_config_hash: p1SmYFXVP1KLKKQI-wkTYJ2dVCvR7HgO7SL3BAKTyTE
id: manager id: manager
@ -51,6 +52,7 @@ permissions:
- 'access tour' - 'access tour'
- 'access user contact forms' - 'access user contact forms'
- 'access user profiles' - 'access user profiles'
- 'access visitors'
- 'administer CAPTCHA settings' - 'administer CAPTCHA settings'
- 'administer block content' - 'administer block content'
- 'administer block types' - 'administer block types'
@ -83,3 +85,4 @@ permissions:
- 'view all revisions' - 'view all revisions'
- 'view own unpublished content' - 'view own unpublished content'
- 'view the administration theme' - 'view the administration theme'
- 'view visitors counter'

View file

@ -0,0 +1,603 @@
uuid: 0879c0fb-b44b-44f9-8ba5-11f5fc5fb7d4
langcode: en
status: true
dependencies:
module:
- user
- visitors
_core:
default_config_hash: PkfifZUxhfn8hGbu2AUSXWOPzoGfJ1cLv4GK3BkF0AY
id: visitors_recent_visits
label: 'Recent Visits'
module: views
description: ''
tag: ''
base_table: visitors
base_field: ''
display:
default:
id: default
display_title: Default
display_plugin: default
position: 0
display_options:
fields:
visitors_id:
id: visitors_id
table: visitors
field: visitors_id
relationship: none
group_type: group
admin_label: ''
entity_type: null
entity_field: null
plugin_id: numeric
label: ID
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
set_precision: false
precision: 0
decimal: .
separator: ''
format_plural: false
format_plural_string: !!binary MQNAY291bnQ=
prefix: ''
suffix: ''
visitors_date_time:
id: visitors_date_time
table: visitors
field: visitors_date_time
relationship: none
group_type: group
admin_label: ''
plugin_id: date
label: Date
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
date_format: short
custom_date_format: ''
timezone: ''
visitors_url:
id: visitors_url
table: visitors
field: visitors_url
relationship: none
group_type: group
admin_label: ''
plugin_id: standard
label: URL
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
name:
id: name
table: users_field_data
field: name
relationship: visitors_uid
group_type: group
admin_label: ''
entity_type: user
entity_field: name
plugin_id: field
label: User
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: user_name
settings:
link_to_entity: true
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
nothing:
id: nothing
table: views
field: nothing
relationship: none
group_type: group
admin_label: ''
plugin_id: custom
label: Details
exclude: false
alter:
alter_text: true
text: details
make_link: true
path: 'internal:/visitors/hits/{{ visitors_id }}'
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: false
pager:
type: full
options:
offset: 0
items_per_page: 10
total_pages: null
id: 0
tags:
next:
previous:
first: '« First'
last: 'Last »'
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
quantity: 9
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
access:
type: none
options: { }
cache:
type: none
options: { }
empty: { }
sorts: { }
arguments:
route:
id: route
table: visitors
field: route
relationship: none
group_type: group
admin_label: ''
plugin_id: string
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
summary_options:
base_path: ''
count: true
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
glossary: false
limit: 0
case: none
path_case: none
transform_dash: false
break_phrase: false
filters:
visitors_date_time:
id: visitors_date_time
table: visitors
field: visitors_date_time
relationship: none
group_type: group
admin_label: ''
plugin_id: visitors_date
operator: between
value:
min: from
max: to
value: ''
type: global
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
min_placeholder: ''
max_placeholder: ''
placeholder: ''
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
bot:
id: bot
table: visitors
field: bot
relationship: none
group_type: group
admin_label: ''
plugin_id: boolean
operator: '='
value: '0'
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
style:
type: table
options:
grouping: { }
row_class: ''
default_row_class: true
columns:
visitors_id: visitors_id
default: visitors_id
info:
visitors_id:
sortable: true
default_sort_order: desc
align: ''
separator: ''
empty_column: false
responsive: ''
override: true
sticky: false
summary: ''
empty_table: false
caption: ''
description: ''
row:
type: fields
options:
default_field_elements: true
inline: { }
separator: ''
hide_empty: false
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: false
replica: false
query_tags: { }
relationships:
visitors_uid:
id: visitors_uid
table: visitors
field: visitors_uid
relationship: none
group_type: group
admin_label: uid
plugin_id: standard
required: false
use_ajax: true
header:
result:
id: result
table: views
field: result
relationship: none
group_type: group
admin_label: ''
plugin_id: result
empty: false
content: 'Displaying @start - @end of @total'
footer: { }
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
tags: { }
host:
id: host
display_title: Host
display_plugin: embed
position: 2
display_options:
arguments:
visitors_ip:
id: visitors_ip
table: visitors
field: visitors_ip
relationship: none
group_type: group
admin_label: ''
plugin_id: string
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
summary_options:
base_path: ''
count: true
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
glossary: false
limit: 0
case: none
path_case: none
transform_dash: false
break_phrase: false
defaults:
arguments: false
display_description: ''
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
tags: { }
recent:
id: recent
display_title: Route
display_plugin: embed
position: 1
display_options:
display_description: ''
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
tags: { }

View file

@ -0,0 +1,628 @@
uuid: da24ea8c-fe72-403b-993c-cdb86f67c850
langcode: en
status: true
dependencies:
module:
- visitors
_core:
default_config_hash: cTLBGAStQ2AurD9E0bTRb3gehMNf9MJvf2AD5y6Mb7o
id: visitors_top_visits
label: 'Top Visits'
module: views
description: ''
tag: ''
base_table: visitors
base_field: ''
display:
default:
id: default
display_title: Default
display_plugin: default
position: 0
display_options:
fields:
visitors_path:
id: visitors_path
table: visitors
field: visitors_path
relationship: none
group_type: group
admin_label: ''
plugin_id: standard
label: Path
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
visitors_id:
id: visitors_id
table: visitors
field: visitors_id
relationship: none
group_type: count
admin_label: ''
entity_type: null
entity_field: null
plugin_id: numeric
label: Visits
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
set_precision: false
precision: 0
decimal: .
separator: ','
format_plural: false
format_plural_string: 1\x03@count
prefix: ''
suffix: ''
pager:
type: full
options:
offset: 0
items_per_page: 10
total_pages: null
id: 0
tags:
next:
previous:
first: '« First'
last: 'Last »'
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
quantity: 9
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
access:
type: none
options: { }
cache:
type: none
options: { }
empty: { }
sorts: { }
arguments: { }
filters:
visitors_date_time:
id: visitors_date_time
table: visitors
field: visitors_date_time
relationship: none
group_type: group
admin_label: ''
plugin_id: visitors_date
operator: between
value:
min: from
max: to
value: ''
type: global
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
min_placeholder: ''
max_placeholder: ''
placeholder: ''
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
bot:
id: bot
table: visitors
field: bot
relationship: none
group_type: group
admin_label: ''
plugin_id: boolean
operator: '='
value: '0'
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
style:
type: table
options:
grouping: { }
row_class: ''
default_row_class: true
columns:
visitors_ip: visitors_ip
visitors_id: visitors_id
default: visitors_id
info:
visitors_ip:
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
visitors_id:
sortable: true
default_sort_order: desc
align: ''
separator: ''
empty_column: false
responsive: ''
override: true
sticky: false
summary: ''
empty_table: false
caption: ''
description: ''
row:
type: fields
options:
default_field_elements: true
inline: { }
separator: ''
hide_empty: false
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: false
replica: false
query_tags: { }
relationships: { }
use_ajax: true
group_by: true
header:
result:
id: result
table: views
field: result
relationship: none
group_type: group
admin_label: ''
plugin_id: result
empty: false
content: 'Displaying @start - @end of @total'
footer: { }
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_interface'
- url.query_args
tags: { }
host:
id: host
display_title: Hosts
display_plugin: embed
position: 3
display_options:
fields:
visitors_ip:
id: visitors_ip
table: visitors
field: visitors_ip
relationship: none
group_type: group
admin_label: ''
plugin_id: standard
label: Host
exclude: false
alter:
alter_text: false
text: ''
make_link: true
path: 'internal:/visitors/hosts/{{ visitors_ip }}'
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
visitors_id:
id: visitors_id
table: visitors
field: visitors_id
relationship: none
group_type: count
admin_label: ''
entity_type: null
entity_field: null
plugin_id: numeric
label: Visits
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
set_precision: false
precision: 0
decimal: .
separator: ','
format_plural: false
format_plural_string: 1\x03@count
prefix: ''
suffix: ''
defaults:
fields: false
display_description: ''
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_interface'
- url.query_args
tags: { }
path:
id: path
display_title: Paths
display_plugin: embed
position: 1
display_options:
style:
type: table
options:
grouping: { }
row_class: ''
default_row_class: true
columns:
visitors_path: visitors_path
visitors_id: visitors_id
default: visitors_id
info:
visitors_path:
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
visitors_id:
sortable: true
default_sort_order: desc
align: ''
separator: ''
empty_column: false
responsive: ''
override: true
sticky: false
summary: ''
empty_table: false
caption: ''
description: ''
row:
type: fields
options:
default_field_elements: true
inline: { }
separator: ''
hide_empty: false
defaults:
style: false
row: false
display_description: ''
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_interface'
- url.query_args
tags: { }
route:
id: route
display_title: Routes
display_plugin: embed
position: 2
display_options:
fields:
route:
id: route
table: visitors
field: route
relationship: none
group_type: group
admin_label: ''
plugin_id: standard
label: Route
exclude: false
alter:
alter_text: false
text: ''
make_link: true
path: 'internal:/visitors/route/{{ route }}'
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
visitors_id:
id: visitors_id
table: visitors
field: visitors_id
relationship: none
group_type: count
admin_label: ''
entity_type: null
entity_field: null
plugin_id: numeric
label: Visits
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
set_precision: false
precision: 0
decimal: .
separator: ','
format_plural: false
format_plural_string: 1\x03@count
prefix: ''
suffix: ''
defaults:
fields: false
display_description: ''
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_interface'
- url.query_args
tags: { }

View file

@ -0,0 +1,37 @@
_core:
default_config_hash: 9EvDriR0owqXpyJGQ9jcg2YlrreIuyI2j4Hxh7Cdx3c
chart_height: 430
chart_width: 700
flush_log_timer: 0
bot_retention_log: 0
items_per_page: 10
theme: admin
disable_tracking: false
status_codes_disabled: { }
domain_mode: 0
track:
userid: true
counter:
enabled: true
entity_types:
- node
display_max_age: 3600
privacy:
disablecookies: false
visibility:
request_path_mode: 0
request_path_pages: |-
/admin
/admin/*
/batch
/node/add*
/node/*/*
/user/*/*
user_role_mode: 0
user_role_roles: { }
user_account_mode: 1
exclude_user1: false
codesnippet:
before: ''
after: ''
performance: false

View file

@ -0,0 +1,4 @@
_core:
default_config_hash: O9-sVp7oOgWfsRZB65TyOT-R2o4IJBha_ud5Ar9oOtw
geoip_path: ../
license: ''