1
0
mirror of https://github.com/flarum/core.git synced 2025-07-15 22:06:24 +02:00
Commit Graph

1815 Commits

Author SHA1 Message Date
72d277bd45 Bundled output for commit 28e3ccfde6
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-03-08 17:34:35 +00:00
28e3ccfde6 fix(qa): increase YIQ and fix menu item title
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-03-08 18:25:04 +01:00
a3a39caa44 Bundled output for commit bbf873442a
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-02-21 14:37:00 +00:00
bbf873442a feat: global logout to clear all sessions, access tokens, email tokens and password tokens (#3605)
* chore: re-organize security locale keys alphabetically
* test: can globally logout
* feat: add global logout controller
* feat: add global logout UI to user security page
* test: re-adapt tests to changes
* feat: add boolean to indicate if logout even is global
* chore(review): split loading property
* chore: follow-up branch update

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-02-21 15:28:55 +01:00
d35bb873a8 chore: make go-to-page input number-like (#3743) 2023-02-21 15:23:59 +01:00
598ff21d7d Bundled output for commit 9342903d68
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-02-21 13:29:36 +00:00
9342903d68 feat: access tokens user management UI (#3587)
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
Co-authored-by: David <hi@davwheat.dev>
2023-02-21 14:14:53 +01:00
906b0fb633 feat: add display name column to admin users list (#3740) 2023-02-21 13:04:53 +00:00
408a92b4ea feat: improved page navigation for users list (#3741)
* feat: add first and last page buttons

* feat: add textbox-based page navigation

* feat: add query parameter page navigation
2023-02-21 13:04:30 +00:00
d8fa791d9c Bundled output for commit fee6ffe396
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-02-15 17:50:20 +00:00
fee6ffe396 feat(seo): Do not use h3 header for poster author in posts stream (#3732)
* Do not use h3 header for poster author in posts stream.

* Change back `.PostUser-name` tag to h3.
2023-02-15 18:44:58 +01:00
7a60a529da Bundled output for commit 37fd218723
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-02-15 16:33:15 +00:00
37fd218723 feat(seo): Use h2 header for discussions on discussions list (#3731)
* Use H2 header for discussions on discussions list.

* Put `DiscussionListPane` in `aside` tag to indicate that its content should not be treated as part of discussion content.

* Update markup for views generated by PHP.
2023-02-15 17:26:43 +01:00
ced1c2d94f Bundled output for commit f8d856028d
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-02-13 20:20:57 +00:00
f8d856028d fix(regression): admin header styling messed up
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-02-13 21:14:52 +01:00
748cca6d12 chore: prepare @flarum/jest-config for release
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-02-12 17:45:00 +01:00
f4f8369dc0 Bundled output for commit aa0b3288d5
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-02-11 12:36:30 +00:00
aa0b3288d5 feat(seo): shift h1 tag from logo to discussion title (#3724)
* feat(seo): shift h1 tag from logo to discussion title

Many times have we seen opponents of using h2 as the discussion title. Although
my own SEO knowledge is limited, I have seen the importance of structuring pages
according to the content you wish to prioritize. If we only take that into consideration
there is zero reason for the app-wide identical logo to take precedence over any
other heading.

This change makes the logo a standard (visually identical) element, and
makes the discussion hero title a h1.

* feat(seo): rewrite remainder of hero titles and subtitles
2023-02-11 13:27:46 +01:00
77a0b11bc8 Bundled output for commit 7e6458a125
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-02-10 22:08:35 +00:00
7e6458a125 feat(jest): mithril component testing (#3679)
* feat(jest): create jest config package for unit testing
* chore: housekeeping
* fix: now we need to explicitly allow importing without extension
* fix: recover EditorDriverInterface import
* feat(jest): mithril component testing
* fix: use separate `tsconfig.test.json`

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-02-10 23:02:50 +01:00
675cdab658 Bundled output for commit e7fc29a59f
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-02-08 21:09:22 +00:00
e7fc29a59f feat(jest): create jest config package for unit testing (#3678)
* feat(jest): create jest config package for unit testing
* chore: housekeeping
* fix: now we need to explicitly allow importing without extension
* fix: recover EditorDriverInterface import
* Apply suggestions from code review
* chore: yarn

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-02-08 22:02:40 +01:00
08dead81ce Bundled output for commit 47b670aa29
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-02-08 20:19:47 +00:00
47b670aa29 feat: frontend Model extender (#3646)
* feat: reintroduce frontend extenders
* chore: used `Routes` extender in bundled extensions
* chore: used `PostTypes` extender in bundled extensions
* chore: `yarn format`
* feat: `Model` frontend extender
* chore: naming
* chore(review): attributes can be nullable or undefined
* chore(review): delay extender implementation
* chore(review): unnecessary check
* chore(review): stay consistent
* chore: merge conflicts
* chore: unused import
* chore: multiline extenders
* feat: add Store extender

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-02-08 21:13:53 +01:00
ccf9442d79 Bundled output for commit 4bb3b2235d
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-01-17 20:01:25 +00:00
03d2d7eabb feat: expose {time} to eventPost data, fix renamed tooltip (#3698) 2023-01-17 20:47:02 +01:00
4d292263b5 fix(tags): tag text color contrast (#3653)
* add yiq calculator util
* use the new contast util to differentiate light/dark tags
* fix: invert logic
* feat: add tag-dark and tag-light less config
* fix: convert 3 chars hex to 6 chars hex
* fix: rename import
* fix: clarify util name
* fix: rename function
* fix: invert less variables when dark mode is enabled
* fix: TagTiles contrast
* refactor: simplify logic with a unique variable
* refactor: simplify logic with a unique variable
* feat: add text color variables not depending on the dark/light mode
* refactor: use isDark rather than getContrast
* refactor: change getContrast to isDark with for a more direct approach
* fix: adjust snippet description
* refactor: change getContrast to isDark with for a more direct approach
* fix: adjust snippet description
* fix: TagHero contrast
* fix: DiscussionHero contrast
* fix: newDiscussion contrast
* fix(newDiscussion): restore less rule when tag is not colored
* fix: TagTiles description
* fix: TagTiles last posted
* chore: change `var` to `let`
* refactor: keep it for backwards compatibility
* refactor: keep it for backwards compatibility
* Apply suggestions from code review
* fix: missed this when I was resolving
* fix: remove dist files from pull request
* Revert "Resolved merge conflict"
This reverts commit c7f0d14aa8, reversing
changes made to 6753dfc2af.
* fix: missed this when I was resolving
* fix
* Update isDark.ts
* chore: flexible contrast color fixing
* refactor(isDark): clarify the doc block
* fix(isDark): increase the yiq threshold
* typo
* fix: preserve design coloring through light and dark modes

Co-authored-by: David Wheatley <david@davwheat.dev>
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2023-01-17 20:45:03 +01:00
6adae00f72 Bundled output for commit d7f4975330
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-01-17 18:15:45 +00:00
d7f4975330 feat: introduce frontend extenders (#3645)
* feat: reintroduce frontend extenders
* chore: used `Routes` extender in bundled extensions
* chore: used `PostTypes` extender in bundled extensions
* chore: `yarn format`
* chore: naming
* chore(review): unnecessary check
* chore(review): stay consistent
* chore: unused import

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-01-17 19:10:24 +01:00
d5e6f6db5f Bundled output for commit 20e7d245da
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-01-13 08:37:32 +00:00
20e7d245da feat: Admin User Search (#3712)
* Initial search
* oninput attempt
* Working search!
* forgot to format
* fix debounce, locale
* use core.ref
2023-01-13 09:31:22 +01:00
78189f29d2 Bundled output for commit 07f8b6161a
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-12-12 10:18:58 +00:00
07f8b6161a fix: support 3digit hex color input (#3706) 2022-12-12 10:14:59 +00:00
0eff1f6b2d Bundled output for commit a53a0db2b7
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-12-12 09:48:42 +00:00
a53a0db2b7 feat(tags): admin tag selection component (reusable tag selection modal) (#3686)
* chore: move `KeyboardNavigation` to `common` first
* feat: exract reusable `TagSelectionModal` from `TagDiscussionModal`
* fix: improve for generic use
* feat: add select tags admin setting component
2022-12-12 10:44:33 +01:00
a129999132 Bundled output for commit 8f80cde5b7
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-12-03 21:19:51 +00:00
8f80cde5b7 feat: allow using utf8 characters in tag slugs (#3588)
* feat: allow using utf8 characters in slugs
url-encoded slugs are not read by the backend.
* chore: use as a slug driver
* chore: refactor tests to use data provider
* Apply fixes from StyleCI
* fix: wrong resource used
* fix: forgotten slug from slug manager in serializer
* chore(review): adapt tag slug suggestions on the UI
* chore: introduce modes for slugging
* chore: `yarn format`

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2022-12-03 22:15:34 +01:00
4de3cd4d9c Bundled output for commit 3dd2cadb9b
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-30 16:46:54 +00:00
3dd2cadb9b fix: undefined showing in dropdown active title (#3700) 2022-11-30 16:39:32 +00:00
f33fbdd0b5 Bundled output for commit 5bc47c0278
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-27 09:40:52 +00:00
5bc47c0278 chore: convert Dropdown components to TS (#3608)
* chore: convert `Dropdown` components to TS
* chore(review): `buttonClassName` technically not required
* chore(review): `accessibleToggleLabel` technically not required
* chore(review): use `classList` where possible
* chore: `yarn format`
* Update framework/core/js/src/common/components/Dropdown.tsx
* chore(review): use `includes`
* chore(review): define constant of excluded groups
* chore(review): use `null coalesce` and `logical or` assignments
* chore(review): `null coalesce`
* chore(review): `any` to `typeof Component`
* chore(review): `classList`
* chore(review): `yarn format`
* chore: fix typing issues after typescript update

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
Co-authored-by: David Wheatley <hi@davwheat.dev>
2022-11-27 10:34:29 +01:00
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
64fa35f2f3 chore: update JS dependencies (#3695)
* chore: lock mithril to `2.0` because `2.2` has breaking changes with no upgrade guide
* chore: update JS dependencies `yarn upgrade`
* chore: fix typings after js deps updates
* chore(review): better semver

Co-authored-by: David Wheatley <hi@davwheat.dev>
2022-11-25 18:20:30 +01:00
c99d04fce2 Bundled output for commit 67c0d75ebc
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-25 11:11:04 +00:00
6f4f964ce8 feat: allow push additional items to the end of the poststream (#3691)
* feat: allow push additional items to the end of the poststream

* Update framework/core/js/src/forum/components/PostStream.js

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

* chore: prettier

* Update framework/core/js/src/forum/components/PostStream.js

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

Co-authored-by: David Wheatley <hi@davwheat.dev>
2022-11-25 10:59:23 +00:00
e5d2b8cad9 Bundled output for commit f5c346f1c7
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-20 12:08:32 +00:00
f5c346f1c7 chore: Indicate cross-origin request in generic error message (#3669)
* Indicate cross-origin request in generic error message
* Run javascript format
* Move text to beginning of error message
* Update framework/core/locale/core.yml

Co-authored-by: David Wheatley <hi@davwheat.dev>
2022-11-20 13:02:41 +01:00
5bb0593bad Bundled output for commit 47d2053766
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-19 22:30:32 +00:00
47d2053766 feat: expose queue driver, schedule status (#3593)
* feat: expose queue driver, schedule status

* Apply fixes from StyleCI

* docblock

* fix inheritdoc

* Add info link for scheduler setup

* Remove unsed import

* fix: phpstan error

* Only show scheduler status when jobs are registered

* Apply fixes from StyleCI

* add ItemList priorities

* Add translations

* Include schedule status in info console cmd

* Apply fixes from StyleCI

* Move identifyX logic into shared 'ApplicationInfoProvider'

* Apply fixes from StyleCI

* uniform data layout

* inject queue

Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-11-19 22:23:04 +00:00
543c5f2a2e Bundled output for commit 690de9ce0f
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-18 21:16:57 +00:00