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
0b932a7f
Commit
0b932a7f
authored
Apr 13, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add default exports to prevent rewire plugin from breaking vuex
parent
4d828eae
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
0 deletions
+24
-0
app/assets/javascripts/ide/stores/actions.js
app/assets/javascripts/ide/stores/actions.js
+3
-0
app/assets/javascripts/ide/stores/getters.js
app/assets/javascripts/ide/stores/getters.js
+3
-0
app/assets/javascripts/ide/stores/modules/commit/actions.js
app/assets/javascripts/ide/stores/modules/commit/actions.js
+3
-0
app/assets/javascripts/ide/stores/modules/commit/getters.js
app/assets/javascripts/ide/stores/modules/commit/getters.js
+3
-0
app/assets/javascripts/notes/stores/actions.js
app/assets/javascripts/notes/stores/actions.js
+3
-0
app/assets/javascripts/notes/stores/getters.js
app/assets/javascripts/notes/stores/getters.js
+3
-0
app/assets/javascripts/registry/stores/actions.js
app/assets/javascripts/registry/stores/actions.js
+3
-0
app/assets/javascripts/registry/stores/getters.js
app/assets/javascripts/registry/stores/getters.js
+3
-0
No files found.
app/assets/javascripts/ide/stores/actions.js
View file @
0b932a7f
...
@@ -141,3 +141,6 @@ export * from './actions/tree';
...
@@ -141,3 +141,6 @@ export * from './actions/tree';
export
*
from
'
./actions/file
'
;
export
*
from
'
./actions/file
'
;
export
*
from
'
./actions/project
'
;
export
*
from
'
./actions/project
'
;
export
*
from
'
./actions/merge_request
'
;
export
*
from
'
./actions/merge_request
'
;
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
app/assets/javascripts/ide/stores/getters.js
View file @
0b932a7f
...
@@ -43,3 +43,6 @@ export const collapseButtonTooltip = state =>
...
@@ -43,3 +43,6 @@ export const collapseButtonTooltip = state =>
export
const
hasMergeRequest
=
state
=>
!!
state
.
currentMergeRequestId
;
export
const
hasMergeRequest
=
state
=>
!!
state
.
currentMergeRequestId
;
export
const
getStagedFile
=
state
=>
path
=>
state
.
stagedFiles
.
find
(
f
=>
f
.
path
===
path
);
export
const
getStagedFile
=
state
=>
path
=>
state
.
stagedFiles
.
find
(
f
=>
f
.
path
===
path
);
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
app/assets/javascripts/ide/stores/modules/commit/actions.js
View file @
0b932a7f
...
@@ -185,3 +185,6 @@ export const commitChanges = ({ commit, state, getters, dispatch, rootState }) =
...
@@ -185,3 +185,6 @@ export const commitChanges = ({ commit, state, getters, dispatch, rootState }) =
commit
(
types
.
UPDATE_LOADING
,
false
);
commit
(
types
.
UPDATE_LOADING
,
false
);
});
});
};
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
app/assets/javascripts/ide/stores/modules/commit/getters.js
View file @
0b932a7f
...
@@ -27,3 +27,6 @@ export const branchName = (state, getters, rootState) => {
...
@@ -27,3 +27,6 @@ export const branchName = (state, getters, rootState) => {
return
rootState
.
currentBranchId
;
return
rootState
.
currentBranchId
;
};
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
app/assets/javascripts/notes/stores/actions.js
View file @
0b932a7f
...
@@ -315,3 +315,6 @@ export const scrollToNoteIfNeeded = (context, el) => {
...
@@ -315,3 +315,6 @@ export const scrollToNoteIfNeeded = (context, el) => {
scrollToElement
(
el
);
scrollToElement
(
el
);
}
}
};
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
app/assets/javascripts/notes/stores/getters.js
View file @
0b932a7f
...
@@ -68,3 +68,6 @@ export const resolvedDiscussionCount = (state, getters) => {
...
@@ -68,3 +68,6 @@ export const resolvedDiscussionCount = (state, getters) => {
return
Object
.
keys
(
resolvedMap
).
length
;
return
Object
.
keys
(
resolvedMap
).
length
;
};
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
app/assets/javascripts/registry/stores/actions.js
View file @
0b932a7f
...
@@ -35,3 +35,6 @@ export const deleteRegistry = ({ commit }, image) => Vue.http.delete(image.destr
...
@@ -35,3 +35,6 @@ export const deleteRegistry = ({ commit }, image) => Vue.http.delete(image.destr
export
const
setMainEndpoint
=
({
commit
},
data
)
=>
commit
(
types
.
SET_MAIN_ENDPOINT
,
data
);
export
const
setMainEndpoint
=
({
commit
},
data
)
=>
commit
(
types
.
SET_MAIN_ENDPOINT
,
data
);
export
const
toggleLoading
=
({
commit
})
=>
commit
(
types
.
TOGGLE_MAIN_LOADING
);
export
const
toggleLoading
=
({
commit
})
=>
commit
(
types
.
TOGGLE_MAIN_LOADING
);
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
app/assets/javascripts/registry/stores/getters.js
View file @
0b932a7f
export
const
isLoading
=
state
=>
state
.
isLoading
;
export
const
isLoading
=
state
=>
state
.
isLoading
;
export
const
repos
=
state
=>
state
.
repos
;
export
const
repos
=
state
=>
state
.
repos
;
// 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