Skip to content

Commit

Permalink
Compile javascript and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkwinkelmann committed Feb 13, 2022
1 parent 0093d60 commit 0611144
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 995 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@

[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/clarkwinkelmann/flarum-ext-mass-actions/blob/master/LICENSE.md) [![Latest Stable Version](https://img.shields.io/packagist/v/clarkwinkelmann/flarum-ext-mass-actions.svg)](https://packagist.org/packages/clarkwinkelmann/flarum-ext-mass-actions) [![Total Downloads](https://img.shields.io/packagist/dt/clarkwinkelmann/flarum-ext-mass-actions.svg)](https://packagist.org/packages/clarkwinkelmann/flarum-ext-mass-actions) [![Donate](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.me/clarkwinkelmann)

This extension adds the ability to perform grouped actions on discussions through checkboxes.
A future version might re-use the logic for users.

On the discussion list, use the checkbox control in the top left or hover a discussion to select.
Once discussions are selected, the controls on the top right will change to show available mass actions.

The list of buttons appearing depends on the permissions the actor has.

Change "View mass selection controls" permission in the admin panel to configure who can see the checkboxes.
This control is only visual, and doesn't impact REST API permissions or rate limiting.

Currently supported features:

- Mark as read
- Delete/restore (soft delete only)
- Lock/unlock
- Set tags (exact list)
- Add tag (to existing list)

Technical details: current implementation uses existing REST API endpoints and loops through discussions client-side.
All API requests are dispatched at the same time, so this means there could be rate limiting issues.

This version has not been optimized for mobile.
It's probably a good idea to only make it visible to moderators for now.

> The intent is to integrate this UI/feature into Flarum in a future release. Please leave feedback on your experience, so we can see what needs tweaking!
## Installation

composer require clarkwinkelmann/flarum-ext-mass-actions
Expand Down
121 changes: 1 addition & 120 deletions js/dist/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0611144

Please sign in to comment.