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
6a949cd4
Commit
6a949cd4
authored
May 20, 2020
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove sanitize-html dependency from the main bundle
parent
6717786f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
app/assets/javascripts/frequent_items/index.js
app/assets/javascripts/frequent_items/index.js
+4
-9
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+2
-1
No files found.
app/assets/javascripts/frequent_items/index.js
View file @
6a949cd4
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Translate
from
'
~/vue_shared/translate
'
;
import
eventHub
from
'
~/frequent_items/event_hub
'
;
import
frequentItems
from
'
./components/app.vue
'
;
import
eventHub
from
'
./event_hub
'
;
Vue
.
use
(
Translate
);
...
...
@@ -17,7 +16,7 @@ const frequentItemDropdowns = [
},
];
const
initFrequentItemDropdowns
=
()
=>
{
export
default
function
initFrequentItemDropdowns
()
{
frequentItemDropdowns
.
forEach
(
dropdown
=>
{
const
{
namespace
,
key
}
=
dropdown
;
const
el
=
document
.
getElementById
(
`js-
${
namespace
}
-dropdown`
);
...
...
@@ -37,7 +36,7 @@ const initFrequentItemDropdowns = () => {
new
Vue
({
el
,
components
:
{
frequentItems
,
FrequentItems
:
()
=>
import
(
'
./components/app.vue
'
)
,
},
data
()
{
const
{
dataset
}
=
this
.
$options
.
el
;
...
...
@@ -66,8 +65,4 @@ const initFrequentItemDropdowns = () => {
},
});
});
};
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
requestIdleCallback
(
initFrequentItemDropdowns
);
});
}
app/assets/javascripts/main.js
View file @
6a949cd4
...
...
@@ -28,7 +28,7 @@ import initLayoutNav from './layout_nav';
import
'
./feature_highlight/feature_highlight_options
'
;
import
LazyLoader
from
'
./lazy_loader
'
;
import
initLogoAnimation
from
'
./logo
'
;
import
'
./frequent_items
'
;
import
initFrequentItemDropdowns
from
'
./frequent_items
'
;
import
initBreadcrumbs
from
'
./breadcrumb
'
;
import
initUsagePingConsent
from
'
./usage_ping_consent
'
;
import
initPerformanceBar
from
'
./performance_bar
'
;
...
...
@@ -107,6 +107,7 @@ function deferredInitialisation() {
initUsagePingConsent
();
initUserPopovers
();
initBroadcastNotifications
();
initFrequentItemDropdowns
();
const
recoverySettingsCallout
=
document
.
querySelector
(
'
.js-recovery-settings-callout
'
);
PersistentUserCallout
.
factory
(
recoverySettingsCallout
);
...
...
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