Commit Graph

3608 Commits

Author SHA1 Message Date
flarum-bot
bbf90e42ff Bundled output for commit 0859bb13a5
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-06-21 15:36:15 +00:00
Sami Mazouz
613523c9b4
fix(tags): tag selection modal shown when no tags can be selected (#3448) 2022-06-20 16:53:11 +01:00
flarum-bot
3e56bd3dc6 Bundled output for commit 293e8ab8b6
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-06-20 12:06:42 +00:00
David Wheatley
824fb2feff
chore: enable and set up prettier for flarum/tags (#3496) 2022-06-20 13:00:01 +01:00
flarum-bot
5e81592e18 Bundled output for commit 74bcab866c
Includes transpiled JS/TS.

[skip ci]
2022-06-19 22:54:28 +00:00
Sami Mazouz
74bcab866c
fix(suspend): suspension modal shows after suspension is over (#3449) 2022-06-19 23:51:29 +01:00
flarum-bot
79e0f44324 Bundled output for commit 976a03c9e5
Includes transpiled JS/TS.

[skip ci]
2022-06-19 21:30:47 +00:00
Sami Mazouz
976a03c9e5
fix: post mention notification errors with _no content_ subjects (#3493)
Co-authored-by: David Wheatley <hi@davwheat.dev>
2022-06-19 22:27:39 +01:00
Sami Mazouz
27fb011bf5
chore: with yarn workspaces we only need a single yarn.lock (#3464)
* chore: yarn workspaces means we only need a single `yarn.lock`
* fix: add a `cache_dependency_path` workflow input
* fix: re-introduce `env.cache_dependency_path`
2022-06-19 19:01:21 +01:00
Rafael Horvat
776f9bf132
feat: add automatic created/updated timestamps for various tables (#3435)
Adds timestamps for various tables:

- groups
- group_user
- group_permission
- tags
- discussion_tag
- post_mentions_post
- post_mentions_user
2022-06-07 20:35:27 +01:00
Sami Mazouz
c2ba3bb7d5
fix(subscriptions): reply notifications not working (#3445)
* chore: subscriptions backend test infrastructure

* test: reply notification

* fix: fix reply notifications not working
2022-06-03 21:06:30 +02:00
Sami Mazouz
0a3f449f9e
fix: post mentions with deleted author not rendering (#3432) 2022-06-02 13:38:24 +01:00
Sami Mazouz
29362ed924
fix: empty suspension message uses email template expecting one (#3433) 2022-05-26 18:52:19 +01:00
Sami Mazouz
89b194034b
fix: nickname regex validation not working (#3430)
* test: regex validation for nickname on registration
* fix: nickname regex validation not working
* test: regex validation works with valid inputs
2022-05-20 14:04:14 +01:00
Daniël Klabbers
592039c483 update constraint to v1.3 2022-05-10 16:28:35 +02:00
SychO9
da83e0c1a0 fix(a11y): Tag selection modal input visibility 2022-05-09 10:07:24 +02:00
Sami Mazouz
b14c0780d2
chore: fix package manager tests (#3407) 2022-04-25 13:31:16 +01:00
flarum-bot
b8df3863d1 Bundled output for commit 4cb15501a2
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-04-21 22:20:19 +00:00
Alexander Skvortsov
4cb15501a2
fix(tags): TagDiscussionModal don't go to null tag (#3404)
If the tag we are trying to select/highlight is undefined, we should not run the scroll animation.
2022-04-21 18:03:41 -04:00
flarum-bot
09bed537b3 Bundled output for commit fb717db57c
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-04-16 10:34:07 +00:00
flarum-bot
cca97f32c6 Bundled output for commit c658eb10f4
Includes transpiled JS/TS.

[skip ci]
2022-04-14 15:21:36 +00:00
David Sevilla Martin
c658eb10f4
feat(emoji): support emoji 14 & unicode 14 (#3378) 2022-04-14 10:49:47 -04:00
flarum-bot
f667faa1bd Bundled output for commit 542cc42538
Includes transpiled JS/TS.

[skip ci]
2022-04-13 15:33:52 +00:00
flarum-bot
518b39610e Bundled output for commit 6de1ea0194
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-04-09 22:06:48 +00:00
flarum-bot
b5e5ae8c4c Bundled output for commit b0fa795cc9
Includes transpiled JS/TS.

[skip ci]
2022-04-07 16:56:27 +00:00
Ian Morland
b0fa795cc9
fix: extensions not being able to use the renderer without context (#3382) 2022-04-07 17:53:37 +01:00
flarum-bot
c944fd0029 Bundled output for commit 98e607a704
Includes transpiled JS/TS.

[skip ci]
2022-04-06 15:56:16 +00:00
flarum-bot
9a0bdf9a04 Bundled output for commit 431ba30434
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-04-06 15:51:49 +00:00
flarum-bot
45aba446b3 Bundled output for commit 9f7c5defaa
Includes transpiled JS/TS.

[skip ci]
2022-04-05 14:41:10 +00:00
flarum-bot
2541349c68 Bundled output for commit 1d27f62c15
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-04-04 15:51:15 +00:00
flarum-bot
9d9594a098 Bundled output for commit 7c3da27fb3
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-04-03 21:37:31 +00:00
flarum-bot
402ace2070 Bundled output for commit ca7055f5d0
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-04-03 21:20:28 +00:00
flarum-bot
4dfbaa3271 Bundled output for commit cd8ed6cf66
Includes transpiled JS/TS.

[skip ci]
2022-04-03 21:17:26 +00:00
David Sevilla Martin
cd8ed6cf66
fix(subscriptions): filter followed discussions when searching (#3376)
Fixes #3375
2022-04-03 17:14:56 -04:00
flarum-bot
cf8359daa4 Bundled output for commit 803f4cc792
Includes transpiled JS/TS.

[skip ci]
2022-04-03 17:30:09 +00:00
flarum-bot
a7dd0b2b61 Bundled output for commit 00b9151864
Includes transpiled JS/TS.

[skip ci]
2022-03-31 06:49:02 +00:00
Alexander Skvortsov
00b9151864 feat: deprecate discussion post_number_index field. 2022-03-31 08:46:20 +02:00
flarum-bot
105481a181 Bundled output for commit b95b3646d3
Includes transpiled JS/TS.

[skip ci]
2022-03-28 20:49:53 +00:00
flarum-bot
b64003cba5 Bundled output for commit 46f8cf4628
Includes transpiled JS/TS.

[skip ci]
2022-03-23 17:37:18 +00:00
flarum-bot
6df4101bae Bundled output for commit a595665bfb
Includes transpiled JS/TS.

[skip ci]
2022-03-23 15:45:44 +00:00
Alexander Skvortsov
a595665bfb
fix: Assorted Typing Fixes (#3348)
With all the commits below, we resolve all outstanding typing issues in the repo, and CI jobs run green.

* fix: Convert DashboardPage and DashboardWidget to TypeScript

* fix: fix type errors in package manager ext

* fix: Convert Post component to TypeScript

* fix: avatar typings should accept null user

* fix: convert Notification component to TypeScript

* fix: properly use `typeof` in ForumApplication

* feat: make Notification content attr generic

* chore: format Notification component

* fix: Convert DiscussionRenamedNotification to TypeScript

* fix(pusher) move shims to a location where they get applied

* fix(pusher): fix some typing errors

* fix(akismet): fix some typing issues

* chore: update core dist typings

* chore(pusher): format

* fix: anchorScroll should accept string selectors

* fix: more accurately represent ApiQueryParamsPlural

* fix: convert PostStreamState to TypeScript

* chore(core): rebuild typings

* feat: allow extending app.routes

* fix: more flexible typings for highlight.ts

* fix: use primitive `number` type for Discussion typings

* fix: convert DiscussionListItem to TypeScript

* chore: rebuild core typings

* fix: final pusher type fixes

* feat: start tags TypeScript conversion

* fix: require-dev tags in pusher for CI TypeScript purposes.

* chore(core): format

* chore(tags): build dist typings

* feat(pusher): use dist types from tags.

* feat: convert flags to TypeScript

* chore(flags): generate dist typings

* fix(akismet): last type errors

* chore: update .yarn-integrity

* chore: partially run flarum-cli audit infra --fix

The tsconfig changes from that command are ignored, since we don't yet support "replacable sections" that would let us add custom config.

* chore: use type imports

* fix: broader gitattributes

* chore: run flarum-cli audit infra --monorepo --fix

* feat: make `app.data` typings extensible

* chore(core): format

* chore: boost tags TypeScript coverage

* fix(tags): further increase type coverage.
2022-03-23 11:43:14 -04:00
flarum-bot
4ecd9a9b2f Bundled output for commit 5e82ded8c3
Includes transpiled JS/TS.

[skip ci]
2022-03-12 00:14:54 +00:00
Alexander Skvortsov
5e82ded8c3 feat: use yarn workspaces 2022-03-11 19:12:11 -05:00
Alexander Skvortsov
524540cb41 chore: use yarn v1 in extensions/core 2022-03-11 19:12:11 -05:00
Alexander Skvortsov
f2910d8763 chore: add version to core/ext package.json
This is necessary for yarn workspaces to work.
2022-03-11 19:12:11 -05:00
StyleCI Bot
a2eba3e978
Apply fixes from StyleCI
[ci skip] [skip ci]
2022-03-11 23:11:35 +00:00
dependabot[bot]
37a882118a
chore(deps): bump glob-parent from 3.1.0 to 5.1.2 in /extensions/emoji/js (#3345)
* chore(deps): bump glob-parent in /extensions/emoji/js

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 3.1.0 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Apply fixes from StyleCI

[ci skip] [skip ci]

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-03-11 18:11:20 -05:00
Alexander Skvortsov
5fc0b4963a chore: flarum-cli audit infra --fix 2022-03-11 18:02:51 -05:00
Alexander Skvortsov
693da58c41 chore: set up composer path repos 2022-03-11 18:02:49 -05:00
Alexander Skvortsov
2bf6b12a64 chore: remove centralizable repo config
- Remove .github conf folder from Flarum packages

- Remove styleci config from all packages
2022-03-11 18:01:44 -05:00
Alexander Skvortsov
deea028dab Merge remote-tracking branch 'extensions_tags/REWRITE' 2022-03-11 18:01:31 -05:00
Alexander Skvortsov
2550f547b1 Merge remote-tracking branch 'extensions_suspend/REWRITE' 2022-03-11 18:01:29 -05:00
Alexander Skvortsov
448e4a7960 Merge remote-tracking branch 'extensions_subscriptions/REWRITE' 2022-03-11 18:01:28 -05:00
Alexander Skvortsov
a239aee14a Merge remote-tracking branch 'extensions_sticky/REWRITE' 2022-03-11 18:01:27 -05:00
Alexander Skvortsov
53cd98858f Merge remote-tracking branch 'extensions_statistics/REWRITE' 2022-03-11 18:01:26 -05:00
Alexander Skvortsov
fecb58dec5 Merge remote-tracking branch 'extensions_pusher/REWRITE' 2022-03-11 18:01:24 -05:00
Alexander Skvortsov
105acba78f Merge remote-tracking branch 'extensions_package_manager/REWRITE' 2022-03-11 18:01:23 -05:00
Alexander Skvortsov
1f2d19b120 Merge remote-tracking branch 'extensions_nicknames/REWRITE' 2022-03-11 18:01:22 -05:00
Alexander Skvortsov
76dce05d01 Merge remote-tracking branch 'extensions_mentions/REWRITE' 2022-03-11 18:01:21 -05:00
Alexander Skvortsov
4ed4013a32 Merge remote-tracking branch 'extensions_markdown/REWRITE' 2022-03-11 18:01:19 -05:00
Alexander Skvortsov
3e6c8cd903 Merge remote-tracking branch 'extensions_lock/REWRITE' 2022-03-11 18:01:18 -05:00
Alexander Skvortsov
07eb9b9c59 Merge remote-tracking branch 'extensions_likes/REWRITE' 2022-03-11 18:01:17 -05:00
Alexander Skvortsov
4a71f2772f Merge remote-tracking branch 'extensions_lang_english/REWRITE' 2022-03-11 18:01:16 -05:00
Alexander Skvortsov
5cea52644b Merge remote-tracking branch 'extensions_flags/REWRITE' 2022-03-11 18:01:15 -05:00
Alexander Skvortsov
e8d4d20d34 Merge remote-tracking branch 'extensions_emoji/REWRITE' 2022-03-11 18:01:13 -05:00
Alexander Skvortsov
a7107700eb Merge remote-tracking branch 'extensions_embed/REWRITE' 2022-03-11 18:01:12 -05:00
Alexander Skvortsov
95c53806aa Merge remote-tracking branch 'extensions_bbcode/REWRITE' 2022-03-11 18:01:11 -05:00
Alexander Skvortsov
4b8573b726 Merge remote-tracking branch 'extensions_approval/REWRITE' 2022-03-11 18:01:10 -05:00
flarum-bot
8dabac6bf9 Bundled output for commit 671b3f4e54
Includes transpiled JS/TS.

[skip ci]
2022-03-10 20:07:54 +00:00
David Sevilla Martin
671b3f4e54 Fix tag page mismatches if accents/capitalizations differ in slug (#161)
Fixes flarum/core#3286
2022-03-10 15:06:50 -05:00
flarum-bot
cd2bba15f3 Bundled output for commit 16d5cc11e3
Includes transpiled JS/TS.

[skip ci]
2022-03-10 00:54:56 +00:00
Sujit Kumar
16d5cc11e3 Add toolbar support for admin panel (#36) 2022-03-09 19:53:33 -05:00
Alexander Skvortsov
0beac940d7 feat: add compiled dist-typings folder 2022-02-23 16:04:21 -05:00
Ian Morland
07ebe5b57d [chore] update deprecated event comments (#41) 2022-02-22 14:07:04 -05:00
flarum-bot
f82ccbbf92 Bundled output for commit 05e936bbe4
Includes transpiled JS/TS.

[skip ci]
2022-02-22 15:30:11 +00:00
Clark Winkelmann
05e936bbe4 Make frontend use gate output instead of hard-coded logic
Hide nickname from edit modal if user cannot edit
2022-02-22 16:28:36 +01:00
Alexander Skvortsov
2a6a07c829 fix: regenerate lockfile
This should help fix some build issues.
2022-02-08 17:34:32 -05:00
Alexander Skvortsov
c942e367ca fix: regenerate lockfile
This should fix some build issues.
2022-02-08 17:32:11 -05:00
Alexander Skvortsov
350f2c173f fix: regenerate lockfile
This should fix some JS build issues.
2022-02-08 17:29:54 -05:00
Billy Wilcosky
a82060945e fix(tag label): tag text misaligned in iOS Safari (#160) 2022-02-07 17:09:43 +00:00
Daniel Klabbers
3c79517fbf fix: missing import for post filterer 2022-02-06 22:44:44 +01:00
flarum-bot
fe4812ceb8 Bundled output for commit eed25d18cb
Includes transpiled JS/TS.

[skip ci]
2022-02-02 19:04:10 +00:00
Rafał Całka
eed25d18cb feat: use ColorPreviewInput in the EditTagModal (#157) 2022-02-02 14:02:20 -05:00
flarum-bot
f537e05719 Bundled output for commit 6d3da9c5f2
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-01-27 21:42:53 +00:00
Alexander Skvortsov
547cce9799 chore: update yarn lockfile 2022-01-27 16:42:07 -05:00
Alexander Skvortsov
6d3da9c5f2 fix: minor TS improvements 2022-01-27 16:40:49 -05:00
flarum-bot
0d73e82b0b Bundled output for commit f3d0bdce47
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-01-27 21:02:31 +00:00
Alexander Skvortsov
f3d0bdce47 chore: convert to TypeScript 2022-01-27 15:58:04 -05:00
Alexander Skvortsov
2a31ea1c15 chore: flarum-cli audit infra --fix 2022-01-27 15:58:04 -05:00
Alexander Skvortsov
7f3c09c37e chore: add scaffolding exclude config
This ensures `flarum-cli audit infra --fix` works.
2022-01-25 21:17:18 -05:00
Alexander Skvortsov
3b8b491bce fix: suppress xdebug warnings 2022-01-25 18:06:36 -05:00
Alexander Skvortsov
cff8b01227 chore: exclude PHP 8.1 tests
These prompt deprecation warnings that break CI. We need to fix those, but that's a problem for a later time.
2022-01-25 18:02:27 -05:00
Alexander Skvortsov
66be0ba578 chore: bump yarn lock 2022-01-24 14:41:46 -05:00
Alexander Skvortsov
919ba129f4 fix: allow path repos
Temporarily configure cwd while running composer commands so that path repositories can be resolved properly.

Fixes https://github.com/flarum/package-manager/issues/6
2022-01-24 14:41:46 -05:00
Alexander Skvortsov
a7535ab20a chore: flarum-cli audit infra --fix 2022-01-24 14:41:29 -05:00
Daniel Klabbers
71d72adbdd Release v1.2 2022-01-20 12:52:08 +01:00
Daniel Klabbers
9db4981f80 Release v1.2 2022-01-20 12:49:18 +01:00
Daniel Klabbers
73975799c9 Release v1.2 2022-01-20 12:48:09 +01:00
Daniel Klabbers
cf7916cebd Release v1.2 2022-01-20 12:45:05 +01:00
Daniel Klabbers
bc694f19d3 Release v1.2 2022-01-20 12:43:25 +01:00
Daniel Klabbers
e5a865227a Release v1.2 2022-01-20 12:41:14 +01:00
Daniel Klabbers
f9213c0178 Release v1.2 2022-01-20 12:35:35 +01:00
Daniel Klabbers
b63a67d27f Release v1.2 2022-01-20 12:34:19 +01:00
Daniel Klabbers
310322ba1f Release v1.2 2022-01-20 12:31:13 +01:00
Daniel Klabbers
c96b8b8877 Release v1.2 2022-01-20 12:17:01 +01:00
Daniel Klabbers
fc85ce8579 Release v1.2 2022-01-20 12:13:37 +01:00
Daniel Klabbers
4cce5fbbda Release v1.2 2022-01-20 12:10:11 +01:00
Daniel Klabbers
7ef1ea7f3d Release v1.2 2022-01-20 12:07:47 +01:00
Daniel Klabbers
8a7a016d24 Release v1.2 2022-01-20 12:03:29 +01:00
Daniel Klabbers
08aec419d2 Release v1.2 2022-01-20 12:01:02 +01:00
Daniel Klabbers
5b8fbdba8b Release v1.2 2022-01-20 11:57:27 +01:00
Daniel Klabbers
5de91e58fe Release v1.2 2022-01-20 11:55:45 +01:00
Daniel Klabbers
7d4b205513 Release v1.2 2022-01-20 11:49:19 +01:00
Alexander Skvortsov
9a98c9dd1f Merge branch 'master' of github.com:flarum/akismet 2022-01-20 04:25:46 -05:00
Alexander Skvortsov
9ef9b4fb13 Merge branch 'master' of github.com:flarum/pusher 2022-01-20 04:25:42 -05:00
Alexander Skvortsov
f19461978c fix: build typings script 2022-01-20 04:25:36 -05:00
Alexander Skvortsov
a6581e5918 fix: build typings script 2022-01-20 04:25:16 -05:00
flarum-bot
08f23c60ba Bundled output for commit 85e6076553
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-01-20 09:15:39 +00:00
Alexander Skvortsov
85e6076553 fix: typings generation script 2022-01-20 04:13:50 -05:00
flarum-bot
9ad8e781f2 Bundled output for commit 9ba882619c
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-01-20 09:11:25 +00:00
Alexander Skvortsov
9ba882619c fix: typings generation script 2022-01-20 04:09:06 -05:00
flarum-bot
44414c227e Bundled output for commit b363cd18c2
Includes transpiled JS/TS.

[skip ci]
2022-01-20 09:00:38 +00:00
Alexander Skvortsov
b363cd18c2 chore: flarum-cli audit infra --fix 2022-01-20 03:59:33 -05:00
flarum-bot
0edd226996 Bundled output for commit e03273e368
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:59:02 +00:00
flarum-bot
16e210ae0a Bundled output for commit de4a0db0ec
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:57:32 +00:00
Alexander Skvortsov
e03273e368 chore: flarum-cli audit infra --fix 2022-01-20 03:57:25 -05:00
Alexander Skvortsov
de4a0db0ec chore: flarum-cli audit infra --fix 2022-01-20 03:55:30 -05:00
flarum-bot
6f33f8273b Bundled output for commit 5c6f17d508
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:55:26 +00:00
Alexander Skvortsov
5c6f17d508 chore: flarum-cli audit infra --fix 2022-01-20 03:53:51 -05:00
Alexander Skvortsov
3dd9472647 chore: flarum-cli audit infra --fix 2022-01-20 03:52:02 -05:00
Alexander Skvortsov
5b3839a2cc chore: flarum-cli audit infra --fix 2022-01-20 03:48:49 -05:00
flarum-bot
c14642c985 Bundled output for commit 5f43267a40
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:48:25 +00:00
Alexander Skvortsov
5f43267a40 chore: flarum-cli audit infra --fix 2022-01-20 03:47:04 -05:00
flarum-bot
7dbc5b153f Bundled output for commit e9feb0aa58
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:46:41 +00:00
Alexander Skvortsov
e9feb0aa58 chore: flarum-cli audit infra --fix 2022-01-20 03:45:09 -05:00
Alexander Skvortsov
77da783ff6 chore: flarum-cli audit infra --fix 2022-01-20 03:42:53 -05:00
flarum-bot
90a8429067 Bundled output for commit 2c0e6798f9
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:40:02 +00:00
Alexander Skvortsov
2c0e6798f9 chore: flarum-cli audit infra --fix 2022-01-20 03:38:34 -05:00
flarum-bot
ec56b53b59 Bundled output for commit f5c1a0282d
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:38:04 +00:00
Alexander Skvortsov
f5c1a0282d chore: flarum-cli audit infra --fix 2022-01-20 03:36:26 -05:00
Alexander Skvortsov
2e68c53af1 chore: flarum-cli audit infra --fix 2022-01-20 03:33:49 -05:00
Alexander Skvortsov
6dddb748ba chore: flarum-cli audit infra --fix 2022-01-20 03:32:36 -05:00
flarum-bot
19dfdeec81 Bundled output for commit 3858ebdd86
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:31:08 +00:00
Alexander Skvortsov
3858ebdd86 chore: flarum-cli audit infra --fix 2022-01-20 03:29:45 -05:00
flarum-bot
514d843c04 Bundled output for commit 99033734e2
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:26:50 +00:00
Alexander Skvortsov
99033734e2 chore: flarum-cli audit infra --fix 2022-01-20 03:25:07 -05:00
Alexander Skvortsov
30e88ebe57 Merge branch 'master' of github.com:flarum/approval 2022-01-20 03:24:28 -05:00
Alexander Skvortsov
12488bc6d5 chore: remove unnecessary tsconfig 2022-01-20 03:24:25 -05:00
Alexander Skvortsov
7e1995d86b chore: flarum-cli audit infra --fix 2022-01-20 03:17:07 -05:00
flarum-bot
69806a95cf Bundled output for commit 05246fb155
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:16:30 +00:00
Alexander Skvortsov
05246fb155 chore: flarum-cli audit infra --fix 2022-01-20 03:14:59 -05:00
Alexander Skvortsov
e23ac5d51c chore: flarum-cli audit infra --fix 2022-01-20 03:06:25 -05:00
Rafał Całka
8e8c9ba53d Delete package-lock.json (#26) 2022-01-20 02:57:32 -05:00
flarum-bot
f67b5f3742 Bundled output for commit 3d864fd413
Includes transpiled JS/TS.

[skip ci]
2022-01-19 18:48:38 +00:00
David Wheatley
3d864fd413 chore: switch to Webpack 5 (#35) 2022-01-19 13:46:20 -05:00
Alexander Skvortsov
714a74518e Some fixes to tag metadata calculations (#154)
* If a discussion doesn't exist, it can't be the last posted discussion

This fixes some rare errors where deleting the only post in the last posted discussion of a tag triggers a DB integrity exception.

* Decrement tag's discussion count when deleting a post deletes an unhidden discussion.

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2022-01-13 16:41:37 -05:00
Alexander Skvortsov
e3f051bf4b fix: return user when creating flags (#42)
Fixes https://github.com/flarum/QualityAssurance/issues/41

When the API response is ingested by `pushObject`, since the flag instance is new, there is nothing to merge with, and therefore, there's no user on the flag instance in the store. As a result, the flag is displayed with "deleted" as the creating user until a page refresh occurs.

More broadly, this could be fixed by either:
- Refactoring the JSON API layer so that all singular operations return the same set of includes.
- Merging the API Paylod with sent data on model save (for new instances only).
But the former would require a major breaking rewrite, and the latter could introduce potentially unwanted side effects, and is effectively a bandaid over inconsistent backend behavior.
2022-01-13 16:39:00 -05:00
flarum-bot
b1415b4d3c Bundled output for commit b07c98b5d9
Includes transpiled JS/TS.

[skip ci]
2022-01-11 10:46:29 +00:00
flarum-bot
92f16d3300 Bundled output for commit aba58f453a
Includes transpiled JS/TS.

[skip ci]
2022-01-11 10:45:29 +00:00
Ian Morland
b07c98b5d9 chore: repo maintenance (#16)
* Bump deps

* Update namespaces

* Format
2022-01-11 10:45:14 +00:00
Ian Morland
aba58f453a chore: repo maintenance (#32)
* Bump deps

* Update imports
2022-01-11 10:44:22 +00:00
flarum-bot
5e30428b66 Bundled output for commit 200d488209
Includes transpiled JS/TS.

[skip ci]
2022-01-11 10:44:07 +00:00
flarum-bot
1bb5c2a609 Bundled output for commit 7b621df353
Includes transpiled JS/TS.

[skip ci]
2022-01-11 10:43:29 +00:00
Ian Morland
200d488209 chore: repo maintenance (#28)
* Bump deps

* Update imports

* format
2022-01-11 10:43:15 +00:00
Ian Morland
7b621df353 chore: repo maintenance (#12)
* Bump deps

* Update imports

* Format
2022-01-11 10:42:06 +00:00
flarum-bot
2fea567284 Bundled output for commit 542fac888d
Includes transpiled JS/TS.

[skip ci]
2022-01-11 10:41:36 +00:00
Ian Morland
542fac888d chore: repo maintenance (#30)
* Bump deps

* Update imports

* Format
2022-01-11 10:40:45 +00:00
flarum-bot
2d50029435 Bundled output for commit f442a43205
Includes transpiled JS/TS.

[skip ci]
2022-01-11 10:40:43 +00:00
Ian Morland
f442a43205 chore: repo maintenance (#30)
* Bump deps

* Update imports

* Format
2022-01-11 10:39:22 +00:00
flarum-bot
05f7a9a582 Bundled output for commit d593d3ca15
Includes transpiled JS/TS.

[skip ci]
2022-01-11 10:38:13 +00:00
Ian Morland
29062d5924 chore: repo maintenance (#43) 2022-01-11 10:37:51 +00:00
Ian Morland
d593d3ca15 chore: repo maintenance (#5)
* Bump deps

* Update imports

* Format
2022-01-11 10:37:09 +00:00
flarum-bot
4c8bba3eb1 Bundled output for commit 0d9c95b096
Includes transpiled JS/TS.

[skip ci]
2022-01-08 21:58:28 +00:00
Ian Morland
0d9c95b096 [chore] Update JS imports (#80) 2022-01-08 16:57:13 -05:00
flarum-bot
c4d644b8bb Bundled output for commit 30b2fcce66
Includes transpiled JS/TS.

[skip ci]
2022-01-07 17:32:37 +00:00
Ian Morland
30b2fcce66 Format JS 2022-01-07 17:31:22 +00:00
Ian Morland
a4b678ce51 Update JS imports 2022-01-07 17:31:06 +00:00
Ian Morland
41233e4e05 Bump JS deps 2022-01-07 17:24:18 +00:00
flarum-bot
675bb16f9c Bundled output for commit 9d7f9eb0e5
Includes transpiled JS/TS.

[skip ci]
2022-01-07 17:08:20 +00:00
Ian Morland
9d7f9eb0e5 Update JS imports (#40) 2022-01-07 12:07:20 -05:00
flarum-bot
3942ec4e00 Bundled output for commit 1bd32bb4e0
Includes transpiled JS/TS.

[skip ci]
2022-01-07 14:06:45 +00:00
Ian Morland
1bd32bb4e0 chore: convert flag items to ItemList (#39)
* Convert to ItemList, update import namespaces

* Bump deps, add prettier

* Format js
2022-01-07 14:05:40 +00:00
Alexander Skvortsov
45a0e4a3cd Switch to yarn 2022-01-06 21:49:33 -05:00
Alexander Skvortsov
fbf63c7a4f Rerun audit infra --fix 2022-01-06 21:48:12 -05:00
Rafał Całka
b4211a3920 fix: duplicate dependencies in package.json (#25) 2022-01-07 00:21:03 +00:00
Alexander Skvortsov
0f72537c7c Run flarum-cli audit infra 2022-01-04 18:35:34 -05:00
flarum-bot
bc036af8b6 Bundled output for commit e5ba4f4320
Includes transpiled JS/TS.

[skip ci]
2022-01-04 23:33:11 +00:00
StyleCI Bot
e5ba4f4320 Apply fixes from StyleCI 2022-01-04 23:31:59 +00:00
Rafał Całka
178f91aff9 Rewrite extension, call API manually, take advantage of features not supported by the current library (#24)
This PR updates the entire extension. It will not use a library that has not been updated for years, so it should work with newer versions of PHP.
Additionally, it sends more information to the Akismet API to make spam detection more accurate.
The Akismet class can be used by other extensions.

Todo:
- [x] Convert frontend to TypeScript
- [x] Call Akismet API manually
- [x] Option to remove blatant spam
- [x] Permission to bypass Akismet
- [x] Sending additional parameters like `is_test`

Nice to have, but can be left for another PR:
- [ ] Suspend obvious spamers
- [ ] Send  `blog_lang` parameter
- [ ] Checking post edits

Sponsored by [forum.android.com.pl](https://forum.android.com.pl/)
2022-01-04 18:31:47 -05:00
David Wheatley
d65063923b chore: 1.1.1 changelog 2021-12-30 22:30:38 +01:00
flarum-bot
6946c9f2cb Bundled output for commit 1738957af7
Includes transpiled JS/TS.

[skip ci]
2021-12-30 21:05:08 +00:00
David Wheatley
1738957af7 feat: make markdown toolbar extensible (#33) 2021-12-30 22:02:25 +01:00
flarum-bot
e70bcdb8df Bundled output for commit ac83e9b667
Includes transpiled JS/TS.

[skip ci]
2021-12-29 20:43:48 +00:00
David Wheatley
ac83e9b667 fix: re-use of texteditor with markdown ext breaks markdown toolbar items (#34)
* fix: re-use of texteditor with markdown ext breaks markdown toolbar items

* code review
2021-12-29 20:41:19 +00:00
David Wheatley
05af2ddf39 chore: ignore composer lockfile 2021-12-29 13:44:43 +01:00
David Wheatley
8070247433 chore: add TS config 2021-12-29 13:44:24 +01:00
flarum-bot
6155046330 Bundled output for commit ad41c1f270
Includes transpiled JS/TS.

[skip ci]
2021-12-29 12:20:04 +00:00
David Wheatley
ad41c1f270 ci: add Prettier formatting check 2021-12-29 13:17:12 +01:00
David Wheatley
81b27ede28 feat: add prettier formatting 2021-12-29 13:17:02 +01:00
David Wheatley
252cd8455b chore: switch to Yarn 2021-12-29 13:11:42 +01:00
David Wheatley
28e636b5b0 chore: fully remove mdarea references; bump dependencies 2021-12-29 13:05:04 +01:00
flarum-bot
899131f258 Bundled output for commit 3e8d5bd400
Includes transpiled JS/TS.

[skip ci]
2021-12-23 13:00:37 +00:00
Rafał Całka
3e8d5bd400 Replace jQuery code with vanilla JS for better performance (#35)
* Bundle `pusher-js`

* Update `pusher/pusher-php-server`

* StyleCi fix

* Revert "Bundle `pusher-js`"

This reverts commit 55bb1ff0988973e436317c00ca2b83ad4c39d6da.

* Remove no longer used code

* Replace `$.getScript` for better performance

* Revert "Update `pusher/pusher-php-server`"

This reverts commit 7d1e2336

* Use `import()`

* Add `once`

* Update js/tsconfig.json

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

* Async function

Co-authored-by: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com>
2021-12-23 13:59:25 +01:00
flarum-bot
13f5f3ff7f Bundled output for commit 73cae9bcdc
Includes transpiled JS/TS.

[skip ci]
2021-12-23 00:47:21 +00:00
Sami Mazouz
73cae9bcdc feat: Improve UX with bypass tag requirements (#153) 2021-12-22 19:46:04 -05:00
flarum-bot
d63cd16f15 Bundled output for commit 7453bc338a
Includes transpiled JS/TS.

[skip ci]
2021-12-20 16:33:35 +00:00
Sami Mazouz
7453bc338a fix: minor js error when user is not suspended (#42) 2021-12-20 17:32:25 +01:00
flarum-bot
d47f2bfc53 Bundled output for commit f47f3f601d
Includes transpiled JS/TS.

[skip ci]
2021-12-14 18:20:22 +00:00
Alexander Skvortsov
f47f3f601d Don't load discussions on admin (#152)
Fixes https://github.com/flarum/core/issues/3201
2021-12-14 13:19:08 -05:00
Sami Mazouz
f7777ff9e3 perf: Fix eager loading of tag state relation in other endpoints (#151) 2021-12-13 11:34:51 +01:00
flarum-bot
8f48630458 Bundled output for commit fc06dba1b3
Includes transpiled JS/TS.

[skip ci]
2021-12-12 23:49:16 +00:00
Ian Morland
fc06dba1b3 feat: Display suspension to user (#41) 2021-12-13 00:48:10 +01:00
flarum-bot
9d986c331d Bundled output for commit 0ef2b3e249
Includes transpiled JS/TS.

[skip ci]
2021-12-12 19:43:30 +00:00
Rafał Całka
0ef2b3e249 Convert to Typescript (#34) 2021-12-12 14:42:37 -05:00
flarum-bot
06fe9ee2ef Bundled output for commit df86c11355
Includes transpiled JS/TS.

[skip ci]
2021-12-12 07:42:32 +00:00
Rafał Całka
df86c11355 Fixed broken discussion list pagination when clicking on the update button (#33) 2021-12-12 02:41:25 -05:00
flarum-bot
4ac4338f9a Bundled output for commit 140d6ea221
Includes transpiled JS/TS.

[skip ci]
2021-11-28 15:57:41 +00:00
David Wheatley
140d6ea221 chore: format javascript 2021-11-28 15:56:30 +00:00
David Wheatley
dc35f048b5 docs: changelog for 1.1.3 2021-11-28 15:54:07 +00:00
Ian Morland
7d3bc4a092 fix?: Allow mentions from non-post objects (#79) 2021-11-28 09:52:29 +01:00
SychO9
8fecb6ae9a test: Add php 8.1 to tests 2021-11-25 23:54:46 +01:00
SychO9
488edaca7a test: Checking for updates and global updating 2021-11-24 20:16:25 +01:00
SychO9
5206e8e1dc chore: 200 status codes 2021-11-24 19:49:41 +01:00
SychO9
97ac47ea94 chore: Remove dead code 2021-11-24 19:41:32 +01:00
Sami Mazouz
1754313503 test: Updates (#11) 2021-11-24 18:25:43 +01:00
SychO9
b2d8f3dd5b Add actor to extension update event 2021-11-23 23:50:06 +01:00
SychO9
8e39edb200 chore: remove test code 2021-11-23 23:06:30 +01:00
SychO9
f4bb8158ef feat: misc additions
- Detect extensions that didn't update between updates
- Add composer why not command where approriate (when extension didn't update, when major update failed)
- Detect incompatible extensions in major update failure and show the extensions in the frontend
- Create last update run setting value which holds the state of the latest update runs
- Other fixes
2021-11-23 23:02:56 +01:00
flarum-bot
e8cb1559cf Bundled output for commit f41d6bba7e
Includes transpiled JS/TS.

[skip ci]
2021-11-23 21:39:39 +00:00
David Wheatley
f41d6bba7e fix: errors on texteditor re-use again (#78)
* fix: errors on texteditor re-use again

* fix: use arrow func to not alter `this`

* fix: more replacements
2021-11-23 21:38:28 +00:00
flarum-bot
2721ac8498 Bundled output for commit 302d92aa47
Includes transpiled JS/TS.

[skip ci]
2021-11-23 20:45:52 +00:00
Gianni Guida
302d92aa47 feat: added compat exports and extensibility (#76)
* Added extensibility

* Corrected object export

* Exported the `insertMention` util

* Return a `Promise` in the `reply` util (for extensibility)

* Removed initialization utils

Co-authored-by: Rafael Horvat <rafael.horvat@glowingblue.com>
2021-11-23 20:44:46 +00:00
SychO9
c8b8dacb67 Remove dead code 2021-11-20 16:59:24 +01:00
SychO9
2e3a78ca2d require core dev master when deving 2021-11-20 16:54:19 +01:00
SychO9
fd70b46c91 Re-run update check after update operations 2021-11-20 16:48:28 +01:00
SychO9
3497028cc0 Improve the logic behind the different features 2021-11-20 16:31:26 +01:00
SychO9
1fcd9b86d7 Remove testing code 2021-11-18 15:17:16 +01:00
SychO9
38cd56c351 Change minor updating to update everything as is currently 2021-11-18 15:14:22 +01:00
SychO9
71e812c386 Split responsibilities across different classes. 2021-11-17 20:53:27 +01:00
flarum-bot
aeafc483e3 Bundled output for commit 3c5229610f
Includes transpiled JS/TS.

[skip ci]
2021-11-17 16:18:54 +00:00
Alexander Skvortsov
3c5229610f Prompt for nickname on registration (#4)
Allow users to set a nickname while registering, controlled by settings. Also, add a setting to hide the username input entirely and randomly generate the username.

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2021-11-17 11:17:36 -05:00
David Wheatley
4be430276e chore: changelog for 1.1.1 2021-11-16 18:54:54 +00:00
David Wheatley
f611938707 chore: changelog for 1.1.2 2021-11-16 18:54:03 +00:00
Ian Morland
2b00c9817b Bump flarum-webpack-config to 1.0.0 (#44) 2021-11-16 16:25:09 +01:00
flarum-bot
c72d0c6815 Bundled output for commit 99644abb30
Includes transpiled JS/TS.

[skip ci]
2021-11-16 15:01:03 +00:00
Ian Morland
99644abb30 fix: set priority on subscription item (#43) 2021-11-16 14:58:34 +00:00
flarum-bot
419a91f447 Bundled output for commit e31bfd71a1
Includes transpiled JS/TS.

[skip ci]
2021-11-15 18:01:31 +00:00
David Wheatley
e31bfd71a1 fix: errors with composer reuse (#42)
* fix: errors with composer reuse

* fix: use arrow func
2021-11-15 17:59:59 +00:00
flarum-bot
94bb882120 Bundled output for commit 69657f63b7
Includes transpiled JS/TS.

[skip ci]
2021-11-13 22:00:12 +00:00
David Wheatley
69657f63b7 fix: autocomplete errors with TextEditor re-use (#77) 2021-11-13 21:58:52 +00:00
SychO9
3bd2dd4813 Move exception cause guessing out of handler 2021-11-09 20:32:09 +01:00
SychO9
7f5f5687db Auto append :* when installing an extension if not specifying a version 2021-11-09 20:06:03 +01:00
SychO9
594bbe4f34 Use an adapter class for composer 2021-11-09 17:38:47 +01:00
SychO9
c3f8a58f97 Only run migrations for enabled extensions 2021-11-08 22:07:30 +01:00
Sami Mazouz
a9ff884231 Extension Tests (#9) 2021-11-08 20:22:07 +01:00
Alexander Skvortsov
c1069ff035 Basic validation for tags slugs (#150)
* Co-authored-by  <sychocouldy@gmail.com>
2021-11-06 06:46:17 -04:00
flarum-bot
61020eadd6 Bundled output for commit 056c79a908
Includes transpiled JS/TS.

[skip ci]
2021-11-05 19:05:24 +00:00
Sami Mazouz
056c79a908 fix: Cannot reply to posts by deleted authors (#75) 2021-11-05 20:04:20 +01:00
David Wheatley
5cef9ad52c fix: use yarn in CI workflows (#10) 2021-11-03 08:39:59 +01:00
Sami Mazouz
cabe25acb4 perf: Eager load tags state with actor id (#149) 2021-11-02 12:08:15 +01:00
flarum-bot
d840205161 Bundled output for commit 1adb9ca553
Includes transpiled JS/TS.

[skip ci]
2021-10-25 17:59:41 +00:00
David Wheatley
1adb9ca553 Revert "feat: encapsulate markdown buttons in itemlist"
This reverts commit d4aecfc9e3.
2021-10-25 19:58:28 +02:00
flarum-bot
11f5958dae Bundled output for commit d4aecfc9e3
Includes transpiled JS/TS.

[skip ci]
2021-10-25 17:57:50 +00:00
flarum-bot
0a30aa1663 Bundled output for commit bae89a2f44
Includes transpiled JS/TS.

[skip ci]
2021-10-25 17:57:29 +00:00
David Wheatley
d4aecfc9e3 feat: encapsulate markdown buttons in itemlist 2021-10-25 19:56:35 +02:00
Lucas Fernandes
bae89a2f44 Add missing translation for the reason flag (#30) 2021-10-25 13:56:17 -04:00
SychO9
a144c026f3 Move to flarum 2021-10-21 10:52:51 +01:00
flarum-bot
892259f448 Bundled output for commit 44bdb68ccd
Includes transpiled JS/TS.

[skip ci]
2021-10-20 20:49:41 +00:00
Alexander Skvortsov
44bdb68ccd Comply with bypassTagCounts permission in UI (#148) 2021-10-20 16:48:13 -04:00
flarum-bot
b245b41b67 Bundled output for commit ffd982df7f
Includes transpiled JS/TS.

[skip ci]
2021-10-18 19:53:25 +00:00
SychO9
ffd982df7f Merge branch 'v1.1.1'
# Conflicts:
#	js/dist/forum.js
#	js/dist/forum.js.map
2021-10-18 20:49:03 +01:00
SychO9
f1f6da10fd chore: Release v1.1.1 2021-10-18 20:27:11 +01:00
Sami Mazouz
3437d7229e fix: Missing # from autocompleted user mention format (#74) 2021-10-18 20:17:22 +01:00
flarum-bot
e63f030094 Bundled output for commit a2832af01f
Includes transpiled JS/TS.

[skip ci]
2021-10-13 18:58:59 +00:00
Alexander Skvortsov
a2832af01f Only search users via rest API if user has permission (#73)
Closes https://github.com/flarum/core/issues/3070

If the user doesn't have permission to search users, there will currently be browser errors, as the current implementation will still attempt to search and autocomplete. In this PR, we check for permission before searching. The dropdown will still support autocomplete of users currently participating in the discussion.
2021-10-13 14:57:45 -04:00
flarum-bot
a8937161db Bundled output for commit c5e9881046
Includes transpiled JS/TS.

[skip ci]
2021-10-13 11:07:54 +00:00
David Wheatley
c5e9881046 chore: fix JS 2021-10-13 12:06:46 +01:00
flarum-bot
4f3b797b75 Bundled output for commit 152a9bed14
Includes transpiled JS/TS.

[skip ci]
2021-10-13 11:06:14 +00:00
David Wheatley
152a9bed14 chore: fix JS 2021-10-13 12:05:05 +01:00
flarum-bot
6ced7809b1 Bundled output for commit 11e10406bd
Includes transpiled JS/TS.

[skip ci]
2021-10-13 11:03:16 +00:00
flarum-bot
408a1bba51 Bundled output for commit 6f117a24e4
Includes transpiled JS/TS.

[skip ci]
2021-10-13 11:02:15 +00:00
David Wheatley
11e10406bd chore: fix JS 2021-10-13 12:02:15 +01:00
David Wheatley
6f117a24e4 chore: update lockfile 2021-10-13 12:01:03 +01:00
David Wheatley
15dee0ca48 chore: fix JS 2021-10-13 12:00:05 +01:00
flarum-bot
b5c3d630d5 Bundled output for commit 06813fae86
Includes transpiled JS/TS.

[skip ci]
2021-10-13 10:59:00 +00:00
David Wheatley
06813fae86 chore: fix JS 2021-10-13 11:58:02 +01:00
flarum-bot
62345237ac Bundled output for commit a3edd16e47
Includes transpiled JS/TS.

[skip ci]
2021-10-13 10:57:12 +00:00
David Wheatley
a3edd16e47 chore: fix JS 2021-10-13 11:56:17 +01:00
flarum-bot
4bda5c540a Bundled output for commit 462bf60e88
Includes transpiled JS/TS.

[skip ci]
2021-10-13 10:55:25 +00:00
David Wheatley
462bf60e88 chore: fix JS 2021-10-13 11:54:31 +01:00
flarum-bot
aebd638097 Bundled output for commit ea5994f2e4
Includes transpiled JS/TS.

[skip ci]
2021-10-13 10:53:15 +00:00
David Wheatley
ea5994f2e4 chore: fix JS 2021-10-13 11:52:14 +01:00
flarum-bot
619317d023 Bundled output for commit 3fe2ccc160
Includes transpiled JS/TS.

[skip ci]
2021-10-13 09:02:29 +00:00
David Wheatley
3fe2ccc160 attempt build fix 2021-10-13 10:01:11 +01:00
Daniel Klabbers
f03e666a77 use ^4.46.0 for webpack 2021-10-13 10:30:56 +02:00
Daniel Klabbers
9a339fea6a lock webpack to 4.* 2021-10-13 10:28:53 +02:00
Daniel Klabbers
77f625df34 compiled for v1.1.0 2021-10-13 10:22:20 +02:00
David Wheatley
dba3ec69e8 chore: bump bundled extension constraint to core 1.1 2021-10-13 08:25:37 +01:00
David Wheatley
92463465e6 chore: bump bundled extension constraint to core 1.1 2021-10-13 08:06:02 +01:00
David Wheatley
8a0035e040 chore: bump bundled extension constraint to core 1.1 2021-10-13 08:05:58 +01:00