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
5cf98bcc
Commit
5cf98bcc
authored
Dec 10, 2019
by
Martin Wortschack
Committed by
Kushal Pandya
Dec 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove empty default export
- Removes empty default export from actions and getters
parent
43c10403
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
18 deletions
+3
-18
ee/app/assets/javascripts/analytics/productivity_analytics/store/actions.js
...scripts/analytics/productivity_analytics/store/actions.js
+1
-3
ee/app/assets/javascripts/analytics/productivity_analytics/store/getters.js
...scripts/analytics/productivity_analytics/store/getters.js
+1
-3
ee/app/assets/javascripts/analytics/productivity_analytics/store/modules/charts/actions.js
...cs/productivity_analytics/store/modules/charts/actions.js
+0
-3
ee/app/assets/javascripts/analytics/productivity_analytics/store/modules/charts/getters.js
...cs/productivity_analytics/store/modules/charts/getters.js
+0
-3
ee/app/assets/javascripts/analytics/productivity_analytics/store/modules/filters/actions.js
...s/productivity_analytics/store/modules/filters/actions.js
+0
-3
ee/app/assets/javascripts/analytics/productivity_analytics/store/modules/filters/getters.js
...s/productivity_analytics/store/modules/filters/getters.js
+1
-3
No files found.
ee/app/assets/javascripts/analytics/productivity_analytics/store/actions.js
View file @
5cf98bcc
import
SET_ENDPOINT
from
'
./mutation_types
'
;
// eslint-disable-next-line import/prefer-default-export
export
const
setEndpoint
=
({
commit
},
endpoint
)
=>
commit
(
SET_ENDPOINT
,
endpoint
);
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
ee/app/assets/javascripts/analytics/productivity_analytics/store/getters.js
View file @
5cf98bcc
// eslint-disable-next-line import/prefer-default-export
export
const
getMetricTypes
=
state
=>
chartKey
=>
state
.
metricTypes
.
filter
(
m
=>
m
.
charts
.
indexOf
(
chartKey
)
!==
-
1
);
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
ee/app/assets/javascripts/analytics/productivity_analytics/store/modules/charts/actions.js
View file @
5cf98bcc
...
...
@@ -90,6 +90,3 @@ export const resetMainChartSelection = ({ commit, dispatch }, skipReload = false
export
const
setChartEnabled
=
({
commit
},
{
chartKey
,
isEnabled
})
=>
commit
(
types
.
SET_CHART_ENABLED
,
{
chartKey
,
isEnabled
});
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
ee/app/assets/javascripts/analytics/productivity_analytics/store/modules/charts/getters.js
View file @
5cf98bcc
...
...
@@ -154,6 +154,3 @@ export const hasNoAccessError = state =>
export
const
isChartEnabled
=
state
=>
chartKey
=>
state
.
charts
[
chartKey
].
enabled
;
export
const
isFilteringByDaysToMerge
=
state
=>
state
.
charts
[
chartKeys
.
main
].
selected
.
length
>
0
;
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
ee/app/assets/javascripts/analytics/productivity_analytics/store/modules/filters/actions.js
View file @
5cf98bcc
...
...
@@ -61,6 +61,3 @@ export const setDateRange = ({ commit, dispatch }, { skipFetch = false, startDat
dispatch
(
'
table/setPage
'
,
0
,
{
root
:
true
});
});
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
ee/app/assets/javascripts/analytics/productivity_analytics/store/modules/filters/getters.js
View file @
5cf98bcc
...
...
@@ -19,6 +19,7 @@ import { dateFormats } from '../../../../shared/constants';
* }
*
*/
// eslint-disable-next-line import/prefer-default-export
export
const
getCommonFilterParams
=
state
=>
chartKey
=>
{
const
{
groupNamespace
,
...
...
@@ -46,6 +47,3 @@ export const getCommonFilterParams = state => chartKey => {
merged_at_before
:
`
${
dateFormat
(
endDate
,
dateFormats
.
isoDate
)}${
endOfDayTime
}
`
,
};
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
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