Commit Graph

58 Commits

Author SHA1 Message Date
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
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
0beac940d7 feat: add compiled dist-typings folder 2022-02-23 16:04:21 -05:00
Alexander Skvortsov
350f2c173f fix: regenerate lockfile
This should fix some JS build issues.
2022-02-08 17:29:54 -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
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
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
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
David Wheatley
5cef9ad52c fix: use yarn in CI workflows (#10) 2021-11-03 08:39:59 +01:00
SychO9
a144c026f3 Move to flarum 2021-10-21 10:52:51 +01:00
SychO9
7e174dd08a [untested] Major Update handler (#1) 2021-10-03 10:58:17 +01:00
SychO9
2ce28f8e5c Improve update checking and add UI for major flarum update 2021-10-01 17:52:15 +01:00
SychO9
0aed124911 yarn format 2021-09-30 21:45:09 +01:00
SychO9
68a3133bbb Prepend input to composer output log (Fixes #7) 2021-09-30 21:44:27 +01:00
SychO9
670a4dd26a Add docs link 2021-09-29 14:31:07 +01:00
SychO9
2b8a85c933 fix: Only core update available not showing up 2021-09-29 14:19:02 +01:00
SychO9
79b5629125 fix: Buffer output 2021-09-29 14:04:53 +01:00
SychO9
1b65c6862e Log composer command outputs (Fixes #5) 2021-09-29 13:00:36 +01:00
SychO9
d878eeb92a Global Update (Fixes #2) 2021-09-29 12:07:53 +01:00
SychO9
77f0dca47e Extension state exceptions 2021-09-29 11:03:13 +01:00
SychO9
e19c9ea67c Post Composer Actions (Fixes #3) 2021-09-29 10:40:40 +01:00
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