[MC] Core Library

[MC] Core Library 1.0.3

No permission to download
We have released a new update adding more shared functions between certain add-ons and improvements.

New features
  • Shared audit log. A common base for add-on audit logs in the admin control panel, covering list, filters, paging and CSV export, with a cached summary and batched pruning of old entries.
    • Filter by actor (username, email address or user id), date range (with Today, Last 7 days and Last 30 days shortcuts), and add-on specific fields.
    • Filters that can't apply are dropped instead of showing a chip that does nothing.
    • CSV dates use the same timezone as the date filters, with the offset written out.
  • CSV export helper. Guards against spreadsheet formula injection while keeping plain numbers, negative ones included, as numbers.
  • Shared option tabs template for add-ons that split their options into tabs. A tab no longer draws a separator line at its top.

Improved
  • Icon picker.
    • The emoji tab is hidden when no emoji source is configured.
    • The image tab opens automatically when an upload URL is given.
    • New preview and colour-field hooks let add-ons tint icons (used by Forum Layouts and Social Profiles).
We have a released a new update.

New features:
  • Shared Markdown support. Core Library now bundles the CommonMark Markdown library together with an HTML sanitiser for its output. This is for upcoming add-ons.
  • Shared status labels. Add-ons can now use one consistent label style.

Bugs fixed:
  • Font Awesome icon classes are now cleaned before they are saved and again before they are shown, so only real icon classes can reach the page.
Back
Top Bottom