Repository navigation
New
- Thread prefix colors: every thread prefix in an API result, including the ones in
forums/{id}, now includescolors: thecolor,background_colorandborder_colorits label has in your default style. No extra scope needed. - Colors as visitors see them: they're read from your default style's compiled
core_labels.lessandextra.less, including edited label styles, dark styles and custom CSS classes. Only plain color values are sent.
Other changes
- A background job works the colors out when API Kit is installed or upgraded, and again when your default style or a prefix's CSS class changes. API requests only read the saved result. Until it first runs, prefixes have no
colorsfield. - Changed:
GET thread-prefixes/now returns{"prefixes": [...]}, like XenForo's own list endpoints. If you read the old bare list, update your code before upgrading. - For developers:
Kolakube\APIKit\Style\Csscompiles a style's LESS templates and reads the values that apply to an element with given classes, andKolakube\APIKit\Style\Datais a base for data built from it in the background.
Install: download Kolakube-APIKit-1.3.0.zip below, then go to Add-ons → Install/upgrade from archive in your XenForo admin. Upgrading from 1.2.1 keeps your settings.