Commit Graph

191 Commits

Author SHA1 Message Date
Daniël Klabbers
592039c483 update constraint to v1.3 2022-05-10 16:28:35 +02: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
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
Alexander Skvortsov
5e82ded8c3 feat: use yarn workspaces 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
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
Ian Morland
07ebe5b57d [chore] update deprecated event comments (#41) 2022-02-22 14:07:04 -05:00
Daniel Klabbers
fc85ce8579 Release v1.2 2022-01-20 12:13:37 +01:00
Alexander Skvortsov
6dddb748ba chore: flarum-cli audit infra --fix 2022-01-20 03:32:36 -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
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
flarum-bot
0a30aa1663 Bundled output for commit bae89a2f44
Includes transpiled JS/TS.

[skip ci]
2021-10-25 17:57:29 +00:00
Lucas Fernandes
bae89a2f44 Add missing translation for the reason flag (#30) 2021-10-25 13:56:17 -04: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
David Wheatley
99e7e74dfa chore: bump bundled extension constraint to core 1.1 2021-10-13 08:03:50 +01:00
flarum-bot
cde8a2e87a Bundled output for commit aae835e9d2
Includes transpiled JS/TS.

[skip ci]
2021-10-12 01:27:21 +00:00
Alexander Skvortsov
aae835e9d2 Release v1.1.0 2021-10-11 21:07:45 -04:00
Daniel Klabbers
af940bf48e fix branch alias 2021-05-25 22:45:50 +02:00
Daniel Klabbers
b28e6c510f changes for stable 2021-05-25 15:58:02 +02:00
Daniel Klabbers
9222e93135 remove phpunit cache 2021-05-25 15:49:32 +02:00
Daniel Klabbers
222584b814 remove ide file 2021-05-25 15:41:21 +02:00
Alexander Skvortsov
2be508c8ab Bump composer reqs for 1.0.0 2021-05-16 18:27:55 -04:00
David Wheatley
089c17becb Update copyright year 2021-05-15 00:49:42 +01: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
Alexander Skvortsov
f80a88d45b Use RequestUtil for accessing actor 2021-04-08 00:02:11 -04:00
Alexander Skvortsov
9936681634 Use Symfony translator contract instead of deprecated component 2021-04-08 00:00:49 -04:00
Sami Mazouz
d5149b7406 Eager load post.user.groups relation and allow extensions to eager load relations (#38)
* Allow extensions to eager load relations
* Eager load post.user.groups
2021-04-07 16:24:52 +01:00
Daniel Klabbers
b481e41a9b Release v0.1.0-beta.16 2021-03-15 11:27:30 +01:00
Alexander Skvortsov
506985e881 Update for beta 16 2021-03-13 17:03:56 -05:00
Charlie
a915382cfd Change Category (#36) 2021-03-08 14:38:58 -05:00
Robert Korulczyk
2c1ab2504f Move locale files from language pack to extension. (#32) 2021-02-17 16:24:33 -05:00
Ian Morland
705ea7f2bc Add Created and Deleting events (#35) 2021-01-25 08:49:27 -05:00
Daniël Klabbers
9f065ee973 changelog and constraint for beta 15 2020-12-14 22:36:54 +01:00
Daniël Klabbers
632cb165d8 npm audit fix 2020-12-14 22:36:47 +01:00
Alexander Skvortsov
8b78feb254 Update composer metadata for admin dashboard 2020-12-08 19:56:17 -05:00
Sami Mazouz
c6e14394fd Use new extenders (#34) 2020-12-08 11:43:56 -05:00
Alexander Skvortsov
46fcc1c18b Add website and support to composer info 2020-11-25 00:55:39 -05:00
flarum-bot
7cd0645204 Bundled output for commit 9e2d794cd4 [skip ci] 2020-11-24 21:59:28 +00:00
Charlie
9e2d794cd4 AdminUX Changes (#33) 2020-11-24 16:58:40 -05:00
Daniël Klabbers
31906ca558 changelog for beta 14.1 2020-10-27 13:26:30 +01:00
flarum-bot
f2976f35fb Bundled output for commit 2c79c4c620 [skip ci] 2020-10-25 05:32:08 +00:00
Alexander Skvortsov
2c79c4c620 Don't initialize cache until we receive flags (#31) 2020-10-25 01:31:07 -04:00
Daniël Klabbers
7181b38ec1 changelog and dep for v0.1.0-beta.14 2020-10-15 13:55:23 +02:00