Commit Graph

322 Commits

Author SHA1 Message Date
Franz Liedke
9587d3b416 npm audit fix 2020-04-24 14:30:29 +02:00
dependabot[bot]
dd89498150 Bump acorn from 6.4.0 to 6.4.1 in /js (#45)
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 21:52:38 +01:00
Robert Turner
9c674f0a8b Fix mentioning a deleted user's post (#41)
Fixes #1956 - ErrorException: Trying to get property 'display_name' of 
non-object. ConfigureMentions::addPostId method set mention details 
based on if there was an existing post. This caused an error if there 
was an existing post, but the user who posted had been deleted. The 
mention details are now only set if there is a user associated with the 
post being mentioned.
2020-03-06 23:04:24 +01:00
Daniël Klabbers
090483e3ab remove author, updated deps 2020-03-03 14:29:50 +01:00
flarum-bot
62ec7dc2fc Bundled output for commit 969638a311 [skip ci] 2020-02-11 20:44:30 +00:00
Franz Liedke
969638a311 Update Webpack 2020-02-11 21:43:28 +01:00
Franz Liedke
3390bd5b02 Apply fixes from StyleCI 2019-11-29 23:02:17 +00:00
Franz Liedke
8227426aa0 Update copyright claims in LICENSE 2019-11-30 00:01:02 +01:00
Daniël Klabbers
0b80dfe837 updated requirement with flarum/core 2019-09-16 09:34:22 +02:00
Franz Liedke
9bb4894ec0 Update changelog for beta.10 2019-09-15 22:43:58 +02:00
Franz Liedke
d9fb5ab31b Update vulnerable JS dependencies 2019-09-13 15:33:06 +02:00
Franz Liedke
dd43db2ddb Add GitHub workflow for JavaScript building 2019-08-20 23:54:24 +02:00
Shivanshu Patel
7afdbb1ea9 Remove like with and compare with equals (#37)
`_` is special character in mysql so like query was fetching different result for user who's unsername starts with or contains `_`
2019-08-16 15:57:35 +02:00
Daniël Klabbers
f21b062b3d update constraint 2019-06-24 12:01:04 +02:00
Daniël Klabbers
6b8fc76283 changelog for 0.1.0-beta.9 2019-06-24 11:23:29 +02:00
Franz Liedke
0e0159c397 Update changelog 2019-06-13 01:32:20 +02:00
bdumaspilhou
b9c4a003f2 Fixes : use display_name in mail and in subject (#35) 2019-03-06 23:25:23 +01:00
Franz Liedke
55b1fd5461 Update changelog 2019-02-15 00:30:03 +01:00
Franz Liedke
95d01f3136 Depend on Laravel 5.7 for correct index names 2019-02-03 20:51:10 +01:00
Franz Liedke
70a66a9529 Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-16 16:24:05 +01:00
Franz Liedke
c2cabd7c2e I can do this! 2018-12-15 16:24:31 +01:00
Franz Liedke
99adb8e998 Fix copy-paste mistake 2018-12-15 16:01:03 +01:00
Franz Liedke
3656072ff4 Use Formatter extender to avoid resolving the UrlGenerator too early
Refs flarum/core#1578.
Fixes flarum/core#1703.
2018-12-15 12:06:58 +01:00
Franz Liedke
875daf3ce2 Rely on TextFormatter to unparse the post content
Refs flarum/core#920.
Possibly fixing flarum/core#537.
2018-12-11 22:56:16 +01:00
Toby Zerner
4ce3348e1e Add changelog 2018-12-07 09:12:41 +10:30
flarum-bot
ce1f81a460 Bundled output for commit 87ed42157f [skip ci] 2018-12-03 23:43:48 +00:00
Toby Zerner
87ed42157f Fix travis builds 2018-12-04 10:11:51 +10:30
Toby Zerner
e2bb04ce34 Truncate notification excerpts 2018-12-03 09:37:01 +10:30
Franz Liedke
731da10088 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:44 +01:00
Toby Zerner
147fc1a65e Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:33:45 +10:30
Toby Zerner
814a47c00f 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
4f190d6b74 Bundled output for commit 2786476ab1 [skip ci] 2018-11-21 08:23:18 +00:00
Toby Zerner
2786476ab1 Make npm package private, update deps, change watch to dev 2018-11-21 18:45:36 +10:30
Toby Zerner
3225539c0b Remove copyright year from LICENSE 2018-11-21 18:37:21 +10:30
flarum-bot
a808ccab69 Bundled output for commit 54660c2cc8 [skip ci] 2018-11-17 08:37:36 +00:00
Toby Zerner
54660c2cc8 Update dependencies 2018-11-17 19:06:29 +10:30
flarum-bot
c8a3c3c22b Bundled output for commit 1f04c732a0 [skip ci] 2018-11-14 03:07:37 +00:00
Toby Zerner
1f04c732a0 Fix cursor not being placed correctly after mention insertion 2018-11-14 13:36:21 +10:30
Toby Zerner
7075998b87 Use canonical username for user profile link. fixes flarum/core#1265 2018-11-14 12:10:24 +10:30
flarum-bot
7929d2e4bf Bundled output for commit dd500ec54b [skip ci] 2018-11-12 10:35:09 +00:00
Toby Zerner
dd500ec54b Add mention button to text editor toolbar 2018-11-12 17:37:25 +10:30
flarum-bot
d34c7745f8 Bundled output for commit 4bd704c9c5 [skip ci] 2018-11-06 08:42:37 +00:00
Toby Zerner
4bd704c9c5 Trigger mention autocomplete on any kind of input 2018-11-06 19:11:25 +10:30
flarum-bot
6a2ed43a51 Bundled output for commit 5a35480db2 [skip ci] 2018-10-21 04:51:03 +00:00
Toby Zerner
5a35480db2 Rename package 2018-10-21 15:16:21 +10:30
Toby Zerner
068f55e8e6 Rename package 2018-10-17 13:44:48 +10:30
flarum-bot
3fda95bd34 Bundled output for commit f11562f27b [skip ci] 2018-09-21 02:23:13 +00:00
Toby Zerner
f11562f27b Fix user mentions page 2018-09-21 11:52:13 +09:30
Toby Zerner
6700eeecfd Rename bootstrap.php 2018-09-21 11:48:36 +09:30
flarum-bot
11c581d3f7 Bundled output for commit 8d67e6dcf5 [skip ci] 2018-09-21 02:12:33 +00:00
Toby Zerner
8d67e6dcf5 Fix live preview 2018-09-21 11:41:32 +09:30
flarum-bot
78050e8c4e Bundled output for commit 061a6cdafa [skip ci] 2018-09-21 01:59:11 +00:00
Toby Zerner
061a6cdafa Remove notification pluralization logic
Since we don't return an "unread count" in the API, this pluralization
logic is useless at the moment. Related to #643 and #716 but really
needs further thought in #868.
2018-09-21 11:28:11 +09:30
flarum-bot
f7df6b7d58 Bundled output for commit dffcb660aa [skip ci] 2018-09-21 01:03:27 +00:00
Toby Zerner
dffcb660aa Update dependencies 2018-09-21 10:25:47 +09:30
flarum-bot
c1b2427e16 Bundled output for commit 67c7b45dc8 [skip ci] 2018-09-16 18:52:34 +00:00
Toby Zerner
67c7b45dc8 Database changes (#34)
* Implement database changes

* Split foreign keys in to their own migrations; rename pivot tables

* Use whereColumn

* Update core attribute names
2018-09-16 20:50:16 +02:00
Franz Liedke
f8ad54cb1f Use new Frontend extender
See flarum/core#851.
2018-07-23 16:29:48 +02:00
flarum-bot
800e68bf4c Bundled output for commit 2e9c184b3b [skip ci] 2018-07-23 12:29:20 +00:00
Franz Liedke
2e9c184b3b Fix positioning of mention dropdown
Previously, the positioning logic did not account for the case
when the textarea was already scrolled down a bit, thus often
rendering the dropdown off-screen.

Fixes flarum/core#1021.
2018-07-23 14:28:09 +02:00
flarum-bot
8214638cb5 Bundled output for commit 20ddf72ec9 [skip ci] 2018-06-20 05:19:54 +00:00
Toby Zerner
20ddf72ec9 Fix Travis' deploy key 2018-06-20 14:30:24 +09:30
Toby Zerner
42235cbed2 Remove progress flag 2018-06-20 13:54:01 +09:30
Toby Zerner
d1f4d5a739 Webpack (#33)
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:33 +09:30
Ammar Fadhlur Rahman
ca805afdfe Change fa icon prefix to fas 2018-05-10 15:01:02 +07:00
Clark Winkelmann
5bf642046d Remove unused parameter 2018-03-07 04:04:19 +01:00
AFR
c5818ba87d Adapt to FontAwesome v5.0.6 icon name changes (#30) 2018-02-23 23:43:43 +01:00
Toby Zerner
11292223a7 Fix incorrect query parameter when searching for users 2018-02-09 07:41:25 +10:30
Franz Liedke
c25b8e1510 Extender: List all assets explicitly 2018-01-21 21:09:52 +01:00
Franz Liedke
30e21bb37d Remove unused import 2018-01-17 08:27:19 +01:00
Franz Liedke
ee07f29d5a Adapt new bootstrap format, use Asset extender 2018-01-16 23:27:32 +01:00
Miles Cellar
b4ee4a6299 Update license year range to 2018 2018-01-15 19:36:14 +01:00
Toby Zerner
ba4ce1a9c9 Require beta 8 2018-01-11 12:25:45 +10:30
Toby Zerner
89ec1d77df Fix class names 2017-12-27 16:09:20 +10:30
Toby Zerner
2d9839ee66 Fix relationship method arguments
As per https://laravel.com/docs/5.5/upgrade (under "Eloquent")
2017-12-26 20:21:47 +10:30
Toby Zerner
c145121516 Merge branch 'master' into next-back
# Conflicts:
#	src/Listener/AddPostMentionedByRelationship.php
#	src/Listener/FormatPostMentions.php
#	src/Listener/FormatUserMentions.php
#	src/Listener/UpdatePostMentionsMetadata.php
#	src/Listener/UpdateUserMentionsMetadata.php
2017-12-26 20:20:31 +10:30
Toby Zerner
14215773b3 Fix positioning of quote button when parents are positioned relatively 2017-11-10 17:45:21 +10:30
Toby Zerner
101af171b1 Don't sanitize values in plain-text emails 2017-11-05 15:29:46 +10:30
Franz Liedke
41980082ea Fix class names 2017-10-03 19:44:29 +02:00
Franz Liedke
d528cd03e2 Fix class names 2017-10-03 19:22:33 +02:00
Franz Liedke
3fc150cd23 Update namespaces for beta 8
Refs flarum/core#1235.
2017-10-01 20:25:23 +02:00
Toby Zerner
17e181bb0d Fix notifications not including post content 2017-09-22 16:45:45 +09:30
Toby Zerner
fa3194fcef Apply fixes from StyleCI
[ci skip] [skip ci]
2017-09-20 07:37:55 +00:00
Toby Zerner
408d882598 Update to sub in "display names" from database when rendering
This also improves the behaviour of mentions in the JS preview (no more
broken links, mention is only picked up if corresponding user/post is
found).

See flarum/core#1246

Closes flarum/core#315
2017-09-19 20:16:30 +09:30
Toby Zerner
acd3195491 Make autocomplete dropdown slightly less tall so that it fits below the cursor 2017-09-19 19:38:02 +09:30
Toby Zerner
53e63069c1 Properly inactivate the autocomplete dropdown when there are no suggestions 2017-09-19 19:35:44 +09:30
Clark Winkelmann
86496f3e06 Keep images and links when quoting (#25)
* Keep images and links when quoting

* Fix bower dependencies
2017-06-29 08:26:15 +09:30
Clark Winkelmann
2bbf4a2b4b Drop bower usage (#27) 2017-06-29 08:25:24 +09:30
David Sevilla Martín
eac6e2e32f Use mentioned_by_self_text correctly (#26)
* Use mentioned_by_self_text correctly

* Whoops! Use , not david

* Fix dist js error
2017-06-25 10:54:18 +09:30
Franz Liedke
425a612537 Recompile dist JS 2017-03-06 22:01:14 +01:00
Franz Liedke
04b32d9abc Improve order of mention auto-completes
Suggest plain mention of username before explicitly replying to a
specific post.

Closes flarum/core#1118.
2017-03-06 22:00:25 +01:00
VSN Reddy Janga
85f72f34c9 Hide diff for compiled diff files 2017-02-20 19:29:57 +05:30
Miles Cellar
cc731baab0 Update year 2017-01-01 22:46:42 +01:00
Toby Zerner
1d79d8edeb Apply fixes from StyleCI
[ci skip] [skip ci]
2016-11-29 05:29:44 +00:00
Toby Zerner
26caab7923 Recompile JS 2016-11-19 22:09:04 +10:30
Toby Zerner
12d955a5d2 Update StyleCI rules 2016-11-16 15:46:20 +10:30
Toby Zerner
45589c482c v0.1.0-beta.6 2016-10-19 21:13:31 +10:30
Toby Zerner
de7d450093 Don't show quote button until after selection has been made 2016-10-18 22:26:04 +10:30
Toby Zerner
18a4b6d4b1 Fix another fatal error 2016-09-03 22:32:06 +09:30
Toby Zerner
ab6e899c7e Fix fatal error when viewing a discussion with multiple pages of posts 2016-09-03 22:30:22 +09:30
Toby Zerner
f267a63ffe Apply visibility permissions to mentionedBy relationship. fixes flarum/core#853 2016-09-03 21:50:09 +09:30
Wietse Wind
9ca106e136 Amend Pull Request #21 2016-08-29 09:37:20 +02:00
Wietse Wind
bb35bd5268 Fix: Someuser vs. You (mention) -- In English: the same. In Dutch: Jij hebt / Someuser HEEFT -> _self text was ignored, comparing POST with USER object. 2016-08-29 09:27:30 +02:00
Toby Zerner
bfa9a1d68e Support quote button on mobile; make reply button behaviour consistent
closes flarum/core#972
2016-06-03 11:24:33 +09:30
Toby Zerner
999ef82d55 Use new event name 2016-06-03 11:02:05 +09:30
Sjjad Hashemian
496995d55a Fix quote emoji icons 2016-06-02 15:45:04 +04:30
Toby Zerner
fd59f0ee48 Prevent mentions summary from blocking post controls 2016-05-26 22:26:05 +09:30
Toby Zerner
310fed2329 Tweak quote button positioning/style
Now appears where your cursor ends the selection, but not overlapping text.
2016-05-22 14:05:38 +09:30
Sajjad Hasehmian
a05600b91e Show quote button when post text is selected
closes #19 closes flarum/core#320
2016-05-21 21:37:48 +09:30
Franz Liedke
8c280b0b15 Use newly extracted KeyboardNavigatable util for emoji dropdown
Refs flarum/core#264.
2016-05-15 22:42:15 +09:00
Toby Zerner
ff54deb83d Require core v0.1.0-beta.5 2016-03-29 18:47:56 +10:30
Toby Zerner
865238df81 Add logic to make sure post mention preview isn't hidden by header. closes flarum/core#316 2016-03-28 13:33:46 +10:30
Franz Liedke
2ddfb11614 Make StyleCI happy 2016-03-23 19:56:24 +09:00
Toby Zerner
febf4356c0 Upgrade to flarum-gulp 0.2.0 / Babel 6 2016-03-18 09:33:14 +10:30
Toby Zerner
cf6bab926d Merge pull request #18 from sijad/access-check
Check access before send Mention notification
2016-03-11 13:33:18 +10:30
Toby Zerner
ce8165bc2e Clean up linting stuff 2016-03-10 17:22:18 +10:30
Sajjad Hasehmian
6f39123bad Check access before send Mention notification 2016-03-04 13:53:15 +03:30
Franz Liedke
ec3db146fc Use new shortcuts for migrations 2016-03-04 01:12:03 +09:00
Toby Zerner
47ec802166 Applied fixes from StyleCI 2016-02-25 22:56:19 -05:00
Toby Zerner
331a48be66 Add StyleCI config 2016-02-26 14:02:36 +10:30
Franz Liedke
f270a609cb Use new migration format 2016-02-24 23:13:28 +09:00
Franz Liedke
b656f6f54c Recompile JS 2016-02-23 10:15:43 +09:00
Franz Liedke
d97ad5f32c Use variable instead of closure 2016-02-23 10:11:43 +09:00
Daniel Klabbers
da59430cb7 fixes flarum/core#781 adding unnecessary newlines with empty composer
fixing indentation
2016-02-22 22:22:51 +01:00
Franz Liedke
ab920bab05 Fix typo 2016-02-10 15:20:52 +01:00
Sajjad Hasehmian
b4d7c18eb9 Add Mentions section to user profile (fixes flarum/core#319) 2016-02-04 01:04:08 +03:30
Maël Soucaze
7bd1f7319d Update license year range to 2016 2016-01-25 16:48:30 +01:00
Franz Liedke
5fa9d58062 #317: Better reply insertion intelligence 2016-01-20 20:18:55 +01:00
Toby Zerner
48c398df98 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:23 +10:30
Toby Zerner
a5a7cfee9d Commit latest dist files
See https://github.com/flarum/core/issues/727#issuecomment-172384020
2016-01-19 16:52:55 +10:30
Toby Zerner
37ff7fdf1d Use URL generator for mention href 2015-12-30 15:28:22 +10:30
Toby Zerner
9af74f89d7 Rename package 2015-12-29 12:55:37 +10:30
Toby Zerner
4cb764e603 Don't directly change TextEditor styles 2015-11-21 13:11:22 +10:30
Toby Zerner
4bae199bdb Release 0.1.0-beta.3 2015-11-03 10:03:33 +10:30
Toby Zerner
5ffac115ad Translations are now automatically included 2015-11-02 18:52:41 +10:30
Toby Zerner
25e8c53af3 Temporary fix for email URLs 2015-11-01 17:13:48 +10:30
Toby Zerner
7b3cd8b1c1 Fix user mentioned notification registration 2015-10-31 18:18:44 +10:30
Toby Zerner
76b676d489 Update API relationship listener 2015-10-30 11:07:03 +10:30
Toby Zerner
56d4fb1c73 Recompile JS 2015-10-27 12:16:54 +10:30
Toby Zerner
3d7fcaa2b2 Truncate list of replies, pluralize notification text
ref flarum/core#597
2015-10-24 13:14:57 +10:30
dcsjapan
792afbb476 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.
- Changes an instance of `punctuate` to `punctuateSeries`.
- Modifies the syntax of **addMentionedByLIst.js** slightly.
2015-10-23 14:41:31 +09:00
Franz Liedke
c61f49efbc Recompile JavaScript 2015-10-22 10:52:07 +02:00
Toby Zerner
3dd2260b0f Change app.trans calls to app.translator.trans calls 2015-10-21 10:29:17 +10:30
Toby Zerner
49ed9c7dde Fix error when replying to a post by a deleted user 2015-10-19 16:18:26 +10:30
Toby Zerner
4d5a291d76 Initialise component state in init() instead of constructor 2015-10-13 16:58:51 +10:30
Toby Zerner
b00467ecd7 Update metadata 2015-10-12 15:01:11 +10:30
Toby Zerner
83f5981f83 Update compile script 2015-10-11 15:28:35 +10:30
Toby Zerner
ccda85cc29 Update for composer branch 2015-10-11 13:02:57 +10:30
Toby Zerner
36607a92cc Add gitattributes 2015-09-17 09:09:41 +09:30
Toby Zerner
354da3c5c9 Namespace migrations 2015-09-17 09:09:37 +09:30