-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
500 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# tide_media_secure_files | ||
Allows author to create secure private files | ||
|
||
## Purpose | ||
- media |
55 changes: 55 additions & 0 deletions
55
..._media_secure_files/config/install/core.entity_form_display.media.secure_file.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.media.secure_file.field_media_site | ||
- field.field.media.secure_file.field_secure_file | ||
- media.type.secure_file | ||
module: | ||
- file | ||
id: media.secure_file.default | ||
targetEntityType: media | ||
bundle: secure_file | ||
mode: default | ||
content: | ||
created: | ||
type: datetime_timestamp | ||
weight: 4 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
field_media_site: | ||
type: options_buttons | ||
weight: 2 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
field_name: field_media_site | ||
field_secure_file: | ||
type: file_generic | ||
weight: 1 | ||
region: content | ||
settings: | ||
progress_indicator: throbber | ||
third_party_settings: { } | ||
name: | ||
type: string_textfield | ||
weight: 0 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
uid: | ||
type: entity_reference_autocomplete | ||
weight: 3 | ||
region: content | ||
settings: | ||
match_operator: CONTAINS | ||
match_limit: 10 | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
hidden: | ||
path: true | ||
status: true |
26 changes: 26 additions & 0 deletions
26
..._media_secure_files/config/install/core.entity_view_display.media.secure_file.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.media.secure_file.field_secure_file | ||
- media.type.secure_file | ||
module: | ||
- file | ||
id: media.secure_file.default | ||
targetEntityType: media | ||
bundle: secure_file | ||
mode: default | ||
content: | ||
field_secure_file: | ||
type: file_default | ||
label: visually_hidden | ||
settings: | ||
use_description_as_link_text: true | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: | ||
created: true | ||
name: true | ||
thumbnail: true | ||
uid: true |
23 changes: 23 additions & 0 deletions
23
...tide_media_secure_files/config/install/field.field.media.secure_file.field_media_site.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.media.field_media_site | ||
- media.type.secure_file | ||
- taxonomy.vocabulary.sites | ||
id: media.secure_file.field_media_site | ||
field_name: field_media_site | ||
entity_type: media | ||
bundle: secure_file | ||
label: Site | ||
description: '' | ||
required: true | ||
translatable: true | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:taxonomy_term' | ||
handler_settings: | ||
target_bundles: | ||
sites: sites | ||
field_type: entity_reference |
26 changes: 26 additions & 0 deletions
26
...ide_media_secure_files/config/install/field.field.media.secure_file.field_secure_file.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.media.field_secure_file | ||
- media.type.secure_file | ||
module: | ||
- file | ||
id: media.secure_file.field_secure_file | ||
field_name: field_secure_file | ||
entity_type: media | ||
bundle: secure_file | ||
label: File | ||
description: '' | ||
required: true | ||
translatable: true | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:file' | ||
handler_settings: { } | ||
file_directory: 'secure/[date:custom:Y]-[date:custom:m]' | ||
file_extensions: 'xls xlsx csv xlsm doc docx dotx pdf ppt pptx' | ||
max_filesize: '' | ||
description_field: true | ||
field_type: file |
26 changes: 26 additions & 0 deletions
26
.../modules/tide_media_secure_files/config/install/field.storage.media.field_secure_file.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- field_permissions | ||
- file | ||
- media | ||
third_party_settings: | ||
field_permissions: | ||
permission_type: custom | ||
id: media.field_secure_file | ||
field_name: field_secure_file | ||
entity_type: media | ||
type: file | ||
settings: | ||
target_type: file | ||
display_field: false | ||
display_default: false | ||
uri_scheme: private | ||
module: file | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
12 changes: 12 additions & 0 deletions
12
modules/tide_media/modules/tide_media_secure_files/config/install/media.type.secure_file.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: secure_file | ||
label: 'Secure File' | ||
description: '' | ||
source: file | ||
queue_thumbnail_downloads: false | ||
new_revision: false | ||
source_configuration: | ||
source_field: field_secure_file | ||
field_map: { } |
24 changes: 24 additions & 0 deletions
24
.../tide_media/modules/tide_media_secure_files/config/install/pfdp.pfdp_directory.secure.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: secure | ||
path: /secure | ||
bypass: false | ||
grant_file_owners: false | ||
users: { } | ||
roles: | ||
administrator: administrator | ||
secure_file_user: secure_file_user | ||
site_admin: '0' | ||
approver: '0' | ||
editor: '0' | ||
contributor: '0' | ||
previewer: '0' | ||
anonymous: '0' | ||
authenticated: '0' | ||
grant_author: '0' | ||
html_editor: '0' | ||
emergency_recovery_resource: '0' | ||
data_importer: '0' | ||
site_auditor: '0' | ||
jobs_editor: '0' |
13 changes: 13 additions & 0 deletions
13
...media_secure_files/config/install/system.action.user_add_role_action.secure_file_user.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- user.role.secure_file_user | ||
module: | ||
- user | ||
id: user_add_role_action.secure_file_user | ||
label: 'Add the Secure File User role to the selected user(s)' | ||
type: user | ||
plugin: user_add_role_action | ||
configuration: | ||
rid: secure_file_user |
13 changes: 13 additions & 0 deletions
13
...ia_secure_files/config/install/system.action.user_remove_role_action.secure_file_user.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- user.role.secure_file_user | ||
module: | ||
- user | ||
id: user_remove_role_action.secure_file_user | ||
label: 'Remove the Secure File User role from the selected user(s)' | ||
type: user | ||
plugin: user_remove_role_action | ||
configuration: | ||
rid: secure_file_user |
Oops, something went wrong.