1
0
mirror of https://github.com/flarum/core.git synced 2025-07-18 15:21:16 +02:00
Commit Graph

1399 Commits

Author SHA1 Message Date
flarum-bot
1237e6e55e Bundled output for commit 46d1c8e922
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-08-10 13:54:32 +00:00
Ornanovitch
46d1c8e922 make user.editGroups depending on viewHiddenGroups (#2880)
should resolve #2610
2021-08-10 14:52:34 +01:00
David Wheatley
dc8958440e Use organization Prettier config (#2967)
* Use organization Prettier config

* Bump version to 1.0.0

* Update workflow

* Use npm ci and package.json script
2021-07-30 12:18:20 +01:00
flarum-bot
0603ee872a Bundled output for commit c227bcfbe2
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-07-26 11:04:48 +00:00
SychO9
c227bcfbe2 npm run format 2021-07-26 13:03:09 +02:00
David Wheatley
8e1599a684 Remove class from text input 2021-07-26 13:03:09 +02:00
David Wheatley
f0e07b0011 Remove class from Mail Select setting component 2021-07-26 13:03:09 +02:00
David Wheatley
559a93d379 Prevent class attrs overriding default Select classes 2021-07-26 13:03:09 +02:00
David
ba08eb0039 Fix Select-based setting breaking admin pages 2021-07-26 13:03:09 +02:00
flarum-bot
ecbb506ecd Bundled output for commit 065a3a9799
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-07-14 14:15:44 +00:00
David Wheatley
065a3a9799 Add fix for broken type hinting on class components (#2962) 2021-07-14 15:13:57 +01:00
flarum-bot
ea9c109b65 Bundled output for commit a0fe969262
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-07-13 12:44:21 +00:00
David Wheatley
a0fe969262 Allow extra attrs provided to <Select> to be passed through to the DOM element (#2959)
* Allow extra attrs provided to `<Select>` to be passed through to the DOM element

* Allow direct passing attrs to the Select wrapper

* Format
2021-07-13 13:42:46 +01:00
David Wheatley
7283254b4a Hide post footer when empty (#2926)
* Add `Post-footer--empty` class if the post footer contains no items

* Hide post footer when it has class `Post-footer--empty`

* Swap to `:empty` pseudoselector

* Prefer ternary operator

* Fix typo
2021-07-13 13:42:19 +01:00
flarum-bot
550edf44b3 Bundled output for commit 0df8f92d05
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-07-05 15:37:15 +00:00
Lucas Henrique
0df8f92d05 Move Day.js plugin types import to global typings (#2954) 2021-07-05 16:35:37 +01:00
flarum-bot
5575b62f04 Bundled output for commit efb9aab106
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-06-21 22:16:28 +00:00
ctml91
efb9aab106 use display name for avatar color gen 2021-06-22 00:14:37 +02:00
flarum-bot
fbc000d445 Bundled output for commit 31c6bae4d5
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-06-06 01:50:56 +00:00
David Wheatley
31c6bae4d5 npm audit fix 2021-06-06 02:47:58 +01:00
David Wheatley
5ae2eb9f1e Fix XSS vulnerability 2021-06-06 02:41:48 +01:00
flarum-bot
09615f1a85 Bundled output for commit 2b3691e7cc
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-18 05:39:33 +00:00
Alexander Skvortsov
2b3691e7cc Fix insertText
In 60dea59815, insertText was modified from the original to work with reply mentioning. This was done due to a misunderstanding of the API: the selection range isn't the selection to replace, but rather the final selection state after replacing the *current* selection with the text. This commit restores the original, correct implementation of insertText and instead adjusts the `insertBetween`method of BasicEditorDriver to set selection state before executing `insertText`.

Fixes https://github.com/flarum/core/issues/2877
2021-05-18 01:37:19 -04:00
flarum-bot
4db6810e40 Bundled output for commit fbe6beef28
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-17 00:29:54 +00:00
David Wheatley
fbe6beef28 Fix Badge className not being correctly set
Fixes group icons on Admin permissions page
2021-05-17 01:27:30 +01:00
flarum-bot
f41c22df6f Bundled output for commit 3b52df1d5d
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-16 23:04:41 +00:00
SychO9
3b52df1d5d Remove Beta leftover warning code 2021-05-17 00:02:21 +01:00
flarum-bot
2ab5bb26eb Bundled output for commit 130a07df78
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-16 00:14:08 +00:00
Alexander Skvortsov
130a07df78 Drop JS copyright blocks 2021-05-15 20:11:38 -04:00
flarum-bot
48344069a9 Bundled output for commit a325444799
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-15 23:09:46 +00:00
Alexander Skvortsov
4436d82c36 Fix CustomFooterModal Appearance
The textarea in the CustomFooterModal was much larger than in the other appearance page modals, and did not use a monospaced font. Turns out the other 2 were explicitly specified in the less. This commit adds a class that can be applied to all these modals for simpler maintenance.

Fixes https://github.com/flarum/core/issues/2865
2021-05-14 21:36:06 -04:00
Alexander Skvortsov
c90f05cb94 Fix KeyboardNavigatable
In acd3873bbd, I tried to be clever and create a new KeyboardNavigatable object as a return value for `when`. My approach to cloning was incorrect, and caused the util to break entirely.

My original intent for having this "clone"-based behavior is that a single KeyboardNavigatable instance could be created with multiple listeners, and then "cloned" like this with different "activators" registered via "then" calls. In hindsight, this change introduces more issues than it solves: outside of just not working, the cloned "KeyboardNavigatable" instances have shared internal state (the set of callbacks), and each has write access to this internal state. This is a recipe for unpredictable behavior and confusing bugs, so best to keep things simple for now, and maybe introduce more functional behavior in later releases.

Fixes https://github.com/flarum/QualityAssurance/issues/25
2021-05-14 21:21:58 -04:00
Alexander Skvortsov
0289a3b714 Fix 0s in notification dropdown
By casting the length int to a bool, if there are no badges, we don't display a  0. It seems that mithril will render integers, but not booleans.

Fixes https://github.com/flarum/QualityAssurance/issues/28
2021-05-14 21:08:48 -04:00
Alexander Skvortsov
99deb2514d NotificationListState separate content method
This fixes an error where an empty notification list wouldn't show the "empty" text.

It also simplifies flow of logic and breaks the component up a bit for readability.
2021-05-14 21:04:26 -04:00
flarum-bot
21e251599a Bundled output for commit a012029521
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-14 22:37:39 +00:00
Sami Mazouz
a012029521 Use slugs for user pages (#2864) 2021-05-14 23:35:50 +01:00
Alexander Skvortsov
ef64c2ab35 Fix "add numbered list" styleSelectedText action
Looks like I missed the `numberedLines` function used by the `orderedList` function in 60dea59815
2021-05-14 18:35:11 -04:00
flarum-bot
b7ad30833a Bundled output for commit 40f9d2213f
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-13 19:58:41 +00:00
Christian Lopez
40f9d2213f Replace removed hasDiscussions method from DiscussionListPane (#2860) 2021-05-13 15:56:55 -04:00
flarum-bot
09be7ff3b3 Bundled output for commit d0829bc3a4
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-13 00:03:24 +00:00
Alexander Skvortsov
d0829bc3a4 hasDiscussions method of DiscussionListState has been removed 2021-05-12 19:41:28 -04:00
flarum-bot
12abec475f Bundled output for commit 9b21d05207
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-12 23:29:46 +00:00
David Wheatley
9b21d05207 Update core to use new Webpack config, flarum-tsconfig, and build action (#2856)
* Update core to use new Webpack and TSConfig

* Bump webpack dep

* Update JS build action

* Copy custom `.d.ts` files to `dist-typings` folder on typings compile

* Run workflow against action v2

This allows us to have a moving tag, like first party actions have.

* Remove bundle analyzer from core

* Use webpack config 0.1.0-beta.16.2

* Add note about checking flarum-tsconfig
2021-05-13 00:28:17 +01:00
flarum-bot
5f2978d81f Bundled output for commit 896e1ec8ff
Includes transpiled JS/TS.

[skip ci]
2021-05-12 23:12:10 +00:00
Alexander Skvortsov
896e1ec8ff Use proper attrs for viewForum and searchUsers 2021-05-12 18:49:11 -04:00
flarum-bot
8b47bf0316 Bundled output for commit fa8812a5d4 [skip ci] 2021-05-12 22:19:45 +00:00
David Wheatley
fa8812a5d4 Fix formatting error in Tooltip.tsx
Prettier is acting differently on different systems.
2021-05-12 23:14:50 +01:00
flarum-bot
f1e8821b70 Bundled output for commit b8c0787dfa [skip ci] 2021-05-12 03:57:28 +00:00
Alexander Skvortsov
b8c0787dfa Tooltip formatting fix 2021-05-11 23:55:52 -04:00
flarum-bot
2164b82b80 Bundled output for commit 29957d2b1d [skip ci] 2021-05-11 23:15:50 +00:00