BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
9a9f758d
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
21 deletions
+9
-21
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
({
propsData
:
props
,
}).
$mount
(
el
);
export
const
createComponentWithStore
=
(
Component
,
store
,
propsData
=
{})
=>
new
Component
({
store
,
propsData
,
});
const
mountComponent
=
(
Component
,
props
=
{},
el
=
null
)
=>
new
Component
({
propsData
:
props
,
}).
$mount
(
el
);
export
const
createComponentWithMixin
=
(
mixins
=
[],
state
=
{},
props
=
{},
template
=
'<div></div>'
)
=>
{
const
Component
=
Vue
.
extend
({
template
,
mixins
,
data
()
{
return
props
;
},
export
const
createComponentWithStore
=
(
Component
,
store
,
propsData
=
{})
=>
new
Component
({
store
,
propsData
,
});
return
mountComponent
(
Component
,
props
);
};
export
const
mountComponentWithStore
=
(
Component
,
{
el
,
props
,
store
})
=>
new
Component
({
store
,
propsData
:
props
||
{
},
propsData
:
props
||
{},
}).
$mount
(
el
);
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