Commit Graph

503 Commits

Author SHA1 Message Date
Alexander Skvortsov
64d965fa17 Fix logic for determining whether users can add tags to a discussion 2020-12-16 17:31:44 -05:00
Alexander Skvortsov
c099c96703 Fix old-style return true in policy 2020-12-16 17:31:02 -05:00
Daniël Klabbers
765254c4f5 changelog and constraint for beta 15 2020-12-15 09:41:50 +01:00
Daniël Klabbers
9429b229bb npm audit fix 2020-12-15 09:34:41 +01:00
Alexander Skvortsov
f74a348525 Update composer metadata for admin dashboard 2020-12-08 19:58:39 -05:00
Alexander Skvortsov
bf31f3e8ec Refactor for Policies Revamp (#105) 2020-12-08 19:02:08 -05:00
Sami Mazouz
384f17ea94 Use new extenders (#102) 2020-12-08 14:20:50 -05:00
Alexander Skvortsov
2fd76a8d75 Remove deprecated TagWillBeSaved event 2020-12-08 00:02:46 -05:00
flarum-bot
423d156d50 Bundled output for commit 46d094192d [skip ci] 2020-11-30 19:08:06 +00:00
Miha Frangež
46d094192d Add icons to tag tiles (#104) 2020-11-30 14:06:51 -05:00
flarum-bot
ad85470e54 Bundled output for commit 076893f861 [skip ci] 2020-11-25 22:04:02 +00:00
Alexander Skvortsov
076893f861 Update for Admin UX Redesign (#103)
* Add composer metadata for admin ux redesign
* Admin js updates for admin ux redesign
2020-11-25 17:02:57 -05:00
flarum-bot
870c3e7c0a Bundled output for commit 8c5bbe1f74 [skip ci] 2020-11-09 18:16:24 +00:00
Sami Mazouz
8c5bbe1f74 Remove unused declaration of tags property (#100) 2020-11-09 13:14:25 -05:00
flarum-bot
742e62d0f0 Bundled output for commit bacac3ca9b [skip ci] 2020-10-29 15:32:27 +00:00
Alexander Skvortsov
bacac3ca9b Fix hidden bidi 2020-10-29 11:31:08 -04:00
flarum-bot
0fc7563257 Bundled output for commit f610522f0e [skip ci] 2020-10-22 23:01:10 +00:00
Daniël Klabbers
f610522f0e guest discussion creation improved (#98)
This fixes an issue where Guests were no longer able to click the "new discussion" button and be shown the Log In Modal.
2020-10-22 19:00:09 -04:00
Daniël Klabbers
4baa8a62d8 changelog and dep for v0.1.0-beta.14 2020-10-15 16:19:30 +02:00
Daniël Klabbers
bfec35cc39 npm audit security vulnerabilities patched 2020-10-14 10:03:16 +02:00
flarum-bot
08e638f9f5 Bundled output for commit b64e5d0998 [skip ci] 2020-10-07 21:53:40 +00:00
Alexander Skvortsov
b64e5d0998 Fix duplicate tags in TagDiscussionModal
Add an inclusion check for the tag itself as well as its parent before adding it to the list of selected tags.
2020-10-07 17:52:38 -04:00
flarum-bot
bdb55e45c4 Bundled output for commit c6829edd85 [skip ci] 2020-10-05 15:53:24 +00:00
Wadim Kalmykov
c6829edd85 fix tagLabel links (#96) 2020-10-05 11:52:11 -04:00
Sami Mazouz
e787048af1 Fix Editing Discussion Tags Permission (#95) 2020-10-03 18:37:56 -04:00
Alexander Skvortsov
80f6e9c808 Remove unused import 2020-10-03 18:04:06 -04:00
flarum-bot
ddc2711146 Bundled output for commit c2bb7d45f6 [skip ci] 2020-10-03 00:51:55 +00:00
Alexander Skvortsov
c2bb7d45f6 Use Link component instead of route patch 2020-10-02 20:51:03 -04:00
flarum-bot
955309cc5f Bundled output for commit 88508c459c [skip ci] 2020-10-03 00:50:15 +00:00
Alexander Skvortsov
88508c459c Use Stream util instead of m.stream 2020-10-02 20:49:17 -04:00
Rafael Horvat
1f0b87fede Renamed TagWillBeSaved => Saving. Deprecated the old event. (#92) 2020-10-02 12:55:25 -04:00
flarum-bot
48afda2422 Bundled output for commit 75db6b4878 [skip ci] 2020-09-24 15:31:05 +00:00
Wadim Kalmykov
75db6b4878 Remove call to undefined method handleErrors (#94) 2020-09-24 11:30:10 -04:00
flarum-bot
6b83c71e33 Bundled output for commit f61b5201d1 [skip ci] 2020-09-24 03:01:22 +00:00
Alexander Skvortsov
f61b5201d1 Mithril 2 Update (#93)
Update for Mithril 2

- TagLinkButtons now have children passed in, even though those children are not directly shown. This is because those children are used if that TagLinkButton is the active element in a dropdown.
- Since `m.redraw.strategy('all')` is no longer an option, we use keys to force a full-page rerender after rearranging tag order in the admin dashboard
2020-09-23 23:00:15 -04:00
Clark Winkelmann
bf223071f2 Fixes flarum/core#2168 negated tags not working (#88)
orWhereIn doesn't have the $not parameter and the argument was ignored by PHP
2020-08-16 16:33:41 -04:00
dependabot[bot]
d105879392 Bump elliptic from 6.5.2 to 6.5.3 in /js (#91)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:08:42 +02:00
Matthew Kilgore
bd46db8741 Replace depreciated functions with classfull verions 2020-07-25 21:17:43 -04:00
Matt Kilgore
2237e597d0 Removes AssertPermissionTrait (#90)
* Removes AssertPermissionTrait

* Apply fixes from StyleCI

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-07-19 17:37:27 -04:00
Franz Liedke
b033b61164 Use new View extender
Refs flarum/core#2134.
2020-07-17 12:11:42 +02:00
dependabot[bot]
7a5fee739b Bump lodash from 4.17.15 to 4.17.19 in /js (#89)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 11:28:18 +02:00
Franz Liedke
a42f906a21 Update package.json 2020-07-17 11:26:13 +02:00
flarum-bot
fe5ec1083f Bundled output for commit c2984c3678 [skip ci] 2020-07-02 00:12:39 +00:00
Alexander Skvortsov
c2984c3678 Fix extension to work with latest state changes 2020-07-01 20:11:22 -04:00
Alexander Skvortsov
6a6d2f3803 Fix Last Posted Discussion, Improve DiscussionCount (#78)
The calculation/caching of the last posted discsussion is currently not very good. This PR adds fixes for:

Ensuring that private and hidden discussions aren't returned
Hiding and restoring discussions (hidden discussions shouldn't be returned)
Editing tags on a discussion (previously the discussion wasn't removed from the old tags).
2020-06-28 15:07:06 -04:00
Rafael Horvat
2a21725fe3 Firing 2 new events for tags: Creating & Deleting (#86) 2020-06-28 14:47:32 -04:00
flarum-bot
0c1869b93e Bundled output for commit 942d39a37a [skip ci] 2020-06-26 12:47:25 +00:00
Franz Liedke
942d39a37a Fix extension to work with latest state changes
Refs flarum/core#2150, flarum/core#2151, flarum/core#2156.
2020-06-26 14:44:08 +02:00
Franz Liedke
dcf814fb12 Remove an obsolete method extension
This method hasn't existed in a while, and its purpose (including
the related tags when loading a discussion via API) has already
been achieved by extending the backend.
2020-06-26 14:43:11 +02:00
Alexander Skvortsov
9d2f0c9125 Add empty locale extender to clear cache properly on enable/disable.
See https://github.com/flarum/core/pull/2020#issuecomment-616149583
2020-06-19 22:30:05 -04:00
flarum-bot
f5ced81aa2 Bundled output for commit 274f31b6bf [skip ci] 2020-05-31 16:40:43 +00:00
Alexander Skvortsov
274f31b6bf Fix tag selection input on discussion modal going out of screen (#83)
Calculate width of input field dynamically based on content, this fixes the bug by only shifting tags out of view when necessary
2020-05-31 12:39:42 -04:00
flarum-bot
cda9ed9fca Bundled output for commit 94799aad72 [skip ci] 2020-05-31 15:55:42 +00:00
Charlie
94799aad72 Fix buggy drag and drop (#82)
Switch to the SortableJs library to fix the buggy tags drag-and-drop admin UI.
2020-05-31 11:54:52 -04:00
Alexander Skvortsov
713efcfa3c Increase Tags Visibility Scoping Extendability (#79)
Allow extensions to override tags scoping visibility based on viewDiscussions permission
2020-05-19 17:49:39 -04:00
Daniël Klabbers
74e02b6a3c Release v0.1.0-beta.13 2020-05-04 10:48:54 +02:00
Franz Liedke
c2e7a5413c Update Webpack for real 2020-05-01 12:04:03 +02:00
flarum-bot
166b976f86 Bundled output for commit 37e8469de7 [skip ci] 2020-05-01 09:59:24 +00:00
Franz Liedke
37e8469de7 Update Webpack 2020-05-01 11:56:52 +02:00
flarum-bot
3f5f3320a9 Bundled output for commit 80e32594e2 [skip ci] 2020-04-24 20:30:18 +00:00
Alexander Skvortsov
80e32594e2 Disable "Start Discussion" button for restricted tags (#74)
Also, change the label when the button is disabled.
2020-04-24 22:29:16 +02:00
Franz Liedke
649f71d25a Use new Model extender 2020-04-24 15:56:27 +02:00
flarum-bot
f022018be3 Bundled output for commit 751c14c889 [skip ci] 2020-04-24 12:33:10 +00:00
Franz Liedke
751c14c889 npm audit fix 2020-04-24 14:30:31 +02:00
flarum-bot
ae5bf9203e Bundled output for commit 7458813d59 [skip ci] 2020-03-20 07:22:19 +00:00
Andreas Jacobsen
7458813d59 Update addTagList.js 2020-03-20 08:21:19 +01:00
Andreas Jacobsen
e8dd756345 Allow extensions to place items between tags link and tags list
This PR sets the priority of the tags list to -12, to allow placing a menu link on -11 between the link and the list.

Issue here: https://github.com/flarum/core/issues/1923
2020-03-20 08:21:19 +01:00
dependabot[bot]
38f6ce3294 Bump acorn from 6.4.0 to 6.4.1 in /js (#77)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:23:40 +01:00
flarum-bot
d9dfc15a96 Bundled output for commit 54f1ec008d [skip ci] 2020-03-06 19:39:36 +00:00
Franz Liedke
54f1ec008d Tweak translation keys
Refs #72.
2020-03-06 20:38:44 +01:00
flarum-bot
38174cfa2b Bundled output for commit 6117c1231a [skip ci] 2020-03-06 16:53:22 +00:00
Alexander Skvortsov
6117c1231a Add title and description meta tags (#72) 2020-03-06 17:52:30 +01:00
Ian Morland
c2f8aeeecc Improve performance of subqueries (#75) 2020-03-06 15:12:34 +01:00
Daniël Klabbers
aa6ace8699 changelog for beta 12 2020-03-03 14:59:14 +01:00
Daniël Klabbers
c46edb0223 update deps, remove author 2020-03-03 14:59:01 +01:00
flarum-bot
45d1b57522 Bundled output for commit 9a17784600 [skip ci] 2020-02-26 10:42:17 +00:00
David Sevilla Martin
3d71f6451a Fix regressions from #73 and #68, align things better in modal 2020-02-25 18:57:38 -05:00
flarum-bot
ed7622ee2d Bundled output for commit 8dc47fac11 [skip ci] 2020-02-24 12:52:37 +00:00
Moritz Stückler
5bcc9ff3f1 fix: icon aligment for tag icons 2020-02-13 14:56:46 +01:00
Daniël Klabbers
96b8a97484 Merge pull request #68 from flarum/dk/1805-selected-tags
fixes showing which tags are selected
2020-01-21 13:57:03 +01:00
Daniël Klabbers
de7715168a prevent lingering permissions when unrestricting (#65)
Whenever a tag is no longer being restricted, a permission entry in
group_permission lingers around for `viewDiscussions`. This commit
removes all permissions configured after you stop restricting them.

Co-authored-by: Franz Liedke <franz@develophp.org>
2020-01-13 22:11:41 +01:00
flarum-bot
b2dffe6a0d Bundled output for commit b966918fab [skip ci] 2020-01-10 09:32:25 +00:00
Franz Liedke
b966918fab Update Webpack 2020-01-10 10:31:17 +01:00
Franz Liedke
1782e19b57 Apply fixes from StyleCI 2020-01-07 23:47:56 +00:00
Matt Kilgore
a539eb9355 Change Zend to Laminas (#71) 2020-01-08 00:47:46 +01:00
Franz Liedke
fc787924de Apply fixes from StyleCI 2019-11-29 23:02:40 +00:00
Franz Liedke
4e2dffb2fb Update copyright claims in LICENSE 2019-11-30 00:01:04 +01:00
Daniel Klabbers
c730578a76 v0.1.0-beta.11 changelog 2019-11-26 16:31:25 +01:00
Daniël Klabbers
8ddc329d2a fixes showing which tags are selected 2019-11-20 15:03:06 +01:00
Daniël Klabbers
766c925115 cleaned up the Tag model and obsoleted/unused property 2019-10-07 14:16:10 +02:00
flarum-bot
072a60cef7 Bundled output for commit e59c54eae0 [skip ci] 2019-10-02 00:04:03 +00:00
David Sevilla Martín
e59c54eae0 Fix tag change event posts with deleted tags erroring (#66)
Fixes #1864
2019-10-02 02:02:45 +02:00
Daniël Klabbers
7832c7c48c updated requirement with flarum/core 2019-09-16 09:30:46 +02:00
Franz Liedke
b270f80df8 Update changelog for beta.10 2019-09-15 22:43:23 +02:00
Franz Liedke
12c73c048d Update vulnerable JS dependencies 2019-09-13 15:27:47 +02:00
David Sevilla Martín
ebf8345dba Add view & frontend documents for tags & tag discussion list (#64)
Refs flarum/core#1820.
Fixes flarum/core#1134.
2019-09-10 20:34:07 +02:00
Daniël Klabbers
d403bedab3 fix phpdoc for marked_as_read_at which was migrated 2019-08-27 13:35:28 +02:00
Franz Liedke
a330d07dfe Add GitHub workflow for JavaScript building 2019-08-20 23:54:27 +02:00
flarum-bot
d43e071a99 Bundled output for commit 8ef1d3bdea [skip ci] 2019-07-07 15:24:34 +00:00
David Sevilla Martín
8ef1d3bdea Fix default value for useColor overriding falsy values (#63)
This would make the 'useColor' setting irrelevant as it would always be true.
Error is noticeable in the discussion list when the icons are the same color as the tag background
2019-07-07 17:23:22 +02:00