-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5075a91
commit fe88996
Showing
176 changed files
with
676 additions
and
6,123 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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 |
---|---|---|
|
@@ -2,40 +2,15 @@ import {BearSlideCard, TBearSlideItemDataList } from "bear-react-carousel"; | |
import {asset} from '../utils'; | ||
import {generatorArray} from "@acrool/js-utils/array"; | ||
|
||
export const racingImages = [ | ||
{id: 1, name: 'Strawberry', imageUrl: asset('/sample/food/01.jpg')}, | ||
{id: 2, name: 'Honey Cranberry Pie', imageUrl: asset('/sample/food/02.jpg')}, | ||
{id: 3, name: 'Tomato noodles', imageUrl: asset('/sample/food/03.jpg')}, | ||
]; | ||
|
||
|
||
|
||
|
||
export const baseImage = generatorArray(14, 'cat').map((key, idx) => { | ||
return { | ||
id: key, | ||
imageUrl: asset(`/sample/${idx + 1}.jpg`) | ||
imageUrl: asset(`/images/sample/${idx + 1}.jpg`) | ||
}; | ||
}); | ||
|
||
|
||
export const catImages = [ | ||
{id: 1, imageUrl: asset('/sample/cat/01.jpg')}, | ||
{id: 2, imageUrl: asset('/sample/cat/02.jpg')}, | ||
{id: 3, imageUrl: asset('/sample/cat/03.jpg')}, | ||
{id: 4, imageUrl: asset('/sample/cat/04.jpg')}, | ||
{id: 5, imageUrl: asset('/sample/cat/05.jpg')}, | ||
]; | ||
|
||
|
||
export const preViewImage = [ | ||
{id: 1, name: 'CleanShot 2022-10-20 at [email protected]', size: '256.21KB', createdAt: '2022-10-20 12:00:00', imageUrl: 'https://image.kr8851.com/uploads/product-goods/2022/10/26/3910809/8.jpg?v=1026215633'}, | ||
{id: 2, name: 'CleanShot 2022-10-22 at [email protected]', size: '10.21KB', createdAt: '2022-10-22 23:00:10', imageUrl: asset('/sample/cat/02.jpg')}, | ||
{id: 3, name: 'CleanShot 2022-10-23 at [email protected]', size: '26.01KB', createdAt: '2022-10-23 11:00:30', imageUrl: asset('/sample/cat/03.jpg')}, | ||
{id: 4, name: 'CleanShot 2022-10-24 at [email protected]', size: '226.21KB', createdAt: '2022-10-24 22:33:00', imageUrl: asset('/sample/cat/04.jpg')}, | ||
{id: 5, name: 'CleanShot 2022-10-26 at [email protected]', size: '2MB', createdAt: '2022-10-26 08:12:20', imageUrl: asset('/sample/cat/05.jpg')}, | ||
]; | ||
|
||
|
||
export interface IFoodImage { | ||
id: number, | ||
|
@@ -73,36 +48,6 @@ export const foodImages: IFoodImage[] = [ | |
]; | ||
|
||
|
||
export const diffImages = [ | ||
{id: 1, imageUrl: asset('/sample/cat/vertical-01.jpg')}, | ||
{id: 2, imageUrl: asset('/sample/cat/01.jpg')}, | ||
{id: 3, imageUrl: asset('/sample/cat/02.jpg')}, | ||
{id: 4, imageUrl: asset('/sample/cat/vertical-02.jpg')}, | ||
{id: 5, imageUrl: asset('/sample/cat/03.jpg')}, | ||
{id: 6, imageUrl: asset('/sample/cat/vertical-03.jpg')}, | ||
{id: 7, imageUrl: asset('/sample/cat/04.jpg')}, | ||
{id: 8, imageUrl: asset('/sample/cat/vertical-04.jpg')}, | ||
{id: 9, imageUrl: asset('/sample/cat/05.jpg')}, | ||
]; | ||
|
||
|
||
|
||
export interface ICarImage { | ||
id: number | ||
imageUrl: string | ||
} | ||
|
||
|
||
export const carImages: ICarImage[] = [ | ||
{id: 1, imageUrl: asset('/sample/racing/01.webp')}, | ||
{id: 2, imageUrl: asset('/sample/racing/02.webp')}, | ||
{id: 3, imageUrl: asset('/sample/racing/03.webp')}, | ||
{id: 4, imageUrl: asset('/sample/racing/04.webp')}, | ||
{id: 5, imageUrl: asset('/sample/racing/05.webp')}, | ||
{id: 6, imageUrl: asset('/sample/racing/06.webp')}, | ||
]; | ||
|
||
|
||
|
||
|
||
|
||
|
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,40 @@ | ||
import type {Meta, StoryObj} from '@storybook/react'; | ||
import Effect from "./Effect"; | ||
import Effect2 from "./Effect2"; | ||
|
||
|
||
const meta = { | ||
title: 'Examples/Effect', | ||
component: Effect, | ||
parameters: { | ||
layout: 'centered', | ||
actions: {argTypesRegex: '^on.*'}, | ||
docs: { | ||
description: { | ||
component: 'Carousel item component' | ||
}, | ||
}, | ||
}, | ||
argTypes: {}, | ||
args: {}, | ||
} satisfies Meta<typeof Effect>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
|
||
|
||
|
||
export const Primary: Story = { | ||
args: { | ||
} | ||
}; | ||
|
||
|
||
|
||
export const case2: Story = { | ||
args: {}, | ||
render: function Render(args) { | ||
return <Effect2/>; | ||
}, | ||
}; |
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
30 changes: 30 additions & 0 deletions
30
example/src/components/examples/JuejinVip/JuejinVip.stories.tsx
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,30 @@ | ||
import type {Meta, StoryObj} from '@storybook/react'; | ||
import JuejinVip from "./JuejinVip"; | ||
|
||
|
||
const meta = { | ||
title: 'Examples/JuejinVip', | ||
component: JuejinVip, | ||
parameters: { | ||
layout: 'centered', | ||
actions: {argTypesRegex: '^on.*'}, | ||
docs: { | ||
description: { | ||
component: 'Carousel item component' | ||
}, | ||
}, | ||
}, | ||
argTypes: {}, | ||
args: {}, | ||
} satisfies Meta<typeof JuejinVip>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
|
||
|
||
|
||
export const Primary: Story = { | ||
args: { | ||
} | ||
}; |
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
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
...nize/JuejinVip/_components/NavWrapper.tsx → ...ples/JuejinVip/_components/NavWrapper.tsx
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
2 changes: 1 addition & 1 deletion
2
.../organize/JuejinVip/_components/Phone.tsx → .../examples/JuejinVip/_components/Phone.tsx
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
File renamed without changes.
File renamed without changes.
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,31 @@ | ||
import type {Meta, StoryObj} from '@storybook/react'; | ||
import Modal from "./Modal"; | ||
|
||
|
||
const meta = { | ||
title: 'Examples/Modal', | ||
component: Modal, | ||
parameters: { | ||
layout: 'centered', | ||
actions: {argTypesRegex: '^on.*'}, | ||
docs: { | ||
description: { | ||
component: 'Carousel item component' | ||
}, | ||
}, | ||
}, | ||
argTypes: {}, | ||
args: {}, | ||
} satisfies Meta<typeof Modal>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
|
||
|
||
|
||
export const Primary: Story = { | ||
args: { | ||
} | ||
}; | ||
|
Oops, something went wrong.