mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
Add Waterfall Chart & Request Inspector
Features Added: - Interactive waterfall timeline visualization - Color-coded timing bars (DNS, Connect, SSL, TTFB, Download) - Request filtering by resource type (HTML, JS, CSS, Images, Fonts) - Detailed request inspector dialog with timing breakdown - HAR data extraction from Lighthouse results - Size/compression metrics display - Third-party resource identification - Render-blocking resource detection Technical Implementation: - Created lib/har-parser.js for network data extraction - Built waterfall.html with SVG-based timeline renderer - Added waterfall.js with interactive controls - Integrated HAR generation into test runner workflow - Updated main UI with View Waterfall link
This commit is contained in:
48
deploy-sync-upgrade-b64.ps1
Normal file
48
deploy-sync-upgrade-b64.ps1
Normal file
@@ -0,0 +1,48 @@
|
||||
$Server = "172.16.69.219"
|
||||
$User = "root"
|
||||
$Pass = "Q4dv!Z`$nCe#`$OT&h"
|
||||
$RemotePath = "/var/www/web-page-performance-test"
|
||||
|
||||
function Send-File-B64 {
|
||||
param($LocalFile, $RemotePath)
|
||||
echo "📄 Sending $LocalFile (Base64)..."
|
||||
|
||||
# Read file bytes and convert to Base64 string (single line)
|
||||
$ContentBytes = [System.IO.File]::ReadAllBytes($LocalFile)
|
||||
$B64 = [Convert]::ToBase64String($ContentBytes)
|
||||
|
||||
# Send command: echo "B64" | base64 -d > path
|
||||
$Command = "echo '$B64' | base64 -d > $RemotePath"
|
||||
|
||||
# Execute via plink (non-interactive)
|
||||
plink -batch -pw "$Pass" "$User@$Server" $Command
|
||||
|
||||
if ($LASTEXITCODE -ne 0) { throw "Failed to send $LocalFile" }
|
||||
}
|
||||
|
||||
try {
|
||||
# Send files using Base64 method
|
||||
Send-File-B64 ".\auto-sync-robust.sh" "$RemotePath/auto-sync.sh"
|
||||
Send-File-B64 ".\web-page-performance-test-sync.service" "/etc/systemd/system/web-page-performance-test-sync.service"
|
||||
Send-File-B64 ".\web-page-performance-test-sync.timer" "/etc/systemd/system/web-page-performance-test-sync.timer"
|
||||
|
||||
# Configure server
|
||||
echo "⚙️ Configuring Systemd Timer on server..."
|
||||
$Commands = @(
|
||||
"chmod +x $RemotePath/auto-sync.sh",
|
||||
"crontab -l | grep -v 'auto-sync.sh' | crontab -", # Remove old cron job
|
||||
"systemctl daemon-reload",
|
||||
"systemctl enable web-page-performance-test-sync.timer",
|
||||
"systemctl start web-page-performance-test-sync.timer",
|
||||
"systemctl status web-page-performance-test-sync.timer --no-pager",
|
||||
"echo '✅ Systemd Timer Upgrade Complete!'"
|
||||
)
|
||||
$CommandStr = $Commands -join " && "
|
||||
|
||||
plink -batch -pw "$Pass" "$User@$Server" $CommandStr
|
||||
|
||||
}
|
||||
catch {
|
||||
echo "❌ Error: $_"
|
||||
exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user