generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 74 muc comment limit initials length (#81)
* 📝 new documentation for comment-text #74 * changed initial generator #74 * 🐛 fixed computedInitials #74 * 📝 updated documentation for commentText-component #74 * 🎨 formated #74 * 🚨 removed unused variable #74 * 📝 #74 * Update src/components/Comment/MucCommentText.stories.ts
- Loading branch information
Showing
11 changed files
with
109 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { create } from '@storybook/theming/create'; | ||
import { create } from "@storybook/theming/create"; | ||
|
||
export default create({ | ||
base: 'light', | ||
brandTitle: 'muc-patternlab-vue', | ||
brandUrl: 'https://github.com/it-at-m/muc-patternlab-vue', | ||
brandImage: './muc-patternlab-vue.png', | ||
brandTarget: '_blank', | ||
}); | ||
base: "light", | ||
brandTitle: "muc-patternlab-vue", | ||
brandUrl: "https://github.com/it-at-m/muc-patternlab-vue", | ||
brandImage: "./muc-patternlab-vue.png", | ||
brandTarget: "_blank", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<link rel="shortcut icon" href="/favicon.ico"> | ||
<link | ||
rel="shortcut icon" | ||
href="/favicon.ico" | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { addons } from '@storybook/manager-api'; | ||
import mucTheme from './MucTheme'; | ||
import { addons } from "@storybook/manager-api"; | ||
|
||
import mucTheme from "./MucTheme"; | ||
|
||
addons.setConfig({ | ||
theme: mucTheme, | ||
}); | ||
theme: mucTheme, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<template> | ||
<div class="container card-container"> | ||
<slot/> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import MucCommentText from "./MucCommentText.vue"; | ||
|
||
export default { | ||
component: MucCommentText, | ||
title: "Comment/MucCommentText", | ||
tags: ["autodocs"], | ||
parameters: { | ||
docs: { | ||
description: { | ||
component: `The muc-comment component can be used to display a comment in e.g. a chat. | ||
If you would like to display only text, we suggest using this component instead of the more generic \`muc-comment\`. | ||
Furthermore this component does limit the number of charactesr for the initials to two. | ||
[🔗 Patternlab-Docs](https://patternlab.muenchen.space/?p=viewall-elements-comment) | ||
`, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export const Default = { | ||
args: { | ||
rating: 4.2, | ||
author: "Max Foo Bar Mustermann", | ||
headline: "Initials shortend", | ||
text: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonum eirmod tempor invidunt ut", | ||
}, | ||
}; | ||
|
||
export const Slider = { | ||
args: { | ||
...Default.args, | ||
rating: 2.3, | ||
author: "", | ||
headline: "Empty Author", | ||
variant: "slider", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters