Commit Graph

243 Commits

Author SHA1 Message Date
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
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
Daniël Klabbers
592039c483 update constraint to v1.3 2022-05-10 16:28:35 +02: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
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
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
Daniel Klabbers
8a7a016d24 Release v1.2 2022-01-20 12:03:29 +01: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
de4a0db0ec chore: flarum-cli audit infra --fix 2022-01-20 03:55:30 -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
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
David Wheatley
3b8447ffb2 chore: bump bundled extension constraint to core 1.1 2021-10-13 08:05:29 +01:00
Alexander Skvortsov
75f3ec0b36 Release v1.1.0 2021-10-11 21:16:54 -04:00
Sami Mazouz
6f706f7774 Use css variables for badge (#42) 2021-08-16 10:18:56 +01:00
flarum-bot
ee0cbf9d85 Bundled output for commit 81187fe5fe
Includes transpiled JS/TS.

[skip ci]
2021-07-18 20:22:50 +00:00
David Wheatley
81187fe5fe Repo maintenance: add Prettier config, update deps (#41)
* Bump deps; add prettier dep

* Add Prettier config
2021-07-18 21:21:44 +01:00
Daniel Klabbers
53ed61c444 fix branch alias 2021-05-25 22:52:55 +02:00
Daniel Klabbers
448d8401d4 changes for stable 2021-05-25 16:50:04 +02:00
flarum-bot
c7b235a781 Bundled output for commit f3ac771980
Includes transpiled JS/TS.

[skip ci]
2021-05-17 00:46:10 +00:00
David Wheatley
f3ac771980 Fix Tooltip deprecation warnings 2021-05-17 01:45:00 +01:00
Alexander Skvortsov
b51c7c01ba Bump composer reqs for 1.0.0 2021-05-16 18:29:28 -04:00
David Wheatley
4e44f1fe6b Update copyright year 2021-05-15 00:57:53 +01:00
flarum-bot
e12320a25d Bundled output for commit e783a7603d [skip ci] 2021-03-18 16:39:31 +00:00
sl-kr
e783a7603d change value of subscribed from false to null in the JSON API (#37) 2021-03-18 12:38:21 -04:00
Alexander Skvortsov
c1c47e81aa SubscriptionFilterGambit: properly implement conditions method 2021-03-17 14:22:10 -04:00
Matt Kilgore
34ee9c32de Fix Changelog beta.16 header link 2021-03-15 11:39:02 -04:00
Daniel Klabbers
786bf91f93 Release v0.1.0-beta.16 2021-03-15 12:36:13 +01:00
Alexander Skvortsov
caaefa1bf1 Use non-deprecated translator interface 2021-03-13 17:11:03 -05:00
flarum-bot
ff8e3f8a92 Bundled output for commit 2da4f8204e [skip ci] 2021-03-13 21:33:44 +00:00
Alexander Skvortsov
2da4f8204e Apply fixes from StyleCI 2021-03-13 21:33:02 +00:00
Alexander Skvortsov
58fa8d4b8c Update for beta 16 2021-03-13 16:32:48 -05:00
Charlie
d8a39508dd Change Category (#39) 2021-03-08 14:33:13 -05:00
Robert Korulczyk
5f5cb9318d Move locale files from language pack to extension. (#34) 2021-02-17 16:25:03 -05:00
flarum-bot
293b2e31cf Bundled output for commit b222856744 [skip ci] 2021-01-07 15:25:43 +00:00
Alexander Skvortsov
b222856744 Add an onFollowing param to GlobalSearchState (#38)
Add an `onFollowing` param to GlobalSearchState

This ensures that it will be taken into account by IndexPage's `refreshParams` call, preventing the following page from being shown if the user:

1. goes to following
2. goes to any other page not inheriting IndexPage
3. goes to 'all discussions'

Ref https://github.com/flarum/core/issues/2516 for a full explanation.
2021-01-07 10:24:41 -05:00
Daniël Klabbers
1b69d455d1 changelog and constraint for beta 15 2020-12-15 09:30:15 +01:00
Daniël Klabbers
a30a5aefce npm audit fix 2020-12-15 09:29:29 +01:00
Alexander Skvortsov
03fc9d2119 Update composer metadata for admin dashboard 2020-12-08 19:58:17 -05:00
Alexander Skvortsov
9614c9d5c1 Use User extender for preference registration, move search modifications back into callback style extender 2020-12-08 12:43:59 -05:00
Sami Mazouz
2ef3bf411f Use new extenders (#36) 2020-12-08 12:37:40 -05:00
Alexander Skvortsov
032ad4aadc Add composer metadata for admin ux redesign 2020-11-25 01:34:01 -05:00
Sami Mazouz
249626c68d Use the new Notification type extender (#35) 2020-10-31 18:42:30 -04:00
Daniël Klabbers
9164eafd42 changelog and dep for v0.1.0-beta.14 2020-10-15 16:04:46 +02:00
Daniël Klabbers
db88a12cde npm audit security vulnerabilities patched 2020-10-14 10:02:07 +02:00
Alexander Skvortsov
063b853305 Translate notification emails (#30) 2020-09-30 15:51:00 -04:00
flarum-bot
eebefa196e Bundled output for commit 6bdbee70db [skip ci] 2020-09-24 02:57:42 +00:00
Alexander Skvortsov
6bdbee70db Mithril 2 Update (#32)
Update for Mithril 2
2020-09-23 22:56:47 -04:00
dependabot[bot]
73579883f6 Bump elliptic from 6.5.2 to 6.5.3 in /js (#31)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:08:57 +02:00
Alexander Skvortsov
39bf9af538 Don't typehint the view factory in the closure in extend.php
This causes the view factory to resolve early, breaking all future extensions that use the view extender
2020-07-27 19:31:13 -04:00
Matt Kilgore
1fe034460b Removes AssertPermissionTrait (#29)
* Removes AssertPermissionTrait

* Apply fixes from StyleCI

* Fix my dumb mistake

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-07-19 17:37:05 -04:00
Franz Liedke
2648ee2031 Use new View extender
Refs flarum/core#2134.
2020-07-17 12:11:25 +02:00
dependabot[bot]
db11257494 Bump lodash from 4.17.15 to 4.17.19 in /js (#28)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 10:47:35 +02:00
flarum-bot
b5b477ad3a Bundled output for commit 0654a93c1e [skip ci] 2020-06-26 14:12:46 +00:00
Franz Liedke
0654a93c1e Fix extension to work with latest state changes
Refs flarum/core#2151.
2020-06-26 16:11:16 +02:00
flarum-bot
52b832c520 Bundled output for commit 04ee85f266 [skip ci] 2020-06-26 14:07:34 +00:00
Franz Liedke
04ee85f266 Fix extension to work with latest state changes
Refs flarum/core#2150.
2020-06-26 16:06:16 +02:00
Franz Liedke
6c6975a750 Remove unused imports 2020-06-26 16:06:05 +02:00
Alexander Skvortsov
2a4e8bf8ad Add empty locale extender to clear cache properly on enable/disable.
See https://github.com/flarum/core/pull/2020#issuecomment-616149583
2020-06-19 22:22:54 -04:00
flarum-bot
c5deb89fee Bundled output for commit a67e90adf4 [skip ci] 2020-06-03 10:47:58 +00:00
Alexander Skvortsov
a67e90adf4 Added meta title to following page (#23)
Refs flarum/core#495.
2020-06-03 12:46:05 +02:00
Hasan Özbey
72bb3ef5be fix button colors for dark mode (#26) 2020-05-27 12:51:55 -04:00
Daniël Klabbers
df32bae2b6 Release v0.1.0-beta.13 2020-05-04 10:44:10 +02:00
Franz Liedke
466a62231c Update Webpack 2020-05-01 11:56:02 +02:00
Franz Liedke
cadb279bf1 npm audit fix 2020-04-24 14:30:31 +02:00
luceos
fa8e5afbbd Apply fixes from StyleCI 2020-04-01 13:00:45 +00:00
datitisev
87437d1bdc Apply fixes from StyleCI 2020-04-01 15:00:28 +02:00
David Sevilla Martin
9f3d6a9a1f Queue 'new post' notification
Fixes flarum/core#1869
2020-04-01 15:00:28 +02:00
dependabot[bot]
82978c57ce Bump acorn from 6.4.0 to 6.4.1 in /js (#24)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:25:50 +01:00
Daniël Klabbers
b7ac4796d3 remove author, updated deps 2020-03-03 14:49:56 +01:00
Daniël Klabbers
2ee8093099 changelog for b12 2020-03-03 14:49:39 +01:00
flarum-bot
607cea212f Bundled output for commit bf31808119 [skip ci] 2020-02-11 20:44:56 +00:00
Franz Liedke
bf31808119 Update Webpack 2020-02-11 21:44:11 +01:00
Tariq Hussein
b92e5a214f Replaced whereExists/whereNotExists with whereIn/whereNotIn (#22) 2020-01-08 22:02:28 +01:00
Franz Liedke
907cc2fbe7 Apply fixes from StyleCI 2019-11-29 23:02:31 +00:00
Franz Liedke
405a2fe965 Update copyright claims in LICENSE 2019-11-30 00:01:03 +01:00
Franz Liedke
ab198e5898 Update vulnerable JS dependencies 2019-09-13 15:35:13 +02:00
Franz Liedke
2b51bdf66e Add GitHub workflow for JavaScript building 2019-08-20 23:54:26 +02:00
Daniël Klabbers
72ca5e9978 update constraint 2019-06-24 12:04:17 +02:00
Daniël Klabbers
7402c46b6f changelog for 0.1.0-beta.9 2019-06-24 11:46:55 +02:00
Franz Liedke
34553bb823 Add changelog 2019-02-15 00:30:51 +01:00
flarum-bot
1342fb5c3a Bundled output for commit c28aaf8ddd [skip ci] 2019-02-13 19:09:54 +00:00
Franz Liedke
c28aaf8ddd Update JS dependencies to fix vulnerable packages 2019-02-13 20:08:15 +01:00
Franz Liedke
dfadc8f5fc Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-16 15:00:02 +01:00
Franz Liedke
ef11e87119 Rely on TextFormatter to unparse the post content
Fixes flarum/core#920.
2018-12-11 22:28:26 +01:00
Toby Zerner
85ea9851d4 Fix travis builds 2018-12-04 10:16:33 +10:30
Toby Zerner
f6f604b0d9 Fix new post notifications not being sent
It seems that c7aeef19ea actually caused
a regression. With the order of execution of extensions, this event
listener was always being executed before the discussion metadata
was updated, and the listener priority was not actually necessary.

Fixes flarum/core#1646
2018-11-21 22:04:52 +10:30
Toby Zerner
264c730d0d Remove sudo: false
See https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
2018-11-21 18:57:14 +10:30
flarum-bot
9d2e4e8ed6 Bundled output for commit 7ccfc409de [skip ci] 2018-11-21 08:23:50 +00:00
Toby Zerner
7ccfc409de Make npm package private, update deps, change watch to dev 2018-11-21 18:46:05 +10:30
Toby Zerner
276d819320 Remove copyright year from LICENSE 2018-11-21 18:37:21 +10:30