Commit Graph

150 Commits

Author SHA1 Message Date
dependabot[bot]
13e655aca5
chore(deps): bump webpack from 5.75.0 to 5.76.0 (#3761)
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-19 07:45:00 +01:00
Sami Mazouz
b66fe5dd5f
chore(release): preparations
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-03-09 19:00:32 +01:00
flarum-bot
360a2ba1d8 Bundled output for commit eaa4063fef
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-03-08 19:21:16 +00:00
Sami Mazouz
eaa4063fef
fix(qa): attempt to fix akismet error
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-03-08 20:14:09 +01:00
Sami Mazouz
da1bf8da21
chore(phpstan): enable phpstan in bundled extensions (#3667)
* feat(phpstan): pick up extended model relations typings
* feat(phpstan): pick up extended model date attributes
* feat(core): introduce `castAttribute` extender
Stops using `dates` as it's deprecated in laravel 8
* feat(phpstan): pick up extended model attributes through casts
* fix: extenders not resolved when declared namespace
* fix(phpstan): new model attributes are always nullable
* chore(phpstan): add helpful cache clearing command
* Apply fixes from StyleCI
* chore: improve extend files provider logic
* chore: rename `castAttribute` to just `cast`
* chore: update phpstan package to detect `cast` method
* chore: enable phpstan in bundled extensions
* chore: rebasing conflicts
* chore: rebasing conflicts
* chore: typings for latest 1.7 changes

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-01-19 21:49:38 +01:00
flarum-bot
0e238a9c82 Bundled output for commit 64fa35f2f3
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-25 17:25:24 +00:00
flarum-bot
c50c924242 Bundled output for commit 18bdd48835
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-16 10:30:13 +00:00
flarum-bot
ab56aefeaa Bundled output for commit 259db92b9a
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-10 23:30:18 +00:00
Daniël Klabbers
1e00e3fdbb chore: dependency on core updated for extensions 2022-11-10 13:48:00 +01:00
Daniël Klabbers
45d91212f6 fix: akismet fails when the extension is not on a version 2022-11-09 20:42:49 +01:00
Daniël Klabbers
a35df8c139 chore: v1.5.0 preparations 2022-09-13 10:55:30 +02:00
Sami Mazouz
631b4c194c
chore: unify JS actions into one (rewritten flarum/action-build) (#3573)
* chore: unify JS actions into one (rewritten `flarum/action-build)`
* chore: maintain backwards compatibility
* fix: wrong default format check script

Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-08-08 14:48:43 +01:00
flarum-bot
40fa7a2c9b Bundled output for commit f69210b6d1
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-08 12:35:51 +00:00
David Wheatley
3bdb0af993
fix: intellisense imports defaulting to absolute path from src folder (#3549)
* docs: remove baseUrl recommendation

Fixes https://github.com/flarum/flarum-tsconfig/issues/4

* chore: implement change within framework monorepo
2022-08-05 20:23:45 +01:00
Sami Mazouz
64f0ae7c33
chore: revert tsconfig changes for local development (#3545)
* chore: delete unwanted dist typings
* chore: revert 4e52f0e420

Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-07-19 10:30:23 +01:00
flarum-bot
78544ce68d Bundled output for commit af3116bce9
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-07-18 18:12:03 +00:00
Ian Morland
8dcfa6c474
fix: move guzzle composer requirement to core (#3544) 2022-07-18 16:10:04 +01:00
Sami Mazouz
4e52f0e420
chore: monorepo local development improvements (#3523)
* chore: centralize editorconfig
* chore: tweak tsconfigs for local development
* revert src path change
* fix: akismet type checking requires flag ext `@types`
* fix: make tags route optional to avoid typescript typing error
2022-07-18 15:19:11 +01:00
Daniël Klabbers
556d461cfb chore: update v1.4 constraints and update issues url 2022-07-12 23:30:03 +02:00
Sami Mazouz
abc12b4ba5
chore: add .gitattributes to extensions to export-ignore files. (#3513)
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-07-08 20:38:20 +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
Daniël Klabbers
592039c483 update constraint to v1.3 2022-05-10 16:28:35 +02: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
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
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
2a6a07c829 fix: regenerate lockfile
This should help fix some build issues.
2022-02-08 17:34:32 -05: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
a6581e5918 fix: build typings script 2022-01-20 04:25:16 -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
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
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
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
David Wheatley
dba3ec69e8 chore: bump bundled extension constraint to core 1.1 2021-10-13 08:25:37 +01:00
flarum-bot
4146913d55 Bundled output for commit e127d8606b
Includes transpiled JS/TS.

[skip ci]
2021-10-12 01:27:23 +00:00
Alexander Skvortsov
e127d8606b Release v1.1.0 2021-10-11 21:00:48 -04:00
Daniel Klabbers
c8c3463e6d fix branch alias 2021-05-25 22:44:50 +02:00
Daniel Klabbers
b67889f56e use shorter constraint 2021-05-25 15:07:57 +02:00