|
|
@ -1,9 +1,5 @@
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
chakra, Flex, Heading, HStack, Text, VStack, Menu,
|
|
|
|
Heading, HStack, Text, VStack,
|
|
|
|
MenuButton,
|
|
|
|
|
|
|
|
MenuList,
|
|
|
|
|
|
|
|
MenuItem,
|
|
|
|
|
|
|
|
IconButton,
|
|
|
|
|
|
|
|
Divider,
|
|
|
|
Divider,
|
|
|
|
Wrap,
|
|
|
|
Wrap,
|
|
|
|
Image,
|
|
|
|
Image,
|
|
|
@ -16,15 +12,12 @@ import {
|
|
|
|
import { HomeSidebar } from 'pages/index'
|
|
|
|
import { HomeSidebar } from 'pages/index'
|
|
|
|
import Card from "components/card"
|
|
|
|
import Card from "components/card"
|
|
|
|
import { config } from "configs/config"
|
|
|
|
import { config } from "configs/config"
|
|
|
|
import { getSvgIcon } from "components/svg-icon"
|
|
|
|
|
|
|
|
import { Tag } from "src/types/tag"
|
|
|
|
import { Tag } from "src/types/tag"
|
|
|
|
import { requestApi } from "utils/axios/request"
|
|
|
|
import { requestApi } from "utils/axios/request"
|
|
|
|
import TagCard from 'src/components/tags/tag-card'
|
|
|
|
|
|
|
|
import { Story } from "src/types/story"
|
|
|
|
import { Story } from "src/types/story"
|
|
|
|
import Stories from "components/story/stories"
|
|
|
|
|
|
|
|
import { find } from "lodash"
|
|
|
|
import { find } from "lodash"
|
|
|
|
import userCustomTheme from "theme/user-custom"
|
|
|
|
|
|
|
|
import Empty from "components/empty"
|
|
|
|
import Empty from "components/empty"
|
|
|
|
|
|
|
|
import StoryCard from "components/story/story-card"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -107,7 +100,9 @@ import Empty from "components/empty"
|
|
|
|
{tags.length > 0&& <Divider mt="3" mb="5" />}
|
|
|
|
{tags.length > 0&& <Divider mt="3" mb="5" />}
|
|
|
|
{posts.length !== 0
|
|
|
|
{posts.length !== 0
|
|
|
|
?
|
|
|
|
?
|
|
|
|
<Stories stories={posts} showFooter={false}/>
|
|
|
|
<VStack alignItems="left">
|
|
|
|
|
|
|
|
{posts.map(p => <StoryCard story={p}/>)}
|
|
|
|
|
|
|
|
</VStack>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<Empty />
|
|
|
|
<Empty />
|
|
|
|
}
|
|
|
|
}
|
|
|
|