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
Boxiang Sun
gitlab-ce
Commits
9a9f758d
Commit
9a9f758d
authored
May 28, 2018
by
Lukas Eipert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused createComponentWithMixin from vue spec helpers
parent
99c4e46d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
21 deletions
+9
-21
spec/javascripts/helpers/vue_mount_component_helper.js
spec/javascripts/helpers/vue_mount_component_helper.js
+9
-21
No files found.
spec/javascripts/helpers/vue_mount_component_helper.js
View file @
9a9f758d
import
Vue
from
'
vue
'
;
const
mountComponent
=
(
Component
,
props
=
{},
el
=
null
)
=>
new
Component
({
const
mountComponent
=
(
Component
,
props
=
{},
el
=
null
)
=>
new
Component
({
propsData
:
props
,
propsData
:
props
,
}).
$mount
(
el
);
}).
$mount
(
el
);
export
const
createComponentWithStore
=
(
Component
,
store
,
propsData
=
{})
=>
new
Component
({
store
,
propsData
,
});
export
const
createComponentWithMixin
=
(
mixins
=
[],
state
=
{},
props
=
{},
template
=
'
<div></div>
'
)
=>
{
export
const
createComponentWithStore
=
(
Component
,
store
,
propsData
=
{})
=>
const
Component
=
Vue
.
extend
({
new
Component
({
template
,
store
,
mixins
,
propsData
,
data
()
{
return
props
;
},
});
});
return
mountComponent
(
Component
,
props
);
};
export
const
mountComponentWithStore
=
(
Component
,
{
el
,
props
,
store
})
=>
export
const
mountComponentWithStore
=
(
Component
,
{
el
,
props
,
store
})
=>
new
Component
({
new
Component
({
store
,
store
,
propsData
:
props
||
{
},
propsData
:
props
||
{},
}).
$mount
(
el
);
}).
$mount
(
el
);
export
default
mountComponent
;
export
default
mountComponent
;
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