Commit Graph

8565 Commits

Author SHA1 Message Date
SychO9
19da2e9827 Minor flarum update 2021-09-27 10:16:01 +01:00
SychO9
2812eada2c show remove option only when extension is disabled and isn't the package manager 2021-09-25 20:42:44 +01:00
Sami Mazouz
babc1317c5 Filter composer icon array to only valid values (#3080) 2021-09-25 18:35:27 +01:00
SychO9
b3a62bbac4 Add Extension Updating 2021-09-25 18:33:17 +01:00
SychO9
26e09d1e9d Add Update Checker 2021-09-25 13:59:59 +01:00
SychO9
40e0a9672b File permissions alert and clear command failure message. 2021-09-22 22:08:51 +01:00
David Wheatley
b92c8e9079 performance(frontend): Preload FontAwesome, JS and CSS (#3057)
* Add preloads support to Document class

* Add frontend extender for asset preloading

* Provide default preloads for FontAwesome

* Add tests for preload extender and default preloads

* Apply fixes from StyleCI

[ci skip] [skip ci]

* Fix typo

* Fix two more typos 🙃

* Preload core JS and CSS

* Apply fixes from StyleCI

[ci skip] [skip ci]

* Reorder preloads

* Remove singular preloads method

* Use filesystem disk driver for getting FA font paths

* Update test to use full URL

* Apply fixes from StyleCI

[ci skip] [skip ci]

* Address review comment

* Apply fixes from StyleCI

[ci skip] [skip ci]

* Fix typo

* Apply fixes from StyleCI

[ci skip] [skip ci]

* Correct callback wrapping

* Update src/Extend/Frontend.php

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>

* Update src/Extend/Frontend.php

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>

* Update src/Extend/Frontend.php

* Fix preload extender logic

* Convert base FontAwesome preloads into a Singleton

* Apply fixes from StyleCI

[ci skip] [skip ci]

Co-authored-by: luceos <luceos@users.noreply.github.com>
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
Co-authored-by: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com>
Co-authored-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com>
2021-09-20 23:12:09 +01:00
flarum-bot
48b29b90db Bundled output for commit 8111b5a56c
Includes transpiled JS/TS.

[skip ci]
2021-09-20 22:07:46 +00:00
David Sevilla Martin
8111b5a56c Prevent browser/system shortcuts from triggering when applying editor style from shortcut (#32) 2021-09-20 18:06:47 -04:00
flarum-bot
798fadbddc Bundled output for commit 6173c3d612
Includes transpiled JS/TS.

[skip ci]
2021-09-20 17:43:50 +00:00
David Wheatley
6173c3d612 Minor refactors in frontend JS (#69)
* Add Prettier

* Update dependencies; add typescript setup

* Add tsconfig

* Rewrite some mentions frontend into TS

* Fix use of username instead of display name

* Change back to JS

* Remove commented code

* Update function name to match filename

* Update getMentionText.js

* Simplify condition

* Bump packages to stable versions; use prettier package

* Make functions use camel case

* Update js/package.json

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>

* Don't access data directly

* Update js/src/forum/addComposerAutocomplete.js

Co-authored-by: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com>

* Update tsconfig.json

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
Co-authored-by: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com>
2021-09-20 18:42:38 +01:00
SychO9
ea5ee5a9a3 Merge remote-tracking branch 'origin/1.0.5' 2021-09-20 16:56:28 +01:00
Sami Mazouz
b020db4f46 Fix unauthorized view of restricted tags (#145)
* test: Not allowed to see tags even if included as a relation
* fix: Scope loaded related tags where actor has permission
2021-09-20 16:51:28 +01:00
Alexander Skvortsov
acaa23d2a5 Add determinsm to extension order resolution (#3076)
By sorting alphabetically by extension ID before applying topological sort, we ensure that a given set of extensions will always be booted in the same order. This will make it easier to replicate issues caused by complex extension dependencies.
2021-09-20 11:40:00 -04:00
Sami Mazouz
2f37a8bd58 Fix discussions hidden from all users including admins (#140)
* test: Start by adding tests for this case scenario
* fix: All discussions hidden from everyone when minSecondary > 0 and no secondary tags
* test: Test the scenario for primary tags as well
* fix: Properly fix the general case of more tags required than available
* Adjust to only check with the `viewForum` ability
* Test Cases for private discussions
2021-09-20 16:19:43 +01:00
flarum-bot
0090f97f9a Bundled output for commit b099a3843d
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-09-20 15:08:49 +00:00
flarum-bot
8e912e9e7b Bundled output for commit 3e3fa6535d
Includes transpiled JS/TS.

[skip ci]
2021-09-20 15:07:38 +00:00
David Wheatley
3e3fa6535d Repo maintenance (#30)
* Bump deps; add TS support; use Prettier

* Format

* Update js/package.json

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>

* Update lockfile

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2021-09-20 16:06:32 +01:00
David Wheatley
b099a3843d [A11Y] Accessibility improvements for the Search component (#3017)
* Remove deprecated code

* Accessibility improvements for Search component
2021-09-20 16:06:15 +01:00
flarum-bot
153138c770 Bundled output for commit e376358e64
Includes transpiled JS/TS.

[skip ci]
2021-09-20 14:20:01 +00:00
Hasan Özbey
e376358e64 Add spoiler and strikethrough buttons (#30)
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2021-09-20 10:18:48 -04:00
Sami Mazouz
0fea85d37c fix: Sanitise integer query parameters (#3064) 2021-09-17 20:50:11 +01:00
David Wheatley
44a80fc8fb [A11Y] Adds missing focus rings back to control elements (#3016)
* Remove the stuff that removes critical accessibility features

* Remove no outline from basic blade layout

* Remove focus outline from FormControls
2021-09-13 23:47:13 +01:00
flarum-bot
ec0184cb66 Bundled output for commit 7bada1f578
Includes transpiled JS/TS.

[skip ci]
2021-09-13 21:30:19 +00:00
Rafael Horvat
7bada1f578 Exported (compat) getSelectableTags utils (#144) 2021-09-13 22:29:08 +01:00
flarum-bot
92af39b6b6 Bundled output for commit acd19c6fa2
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-09-11 08:26:35 +00:00
Rafael Horvat
acd19c6fa2 Use author filter parameter instead of q with gambit to get a user's discussions on the DiscussionsUserPage (#3068) 2021-09-11 09:24:15 +01:00
David Wheatley
628019eddc v1.0.2 2021-09-10 19:16:19 +01:00
David Wheatley
ad02f0845d Add support for Array.flat() as per core polyfill 2021-09-10 19:08:58 +01:00
Sami Mazouz
e4e3eb22f4 [1.x] Theme Extender to Allow overriding LESS files (#3008)
This PR introduces the ability to just override a LESS file's contents through an extender.
This is mainly useful for theme development, as there are times in extensively customized themes where overriding the actual file makes a huge difference vs overriding CSS styles which can turn into a maintenance hell real fast.

Overriding styles is more tedious than overriding files. When you're designing an element, you would normally rather start from a blank canvas, than a styled element. With an already styled element you have to first override and undo the styles you do not wish to have, only then can you start shaping it, but even then you'd always end up constantly undoing default styles. This mostly applies for more advanced themes. (example: 851c55516d/less/forum/DiscussionList.less)
2021-09-10 13:45:18 -04:00
flarum-bot
31961c4490 Bundled output for commit b330a14f51
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-09-06 00:46:37 +00:00
David Sevilla Martín
b330a14f51 Add extra error handling for avatar file size & large payload (#3042)
* Add extra error handling for avatar file size & large payload

* Change error message to return 'upload failure' on most errors instead of 'no file' message
2021-09-05 20:43:59 -04:00
Sami Mazouz
637d403485 fix: Unable to use permission grid dropdowns due to z-index mistake (#3065)
The one I had suggested here: https://github.com/flarum/core/pull/2887#pullrequestreview-690047538
2021-09-05 18:29:18 +01:00
SychO9
ffaa88f526 Serializer ID 2021-09-01 20:30:00 +01:00
SychO9
3d6a467de9 Remove unnecessary provider 2021-09-01 20:26:28 +01:00
SychO9
ae5fb2f253 Remove unnecessary provider 2021-09-01 20:01:36 +01:00
SychO9
1d48c9878b Tweaks 2021-09-01 19:49:44 +01:00
SychO9
5d3804c7ca init 2021-09-01 17:20:06 +01:00
Sami Mazouz
c3ab5b96bb feat: NoJs Admin View (#3059)
Adds a nojs blade template to be able to enable/disable extensions when one of them misbehaves.
2021-08-31 09:08:27 +01:00
Alexander Skvortsov
7d59bbad88 Move SECURITY.md file to central org repo 2021-08-30 15:43:52 -04:00
Alexander Skvortsov
898f2fa03b Use central FUNDING file 2021-08-30 15:42:07 -04:00
Alexander Skvortsov
3f35dd86e2 Move PR template to central repo 2021-08-30 15:41:18 -04:00
Sami Mazouz
6a5d7e9864 Fix unrecognised user/post mentions (#71)
* fix: Use proper mentionsUsers serializer
The only reason we haven't seen any issues with this up until now is because we have not has to include the relationship in any responses.

* fix: User/Post mentions showing as deleted after saving
The reason this happens is because the modified relationship is not refreshed, so the formatter doesn't recognize the new mentions as valid.
2021-08-30 18:23:59 +01:00
David Wheatley
428fc3131c Revert "Add translation support for quote. (#12)" (#13)
This reverts commit d6c01890a3.
2021-08-28 18:23:33 +01:00
Alexander Skvortsov
ca77747463 Update lastSeenAt when authenticating via API (#3058)
Fixes https://github.com/flarum/core/issues/3025, title says it all.
2021-08-27 14:02:03 -04:00
Sami Mazouz
df725cace6 perf: Eager load actor tag states (#143) 2021-08-26 21:57:36 +01:00
Ian Morland
e8111a6f8f Pass filter params (#141)
* Pass  params to getApiDocument

* Reverse arrays
2021-08-26 10:48:12 +01:00
Ian Morland
80b804b297 Pass filter params to getApiDocument (#3037)
* Pass filter params to getApiDocument

* Set filters directly
2021-08-26 10:47:34 +01:00
flarum-bot
fa653d96ee Bundled output for commit 2d451ece09
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-08-26 09:35:55 +00:00
Rafael Horvat
2d451ece09 Allow adding page parameters to PaginatedListState, like limit. (#2935) 2021-08-26 10:33:22 +01:00