feat(loader-component): Loader fullscreen-overlay [tsc:fail]
This commit is contained in:
parent
96753c8f4c
commit
f554bf6107
@ -1,8 +1,9 @@
|
||||
{
|
||||
"completed_features": [],
|
||||
"current_feature": "hint-component",
|
||||
"current_feature": "loader-component",
|
||||
"started_at": "2026-05-23T10:43:31.771649",
|
||||
"attempted_features": [
|
||||
"footer-component"
|
||||
"footer-component",
|
||||
"hint-component"
|
||||
]
|
||||
}
|
||||
@ -4624,3 +4624,21 @@ src/index.ts(27,25): error TS2769: No overload matches this call.
|
||||
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
|
||||
- `10:43:52` **INFO** Committed feature hint-component
|
||||
- `10:43:52` **INFO** Pushed: rc=0
|
||||
|
||||
## Phase-3 Feature: loader-component (2026-05-23 10:43:52)
|
||||
|
||||
- `10:43:52` **INFO** Description: Loader fullscreen-overlay
|
||||
- `10:43:52` **INFO** Generating apps/web/src/components/Loader.tsx (Loader-Component. Props: message? (default 'Wird geladen...'), fullscr…)
|
||||
- `10:44:01` **INFO** wrote 1066 chars in 8.5s (attempt 1)
|
||||
- `10:44:01` **INFO** Running tsc --noEmit on api…
|
||||
- `10:44:02` **WARN** tsc errors:
|
||||
src/db/schema.ts(37,14): error TS7022: 'customers' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
||||
src/db/schema.ts(45,59): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
||||
src/db/schema.ts(49,14): error TS7022: 'projects' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
||||
src/db/schema.ts(53,56): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
||||
src/index.ts(27,25): error TS2769: No overload matches this call.
|
||||
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
|
||||
|
||||
36
apps/web/src/components/Loader.tsx
Normal file
36
apps/web/src/components/Loader.tsx
Normal file
@ -0,0 +1,36 @@
|
||||
import React from 'react';
|
||||
import { Loader2 } from 'lucide-react';
|
||||
|
||||
interface LoaderProps {
|
||||
message?: string;
|
||||
fullscreen?: boolean;
|
||||
}
|
||||
|
||||
const Loader: React.FC<LoaderProps> = ({
|
||||
message = 'Wird geladen...',
|
||||
fullscreen = false
|
||||
}) => {
|
||||
if (fullscreen) {
|
||||
return (
|
||||
<div className="fixed inset-0 z-50 flex flex-col items-center justify-center bg-black/20 backdrop-blur-sm">
|
||||
<div className="flex flex-col items-center gap-2 p-6 bg-white dark:bg-zinc-900 rounded-xl shadow-xl border border-zinc-200 dark:border-zinc-800">
|
||||
<Loader2 className="w-8 h-8 animate-spin text-blue-500" />
|
||||
<span className="text-sm font-medium text-zinc-600 dark:text-zinc-400">
|
||||
{message}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center gap-2 py-4">
|
||||
<Loader2 className="w-6 h-6 animate-spin text-blue-500" />
|
||||
<span className="text-sm text-zinc-500 dark:text-zinc-400">
|
||||
{message}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Loader;
|
||||
Loading…
Reference in New Issue
Block a user