Skip to content

Commit

Permalink
Wordpress Media Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odiengineering committed Dec 6, 2024
1 parent dcab254 commit 27d23c0
Show file tree
Hide file tree
Showing 11 changed files with 325 additions and 0 deletions.
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 wordpress/media/2024/12/hcd-case-study-cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
153 changes: 153 additions & 0 deletions wordpress/media/2024/12/hcd-case-study-cover.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"meta": {
"created_date": "2024-12-06T22:19:54",
"updated_date": "2024-12-06T22:19:54",
"field_reference": "https://developer.wordpress.org/rest-api/reference/media/",
"api_version": "v2",
"api_url": "https://live-digital-ca-gov.pantheonsite.io/wp-json/wp/v2/",
"object_url": "https://live-digital-ca-gov.pantheonsite.io/wp-json/wp/v2/media/2339",
"process": {
"source_code": "https://github.com/cagov/wordpress-to-github",
"source_data": "https://live-digital-ca-gov.pantheonsite.io",
"deployment_target": "https://github.com/cagov/digital.ca.gov/tree/main"
},
"refresh_frequency": "as needed"
},
"data": {
"id": 2339,
"date": "2024-12-06T14:19:54",
"date_gmt": "2024-12-06T22:19:54",
"guid": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover.jpg",
"modified": "2024-12-06T14:19:54",
"modified_gmt": "2024-12-06T22:19:54",
"slug": "hcd-case-study-cover",
"status": "inherit",
"type": "attachment",
"link": "https://live-digital-ca-gov.pantheonsite.io/hcd-case-study-cover/",
"title": "hcd-case-study-cover",
"author": "Michael Sullivan",
"featured_media": 0,
"comment_status": "closed",
"ping_status": "closed",
"template": "",
"meta": [],
"categories": [
1
],
"class_list": [
"post-2339",
"attachment",
"type-attachment",
"status-inherit",
"hentry",
"category-uncategorized"
],
"description": "<p class=\"attachment\"><a href='https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"288\" src=\"https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-576x288.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-576x288.jpg 576w, https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-768x384.jpg 768w, https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover.jpg 876w\" sizes=\"(max-width: 576px) 100vw, 576px\" /></a></p>\n",
"caption": "",
"alt_text": "",
"media_type": "image",
"mime_type": "image/jpeg",
"media_details": {
"width": 876,
"height": 438,
"file": "2024/12/hcd-case-study-cover.jpg",
"filesize": 349626,
"sizes": {
"medium": {
"file": "hcd-case-study-cover-576x288.jpg",
"width": 576,
"height": 288,
"filesize": 53965,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-576x288.jpg"
},
"thumbnail": {
"file": "hcd-case-study-cover-150x150.jpg",
"width": 150,
"height": 150,
"filesize": 18514,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-150x150.jpg"
},
"medium_large": {
"file": "hcd-case-study-cover-768x384.jpg",
"width": 768,
"height": 384,
"filesize": 80676,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-768x384.jpg"
},
"full": {
"file": "hcd-case-study-cover.jpg",
"width": 876,
"height": 438,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover.jpg"
}
},
"image_meta": {
"aperture": "0",
"credit": "",
"camera": "",
"caption": "",
"created_timestamp": "0",
"copyright": "",
"focal_length": "0",
"iso": "0",
"shutter_speed": "0",
"title": "",
"orientation": "1",
"keywords": []
}
},
"post": null,
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover.jpg",
"sizes": [
{
"type": "full",
"path": "2024/12/hcd-case-study-cover.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover.jpg",
"file": "hcd-case-study-cover.jpg",
"width": 876,
"height": 438,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover.jpg"
},
{
"type": "medium_large",
"path": "2024/12/hcd-case-study-cover-768x384.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-768x384.jpg",
"file": "hcd-case-study-cover-768x384.jpg",
"width": 768,
"height": 384,
"filesize": 80676,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-768x384.jpg"
},
{
"type": "medium",
"path": "2024/12/hcd-case-study-cover-576x288.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-576x288.jpg",
"file": "hcd-case-study-cover-576x288.jpg",
"width": 576,
"height": 288,
"filesize": 53965,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-576x288.jpg"
},
{
"type": "thumbnail",
"path": "2024/12/hcd-case-study-cover-150x150.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-150x150.jpg",
"file": "hcd-case-study-cover-150x150.jpg",
"width": 150,
"height": 150,
"filesize": 18514,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-case-study-cover-150x150.jpg"
}
],
"path": "2024/12/hcd-case-study-cover.jpg"
}
}
Binary file added wordpress/media/2024/12/hcd-project-1024x681.jpg
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 wordpress/media/2024/12/hcd-project-150x150.jpg
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 wordpress/media/2024/12/hcd-project-768x511.jpg
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 wordpress/media/2024/12/hcd-project.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
172 changes: 172 additions & 0 deletions wordpress/media/2024/12/hcd-project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
{
"meta": {
"created_date": "2024-12-06T22:19:50",
"updated_date": "2024-12-06T22:19:50",
"field_reference": "https://developer.wordpress.org/rest-api/reference/media/",
"api_version": "v2",
"api_url": "https://live-digital-ca-gov.pantheonsite.io/wp-json/wp/v2/",
"object_url": "https://live-digital-ca-gov.pantheonsite.io/wp-json/wp/v2/media/2338",
"process": {
"source_code": "https://github.com/cagov/wordpress-to-github",
"source_data": "https://live-digital-ca-gov.pantheonsite.io",
"deployment_target": "https://github.com/cagov/digital.ca.gov/tree/main"
},
"refresh_frequency": "as needed"
},
"data": {
"id": 2338,
"date": "2024-12-06T14:19:50",
"date_gmt": "2024-12-06T22:19:50",
"guid": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project.jpg",
"modified": "2024-12-06T14:19:50",
"modified_gmt": "2024-12-06T22:19:50",
"slug": "hcd-project",
"status": "inherit",
"type": "attachment",
"link": "https://live-digital-ca-gov.pantheonsite.io/hcd-project/",
"title": "hcd-project",
"author": "Michael Sullivan",
"featured_media": 0,
"comment_status": "closed",
"ping_status": "closed",
"template": "",
"meta": [],
"categories": [
1
],
"class_list": [
"post-2338",
"attachment",
"type-attachment",
"status-inherit",
"hentry",
"category-uncategorized"
],
"description": "<p class=\"attachment\"><a href='https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"383\" src=\"https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-576x383.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-576x383.jpg 576w, https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-1024x681.jpg 1024w, https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-768x511.jpg 768w, https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project.jpg 1154w\" sizes=\"(max-width: 576px) 100vw, 576px\" /></a></p>\n",
"caption": "",
"alt_text": "",
"media_type": "image",
"mime_type": "image/jpeg",
"media_details": {
"width": 1154,
"height": 768,
"file": "2024/12/hcd-project.jpg",
"filesize": 666017,
"sizes": {
"medium": {
"file": "hcd-project-576x383.jpg",
"width": 576,
"height": 383,
"filesize": 63523,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-576x383.jpg"
},
"large": {
"file": "hcd-project-1024x681.jpg",
"width": 1024,
"height": 681,
"filesize": 149787,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-1024x681.jpg"
},
"thumbnail": {
"file": "hcd-project-150x150.jpg",
"width": 150,
"height": 150,
"filesize": 19532,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-150x150.jpg"
},
"medium_large": {
"file": "hcd-project-768x511.jpg",
"width": 768,
"height": 511,
"filesize": 95640,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-768x511.jpg"
},
"full": {
"file": "hcd-project.jpg",
"width": 1154,
"height": 768,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project.jpg"
}
},
"image_meta": {
"aperture": "0",
"credit": "",
"camera": "",
"caption": "",
"created_timestamp": "0",
"copyright": "",
"focal_length": "0",
"iso": "0",
"shutter_speed": "0",
"title": "",
"orientation": "1",
"keywords": []
}
},
"post": null,
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project.jpg",
"sizes": [
{
"type": "full",
"path": "2024/12/hcd-project.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project.jpg",
"file": "hcd-project.jpg",
"width": 1154,
"height": 768,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project.jpg"
},
{
"type": "large",
"path": "2024/12/hcd-project-1024x681.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-1024x681.jpg",
"file": "hcd-project-1024x681.jpg",
"width": 1024,
"height": 681,
"filesize": 149787,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-1024x681.jpg"
},
{
"type": "medium_large",
"path": "2024/12/hcd-project-768x511.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-768x511.jpg",
"file": "hcd-project-768x511.jpg",
"width": 768,
"height": 511,
"filesize": 95640,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-768x511.jpg"
},
{
"type": "medium",
"path": "2024/12/hcd-project-576x383.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-576x383.jpg",
"file": "hcd-project-576x383.jpg",
"width": 576,
"height": 383,
"filesize": 63523,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-576x383.jpg"
},
{
"type": "thumbnail",
"path": "2024/12/hcd-project-150x150.jpg",
"wordpress_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-150x150.jpg",
"file": "hcd-project-150x150.jpg",
"width": 150,
"height": 150,
"filesize": 19532,
"mime_type": "image/jpeg",
"source_url": "https://live-digital-ca-gov.pantheonsite.io/wp-content/uploads/2024/12/hcd-project-150x150.jpg"
}
],
"path": "2024/12/hcd-project.jpg"
}
}

0 comments on commit 27d23c0

Please sign in to comment.