From ae09f06cbc9a98dab2c1ea3edbb9762e7114d535 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Thu, 9 Jun 2022 03:08:28 +0000 Subject: [PATCH 1/7] feat(#78): add content --- drupal/content/meta/index.json | 23 ++- ....b3882633-0964-4830-a40e-a4dbc224386d.json | 162 ++++++++++++++++++ ....0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0.json | 52 ++++++ ....1a89ee24-2d8c-4d5c-a874-98c3c2494761.json | 53 ++++++ ....2bda3601-f2e4-48e6-9fea-a154b428849e.json | 52 ++++++ ....4aa56f70-774a-47ec-bd07-d98390e5d172.json | 55 ++++++ ....e81964d3-ff64-4bcf-b515-1443099e393e.json | 59 +++++++ ....f2114748-8c52-477d-934c-1ce06787223d.json | 56 ++++++ ....4604e39c-47fc-4fe1-b252-e0588f51c6b7.json | 27 +++ 9 files changed, 538 insertions(+), 1 deletion(-) create mode 100644 drupal/content/node.b3882633-0964-4830-a40e-a4dbc224386d.json create mode 100644 drupal/content/paragraph.0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0.json create mode 100644 drupal/content/paragraph.1a89ee24-2d8c-4d5c-a874-98c3c2494761.json create mode 100644 drupal/content/paragraph.2bda3601-f2e4-48e6-9fea-a154b428849e.json create mode 100644 drupal/content/paragraph.4aa56f70-774a-47ec-bd07-d98390e5d172.json create mode 100644 drupal/content/paragraph.e81964d3-ff64-4bcf-b515-1443099e393e.json create mode 100644 drupal/content/paragraph.f2114748-8c52-477d-934c-1ce06787223d.json create mode 100644 drupal/content/path_alias.4604e39c-47fc-4fe1-b252-e0588f51c6b7.json diff --git a/drupal/content/meta/index.json b/drupal/content/meta/index.json index f737968..be83e94 100644 --- a/drupal/content/meta/index.json +++ b/drupal/content/meta/index.json @@ -240,5 +240,26 @@ ], "taxonomy_term.7e0d3d5c-d9a0-40e6-aa6c-7e8f7b457695": [ "user.fb85df17-bbd5-4b75-890e-e010d6410ac0" - ] + ], + "paragraph.e81964d3-ff64-4bcf-b515-1443099e393e": [], + "paragraph.2bda3601-f2e4-48e6-9fea-a154b428849e": [], + "node.b3882633-0964-4830-a40e-a4dbc224386d": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0", + "taxonomy_term.789f893f-87c6-4f2d-85de-484a7ae850f7", + "taxonomy_term.7e0d3d5c-d9a0-40e6-aa6c-7e8f7b457695", + "taxonomy_term.95c7fc60-bf15-4867-a0cf-bce941748e6e", + "paragraph.e81964d3-ff64-4bcf-b515-1443099e393e", + "paragraph.2bda3601-f2e4-48e6-9fea-a154b428849e", + "paragraph.4aa56f70-774a-47ec-bd07-d98390e5d172", + "paragraph.f2114748-8c52-477d-934c-1ce06787223d", + "paragraph.1a89ee24-2d8c-4d5c-a874-98c3c2494761", + "paragraph.0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0" + ], + "path_alias.4604e39c-47fc-4fe1-b252-e0588f51c6b7": [ + "node.b3882633-0964-4830-a40e-a4dbc224386d" + ], + "paragraph.4aa56f70-774a-47ec-bd07-d98390e5d172": [], + "paragraph.f2114748-8c52-477d-934c-1ce06787223d": [], + "paragraph.1a89ee24-2d8c-4d5c-a874-98c3c2494761": [], + "paragraph.0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0": [] } \ No newline at end of file diff --git a/drupal/content/node.b3882633-0964-4830-a40e-a4dbc224386d.json b/drupal/content/node.b3882633-0964-4830-a40e-a4dbc224386d.json new file mode 100644 index 0000000..e86c714 --- /dev/null +++ b/drupal/content/node.b3882633-0964-4830-a40e-a4dbc224386d.json @@ -0,0 +1,162 @@ +{ + "uuid": [ + { + "value": "b3882633-0964-4830-a40e-a4dbc224386d" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "article", + "target_type": "node_type", + "target_uuid": "099b71bc-a724-4c2b-aa00-039950b719ec" + } + ], + "revision_timestamp": [ + { + "value": "2022-06-09T02:59:24+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "revision_uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_log": [ + { + "value": "Updated the Content and Meta tags fields" + } + ], + "status": [ + { + "value": true + } + ], + "uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "title": [ + { + "value": "Fun with Forms and Files" + } + ], + "created": [ + { + "value": "2022-06-09T02:08:07+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "changed": [ + { + "value": "2022-06-09T02:59:24+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "promote": [ + { + "value": true + } + ], + "sticky": [ + { + "value": false + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ], + "path": [ + { + "alias": "\/articles\/fun-forms-and-files-20220609", + "langcode": "en", + "pathauto": 1 + } + ], + "content_translation_source": [ + { + "value": "und" + } + ], + "content_translation_outdated": [ + { + "value": false + } + ], + "field_display_title": [ + { + "value": "Fun with Forms and Files" + } + ], + "field_article_category": [ + { + "target_type": "taxonomy_term", + "target_uuid": "789f893f-87c6-4f2d-85de-484a7ae850f7" + }, + { + "target_type": "taxonomy_term", + "target_uuid": "7e0d3d5c-d9a0-40e6-aa6c-7e8f7b457695" + } + ], + "field_article_type": [ + { + "target_type": "taxonomy_term", + "target_uuid": "95c7fc60-bf15-4867-a0cf-bce941748e6e" + } + ], + "field_content": [ + { + "target_type": "paragraph", + "target_uuid": "e81964d3-ff64-4bcf-b515-1443099e393e" + }, + { + "target_type": "paragraph", + "target_uuid": "2bda3601-f2e4-48e6-9fea-a154b428849e" + }, + { + "target_type": "paragraph", + "target_uuid": "4aa56f70-774a-47ec-bd07-d98390e5d172" + }, + { + "target_type": "paragraph", + "target_uuid": "f2114748-8c52-477d-934c-1ce06787223d" + }, + { + "target_type": "paragraph", + "target_uuid": "1a89ee24-2d8c-4d5c-a874-98c3c2494761" + }, + { + "target_type": "paragraph", + "target_uuid": "0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0" + } + ], + "field_content_supplementary": [], + "field_description": [ + { + "value": "One of the most important parts of the decoupling experience is the ability not only to read data, but to create, update or delete data.\r\n\r\nI recently had the opportunity to revisit a project in which I had implemented a form that included file uploads with image preview, all using Drupal fields and entity references, and decided it was due time that I put together a rewrite up on how to build fully decoupled Drupal forms with Druxt." + } + ], + "field_image": [], + "field_meta_tags": [], + "field_published": [ + { + "value": "2022-06-09T12:08:07+10:00" + } + ], + "field_video": [] +} \ No newline at end of file diff --git a/drupal/content/paragraph.0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0.json b/drupal/content/paragraph.0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0.json new file mode 100644 index 0000000..2bb39bb --- /dev/null +++ b/drupal/content/paragraph.0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0.json @@ -0,0 +1,52 @@ +{ + "uuid": [ + { + "value": "0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "text_formatted", + "target_type": "paragraphs_type", + "target_uuid": "71da2b1b-bfa1-4dae-8638-7f791512512d" + } + ], + "status": [ + { + "value": true + } + ], + "created": [ + { + "value": "2022-06-09T02:52:40+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "behavior_settings": [ + { + "value": { + "layout_paragraphs": { + "parent_uuid": "4aa56f70-774a-47ec-bd07-d98390e5d172", + "region": "content" + } + } + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [], + "field_text_formatted": [ + { + "value": "

It is important to note that these are Entity<\/strong> forms not \"Form API\" forms, but equally as important to remember that entity != node<\/em>.<\/p>\r\n\r\n

A benefit of decoupling is that any entity can be considered as display only, as mutable\/transactional data, or as a combination of both.<\/p>\r\n\r\n

Another benefit of the content entity system in Drupal is that it provides access to hundreds of modular fields, and exposes schema information for those fields when using Druxt.<\/p>\r\n", + "format": "formatted" + } + ] +} \ No newline at end of file diff --git a/drupal/content/paragraph.1a89ee24-2d8c-4d5c-a874-98c3c2494761.json b/drupal/content/paragraph.1a89ee24-2d8c-4d5c-a874-98c3c2494761.json new file mode 100644 index 0000000..7f4ced1 --- /dev/null +++ b/drupal/content/paragraph.1a89ee24-2d8c-4d5c-a874-98c3c2494761.json @@ -0,0 +1,53 @@ +{ + "uuid": [ + { + "value": "1a89ee24-2d8c-4d5c-a874-98c3c2494761" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "code", + "target_type": "paragraphs_type", + "target_uuid": "e3c6ec6e-d8b4-42fa-a788-41ab19196fc9" + } + ], + "status": [ + { + "value": true + } + ], + "created": [ + { + "value": "2022-06-09T02:45:07+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "behavior_settings": [ + { + "value": { + "layout_paragraphs": { + "parent_uuid": "4aa56f70-774a-47ec-bd07-d98390e5d172", + "region": "content" + } + } + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [], + "field_code": [ + { + "value": "" + } + ], + "field_description": [], + "field_title": [] +} \ No newline at end of file diff --git a/drupal/content/paragraph.2bda3601-f2e4-48e6-9fea-a154b428849e.json b/drupal/content/paragraph.2bda3601-f2e4-48e6-9fea-a154b428849e.json new file mode 100644 index 0000000..9446d41 --- /dev/null +++ b/drupal/content/paragraph.2bda3601-f2e4-48e6-9fea-a154b428849e.json @@ -0,0 +1,52 @@ +{ + "uuid": [ + { + "value": "2bda3601-f2e4-48e6-9fea-a154b428849e" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "text_formatted", + "target_type": "paragraphs_type", + "target_uuid": "71da2b1b-bfa1-4dae-8638-7f791512512d" + } + ], + "status": [ + { + "value": true + } + ], + "created": [ + { + "value": "2022-06-09T02:29:11+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "behavior_settings": [ + { + "value": { + "layout_paragraphs": { + "parent_uuid": "e81964d3-ff64-4bcf-b515-1443099e393e", + "region": "content" + } + } + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [], + "field_text_formatted": [ + { + "value": "

The aim of this post, this experiment, is to identify all the steps involved to build frontend rendered forms with fields managed by the Drupal backend.<\/p>\r\n\r\n

In the case of this experiment, data will also be submitted to and validated by the Drupal backend.<\/p>\r\n\r\n

And of course, this experiment will be built using a Druxt Quickstart repository.<\/p>\r\n", + "format": "formatted" + } + ] +} \ No newline at end of file diff --git a/drupal/content/paragraph.4aa56f70-774a-47ec-bd07-d98390e5d172.json b/drupal/content/paragraph.4aa56f70-774a-47ec-bd07-d98390e5d172.json new file mode 100644 index 0000000..7dd89c2 --- /dev/null +++ b/drupal/content/paragraph.4aa56f70-774a-47ec-bd07-d98390e5d172.json @@ -0,0 +1,55 @@ +{ + "uuid": [ + { + "value": "4aa56f70-774a-47ec-bd07-d98390e5d172" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "section", + "target_type": "paragraphs_type", + "target_uuid": "36879357-96f7-4b56-8bf3-f91b01e4638d" + } + ], + "status": [ + { + "value": true + } + ], + "created": [ + { + "value": "2022-06-09T02:32:02+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "behavior_settings": [ + { + "value": { + "layout_paragraphs": { + "layout": "layout_onecol", + "config": { + "label": "" + }, + "parent_uuid": null, + "region": null + } + } + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [], + "field_title": [ + { + "value": "DruxtEntityForm" + } + ] +} \ No newline at end of file diff --git a/drupal/content/paragraph.e81964d3-ff64-4bcf-b515-1443099e393e.json b/drupal/content/paragraph.e81964d3-ff64-4bcf-b515-1443099e393e.json new file mode 100644 index 0000000..e09d404 --- /dev/null +++ b/drupal/content/paragraph.e81964d3-ff64-4bcf-b515-1443099e393e.json @@ -0,0 +1,59 @@ +{ + "uuid": [ + { + "value": "e81964d3-ff64-4bcf-b515-1443099e393e" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "section", + "target_type": "paragraphs_type", + "target_uuid": "36879357-96f7-4b56-8bf3-f91b01e4638d" + } + ], + "status": [ + { + "value": true + } + ], + "created": [ + { + "value": "2022-06-09T02:22:42+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "behavior_settings": [ + { + "value": { + "layout_paragraphs": { + "layout": "layout_onecol", + "config": { + "label": "" + }, + "parent_uuid": null, + "region": null + } + } + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ], + "field_title": [ + { + "value": "Let the experiment commence" + } + ] +} \ No newline at end of file diff --git a/drupal/content/paragraph.f2114748-8c52-477d-934c-1ce06787223d.json b/drupal/content/paragraph.f2114748-8c52-477d-934c-1ce06787223d.json new file mode 100644 index 0000000..e22f35b --- /dev/null +++ b/drupal/content/paragraph.f2114748-8c52-477d-934c-1ce06787223d.json @@ -0,0 +1,56 @@ +{ + "uuid": [ + { + "value": "f2114748-8c52-477d-934c-1ce06787223d" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "text_formatted", + "target_type": "paragraphs_type", + "target_uuid": "71da2b1b-bfa1-4dae-8638-7f791512512d" + } + ], + "status": [ + { + "value": true + } + ], + "created": [ + { + "value": "2022-06-09T02:42:00+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "behavior_settings": [ + { + "value": { + "layout_paragraphs": { + "parent_uuid": "4aa56f70-774a-47ec-bd07-d98390e5d172", + "region": "content" + } + } + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ], + "field_text_formatted": [ + { + "value": "

Before Druxt was given a name, its predecessor was a Drupal JSON:API library built for a decoupled forms project; it read data provided by the Drupal JSON:API that described the fields, and it recreated the form and fields in the frontend.<\/p>\r\n\r\n

That later inspired the DruxtSchema<\/strong> and DruxtEntity<\/strong> modules, which originally focused on the View schema, later added form support and a DruxtEntityForm<\/strong> component.<\/p>\r\n", + "format": "formatted" + } + ] +} \ No newline at end of file diff --git a/drupal/content/path_alias.4604e39c-47fc-4fe1-b252-e0588f51c6b7.json b/drupal/content/path_alias.4604e39c-47fc-4fe1-b252-e0588f51c6b7.json new file mode 100644 index 0000000..0895f87 --- /dev/null +++ b/drupal/content/path_alias.4604e39c-47fc-4fe1-b252-e0588f51c6b7.json @@ -0,0 +1,27 @@ +{ + "uuid": [ + { + "value": "4604e39c-47fc-4fe1-b252-e0588f51c6b7" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "path": [ + { + "value": "\/node\/b3882633-0964-4830-a40e-a4dbc224386d" + } + ], + "alias": [ + { + "value": "\/articles\/fun-forms-and-files-20220609" + } + ], + "status": [ + { + "value": true + } + ] +} \ No newline at end of file From c2ab3fb3ad8685224ba8307cebf3689cf6b73f05 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Tue, 14 Jun 2022 01:58:57 +0000 Subject: [PATCH 2/7] feat(#78): add github_template option to repos --- ...m_display.paragraph.repository.default.yml | 18 +++++++++++---- ...w_display.paragraph.repository.default.yml | 23 ++++++++++++++----- ...graph.repository.field_github_template.yml | 23 +++++++++++++++++++ ...torage.paragraph.field_github_template.yml | 18 +++++++++++++++ 4 files changed, 71 insertions(+), 11 deletions(-) create mode 100644 drupal/config/sync/field.field.paragraph.repository.field_github_template.yml create mode 100644 drupal/config/sync/field.storage.paragraph.field_github_template.yml diff --git a/drupal/config/sync/core.entity_form_display.paragraph.repository.default.yml b/drupal/config/sync/core.entity_form_display.paragraph.repository.default.yml index 9c929fe..36de5fb 100644 --- a/drupal/config/sync/core.entity_form_display.paragraph.repository.default.yml +++ b/drupal/config/sync/core.entity_form_display.paragraph.repository.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.paragraph.repository.field_description + - field.field.paragraph.repository.field_github_template - field.field.paragraph.repository.field_gitpod - field.field.paragraph.repository.field_url - paragraphs.paragraphs_type.repository @@ -16,28 +17,35 @@ bundle: repository mode: default content: field_description: + type: text_textarea weight: 0 + region: content settings: rows: 5 placeholder: '' third_party_settings: { } - type: text_textarea + field_github_template: + type: boolean_checkbox + weight: 3 region: content - field_gitpod: - weight: 2 settings: display_label: true third_party_settings: { } + field_gitpod: type: boolean_checkbox + weight: 2 region: content + settings: + display_label: true + third_party_settings: { } field_url: + type: link_default weight: 1 + region: content settings: placeholder_url: '' placeholder_title: '' third_party_settings: { } - type: link_default - region: content hidden: created: true status: true diff --git a/drupal/config/sync/core.entity_view_display.paragraph.repository.default.yml b/drupal/config/sync/core.entity_view_display.paragraph.repository.default.yml index 694b832..75fc13c 100644 --- a/drupal/config/sync/core.entity_view_display.paragraph.repository.default.yml +++ b/drupal/config/sync/core.entity_view_display.paragraph.repository.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.paragraph.repository.field_description + - field.field.paragraph.repository.field_github_template - field.field.paragraph.repository.field_gitpod - field.field.paragraph.repository.field_url - paragraphs.paragraphs_type.repository @@ -16,24 +17,34 @@ bundle: repository mode: default content: field_description: - weight: 0 + type: text_default label: hidden settings: { } third_party_settings: { } - type: text_default + weight: 0 + region: content + field_github_template: + type: boolean + label: above + settings: + format: default + format_custom_false: '' + format_custom_true: '' + third_party_settings: { } + weight: 3 region: content field_gitpod: - weight: 2 + type: boolean label: hidden settings: format: default format_custom_false: '' format_custom_true: '' third_party_settings: { } - type: boolean + weight: 2 region: content field_url: - weight: 1 + type: link label: hidden settings: trim_length: 80 @@ -42,6 +53,6 @@ content: rel: '' target: '' third_party_settings: { } - type: link + weight: 1 region: content hidden: { } diff --git a/drupal/config/sync/field.field.paragraph.repository.field_github_template.yml b/drupal/config/sync/field.field.paragraph.repository.field_github_template.yml new file mode 100644 index 0000000..a3613f7 --- /dev/null +++ b/drupal/config/sync/field.field.paragraph.repository.field_github_template.yml @@ -0,0 +1,23 @@ +uuid: 129d1681-7d4f-42ec-b7da-37ddfdfb838b +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_github_template + - paragraphs.paragraphs_type.repository +id: paragraph.repository.field_github_template +field_name: field_github_template +entity_type: paragraph +bundle: repository +label: 'Github template' +description: '' +required: false +translatable: false +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/drupal/config/sync/field.storage.paragraph.field_github_template.yml b/drupal/config/sync/field.storage.paragraph.field_github_template.yml new file mode 100644 index 0000000..88d8250 --- /dev/null +++ b/drupal/config/sync/field.storage.paragraph.field_github_template.yml @@ -0,0 +1,18 @@ +uuid: fbf92ca9-a66f-43bc-ad9b-f0594fc15797 +langcode: en +status: true +dependencies: + module: + - paragraphs +id: paragraph.field_github_template +field_name: field_github_template +entity_type: paragraph +type: boolean +settings: { } +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false From b4a3f63582ba783ba1d599ab4ee53e05dccbcdda Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Tue, 14 Jun 2022 03:27:48 +0000 Subject: [PATCH 3/7] chore(#78): update two col layout --- nuxt/components/druxt/layout-paragraph/Twocol.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nuxt/components/druxt/layout-paragraph/Twocol.vue b/nuxt/components/druxt/layout-paragraph/Twocol.vue index 6696407..7524818 100644 --- a/nuxt/components/druxt/layout-paragraph/Twocol.vue +++ b/nuxt/components/druxt/layout-paragraph/Twocol.vue @@ -5,9 +5,9 @@ -

- - +
+ +
From 9364402dc3f3d1073293bb15a5d385472ecde3ac Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Tue, 14 Jun 2022 03:29:06 +0000 Subject: [PATCH 4/7] fix(#78): fix ipx in develop mode --- nuxt/components/druxt/field/Image.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nuxt/components/druxt/field/Image.vue b/nuxt/components/druxt/field/Image.vue index bd8326e..d7ce1eb 100644 --- a/nuxt/components/druxt/field/Image.vue +++ b/nuxt/components/druxt/field/Image.vue @@ -1,7 +1,12 @@ @@ -11,7 +16,7 @@ import { DruxtFieldMixin } from 'druxt-entity' export default { mixins: [DruxtFieldMixin], methods: { - src(entity) { + ipxFix(entity) { return [this.$druxt.settings.baseUrl, entity.attributes.uri.url].join('/') }, }, From 76b878b5c4016e40f6df3abdb52e74ed3a4a5c9c Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Tue, 14 Jun 2022 03:29:27 +0000 Subject: [PATCH 5/7] feat(#78): update repo component --- .../entity/paragraph/repository/Default.vue | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/nuxt/components/druxt/entity/paragraph/repository/Default.vue b/nuxt/components/druxt/entity/paragraph/repository/Default.vue index 1d60126..5cf7704 100644 --- a/nuxt/components/druxt/entity/paragraph/repository/Default.vue +++ b/nuxt/components/druxt/entity/paragraph/repository/Default.vue @@ -10,7 +10,7 @@ - See the code + @@ -37,6 +37,13 @@ export default { */ github: ({ url }) => url.includes('github.com'), + /** + * Is the repository a Github template? + * + * @type {boolean} + */ + githubTemplate: ({ entity }) => entity.attributes.field_github_template, + /** * Is the repository Gitpod enabled? * @@ -45,6 +52,22 @@ export default { gitpod: ({ entity, url }) => entity.attributes.field_gitpod ? `https://gitpod.io#${url}` : false, + /** + * The primary link text. + * + * @type {string} + */ + linkText: ({ githubTemplate }) => + githubTemplate ? 'Use the template' : 'See the code', + + /** + * The primary link URL. + * + * @type {string} + */ + linkUrl: ({ githubTemplate, url }) => + githubTemplate ? [url, 'generate'].join('/') : url, + /** * The repository URL. * From 97c127fb4e11352ce8f8136bf9c82d9bd3c960da Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Tue, 14 Jun 2022 03:41:37 +0000 Subject: [PATCH 6/7] chore(#78): update content --- ....049bbdb7-cabd-490b-b704-e46df46d99ef.json | 69 ++++++++++ ....6ab8ad41-8389-4ec2-b6b4-28dc09cda211.json | 69 ++++++++++ ....032627e2-142d-440e-b225-0c186dba6333.json | 55 ++++++++ ....e85419df-2857-46d6-bd0b-96e31ce490f9.json | 55 ++++++++ ....119f3531-c561-4c88-929f-ab0f494fb797.json | 81 ++++++++++++ ....2af22ffb-e3a5-460a-aec6-1d45131fb2db.json | 81 ++++++++++++ ....909242ef-260c-4372-8aa3-272c90e7f31b.json | 81 ++++++++++++ ....df100493-e6d8-4606-8cdf-94af99983cf9.json | 81 ++++++++++++ ....8805daa5-0dd4-4a7d-936d-ddbbcb224798.json | 120 ++++++++++++++++++ ....95497c54-95d0-4d37-83dc-2f0b450f999e.json | 120 ++++++++++++++++++ drupal/content/meta/index.json | 80 +++++++++++- ....b3882633-0964-4830-a40e-a4dbc224386d.json | 96 ++++++++++++-- ....10674599-c4d2-42de-8397-e7e8408fd636.json | 52 ++++++++ ....212ccd91-52a5-469d-b219-de98fe21be0f.json | 66 ++++++++++ ....2bda3601-f2e4-48e6-9fea-a154b428849e.json | 4 +- ....382ea70e-0868-4c25-913c-a1158696dc6b.json | 69 ++++++++++ ....3de00125-8596-4705-b05e-022af0c49d84.json | 52 ++++++++ ....47452ed6-3fdf-47fe-a237-2d35f11a45aa.json | 66 ++++++++++ ....4aa56f70-774a-47ec-bd07-d98390e5d172.json | 8 +- ....4c78437c-4900-427b-b95e-be0f9b30587b.json | 56 ++++++++ ....59341085-d9a2-4143-9100-aea472e0d7f9.json | 52 ++++++++ ....62d9acae-32c7-404f-88d3-d696ed84fa6d.json | 56 ++++++++ ....78becdb6-272e-4063-945a-c89890fcccca.json | 56 ++++++++ ....7b034bf3-e2db-40d4-89a4-e1227c3f45b7.json | 62 +++++++++ ....85a12e67-7dc1-44e3-93bb-a0cf95ea7c7a.json | 62 +++++++++ ....86ad0fc2-0226-434e-b5a4-0bf21b0adbe3.json | 56 ++++++++ ....8a999ebe-0e60-4b16-afe3-ff2c398f0dbc.json | 58 +++++++++ ....928e4b57-cbab-4356-a024-3506543a0c33.json | 55 ++++++++ ....9d9523c2-a874-4bcb-96d5-33e6bab7ec13.json | 62 +++++++++ ....ae187af8-945f-43fa-ae8f-675e55c2cc27.json | 52 ++++++++ ....aff0b2a6-8b45-41b8-b855-fee5416d0c96.json | 52 ++++++++ ....c1a9d3d8-46ed-4354-b6f8-36f9a79ca3b9.json | 52 ++++++++ ....e81964d3-ff64-4bcf-b515-1443099e393e.json | 11 +- ....f1cb8424-d84d-41a8-b1f2-4afcb341477f.json | 62 +++++++++ ....f2114748-8c52-477d-934c-1ce06787223d.json | 2 +- ....f7169a92-30df-408f-bff0-f9193bff41c7.json | 66 ++++++++++ .../image/druxtentityform-microcontent.png | Bin 0 -> 162276 bytes .../files/public/image/microcontent_perms.png | Bin 0 -> 158287 bytes 38 files changed, 2156 insertions(+), 21 deletions(-) create mode 100644 drupal/content/crop.049bbdb7-cabd-490b-b704-e46df46d99ef.json create mode 100644 drupal/content/crop.6ab8ad41-8389-4ec2-b6b4-28dc09cda211.json create mode 100644 drupal/content/file.032627e2-142d-440e-b225-0c186dba6333.json create mode 100644 drupal/content/file.e85419df-2857-46d6-bd0b-96e31ce490f9.json create mode 100644 drupal/content/linky.119f3531-c561-4c88-929f-ab0f494fb797.json create mode 100644 drupal/content/linky.2af22ffb-e3a5-460a-aec6-1d45131fb2db.json create mode 100644 drupal/content/linky.909242ef-260c-4372-8aa3-272c90e7f31b.json create mode 100644 drupal/content/linky.df100493-e6d8-4606-8cdf-94af99983cf9.json create mode 100644 drupal/content/media.8805daa5-0dd4-4a7d-936d-ddbbcb224798.json create mode 100644 drupal/content/media.95497c54-95d0-4d37-83dc-2f0b450f999e.json create mode 100644 drupal/content/paragraph.10674599-c4d2-42de-8397-e7e8408fd636.json create mode 100644 drupal/content/paragraph.212ccd91-52a5-469d-b219-de98fe21be0f.json create mode 100644 drupal/content/paragraph.382ea70e-0868-4c25-913c-a1158696dc6b.json create mode 100644 drupal/content/paragraph.3de00125-8596-4705-b05e-022af0c49d84.json create mode 100644 drupal/content/paragraph.47452ed6-3fdf-47fe-a237-2d35f11a45aa.json create mode 100644 drupal/content/paragraph.4c78437c-4900-427b-b95e-be0f9b30587b.json create mode 100644 drupal/content/paragraph.59341085-d9a2-4143-9100-aea472e0d7f9.json create mode 100644 drupal/content/paragraph.62d9acae-32c7-404f-88d3-d696ed84fa6d.json create mode 100644 drupal/content/paragraph.78becdb6-272e-4063-945a-c89890fcccca.json create mode 100644 drupal/content/paragraph.7b034bf3-e2db-40d4-89a4-e1227c3f45b7.json create mode 100644 drupal/content/paragraph.85a12e67-7dc1-44e3-93bb-a0cf95ea7c7a.json create mode 100644 drupal/content/paragraph.86ad0fc2-0226-434e-b5a4-0bf21b0adbe3.json create mode 100644 drupal/content/paragraph.8a999ebe-0e60-4b16-afe3-ff2c398f0dbc.json create mode 100644 drupal/content/paragraph.928e4b57-cbab-4356-a024-3506543a0c33.json create mode 100644 drupal/content/paragraph.9d9523c2-a874-4bcb-96d5-33e6bab7ec13.json create mode 100644 drupal/content/paragraph.ae187af8-945f-43fa-ae8f-675e55c2cc27.json create mode 100644 drupal/content/paragraph.aff0b2a6-8b45-41b8-b855-fee5416d0c96.json create mode 100644 drupal/content/paragraph.c1a9d3d8-46ed-4354-b6f8-36f9a79ca3b9.json create mode 100644 drupal/content/paragraph.f1cb8424-d84d-41a8-b1f2-4afcb341477f.json create mode 100644 drupal/content/paragraph.f7169a92-30df-408f-bff0-f9193bff41c7.json create mode 100644 drupal/files/public/image/druxtentityform-microcontent.png create mode 100644 drupal/files/public/image/microcontent_perms.png diff --git a/drupal/content/crop.049bbdb7-cabd-490b-b704-e46df46d99ef.json b/drupal/content/crop.049bbdb7-cabd-490b-b704-e46df46d99ef.json new file mode 100644 index 0000000..f1c5518 --- /dev/null +++ b/drupal/content/crop.049bbdb7-cabd-490b-b704-e46df46d99ef.json @@ -0,0 +1,69 @@ +{ + "uuid": [ + { + "value": "049bbdb7-cabd-490b-b704-e46df46d99ef" + } + ], + "type": [ + { + "target_id": "focal_point", + "target_type": "crop_type", + "target_uuid": "abc3bdea-299e-49b6-9b0c-502772989ea0" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "entity_id": [ + { + "value": 5 + } + ], + "entity_type": [ + { + "value": "file" + } + ], + "uri": [ + { + "value": "public:\/\/image\/druxtentityform-microcontent.png" + } + ], + "height": [], + "width": [], + "x": [ + { + "value": 800 + } + ], + "y": [ + { + "value": 579 + } + ], + "revision_timestamp": [ + { + "value": "2022-06-14T03:35:51+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "revision_uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_log": [], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ] +} \ No newline at end of file diff --git a/drupal/content/crop.6ab8ad41-8389-4ec2-b6b4-28dc09cda211.json b/drupal/content/crop.6ab8ad41-8389-4ec2-b6b4-28dc09cda211.json new file mode 100644 index 0000000..78d8bf7 --- /dev/null +++ b/drupal/content/crop.6ab8ad41-8389-4ec2-b6b4-28dc09cda211.json @@ -0,0 +1,69 @@ +{ + "uuid": [ + { + "value": "6ab8ad41-8389-4ec2-b6b4-28dc09cda211" + } + ], + "type": [ + { + "target_id": "focal_point", + "target_type": "crop_type", + "target_uuid": "abc3bdea-299e-49b6-9b0c-502772989ea0" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "entity_id": [ + { + "value": 4 + } + ], + "entity_type": [ + { + "value": "file" + } + ], + "uri": [ + { + "value": "public:\/\/image\/microcontent_perms.png" + } + ], + "height": [], + "width": [], + "x": [ + { + "value": 800 + } + ], + "y": [ + { + "value": 579 + } + ], + "revision_timestamp": [ + { + "value": "2022-06-14T02:21:42+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "revision_uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_log": [], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ] +} \ No newline at end of file diff --git a/drupal/content/file.032627e2-142d-440e-b225-0c186dba6333.json b/drupal/content/file.032627e2-142d-440e-b225-0c186dba6333.json new file mode 100644 index 0000000..5811009 --- /dev/null +++ b/drupal/content/file.032627e2-142d-440e-b225-0c186dba6333.json @@ -0,0 +1,55 @@ +{ + "uuid": [ + { + "value": "032627e2-142d-440e-b225-0c186dba6333" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "filename": [ + { + "value": "microcontent_perms.png" + } + ], + "uri": [ + { + "value": "public:\/\/image\/microcontent_perms.png" + } + ], + "filemime": [ + { + "value": "image\/png" + } + ], + "filesize": [ + { + "value": 158287 + } + ], + "status": [ + { + "value": true + } + ], + "created": [ + { + "value": "2022-06-14T02:21:18+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "changed": [ + { + "value": "2022-06-14T02:21:42+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ] +} \ No newline at end of file diff --git a/drupal/content/file.e85419df-2857-46d6-bd0b-96e31ce490f9.json b/drupal/content/file.e85419df-2857-46d6-bd0b-96e31ce490f9.json new file mode 100644 index 0000000..4479341 --- /dev/null +++ b/drupal/content/file.e85419df-2857-46d6-bd0b-96e31ce490f9.json @@ -0,0 +1,55 @@ +{ + "uuid": [ + { + "value": "e85419df-2857-46d6-bd0b-96e31ce490f9" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "filename": [ + { + "value": "druxtentityform-microcontent.png" + } + ], + "uri": [ + { + "value": "public:\/\/image\/druxtentityform-microcontent.png" + } + ], + "filemime": [ + { + "value": "image\/png" + } + ], + "filesize": [ + { + "value": 162276 + } + ], + "status": [ + { + "value": true + } + ], + "created": [ + { + "value": "2022-06-14T03:35:35+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "changed": [ + { + "value": "2022-06-14T03:35:51+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ] +} \ No newline at end of file diff --git a/drupal/content/linky.119f3531-c561-4c88-929f-ab0f494fb797.json b/drupal/content/linky.119f3531-c561-4c88-929f-ab0f494fb797.json new file mode 100644 index 0000000..5c882c8 --- /dev/null +++ b/drupal/content/linky.119f3531-c561-4c88-929f-ab0f494fb797.json @@ -0,0 +1,81 @@ +{ + "uuid": [ + { + "value": "119f3531-c561-4c88-929f-ab0f494fb797" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "user_id": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_created": [ + { + "value": "2022-06-14T00:50:14+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "revision_uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_log": [ + { + "value": "Created new Managed Link" + } + ], + "link": [ + { + "uri": "https:\/\/github.com\/druxt\/quickstart-druxt-site-tome", + "title": "quickstart-druxt-site-tome", + "options": [] + } + ], + "created": [ + { + "value": "2022-06-14T00:50:14+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "changed": [ + { + "value": "2022-06-14T00:50:14+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "checked": [ + { + "value": "1970-01-01T00:00:00+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "internal": [], + "http_method": [], + "http_status": [], + "message": [], + "destination": [], + "excluded": [ + { + "value": false + } + ], + "reason": [], + "error": [ + { + "value": false + } + ], + "error_count": [ + { + "value": 0 + } + ] +} \ No newline at end of file diff --git a/drupal/content/linky.2af22ffb-e3a5-460a-aec6-1d45131fb2db.json b/drupal/content/linky.2af22ffb-e3a5-460a-aec6-1d45131fb2db.json new file mode 100644 index 0000000..990b7b0 --- /dev/null +++ b/drupal/content/linky.2af22ffb-e3a5-460a-aec6-1d45131fb2db.json @@ -0,0 +1,81 @@ +{ + "uuid": [ + { + "value": "2af22ffb-e3a5-460a-aec6-1d45131fb2db" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "user_id": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_created": [ + { + "value": "2022-06-14T03:38:56+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "revision_uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_log": [ + { + "value": "Created new Managed Link" + } + ], + "link": [ + { + "uri": "https:\/\/druxtjs.org\/api\/packages\/entity\/components\/DruxtEntityForm", + "title": "API documentation", + "options": [] + } + ], + "created": [ + { + "value": "2022-06-14T03:38:56+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "changed": [ + { + "value": "2022-06-14T03:38:56+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "checked": [ + { + "value": "1970-01-01T00:00:00+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "internal": [], + "http_method": [], + "http_status": [], + "message": [], + "destination": [], + "excluded": [ + { + "value": false + } + ], + "reason": [], + "error": [ + { + "value": false + } + ], + "error_count": [ + { + "value": 0 + } + ] +} \ No newline at end of file diff --git a/drupal/content/linky.909242ef-260c-4372-8aa3-272c90e7f31b.json b/drupal/content/linky.909242ef-260c-4372-8aa3-272c90e7f31b.json new file mode 100644 index 0000000..a4ddfd9 --- /dev/null +++ b/drupal/content/linky.909242ef-260c-4372-8aa3-272c90e7f31b.json @@ -0,0 +1,81 @@ +{ + "uuid": [ + { + "value": "909242ef-260c-4372-8aa3-272c90e7f31b" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "user_id": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_created": [ + { + "value": "2022-06-14T00:50:14+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "revision_uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_log": [ + { + "value": "Created new Managed Link" + } + ], + "link": [ + { + "uri": "https:\/\/druxtjs.org\/modules\/entity\/", + "title": "DruxtEntity module", + "options": [] + } + ], + "created": [ + { + "value": "2022-06-14T00:50:14+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "changed": [ + { + "value": "2022-06-14T00:50:14+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "checked": [ + { + "value": "1970-01-01T00:00:00+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "internal": [], + "http_method": [], + "http_status": [], + "message": [], + "destination": [], + "excluded": [ + { + "value": false + } + ], + "reason": [], + "error": [ + { + "value": false + } + ], + "error_count": [ + { + "value": 0 + } + ] +} \ No newline at end of file diff --git a/drupal/content/linky.df100493-e6d8-4606-8cdf-94af99983cf9.json b/drupal/content/linky.df100493-e6d8-4606-8cdf-94af99983cf9.json new file mode 100644 index 0000000..fbd4757 --- /dev/null +++ b/drupal/content/linky.df100493-e6d8-4606-8cdf-94af99983cf9.json @@ -0,0 +1,81 @@ +{ + "uuid": [ + { + "value": "df100493-e6d8-4606-8cdf-94af99983cf9" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "user_id": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_created": [ + { + "value": "2022-06-14T00:50:14+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "revision_uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_log": [ + { + "value": "Created new Managed Link" + } + ], + "link": [ + { + "uri": "https:\/\/www.drupal.org\/project\/microcontent", + "title": "Micro-content module", + "options": [] + } + ], + "created": [ + { + "value": "2022-06-14T00:50:14+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "changed": [ + { + "value": "2022-06-14T00:50:14+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "checked": [ + { + "value": "1970-01-01T00:00:00+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "internal": [], + "http_method": [], + "http_status": [], + "message": [], + "destination": [], + "excluded": [ + { + "value": false + } + ], + "reason": [], + "error": [ + { + "value": false + } + ], + "error_count": [ + { + "value": 0 + } + ] +} \ No newline at end of file diff --git a/drupal/content/media.8805daa5-0dd4-4a7d-936d-ddbbcb224798.json b/drupal/content/media.8805daa5-0dd4-4a7d-936d-ddbbcb224798.json new file mode 100644 index 0000000..1481508 --- /dev/null +++ b/drupal/content/media.8805daa5-0dd4-4a7d-936d-ddbbcb224798.json @@ -0,0 +1,120 @@ +{ + "uuid": [ + { + "value": "8805daa5-0dd4-4a7d-936d-ddbbcb224798" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "bundle": [ + { + "target_id": "image", + "target_type": "media_type", + "target_uuid": "f19fe97d-01de-4806-a85a-07f5e7c49839" + } + ], + "revision_created": [ + { + "value": "2022-06-14T02:21:18+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "revision_user": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_log_message": [ + { + "value": "Created new Image" + } + ], + "status": [ + { + "value": true + } + ], + "uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "name": [ + { + "value": "Micro-content permissions" + } + ], + "thumbnail": [ + { + "alt": "Micro-content permissions", + "title": null, + "width": 1600, + "height": 1158, + "target_type": "file", + "target_uuid": "032627e2-142d-440e-b225-0c186dba6333" + } + ], + "created": [ + { + "value": "2022-06-14T02:21:18+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "changed": [ + { + "value": "2022-06-14T02:21:18+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ], + "path": [ + { + "alias": null, + "pid": null, + "langcode": "en", + "pathauto": 0 + } + ], + "field_media_caption": [ + { + "value": "

Micro-content permissions<\/p>\r\n", + "format": "formatted" + } + ], + "field_media_content_owner": [ + { + "value": "Stuart Clark" + } + ], + "field_media_copyright": [], + "field_media_description": [ + { + "value": "Micro-content permissions" + } + ], + "field_media_image": [ + { + "alt": "Micro-content permissions", + "title": "", + "width": 1600, + "height": 1158, + "target_type": "file", + "target_uuid": "032627e2-142d-440e-b225-0c186dba6333" + } + ], + "field_media_usage_terms": [] +} \ No newline at end of file diff --git a/drupal/content/media.95497c54-95d0-4d37-83dc-2f0b450f999e.json b/drupal/content/media.95497c54-95d0-4d37-83dc-2f0b450f999e.json new file mode 100644 index 0000000..481d305 --- /dev/null +++ b/drupal/content/media.95497c54-95d0-4d37-83dc-2f0b450f999e.json @@ -0,0 +1,120 @@ +{ + "uuid": [ + { + "value": "95497c54-95d0-4d37-83dc-2f0b450f999e" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "bundle": [ + { + "target_id": "image", + "target_type": "media_type", + "target_uuid": "f19fe97d-01de-4806-a85a-07f5e7c49839" + } + ], + "revision_created": [ + { + "value": "2022-06-14T03:35:35+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "revision_user": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "revision_log_message": [ + { + "value": "Created new Image" + } + ], + "status": [ + { + "value": true + } + ], + "uid": [ + { + "target_type": "user", + "target_uuid": "fb85df17-bbd5-4b75-890e-e010d6410ac0" + } + ], + "name": [ + { + "value": "DruxtEntityForm - Micro-content example" + } + ], + "thumbnail": [ + { + "alt": "DruxtEntityForm - Micro-content example", + "title": null, + "width": 1600, + "height": 1158, + "target_type": "file", + "target_uuid": "e85419df-2857-46d6-bd0b-96e31ce490f9" + } + ], + "created": [ + { + "value": "2022-06-14T03:35:35+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "changed": [ + { + "value": "2022-06-14T03:35:35+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ], + "path": [ + { + "alias": null, + "pid": null, + "langcode": "en", + "pathauto": 0 + } + ], + "field_media_caption": [ + { + "value": "

DruxtEntityForm - Micro-content example<\/p>\r\n", + "format": "formatted" + } + ], + "field_media_content_owner": [ + { + "value": "Stuart Clark" + } + ], + "field_media_copyright": [], + "field_media_description": [ + { + "value": "DruxtEntityForm - Micro-content example" + } + ], + "field_media_image": [ + { + "alt": "DruxtEntityForm - Micro-content example", + "title": "", + "width": 1600, + "height": 1158, + "target_type": "file", + "target_uuid": "e85419df-2857-46d6-bd0b-96e31ce490f9" + } + ], + "field_media_usage_terms": [] +} \ No newline at end of file diff --git a/drupal/content/meta/index.json b/drupal/content/meta/index.json index be83e94..c57e8da 100644 --- a/drupal/content/meta/index.json +++ b/drupal/content/meta/index.json @@ -250,10 +250,30 @@ "taxonomy_term.95c7fc60-bf15-4867-a0cf-bce941748e6e", "paragraph.e81964d3-ff64-4bcf-b515-1443099e393e", "paragraph.2bda3601-f2e4-48e6-9fea-a154b428849e", + "paragraph.3de00125-8596-4705-b05e-022af0c49d84", + "paragraph.928e4b57-cbab-4356-a024-3506543a0c33", + "paragraph.59341085-d9a2-4143-9100-aea472e0d7f9", + "paragraph.382ea70e-0868-4c25-913c-a1158696dc6b", "paragraph.4aa56f70-774a-47ec-bd07-d98390e5d172", "paragraph.f2114748-8c52-477d-934c-1ce06787223d", "paragraph.1a89ee24-2d8c-4d5c-a874-98c3c2494761", - "paragraph.0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0" + "paragraph.0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0", + "paragraph.9d9523c2-a874-4bcb-96d5-33e6bab7ec13", + "paragraph.aff0b2a6-8b45-41b8-b855-fee5416d0c96", + "paragraph.8a999ebe-0e60-4b16-afe3-ff2c398f0dbc", + "paragraph.c1a9d3d8-46ed-4354-b6f8-36f9a79ca3b9", + "paragraph.ae187af8-945f-43fa-ae8f-675e55c2cc27", + "paragraph.10674599-c4d2-42de-8397-e7e8408fd636", + "paragraph.85a12e67-7dc1-44e3-93bb-a0cf95ea7c7a", + "paragraph.86ad0fc2-0226-434e-b5a4-0bf21b0adbe3", + "paragraph.f7169a92-30df-408f-bff0-f9193bff41c7", + "paragraph.47452ed6-3fdf-47fe-a237-2d35f11a45aa", + "paragraph.f1cb8424-d84d-41a8-b1f2-4afcb341477f", + "paragraph.4c78437c-4900-427b-b95e-be0f9b30587b", + "paragraph.7b034bf3-e2db-40d4-89a4-e1227c3f45b7", + "paragraph.78becdb6-272e-4063-945a-c89890fcccca", + "paragraph.62d9acae-32c7-404f-88d3-d696ed84fa6d", + "paragraph.212ccd91-52a5-469d-b219-de98fe21be0f" ], "path_alias.4604e39c-47fc-4fe1-b252-e0588f51c6b7": [ "node.b3882633-0964-4830-a40e-a4dbc224386d" @@ -261,5 +281,61 @@ "paragraph.4aa56f70-774a-47ec-bd07-d98390e5d172": [], "paragraph.f2114748-8c52-477d-934c-1ce06787223d": [], "paragraph.1a89ee24-2d8c-4d5c-a874-98c3c2494761": [], - "paragraph.0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0": [] + "paragraph.0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0": [], + "linky.119f3531-c561-4c88-929f-ab0f494fb797": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0" + ], + "linky.df100493-e6d8-4606-8cdf-94af99983cf9": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0" + ], + "linky.909242ef-260c-4372-8aa3-272c90e7f31b": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0" + ], + "paragraph.3de00125-8596-4705-b05e-022af0c49d84": [], + "paragraph.928e4b57-cbab-4356-a024-3506543a0c33": [], + "paragraph.59341085-d9a2-4143-9100-aea472e0d7f9": [], + "paragraph.9d9523c2-a874-4bcb-96d5-33e6bab7ec13": [], + "paragraph.382ea70e-0868-4c25-913c-a1158696dc6b": [], + "paragraph.aff0b2a6-8b45-41b8-b855-fee5416d0c96": [], + "paragraph.8a999ebe-0e60-4b16-afe3-ff2c398f0dbc": [], + "file.032627e2-142d-440e-b225-0c186dba6333": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0" + ], + "crop.6ab8ad41-8389-4ec2-b6b4-28dc09cda211": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0" + ], + "media.8805daa5-0dd4-4a7d-936d-ddbbcb224798": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0", + "file.032627e2-142d-440e-b225-0c186dba6333" + ], + "paragraph.c1a9d3d8-46ed-4354-b6f8-36f9a79ca3b9": [], + "paragraph.ae187af8-945f-43fa-ae8f-675e55c2cc27": [ + "media.8805daa5-0dd4-4a7d-936d-ddbbcb224798" + ], + "paragraph.10674599-c4d2-42de-8397-e7e8408fd636": [], + "paragraph.85a12e67-7dc1-44e3-93bb-a0cf95ea7c7a": [], + "paragraph.86ad0fc2-0226-434e-b5a4-0bf21b0adbe3": [], + "paragraph.f7169a92-30df-408f-bff0-f9193bff41c7": [], + "file.e85419df-2857-46d6-bd0b-96e31ce490f9": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0" + ], + "crop.049bbdb7-cabd-490b-b704-e46df46d99ef": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0" + ], + "media.95497c54-95d0-4d37-83dc-2f0b450f999e": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0", + "file.e85419df-2857-46d6-bd0b-96e31ce490f9" + ], + "paragraph.47452ed6-3fdf-47fe-a237-2d35f11a45aa": [], + "paragraph.f1cb8424-d84d-41a8-b1f2-4afcb341477f": [], + "linky.2af22ffb-e3a5-460a-aec6-1d45131fb2db": [ + "user.fb85df17-bbd5-4b75-890e-e010d6410ac0" + ], + "paragraph.4c78437c-4900-427b-b95e-be0f9b30587b": [], + "paragraph.7b034bf3-e2db-40d4-89a4-e1227c3f45b7": [], + "paragraph.78becdb6-272e-4063-945a-c89890fcccca": [], + "paragraph.62d9acae-32c7-404f-88d3-d696ed84fa6d": [ + "media.95497c54-95d0-4d37-83dc-2f0b450f999e" + ], + "paragraph.212ccd91-52a5-469d-b219-de98fe21be0f": [] } \ No newline at end of file diff --git a/drupal/content/node.b3882633-0964-4830-a40e-a4dbc224386d.json b/drupal/content/node.b3882633-0964-4830-a40e-a4dbc224386d.json index e86c714..636ea76 100644 --- a/drupal/content/node.b3882633-0964-4830-a40e-a4dbc224386d.json +++ b/drupal/content/node.b3882633-0964-4830-a40e-a4dbc224386d.json @@ -18,7 +18,7 @@ ], "revision_timestamp": [ { - "value": "2022-06-09T02:59:24+00:00", + "value": "2022-06-14T03:38:56+00:00", "format": "Y-m-d\\TH:i:sP" } ], @@ -57,7 +57,7 @@ ], "changed": [ { - "value": "2022-06-09T02:59:24+00:00", + "value": "2022-06-14T03:38:56+00:00", "format": "Y-m-d\\TH:i:sP" } ], @@ -98,11 +98,6 @@ "value": false } ], - "field_display_title": [ - { - "value": "Fun with Forms and Files" - } - ], "field_article_category": [ { "target_type": "taxonomy_term", @@ -128,6 +123,22 @@ "target_type": "paragraph", "target_uuid": "2bda3601-f2e4-48e6-9fea-a154b428849e" }, + { + "target_type": "paragraph", + "target_uuid": "3de00125-8596-4705-b05e-022af0c49d84" + }, + { + "target_type": "paragraph", + "target_uuid": "928e4b57-cbab-4356-a024-3506543a0c33" + }, + { + "target_type": "paragraph", + "target_uuid": "59341085-d9a2-4143-9100-aea472e0d7f9" + }, + { + "target_type": "paragraph", + "target_uuid": "382ea70e-0868-4c25-913c-a1158696dc6b" + }, { "target_type": "paragraph", "target_uuid": "4aa56f70-774a-47ec-bd07-d98390e5d172" @@ -143,12 +154,81 @@ { "target_type": "paragraph", "target_uuid": "0b43f7e6-5f5b-4d8d-9fef-aabd2513e3b0" + }, + { + "target_type": "paragraph", + "target_uuid": "9d9523c2-a874-4bcb-96d5-33e6bab7ec13" + }, + { + "target_type": "paragraph", + "target_uuid": "aff0b2a6-8b45-41b8-b855-fee5416d0c96" + }, + { + "target_type": "paragraph", + "target_uuid": "8a999ebe-0e60-4b16-afe3-ff2c398f0dbc" + }, + { + "target_type": "paragraph", + "target_uuid": "c1a9d3d8-46ed-4354-b6f8-36f9a79ca3b9" + }, + { + "target_type": "paragraph", + "target_uuid": "ae187af8-945f-43fa-ae8f-675e55c2cc27" + }, + { + "target_type": "paragraph", + "target_uuid": "10674599-c4d2-42de-8397-e7e8408fd636" + }, + { + "target_type": "paragraph", + "target_uuid": "85a12e67-7dc1-44e3-93bb-a0cf95ea7c7a" + }, + { + "target_type": "paragraph", + "target_uuid": "86ad0fc2-0226-434e-b5a4-0bf21b0adbe3" + }, + { + "target_type": "paragraph", + "target_uuid": "f7169a92-30df-408f-bff0-f9193bff41c7" + }, + { + "target_type": "paragraph", + "target_uuid": "47452ed6-3fdf-47fe-a237-2d35f11a45aa" + }, + { + "target_type": "paragraph", + "target_uuid": "f1cb8424-d84d-41a8-b1f2-4afcb341477f" + }, + { + "target_type": "paragraph", + "target_uuid": "4c78437c-4900-427b-b95e-be0f9b30587b" + }, + { + "target_type": "paragraph", + "target_uuid": "7b034bf3-e2db-40d4-89a4-e1227c3f45b7" + }, + { + "target_type": "paragraph", + "target_uuid": "78becdb6-272e-4063-945a-c89890fcccca" + }, + { + "target_type": "paragraph", + "target_uuid": "62d9acae-32c7-404f-88d3-d696ed84fa6d" + }, + { + "target_type": "paragraph", + "target_uuid": "212ccd91-52a5-469d-b219-de98fe21be0f" } ], "field_content_supplementary": [], "field_description": [ { - "value": "One of the most important parts of the decoupling experience is the ability not only to read data, but to create, update or delete data.\r\n\r\nI recently had the opportunity to revisit a project in which I had implemented a form that included file uploads with image preview, all using Drupal fields and entity references, and decided it was due time that I put together a rewrite up on how to build fully decoupled Drupal forms with Druxt." + "value": "One of the most important parts of the decoupling experience is the ability not only to read data, but to create, update or delete data.\r\n\r\nI recently had the opportunity to revisit a project in which I had implemented a form that included file uploads with image preview, all using Drupal fields and entity references. \r\n\r\nSo, as an exercise I've decided to review the feature and put together a write up on how to build fully decoupled Drupal forms with Druxt.\r\n\r\nLet's go have some fun with Druxt, Forms and Files." + } + ], + "field_display_title": [ + { + "value": "Fun with Forms and Files" } ], "field_image": [], diff --git a/drupal/content/paragraph.10674599-c4d2-42de-8397-e7e8408fd636.json b/drupal/content/paragraph.10674599-c4d2-42de-8397-e7e8408fd636.json new file mode 100644 index 0000000..a80bf44 --- /dev/null +++ b/drupal/content/paragraph.10674599-c4d2-42de-8397-e7e8408fd636.json @@ -0,0 +1,52 @@ +{ + "uuid": [ + { + "value": "10674599-c4d2-42de-8397-e7e8408fd636" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "text_formatted", + "target_type": "paragraphs_type", + "target_uuid": "71da2b1b-bfa1-4dae-8638-7f791512512d" + } + ], + "status": [ + { + "value": true + } + ], + "created": [ + { + "value": "2022-06-14T02:22:41+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "behavior_settings": [ + { + "value": { + "layout_paragraphs": { + "parent_uuid": "9d9523c2-a874-4bcb-96d5-33e6bab7ec13", + "region": "bottom" + } + } + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [], + "field_text_formatted": [ + { + "value": "

That's all that is required in Drupal for the moment, so let's jump to the other side.<\/p>\r\n", + "format": "formatted" + } + ] +} \ No newline at end of file diff --git a/drupal/content/paragraph.212ccd91-52a5-469d-b219-de98fe21be0f.json b/drupal/content/paragraph.212ccd91-52a5-469d-b219-de98fe21be0f.json new file mode 100644 index 0000000..9982cc3 --- /dev/null +++ b/drupal/content/paragraph.212ccd91-52a5-469d-b219-de98fe21be0f.json @@ -0,0 +1,66 @@ +{ + "uuid": [ + { + "value": "212ccd91-52a5-469d-b219-de98fe21be0f" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "code", + "target_type": "paragraphs_type", + "target_uuid": "e3c6ec6e-d8b4-42fa-a788-41ab19196fc9" + } + ], + "status": [ + { + "value": true + } + ], + "created": [ + { + "value": "2022-06-14T03:38:54+00:00", + "format": "Y-m-d\\TH:i:sP" + } + ], + "behavior_settings": [ + { + "value": { + "layout_paragraphs": { + "parent_uuid": "f1cb8424-d84d-41a8-b1f2-4afcb341477f", + "region": "bottom" + } + } + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ], + "field_code": [ + { + "value": "