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
b25f8c3c
Commit
b25f8c3c
authored
Sep 20, 2021
by
Fall1ngStar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create story for project_list_item component
parent
14c07dd9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
app/assets/javascripts/vue_shared/components/project_selector/project_list_item.stories.js
.../components/project_selector/project_list_item.stories.js
+34
-0
No files found.
app/assets/javascripts/vue_shared/components/project_selector/project_list_item.stories.js
0 → 100644
View file @
b25f8c3c
import
ProjectListItem
from
'
./project_list_item.vue
'
;
export
default
{
component
:
ProjectListItem
,
title
:
'
vue_shared/components/project_selector/project_list_item
'
,
};
const
Template
=
(
args
,
{
argTypes
})
=>
({
components
:
{
ProjectListItem
},
props
:
Object
.
keys
(
argTypes
),
template
:
'
<project-list-item v-bind="$props" />
'
,
});
export
const
Default
=
Template
.
bind
({});
Default
.
args
=
{
project
:
{
id
:
'
1
'
,
name
:
'
MyProject
'
,
name_with_namespace
:
'
path / to / MyProject
'
,
},
selected
:
false
,
};
export
const
SelectedProject
=
Template
.
bind
({});
SelectedProject
.
args
=
{
...
Default
.
args
,
selected
:
true
,
};
export
const
MatchedProject
=
Template
.
bind
({});
MatchedProject
.
args
=
{
...
Default
.
args
,
matcher
:
'
proj
'
,
};
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