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
3def569d
Commit
3def569d
authored
Aug 03, 2021
by
Jannik Lehmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete DOMContentLoadedEventListener
parent
b424f289
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
150 additions
and
154 deletions
+150
-154
app/assets/javascripts/pages/import/fogbugz/new_user_map/index.js
...ts/javascripts/pages/import/fogbugz/new_user_map/index.js
+1
-1
app/assets/javascripts/pages/import/fogbugz/status/index.js
app/assets/javascripts/pages/import/fogbugz/status/index.js
+2
-4
app/assets/javascripts/pages/profiles/accounts/show/index.js
app/assets/javascripts/pages/profiles/accounts/show/index.js
+1
-1
app/assets/javascripts/pages/profiles/keys/index.js
app/assets/javascripts/pages/profiles/keys/index.js
+5
-3
app/assets/javascripts/pages/profiles/two_factor_auths/index.js
...sets/javascripts/pages/profiles/two_factor_auths/index.js
+8
-10
app/assets/javascripts/pages/projects/graphs/charts/index.js
app/assets/javascripts/pages/projects/graphs/charts/index.js
+133
-135
No files found.
app/assets/javascripts/pages/import/fogbugz/new_user_map/index.js
View file @
3def569d
import
UsersSelect
from
'
~/users_select
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
UsersSelect
());
new
UsersSelect
();
// eslint-disable-line no-new
app/assets/javascripts/pages/import/fogbugz/status/index.js
View file @
3def569d
import
mountImportProjectsTable
from
'
~/import_entities/import_projects
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
mountElement
=
document
.
getElementById
(
'
import-projects-mount-element
'
);
const
mountElement
=
document
.
getElementById
(
'
import-projects-mount-element
'
);
mountImportProjectsTable
(
mountElement
);
});
mountImportProjectsTable
(
mountElement
);
app/assets/javascripts/pages/profiles/accounts/show/index.js
View file @
3def569d
import
{
initClose2faSuccessMessage
}
from
'
~/authentication/two_factor_auth
'
;
import
initProfileAccount
from
'
~/profile/account
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initProfileAccount
);
initProfileAccount
(
);
initClose2faSuccessMessage
();
app/assets/javascripts/pages/profiles/keys/index.js
View file @
3def569d
import
initConfirmModal
from
'
~/confirm_modal
'
;
import
AddSshKeyValidation
from
'
~/profile/add_ssh_key_validation
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initConfirmModal
();
initConfirmModal
();
function
initSshKeyValidation
()
{
const
input
=
document
.
querySelector
(
'
.js-add-ssh-key-validation-input
'
);
if
(
!
input
)
return
;
...
...
@@ -18,4 +18,6 @@ document.addEventListener('DOMContentLoaded', () => {
confirmSubmit
,
);
addSshKeyValidation
.
register
();
});
}
initSshKeyValidation
();
app/assets/javascripts/pages/profiles/two_factor_auths/index.js
View file @
3def569d
...
...
@@ -2,17 +2,15 @@ import { mount2faRegistration } from '~/authentication/mount_2fa';
import
{
initRecoveryCodes
}
from
'
~/authentication/two_factor_auth
'
;
import
{
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
twoFactorNode
=
document
.
querySelector
(
'
.js-two-factor-auth
'
);
const
skippable
=
twoFactorNode
?
parseBoolean
(
twoFactorNode
.
dataset
.
twoFactorSkippable
)
:
false
;
const
twoFactorNode
=
document
.
querySelector
(
'
.js-two-factor-auth
'
);
const
skippable
=
twoFactorNode
?
parseBoolean
(
twoFactorNode
.
dataset
.
twoFactorSkippable
)
:
false
;
if
(
skippable
)
{
if
(
skippable
)
{
const
button
=
`<a class="btn btn-sm btn-warning float-right" data-qa-selector="configure_it_later_button" data-method="patch" href="
${
twoFactorNode
.
dataset
.
two_factor_skip_url
}
">Configure it later</a>`
;
const
flashAlert
=
document
.
querySelector
(
'
.flash-alert
'
);
if
(
flashAlert
)
flashAlert
.
insertAdjacentHTML
(
'
beforeend
'
,
button
);
}
}
mount2faRegistration
();
});
mount2faRegistration
();
initRecoveryCodes
();
app/assets/javascripts/pages/projects/graphs/charts/index.js
View file @
3def569d
...
...
@@ -7,8 +7,7 @@ import SeriesDataMixin from './series_data_mixin';
const
seriesDataToBarData
=
(
raw
)
=>
Object
.
entries
(
raw
).
map
(([
name
,
data
])
=>
({
name
,
data
}));
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
waitForCSSLoaded
(()
=>
{
waitForCSSLoaded
(()
=>
{
const
languagesContainer
=
document
.
getElementById
(
'
js-languages-chart
'
);
const
codeCoverageContainer
=
document
.
getElementById
(
'
js-code-coverage-chart
'
);
const
monthContainer
=
document
.
getElementById
(
'
js-month-chart
'
);
...
...
@@ -153,5 +152,4 @@ document.addEventListener('DOMContentLoaded', () => {
});
},
});
});
});
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