Commit Graph

91 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
Alexander Skvortsov
5fc0b4963a chore: flarum-cli audit infra --fix 2022-03-11 18:02:51 -05:00
Alexander Skvortsov
c942e367ca fix: regenerate lockfile
This should fix some build issues.
2022-02-08 17:32:11 -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
6d3da9c5f2 fix: minor TS improvements 2022-01-27 16:40:49 -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
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
Alexander Skvortsov
5b3839a2cc chore: flarum-cli audit infra --fix 2022-01-20 03:48:49 -05: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
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
6ced7809b1 Bundled output for commit 11e10406bd
Includes transpiled JS/TS.

[skip ci]
2021-10-13 11:03:16 +00:00
David Wheatley
11e10406bd chore: fix JS 2021-10-13 12:02:15 +01:00
flarum-bot
c8a1ec722d Bundled output for commit 5910bd98bc
Includes transpiled JS/TS.

[skip ci]
2021-10-12 01:27:12 +00:00
Alexander Skvortsov
5910bd98bc Release v1.1.0 2021-10-11 21:14:35 -04:00
flarum-bot
46fa1a1bd8 Bundled output for commit fa2cb91182
Includes transpiled JS/TS.

[skip ci]
2021-08-07 10:24:47 +00:00
Rafał Całka
fa2cb91182 Fixing posts not appearing automatically (#32) 2021-08-07 11:24:00 +01:00
Daniel Klabbers
03744e89a3 changes for stable 2021-05-25 16:32:16 +02:00
flarum-bot
48526c4892 Bundled output for commit 0be39b144c
Includes transpiled JS/TS.

[skip ci]
2021-05-13 00:02:52 +00:00
Alexander Skvortsov
0be39b144c Update for ICU MessageFormat 2021-05-12 19:37:44 -04:00
flarum-bot
14c10d400e Bundled output for commit 4f63399d4a [skip ci] 2021-03-18 15:59:27 +00:00
Daniël Klabbers
4f63399d4a Adds the ability to push new posts onto discussions that aren't public. (#17)
It's very frustrating having pusher installed, but not seeing new posts pop up on non public
discussions. This PR simply re-uses the existing channels per user by reading
all similar private user channels (which require authentication) and then pushing
the websocket message over the line. This only happens in case the discussion is
not public and it only sends to connected users.
2021-03-18 11:58:29 -04:00
Daniel Klabbers
8eb91ecfc7 Release v0.1.0-beta.16 2021-03-15 12:17:21 +01:00
Daniël Klabbers
afcd0dc511 npm audit fix 2020-12-15 09:20:31 +01:00
flarum-bot
641688f280 Bundled output for commit 20fc262c81 [skip ci] 2020-11-25 06:28:43 +00:00
Alexander Skvortsov
f5c8dade55 Update admin js for admin us redesign 2020-11-25 01:26:36 -05:00
flarum-bot
5b9acbb8c3 Bundled output for commit 8dc99db73e [skip ci] 2020-11-01 21:46:10 +00:00
Sami Mazouz
8dc99db73e Fix refresh button (#27) 2020-11-01 16:45:09 -05:00
flarum-bot
19edd65173 Bundled output for commit 49d9354025 [skip ci] 2020-10-26 18:36:30 +00:00
Alexander Skvortsov
49d9354025 Don't provide children as attr 2020-10-26 14:35:33 -04:00
Daniël Klabbers
1a19fd63da npm audit security vulnerabilities patched 2020-10-14 09:59:39 +02:00
flarum-bot
2df478224c Bundled output for commit 9307cf17b3 [skip ci] 2020-09-24 02:55:35 +00:00
Alexander Skvortsov
9307cf17b3 Mithril 2 Update (#23)
Update for Mithril 2
2020-09-23 22:54:48 -04:00
dependabot[bot]
2e1c8d79d4 Bump elliptic from 6.5.2 to 6.5.3 in /js (#22)
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:52 +02:00
dependabot[bot]
df3e1843cc Bump lodash from 4.17.15 to 4.17.19 in /js (#21)
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:48:10 +02:00
flarum-bot
c99072e6ac Bundled output for commit eae4967c2d [skip ci] 2020-07-02 00:16:19 +00:00
Alexander Skvortsov
eae4967c2d Fix extension to work with latest state changes 2020-07-01 20:15:12 -04:00
flarum-bot
24bf30d752 Bundled output for commit 9b0366c14d [skip ci] 2020-06-26 14:06:31 +00:00
Franz Liedke
9b0366c14d Fix extension to work with latest state changes
Refs flarum/core#2150, flarum/core#2156.
2020-06-26 16:05:03 +02:00
Franz Liedke
a719641ba8 Update Webpack 2020-05-01 11:51:15 +02:00
flarum-bot
e9a7f0630a Bundled output for commit 74a1ebe813 [skip ci] 2020-05-01 09:36:32 +00:00
Golden
74a1ebe813 Use different CDN for loading Pusher JS library (#20)
Use jsDelivr to increase the loading speed (when compared to MaxCDN) in China.
2020-05-01 11:35:46 +02:00
Franz Liedke
912254864c npm audit fix 2020-04-24 14:30:29 +02:00
dependabot[bot]
865ac3e766 Bump acorn from 6.4.0 to 6.4.1 in /js (#18)
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:26:05 +01:00