refactor: 整体重构 (#1381)
* feat: pnpm new * Refactor build and release workflows, update dependencies Switch build scripts and workflows from npm to pnpm, update build and artifact paths, and simplify release workflow by removing version detection and changelog steps. Add new dependencies (silk-wasm, express, ws, node-pty-prebuilt-multiarch), update exports in package.json files, and add vite config for napcat-framework. Also, rename manifest.json for framework package and fix static asset copying in shell build config.
This commit is contained in:
1 parent
c3d1892545
commit
ed19c52f25
778 files changed
+2356
-26391
No files matched your search
@@ -0,0 +1,30 @@
|
||||
import { Button } from '@heroui/button';
|
||||
import { Code } from '@heroui/code';
|
||||
import { MdError } from 'react-icons/md';
|
||||
|
||||
export interface ErrorFallbackProps {
|
||||
error: Error
|
||||
resetErrorBoundary: () => void
|
||||
}
|
||||
function errorFallbackRender ({
|
||||
error,
|
||||
resetErrorBoundary,
|
||||
}: ErrorFallbackProps) {
|
||||
return (
|
||||
<div className='pt-32 flex flex-col justify-center items-center'>
|
||||
<div className='flex items-center'>
|
||||
<MdError className='mr-2' color='red' size={30} />
|
||||
<h1 className='text-2xl'>出错了</h1>
|
||||
</div>
|
||||
<div className='my-6 flex flex-col justify-center items-center'>
|
||||
<p className='mb-2'>错误信息</p>
|
||||
<Code>{error.message}</Code>
|
||||
</div>
|
||||
<Button color='primary' size='md' onPress={resetErrorBoundary}>
|
||||
重试
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default errorFallbackRender;
|
||||
Reference in new issue
Block a user