feat(card-component): Card-Container mit padding/shadow [tsc:fail]
This commit is contained in:
parent
d8ae2e0200
commit
d50d5253ca
@ -1,8 +1,9 @@
|
||||
{
|
||||
"completed_features": [],
|
||||
"current_feature": "badge-component",
|
||||
"current_feature": "card-component",
|
||||
"started_at": "2026-05-23T09:38:26.946771",
|
||||
"attempted_features": [
|
||||
"tooltip-component"
|
||||
"tooltip-component",
|
||||
"badge-component"
|
||||
]
|
||||
}
|
||||
@ -3597,3 +3597,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>,
|
||||
- `09:38:54` **INFO** Committed feature badge-component
|
||||
- `09:38:54` **INFO** Pushed: rc=0
|
||||
|
||||
## Phase-3 Feature: card-component (2026-05-23 09:38:54)
|
||||
|
||||
- `09:38:54` **INFO** Description: Card-Container mit padding/shadow
|
||||
- `09:38:54` **INFO** Generating apps/web/src/components/Card.tsx (Card-Component + CardHeader + CardBody + CardFooter Sub-Components. Ca…)
|
||||
- `09:39:03` **INFO** wrote 917 chars in 8.5s (attempt 1)
|
||||
- `09:39:03` **INFO** Running tsc --noEmit on api…
|
||||
- `09:39:04` **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>,
|
||||
|
||||
34
apps/web/src/components/Card.tsx
Normal file
34
apps/web/src/components/Card.tsx
Normal file
@ -0,0 +1,34 @@
|
||||
import React from 'react';
|
||||
|
||||
interface CardProps {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export const CardHeader = ({ children, className = '' }: CardProps) => (
|
||||
<div className={`p-4 border-b border-zinc-200 dark:border-zinc-700 ${className}`}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
||||
export const CardBody = ({ children, className = '' }: CardProps) => (
|
||||
<div className={`p-4 ${className}`}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
||||
export const CardFooter = ({ children, className = '' }: CardProps) => (
|
||||
<div className={`p-4 border-t border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800/50 ${className}`}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
||||
const Card = ({ children, className = '' }: CardProps) => {
|
||||
return (
|
||||
<div className={`bg-white dark:bg-zinc-800 rounded-lg shadow-sm border border-zinc-200 dark:border-zinc-700 overflow-hidden ${className}`}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Card;
|
||||
Loading…
Reference in New Issue
Block a user