Commit Graph

87 Commits

Author SHA1 Message Date
Kushal Pandya 214d741ba5 Add support for `offset` values in `isInViewport` 2019-01-08 18:37:21 +05:30
André Luís 85daddbec9 Resolve "Navigating unresolved discussions on Merge Request page" 2018-12-08 07:19:03 +00:00
Winnie Hellmann 47fad3353f Add parseBoolean helper function 2018-11-27 09:18:48 +01:00
Thomas Pathier 7ed62abf7e Resolve "The reply shortcut can add any text of the page to the "comment" text area" 2018-11-20 18:18:29 +00:00
Phil Hughes 33c4c5b8f3
Added file tree to merge request diffs
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
2018-10-03 10:05:43 +01:00
Johann Hubert Sonntagbauer d366ea1438 circumvent browser cache on browser back navigation 2018-10-02 10:00:58 +00:00
André Luís 38beacc926 Resolve "Link to file in Changes tab of MR no longer works for all files after incremental rendering improvement" 2018-09-20 08:21:17 +00:00
Tim Zallmann 44cb8a7407 Merge branch 'boards-querystring-backport' into 'master'
don't add trailing = when in urlParamsToArray function

See merge request gitlab-org/gitlab-ce!21179
2018-09-07 10:20:27 +00:00
🌴🌴 Filipa Lacerda - OOO back on September 17th 🌴🌴 55582b4359 Adds Vuex store for the job log page 2018-09-03 07:49:52 +00:00
Simon Knox 8a5121eb8e don't add trailing = when in urlParamsToArray function 2018-08-29 06:28:06 +10:00
Kushal Pandya b487881494 Add `roundOffFloat` helper method 2018-07-24 12:58:08 +05:30
Jan Beckmann 351d5f3e36 Resolve "Copying ordered list to new comment becomes unordered" 2018-06-27 08:47:29 +00:00
gfyoung 23cdae8eee Enable "prefer-destructuring" in JS files
Partially addresses #47006.
2018-06-25 11:53:57 -07:00
Felipe Artur 3e66795ef1 Changes tab VUE refactoring 2018-06-21 12:22:40 +00:00
gfyoung dbc74800e2 Enable no-multi-assignment in JS files
Partially addresses #47006.
2018-06-15 13:08:47 -07:00
Alexis Reigel 9e14f437b6
create favicon overlay on the client
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.
2018-06-05 16:20:21 +02:00
Alexis Reigel 5202c3f0c8
fix resetFavicon so that it actually resets 2018-06-05 16:20:21 +02:00
Clement Ho 1536c69f6a Convert fixTitle to _fixTitle for regenerating tooltip titles 2018-04-19 10:40:23 -05:00
Jan Provaznik 65664c2eae Refactor discussions/notes code 2018-04-03 16:03:00 +00:00
Mike Greiling f248be7257
require jQuery to be explicitly imported 2018-03-09 15:18:09 -06:00
Kushal Pandya e4ec50b70b Add support for query params for labels endpoint 2018-03-02 23:29:39 +05:30
Fatih Acet 059ab73b8e Render MR Notes with Vue with behind a cookie 2018-02-28 00:10:43 +00:00
André Luís da531c3905 Add Tip about Push to Create project on New Project page 2018-02-23 09:00:19 +00:00
Kushal Pandya 3976368808 Add `convertObjectPropsToCamelCase` helper method 2018-02-07 21:32:38 +05:30
Phil Hughes 4377b4795f
remove useless ajaxPost method 2018-02-01 09:14:53 +00:00
Phil Hughes a3356bce09
fixed eslint 🙈 2018-01-31 15:48:12 +00:00
Phil Hughes 5d88e736ac
Merge branch 'master' into ph-axios-2 2018-01-31 15:45:02 +00:00
Clement Ho 2f1a55fa4e Use axios instead of jquery ajax for setCiStatusFavicon 2018-01-31 15:24:54 +00:00
Phil Hughes 641f1d2c4b
Converted common_utils to axios 2018-01-31 10:14:55 +00:00
Eric Eastwood d2e5313ad8 Switch issue_show to Axios 2018-01-02 17:59:04 -06:00
Phil Hughes e0bbadc2d2
use exported methods instead of gl.utils 2017-12-08 08:54:51 +00:00
Eric Eastwood 078ba6a2d6 Fix issue comment submit button disabled on GFM paste
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
2017-11-28 10:53:01 -06:00
Filipa Lacerda 4563156256 Improve environments performance 2017-11-23 12:04:03 +00:00
Filipa Lacerda be4abe7719 Stops page reload when changing tabs or pages - uses API requests instead 2017-11-14 15:35:29 +00:00
Filipa Lacerda 1ff3f1a4f7 Export text utils as ES6 modules 2017-11-13 09:11:54 +00:00
Clement Ho 13b299f4ff Add ability to pass class name to spriteIcon helper 2017-10-12 12:43:00 -05:00
Eric Eastwood 03cd536b54 Cleanup data-page attribute after each Karma test
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/38871
2017-10-11 11:02:55 -05:00
Phil Hughes 333cb069af
Fixed anchored content not being scrolled into view
Correctly scrolls anchored content into view when the user loads the
page. This is most obvious when the user loads a link note in a
merge request & the page does not scroll down to the note.

