Commit Graph

241 Commits

Author SHA1 Message Date
Daniël Klabbers
19efca8807 npm audit security vulnerabilities patched 2020-10-14 09:56:09 +02:00
flarum-bot
d864a287a8 Bundled output for commit ede3a33952 [skip ci] 2020-10-02 23:23:49 +00:00
Alexander Skvortsov
ede3a33952 Use Link component instead of route patch 2020-10-02 19:22:43 -04:00
Alexander Skvortsov
07e93eb6f9 Use flarum/utils/Stream instead of m.stream 2020-10-02 19:22:19 -04:00
flarum-bot
ccf9fae68c Bundled output for commit df74cc4a96 [skip ci] 2020-09-24 02:49:19 +00:00
Alexander Skvortsov
df74cc4a96 Mithril 2 Update (#29)
Update for Mithril 2
2020-09-23 22:48:20 -04:00
flarum-bot
94c4b37799 Bundled output for commit 5038ec4590 [skip ci] 2020-08-18 21:04:28 +00:00
David Sevilla Martín
5038ec4590 Update modal show call for the modal state changes (#28) 2020-08-18 17:03:37 -04:00
flarum-bot
98dc5a0ea1 Bundled output for commit f26db4d3f2 [skip ci] 2020-08-18 00:39:39 +00:00
Alexander Skvortsov
f26db4d3f2 Extract flags list state (#24)
* Extract flags list state
2020-08-17 20:38:35 -04:00
dependabot[bot]
e415e5ebc2 Bump elliptic from 6.5.2 to 6.5.3 in /js (#27)
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:28 +02:00
Matthew Kilgore
e9022d5710 Replace depreciated helpers with class variant 2020-07-25 18:41:01 -04:00
Matt Kilgore
e85063fbf7 Remove AssertPermissionTrait (#26)
* Remove AssertPermissionTrait

* Apply fixes from StyleCI

* Fix my dumb mistake

* Fix another small mistake ->assertRegistered

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-07-20 08:02:29 +02:00
dependabot[bot]
5d64996b84 Bump lodash from 4.17.15 to 4.17.19 in /js (#25)
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:48:19 +02:00
flarum-bot
0bb85cc85e Bundled output for commit bf431c4fdf [skip ci] 2020-07-01 23:59:59 +00:00
Alexander Skvortsov
bf431c4fdf Fix extension to work with latest state changes 2020-07-01 19:58:59 -04:00
Alexander Skvortsov
1e64ac9376 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:24:35 -04:00
Clark Winkelmann
2f2c1871d7 Add missing route for the flags page 2020-05-20 01:09:41 +02:00
Franz Liedke
0b2018c32a Release v0.1.0-beta.13 2020-05-01 13:08:45 +02:00
Franz Liedke
e3a2d50e41 Update Webpack 2020-05-01 11:51:07 +02:00
Franz Liedke
cf764d2c00 Use new Model extender 2020-04-24 15:55:19 +02:00
Franz Liedke
92b18063f5 npm audit fix 2020-04-24 14:30:27 +02:00
dependabot[bot]
0ccafc2cf0 Bump acorn from 6.4.0 to 6.4.1 in /js (#22)
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:26:34 +01:00
Daniël Klabbers
01ebd41bcd added heading for type of commit 2020-03-03 13:55:28 +01:00
Daniël Klabbers
7583faf9ed remove author, updated deps 2020-03-03 13:53:12 +01:00
Daniël Klabbers
2c4813f7e1 updated changelog for beta 12 2020-03-03 13:52:44 +01:00
flarum-bot
ec858eb058 Bundled output for commit beb5329e42 [skip ci] 2020-02-07 10:58:22 +00:00
Franz Liedke
beb5329e42 Fix flagging check for all post types
Refs #18.
2020-02-07 11:57:20 +01:00
Franz Liedke
4ec12da827 Fix down migration
Refs #18.
2020-02-07 11:55:52 +01:00
Franz Liedke
95d2ba3eb7 Rely on default modal error handling
This also gives the server-side the chance to add more different error
messages / additional behavior without having to change the frontend.

Refs #18.
2020-02-07 11:55:38 +01:00
Franz Liedke
e9a11b11d3 Tweak translation keys for consistency
Refs #18.
2020-02-07 11:54:29 +01:00
Franz Liedke
fecc2312fd Update Webpack 2020-02-07 11:33:23 +01:00
flarum-bot
5125de8943 Bundled output for commit 4344f71d99 [skip ci] 2020-02-07 10:24:07 +00:00
Ian Morland
4344f71d99 Flag improvements/tweaks (#18)
* Option to allow users to flag their own post
* Increase size of "Flag Post" modal
* Allow optional reason detail for offtopic, inappropriate and spam reasons
* For other reasons, detail text is now required
* Switch to column type "text" to allow more details in reason
2020-02-07 11:23:10 +01:00
Franz Liedke
e64ca03985 Apply fixes from StyleCI 2019-11-29 23:02:02 +00:00
Franz Liedke
4a88e0bcb0 Update copyright claims in LICENSE 2019-11-30 00:01:00 +01:00
Daniel Klabbers
e177857235 changelog for beta 10 2019-11-26 16:22:04 +01:00
David Sevilla Martin
da37c9a0a5 Assert registered in /api/flags to fix issue with guests 2019-10-29 18:05:49 -04:00
Franz Liedke
a3f6a59152 Update vulnerable JS dependencies 2019-09-17 23:13:33 +02:00
Franz Liedke
c0e4b5d6fa Add GitHub workflow for JavaScript building 2019-08-20 23:54:23 +02:00
Daniël Klabbers
b3ca59615b update constraint 2019-06-24 12:02:29 +02:00
Daniël Klabbers
4b7b8a8fa4 changelog for 0.1.0-beta.9 2019-06-24 11:26:45 +02:00
Franz Liedke
2f270c7c73 Update changelog 2019-06-13 01:32:03 +02:00
lubo
8ec05c4905 bugfix when posts is not needed when showing discussion (#17)
When accessing /api/discussion/[id]?include=user, NOTICE occurs
2019-03-25 11:04:30 +01:00
Franz Liedke
979030432f Update changelog 2019-02-15 00:30:00 +01:00
Daniël Klabbers
b20d590289 revert the fix index names logic, preparing for illuminate 5.7 2019-01-15 21:03:12 +01:00
Franz Liedke
8aab6111ec Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-15 16:47:41 +01:00
Toby Zerner
ffc78a0218 Add changelog 2018-12-07 09:12:57 +10:30
Toby Zerner
6d554ad499 Fix travis builds 2018-12-04 10:16:33 +10:30
Franz Liedke
ae3d1f5f5f Migrations: Fix dropping foreign keys
Passing an array to dropForeign does not mean dropping multiple indices,
but rather dropping a key on multiple tables.

Passing a string means that this string will be interpreted as index
name, not as name of the indexed column. Passing an array with one
string is therefore correct, in order to benefit from automatic index
name generation.
2018-11-30 14:04:12 +01:00
Toby Zerner
2722a0f2c5 Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:33:21 +10:30
Toby Zerner
60e80d45ca 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
bd0e815c32 Bundled output for commit 4f79706eaf [skip ci] 2018-11-21 08:20:13 +00:00
Toby Zerner
4f79706eaf Make npm package private, update deps, change watch to dev 2018-11-21 18:44:58 +10:30
Toby Zerner
174108c318 Remove copyright year from LICENSE 2018-11-21 18:37:20 +10:30
flarum-bot
60c955f3af Bundled output for commit 339255f4fd [skip ci] 2018-11-17 08:37:11 +00:00
Toby Zerner
339255f4fd Update dependencies 2018-11-17 19:05:59 +10:30
flarum-bot
e0d996401a Bundled output for commit 3461537e8a [skip ci] 2018-11-15 06:12:22 +00:00
Toby Zerner
3461537e8a Prefix compat exports 2018-11-15 16:41:18 +10:30
flarum-bot
4590344da7 Bundled output for commit d3786021b1 [skip ci] 2018-10-21 04:49:52 +00:00
Toby Zerner
d3786021b1 Rename package 2018-10-21 15:16:21 +10:30
Toby Zerner
a00d10eb1c Rename package 2018-10-17 13:44:47 +10:30
Toby Zerner
6e04891ef6 Add database indices. ref flarum/core#127 (#16) 2018-09-24 23:49:46 +02:00
Toby Zerner
795d7c4b3f Rename bootstrap.php 2018-09-21 11:46:57 +09:30
flarum-bot
771983f6a2 Bundled output for commit 947378fa61 [skip ci] 2018-09-21 01:02:19 +00:00
Toby Zerner
947378fa61 Update dependencies 2018-09-21 10:25:47 +09:30
flarum-bot
56e94f4918 Bundled output for commit ec60fed381 [skip ci] 2018-09-16 18:50:42 +00:00
Toby Zerner
ec60fed381 Database changes (#15)
* Implement database changes

* Split foreign keys into their own migration

* Use whereColumn

* Rename flag.time

* Rename forum.flagCount

* Rename forum.newFlagCount
2018-09-16 20:49:41 +02:00
Franz Liedke
f218f14160 Use new Frontend extender
See flarum/core#851.
2018-07-23 16:28:34 +02:00
flarum-bot
25e7e2aa4c Bundled output for commit 19d5bf498f [skip ci] 2018-06-20 05:25:31 +00:00
Toby Zerner
19d5bf498f Fix Travis' deploy key 2018-06-20 14:31:12 +09:30
Toby Zerner
0cc59d725f Remove progress flag 2018-06-20 13:54:01 +09:30
Toby Zerner
ec6cd07f94 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:35:25 +09:30
Ammar Fadhlur Rahman
4acd676543 Change fa icon prefix to fas 2018-05-10 14:58:35 +07:00
AFR
1e61e2e5a1 Adapt to FontAwesome v5.0.6 icon name changes (#12) 2018-02-23 23:44:03 +01:00
Franz Liedke
5087ba4148 Remove unused imports 2018-02-08 18:26:43 +01:00
Franz Liedke
c797732e60 Use Routes extender 2018-02-08 18:21:29 +01:00
Franz Liedke
da075a3d0f Extender: List all assets explicitly 2018-01-21 21:09:16 +01:00
Franz Liedke
95f70cae7a Adapt new bootstrap format, use Asset extender 2018-01-16 23:18:17 +01:00
Miles Cellar
3ce7b8f62f Update license year range to 2018 2018-01-15 19:37:54 +01:00
Toby Zerner
d14b20ca74 Change fire → dispatch
See a6c5128b46
2018-01-11 12:44:22 +10:30
Toby Zerner
7cecf23b0c Require beta 8 2018-01-11 12:25:15 +10:30
Toby Zerner
53b793845a Fix class name 2017-12-27 16:09:35 +10:30
Franz Liedke
bd635b55f7 Fix class names 2017-10-03 19:45:26 +02:00
Franz Liedke
494f953ace Update namespaces for beta 8
Refs flarum/core#1235.
2017-10-01 19:56:38 +02:00
Toby Zerner
3bca855696 Add default permissions 2017-07-22 12:20:24 +09:30
VSN Reddy Janga
4aff33e670 Hide diff for compiled diff files 2017-02-20 19:38:38 +05:30
Miles Cellar
b3476e742c Update year 2017-01-01 22:45:39 +01:00
Toby Zerner
1a85493f19 Apply fixes from StyleCI
[ci skip] [skip ci]
2016-11-29 05:29:39 +00:00
Toby Zerner
d862763b67 Recompile JS 2016-11-19 22:06:53 +10:30
Toby Zerner
9f72d5be1b Update StyleCI rules 2016-11-16 15:46:13 +10:30
Toby Zerner
394a56043d v0.1.0-beta.6 2016-10-19 21:13:08 +10:30
Toby Zerner
b6545a5f8e Use new event name 2016-06-03 11:01:31 +09:30
Toby Zerner
b11659de2f Recompile dist JS using latest version of babel 2016-06-03 11:01:25 +09:30
Toby Zerner
823233b0da Generalise the potential for display of flags 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 flagged.
2016-05-28 09:53:42 +09:30
Toby Zerner
fbad6ab8cb Add label to dismiss flag button, change icon to eye-slash
ref #7 cc @jordanjay29
2016-05-21 20:35:13 +09:30
jordanjay29
044d43c18c Change fa-times to fa-cancel
Mitigates confusion over button's immediate action, whether it will dismiss flag or delete post. In isolation, fa-times looks ambiguous enough to delete the post, which may delay a moderator's action when choosing how to respond. By replacing it with fa-ban, it should be immediately obvious that the action taken by the button will dismiss the flag, and not modify the post at all.
2016-05-15 21:48:56 -05:00
Franz Liedke
d5740edb1b Recompile JS 2016-04-15 21:18:54 +09:00
dcsjapan
a5e9cc614f Extract translation from FlagList.js
Fixes flarum/core#931.
2016-04-15 21:13:29 +09:00
Toby Zerner
25657b0eb7 Require core v0.1.0-beta.5 2016-03-29 18:46:04 +10:30
Toby Zerner
dccbece380 Remove unmaintained changelog 2016-03-18 09:32:48 +10:30
Toby Zerner
a16dc26164 Upgrade to flarum-gulp 0.2.0 / Babel 6 2016-03-18 09:32:41 +10:30
Toby Zerner
2b348187d2 Clean up linting stuff 2016-03-10 17:22:43 +10:30
Franz Liedke
badd2abff4 Use new shortcuts for migrations 2016-03-04 01:11:25 +09:00
Toby Zerner
bc1d5f9a7a Applied fixes from StyleCI 2016-02-25 22:51:10 -05:00
Toby Zerner
b54d8713b4 Add StyleCI config 2016-02-26 14:02:07 +10:30
Franz Liedke
e62dd6a3a1 Use new migration format 2016-02-24 23:12:36 +09:00
Maël Soucaze
c13b90274c Update license year range to 2016 2016-01-25 16:46:33 +01:00
Franz Liedke
301ff7e8b2 Expose creation time in flag serializer
Fixes flarum/core#651.
2016-01-20 21:06:37 +01:00
Toby Zerner
c52d32fbd0 Remove usage of finally
See flarum/core@60d78ce
2016-01-19 18:58:15 +10:30
Toby Zerner
88a06b1843 Add Composer branch-alias
This allows installations to require version 0.1.0 with minimum-stability=dev, and they will get the latest from master.

See flarum/core#727
2016-01-19 17:18:56 +10:30
Toby Zerner
3972df0b09 Rename package 2015-12-29 12:55:18 +10:30
Toby Zerner
507b7bae84 Release 0.1.0-beta.4 2015-11-05 16:41:01 +10:30
Toby Zerner
f2cf356542 Show success message after submitting a flag 2015-11-04 12:59:43 +10:30
Toby Zerner
379b1f0831 Expand reason descriptions and add configurable link to community guidelines 2015-11-04 12:59:29 +10:30
Toby Zerner
39b8f0ad7a Release 0.1.0-beta.3 2015-11-03 10:03:08 +10:30
Toby Zerner
8d50251ec5 Make sure we don't accidentally load all of a discussion's posts 2015-11-02 22:17:21 +10:30
Toby Zerner
5be607a6a7 Translations are now automatically included 2015-11-02 18:52:17 +10:30
Toby Zerner
c39f4f01ea Fix flag count queries 2015-10-31 14:49:44 +10:30
Toby Zerner
0ec3b0aabb Update serializer API 2015-10-30 22:45:26 +10:30
Toby Zerner
7db94e6bc5 Update ItemList API 2015-10-30 22:45:07 +10:30
Toby Zerner
50645c5db9 Update API relationship listener 2015-10-30 11:06:50 +10:30
Toby Zerner
f637b160fd Recompile JS 2015-10-27 12:38:24 +10:30
Toby Zerner
8e5a19962f Recompile JS 2015-10-27 12:16:28 +10:30
dcsjapan
6b5ac48c43 Fix key names in Flags
- Fixes a few key name errors in PR #1
2015-10-21 19:32:23 +09:00
dcsjapan
634d98cf8b Delete unnecessary brackets
- Removes unneeded brackets from FlagPostModal.js
- Sorry 'bout that, Chief!
2015-10-21 17:53:36 +09:00
dcsjapan
3302ea0e1e Reorganize key names
See [flarum/core #265](https://github.com/flarum/core/issues/265).

- Adjusts key names to three-tier namespacing.
- Extracts previously unextracted strings.

Supported by [flarum/english #13](https://github.com/flarum/english/pull/13).
2015-10-21 15:22:49 +09:00
Toby Zerner
add40d3268 Change app.trans calls to app.translator.trans calls 2015-10-21 10:28:20 +10:30
Toby Zerner
281f1f39c2 Revert part of last commit 2015-10-20 22:06:44 +10:30
Toby Zerner
726d17dc4a Use more concise error handling 2015-10-20 12:50:04 +10:30
Toby Zerner
e357d2b535 Add third state to flags header icon
closes flarum/core#500
2015-10-19 16:20:00 +10:30
Toby Zerner
8a1c5cf24c Don't set flags relationship on non-hydrated posts 2015-10-14 12:26:13 +10:30
Toby Zerner
dc6eb4d4ad Initialise component state in init() instead of constructor 2015-10-13 16:58:43 +10:30
Toby Zerner
41985eb0c3 Update icon, metadata 2015-10-12 15:00:36 +10:30
Toby Zerner
5f9d45c4ab Update for composer branch 2015-10-11 18:51:25 +10:30
Toby Zerner
a1e01938ef Rename to Flags, tweak flag controls
- Display post "destructiveControls" in flag instead of custom buttons
- Make flags more versatile/extensible
- Delete associated flags when a post is deleted

Uninstall the Reports extension before installing.
2015-09-22 18:14:33 +09:30
Toby Zerner
8da417c5b5 Add gitattributes 2015-09-17 09:09:26 +09:30
Toby Zerner
14884928a8 Namespace migrations 2015-09-17 09:09:21 +09:30
Toby Zerner
e50f21905f Fix report modal not submitting 2015-09-15 12:54:38 +09:30
Toby Zerner
3b3877d690 Update for new post layout 2015-09-15 12:54:27 +09:30
Toby Zerner
cb6347ef6a Initial commit 2015-09-04 13:26:51 +09:30