Skip to content

Commit

Permalink
first commit of sous-media
Browse files Browse the repository at this point in the history
  • Loading branch information
laura-johnson committed Apr 2, 2024
0 parents commit 1ac2164
Show file tree
Hide file tree
Showing 53 changed files with 1,531 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Four Kitchens

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Sous Media Drupal Recipe
A recipe that contains modules and configuration for the Sous media experience.

This module configures three media types:
- file
- image
- video

## Configuring Drupal for Recipes

See https://www.drupal.org/files/issues/2023-10-01/Configuring%20Drupal%20to%20Apply%20Recipes.md

## Installing this Recipe

`composer require fourkitchens/sous-media`

## Applying this Recipe

If you used the Sous Project as your starterkit:
- `lando install-recipe sous-media`

Manually applying the recipe to your own project:
From your webroot run:
- `php core/scripts/drupal recipe recipes/sous-media`
- `drush cr`
- `composer unpack fourkitchens/sous-media`
37 changes: 37 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "fourkitchens/sous-media",
"description": "A recipe that contains modules and configuration for Sous media.",
"keywords": ["recipe", "Drupal recipes", "drupal recipe"],
"type": "drupal-recipe",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Laura Johnson",
"role": "Maintainer"
}
],
"repositories": [
{
"type": "package",
"package": {
"name": "dropzone/dropzone",
"version": "5.9.3",
"type": "drupal-library",
"extra": {
"installer-name": "dropzone/dist"
},
"dist": {
"url": "https://github.com/dropzone/dropzone/releases/download/v5.9.3/dist.zip",
"type": "zip"
}
}
}
],
"minimum-stability": "dev",
"require": {
"dropzone/dropzone": "^5.9",
"drupal/media_library_edit": "^3.0",
"drupal/focal_point": "^2.0",
"drupal/dropzonejs": "^2.5"
}
}
106 changes: 106 additions & 0 deletions config/core.entity_form_display.media.file.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
langcode: en
status: true
dependencies:
config:
- field.field.media.file.field_description
- field.field.media.file.field_media_file
- field.field.media.file.field_tags
- media.type.file
module:
- field_group
- file
- text
third_party_settings:
field_group:
group_tabs:
children:
- group_file_content
- group_file_details
label: Tabs
region: content
parent_name: ''
weight: 0
format_type: tabs
format_settings:
classes: ''
id: ''
direction: horizontal
group_file_content:
children:
- name
- field_media_file
label: 'File Content'
region: content
parent_name: group_tabs
weight: 9
format_type: tab
format_settings:
classes: ''
id: ''
formatter: open
description: ''
required_fields: true
group_file_details:
children:
- field_description
- field_tags
label: 'File Details'
region: content
parent_name: group_tabs
weight: 10
format_type: tab
format_settings:
classes: ''
id: ''
formatter: closed
description: ''
required_fields: true
id: media.file.default
targetEntityType: media
bundle: file
mode: default
content:
field_description:
type: text_textarea
weight: 3
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_media_file:
type: file_generic
weight: 2
region: content
settings:
progress_indicator: throbber
third_party_settings: { }
field_tags:
type: entity_reference_autocomplete_tags
weight: 4
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
name:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 4
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
created: true
path: true
uid: true
130 changes: 130 additions & 0 deletions config/core.entity_form_display.media.image.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
langcode: en
status: true
dependencies:
config:
- field.field.media.image.field_caption
- field.field.media.image.field_copyright
- field.field.media.image.field_description
- field.field.media.image.field_media_image
- field.field.media.image.field_tags
- image.style.thumbnail
- media.type.image
module:
- field_group
- focal_point
- text
third_party_settings:
field_group:
group_image_details:
children:
- field_caption
- field_description
- field_copyright
- field_tags
label: 'Image Details'
region: content
parent_name: group_tabs
weight: 10
format_type: tab
format_settings:
classes: ''
id: ''
formatter: closed
description: ''
required_fields: true
group_tabs:
children:
- group_image_content
- group_image_details
label: Tabs
region: content
parent_name: ''
weight: 0
format_type: tabs
format_settings:
classes: ''
id: ''
direction: horizontal
group_image_content:
children:
- name
- field_media_image
label: 'Image Content'
region: content
parent_name: group_tabs
weight: 9
format_type: tab
format_settings:
classes: ''
id: ''
formatter: open
description: ''
required_fields: true
id: media.image.default
targetEntityType: media
bundle: image
mode: default
content:
field_caption:
type: string_textarea
weight: 8
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_copyright:
type: string_textfield
weight: 10
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_description:
type: text_textarea
weight: 9
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_media_image:
type: image_focal_point
weight: 3
region: content
settings:
progress_indicator: throbber
preview_image_style: thumbnail
preview_link: true
offsets: '50,50'
third_party_settings: { }
field_tags:
type: entity_reference_autocomplete
weight: 11
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
name:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 2
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
created: true
path: true
uid: true
Loading

0 comments on commit 1ac2164

Please sign in to comment.