Commit Graph

8565 Commits

Author SHA1 Message Date
Alexander Skvortsov
494633537e Update for API Client changes 2021-05-12 19:58:49 -04:00
Alexander Skvortsov
706a07429d Use RequestUtil to access actor 2021-05-12 19:48:17 -04:00
Alexander Skvortsov
ce65375e2a Adjust EditUserModal import 2021-05-12 19:46:07 -04:00
Alexander Skvortsov
d0829bc3a4 hasDiscussions method of DiscussionListState has been removed 2021-05-12 19:41:28 -04:00
Alexander Skvortsov
0be39b144c Update for ICU MessageFormat 2021-05-12 19:37:44 -04:00
Alexander Skvortsov
d69b3fbb12 Update for ICU MessageFormat 2021-05-12 19:36:41 -04:00
flarum-bot
12abec475f Bundled output for commit 9b21d05207
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-12 23:29:46 +00:00
David Wheatley
9b21d05207 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
Alexander Skvortsov
ae69dd25c7 Update for ICU MessageFormat 2021-05-12 19:27:13 -04:00
Alexander Skvortsov
6c27c08672 Update for ICU MessageFormat 2021-05-12 19:24:06 -04:00
flarum-bot
5f2978d81f Bundled output for commit 896e1ec8ff
Includes transpiled JS/TS.

[skip ci]
2021-05-12 23:12:10 +00:00
Alexander Skvortsov
3022586237 Bump version to 0.1.0-beta.16.2 2021-05-12 19:06:11 -04:00
David Wheatley
abea6716eb Add Webpack Bundle Analyzer to webpack config (#12) 2021-05-12 19:05:27 -04:00
Alexander Skvortsov
b6113169f8 Use new permissions 2021-05-12 18:52:19 -04:00
Alexander Skvortsov
896e1ec8ff Use proper attrs for viewForum and searchUsers 2021-05-12 18:49:11 -04:00
flarum-bot
8b47bf0316 Bundled output for commit fa8812a5d4 [skip ci] 2021-05-12 22:19:45 +00:00
David Wheatley
fa8812a5d4 Fix formatting error in Tooltip.tsx
Prettier is acting differently on different systems.
2021-05-12 23:14:50 +01:00
David Wheatley
30a95910bb Remove unused dependency 2021-05-12 22:00:34 +01:00
flarum-bot
bc187d9b83 Bundled output for commit 3e596aaadf [skip ci] 2021-05-12 19:43:31 +00:00
Sami Mazouz
3e596aaadf Move replies preview dropdown out of Post-footer (#55) 2021-05-12 20:42:33 +01:00
flarum-bot
f1e8821b70 Bundled output for commit b8c0787dfa [skip ci] 2021-05-12 03:57:28 +00:00
Alexander Skvortsov
b8c0787dfa Tooltip formatting fix 2021-05-11 23:55:52 -04:00
Alexander Skvortsov
0bd3dcec39 Typehint event in console scheduling test case 2021-05-11 23:55:34 -04:00
Alexander Skvortsov
fd48af2032 Massively simplify TagPolicy 2021-05-11 22:16:55 -04:00
Alexander Skvortsov
39aeba8200 Publish v0.1.0-beta.16.1 2021-05-11 20:35:56 -04:00
David Wheatley
4bdb02a878 Move Typescript configuration to webpack config from core (#11) 2021-05-11 20:28:31 -04:00
Alexander Skvortsov
0d5510154e Apply fixes from StyleCI 2021-05-12 00:10:22 +00:00
Alexander Skvortsov
bf5a401787 Remove flags visibility scoping
This was moved to flags in 9fe9dd515b
2021-05-11 20:10:10 -04:00
Alexander Skvortsov
99a82d0069 Apply fixes from StyleCI 2021-05-12 00:08:36 +00:00
Alexander Skvortsov
be59e77a01 Move in visibility scoping from tags, add automated testing. 2021-05-11 20:04:52 -04:00
David Wheatley
a9184a1c2e Fix base tsconfig typo 2021-05-12 01:03:52 +01:00
David Wheatley
36f546aefa Initial commit 2021-05-12 00:37:38 +01:00
Alexander Skvortsov
ce7484e2c8 Extensions should be considered enabled after boot.
Before boot, we consider them "disabled" so they get migrated.
2021-05-11 19:31:35 -04:00
flarum-bot
2164b82b80 Bundled output for commit 29957d2b1d [skip ci] 2021-05-11 23:15:50 +00:00
David Sevilla Martín
29957d2b1d Create abstract PaginatedListState for DiscussionList and others (#2781) 2021-05-11 19:14:26 -04:00
Alexander Skvortsov
d68d551e16 Ensure that migrations run 2021-05-11 17:15:11 -04:00
Sami Mazouz
fffedb4e1d Only check for bypassTagCounts permission for startDiscussion ability (#130)
This doesn't fix anything, but we should explicitly only check the 
permission for the ability it is meant for, just to be safe in the 
future.
Also add more tests.
2021-05-11 16:35:10 -04:00
Alexander Skvortsov
5febbf8fb1 get/set enabled extensions from test case, not DB 2021-05-11 16:24:27 -04:00
flarum-bot
a0f9416f90 Bundled output for commit 99009e5d3b [skip ci] 2021-05-11 20:06:14 +00:00
Alexander Skvortsov
99009e5d3b Permission Tag Scoping Field (#127)
This allows tag scoping permissions that don't start with `discussion`, or on the contrary, removing tag scoping from permissions that DO start with `discussion`.

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2021-05-11 16:05:11 -04:00
Glowing Blue
93d373f066 Added created_at to post_likes table (#28) 2021-05-11 15:23:35 -04:00
flarum-bot
3a7acc48d0 Bundled output for commit bd33954a57 [skip ci] 2021-05-11 19:17:04 +00:00
Alexander Skvortsov
bd33954a57 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
Alexander Skvortsov
dfbb468744 Refactor queryIdsWhereCan (#128)
- Rename to queryIdsWhereHasPermission, since that's more accurate
- Make the base query an optional 3rd argument. This feels more intuitive
- Add a `can` function in AbstractPolicy, so extensions that add tag scopable permissions don't need to define their own policies (e.g. with approval)
- Combine ScopeDiscussionVisibilityWithAbility and ScopeDiscussionVisibility
- Fix ScopeDiscussionVisibility only requiring in one tag, not all.
- Add lots and lots of tests

Co-authored-by: SychO9 <sychocouldy@gmail.com>
2021-05-11 02:34:30 -04:00
flarum-bot
f08767fed2 Bundled output for commit acd3873bbd [skip ci] 2021-05-11 02:31:32 +00:00
Alexander Skvortsov
acd3873bbd 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
David Sevilla Martín
6fd185e425 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
Alexander Skvortsov
03e4f31bda 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
flarum-bot
2401355fb9 Bundled output for commit 90cfd36e30 [skip ci] 2021-05-10 21:56:41 +00:00
Alexander Skvortsov
90cfd36e30 Some minor JS cleanup (#2846)
- Change index files to ts
- Remove deprecated EditUserModal from forum compat
- Remove b14-specific error
- Remove transChoice method (ICU should be used instead)
- Translator to TypeScript
- Small JS => TS cleanup
* Trivial js => ts change

Co-authored-by: David Wheatley <hi@davwheat.dev>
2021-05-10 17:54:58 -04:00