* 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.
23 lines
501 B
TypeScript
23 lines
501 B
TypeScript
import { Spinner } from '@heroui/spinner';
|
|
import clsx from 'clsx';
|
|
|
|
export interface PageLoadingProps {
|
|
loading?: boolean
|
|
}
|
|
const PageLoading: React.FC<PageLoadingProps> = ({ loading }) => {
|
|
return (
|
|
<div
|
|
className={clsx(
|
|
'absolute top-0 left-0 w-full h-full bg-zinc-500 bg-opacity-10 z-50 flex justify-center items-center backdrop-blur',
|
|
{
|
|
hidden: !loading,
|
|
}
|
|
)}
|
|
>
|
|
<Spinner size='lg' />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default PageLoading;
|