Commit 953e059
committed
feat(preloads): implement preload view model and filtering logic
- Added `computePreloadViewModel` function to aggregate preload data.
- Introduced `PreloadViewModel`, `PreloadRowVm`, and related types for structured data representation.
- Implemented filtering functions for preload rows based on status and phase.
- Created utility functions for summarizing hrefs and calculating average durations.
- Added tests for `findBestQrlRequestMatch` to ensure correct matching logic for QRL requests.
- Established a new preload runtime in `preloads.ts` to manage preload entries and their states.
- Integrated performance resource timing to enhance preload tracking.1 parent b35565b commit 953e059
21 files changed
Lines changed: 2410 additions & 10 deletions
File tree
- packages
- kit/src
- plugin/src
- build-analysis
- plugin/statistics
- virtualmodules
- ui
- src
- components/Icons
- devtools
- features
- Inspect
- Preloads
- runtime
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
49 | 125 | | |
50 | 126 | | |
51 | 127 | | |
| |||
67 | 143 | | |
68 | 144 | | |
69 | 145 | | |
| 146 | + | |
| 147 | + | |
70 | 148 | | |
71 | 149 | | |
72 | 150 | | |
| |||
76 | 154 | | |
77 | 155 | | |
78 | 156 | | |
| 157 | + | |
79 | 158 | | |
80 | 159 | | |
81 | 160 | | |
| |||
0 commit comments