Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-X Updated helfi test content #421

Merged
merged 5 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion modules/helfi_test_content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Helfi test content module holds test content for hel.fi specific layouts, compon

**Note!** This module should not be enabled in production environment as it uses [default content](https://www.drupal.org/project/default_content) module to produce the test content. The test content is created with normal content entities, like nodes and menu links, and it will be automatically visible for anonymous users!

## Dependencies
- [Default content](https://www.drupal.org/project/default_content)
- [TPR module](https://github.com/City-of-Helsinki/drupal-module-helfi-tpr#drupal-tpr-integration)

## How to import the test content

Expand All @@ -30,7 +33,7 @@ drush dcem helfi_test_content

All content what is listed in [helfi_test_content.info.yml](helfi_test_content.info.yml) will be exported.

**Note!** As always with exported configurations and/or content, go through the exported changes in the .yml files and remove the unwanted ones before committing the code.
**Note!** As always with exported configurations and/or content, go through the exported changes in the .yml files and remove the unwanted ones before committing the code. For example in TPR Services and TPR Units the IDs will be removed when exporting content - this should not be committed.

## How to generate new test content

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 166e9452-88c5-48c3-b778-a97f0214ce22
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: helsingin_kaupunki_small.png
uri:
-
value: 'public://helsingin_kaupunki_small.png'
filemime:
-
value: image/png
filesize:
-
value: 1783
status:
-
value: true
created:
-
value: 1657104209
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 29bd12c4-3726-4538-a4b9-3c91fbe510f3
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: snowdrops.jpg
uri:
-
value: 'public://snowdrops.jpg'
filemime:
-
value: image/jpeg
filesize:
-
value: 270773
status:
-
value: true
created:
-
value: 1657261639
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 3069fcea-d0fe-432b-965b-eb19beb68379
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: contactcard_picture_4.jpg
uri:
-
value: 'public://contactcard_picture_4.jpg'
filemime:
-
value: image/jpeg
filesize:
-
value: 335457
status:
-
value: true
created:
-
value: 1657274051
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 55a4d5ec-f3cc-450e-b1d4-9f769215fa39
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: video.png
uri:
-
value: 'public://media-icons/generic/video.png'
filemime:
-
value: image/png
filesize:
-
value: 4156
status:
-
value: true
created:
-
value: 1657621437
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 59b9a7a0-4608-4e0d-8bdc-ac3bba38af77
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: contactcard_picture_3.jpg
uri:
-
value: 'public://contactcard_picture_3.jpg'
filemime:
-
value: image/jpeg
filesize:
-
value: 405866
status:
-
value: true
created:
-
value: 1657273928
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 5aa93e60-d57f-4d7c-9bb9-be738c2461e5
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: contactcard_picture_1.jpg
uri:
-
value: 'public://contactcard_picture_1.jpg'
filemime:
-
value: image/jpeg
filesize:
-
value: 275244
status:
-
value: true
created:
-
value: 1657272787
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 72e152cd-10ed-49c3-8f8d-174999a6578e
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: generic.png
uri:
-
value: 'public://media-icons/generic/generic.png'
filemime:
-
value: image/png
filesize:
-
value: 3900
status:
-
value: true
created:
-
value: 1657017176
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 95e79ea8-af6e-47af-97cd-a16187930ce9
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: raindrops.jpg
uri:
-
value: 'public://raindrops.jpg'
filemime:
-
value: image/jpeg
filesize:
-
value: 5447664
status:
-
value: true
created:
-
value: 1657172359
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: ac8177ed-6485-419e-80da-7c9249307567
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: tulips.jpg
uri:
-
value: 'public://tulips.jpg'
filemime:
-
value: image/jpeg
filesize:
-
value: 412804
status:
-
value: true
created:
-
value: 1657093694
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: e4073ee5-8925-4072-8783-58faa2cbf0c8
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: snowdrops.jpg
uri:
-
value: 'public://snowdrops.jpg'
filemime:
-
value: image/jpeg
filesize:
-
value: 270773
status:
-
value: true
created:
-
value: 1657093901
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: f7b216de-3ba8-41bf-b8cc-099c409a7a5a
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: tulips.jpg
uri:
-
value: 'public://tulips.jpg'
filemime:
-
value: image/jpeg
filesize:
-
value: 412804
status:
-
value: true
created:
-
value: 1657261159
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: fbd5b487-2f0a-4301-9c18-5d7d68855529
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: contactcard_picture_2.jpg
uri:
-
value: 'public://contactcard_picture_2.jpg'
filemime:
-
value: image/jpeg
filesize:
-
value: 797964
status:
-
value: true
created:
-
value: 1657273538
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added modules/helfi_test_content/content/file/video.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
_meta:
version: '1.0'
entity_type: media
uuid: 15c88893-b4e3-45d8-a180-11a80b4d4d13
bundle: image
default_langcode: en
depends:
f7b216de-3ba8-41bf-b8cc-099c409a7a5a: file
default:
status:
-
value: true
uid:
-
target_id: 1
name:
-
value: tulips.jpg
created:
-
value: 1657173311
revision_translation_affected:
-
value: true
path:
-
alias: ''
langcode: en
pathauto: 0
content_translation_source:
-
value: und
content_translation_outdated:
-
value: false
field_media_image:
-
entity: f7b216de-3ba8-41bf-b8cc-099c409a7a5a
alt: 'alternative text'
title: ''
width: 1920
height: 1280
Loading