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
06358164
Commit
06358164
authored
Jan 07, 2022
by
Jannik Lehmann
Committed by
Savas Vedova
Jan 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Storybook stories for shared survey Banner
parent
e099eb51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
ee/app/assets/javascripts/vue_shared/survey_banner/survey_banner.stories.js
...scripts/vue_shared/survey_banner/survey_banner.stories.js
+27
-0
No files found.
ee/app/assets/javascripts/vue_shared/survey_banner/survey_banner.stories.js
0 → 100644
View file @
06358164
/* eslint-disable @gitlab/require-i18n-strings */
import
SurveyBanner
from
'
./survey_banner.vue
'
;
export
default
{
component
:
SurveyBanner
,
title
:
'
vue_shared/components/survey_banner
'
,
};
const
Template
=
(
args
,
{
argTypes
})
=>
({
components
:
{
SurveyBanner
},
props
:
Object
.
keys
(
argTypes
),
template
:
'
<survey-banner v-bind="$props" />
'
,
});
export
const
Default
=
Template
.
bind
({});
Default
.
args
=
{
surveyLink
:
'
testlink.test
'
,
daysToAskLater
:
7
,
title
:
'
Shared Survey Banner Test Title
'
,
buttonText
:
'
Shared Survey Banner Button Text
'
,
description
:
'
Shared Survey Banner Test Description
'
,
toastMessage
:
'
Shared Survey Banner Test ToastMessage
'
,
storageKey
:
'
testStorageKey
'
,
bannerId
:
'
testbannerID
'
,
svgPath
:
'
https://gitlab-org.gitlab.io/gitlab-svgs/dist/illustrations/monitoring/tracing.svg
'
,
};
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