-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* app list ui * feat: photo view * perf: app dataset filter * perf: app dataset filter * fix: chat recently apps * perf: workflow header phone * default templates * default templates * fix: input guide phone * fix: i18n * team chat history * remove code * perf: mongo connection * log level
- Loading branch information
Showing
31 changed files
with
8,463 additions
and
10,689 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
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
4 changes: 2 additions & 2 deletions
4
packages/web/components/common/Icon/icons/core/chat/fileSelect.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
import React from 'react'; | ||
import { PhotoProvider, PhotoView } from 'react-photo-view'; | ||
import 'react-photo-view/dist/react-photo-view.css'; | ||
import { Box, Image, ImageProps } from '@chakra-ui/react'; | ||
import { useSystem } from '../../../hooks/useSystem'; | ||
import Loading from '../MyLoading'; | ||
|
||
const MyPhotoView = (props: ImageProps) => { | ||
const { isPc } = useSystem(); | ||
return ( | ||
<PhotoProvider | ||
maskOpacity={0.6} | ||
bannerVisible={!isPc} | ||
photoClosable | ||
loadingElement={<Loading fixed={false} />} | ||
> | ||
<PhotoView src={props.src}> | ||
<Image cursor={'pointer'} {...props} /> | ||
</PhotoView> | ||
</PhotoProvider> | ||
); | ||
}; | ||
|
||
export default MyPhotoView; |
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
Oops, something went wrong.