summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/gfm_auto_complete.js
Commit message (Collapse)AuthorAgeFilesLines
* Move NoteApp tests to JestWinnie Hellmann2019-06-031-0/+1
|
* Escape special characters in GFM auto complete highlightingJan Beckmann2019-04-251-0/+10
| | | | Fixes #60552
* Only use backslash escapes in autocomplete when neededmarkdown-autocomplete-escapingSean McGivern2019-04-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autocompletion for references happens on the frontend. Those references are turned into actual references on the backend, but only after Markdown processing has happened. That means that if a reference contains a character that Markdown might consume, it won't render correctly. So we need to do some escaping on the frontend. We have these potential problem characters: https://docs.gitlab.com/ee/user/markdown.html#emphasis 1. ~ - this is ~~strikethrough~~, but only when doubled. 2. _ - used for _emphasis_, doubled is __bold__. 3. * - also used for *emphasis*, doubled is **bold** also. 4. ` - used for `code spans`, any number works. We don't need to escape `-` any more. When it comes to being inside a word: 1. a~~b~~ has strikethrough, so it needs to be escaped everywhere. 2. a_b_ has no emphasis (see [a]) so it only needs to be escaped at the start and end of words. 3. a*b* has emphasis, so it needs to be escaped everywhere. 4. a`b` has a code span, so it needs to be escaped everywhere. Or, in code terms: 1. Always escape ~~, *, and ` when being inserted by autocomplete. 2. Escape _ when it's either at the beginning or the end of a word. [a]: https://docs.gitlab.com/ee/user/markdown.html#multiple-underscores-in-words
* Revert "Merge branch 'tz-reorganise-digests-json' into 'master'"tz-revert-new-emojis-loadingTim Zallmann2019-04-101-9/+3
| | | | Reverts the loading of emojis and its images to move forward with RC
* Moved all emojis to the public folderTim Zallmann2019-03-071-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Created new emojis map in public folder Renamed folder to emojis Loading now the emojis from Localstorage or from Server Moved all emojis to the public folder Loading the emojis.json file now through AJAX Loads now the map in the web element instead when building the emoji tag Updated the custom Element Setup to modern method Fixed Emoji Karma Specs for async loading Loading now the emojis from Localstorage or from Server Loads now the map in the web element instead when building the emoji tag Fixed problem with FIXTURE_PATH for emojis fixtures Fixes Linting Error in gemojione.rake Fixed Emoji Karma Specs Fix static type check in gemojione and check if already registered Testing if the Emoji Support Check is failing Rspec Change of CLass Name, returning true on check to test Fixes failing Emoji RSpec Tests Moved Emojis into public/-/emojis/1/ Fixed Linting Errors in gl_emoji Fix to fixtures creation for emojis Fixed path spec for new subdirectory -/emojis Optimized emojis.json output Fix for Emoji Spec failure due to unicode dataset Better catch handling for emojis
* Style avatars for groups and projectsMartin Wortschack2019-02-251-2/+6
| | | | | | | | | - Add rectangular avatar classes - Update avatar for groups - Update avatar for projects - Update avatar for frequent items - Update avatar on "Fork project" page - Conditionally add rectangular avatar class to autocomplete items
* CE backport for `reference` in gfm_autocompletece-5606-issues-and-mr-autocomplete-in-epicsHeinrich Lee Yu2019-01-071-9/+15
| | | | Currently not used by any CE code
* Escape label and milestone titles to prevent XSSKushal Pandya2018-12-201-7/+10
|
* Add support for custom highlighting slash commands via warning flagsce-backport-3777-promote-to-epicKushal Pandya2018-11-211-3/+15
|
* Fix user name autocomplete XSS when name contains HTMLKushal Pandya2018-11-121-4/+11
|
* Fix eslint violationsMike Greiling2018-10-311-1/+1
|
* Prettify remaining files with differences in CE and EEMike Greiling2018-10-311-21/+40
|
* Escape issue title while template rendering to prevent XSSKushal Pandya2018-10-191-5/+6
|
* Resolve "Drop down filter for project snippets"Fabian Schneider2018-10-051-2/+38
|
* Add `&` support for epics autocompletionKushal Pandya2018-07-021-1/+2
|
* Enable "prefer-destructuring" in JS filesgfyoung2018-06-251-2/+2
| | | | Partially addresses #47006.
* Add default autocomplete configKushal Pandya2018-06-251-8/+11
|
* Backport of 4084-epics-username-autocompleteMario de la Ossa2018-05-041-2/+7
|
* Escape autocomplete results for MarkdownSean McGivern2018-03-291-5/+14
| | | | | | | | | | A label name can contain a `_`, `~~`, or other Markdown-significant characters. But label references are processed _after_ Markdown processing has run, so we can't easily fix this on the backend. We can make it more convenient, though, by changing the frontend to escape these characters so they aren't processed as Markdown, when we insert them from autocomplete.
* Merge branch 'fix-emoji-popup' into 'master'Sean McGivern2018-03-141-2/+1
|\ | | | | | | | | | | | | Hide emoji popup after multiple spaces or blank lines, closes #40620,#33678 Closes #40620 and #33678 See merge request gitlab-org/gitlab-ce!17680
| * Hide emoji popup after multiple spaces or blank linesJan Beckmann2018-03-111-2/+1
| | | | | | | | Fixes #40620,#33678
* | require jQuery to be explicitly importedremove-jquery-globalsMike Greiling2018-03-091-0/+1
|/
* Add Colors to GitLab Flavored MarkdownTony Rom2018-01-291-1/+1
|
* Fix slash commands dropdown descriptionMaurizio De Santis2018-01-081-3/+3
|
* Limit autocomplete menu to applied labelsVitaliy @blackst0ne Klachkov2017-11-281-14/+61
|
* fix to allow integer label refernceshaseeb2017-11-131-1/+2
|
* Resolve "Specific Async Script Loading by using a Page Variable"Tim Zallmann2017-08-031-0/+1
|
* Fixed GFM references not being included when update issue inlineissue-description-gfmPhil Hughes2017-07-071-0/+1
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/2878
* Merge branch 'enable-webpack-code-splitting' into 'master'Jacob Schatz2017-06-301-6/+12
|\ | | | | | | | | | | | | Enable webpack code splitting Closes #32989 See merge request !12032
| * dynamically import emoji helpers for GfmAutoComplete classMike Greiling2017-06-281-6/+12
| |
* | Resolve "Issue dropdown persists when adding issue number to issue description"Tim Zallmann2017-06-291-0/+7
|/
* move glEmojiTag method to emoji helperMike Greiling2017-06-271-2/+1
|
* export validEmojiNames for autocompleteMike Greiling2017-06-261-2/+2
|
* centralize emoji helper methodsMike Greiling2017-06-231-5/+4
|
* Rename "Slash commands" to "Quick actions"Eric Eastwood2017-06-151-3/+3
| | | | | | | | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/27070 Deprecate "chat commands" in favor of "slash commands" We looked for things like: - `slash commmand` - `slash_command` - `slash-command` - `SlashCommand`
* Improve user experience around slash commands in instant commentsKushal Pandya2017-06-051-3/+12
|
* Make `gfm_auto_complete` into a module and fix up tech debtEric Eastwood2017-05-161-234/+248
|
* Add enableMap to gl.GfmAutoComplete for partial re-usebackport-ee-1800-add-enable-map-to-gfm-auto-completeEric Eastwood2017-05-031-67/+102
| | | | | EE backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1800
* Merge branch 'blackst0ne/gitlab-ce-fix_emoji_parser'Sean McGivern2017-04-271-1/+10
|\
| * Fix rendering emoji inside a stringblackst0ne2017-04-251-1/+10
| |
* | Update all instances of "fa-refresh" to "fa-spinner"Andrew Torres2017-04-111-1/+1
|/
* remove IIFEs in preparation for ES module refactorMike Greiling2017-03-131-361/+357
|
* Update emojis to use harmony modules (import/export)update-native-unicode-emojis-with-harmony-modulesEric Eastwood2017-03-081-5/+3
|
* Use native unicode emojisEric Eastwood2017-03-061-2/+15
| | | | | | | | | | | | | | | | | | | | - gl_emoji for falling back to image/css-sprite when the browser doesn't support an emoji - Markdown rendering (Banzai filter) - Autocomplete - Award emoji menu - Perceived perf - Immediate response because we now build client-side - Update `digests.json` generation in gemojione rake task to be more useful and include `unicodeVersion` MR: !9437 See issues - #26371 - #27250 - #22474
* Remove .es6 from file extensions (!9241)winniehell2017-03-051-0/+383
|
* Support slash commands in noteable description and notesRémy Coutable2016-08-131-272/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Some important things to note: - commands are removed from noteable.description / note.note - commands are translated to params so that they are treated as normal params in noteable Creation services - the logic is not in the models but in the Creation services, which is the right place for advanced logic that has nothing to do with what models should be responsible of! - UI/JS needs to be updated to handle notes which consist of commands only - the `/merge` command is not handled yet Other improvements: - Don't process commands in commit notes and display a flash is note is only commands - Add autocomplete for slash commands - Add description and params to slash command DSL methods - Ensure replying by email with a commands-only note works - Use :subscription_event instead of calling noteable.subscribe - Support :todo_event in IssuableBaseService Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove delay when hitting Reply... button on page with a lot of discussionsDouwe Maan2016-08-011-2/+2
|
* ES6ify all the things!Fatih Acet2016-07-241-0/+272