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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
69021457
Commit
69021457
authored
Jul 27, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve camelcase violations
parent
c4fae77e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
app/assets/javascripts/users/activity_calendar.js
app/assets/javascripts/users/activity_calendar.js
+6
-9
No files found.
app/assets/javascripts/users/activity_calendar.js
View file @
69021457
/* eslint-disable no-var,
camelcase,
vars-on-top, object-shorthand, comma-dangle, eqeqeq, no-mixed-operators, no-return-assign, newline-per-chained-call, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, prefer-template, quotes, no-unused-vars, no-else-return, max-len, class-methods-use-this */
/* eslint-disable no-var, vars-on-top, object-shorthand, comma-dangle, eqeqeq, no-mixed-operators, no-return-assign, newline-per-chained-call, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, prefer-template, quotes, no-unused-vars, no-else-return, max-len, class-methods-use-this */
import
d3
from
'
d3
'
;
...
...
@@ -9,8 +9,8 @@ const LOADING_HTML = `
`
;
export
default
class
ActivityCalendar
{
constructor
(
timestamps
,
calendar
_activities_p
ath
)
{
this
.
calendar
_activities_path
=
calendar_activities_p
ath
;
constructor
(
timestamps
,
calendar
ActivitiesP
ath
)
{
this
.
calendar
ActivitiesPath
=
calendarActivitiesP
ath
;
this
.
clickDay
=
this
.
clickDay
.
bind
(
this
);
this
.
currentSelectedDate
=
''
;
this
.
daySpace
=
1
;
...
...
@@ -209,15 +209,12 @@ export default class ActivityCalendar {
}
clickDay
(
stamp
)
{
var
formatted_date
;
if
(
this
.
currentSelectedDate
!==
stamp
.
date
)
{
this
.
currentSelectedDate
=
stamp
.
date
;
formatted_
date
=
this
.
currentSelectedDate
.
getFullYear
()
+
"
-
"
+
(
this
.
currentSelectedDate
.
getMonth
()
+
1
)
+
"
-
"
+
this
.
currentSelectedDate
.
getDate
();
const
date
=
this
.
currentSelectedDate
.
getFullYear
()
+
"
-
"
+
(
this
.
currentSelectedDate
.
getMonth
()
+
1
)
+
"
-
"
+
this
.
currentSelectedDate
.
getDate
();
return
$
.
ajax
({
url
:
this
.
calendar_activities_path
,
data
:
{
date
:
formatted_date
},
url
:
this
.
calendarActivitiesPath
,
data
:
{
date
},
cache
:
false
,
dataType
:
'
html
'
,
beforeSend
:
()
=>
$
(
'
.user-calendar-activities
'
).
html
(
LOADING_HTML
),
...
...
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