feat: 新增 iCloud 邮箱 provider

This commit is contained in:
honue
2026-04-15 16:44:16 +08:00
parent d144d14091
commit 1947f8b561
11 changed files with 785 additions and 2 deletions
+2
View File
@@ -7,6 +7,7 @@ const {
getConfiguredIcloudHostPreference,
getIcloudHostHintFromMessage,
getIcloudLoginUrlForHost,
getIcloudMailUrlForHost,
getIcloudSetupUrlForHost,
normalizeBooleanMap,
normalizeIcloudAliasList,
@@ -24,6 +25,7 @@ test('normalizeIcloudHost and host preference helpers resolve supported hosts',
assert.equal(getConfiguredIcloudHostPreference({ icloudHostPreference: 'icloud.com' }), 'icloud.com');
assert.equal(getConfiguredIcloudHostPreference({ icloudHostPreference: 'auto' }), '');
assert.equal(getIcloudLoginUrlForHost('icloud.com.cn'), 'https://www.icloud.com.cn/');
assert.equal(getIcloudMailUrlForHost('icloud.com'), 'https://www.icloud.com/mail/');
assert.equal(getIcloudSetupUrlForHost('icloud.com'), 'https://setup.icloud.com/setup/ws/1');
});