Commit Graph

8696 Commits

Author SHA1 Message Date
Sami Mazouz
f7dd609b26
feat: discussion UTF-8 slug driver (#3606)
* feat: add utf-8 slug driver
* test: add tests for slugging expectations
* fix: non-word characters aren't removed

Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
Co-authored-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com>
2022-08-21 15:27:41 +01:00
flarum-bot
ec97ee41f9 Bundled output for commit 335c602cea
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-20 17:30:31 +00:00
Sami Mazouz
335c602cea chore(package-manager): last tweaks before beta tag
chore: fix workflow errors
chore: fix workflow errors
chore: avoid updating an extension that wasn't directly required
chore: prevent job overlap
chore: reorganize code, separate state from view
fix: update checking ui display
chore: minor improvements

Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-08-20 18:21:02 +01:00
flarum-bot
082117d8bc Bundled output for commit 11a9b73610
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-17 13:02:21 +00:00
Hasan Özbey
11a9b73610
fix: use isCollapsed instead of rangeCount (#3581) 2022-08-17 13:56:03 +01:00
flarum-bot
974f003fe3 Bundled output for commit 352a50e3ad
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-16 17:36:57 +00:00
David Wheatley
352a50e3ad
perf(statistics): split timed data into per-model XHR requests (#3601)
* chore: kill off timeset offset from statistics extension

* perf: split timed data into per-model requests
2022-08-16 18:30:24 +01:00
Ngô Quốc Đạt
5637fe8041
fix: $events property declared dynamically (#3598) 2022-08-16 17:50:29 +01:00
David Wheatley
3d167749cb
fix(subscriptions): add missing table prefix for filter gambit (#3599) 2022-08-15 12:35:03 +02:00
David Wheatley
1a189f4923
fix: typo in error message 2022-08-14 17:16:52 +01:00
Sami Mazouz
6de8113720
test: prevent running both push and pull_request actions at the same time (#3597)
Not a 100% perfect solution, however as us maintainers always push branches directly to the original repository and make PRs from those, this is plenty enough. Instead of having 300+ actions in each PR which takes time, we'll just have the normal 171 `push` actions.

This makes sure to still run `pull_request` actions from contributors as they'd be forking the repo.

Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-08-13 09:33:37 +01:00
Sami Mazouz
f74f7f58cd
test: refactor prefix matrix and add MySQL 8.0 & PHP 7.3 to workflows (#3595)
* chore: simplify added prefix tests to matrix without using exclusions
* test: recover 7.3 testing
* test: add mysql 8.0 to matrix
* test: exclude some PHP versions from running with MySQL 8.0 to reduce actions

Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-08-12 19:22:38 +01:00
flarum-bot
34b7686d8a Bundled output for commit 4eb2112282
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-11 20:46:35 +00:00
Ian Morland
4eb2112282
feat: Admin debug mode warning (#3590)
* feat: Admin debug mode warning

* prettier

* Wrap in Alert component

* feat: add `title` and `icon` attributes to the `Alert` component

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

* Update framework/core/js/src/admin/components/DebugWarningWidget.js

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>

* Update framework/core/locale/core.yml

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>

* prettier

* chore: convert to TS

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

* Update framework/core/js/src/common/components/Alert.tsx

Co-authored-by: David Wheatley <hi@davwheat.dev>

* chore: add docs link

Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
Co-authored-by: Sami Mazouz <ilyasmazouz@gmail.com>
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
Co-authored-by: David Wheatley <hi@davwheat.dev>
2022-08-11 22:41:54 +02:00
Sami Mazouz
25122fd355
fix: user has wrong discussion read status (#3591)
* test: deleting last post(s) then posting new replies works as expected
* fix: user has wrong discussion read status
2022-08-09 22:43:38 +02:00
Daniël Klabbers
1d14ea6b45
fix(compilation): versioner not inject into compilers (#3589) 2022-08-09 12:12:36 +02:00
flarum-bot
eab5093012 Bundled output for commit 1948f25151
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-08 21:22:31 +00:00
Sami Mazouz
1948f25151
refactor: convert page components to TypeScript (#3538)
* fix(a11y): color preview fields have no aria label
* refactor: convert page components to TypeScript

Co-authored-by: David Wheatley <hi@davwheat.dev>
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-08-08 22:11:58 +01:00
flarum-bot
44825f1b94 Bundled output for commit d02bf0faa1
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-08 18:30:58 +00:00
Ian Morland
d02bf0faa1
feat: Delete all notifications (#3529)
* Add delete all notifications option
* chore: `DELETE /api/notifications` as per conventions
* test: can delete all notifications

Co-authored-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-08-08 19:26:16 +01:00
flarum-bot
b28606b8ef Bundled output for commit 631b4c194c
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-08 13:53:39 +00: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
b20961cc9d Bundled output for commit 495462183b
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-08 13:04:48 +00:00
David Wheatley
495462183b
chore: format code 2022-08-08 14:00:22 +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
Jasper Vriends
f69210b6d1
feat(modals): support stacking modals, remove bootstrap modals dependency (#3456)
* Feature: Stackable modals

* Processed feedback

* fix: use position in modal stack rather than key for modal number

* fix: use correct base z-index

* chore: simplify `className` to `class`

* chore: add `key` attribute to ModalManager element

* fix: backdrop flashing as modals are stacked/unstacked

* chore: simplify modal close process

* docs: add TS overload to indicate deprecated modal opening syntax

Require explicit values for `attrs` and `stackModal` from Flarum 2.0, beginning deprecation from now.

* feat: use stackable modal for forgot password modal above sign in

* chore: explicitly check if modal is open before trying to focus trap

* fix(a11y): add missing  `aria-hidden` on main content when modal open

* fix(a11y): add missing `aria-modal` on modal

* chore: remove test code

* chore: remove dead CSS

* chore: remove overload

* fix: lock page scrolling when modal is open

* fix: strange scrolling behaviour

* chore: convert to JSX

* fix: event listener memory leak

* chore: remove unneeded optional chaining

* fix: incorrect return types

* chore: rewrite backdrop system - use one backdrop for all modals

* docs: typos in comment block

* fix: show backdrop directly below top-most modal

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>

* chore: format

* fix: use an invisible backdrop for each modal to exit

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

* chore: remove debugging code

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

* chore: remove forgotten debug code

Co-authored-by: David Wheatley <david@davwheat.dev>
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2022-08-08 13:29:14 +01:00
flarum-bot
bb5f7b87bc Bundled output for commit e2f568252b
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-08 10:37:13 +00:00
Robert Korulczyk
e2f568252b
perf: add loading="lazy" attribute for avatars (#3578)
Co-authored-by: David Wheatley <david@davwheat.dev>
2022-08-08 11:29:52 +01:00
flarum-bot
bca7d48d99 Bundled output for commit 3bdb0af993
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-05 19:27:47 +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
flarum-bot
d345734a8e Bundled output for commit 4b25c2d425
Includes transpiled JS/TS.

[skip ci]
2022-08-05 18:28:35 +00:00
Sami Mazouz
4b25c2d425
test: relying on a third-party for avatar URL tests is unreliable (#3586) 2022-08-05 19:24:43 +01:00
flarum-bot
54e1966ec8 Bundled output for commit f073c22212
Includes transpiled JS/TS.

[skip ci]
2022-08-04 09:55:07 +00:00
Sami Mazouz
f073c22212
chore: remove debug line that slipped in while rebasing a PR (#3580)
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-08-04 10:43:26 +01:00
flarum-bot
71731819fb Bundled output for commit b01b75e367
Includes transpiled JS/TS.

[skip ci]
2022-08-04 08:11:58 +00:00
Daniël Klabbers
b01b75e367 fix: return type hint static is php 8+ 2022-08-04 10:07:48 +02:00
flarum-bot
71b444b6f6 Bundled output for commit bb641144b6
Includes transpiled JS/TS.

[skip ci]
2022-08-02 11:36:01 +00:00
StyleCI Bot
bb641144b6
Apply fixes from StyleCI 2022-08-02 11:28:25 +00:00
Daniël Klabbers
590639f5f3 fix: remove deprecation warning for decoding null values 2022-08-02 13:28:03 +02:00
flarum-bot
b06be43988 Bundled output for commit 237076e5b7
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-08-02 10:31:17 +00:00
Ian Morland
237076e5b7
chore(approval, likes): use subscribers (#3577)
* chore: use subscribers

* Apply fixes from StyleCI

* Un-static

Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-08-02 11:27:26 +01:00
flarum-bot
737783a8a8 Bundled output for commit 7d3147d4e1
Includes transpiled JS/TS.

[skip ci]
2022-08-02 10:10:01 +00:00
Ian Morland
7d3147d4e1
feat: add createTableIfNotExists migration helper (#3576) 2022-08-02 10:43:31 +01:00
David Wheatley
61c4421bd2
fix: sticky nav content displays below post stream (#3575) 2022-08-02 10:40:51 +01:00
flarum-bot
85d4fb6ce2 Bundled output for commit da855c654e
Includes transpiled JS/TS.

[skip ci]
2022-08-01 22:53:45 +00:00
Ian Morland
da855c654e
feat: Restart the queue worker after cache clearing, ext enable/disable, save settings (#3565)
* Add queue restarter
* Update framework/core/src/Queue/QueueRestarter.php
2022-08-02 00:49:58 +02:00
flarum-bot
7147d39975 Bundled output for commit f4ace73a3c
Includes transpiled JS/TS.

[skip ci]
2022-08-01 11:03:26 +00:00
David Wheatley
f4ace73a3c
chore(statistics): add release notes for 1.4.1 2022-08-01 11:59:57 +01:00
flarum-bot
0b299d0003 Bundled output for commit 70e483d1b1
Includes transpiled JS/TS.

[skip ci]
2022-07-30 22:16:30 +00:00
Daniël Klabbers
70e483d1b1 fix: prepare release workflow has invalid layout 2022-07-31 00:09:14 +02:00