diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-12-03 13:05:15 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-12-03 13:05:15 +0100 |
commit | 34da06762e81f85c5df29fdec66e2055b8b930a9 (patch) | |
tree | 490af00a9973732ebe7c3455f638d3faaf54bc9e | |
parent | 65ff7d9f2daa59e44f0cdb1aae8d7cbcd9d4603f (diff) | |
download | puszcza-34da06762e81f85c5df29fdec66e2055b8b930a9.tar.gz puszcza-34da06762e81f85c5df29fdec66e2055b8b930a9.zip |
Add missing stories
-rw-r--r-- | components/Buttons/PlainButton.stories.js | 2 | ||||
-rw-r--r-- | components/Facebook/FacebookFeed.stories.js | 2 | ||||
-rw-r--r-- | components/Facebook/FacebookFindUsButton.stories.js | 2 | ||||
-rw-r--r-- | components/Posts/PostLink.stories.js (renamed from components/PostLink.stories.js) | 4 | ||||
-rw-r--r-- | components/Posts/PostLink.vue (renamed from components/PostLink.vue) | 0 | ||||
-rw-r--r-- | components/Posts/PostList/PostList.vue (renamed from components/PostList/PostList.vue) | 0 | ||||
-rw-r--r-- | components/Posts/PostList/PurePostList.stories.js (renamed from components/PostList/PurePostList.stories.js) | 2 | ||||
-rw-r--r-- | components/Posts/PostList/PurePostList.vue (renamed from components/PostList/PurePostList.vue) | 0 | ||||
-rw-r--r-- | components/Posts/PostList/index.js (renamed from components/PostList/index.js) | 0 | ||||
-rw-r--r-- | components/Ranking/RankingEntry.stories.js | 19 | ||||
-rw-r--r-- | components/Ranking/RankingFirstEntry.stories.js | 16 | ||||
-rw-r--r-- | components/Ranking/RankingList.stories.js | 20 | ||||
-rw-r--r-- | pages/index.vue | 4 | ||||
-rw-r--r-- | pages/kronika/index.vue | 2 |
14 files changed, 64 insertions, 9 deletions
diff --git a/components/Buttons/PlainButton.stories.js b/components/Buttons/PlainButton.stories.js index 67a657d..43efa24 100644 --- a/components/Buttons/PlainButton.stories.js +++ b/components/Buttons/PlainButton.stories.js @@ -7,7 +7,7 @@ const plainButton = { text: 'Plain Button' } -storiesOf('PlainButton', module) +storiesOf('Buttons/PlainButton', module) .addDecorator(center) .add('default', () => { return { diff --git a/components/Facebook/FacebookFeed.stories.js b/components/Facebook/FacebookFeed.stories.js index 4eced7f..d9ec30a 100644 --- a/components/Facebook/FacebookFeed.stories.js +++ b/components/Facebook/FacebookFeed.stories.js @@ -3,7 +3,7 @@ import { center } from '../../.storybook/decorators' import FacebookFeed from './FacebookFeed' -storiesOf('FacebookFeed', module) +storiesOf('Facebook/FacebookFeed', module) .addDecorator(center) .add('default', () => { return { diff --git a/components/Facebook/FacebookFindUsButton.stories.js b/components/Facebook/FacebookFindUsButton.stories.js index e76f8f9..e6a298b 100644 --- a/components/Facebook/FacebookFindUsButton.stories.js +++ b/components/Facebook/FacebookFindUsButton.stories.js @@ -3,7 +3,7 @@ import { center } from '../../.storybook/decorators' import FacebookFindUsButton from './FacebookFindUsButton' -storiesOf('FacebookFindUsButton', module) +storiesOf('Facebook/FacebookFindUsButton', module) .addDecorator(center) .add('default', () => { return { diff --git a/components/PostLink.stories.js b/components/Posts/PostLink.stories.js index a824b35..9b12c29 100644 --- a/components/PostLink.stories.js +++ b/components/Posts/PostLink.stories.js @@ -1,5 +1,5 @@ import { storiesOf } from '@storybook/vue' -import { center } from '../.storybook/decorators' +import { center } from '../../.storybook/decorators' import PostLink from './PostLink' @@ -10,7 +10,7 @@ export const postLink = { route: '/kronika/2019/20/11/test' } -storiesOf('PostLink', module) +storiesOf('Posts/PostLink', module) .addDecorator(center) .add('default', () => { return { diff --git a/components/PostLink.vue b/components/Posts/PostLink.vue index 54cd934..54cd934 100644 --- a/components/PostLink.vue +++ b/components/Posts/PostLink.vue diff --git a/components/PostList/PostList.vue b/components/Posts/PostList/PostList.vue index 781099f..781099f 100644 --- a/components/PostList/PostList.vue +++ b/components/Posts/PostList/PostList.vue diff --git a/components/PostList/PurePostList.stories.js b/components/Posts/PostList/PurePostList.stories.js index 3cb07f8..e2c39de 100644 --- a/components/PostList/PurePostList.stories.js +++ b/components/Posts/PostList/PurePostList.stories.js @@ -6,7 +6,7 @@ import PurePostList from './PurePostList' export const posts = Array(5).fill(postLink) -storiesOf('PurePostList', module) +storiesOf('Posts/PurePostList', module) .add('default', () => { return { components: { PurePostList }, diff --git a/components/PostList/PurePostList.vue b/components/Posts/PostList/PurePostList.vue index ace069f..ace069f 100644 --- a/components/PostList/PurePostList.vue +++ b/components/Posts/PostList/PurePostList.vue diff --git a/components/PostList/index.js b/components/Posts/PostList/index.js index dbb515e..dbb515e 100644 --- a/components/PostList/index.js +++ b/components/Posts/PostList/index.js diff --git a/components/Ranking/RankingEntry.stories.js b/components/Ranking/RankingEntry.stories.js new file mode 100644 index 0000000..20bf6e1 --- /dev/null +++ b/components/Ranking/RankingEntry.stories.js @@ -0,0 +1,19 @@ +import { storiesOf } from '@storybook/vue' +import { center } from '../../.storybook/decorators' + +import RankingEntry from './RankingEntry' + +export const rankingEntry = { + troop: 'Test', + points: 32 +} + +storiesOf('Ranking/RankingEntry', module) + .addDecorator(center) + .add('default', () => { + return { + components: { RankingEntry }, + template: `<ranking-entry :troop="troop" :points="points" />`, + data: () => rankingEntry + } + }) diff --git a/components/Ranking/RankingFirstEntry.stories.js b/components/Ranking/RankingFirstEntry.stories.js new file mode 100644 index 0000000..05fa517 --- /dev/null +++ b/components/Ranking/RankingFirstEntry.stories.js @@ -0,0 +1,16 @@ +import { storiesOf } from '@storybook/vue' +import { center } from '../../.storybook/decorators' + +import RankingFirstEntry from './RankingFirstEntry' + +import { rankingEntry } from './RankingEntry.stories' + +storiesOf('Ranking/RankingFirstEntry', module) + .addDecorator(center) + .add('default', () => { + return { + components: { RankingFirstEntry }, + template: `<ranking-first-entry :troop="troop" :points="points" />`, + data: () => rankingEntry + } + }) diff --git a/components/Ranking/RankingList.stories.js b/components/Ranking/RankingList.stories.js new file mode 100644 index 0000000..c7b287d --- /dev/null +++ b/components/Ranking/RankingList.stories.js @@ -0,0 +1,20 @@ +import { storiesOf } from '@storybook/vue' +import { center } from '../../.storybook/decorators' + +import RankingList from './RankingList' + +import { rankingEntry } from './RankingEntry.stories' + +const rankingList = { + scores: Array(3).fill(rankingEntry) +} + +storiesOf('Ranking/RankingList', module) + .addDecorator(center) + .add('default', () => { + return { + components: { RankingList }, + template: `<ranking-list :scores="scores" />`, + data: () => rankingList + } + }) diff --git a/pages/index.vue b/pages/index.vue index 12caa0c..3a19237 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -12,10 +12,10 @@ <script> import JoinUs from '~/components/JoinUs.vue' import FacebookFeed from '~/components/Facebook/FacebookFeed.vue' -import PostList from '~/components/PostList' +import PostList from '~/components/Posts/PostList' export default { name: 'HomeView', components: { JoinUs, FacebookFeed, PostList } } -</script> \ No newline at end of file +</script> diff --git a/pages/kronika/index.vue b/pages/kronika/index.vue index b478a75..86344c3 100644 --- a/pages/kronika/index.vue +++ b/pages/kronika/index.vue @@ -6,7 +6,7 @@ </template> <script> -import PostList from '~/components/PostList' +import PostList from '~/components/Posts/PostList' export default { components: { |