Commit Graph

3605 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
Matt Kilgore
79bdff96c1 Add port on Url to BaseUrl Test (#2226)
Added Urls with ports to the BaseUrl Test
2020-07-10 12:17:12 +02:00
David Sevilla Martín
9f15631883 Initial TypeScript infrastructure (#2206)
This allows us to get started with converting all Flarum JavaScript code to TypeScript.
In addition, we will have time to experiment to find the best Webpack configuration before integrating into flarum-webpack-config.

See flarum/flarum-webpack-config#3.
2020-07-03 14:47:44 +02:00
flarum-bot
460aa9c910 Bundled output for commit 56b6e85255 [skip ci] 2020-07-03 05:17:34 +00: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
flarum-bot
90dd8f60a5 Bundled output for commit ca6724afe1 [skip ci] 2020-07-02 22:33:46 +00: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
Alexander Skvortsov
aa3d50c590 Don't create user bio column on new installations (#2215) 2020-07-01 17:31:52 -04:00
Alexander Skvortsov
2fef79f31a Make scrubber handle have transparent background (#2222) 2020-07-01 17:07:13 -04:00
flarum-bot
2c0856d030 Bundled output for commit e408f98104 [skip ci] 2020-07-01 00:34:15 +00: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
flarum-bot
77a1a3afda Bundled output for commit d4def36de8 [skip ci] 2020-07-01 00:00:24 +00:00
Alexander Skvortsov
d4def36de8 Extract ModalManagerState from ModalManager (#2162) 2020-06-30 19:59:16 -04:00
flarum-bot
0b20cf4eb7 Bundled output for commit 95f367c837 [skip ci] 2020-06-30 22:08:06 +00:00
Alexander Skvortsov
95f367c837 Extract AlertManagerState from AlertManager (#2163) 2020-06-30 18:06:59 -04:00
Alexander Skvortsov
417e878c0c Fix: Use proper variable for display name drivers in user extender 2020-06-29 19:32:08 -04:00
flarum-bot
4e7c4ede50 Bundled output for commit 1cfdc23865 [skip ci] 2020-06-28 17:45:26 +00: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
flarum-bot
becc75c5c0 Bundled output for commit 2f9beccf2a [skip ci] 2020-06-27 18:20:09 +00: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
flarum-bot
d6de442b8a Bundled output for commit 8513e013f4 [skip ci] 2020-06-26 16:25:45 +00:00
Franz Liedke
8513e013f4 Fix typo and update outdated doc block 2020-06-26 18:23:56 +02:00
flarum-bot
c659b3e72b Bundled output for commit c8185a22df [skip ci] 2020-06-26 14:08:35 +00: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
flarum-bot
365ae0464e Bundled output for commit 301495478d [skip ci] 2020-06-26 12:32:40 +00: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
flarum-bot
c2bea8cde3 Bundled output for commit 144e38049e [skip ci] 2020-06-24 00:51:55 +00: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
flarum-bot
d4905437bd Bundled output for commit 395ee845ae [skip ci] 2020-06-20 14:19:53 +00: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
flarum-bot
f14da4b159 Bundled output for commit 1c1a3b363e [skip ci] 2020-06-19 21:42:28 +00: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
17eac0fa4a Clean up usages / deprecate path helpers (#2155)
* Write source map without creating temp file

Less I/O, and one less place where we access the global path helpers.

* Drop useless app_path() helper

This was probably taken straight from Laravel. There is no equivalent
concept in Flarum, so this should be safe to remove.

* Deprecate global path helpers

Developers using these helpers can inject the `Paths` class instead.

* Stop storing paths as strings in container

* Avoid using path helpers from Application class

* Deprecate path helpers from Application class

* Avoid using public_path() in prerequisite check

a) The comparison was already outdated, as a different path was passed.
b) We're trying to get rid of these global helpers.
2020-06-19 16:16:03 -04:00
flarum-bot
be5ffad574 Bundled output for commit 85deb7ae03 [skip ci] 2020-06-19 00:30:16 +00:00
Franz Liedke
85deb7ae03 Remove leftover property
Refs #2150.
2020-06-19 02:27:01 +02:00
flarum-bot
b3aed8f6c4 Bundled output for commit 6f3ad1999e [skip ci] 2020-06-19 00:11:51 +00: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
flarum-bot
7e9b9ec638 Bundled output for commit 4803457824 [skip ci] 2020-06-18 23:54:42 +00: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
flarum-bot
3feaa9a3ac Bundled output for commit 4013aed078 [skip ci] 2020-06-18 22:48:18 +00:00