mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-17 11:48:52 +08:00
Refactors ResultSet handling to use tracked arrays and native array APIs, removing ArrayProxy semantics. - Access items via .content across controllers, routes, components, and templates (conditionals, #each, find, map) - Replace Ember array mutators on ResultSets: * removeObject → removeValueFromArray * addObjects → addUniqueValuesToArray * setObjects → content.splice(...) * unshiftObjects → content.unshift(...) - Use modern native APIs on ResultSets: * toSorted for non-mutating sort * .at(-1) for last element access - Update adapter/util logic to iterate results.content (e.g., theme afterFindAll, default theme lookup) - Initialize tracked collections where needed (e.g., themes list via TrackedArray) to maintain reactivity |
||
|---|---|---|
| .. | ||
| admin/assets/javascripts | ||
| app | ||
| assets | ||
| config | ||
| db | ||
| lib | ||
| spec | ||
| test/javascripts/integration/components | ||
| plugin.rb | ||