Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3c8e48c3
Commit
3c8e48c3
authored
Aug 22, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
17010a6e
48feb671
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+16
-1
No files found.
app/assets/javascripts/main.js
View file @
3c8e48c3
...
...
@@ -9,7 +9,11 @@ import './commons';
import
'
./behaviors
'
;
// lib/utils
import
{
handleLocationHash
,
addSelectOnFocusBehaviour
}
from
'
./lib/utils/common_utils
'
;
import
{
handleLocationHash
,
addSelectOnFocusBehaviour
,
getCspNonceValue
,
}
from
'
./lib/utils/common_utils
'
;
import
{
localTimeAgo
}
from
'
./lib/utils/datetime_utility
'
;
import
{
getLocationHash
,
visitUrl
}
from
'
./lib/utils/url_utility
'
;
...
...
@@ -39,6 +43,17 @@ import 'ee_else_ce/main_ee';
window
.
jQuery
=
jQuery
;
window
.
$
=
jQuery
;
// Add nonce to jQuery script handler
jQuery
.
ajaxSetup
({
converters
:
{
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings, func-names
'
text script
'
:
function
(
text
)
{
jQuery
.
globalEval
(
text
,
{
nonce
:
getCspNonceValue
()
});
return
text
;
},
},
});
// inject test utilities if necessary
if
(
process
.
env
.
NODE_ENV
!==
'
production
'
&&
gon
&&
gon
.
test_env
)
{
$
.
fx
.
off
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment