-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(CI): use new cloudflare page action * feat(env): use env load base url * feat: update dependencies and refactor components - Added @hello-pangea/dnd for drag-and-drop functionality. - Updated TypeScript definitions for React and React DOM to version 19. - Refactored Container component to improve class name handling. - Introduced LoadError component for better error handling in data loading scenarios. - Removed OrganizationEditor component as part of the reorganization of components. - Enhanced UploadImage component with additional features and improved user experience. - Updated EventEditor and OrganizationEditor components to utilize new error handling and UI improvements. - Adjusted various components to ensure consistent styling and functionality.
- Loading branch information
Showing
15 changed files
with
643 additions
and
855 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
FEC_API_TOKEN= | ||
PUBLIC_API_URL= |
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
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,23 @@ | ||
import DefaultContainer from '@/components/Container'; | ||
import { Container, Title, Text, Group, Button } from '@mantine/core'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
export default function LoadError() { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<DefaultContainer className="shadow sticky top-0 z-10"> | ||
<Container className="flex flex-col items-center justify-center"> | ||
<Title className="text-slate-700">发生了错误...</Title> | ||
<Text c="dimmed" size="lg" ta="center"> | ||
加载数据时发生了错误,最大的可能是这个数据不存在,如果持续遇到这个问题,请把地址报告给开发者。 | ||
</Text> | ||
<Group justify="center"> | ||
<Button variant="subtle" size="md" onClick={() => navigate(-1)}> | ||
返回 | ||
</Button> | ||
</Group> | ||
</Container> | ||
</DefaultContainer> | ||
); | ||
} |
Oops, something went wrong.