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
12efe494
Commit
12efe494
authored
Jun 30, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor UsagePing class to ES module syntax
parent
d30e66c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+2
-1
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+0
-1
app/assets/javascripts/usage_ping.js
app/assets/javascripts/usage_ping.js
+1
-4
No files found.
app/assets/javascripts/dispatcher.js
View file @
12efe494
...
@@ -52,6 +52,7 @@ import UsersSelect from './users_select';
...
@@ -52,6 +52,7 @@ import UsersSelect from './users_select';
import
RefSelectDropdown
from
'
./ref_select_dropdown
'
;
import
RefSelectDropdown
from
'
./ref_select_dropdown
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
import
ShortcutsBlob
from
'
./shortcuts_blob
'
;
import
ShortcutsBlob
from
'
./shortcuts_blob
'
;
import
UsagePing
from
'
./usage_ping
'
;
import
UsernameValidator
from
'
./username_validator
'
;
import
UsernameValidator
from
'
./username_validator
'
;
import
VersionCheckImage
from
'
./version_check_image
'
;
import
VersionCheckImage
from
'
./version_check_image
'
;
import
Wikis
from
'
./wikis
'
;
import
Wikis
from
'
./wikis
'
;
...
@@ -433,7 +434,7 @@ import OAuthRememberMe from './oauth_remember_me';
...
@@ -433,7 +434,7 @@ import OAuthRememberMe from './oauth_remember_me';
new
Admin
();
new
Admin
();
switch
(
path
[
1
])
{
switch
(
path
[
1
])
{
case
'
cohorts
'
:
case
'
cohorts
'
:
new
gl
.
UsagePing
();
new
UsagePing
();
break
;
break
;
case
'
groups
'
:
case
'
groups
'
:
new
UsersSelect
();
new
UsersSelect
();
...
...
app/assets/javascripts/main.js
View file @
12efe494
...
@@ -154,7 +154,6 @@ import './syntax_highlight';
...
@@ -154,7 +154,6 @@ import './syntax_highlight';
import
'
./task_list
'
;
import
'
./task_list
'
;
import
'
./todos
'
;
import
'
./todos
'
;
import
'
./tree
'
;
import
'
./tree
'
;
import
'
./usage_ping
'
;
import
'
./user
'
;
import
'
./user
'
;
// eslint-disable-next-line global-require, import/no-commonjs
// eslint-disable-next-line global-require, import/no-commonjs
...
...
app/assets/javascripts/usage_ping.js
View file @
12efe494
function
UsagePing
()
{
export
default
function
UsagePing
()
{
const
usageDataUrl
=
$
(
'
.usage-data
'
).
data
(
'
endpoint
'
);
const
usageDataUrl
=
$
(
'
.usage-data
'
).
data
(
'
endpoint
'
);
$
.
ajax
({
$
.
ajax
({
...
@@ -10,6 +10,3 @@ function UsagePing() {
...
@@ -10,6 +10,3 @@ function UsagePing() {
},
},
});
});
}
}
window
.
gl
=
window
.
gl
||
{};
window
.
gl
.
UsagePing
=
UsagePing
;
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