From 49a53e23df96b5d78b739237a2493bd1fa1fc019 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 8 Oct 2021 22:43:23 +0200 Subject: [PATCH] chore: add iPhone 13 device family (#9392) --- src/server/deviceDescriptorsSource.json | 120 ++++++++++++++++++++++++ types/types.d.ts | 8 ++ utils/doclint/cli.js | 2 +- 3 files changed, 129 insertions(+), 1 deletion(-) diff --git a/src/server/deviceDescriptorsSource.json b/src/server/deviceDescriptorsSource.json index b582eb40e7..822667ce96 100644 --- a/src/server/deviceDescriptorsSource.json +++ b/src/server/deviceDescriptorsSource.json @@ -663,6 +663,126 @@ "hasTouch": true, "defaultBrowserType": "webkit" }, + "iPhone 13": { + "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1", + "screen": { + "width": 390, + "height": 844 + }, + "viewport": { + "width": 390, + "height": 664 + }, + "deviceScaleFactor": 3, + "isMobile": true, + "hasTouch": true, + "defaultBrowserType": "webkit" + }, + "iPhone 13 landscape": { + "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1", + "screen": { + "width": 390, + "height": 844 + }, + "viewport": { + "width": 750, + "height": 342 + }, + "deviceScaleFactor": 3, + "isMobile": true, + "hasTouch": true, + "defaultBrowserType": "webkit" + }, + "iPhone 13 Pro": { + "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1", + "screen": { + "width": 390, + "height": 844 + }, + "viewport": { + "width": 390, + "height": 664 + }, + "deviceScaleFactor": 3, + "isMobile": true, + "hasTouch": true, + "defaultBrowserType": "webkit" + }, + "iPhone 13 Pro landscape": { + "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1", + "screen": { + "width": 390, + "height": 844 + }, + "viewport": { + "width": 750, + "height": 342 + }, + "deviceScaleFactor": 3, + "isMobile": true, + "hasTouch": true, + "defaultBrowserType": "webkit" + }, + "iPhone 13 Pro Max": { + "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1", + "screen": { + "width": 428, + "height": 926 + }, + "viewport": { + "width": 428, + "height": 746 + }, + "deviceScaleFactor": 3, + "isMobile": true, + "hasTouch": true, + "defaultBrowserType": "webkit" + }, + "iPhone 13 Pro Max landscape": { + "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1", + "screen": { + "width": 428, + "height": 926 + }, + "viewport": { + "width": 832, + "height": 380 + }, + "deviceScaleFactor": 3, + "isMobile": true, + "hasTouch": true, + "defaultBrowserType": "webkit" + }, + "iPhone 13 Mini": { + "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1", + "screen": { + "width": 375, + "height": 812 + }, + "viewport": { + "width": 375, + "height": 629 + }, + "deviceScaleFactor": 3, + "isMobile": true, + "hasTouch": true, + "defaultBrowserType": "webkit" + }, + "iPhone 13 Mini landscape": { + "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1", + "screen": { + "width": 375, + "height": 812 + }, + "viewport": { + "width": 712, + "height": 327 + }, + "deviceScaleFactor": 3, + "isMobile": true, + "hasTouch": true, + "defaultBrowserType": "webkit" + }, "JioPhone 2": { "userAgent": "Mozilla/5.0 (Mobile; LYF/F300B/LYF-F300B-001-01-15-130718-i;Android; rv:89.0 Gecko/48.0 Firefox/92.0 KAIOS/2.5", "viewport": { diff --git a/types/types.d.ts b/types/types.d.ts index 768e31656b..564a0bc486 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -15402,6 +15402,14 @@ type Devices = { "iPhone 12 Pro landscape": DeviceDescriptor; "iPhone 12 Pro Max": DeviceDescriptor; "iPhone 12 Pro Max landscape": DeviceDescriptor; + "iPhone 13": DeviceDescriptor; + "iPhone 13 landscape": DeviceDescriptor; + "iPhone 13 Pro": DeviceDescriptor; + "iPhone 13 Pro landscape": DeviceDescriptor; + "iPhone 13 Pro Max": DeviceDescriptor; + "iPhone 13 Pro Max landscape": DeviceDescriptor; + "iPhone 13 Mini": DeviceDescriptor; + "iPhone 13 Mini landscape": DeviceDescriptor; "JioPhone 2": DeviceDescriptor; "JioPhone 2 landscape": DeviceDescriptor; "Kindle Fire HDX": DeviceDescriptor; diff --git a/utils/doclint/cli.js b/utils/doclint/cli.js index a99efd84e4..005e9cc696 100755 --- a/utils/doclint/cli.js +++ b/utils/doclint/cli.js @@ -145,7 +145,7 @@ async function run() { if (dirtyFiles.size) { console.log('============================') - console.log('ERROR: generated markdown files have changed, this is only error if happens in CI:'); + console.log('ERROR: generated files have changed, this is only error if happens in CI:'); [...dirtyFiles].forEach(f => console.log(f)); console.log('============================') process.exit(1);