This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/lib
cpradio 4b71fd253b Advanced Search UI
Properly support Categories so it updates the search box correctly

Use category id, as it is more consistent with search results than using the slugs, especially for parent/subcategory

Added Status

Improve AutoComplete so it can receive updates
Added the ability for AutoComplete to receive updates to badge-selector and group-selector

Respect null, which is set via web-hooks

Support both # and category: for category detection.

Only update the searchedTerms if they differ from its current value (this helps the Category Selector receive updates)

Opt in receive updates (#3)

* Make the selectors opt-in for receiving updates

* Opt-in to receive updates

* Fix category detection for search-advanced-options

Fix eslint error

Update user-selector so it can receive updates live too
Make the canReceiveUpdates check validate against 'true'

Converted to use template literals

Refactor the regex involved with this feature
Split apart the init to make it a bit more manageable/testable

Switch the category selector to category-chooser, so it is a dropdown of categories instead of auto-complete

Reduce RegEx to make this happier with unicode languages and reduce some of the complexity
2016-10-04 11:18:01 -04:00
..
emoji FIX: New Emoji had missing group info 2016-09-26 18:12:40 -03:00
after-transition.js.es6 FIX: eslint deprecations 2015-08-13 15:14:08 -04:00
ajax-error.js.es6 Use small actions for moving posts 2015-07-31 16:30:18 -04:00
ajax.js.es6 REFACTOR: Remove Discourse.Ajax 2016-07-11 12:57:05 -04:00
app-events.js.es6 Fixes some deprecations: 2016-04-28 15:25:45 -04:00
autocomplete.js.es6 Advanced Search UI 2016-10-04 11:18:01 -04:00
autosize.js.es6 Move autosize from admin/lib to discourse/lib 2016-03-18 09:48:57 -04:00
binary-search.js.es6 FEATURE: Category reordering dialog 2015-09-06 16:53:52 -07:00
category-hashtags.js.es6 REFACTOR: Migrate markdown functionality in ES6 2016-07-11 12:57:05 -04:00
category-tag-search.js.es6 FEATURE: Merge tagging plugin into core 2016-04-27 11:58:53 -04:00
click-track.js.es6 REFACTOR: Remove Discourse.Ajax 2016-07-11 12:57:05 -04:00
computed.js.es6 FIX: edit history navigation issues 2015-08-19 21:10:12 +02:00
copy-text.js.es6 FIX: Do automatic copy on share in click handler 2015-07-21 10:34:41 -07:00
create-view.js.es6 add unique body class to search and user pages 2016-09-19 10:24:58 +05:30
debounce.js.es6 Add ES6 support to more files 2015-08-13 10:49:08 -04:00
decimal-adjust.js.es6 FEATURE: 2 new reports: time to first response, topics with no response 2015-06-22 19:46:51 +02:00
desktop-notifications.js.es6 Refactor desktop notifications to be more modular. 2016-07-01 00:11:32 +08:00
discourse-location.js.es6 FIX: Use chrome's scrollRestoration to fix scrolling uses with history 2016-02-11 13:14:43 -05:00
export-csv.js.es6 REFACTOR: Remove Discourse.Ajax 2016-07-11 12:57:05 -04:00
export-result.js.es6 FEATURE: download user posts archive 2014-12-24 15:13:48 +05:30
eyeline.js.es6 FIX: eyeline was broken in dev 2015-08-13 12:42:57 +02:00
formatter.js.es6 FEATURE: Webhooks. 2016-09-05 18:44:00 +08:00
hash.js.es6 Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
highlight-syntax.js.es6 lang-auto not being treated correctly after update 2016-03-10 16:44:24 +11:00
intercept-click.js.es6 FIX: Improper routing of https URLs 2016-08-22 16:45:11 -04:00
is-element-in-viewport.js.es6 FIX: better handling of the 'read guidelines' badge 2015-03-16 19:25:28 +01:00
key-value-store.js.es6 convert emoji toolbar to use safe local storage 2015-10-13 10:52:42 +02:00
keyboard-shortcuts.js.es6 FEATURE: Allow keyboard shortcuts for topic list to start from last viewed topic 2016-08-06 11:24:44 -04:00
lightbox.js.es6 SECURITY: Escape image title in lightbox. 2016-08-11 11:15:00 +08:00
link-category-hashtags.js.es6 REFACTOR: Remove Discourse.Ajax 2016-07-11 12:57:05 -04:00
link-lookup.js.es6 FIX: Don't notify of duplicate links on edit of the first post 2016-06-09 13:03:06 -04:00
link-mentions.js.es6 REFACTOR: Remove Discourse.Ajax 2016-07-11 12:57:05 -04:00
link-tag-hashtag.js.es6 FIX: Remove tag plugin code from tag hashtag check. 2016-08-02 10:59:12 +08:00
load-script.js.es6 FIX: Backwards compatibility for plugins who sanitize 2016-07-11 12:57:05 -04:00
lock-on.js.es6 FIX: Consistency with HTML anchors 2016-07-20 15:13:56 -04:00
logout.js.es6 Migrate KeyValueStore to ES6 modules 2015-09-01 14:45:24 -04:00
mobile.js.es6 UX: don't allow user scaling in mobile view 2016-09-15 07:36:16 +10:00
notification-levels.js.es6 FIX: Change the order of notifications in the drop down 2016-07-07 13:44:50 -04:00
offset-calculator.js.es6 FIX: Consistency with HTML anchors 2016-07-20 15:13:56 -04:00
page-tracker.js.es6 Refactor full page search for style, remove lookups 2016-08-09 14:49:46 -04:00
plugin-api.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
posts-with-placeholders.js.es6 FIX: Placeholders should not show up to non-admins when deleting posts 2016-02-11 16:45:28 -05:00
quote.js.es6 FIX: reply as new topic wasn't working in FF when the post was only composed of an image 2015-10-01 21:43:43 +02:00
render-tag.js.es6 FEATURE: Merge tagging plugin into core 2016-04-27 11:58:53 -04:00
round.js.es6 FEATURE: 2 new reports: time to first response, topics with no response 2015-06-22 19:46:51 +02:00
safari-hacks.js.es6 UX: add minimum height for zoomed composer on mobile 2016-06-27 17:22:42 +10:00
screen-track.js.es6 REFACTOR: Remove Discourse.Ajax 2016-07-11 12:57:05 -04:00
search.js.es6 FIX: Broken acceptance test 2016-08-11 15:03:23 -04:00
sharing.js.es6 extends share links 2015-03-16 16:44:50 +08:00
show-modal.js.es6 Remove a bunch of old deprecated code 2015-11-10 13:09:05 -05:00
static-route-builder.js.es6 FIX: Consistency with HTML anchors 2016-07-20 15:13:56 -04:00
tag-hashtags.js.es6 FEATURE: Merge tagging plugin into core 2016-04-27 11:58:53 -04:00
text.js.es6 FIX: Regression with escaping on badge page 2016-07-28 15:57:06 -04:00
transform-post.js.es6 FEATURE: avatar flair on user cards 2016-09-15 16:15:18 -04:00
url.js.es6 FIX: Bug when linking to anchors 2016-09-20 11:13:40 -04:00
user-search.js.es6 Allow any username character in user search 2016-04-16 10:39:33 +03:00
utilities.js.es6 Make eslint happy. 2016-09-21 11:45:17 +08:00