summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/utils/common_utils.js
Commit message (Collapse)AuthorAgeFilesLines
* Add `searchBy` helper & `SidebarItemEpicsSelect`ce-6878-add-epic-select-dropdownKushal Pandya2019-08-221-0/+60
| | | | | - Adds `searchBy` util in common utils - Adds placeholder `SidebarItemEpicsSelect`
* Add support for Content-Security-PolicyStan Hu2019-08-071-1/+6
| | | | | | | | | | | | | | | | | | | | A nonce-based Content-Security-Policy thwarts XSS attacks by allowing inline JavaScript to execute if the script nonce matches the header value. Rails 5.2 supports nonce-based Content-Security-Policy headers, so provide configuration to enable this and make it work. To support this, we need to change all `:javascript` HAML filters to the following form: ``` = javascript_tag nonce: true do :plain ... ``` We use `%script` throughout our HAML to store JSON and other text, but since this doesn't execute, browsers don't appear to block this content from being used and require the nonce value to be present.
* Revert "Merge branch 'mh/editor-indents' into 'master'"revert-editor-indentsPaul Slaughter2019-08-011-65/+0
| | | | | This reverts commit 28f2225bdfee4d353f07a766c6c8b29ba6181397, reversing changes made to 96ae5bd83da31350e9856a290127d7aa1469710a.
* Add UndoStack class - a custom undo/redo engineMartin Hanzel2019-07-261-0/+65
| | | | It will be hooked up to the markdown editor later
* Replace runtime isEE check with compile time one60213-fix-is-ee-webpack-checksLukas Eipert2019-07-051-8/+0
| | | | | | | | | This has the benefit that CE bundles will remove dead code in CE only builds. We have a follow-up issue to get rid of this completely: https://gitlab.com/gitlab-org/gitlab-ce/issues/64173
* Add offset adjust to fix line positionJustin Boyson2019-05-301-0/+10
| | | | | Added offset adjustment for diff file header and version menus container divs. This should make the linked line be visible.
* Display scoped labels in Issue BoardsRajat Jain2019-04-151-0/+12
| | | | | This change brings new Scoped labels to Issue board as well. With the last change, this was missed.
* Improve diff navigation headerSam Bigelow2019-04-051-5/+4
| | | | | | | | | | | | | | - Compare versions header is full width except in the unified diff mode with no tree sidebar - Bar is always full width, but the content within stays centered when unified and no tree sidebar - File header is the same height as the "Compare versions header" - aligns with the design system grid guidelines => 56px - Diff file headers use a button group, switch icon order to open file externally being the last option, all buttons will become icon buttons (icon delivery by @dimitrieh) - If a file header becomes sticky no rounded corner/double border problem is visible anymore
* Scroll to diff file when clicking on file name57669-fix-bug-clicking-file-header-refreshes-pageSam Bigelow2019-03-291-8/+17
| | | | | | - Add an ID to the diff content - handle clicking on file name in diffFileHeader when it is not a link to another page but rather a link to an element on the page
* Creates a function to check if repo is EEFilipa Lacerda2019-03-041-0/+8
| | | | | Adds EE information to gon Creates a global vue mixin
* Remove convertPermissionToBoolean() from common_utils.jsWinnie Hellmann2019-02-211-15/+0
|
* CE Port of fix for roadmap forward timeline scrollConstance Okoghenun2019-02-131-1/+1
| | | | EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9530
* Handle window and container resize eventsAdriel Santiago2019-02-041-0/+16
| | | | Resizes metrics graph on window and sidebard width changes
* Support for ignore rules in 'convertObjectPropsToCamelCase' helperKushal Pandya2019-01-311-2/+24
| | | | | | | | Does following enhancements to `convertObjectPropsToCamelCase` helper; - Adds support for `dropKeys` within options param to discard properties. - Adds support for `allowKeys` within options param to skip converting property names.
* Make parseBoolean idempotentWinnie Hellmann2019-01-151-3/+4
|
* Generate searchable JSDoc documentationWinnie Hellmann2019-01-141-1/+11
|
* Add support for `offset` values in `isInViewport`Kushal Pandya2019-01-081-3/+4
|
* Resolve "Navigating unresolved discussions on Merge Request page"André Luís2018-12-081-1/+5
|
* Add parseBoolean helper functionWinnie Hellmann2018-11-271-1/+17
|
* Resolve "The reply shortcut can add any text of the page to the "comment" ↵Thomas Pathier2018-11-201-3/+21
| | | | text area"
* Added file tree to merge request diffsPhil Hughes2018-10-031-2/+10
| | | | | | | | | | | | | | | This file tree displays all the diff files in a tree like format Each file is taken and converted into a tree with folders Each folder can be toggled open & closed Clicking a file will scroll to the diff file & highlight with a glow affect Searching the tree list will search only files & return a list of the files without any folders Each file row contains an icon to show changed, new file or deleted Each row will also contain the added & removed lines count Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/14249
* circumvent browser cache on browser back navigationJohann Hubert Sonntagbauer2018-10-021-0/+11
|
* Resolve "Link to file in Changes tab of MR no longer works for all files ↵André Luís2018-09-201-21/+46
| | | | after incremental rendering improvement"
* Merge branch 'boards-querystring-backport' into 'master'Tim Zallmann2018-09-071-10/+37
|\ | | | | | | | | don't add trailing = when in urlParamsToArray function See merge request gitlab-org/gitlab-ce!21179
| * don't add trailing = when in urlParamsToArray functionSimon Knox2018-08-291-10/+37
| |
* | Adds Vuex store for the job log page🌴🌴 Filipa Lacerda - OOO back on September 17th 🌴🌴2018-09-031-1/+4
|/
* Add `roundOffFloat` helper methodKushal Pandya2018-07-241-0/+20
|
* Resolve "Copying ordered list to new comment becomes unordered"Jan Beckmann2018-06-271-1/+14
|
* Enable "prefer-destructuring" in JS filesgfyoung2018-06-251-5/+6
| | | | Partially addresses #47006.
* Changes tab VUE refactoringFelipe Artur2018-06-211-53/+86
|
* Enable no-multi-assignment in JS filesgfyoung2018-06-151-1/+4
| | | | Partially addresses #47006.
* create favicon overlay on the clientAlexis Reigel2018-06-051-4/+46
| | | | | | | | | | | | | the initial reason for this change was that graphicsmagick does not support writing to ico files. this fact lead to a chain of changes: 1. use png instead of ico (browser support is good enough) 2. render the overlays on the client using the canvas API. this way we only need to store the original favion and generate the overlay versions dynamically. this change also enables (next step) to simplify the handling of the stock favicons as well, as we don't need to generate all the versions upfront.
* fix resetFavicon so that it actually resetsAlexis Reigel2018-06-051-1/+2
|
* Convert fixTitle to _fixTitle for regenerating tooltip titlesClement Ho2018-04-191-1/+1
|
* Refactor discussions/notes codeJan Provaznik2018-04-031-0/+1
|
* require jQuery to be explicitly importedremove-jquery-globalsMike Greiling2018-03-091-2/+2
|
* Add support for query params for labels endpointKushal Pandya2018-03-021-0/+8
|
* Render MR Notes with Vue with behind a cookieFatih Acet2018-02-281-5/+16
|
* Add Tip about Push to Create project on New Project pageAndré Luís2018-02-231-0/+10
|
* Add `convertObjectPropsToCamelCase` helper methodKushal Pandya2018-02-071-0/+21
|
* remove useless ajaxPost methodPhil Hughes2018-02-011-3/+0
|
* fixed eslint :see_no_evil:Phil Hughes2018-01-311-1/+0
|
* Merge branch 'master' into ph-axios-2Phil Hughes2018-01-311-11/+6
|\
| * Use axios instead of jquery ajax for setCiStatusFaviconClement Ho2018-01-311-11/+6
| |
* | Converted common_utils to axiosPhil Hughes2018-01-311-9/+7
|/
* Switch issue_show to AxiosEric Eastwood2018-01-021-1/+1
|
* use exported methods instead of gl.utilsPhil Hughes2017-12-081-1/+2
|
* Fix issue comment submit button disabled on GFM pasteEric Eastwood2017-11-281-1/+1
| | | | | | | | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/40373 When copying some text from another note and paste, it goes through `copy_as_gfm` `paste` handler that calls `e.preventDefault()` which stops things. But then when inserting the text, we manually trigger an `input` event with jQuery which doesn't seem to be picked up by Vue `v-model`. Using copy/paste trick from https://stackoverflow.com/a/41046276/796832
* Improve environments performanceFilipa Lacerda2017-11-231-40/+0
|
* Stops page reload when changing tabs or pages - uses API requests insteadFilipa Lacerda2017-11-141-0/+36
|