Joffrey JAFFEUX
d2d846a88e
DEV: prevents input/change events to cause a full rerender ( #8339 )
...
Code should decide when to do something with the event value, and maybe cause a re-rerender but it shouldn't be automatic. This is currently a gigantic waste of resources.
2019-11-13 15:49:01 +01:00
Daniel Waterworth
a7dd31496e
DEV: Defer creation of extraNavItems until they are required
...
This also means that each list view gets a fresh set of ExtraNavItems.
2019-11-13 14:04:37 +00:00
Daniel Waterworth
e00ec22582
DEV: Remove extraneous intermediates
2019-11-13 14:03:47 +00:00
Daniel Waterworth
13c5381027
DEV: Don't return navigation item from addNavigationBarItem
...
No plugin or theme that I could find used the return value. Not
providing this to plugins affords us leeway to change the internals.
2019-11-13 13:07:09 +00:00
Daniel Waterworth
58b5d1434b
FIX: Allow forceActive without a customHref
2019-11-13 12:17:57 +00:00
Daniel Waterworth
60e804ad5c
DEV: No need to use call to call these callbacks
...
This is safe because addNavigationBarItem decorates these callbacks,
throwing away the context.
2019-11-13 11:50:40 +00:00
Joffrey JAFFEUX
e4df3792f6
DEV: provides a way to hook into createWidget constructor ( #8340 )
2019-11-13 09:29:12 +01:00
Joffrey JAFFEUX
38a18b7aa0
DEV: call destroy() on widget when glue is cleaned up ( #8338 )
2019-11-13 09:28:43 +01:00
Jeff Wong
3b36326cb7
Add plugin outlet after flagged post bodies
2019-11-12 17:47:56 -08:00
Roman Rizzi
1c179177e7
REFACTOR: Attach resize controls to images from the markdown pipeline ( #8314 )
2019-11-12 17:32:37 -03:00
Robin Ward
4422d9a4bf
DEV: Provide a nicer error when JSON is malformed
...
This is very useful for development. It will give a much nicer error if
the JSON that comes back from the server is missing a required key.
2019-11-12 13:04:52 -05:00
Robin Ward
f49494b0bf
REFACTOR: Remove a few Discourse.Site globals
2019-11-12 10:53:22 -05:00
Robin Ward
afadf361b3
REFACTOR: idMap should be a private API
2019-11-12 10:53:22 -05:00
Robin Ward
7f651b9666
REFACTOR: Deprecate Discourse.Site and Discourse.User
2019-11-12 10:53:22 -05:00
Daniel Waterworth
241d9a3034
FIX: Topic lists filtered by tag and a specified filter don't work
...
This was a regression caused by 59241df2
2019-11-12 11:34:52 +00:00
Jarek Radosz
9b841ea83f
DEV: Run prettier
2019-11-12 11:49:31 +01:00
Jarek Radosz
5d4b240453
DEV: Provide radix argument to parseInt ( #8281 )
...
* DEV: Provide radix 10 argument to parseInt
* DEV: Provide radix 16 argument to parseInt
* DEV: Remove unnecessary parseInt calls
* Fix year formatting
parseInt was used here to convert decimals to ints
2019-11-12 10:47:42 +01:00
Robin Ward
e39d89ecd9
REFACTOR: Remove InputValidation which was simply an Ember.Object
2019-11-11 15:48:56 -05:00
Daniel Waterworth
211410c3b9
DEV: It doesn't make sense for a filterMode to be weekly, quarterly, etc
2019-11-11 18:46:27 +00:00
Robin Ward
da04c602ba
REFACTOR: Remove debounce to discourseDebounce
...
Otherwise it can be confused with the ember debounce
2019-11-11 13:34:01 -05:00
Robin Ward
e8dae447bd
REFACTOR: Remove discourse/lib/throttle
2019-11-11 13:21:03 -05:00
Daniel Waterworth
4ddb69e9c6
DEV: Removed needless indirection
...
An artifact of when tagging was a plugin no doubt.
2019-11-11 17:59:26 +00:00
Daniel Waterworth
e79cec9fc7
DEV: Remove handling of category top menu items
...
Support for these kinds of navigation items was dropped in 88f52514 , but
the code for handling these menu items was never removed.
2019-11-11 17:36:29 +00:00
Dan Ungureanu
55bdd9e6a2
FIX: Do not skip some emails in user search ( #8317 )
...
It used to skip the email addresses containing the plus sign.
2019-11-11 18:42:45 +02:00
Mark VanLandingham
1bbb9b30fc
DEV: Import isNone for @ember/utils
2019-11-11 10:37:21 -05:00
Robin Ward
0c8ae1e849
FIX: More missing RSVP imports
2019-11-11 09:25:33 -05:00
Robin Ward
2a6713c2ba
FIX: Was using a native browser Promise instead of RSVP
2019-11-11 09:23:26 -05:00
Robin Ward
920f8c6d75
REFACTOR: Remove Discourse.Route in lieu of importing
2019-11-08 15:18:13 -05:00
Robin Ward
c0e105fc8c
FIX: Return a deprecation for Discourse.Session
2019-11-08 14:55:36 -05:00
Robin Ward
bd92fdeb4d
FIX: Add deprecation for Discourse.NavItem in case themes are using it
2019-11-08 14:14:51 -05:00
Robin Ward
f03edb36be
REFACTOR: Remove Discourse.Model
2019-11-08 14:13:35 -05:00
Robin Ward
291572a97a
REFACTOR: Remove Discourse.Session constants
2019-11-08 13:46:50 -05:00
Robin Ward
7ac2a55588
REFACTOR: Remove Discourse.Category constants
2019-11-08 13:31:00 -05:00
Mark VanLandingham
e51efce356
DEV: Remove all instances of Ember.computed ( #8324 )
2019-11-08 12:28:11 -06:00
Robin Ward
7e44065bcb
REFACTOR: Migrate Discourse.Post to imports
2019-11-08 13:13:13 -05:00
Robin Ward
932c169d46
REFACTOR: Remove Discourse.NavItem constants
2019-11-08 12:56:13 -05:00
Robin Ward
779ee3558d
REFACTOR: Remove Discourse.UserAction from code
2019-11-08 12:52:39 -05:00
Vinoth Kannan
ba5b78a348
FEATURE: support to mute all categories by default. ( #8295 )
...
Instead of enabling `suppress_from_latest` setting on many categories now we can enable `mute_all_categories_by_default` site setting. Then users should opt-in to categories for them to appear in the latest and categories pages.
2019-11-08 08:28:11 +05:30
Mark VanLandingham
6275c05c0d
DEV: Move computed to discourseComputed ( #8312 )
2019-11-07 15:38:28 -06:00
Robin Ward
d74546f50e
REFACTOR: Remove Discourse.Topic constant
2019-11-07 15:46:58 -05:00
Robin Ward
9d457fa51f
REFACTOR: Remove Discourse.TrustLevel constant
2019-11-07 15:26:26 -05:00
Mark VanLandingham
f8d69253e8
FIX: Prettier to fix build ( #8311 )
2019-11-07 12:07:08 -06:00
Mark VanLandingham
9ffdbf912f
DEV: Import ember ENV instead of Ember.testing ( #8305 )
2019-11-07 11:20:35 -06:00
Daniel Waterworth
063a1d4077
Revert "FIX: The internal position on the topic timeline is a scroll position"
...
This reverts commit 9c1a713c6e .
2019-11-07 11:04:39 +00:00
Daniel Waterworth
9c1a713c6e
FIX: The internal position on the topic timeline is a scroll position
...
... instead of a post index. This is so that updatePosition is called
when switching between the last two scroll positions.
2019-11-07 10:10:17 +00:00
Joffrey JAFFEUX
7d25d65ccb
DEV: adds support for input/change events on widgets ( #8309 )
2019-11-07 10:15:05 +01:00
Sam Saffron
cf0f2c70cd
FIX: regression not showing excerpts in mobile timeline
...
I think this is a result of: 87f0b56191
2019-11-07 16:10:31 +11:00
Daniel Waterworth
e3b7f07916
DEV: Run prettier
2019-11-05 22:30:23 +00:00
Daniel Waterworth
59241df251
FIX: Display tags topic list correctly when none is selected for subcategories
2019-11-05 20:12:36 +00:00
Mark VanLandingham
ca14e3d83c
FIX: Build with prettier for imports ( #8298 )
2019-11-05 13:32:43 -06:00