Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
refactor(yt:backend): moved metadata arbs info yt:shared package
Browse files Browse the repository at this point in the history
  • Loading branch information
ascariandrea committed Oct 13, 2022
1 parent 8c7ed5f commit db369be
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 382 deletions.
2 changes: 1 addition & 1 deletion packages/taboule/src/components/expand-view/ExpandView.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import './ExpandView.css';
import { getYTVideoURLById } from '@shared/utils/yt.utils';
import { ParsedInfo } from '@yttrex/shared/src/models/Metadata';
import { ParsedInfo } from '@yttrex/shared/models/Metadata';
import CloseIcon from '@mui/icons-material/Close';
import ytThumbnail from './../../assets/ytthumb.png';

Expand Down
336 changes: 0 additions & 336 deletions platforms/storybook/src/mocks/index.tsx

This file was deleted.

11 changes: 8 additions & 3 deletions platforms/storybook/src/stories/ExpandView.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { ComponentMeta, ComponentStory } from '@storybook/react';
import ExpandView from '@taboule/components/expand-view/ExpandView';
import { mockedExpandableData } from '../mocks/index';
import { ParsedInfoArb } from '@yttrex/shared/arbitraries/Metadata.arb';
import * as fc from 'fast-check';

const Meta: ComponentMeta<typeof ExpandView> = {
title: 'Example/ExpandView',
Expand All @@ -17,5 +18,9 @@ const Template: ComponentStory<typeof ExpandView> = (args) => {
export const Basic = Template.bind({});
Basic.args = {
isVisible: true,
data: mockedExpandableData,
data: fc.sample(ParsedInfoArb, 4).map((r, i) => ({
...r,
order: i,
thumbnailHref: `http://placekitten.com/600/${i}00`,
})),
};
13 changes: 12 additions & 1 deletion platforms/storybook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,23 @@
"isolatedModules": true,
"paths": {
"@shared/*": ["../../../packages/shared/src/*"],
"@taboule/*": ["../../../packages/taboule/src/*"]
"@taboule/*": ["../../../packages/taboule/src/*"],
"@yttrex/shared/*": ["../../yttrex/shared/src/*"],
"@tktrex/shared/*": ["../../tktrex/shared/src/*"]
}
},
"references": [
{
"path": "../../packages/shared"
},
{
"path": "../../packages/taboule"
},
{
"path": "../yttrex/shared"
},
{
"path": "../tktrex/shared"
}
],
"include": ["./src", "./typings"],
Expand Down
Loading

0 comments on commit db369be

Please sign in to comment.