11 lines
1.2 KiB
PowerShell
11 lines
1.2 KiB
PowerShell
$ErrorActionPreference = 'SilentlyContinue'
|
|
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
|
|
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null
|
|
$t = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02)
|
|
$n = $t.GetElementsByTagName('text')
|
|
$n.Item(0).AppendChild($t.CreateTextNode('头像预压缩尺寸调整为 96x96')) | Out-Null
|
|
$n.Item(1).AppendChild($t.CreateTextNode('按你的选择把 utils/imageCompress.ts 的 AVATAR_UPLOAD_SIZE 从 50 调到 96,兼顾 Talk「修改群头像」抽屉 96px 预览;列表 38px/成员 30px 依旧清晰,体积仍很小。压缩逻辑不变:居中裁剪正方形 + JPEG(q=0.9) + 透明填白 + 失败原样回退,后端二次规范化。vue-tsc 通过,GERP 部署 113 assets,产物确认默认值已是 96、无 50 残留。GERP 0d3745c,请 Ctrl+F5')) | Out-Null
|
|
$toast = [Windows.UI.Notifications.ToastNotification]::new($t)
|
|
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier('TraeCode Agent').Show($toast)
|
|
Write-Output 'toast-ok'
|