Closes #38326
2017-09-29 09:24:56 +01:00
Tim Zallmann 55f772bb98 Resolve "Better SVG Usage in the Frontend" 2017-09-22 08:39:47 +00:00
Filipa Lacerda 8784d362ab
Exports all the methods in the same place 2017-09-18 18:02:18 +01:00
Filipa Lacerda 14a932f180
Fix context for jquery event
Remove unused function
2017-09-15 14:24:46 +01:00
Filipa Lacerda 96e6fc70b4 Import modules instead of using the ones in global namespace
Removes set favicon related methods from global scope
Improves test related with favicon

Removes convertPermissionToBoolean from global scope.
Adds tests for convertPermissionToBoolean - were non existant

Removes setParamInURL from gl.utils

Removes parseIntPagination from gl.utils namespace

Remove normalizeCRLFHeaders from gl.utils namespace

Removes normalizeHeaders from gl.utils namespace

Use gl.utils for filtered search

Fix bad import

Fix broken test by cleaning window.history namespace

Adds changelog
2017-09-09 09:54:27 +01:00
Filipa Lacerda 6a1b84c7b4 Use modules in common utils 2017-09-09 09:54:24 +01:00
Douwe Maan fbe82e4cd9 Merge branch 'master' into issue-discussions-refactor
# Conflicts:
#	package.json
2017-08-23 11:31:17 +02:00
Fatih Acet 46ed6cd8ca IssueNotesRefactor: Fix eslint errors. 2017-08-23 01:19:28 +03:00
Fatih Acet 48acfb5c05 IssueNotesRefactor: Show Cmd+Enter to comment tooltip. 2017-08-21 21:48:09 +03:00
Mike Greiling d4cb1ec9e9 fix unnecessarily long gl.utils.backOff test 2017-08-18 03:01:23 -05:00
Filipa Lacerda e4f8aa719b Merge branch 'master' into issue-discussions-refactor
* master: (162 commits)
  Since mysql is not a priority anymore, test it less
  Add container registry and spam logs icons
  Fix different Markdown styles
  Backport to CE for:
  Make new dropdown dividers full width
  Bump GITLAB_SHELL_VERSION and GITALY_VERSION to support unhiding refs
  Install yarn via apt in update guides
  Use long curl options
  Remove monkey-patched Array.prototype.first() and last() methods
  Openshift Getting Started
  35659 Rename Pipelines tab to CI / CD in new navigation
  Don't bother going through an entire Banzai pipeline for empty text
  Add active state for pipelines settings on old nav
  Bump rspec to 3.6.0
  Resolve "Specific Async Script Loading by using a Page Variable"
  Revert "Merge branch 'rs-warm-capybara-only-in-ci' into 'master'"
  another rubocop style fix
  Use mixin for new dropdown style
  Migrate Repository#last_commit_for_path to Gitaly
  Migrate blame loading to Gitaly
  ...
2017-08-04 19:38:37 +01:00
Phil Hughes d86cbe6941
fixed alignment in button
correctly scroll to element with sticky height offset
2017-08-03 17:03:49 +01:00
Fatih Acet 3c2d98f4c2 IssueNotesRefactor: Address MR comments. 2017-07-21 22:35:26 +03:00