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
5192166b
Commit
5192166b
authored
Aug 03, 2021
by
Jannik Lehmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete DOMContentLoadedEventListener
parent
80f46041
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
52 additions
and
60 deletions
+52
-60
app/assets/javascripts/pages/dashboard/merge_requests/index.js
...ssets/javascripts/pages/dashboard/merge_requests/index.js
+7
-9
app/assets/javascripts/pages/dashboard/milestones/index/index.js
...ets/javascripts/pages/dashboard/milestones/index/index.js
+1
-1
app/assets/javascripts/pages/explore/groups/index.js
app/assets/javascripts/pages/explore/groups/index.js
+4
-2
app/assets/javascripts/pages/help/index/index.js
app/assets/javascripts/pages/help/index/index.js
+2
-4
app/assets/javascripts/pages/help/ui/index.js
app/assets/javascripts/pages/help/ui/index.js
+1
-1
app/assets/javascripts/pages/import/bitbucket/status/index.js
...assets/javascripts/pages/import/bitbucket/status/index.js
+4
-2
app/assets/javascripts/pages/import/bitbucket_server/status/index.js
...javascripts/pages/import/bitbucket_server/status/index.js
+4
-2
app/assets/javascripts/pages/import/gitea/status/index.js
app/assets/javascripts/pages/import/gitea/status/index.js
+2
-4
app/assets/javascripts/pages/import/gitlab/status/index.js
app/assets/javascripts/pages/import/gitlab/status/index.js
+2
-4
app/assets/javascripts/pages/import/gitlab_projects/new/index.js
...ets/javascripts/pages/import/gitlab_projects/new/index.js
+1
-1
app/assets/javascripts/pages/import/manifest/status/index.js
app/assets/javascripts/pages/import/manifest/status/index.js
+2
-4
app/assets/javascripts/pages/omniauth_callbacks/index.js
app/assets/javascripts/pages/omniauth_callbacks/index.js
+1
-1
app/assets/javascripts/pages/projects/services/edit/index.js
app/assets/javascripts/pages/projects/services/edit/index.js
+9
-11
app/assets/javascripts/pages/sessions/index.js
app/assets/javascripts/pages/sessions/index.js
+1
-1
app/assets/javascripts/pages/sessions/new/index.js
app/assets/javascripts/pages/sessions/new/index.js
+11
-13
No files found.
app/assets/javascripts/pages/dashboard/merge_requests/index.js
View file @
5192166b
...
...
@@ -4,14 +4,12 @@ import { FILTERED_SEARCH } from '~/pages/constants';
import
initFilteredSearch
from
'
~/pages/search/init_filtered_search
'
;
import
projectSelect
from
'
~/project_select
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
addExtraTokensForMergeRequests
(
IssuableFilteredSearchTokenKeys
,
true
);
addExtraTokensForMergeRequests
(
IssuableFilteredSearchTokenKeys
,
true
);
initFilteredSearch
({
page
:
FILTERED_SEARCH
.
MERGE_REQUESTS
,
filteredSearchTokenKeys
:
IssuableFilteredSearchTokenKeys
,
useDefaultState
:
true
,
});
projectSelect
();
initFilteredSearch
({
page
:
FILTERED_SEARCH
.
MERGE_REQUESTS
,
filteredSearchTokenKeys
:
IssuableFilteredSearchTokenKeys
,
useDefaultState
:
true
,
});
projectSelect
();
app/assets/javascripts/pages/dashboard/milestones/index/index.js
View file @
5192166b
import
projectSelect
from
'
~/project_select
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
projectSelect
);
projectSelect
(
);
app/assets/javascripts/pages/explore/groups/index.js
View file @
5192166b
...
...
@@ -2,7 +2,7 @@ import GroupsList from '~/groups_list';
import
Landing
from
'
~/landing
'
;
import
initGroupsList
from
'
../../../groups
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
function
exploreGroups
()
{
new
GroupsList
();
// eslint-disable-line no-new
initGroupsList
();
const
landingElement
=
document
.
querySelector
(
'
.js-explore-groups-landing
'
);
...
...
@@ -13,4 +13,6 @@ document.addEventListener('DOMContentLoaded', () => {
'
explore_groups_landing_dismissed
'
,
);
exploreGroupsLanding
.
toggle
();
});
}
exploreGroups
();
app/assets/javascripts/pages/help/index/index.js
View file @
5192166b
...
...
@@ -2,7 +2,5 @@ import $ from 'jquery';
import
docs
from
'
~/docs/docs_bundle
'
;
import
VersionCheckImage
from
'
~/version_check_image
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
docs
();
VersionCheckImage
.
bindErrorEvent
(
$
(
'
img.js-version-status-badge
'
));
});
docs
();
VersionCheckImage
.
bindErrorEvent
(
$
(
'
img.js-version-status-badge
'
));
app/assets/javascripts/pages/help/ui/index.js
View file @
5192166b
import
initUIKit
from
'
~/ui_development_kit
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initUIKit
);
initUIKit
(
);
app/assets/javascripts/pages/import/bitbucket/status/index.js
View file @
5192166b
...
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
import
{
initStoreFromElement
,
initPropsFromElement
}
from
'
~/import_entities/import_projects
'
;
import
BitbucketStatusTable
from
'
~/import_entities/import_projects/components/bitbucket_status_table.vue
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
function
importBitBucket
()
{
const
mountElement
=
document
.
getElementById
(
'
import-projects-mount-element
'
);
if
(
!
mountElement
)
return
undefined
;
...
...
@@ -16,4 +16,6 @@ document.addEventListener('DOMContentLoaded', () => {
return
createElement
(
BitbucketStatusTable
,
{
attrs
});
},
});
});
}
importBitBucket
();
app/assets/javascripts/pages/import/bitbucket_server/status/index.js
View file @
5192166b
...
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
import
{
initStoreFromElement
,
initPropsFromElement
}
from
'
~/import_entities/import_projects
'
;
import
BitbucketServerStatusTable
from
'
./components/bitbucket_server_status_table.vue
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
function
BitbucketServerStatus
()
{
const
mountElement
=
document
.
getElementById
(
'
import-projects-mount-element
'
);
if
(
!
mountElement
)
return
undefined
;
...
...
@@ -19,4 +19,6 @@ document.addEventListener('DOMContentLoaded', () => {
});
},
});
});
}
BitbucketServerStatus
();
app/assets/javascripts/pages/import/gitea/status/index.js
View file @
5192166b
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/import/gitlab/status/index.js
View file @
5192166b
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/import/gitlab_projects/new/index.js
View file @
5192166b
import
initGitLabImportProject
from
'
~/projects/project_import_gitlab_project
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initGitLabImportProject
);
initGitLabImportProject
(
);
app/assets/javascripts/pages/import/manifest/status/index.js
View file @
5192166b
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/omniauth_callbacks/index.js
View file @
5192166b
import
{
mount2faAuthentication
}
from
'
~/authentication/mount_2fa
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
mount2faAuthentication
);
mount2faAuthentication
(
);
app/assets/javascripts/pages/projects/services/edit/index.js
View file @
5192166b
...
...
@@ -2,16 +2,14 @@ import IntegrationSettingsForm from '~/integrations/integration_settings_form';
import
PrometheusAlerts
from
'
~/prometheus_alerts
'
;
import
CustomMetrics
from
'
~/prometheus_metrics/custom_metrics
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
integrationSettingsForm
=
new
IntegrationSettingsForm
(
'
.js-integration-settings-form
'
);
integrationSettingsForm
.
init
();
const
integrationSettingsForm
=
new
IntegrationSettingsForm
(
'
.js-integration-settings-form
'
);
integrationSettingsForm
.
init
();
const
prometheusSettingsSelector
=
'
.js-prometheus-metrics-monitoring
'
;
const
prometheusSettingsWrapper
=
document
.
querySelector
(
prometheusSettingsSelector
);
if
(
prometheusSettingsWrapper
)
{
const
customMetrics
=
new
CustomMetrics
(
prometheusSettingsSelector
);
customMetrics
.
init
();
}
const
prometheusSettingsSelector
=
'
.js-prometheus-metrics-monitoring
'
;
const
prometheusSettingsWrapper
=
document
.
querySelector
(
prometheusSettingsSelector
);
if
(
prometheusSettingsWrapper
)
{
const
customMetrics
=
new
CustomMetrics
(
prometheusSettingsSelector
);
customMetrics
.
init
();
}
PrometheusAlerts
();
});
PrometheusAlerts
();
app/assets/javascripts/pages/sessions/index.js
View file @
5192166b
import
{
mount2faAuthentication
}
from
'
~/authentication/mount_2fa
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
mount2faAuthentication
);
mount2faAuthentication
(
);
app/assets/javascripts/pages/sessions/new/index.js
View file @
5192166b
...
...
@@ -7,18 +7,16 @@ import preserveUrlFragment from './preserve_url_fragment';
import
SigninTabsMemoizer
from
'
./signin_tabs_memoizer
'
;
import
UsernameValidator
from
'
./username_validator
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
UsernameValidator
();
// eslint-disable-line no-new
new
LengthValidator
();
// eslint-disable-line no-new
new
SigninTabsMemoizer
();
// eslint-disable-line no-new
new
NoEmojiValidator
();
// eslint-disable-line no-new
new
UsernameValidator
();
// eslint-disable-line no-new
new
LengthValidator
();
// eslint-disable-line no-new
new
SigninTabsMemoizer
();
// eslint-disable-line no-new
new
NoEmojiValidator
();
// eslint-disable-line no-new
new
OAuthRememberMe
({
container
:
$
(
'
.omniauth-container
'
),
}).
bindEvents
();
new
OAuthRememberMe
({
container
:
$
(
'
.omniauth-container
'
),
}).
bindEvents
();
// Save the URL fragment from the current window location. This will be present if the user was
// redirected to sign-in after attempting to access a protected URL that included a fragment.
preserveUrlFragment
(
window
.
location
.
hash
);
initVueAlerts
();
});
// Save the URL fragment from the current window location. This will be present if the user was
// redirected to sign-in after attempting to access a protected URL that included a fragment.
preserveUrlFragment
(
window
.
location
.
hash
);
initVueAlerts
();
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