Commit Graph

160 Commits

Author SHA1 Message Date
Daniël Klabbers
a509feb080 changelog and constraint for beta 15 2020-12-14 21:03:48 +01:00
Daniël Klabbers
4dcc9036d7 npm audit fix 2020-12-14 21:01:47 +01:00
Alexander Skvortsov
787bbc0f33 Make listener methods static
This is needed since we're listening to the individual methods of the class, as opposed to registering the class as a subscriber.
2020-12-10 23:33:45 -05:00
Alexander Skvortsov
d2d7b3026e Update composer metadata for admin dashboard 2020-12-08 19:53:32 -05:00
Alexander Skvortsov
8b356d82d1 Apply fixes from StyleCI 2020-12-08 20:08:37 +00:00
Alexander Skvortsov
bd9553eb33 Refactor for new extenders 2020-12-08 15:08:18 -05:00
Sami Mazouz
bebced2d53 Use new extenders (#23) 2020-12-08 14:04:22 -05:00
flarum-bot
def0faa7c3 Bundled output for commit 69a90a200b [skip ci] 2020-11-25 06:10:21 +00:00
Alexander Skvortsov
69a90a200b Add composer metadata for admin ux revamp 2020-11-25 01:09:33 -05:00
Alexander Skvortsov
90120e7bde Update admin js for new admin UX 2020-11-25 01:08:43 -05:00
Daniël Klabbers
86da969449 changelog and dep for v0.1.0-beta.14 2020-10-14 16:50:51 +02:00
Daniël Klabbers
14e04e09a1 npm audit security vulnerabilities patched 2020-10-13 21:11:12 +02:00
flarum-bot
527f43273c Bundled output for commit 389ac5a9b7 [skip ci] 2020-09-24 02:45:06 +00:00
Alexander Skvortsov
389ac5a9b7 Mithril 2 Update (#21)
Update for Mithril 2
2020-09-23 22:44:15 -04:00
flarum-bot
35edaf602e Bundled output for commit b891ef3426 [skip ci] 2020-08-16 04:46:46 +00:00
Alexander Skvortsov
b891ef3426 Revert "update for mithril 2"
This reverts commit 1d4c935c16.
2020-08-16 00:45:41 -04:00
flarum-bot
fe5732e3af Bundled output for commit 1d4c935c16 [skip ci] 2020-08-16 04:44:33 +00:00
Alexander Skvortsov
1d4c935c16 update for mithril 2 2020-08-16 00:43:31 -04:00
dependabot[bot]
483f4ff1df Bump elliptic from 6.5.2 to 6.5.3 in /js (#20)
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:09:22 +02:00
Alexander Skvortsov
86d3c0ce0a Use $actor->assertCan instead of $actor->can 2020-07-19 16:24:56 -04:00
Matt Kilgore
425ba74903 Remove AssertPermissionTrait (#19)
* Removed AssertPermissionTrait

* Apply fixes from StyleCI

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-07-19 16:23:03 -04:00
dependabot[bot]
59498e5e71 Bump lodash from 4.17.15 to 4.17.19 in /js (#18)
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 10:47:49 +02:00
Alexander Skvortsov
95269bfb68 Add empty locale extender to clear cache properly on enable/disable.
See https://github.com/flarum/core/pull/2020#issuecomment-616149583
2020-06-19 21:48:53 -04:00
Franz Liedke
660b62808f Release v0.1.0-beta.13 2020-05-01 13:08:43 +02:00
Franz Liedke
153f906fe3 Update Webpack 2020-05-01 11:39:40 +02:00
Franz Liedke
6fa5cc4408 Use new Model extender 2020-04-24 15:54:12 +02:00
Franz Liedke
519fc3d970 npm audit fix 2020-04-24 14:30:25 +02:00
dependabot[bot]
011357216a Bump acorn from 6.4.0 to 6.4.1 in /js (#17)
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:24:29 +01:00
Daniël Klabbers
d87bcc52dd remove author, updated deps 2020-03-03 13:15:01 +01:00
flarum-bot
171009bfdb Bundled output for commit 416b15d4a7 [skip ci] 2020-02-26 07:00:54 +00:00
Franz Liedke
416b15d4a7 Update Webpack 2020-02-26 07:59:58 +01:00
Franz Liedke
a4d447e39e Apply fixes from StyleCI 2019-11-29 23:01:32 +00:00
Franz Liedke
628ce3c8b7 Update copyright claims in LICENSE 2019-11-30 00:00:57 +01:00
Franz Liedke
d87dc1f84e Update vulnerable JS dependencies 2019-09-17 23:16:58 +02:00
Franz Liedke
8931a4c326 Add GitHub workflow for JavaScript building 2019-08-20 23:54:21 +02:00
Toby Zerner
e6213d517e Fix travis builds 2018-12-04 10:16:32 +10:30
Toby Zerner
8d1b93fe41 Remove sudo: false
See https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
2018-11-21 18:57:14 +10:30
flarum-bot
d9c8202ff9 Bundled output for commit f8c2497ab7 [skip ci] 2018-11-21 08:18:02 +00:00
Toby Zerner
f8c2497ab7 Make npm package private, update deps, change watch to dev 2018-11-21 18:43:19 +10:30
Toby Zerner
6a631ff854 Remove copyright year from LICENSE 2018-11-21 18:37:20 +10:30
Toby Zerner
6f38fabc29 Update dependencies 2018-11-17 18:53:38 +10:30
Toby Zerner
1e2c0a895a Fix incorrect table name 2018-10-23 20:48:51 +10:30
Toby Zerner
d2a00225c7 Clarify ambiguous use of user_id column which was crashing search queries 2018-10-23 07:23:41 +10:30
flarum-bot
90d4294456 Bundled output for commit 1c656aaf56 [skip ci] 2018-10-21 04:48:02 +00:00
Toby Zerner
1c656aaf56 Rename package 2018-10-21 15:16:21 +10:30
Toby Zerner
fd3df991c9 Rename package 2018-10-17 13:35:40 +10:30
Toby Zerner
eb06f9d58c Rename bootstrap.php 2018-09-21 11:45:18 +09:30
flarum-bot
29ac4a9286 Bundled output for commit b67c222dbd [skip ci] 2018-09-21 01:00:24 +00:00
Toby Zerner
b67c222dbd Update dependencies 2018-09-21 10:25:46 +09:30
Toby Zerner
feb940097c Database changes (#15)
* Update database references

* Use whereColumn

* Update core references
2018-09-16 20:49:28 +02:00
Franz Liedke
959f2b654c Ensure compatibility with DB table prefix 2018-08-03 01:25:15 +02:00
Franz Liedke
5f5ffc7fcb Use new Frontend extender
See flarum/core#851.
2018-07-23 16:27:07 +02:00
flarum-bot
8583c3a6b6 Bundled output for commit ecacd76ace [skip ci] 2018-06-20 05:21:57 +00:00
Toby Zerner
ecacd76ace Fix Travis' deploy key 2018-06-20 14:34:17 +09:30
Toby Zerner
6d1e57fd56 Remove progress flag 2018-06-20 13:54:01 +09:30
Toby Zerner
d842d8e460 Webpack (#14)
See https://github.com/flarum/core/pull/1367

* Replace gulp with webpack and npm scripts for JS compilation
* Set up Travis CI to commit compiled JS
* Restructure `js` directory; only one instance of npm, forum/admin are "submodules"
* Restructure `less` directory
2018-06-20 13:34:41 +09:30
Ammar Fadhlur Rahman
9746161c4f Change fa icon prefix to fas 2018-05-10 14:53:21 +07:00
Franz Liedke
c88fcd5cf9 Make StyleCI happy 2018-02-23 23:48:53 +01:00
AFR
a7a497855b Adapt to FontAwesome v5.0.6 icon name changes (#12) 2018-02-23 23:44:19 +01:00
Toby Zerner
eb36d98b82 Don't need to make empty discussions visible anymore
As per flarum/core@557a65aadd
2018-01-30 11:16:10 +10:30
Toby Zerner
b34f978276 Merge branch 'master' into visibility-scoping 2018-01-27 09:07:49 +10:30
Franz Liedke
324140d2e6 Extender: List all assets explicitly 2018-01-21 21:07:58 +01:00
Toby Zerner
ac664907cc Remove old event listener 2018-01-21 09:13:08 +10:30
Toby Zerner
f559c9a651 Merge branch 'master' into visibility-scoping
# Conflicts:
#	bootstrap.php
2018-01-21 08:36:02 +10:30
Toby Zerner
a390f7ca1b Make sure the discussion is_approved attribute value is correct 2018-01-21 08:34:33 +10:30
Toby Zerner
e8103ad0b3 Fix query errors 2018-01-21 08:33:45 +10:30
Franz Liedke
7435d18940 Adapt new bootstrap format, use Asset extender 2018-01-16 23:17:47 +01:00
Miles Cellar
441639c05d Update license year range to 2018 2018-01-15 19:32:06 +01:00
Toby Zerner
c0dd66bef5 Update for visibility scoping API changes in core 2018-01-11 12:19:20 +10:30
Toby Zerner
a822ab8310 Fix class name 2017-12-26 19:47:42 +10:30
Toby Zerner
15039737b8 Don't over-cache the disallowed tags 2017-12-26 19:44:53 +10:30
Toby Zerner
6f07aef206 Performance: Reuse list of disallowed tags 2017-12-26 19:44:53 +10:30
Toby Zerner
910ddc9f55 Apply fixes from StyleCI
[ci skip] [skip ci]
2017-09-14 09:15:48 +09:30
AakLak
2ea6cbee46 run the convert.sh script by CDK2020 to replace namespaces to be comp… (#8)
* run the convert.sh script by CDK2020 to replace namespaces to be compatible for beta8

* update docbloc to match updated namespace
2017-09-14 09:15:11 +09:30
Franz Liedke
34bfa56fce Merge branch 'master' of github.com:flarum/flarum-ext-approval 2017-07-27 00:21:09 +02:00
Toby Zerner
e5bdcce36d Add default permissions 2017-07-22 12:22:03 +09:30
Miles Cellar
f021402202 Update year 2017-01-01 22:44:22 +01:00
Toby Zerner
47bf958448 Apply fixes from StyleCI
[ci skip] [skip ci]
2016-11-29 05:29:35 +00:00
Franz Liedke
efdff2df68 Extract another variable 2016-11-19 16:57:11 +01:00
liji
29a5240f64 fix:discussion was not updated correctly after approval 2016-11-17 17:19:26 +08:00
Toby Zerner
f64369e61a Update StyleCI rules 2016-11-16 15:46:00 +10:30
Toby Zerner
ea2bc24c0b v0.1.0-beta.6 2016-10-19 21:12:14 +10:30
Toby Zerner
78bb373a22 Make discussion isApproved attribute available when fetching notifications. fixes flarum/core#976 2016-08-27 22:51:09 +09:30
Franz Liedke
64c8b1ad98 Make StyleCI happy 2016-06-13 21:05:19 +09:00
Toby Zerner
72bff02d68 Recompile dist JS using latest version of babel 2016-06-03 10:58:39 +09:30
Toby Zerner
d0c54cdbf9 Only allow OP to add tags that they can start discussions without approval in
closes flarum/core#904
2016-05-28 09:52:47 +09:30
Toby Zerner
badd03f3a3 Give the hidden/trash badge precedence over the awaiting approval badge
Given flarum/core@2d5a7ce, the hidden badge will no longer display for discussions awaiting approval – it will only display if the discussion has *actually* been marked as deleted by the OP. Thus, this information should have precedence. (There isn't much point in displaying both badges, I don't think.)
2016-05-28 09:50:45 +09:30
Toby Zerner
0bd3c16084 Generalise the potential for unapproved state to all posts, rather than just comments
This is just more future-proofing, in case any other extensions introduce new post types which can be queued for approval.
2016-05-28 09:48:17 +09:30
Toby Zerner
9f4e11097d Add actor information to the PostWasApproved event 2016-05-28 09:46:22 +09:30
Toby Zerner
ff6e674854 Give the is_approved attribute a default value on new Post models 2016-05-28 09:46:03 +09:30
Toby Zerner
cbab23a3f5 Fix bug in permission logic 2016-05-27 14:46:11 +09:30
Toby Zerner
4282b9be20 Add separate "start discussions without approval" permission
- Register required permissions so that "start discussions without approval" can only be set for groups that already have permission to "start discussions" (and same for reply)
- Change the "hidden" trash badge into a more descriptive gavel badge for discussions that are awaiting approval

closes flarum/core#904
2016-05-27 14:40:59 +09:30
Toby Zerner
0ab8bb95cc Require core v0.1.0-beta.5 2016-03-29 18:42:01 +10:30
Toby Zerner
864b696f38 Upgrade to flarum-gulp 0.2.0 / Babel 6 2016-03-18 09:31:17 +10:30
Toby Zerner
dba0512163 Clean up linting stuff 2016-03-10 17:23:34 +10:30
Franz Liedke
69ab036bb8 Use new shortcuts for migrations 2016-03-04 01:10:42 +09:00
Toby Zerner
a70e9621aa Applied fixes from StyleCI 2016-02-25 22:51:02 -05:00
Toby Zerner
601169e6e9 Add StyleCI config 2016-02-26 14:01:11 +10:30
Franz Liedke
272d59c6d4 Use new migration format 2016-02-24 23:11:26 +09:00
Maël Soucaze
a4aef88a36 Update license year range to 2016 2016-01-25 16:49:11 +01:00