Commit graph

13 commits

Author SHA1 Message Date
Phil Hughes
a16cdd0b3e
converted blob viewer to axios 2018-01-30 09:12:56 +00:00
Phil Hughes
fa2af5e0f5
Flash is now a ES6 module
Reduced the technical debt around our JS flash function by making it a
module that is imported rather than relying on the global function.
The global function still exists mainly for technical debt with how
some requests are being completed, but new JS should import the module
directly.

Also reduces some tech debt in the file by removing the need for jQuery.
Instead Flash is now 100% vanilla JS.
2017-10-10 10:14:22 +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
Sean McGivern
6821ad96ca Fix math rendering on blob pages
`renderGFM` adds the correct syntax highlighting class and triggers KaTeX if
required.
2017-05-30 13:25:47 +01:00
Luke "Jared" Bennett
1f9a9629db Fix clicking disabled clipboard button toolip 2017-05-18 20:53:15 +00:00
Douwe Maan
0f902f7e87 Scroll to anchor when blob content is loaded 2017-05-16 19:05:45 -05:00
Douwe Maan
08706f6837 Implement auxiliary blob viewers 2017-05-10 20:07:04 -05:00
Douwe Maan
00fc9f2607 Load tree readme asynchronously 2017-05-10 08:21:58 -05:00
Douwe Maan
60ebd101d0 Use blob viewers for snippets 2017-04-30 11:21:20 -05:00
Phil Hughes
95658fb62a Fixed failing JS tests 2017-04-27 12:23:27 -05:00
Douwe Maan
a7fd95cd22 Render viewer error synchronously so that 'view the source' link will work 2017-04-27 12:23:26 -05:00
Douwe Maan
cc3e488c98 Satisfy eslint 2017-04-27 12:23:26 -05:00
Douwe Maan
796acbe1e0 Add BlobViewer JS 2017-04-27 12:23:26 -05:00