Commit Graph

4135 Commits

Author SHA1 Message Date
b3de5157fe Apply fixes from StyleCI
[ci skip] [skip ci]
2021-05-18 07:08:50 +00:00
188dc98c4a Fix onOneServer, withoutOverlapping console scheduling options
Flarum doesn't fully use Laravel's cache system, but rather
creates and binds a single cache store.
See \Flarum\Foundation\InstalledSite::registerCache
Since certain config options (e.g. withoutOverlapping, onOneServer)
need the cache, we must override the cache factory we give to the scheduling
mutexes so it returns our single custom cache.
2021-05-18 03:08:32 -04:00
bcc4545ce7 Bundled output for commit 9ee3cd6a187c036490717ce227a4ca0bb162ccbe
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-18 05:39:33 +00:00
9ee3cd6a18 Fix insertText
In dd8323ee3610231f6da990823133c44d032c94b8, insertText was modified from the original to work with reply mentioning. This was done due to a misunderstanding of the API: the selection range isn't the selection to replace, but rather the final selection state after replacing the *current* selection with the text. This commit restores the original, correct implementation of insertText and instead adjusts the `insertBetween`method of BasicEditorDriver to set selection state before executing `insertText`.

Fixes https://github.com/flarum/core/issues/2877
2021-05-18 01:37:19 -04:00
a5182a1454 Fix filesystem wrong method call
The proper method is `exists`, not `has`.
2021-05-17 18:04:08 -04:00
be7581c432 fix missing import of container for resolving the queue connection from ioc 2021-05-17 21:13:30 +02:00
e855c49824 Bundled output for commit e010cbc3197ec4bca23b41a6746b63ecbe520a5c
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-17 00:29:54 +00:00
e010cbc319 Fix Badge className not being correctly set
Fixes group icons on Admin permissions page
2021-05-17 01:27:30 +01:00
70f0c5b728 Update copyright date (#2863) 2021-05-16 19:10:33 -04:00
1a34b85250 Bundled output for commit 1b8c77d034e4c7bfec6067b0eebb0b6e9a5e4665
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-16 23:04:41 +00:00
1b8c77d034 Remove Beta leftover warning code 2021-05-17 00:02:21 +01:00
07b1a974cf Bump composer reqs for 1.0.0 2021-05-16 18:27:36 -04:00
54319c0466 Bundled output for commit 9040e62c0e4fb1933664d6556ef29c3fda15809a
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-16 00:14:08 +00:00
9040e62c0e Drop JS copyright blocks 2021-05-15 20:11:38 -04:00
763bd7d244 Bundled output for commit 9b76c8f611d1ed66ab4292a198861dd0e17d70fc
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-15 23:09:46 +00:00
9b76c8f611 Merge pull request #2867 from flarum/as/1.0-qa-fixes
Assorted 1.0 QA fixes
2021-05-15 19:07:41 -04:00
fede3f9fc7 Fix glitchy group editing
Currently, when groups are edited, the new groups flicker, but the UI soon reverts to the old groups. This is because the returned API response has the old group values. This, in turn, is because we eager load groups, and when we sync the new group relation, that doesn't update the groups saved in memory. By unsetting the relation, we make sure the right groups are returned (and also available to the GroupsChanged event).

See https://github.com/flarum/core/issues/2514
2021-05-15 02:30:03 -04:00
9eb74fdc8a Fix CustomFooterModal Appearance
The textarea in the CustomFooterModal was much larger than in the other appearance page modals, and did not use a monospaced font. Turns out the other 2 were explicitly specified in the less. This commit adds a class that can be applied to all these modals for simpler maintenance.

Fixes https://github.com/flarum/core/issues/2865
2021-05-14 21:36:06 -04:00
05dda5b083 Fix KeyboardNavigatable
In b2d053f6865e685ebf005e457d970385377bbb28, I tried to be clever and create a new KeyboardNavigatable object as a return value for `when`. My approach to cloning was incorrect, and caused the util to break entirely.

My original intent for having this "clone"-based behavior is that a single KeyboardNavigatable instance could be created with multiple listeners, and then "cloned" like this with different "activators" registered via "then" calls. In hindsight, this change introduces more issues than it solves: outside of just not working, the cloned "KeyboardNavigatable" instances have shared internal state (the set of callbacks), and each has write access to this internal state. This is a recipe for unpredictable behavior and confusing bugs, so best to keep things simple for now, and maybe introduce more functional behavior in later releases.

Fixes https://github.com/flarum/QualityAssurance/issues/25
2021-05-14 21:21:58 -04:00
d1e987a240 Fix 0s in notification dropdown
By casting the length int to a bool, if there are no badges, we don't display a  0. It seems that mithril will render integers, but not booleans.

Fixes https://github.com/flarum/QualityAssurance/issues/28
2021-05-14 21:08:48 -04:00
8ffeac4315 NotificationListState separate content method
This fixes an error where an empty notification list wouldn't show the "empty" text.

It also simplifies flow of logic and breaks the component up a bit for readability.
2021-05-14 21:04:26 -04:00
dd3c203827 Update copyright year 2021-05-15 00:45:09 +01:00
fc06c76e2c Bundled output for commit 13d341e014dc33a8c9a0aafaa436fc11cfa00cc8
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-14 22:37:39 +00:00
13d341e014 Use slugs for user pages (#2864) 2021-05-14 23:35:50 +01:00
1d5d0688aa Fix "add numbered list" styleSelectedText action
Looks like I missed the `numberedLines` function used by the `orderedList` function in dd8323ee3610231f6da990823133c44d032c94b8
2021-05-14 18:35:11 -04:00
1a19856c0c Fix version update page (#2862)
* Binding closures only get the container instance as argument
2021-05-14 16:10:05 +01:00
0236e1529e Update Application version constant to 1.0.0-dev 2021-05-13 22:19:01 +01:00
947613a7e2 Bundled output for commit 88df26d722aa0c0eb3da1c69389bcd1630be92da
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-13 19:58:41 +00:00
88df26d722 Replace removed hasDiscussions method from DiscussionListPane (#2860) 2021-05-13 15:56:55 -04:00
7bceda976b Backend cleanup (#2859)
* Extender docblocks cleanup
* Excplicit type hinting in extenders
* Bring method under constructor
* Mark some classes and methods as internal
* Remove beta references

Co-authored-by: Clark Winkelmann <clark.winkelmann@gmail.com>
2021-05-13 15:26:24 +01:00
e3f506817b Bundled output for commit 422525a9bb7861585c956bc99caab6218586dfae
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-13 00:03:24 +00:00
422525a9bb hasDiscussions method of DiscussionListState has been removed 2021-05-12 19:41:28 -04:00
c3a684c7ed Bundled output for commit 3537f76eab2f18939f4d263bd35d5c870b6a23d7
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-12 23:29:46 +00:00
3537f76eab Update core to use new Webpack config, flarum-tsconfig, and build action (#2856)
* Update core to use new Webpack and TSConfig

* Bump webpack dep

* Update JS build action

* Copy custom `.d.ts` files to `dist-typings` folder on typings compile

* Run workflow against action v2

This allows us to have a moving tag, like first party actions have.

* Remove bundle analyzer from core

* Use webpack config 0.1.0-beta.16.2

* Add note about checking flarum-tsconfig
2021-05-13 00:28:17 +01:00
c37c4f46da Bundled output for commit 42eacd616c7ba8073015889cf18d779f03710c41
Includes transpiled JS/TS.

[skip ci]
2021-05-12 23:12:10 +00:00
42eacd616c Use proper attrs for viewForum and searchUsers 2021-05-12 18:49:11 -04:00
875f8eb530 Bundled output for commit 9dca657edf3126fc95a2c90ab104b56d9bbd122c [skip ci] 2021-05-12 22:19:45 +00:00
9dca657edf Fix formatting error in Tooltip.tsx
Prettier is acting differently on different systems.
2021-05-12 23:14:50 +01:00
d7648102a9 Bundled output for commit bba6485effc088e38e9ae0bc8f25528ecbee3a7b [skip ci] 2021-05-12 03:57:28 +00:00
bba6485eff Tooltip formatting fix 2021-05-11 23:55:52 -04:00
2075c7319f Typehint event in console scheduling test case 2021-05-11 23:55:34 -04:00
92e1d0843c Bundled output for commit 4e0fdb4c7702b77ba6d9db28cd8a2517dc39816f [skip ci] 2021-05-11 23:15:50 +00:00
4e0fdb4c77 Create abstract PaginatedListState for DiscussionList and others (#2781) 2021-05-11 19:14:26 -04:00
9a26b2bef4 Bundled output for commit d64750b3eb7de28d82727105b69c213cae5befe7 [skip ci] 2021-05-11 19:17:04 +00:00
d64750b3eb Rename viewDiscussions => viewForum, viewUserList => searchUsers (#2854)
This naming is clearer as to the intended effect. Changes include:

- A migration to rename all permissions
- Updating the seed migration to use the original naming from the start
- Replacing usage of the old names with new names in code
- Throwing warnings when the old names are used.
2021-05-11 15:15:27 -04:00
06f63a2087 Bundled output for commit b2d053f6865e685ebf005e457d970385377bbb28 [skip ci] 2021-05-11 02:31:32 +00:00
b2d053f686 Search frontend cleanup (#2849)
- Convert KeyboardNavigatable to TypeScript, as that is used internally here.
- Convert search sources to TypeScript
- Convert Search component to TypeScript
- Convert Search States to Typescript
- Add `getInitialSearch` to `SearchState`
- Fix search disappearing on page reload / direct link
2021-05-10 22:30:04 -04:00
765bd59965 Improve discussion page canonical URL (#2853)
* Switch to ?page= discussion page canonical URL & fix no-JS pagination buttons
2021-05-10 19:20:47 -04:00
6ecca9565a Squash core migrations (#2842)
Data migrations (seed default groups, seed default permissions) are deliberately excluded.
This also allows us to remove a lot of now unnecessary public API from the migrator and migration repository.
2021-05-10 18:05:01 -04:00
a28009f24b Bundled output for commit 7f596db09bef3fa67a20fe402b131424a46484b5 [skip ci] 2021-05-10 21:56:41 +00:00