Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/usage_quotas/components/sectioned_percentage_bar.stories.js')
-rw-r--r--app/assets/javascripts/usage_quotas/components/sectioned_percentage_bar.stories.js46
1 files changed, 46 insertions, 0 deletions
diff --git a/app/assets/javascripts/usage_quotas/components/sectioned_percentage_bar.stories.js b/app/assets/javascripts/usage_quotas/components/sectioned_percentage_bar.stories.js
new file mode 100644
index 00000000000..a572d5af31b
--- /dev/null
+++ b/app/assets/javascripts/usage_quotas/components/sectioned_percentage_bar.stories.js
@@ -0,0 +1,46 @@
+import SectionedPercentageBar from './sectioned_percentage_bar.vue';
+
+export default {
+ component: SectionedPercentageBar,
+ title: 'usage_quotas/sectioned_percentage_bar',
+};
+
+const Template = (args, { argTypes }) => ({
+ components: { SectionedPercentageBar },
+ props: Object.keys(argTypes),
+ template: '<sectioned-percentage-bar :sections="sections" />',
+});
+
+export const Default = Template.bind({});
+Default.args = {
+ sections: [
+ {
+ id: 'artifacts',
+ label: 'Artifacts',
+ value: 2000,
+ formattedValue: '1.95 KiB',
+ cssClasses: 'gl-bg-data-viz-blue-500',
+ },
+ {
+ id: 'repository',
+ label: 'Repository',
+ value: 4000,
+ formattedValue: '3.90 KiB',
+ cssClasses: 'gl-bg-data-viz-orange-500',
+ },
+ {
+ id: 'packages',
+ label: 'Packages',
+ value: 3000,
+ formattedValue: '2.93 KiB',
+ cssClasses: 'gl-bg-data-viz-aqua-500',
+ },
+ {
+ id: 'registry',
+ label: 'Registry',
+ value: 5000,
+ formattedValue: '4.88 KiB',
+ cssClasses: 'gl-bg-data-viz-green-500',
+ },
+ ],
+};