Commit Graph

20 Commits

Author SHA1 Message Date
Sami Mazouz
5cea3d3b9b
feat: admin search UI (#4022) 2024-09-28 09:35:37 +01:00
Sami Mazouz
016503d8c3
feat: export registry (#3842)
* feat: registry first iteration

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* feat: improve webpack auto export loader

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* chore: remove `compat` API

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* chore: cleanup

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

---------

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-06-29 18:57:53 +01:00
David Wheatley
e63e161be6
chore: major frontend JS cleanup (#3609) 2023-05-07 17:40:18 +01: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
6d3da9c5f2 fix: minor TS improvements 2022-01-27 16:40:49 -05: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
Rafał Całka
0ef2b3e249 Convert to Typescript (#34) 2021-12-12 14:42:37 -05: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
Rafał Całka
fa2cb91182 Fixing posts not appearing automatically (#32) 2021-08-07 11:24:00 +01:00
Alexander Skvortsov
0be39b144c Update for ICU MessageFormat 2021-05-12 19:37:44 -04: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
Alexander Skvortsov
f5c8dade55 Update admin js for admin us redesign 2020-11-25 01:26:36 -05:00
Sami Mazouz
8dc99db73e Fix refresh button (#27) 2020-11-01 16:45:09 -05:00
Alexander Skvortsov
49d9354025 Don't provide children as attr 2020-10-26 14:35:33 -04:00
Alexander Skvortsov
9307cf17b3 Mithril 2 Update (#23)
Update for Mithril 2
2020-09-23 22:54:48 -04:00
Alexander Skvortsov
eae4967c2d Fix extension to work with latest state changes 2020-07-01 20:15:12 -04: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
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
Toby Zerner
b8661a166f Update old attribute names. fixes flarum/core#1666 2018-12-04 09:18:01 +10:30
Toby Zerner
b41b69b0bf Webpack (#14)
See https://github.com/flarum/core/pull/1367

* Replace gulp with webpack and npm scripts for JS compilation
* Set up Travis CI to commit compiled JS
* Restructure `js` directory; only one instance of npm, forum/admin are "submodules"
* Restructure `less` directory
2018-06-20 13:35:38 +09:30