1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 01:31:40 +02:00
Commit Graph

159 Commits

Author SHA1 Message Date
David Sevilla Martin
c81a3c0a11 convert: common/utils/stringToColor 2020-07-10 14:13:33 +02:00
David Sevilla Martin
3f25e74946 convert: common/utils/string 2020-07-10 14:13:33 +02:00
David Sevilla Martin
fb2dba6075 convert: common/utils/RequestError 2020-07-10 14:13:33 +02:00
David Sevilla Martin
20c7615c36 convert: common/utils/liveHumanTimes
This file isn't used anywhere. We should be calling it at some point. It has existed for 5 years.

Renamed function because it makes more sense for name to match file name (not that it matters when building)
2020-07-10 14:13:32 +02:00
David Sevilla Martin
961930749c convert: common/utils/abbreviateNumber 2020-07-10 14:13:32 +02:00
David Sevilla Martin
77d315585c convert: common/utils/extract 2020-07-10 14:13:31 +02:00
David Sevilla Martin
443fdfd515 convert: common/utils/ItemList 2020-07-10 14:13:31 +02:00
David Sevilla Martin
dd2f6096c1 convert: common/utils/humanTime 2020-07-10 14:05:09 +02:00
David Sevilla Martin
f1e574d843 convert: common/utils/formatNumber 2020-07-10 14:05:07 +02:00
Alexander Skvortsov
56b6e85255 Fix discussions user page (#2225)
* Fixed up discussions user page, improve discussion list state signature
2020-07-03 01:16:08 -04:00
Clark Winkelmann
ca6724afe1 Fix user card issue by reverting to original behavior (#2224)
* Fix user card issue by reverting to original behavior
2020-07-02 18:32:41 -04:00
David Sevilla Martín
e408f98104 Switch from 'moment' to 'dayjs' (#2219)
* Switch from 'moment' to 'dayjs'

* Use humanize code from duration plugin (without actual plugin) for time lapsed events
2020-06-30 20:33:00 -04:00
Alexander Skvortsov
d4def36de8 Extract ModalManagerState from ModalManager (#2162) 2020-06-30 19:59:16 -04:00
Alexander Skvortsov
95f367c837 Extract AlertManagerState from AlertManager (#2163) 2020-06-30 18:06:59 -04:00
Alexander Skvortsov
1cfdc23865 Add check to register state of '0' as false for checkboxes (#2210)
* Add check to register state of '0' as false for checkboxes
* Add comment explaining state === '0'
2020-06-28 13:44:14 -04:00
Alexander Skvortsov
2f9beccf2a Add index page title, add mechanism to clear title from defaultRoute. (#2047)
* Add "All Descriptions title to index

* Added system to clear custom title if we're on the default route
2020-06-27 14:18:49 -04:00
Franz Liedke
8513e013f4 Fix typo and update outdated doc block 2020-06-26 18:23:56 +02:00
Franz Liedke
c8185a22df Remove documentation for obsolete component prop 2020-06-26 16:06:56 +02:00
Franz Liedke
0b9e8e0408 Expose a method for clearing notification list
Needed for pusher extension.

Refs #2185.
2020-06-26 15:10:41 +02:00
Franz Liedke
301495478d Move DiscussionListState to correct folder 2020-06-26 12:52:33 +02:00
Franz Liedke
070b4b1c21 Expose state classes via compat
This way, they can be extended by extensions.
2020-06-26 12:50:43 +02:00
David Sevilla Martín
144e38049e Call liveHumanTimes() to update ago times every 10s (#2208)
This file has existed for 5 years, yet it was never used.
2020-06-23 20:50:57 -04:00
w-4
395ee845ae Fix discussion unreadCount could be higher than commentCount (#2195)
* Fix discussion unreadCount being higher than commentCount if posts have been deleted
2020-06-20 10:18:26 -04:00
Alexander Skvortsov
1c1a3b363e Clean up app.current, app.previous in JS (#2156)
- Encapsulate app.current, app.previous in PageState objects
- Reorganize Page classes to use one central base class in common

Co-authored-by: Franz Liedke <franz@develophp.org>
2020-06-19 17:41:26 -04:00
Franz Liedke
85deb7ae03 Remove leftover property
Refs #2150.
2020-06-19 02:27:01 +02:00
Alexander Skvortsov
6f3ad1999e Don't store PostUser instance in CommentPost (#2184)
* Don't save component state in CommentPost
2020-06-18 20:10:25 -04:00
Alexander Skvortsov
4803457824 Move Discussion List State into its own class (#2150)
Extract discussion list state
2020-06-18 19:53:40 -04:00
Alexander Skvortsov
4013aed078 Remove app.search instance, cache app.cache.searched (#2151)
* Moved search state logic into search state
2020-06-18 18:47:01 -04:00
Alexander Skvortsov
ffc7fc966e Don't store checkbox instances in NotificationGrid (#2183)
* Don't store checkbox states in NotificaitonGrid, use props for loading in Checkbox and Switch, replace preferenceSaver with internal management of loading state
2020-06-18 17:28:05 -04:00
Alexander Skvortsov
289ebeb5ce Extract NotificationList state (#2185)
* Extract NotificationList state
2020-06-18 17:08:06 -04:00
Alexander Skvortsov
8d9e20f217 Send Test Mail Feature (#2023)
- Add UI, backend for sending test emails
- Change mail settings endpoint to /api/mail/settings
2020-05-30 22:49:36 -04:00
Hasan Özbey
909e741c62 Scroll to edited post or inform the user (#2108)
* scroll to edit or inform the user
2020-05-30 22:28:08 -04:00
Alexander Skvortsov
af26bd22f6 Removed excess Widget class in favor of DashboardWidget (#2164) 2020-05-19 20:52:07 -04:00
Alexander Skvortsov
f7985bac61 Use drivers for display names, add display name extender (#2174)
* Deprecate GetDisplayName event

* Add interface for display name driver

* Add username driver as default

* Add code to register supported drivers / used driver as singletons

* Configured User class to use new driver-based system for display names

* Add extender for adding display name driver

* Add integration test for user display name driver

* Add frontend UI for selecting display name driver
2020-05-19 18:45:56 -04:00
julakali
26f251b497 Don't use body as tooltip container, allow notification area overflow (#2166)
* Don't use body as tooltip container, allow notification area overflow

Badge tooltips are using container: 'body', so they can overflow the
notification area. When the user navigates back while a badge tooltip is
showing, the tooltip remains visible.
This commit removes the body container attribute and instead allows the
notificationDropDown to overflow, so badge tooltips aren't cut off.
Instead, this adds overflow: hidden to NotificationList.
Fixes #2118.

* Remove newline
2020-05-15 20:10:40 -04:00
David Sevilla Martín
87a490c83e Some improvements to request error handling and modal error formatting (#1929)
* Use decodeURI instead of unescape & don't close modals

* Add comment

* Don't use a try/catch, clean up the group log code

* Remove double negative

* Format; fix issues from rebasing
2020-05-12 12:23:13 -04:00
Alexander Skvortsov
fd75df79a3 Added simply confirmation popup for hiding / deleting posts (#2135) 2020-05-07 09:18:04 +02:00
Alexander Skvortsov
7dd5c92c31 Implement hidden permission groups (#2129)
Only users that have the new `viewHiddenGroups` permissions will be able to see these groups.

You might want this when you want to give certain users special permissions, but don't want to make your authorization scheme public to regular users.

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-04-21 17:49:53 +02:00
Franz Liedke
440e7a7b00 Run prettier for all JS files 2020-04-17 11:57:55 +02:00
Alexander Skvortsov
e98145d627 Add year, localization support for displaying things older than 1 year (#2034) 2020-04-13 11:21:27 +02:00
w-4
2fe7d96288 Fix PostStreamScrubber click (#1945) 2020-04-10 21:16:57 +02:00
Taraflex
236bedde45 Protect dismissible modals from closing by ESC key 2020-04-10 12:30:56 +02:00
Sami Mazouz
4ded0ffbb5 Fix new post injected above unread sticky (#1868)
Refresh the discussion list instead of prepending the new post
2020-04-03 21:26:51 +02:00
Daniël Klabbers
eed1b9cbd0 fixed an issue with Post--by-start-user for discussions that contain posts of deleted users 2020-04-01 14:40:40 +02:00
Hasan Özbey
e7b8c05a77 Update ModalManager.js 2020-03-30 21:18:48 +02:00
Daniël Klabbers
1c7dab6e07 showing start user in class list now 2020-03-09 13:39:26 +01:00
Clark Winkelmann
ec59171ef1 Add disabled prop to the Select component (#1978) 2020-02-14 15:56:04 +01:00
D Mata
9ac54429d0 Update AvatarEditor.js onchange to oninput (#1570)
onchange does not work in IE11 and other IE browsers. This change works with all modern browsers as well.
2020-02-10 23:54:41 +01:00
David Sevilla Martín
935ea8cbbf Add permission to bypass throttling 2020-02-07 15:30:09 +01:00
Franz Liedke
5179221a08 Fix race condition in post preview
The post composer could have been closed in between scheduling and
executing the callback.

Fixes flarum/org#58.
Refs #1881.
2020-02-07 12:17:11 +01:00