summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/awards_handler.js
Commit message (Collapse)AuthorAgeFilesLines
...
* dynamically import emoji helpers for AwardsHandler classMike Greiling2017-06-281-35/+44
|
* revert removal of requestAnimationFrame and move to a separate MR/discussionrefactor-emoji-utilsMike Greiling2017-06-271-2/+8
|
* rename getEmojiCategoryMap and remove unnecessary parameterMike Greiling2017-06-271-2/+2
|
* move glEmojiTag method to emoji helperMike Greiling2017-06-271-3/+2
|
* namespace emoji helper methods within AwardsHandler classMike Greiling2017-06-261-13/+8
|
* move emoji category index to helper methodMike Greiling2017-06-261-27/+8
|
* move emojiAlias logic into helper moduleMike Greiling2017-06-261-16/+6
|
* fix method definition stylingMike Greiling2017-06-261-12/+2
|
* move normalizeEmojiName method to emoji helper moduleMike Greiling2017-06-261-8/+3
|
* remove problematic use of requestAnimationFrameMike Greiling2017-06-261-8/+2
|
* centralize emoji helper methodsMike Greiling2017-06-231-4/+1
|
* refactor AwardsHandler into es class syntaxawards-handler-class-syntaxMike Greiling2017-06-171-379/+374
|
* Add ES lint support to identify poorly written PromisesKushal Pandya2017-04-201-0/+3
|
* Merge branch '27655-clear-emoji-search-after-selection' into 'master' Alfredo Sumaran2017-04-171-17/+36
|\ | | | | | | | | | | | | Clear emoji search in awards menu after picking emoji Closes #27655 See merge request !10524
| * Clear emoji search in awards menu after picking emoji27655-clear-emoji-search-after-selectionEric Eastwood2017-04-131-17/+36
| | | | | | | | Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/27655
* | frontend prevent authored votesbarthc2017-04-141-9/+35
|/
* Remove `undefined` class from `.emoji-menu-list`30496-remove-undefined-from-emoji-menu-listEric Eastwood2017-04-071-1/+1
| | | | Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/30496
* Award emoji button smiley animationDimitrie Hoekstra2017-04-061-1/+2
|
* Removes the duplicated search icon in emoji menuemoji-menu-duplicated-search-iconPhil Hughes2017-04-051-2/+2
| | | | | | | The search emojis title had the same class as the search input which caused a duplicated icon. Closes #30416
* remove Cookies class from global spaceMike Greiling2017-03-221-1/+1
|
* Protect against unknown emojis in frequently used listfix-unknown-emojis-in-frequently-used-awardsEric Eastwood2017-03-161-5/+13
| | | | See https://gitlab.slack.com/archives/frontend/p1489690607738864
* Add frequently used emojis back to awards menuadd-frequently-used-emojis-back-to-menuEric Eastwood2017-03-091-18/+12
| | | | Thanks @filipa for the shout`
* Update emojis to use harmony modules (import/export)update-native-unicode-emojis-with-harmony-modulesEric Eastwood2017-03-081-6/+4
|
* Fix up potential for build finish event to fire for wrong menuEric Eastwood2017-03-061-4/+3
|
* Fix up `watch` alias lookup in FirefoxEric Eastwood2017-03-061-1/+1
| | | | | It was pulling https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch
* Use native unicode emojisEric Eastwood2017-03-061-369/+508
| | | | | | | | | | | | | | | | | | | | - 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
* replace implicit this == window with explicit bindingMike Greiling2017-02-171-1/+1
|
* Merge branch 'master' into go-go-gadget-webpackMike Greiling2017-01-271-8/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (389 commits) Document "No gems fetched from git repositories" policy [ci skip] Typos Small gramatical tweaks Typos Added PHP & NPM doc Use `:empty_project` where possible in request specs Add caching of droplab ajax requests Use `:empty_project` where possible in model specs Revert 3f17f29a Remove unused js response from refs controller Add MR id to changelog entry fixed small mini pipeline graph line glitch Prevent form to be submitted twice Fix Error 500 when repositories contain annotated tags pointing to blobs Fix /explore sorting (trending) Simplify wording in "adding an image" docs Remove "official merge window" from CONTRIBUTING.md [ci skip] Update repository check documentation Fixed flexbox and wrap issues Update two_factor_authentication.md ...
| * resolve all parseInt radix eslint violationsMike Greiling2017-01-181-2/+2
| |
| * resolve all x-spacing and no-spaced-x eslint violationsMike Greiling2017-01-181-4/+4
| |
| * resolve all padded-blocks eslint violationsMike Greiling2017-01-181-3/+1
| |
| * resolve all no-plusplus eslint violationsMike Greiling2017-01-181-2/+2
| |
* | migrate all javascript asset bundles and require syntaxMike Greiling2017-01-101-1/+3
|/
* resolve all instances of no-undef eslint rule violationsclean-no-undefMike Greiling2016-12-141-1/+3
|
* explicitly disable eslint inlineexplicitly-disable-eslint-inlineLuke "Jared" Bennett2016-11-151-1/+1
|
* Cleaned up global namespace JSJosé Iván2016-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | Moved most of the functions that contained "window.doSomething" that were located at: - app/assets/javascripts/application.js To the following file: - app/assets/javascripts/lib/utils/common_utils.js The functions listed here: - window.ajaxGet - window.split - window.extractLast - window.rstrip - window.disableButtonIfEmptyField - window.disableButtonIfAnyEmptyField - window.sanitize - window.unbindEvents - window.shiftWindow Now will be accessible from the "gl.utils" namespace
* Merge branch 'eslint' into 'master' Fatih Acet2016-10-261-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ESLint ## What does this MR do? - create `package.json` - add ESLint dependencies to `package.json` - add JavaScript linting to CI - add Rake task `lint:javascript`as alias for `eslint` (which itself is an alias for `npm run eslint`) ## Are there points in the code the reviewer needs to double check? Probably not. ## Why was this MR needed? My hovercraft was full of eels. ## What are the relevant issue numbers? - https://gitlab.com/gitlab-org/gitlab-ce/issues/13224#note_12537431 - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5006#note_13255658 See merge request !5445
| * disable ESLint for all JavaScript fileswinniehell2016-10-261-0/+1
| |
* | Refactored less readable existance checksJack Davison2016-10-261-1/+1
|/ | | | | | CoffeeScript generated JavaScript contains some unreadable expressions. This refactoring addresses complex uses of the exestential operator that produced unreadable Javascript.
* remove manual Cookie.set "path" option in favor of global settingMike Greiling2016-10-241-4/+1
|
* replace jquery.cookie vendor script with js.cookieMike Greiling2016-10-241-3/+3
|
* Added `@zeiv`s changes to fix awards search, including CHANGELOG where he is ↵Luke Bennett2016-09-271-1/+1
| | | | credited
* Restore comments lost when converting CoffeeScript to JavaScriptJared Deckard2016-09-081-0/+5
|
* Replace animateEmoji timeout with eventListenerClement Ho2016-09-061-5/+5
|
* use gitlab global root url as canonical base url for all javascript set ↵Mike Greiling2016-08-241-0/+1
| | | | cookies (closes #20435)
* Replace resetTooltip with bootstrap's fixTitleJack Davison2016-08-171-14/+6
| | | | | | | | | | * resetTooltip totally destroyed and regenerated the tooltip while fixTitle simply replaces the text in the existing element. * resetTooltip also called an asyncronous function with no suitable callback resulting in a messy setTimout workaround. fixTitle is syncronous.
* Fix duplicate "me" in award emoji tooltipJack Davison2016-08-171-1/+6
| | | | | | * Works by explicitly deleting out-of-date data attributes * No longer directly assigns to data-original-title
* Award tooltips refer to current user as "You"Jack Davison2016-08-171-8/+8
|
* Switch to using to_sentence to construct tooltipsJack Davison2016-08-171-5/+14
| | | | | | * Code in ruby now uses Array#to_sentence to construct award tooltips * Coffeescript uses a combination of regexes for the same result
* Truncated user list in award emoji tooltipsJack Davison2016-08-171-1/+1
| | | | | | | | | | | | | | * Only the first 10 names are displayed * Further users are indicated by "and X more." * String "and X more" is appended to the array THEN join is called * An oxford comma seperates the last name from "and X more" * In coffeescript "me" is now always prepended * Tests included