Daniel Waterworth
7b63c92f47
DEV: Remove path building indirection
...
Tags are now handled just like other context information.
2019-11-14 10:47:14 +00:00
Daniel Waterworth
a1cf0b88a8
DEV: Make NavItem.fromText take a filterType instead of a URL
...
This is step one of removing filterMode URLs entirely.
2019-11-14 09:43:15 +00:00
Sam Saffron
03efbad932
DEV: lint files
2019-11-14 11:52:29 +11:00
Martin Brennan
e7226a8c84
FEATURE: Allow scoping search to tag ( #8345 )
...
* When viewing a tag, the search widget will now show a checkbox to scope the search by tag, which will limit search results to that tag on desktop and mobile
2019-11-14 10:40:26 +10:00
Krzysztof Kotlarek
6e1fe22a9d
FEATURE: Dismiss new per category ( #8330 )
...
Ability to dismiss new topics per category.
2019-11-14 11:16:13 +11:00
Robin Ward
f5ed0dc2e6
FIX: Failing tests
2019-11-13 15:34:30 -05:00
Mark VanLandingham
38cc1962e7
WIP - discourse/models/user not defined
2019-11-13 15:34:30 -05:00
Mark VanLandingham
f9894aec97
DEV: Remove Discourse.User and import instead
2019-11-13 15:34:30 -05:00
Mark VanLandingham
3c5df82590
DEV: Remove Discourse.Site in favor of import ( #8344 )
...
* DEV: Remove Discourse.Site in favor of importing Site
* Ran prettier
2019-11-13 12:13:47 -05:00
Robin Ward
f518065654
FIX: computed is part of @ember/object not @ember/object/computed
2019-11-13 11:58:09 -05:00
Daniel Waterworth
e98d94f17f
DEV: Commas in top_menu items are no longer used
...
According to eviltrout, commas and pipes were the delimiters of a
Discourse specific microformat, but this is no longer the case and
hasn't been for some time.
2019-11-13 16:21:34 +00: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
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
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
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
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
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
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
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
ca14e3d83c
FIX: Build with prettier for imports ( #8298 )
2019-11-05 13:32:43 -06:00
Mark VanLandingham
edc135d9c5
DEV: Import set, setProperties, helper, and string functions ( #8297 )
2019-11-05 12:43:49 -06:00
Mark VanLandingham
014f19b6ea
DEV: Import Promise from rsvp ( #8296 )
2019-11-05 10:37:32 -06:00
Mark VanLandingham
fa56ba89a5
Import getProperties from @ember/object
2019-11-04 14:24:30 -05:00
Sam Saffron
f66e5d38d3
FEATURE: add an "init" method for extra nav items
...
This allows us to trigger special initialization code prior to adding an
extra nav item to the navigation menu.
2019-11-04 19:07:31 +11:00
Robin Ward
0e2261c414
FIX: Linting
2019-11-01 13:57:22 -04:00
Robin Ward
640a05c4ee
REFACTOR: Remove Ember.get
2019-11-01 13:50:15 -04:00
Robin Ward
90f934a660
REFACTOR: Use a module for Ember.isEmpty
2019-11-01 13:50:15 -04:00
Sam Saffron
9fb09d147d
DEV: allow positioning of nav items and allow selection
...
Previously we could not place extra nav items in a particular order.
This change introduces a new `before` attribute to addNavigationBarItem
with this attribute we can place a nav item before "top" or any other place.
Additionally this allows navigation items to force active state. In some
cases we may want an items that is simply a "filter" on latest using `?query_params`
when we do that we can "force" the filter active.
A concrete example is the assign plugin that adds a nav item for
Unassigned => `/c/cat-slug/l/latest?assigned=nobody&status=open`
If we did not force then latest would be selected even though the filter
is clicked.
2019-11-01 13:52:25 +11:00
Neil Lalonde
d777844ed6
FEATURE: categories can require topics have a tag from a tag group
...
In a category's settings, the Tags tab has two new fields to
specify the number of tags that must be added to a topic
from a tag group. When creating a new topic, an error will be
shown to the user if the requirement isn't met.
2019-10-31 16:10:19 -04:00