Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bbcc7d159c | |||
| 39f5bd3986 | |||
| 944d369d43 | |||
| 6aaf8ac44f | |||
| 2097b571f3 | |||
| aeb1814a34 | |||
| 57e093ea54 | |||
| 76e25d03b9 | |||
| 19ef042fb6 | |||
| 6032394ac9 | |||
| 033a9ad65e | |||
| 3f6fa36f9b | |||
| c52a132d62 | |||
| 11f735bbdf | |||
| c81dae0b7b | |||
| 716ece1c6c | |||
| e0ccf1cdfb | |||
| 6a6fbb6f19 | |||
| 6b6b2b8ece | |||
| 9f412d81a8 | |||
| 9c401f13de | |||
| 5857404ac1 | |||
| 34a96f8aef | |||
| 4e6f3f29cf | |||
| 1bd516fbe4 | |||
| 4d0e3433a6 |
@@ -1,9 +1,13 @@
|
|||||||
node_modules
|
# Exclude all binary/dependency folders recursively
|
||||||
.next
|
**/node_modules
|
||||||
out
|
**/.pnpm-store
|
||||||
dist
|
**/.git
|
||||||
*.log
|
**/.next
|
||||||
.git
|
**/dist
|
||||||
|
**/out
|
||||||
|
**/*.log
|
||||||
|
|
||||||
|
# Specific exclusions for this project
|
||||||
.DS_Store
|
.DS_Store
|
||||||
cloned-websites
|
cloned-websites
|
||||||
storage
|
storage
|
||||||
@@ -11,3 +15,11 @@ storage
|
|||||||
verify_ci
|
verify_ci
|
||||||
pnpm_install_log.txt
|
pnpm_install_log.txt
|
||||||
full_tree.json
|
full_tree.json
|
||||||
|
backups
|
||||||
|
data
|
||||||
|
|
||||||
|
# Ensure we don't copy the sibling's build artifacts either
|
||||||
|
_at-mintel/**/node_modules
|
||||||
|
_at-mintel/**/dist
|
||||||
|
_at-mintel/**/.next
|
||||||
|
_at-mintel/.git
|
||||||
|
|||||||
@@ -310,6 +310,13 @@ jobs:
|
|||||||
NEXT_PUBLIC_TARGET=${{ needs.prepare.outputs.target }}
|
NEXT_PUBLIC_TARGET=${{ needs.prepare.outputs.target }}
|
||||||
DIRECTUS_URL=${{ needs.prepare.outputs.directus_url }}
|
DIRECTUS_URL=${{ needs.prepare.outputs.directus_url }}
|
||||||
NPM_TOKEN=${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN=${{ secrets.NPM_TOKEN }}
|
||||||
|
S3_ENDPOINT=${{ secrets.S3_ENDPOINT || vars.S3_ENDPOINT || 'https://fsn1.your-objectstorage.com' }}
|
||||||
|
S3_ACCESS_KEY=${{ secrets.S3_ACCESS_KEY || vars.S3_ACCESS_KEY }}
|
||||||
|
S3_SECRET_KEY=${{ secrets.S3_SECRET_KEY || vars.S3_SECRET_KEY }}
|
||||||
|
S3_BUCKET=${{ secrets.S3_BUCKET || vars.S3_BUCKET || 'mintel' }}
|
||||||
|
S3_REGION=${{ secrets.S3_REGION || vars.S3_REGION || 'fsn1' }}
|
||||||
|
S3_PREFIX=${{ secrets.S3_PREFIX || vars.S3_PREFIX || 'mintel.me' }}
|
||||||
|
BUILD_ID=${{ github.sha }}
|
||||||
tags: registry.infra.mintel.me/mintel/mintel.me:${{ needs.prepare.outputs.image_tag }}
|
tags: registry.infra.mintel.me/mintel/mintel.me:${{ needs.prepare.outputs.image_tag }}
|
||||||
cache-from: type=registry,ref=registry.infra.mintel.me/mintel/mintel.me:buildcache-${{ needs.prepare.outputs.target }}
|
cache-from: type=registry,ref=registry.infra.mintel.me/mintel/mintel.me:buildcache-${{ needs.prepare.outputs.target }}
|
||||||
cache-to: type=registry,ref=registry.infra.mintel.me/mintel/mintel.me:buildcache-${{ needs.prepare.outputs.target }},mode=max
|
cache-to: type=registry,ref=registry.infra.mintel.me/mintel/mintel.me:buildcache-${{ needs.prepare.outputs.target }},mode=max
|
||||||
@@ -325,17 +332,16 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
ssh-keyscan -H alpha.mintel.me >> ~/.ssh/known_hosts 2>/dev/null
|
ssh-keyscan -H alpha.mintel.me >> ~/.ssh/known_hosts 2>/dev/null
|
||||||
echo "Re-running docker build with plain progress to capture exact logs..."
|
echo "Re-running docker build with plain progress to capture exact logs..."
|
||||||
echo "${{ steps.discover_token.outputs.token }}" | docker login git.infra.mintel.me -u "${{ steps.discover_token.outputs.user }}" --password-stdin > login.log 2>&1
|
echo "${{ secrets.NPM_TOKEN }}" > /tmp/npm_token.txt
|
||||||
echo "${{ steps.discover_token.outputs.token }}" > /tmp/npm_token.txt
|
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg NEXT_PUBLIC_BASE_URL=${{ needs.prepare.outputs.next_public_url }} \
|
--build-arg NEXT_PUBLIC_BASE_URL=${{ needs.prepare.outputs.next_public_url }} \
|
||||||
--build-arg NEXT_PUBLIC_TARGET=${{ needs.prepare.outputs.target }} \
|
--build-arg NEXT_PUBLIC_TARGET=${{ needs.prepare.outputs.target }} \
|
||||||
--build-arg DIRECTUS_URL=${{ needs.prepare.outputs.directus_url }} \
|
--build-arg DIRECTUS_URL=${{ needs.prepare.outputs.directus_url }} \
|
||||||
--build-arg NPM_TOKEN=${{ steps.discover_token.outputs.token }} \
|
--build-arg NPM_TOKEN=${{ secrets.NPM_TOKEN }} \
|
||||||
--secret id=NPM_TOKEN,src=/tmp/npm_token.txt \
|
--secret id=NPM_TOKEN,src=/tmp/npm_token.txt \
|
||||||
--progress plain \
|
--progress plain \
|
||||||
-t temp-image . > docker_build_failed.log 2>&1
|
-t temp-image . > docker_build_failed.log 2>&1
|
||||||
cat login.log >> docker_build_failed.log
|
cat login.log >> docker_build_failed.log || true
|
||||||
scp docker_build_failed.log root@alpha.mintel.me:/root/docker_build_failed.log
|
scp docker_build_failed.log root@alpha.mintel.me:/root/docker_build_failed.log
|
||||||
# JOB 4: Deploy
|
# JOB 4: Deploy
|
||||||
# ──────────────────────────────────────────────────────────────────────────────
|
# ──────────────────────────────────────────────────────────────────────────────
|
||||||
@@ -527,6 +533,29 @@ jobs:
|
|||||||
docker compose -p '${{ needs.prepare.outputs.project_name }}' --env-file $ENV_FILE up -d --remove-orphans
|
docker compose -p '${{ needs.prepare.outputs.project_name }}' --env-file $ENV_FILE up -d --remove-orphans
|
||||||
"
|
"
|
||||||
|
|
||||||
|
- name: 🧹 Purge S3 Cache
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "Installing rclone..."
|
||||||
|
curl -s -O https://downloads.rclone.org/rclone-current-linux-amd64.deb
|
||||||
|
sudo dpkg -i rclone-current-linux-amd64.deb > /dev/null 2>&1
|
||||||
|
|
||||||
|
echo "Configuring rclone..."
|
||||||
|
cat > rclone.conf <<EOF
|
||||||
|
[mintel-s3]
|
||||||
|
type = s3
|
||||||
|
provider = Other
|
||||||
|
access_key_id = ${{ secrets.S3_ACCESS_KEY || vars.S3_ACCESS_KEY }}
|
||||||
|
secret_access_key = ${{ secrets.S3_SECRET_KEY || vars.S3_SECRET_KEY }}
|
||||||
|
endpoint = ${{ secrets.S3_ENDPOINT || vars.S3_ENDPOINT || 'https://fsn1.your-objectstorage.com' }}
|
||||||
|
region = ${{ secrets.S3_REGION || vars.S3_REGION || 'fsn1' }}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo "Purging S3 cache for ${{ env.S3_PREFIX }} ..."
|
||||||
|
rclone --config rclone.conf delete mintel-s3:${{ env.S3_BUCKET }}/${{ env.S3_PREFIX }}/cache/ --include "*" || true
|
||||||
|
|
||||||
|
rm rclone.conf rclone-current-linux-amd64.deb
|
||||||
|
|
||||||
- name: 🧹 Post-Deploy Cleanup (Runner)
|
- name: 🧹 Post-Deploy Cleanup (Runner)
|
||||||
if: always()
|
if: always()
|
||||||
run: docker builder prune -f --filter "until=1h"
|
run: docker builder prune -f --filter "until=1h"
|
||||||
|
|||||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -56,4 +56,8 @@ apps/web/out/estimations/
|
|||||||
# Backups
|
# Backups
|
||||||
backups/
|
backups/
|
||||||
|
|
||||||
.turbo
|
.turbo
|
||||||
|
# Manual build artifacts
|
||||||
|
_at-mintel/
|
||||||
|
local_build_*.log
|
||||||
|
*.tar
|
||||||
|
|||||||
37
Dockerfile
37
Dockerfile
@@ -7,11 +7,24 @@ ARG NEXT_PUBLIC_BASE_URL
|
|||||||
ARG NEXT_PUBLIC_TARGET
|
ARG NEXT_PUBLIC_TARGET
|
||||||
ARG UMAMI_API_ENDPOINT
|
ARG UMAMI_API_ENDPOINT
|
||||||
ARG NPM_TOKEN
|
ARG NPM_TOKEN
|
||||||
|
ARG S3_ENDPOINT
|
||||||
|
ARG S3_ACCESS_KEY
|
||||||
|
ARG S3_SECRET_KEY
|
||||||
|
ARG S3_BUCKET
|
||||||
|
ARG S3_REGION
|
||||||
|
ARG S3_PREFIX
|
||||||
|
ARG BUILD_ID
|
||||||
|
|
||||||
# Environment variables for Next.js build
|
# Environment variables for Next.js build
|
||||||
ENV NEXT_PUBLIC_BASE_URL=$NEXT_PUBLIC_BASE_URL
|
ENV NEXT_PUBLIC_BASE_URL=$NEXT_PUBLIC_BASE_URL
|
||||||
ENV NEXT_PUBLIC_TARGET=$NEXT_PUBLIC_TARGET
|
ENV NEXT_PUBLIC_TARGET=$NEXT_PUBLIC_TARGET
|
||||||
ENV UMAMI_API_ENDPOINT=$UMAMI_API_ENDPOINT
|
ENV UMAMI_API_ENDPOINT=$UMAMI_API_ENDPOINT
|
||||||
|
ENV S3_ENDPOINT=$S3_ENDPOINT
|
||||||
|
ENV S3_ACCESS_KEY=$S3_ACCESS_KEY
|
||||||
|
ENV S3_SECRET_KEY=$S3_SECRET_KEY
|
||||||
|
ENV S3_BUCKET=$S3_BUCKET
|
||||||
|
ENV S3_REGION=$S3_REGION
|
||||||
|
ENV S3_PREFIX=$S3_PREFIX
|
||||||
ENV SKIP_RUNTIME_ENV_VALIDATION=true
|
ENV SKIP_RUNTIME_ENV_VALIDATION=true
|
||||||
ENV CI=true
|
ENV CI=true
|
||||||
|
|
||||||
@@ -19,20 +32,26 @@ ENV CI=true
|
|||||||
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json .npmrc* ./
|
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json .npmrc* ./
|
||||||
COPY apps/web/package.json ./apps/web/package.json
|
COPY apps/web/package.json ./apps/web/package.json
|
||||||
# Copy sibling monorepo for linked dependencies (cloned during CI)
|
# Copy sibling monorepo for linked dependencies (cloned during CI)
|
||||||
COPY _at-mintel* ./_at-mintel/
|
# Placing it inside /app so relative links like ../../_at-mintel resolve correctly!
|
||||||
|
COPY _at-mintel* /app/_at-mintel/
|
||||||
|
|
||||||
|
|
||||||
# Install dependencies with cache mount and dynamic .npmrc (High Fidelity pattern)
|
# Install dependencies with cache mount and dynamic .npmrc (High Fidelity pattern)
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||||
--mount=type=secret,id=NPM_TOKEN \
|
--mount=type=secret,id=NPM_TOKEN \
|
||||||
export NPM_TOKEN=$(cat /run/secrets/NPM_TOKEN 2>/dev/null || echo $NPM_TOKEN) && \
|
export NPM_TOKEN=$(cat /run/secrets/NPM_TOKEN 2>/dev/null || echo $NPM_TOKEN) && \
|
||||||
echo "@mintel:registry=https://git.infra.mintel.me/api/packages/mmintel/npm/" > .npmrc && \
|
echo "@mintel:registry=https://npm.infra.mintel.me" > .npmrc && \
|
||||||
echo "//git.infra.mintel.me/api/packages/mmintel/npm/:_authToken=\${NPM_TOKEN}" >> .npmrc && \
|
echo "//npm.infra.mintel.me/:_authToken=\"\${NPM_TOKEN}\"" >> .npmrc && \
|
||||||
echo "always-auth=true" >> .npmrc && \
|
echo "always-auth=true" >> .npmrc && \
|
||||||
cd _at-mintel && pnpm install --no-frozen-lockfile && pnpm build && \
|
cd /app/_at-mintel && pnpm install --no-frozen-lockfile && pnpm build && \
|
||||||
cd /app && pnpm install --no-frozen-lockfile && \
|
cd /app && pnpm install --no-frozen-lockfile && \
|
||||||
rm .npmrc
|
rm .npmrc
|
||||||
|
|
||||||
# Copy source code
|
# Copy source code
|
||||||
|
# We use BUILD_ID here to ensure that if the commit changes, we always COPY the latest files
|
||||||
|
# even if Docker's metadata-based fingerprinting for the public directory fails.
|
||||||
|
ARG BUILD_ID
|
||||||
|
RUN echo "Building with ID: ${BUILD_ID}"
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build application (monorepo filter)
|
# Build application (monorepo filter)
|
||||||
@@ -48,7 +67,15 @@ WORKDIR /app
|
|||||||
COPY --from=builder /app/apps/web/public ./apps/web/public
|
COPY --from=builder /app/apps/web/public ./apps/web/public
|
||||||
COPY --from=builder /app/apps/web/.next/standalone ./
|
COPY --from=builder /app/apps/web/.next/standalone ./
|
||||||
COPY --from=builder /app/apps/web/.next/static ./apps/web/.next/static
|
COPY --from=builder /app/apps/web/.next/static ./apps/web/.next/static
|
||||||
COPY --from=builder /app/apps/web/.next/cache ./apps/web/.next/cache
|
|
||||||
|
# Explicitly copy Payload dynamically generated importMap.js excluded by Standalone tracing
|
||||||
|
COPY --from=builder /app/apps/web/app/(payload)/admin/importMap.js ./apps/web/app/(payload)/admin/importMap.js
|
||||||
|
|
||||||
|
# Fix permissions for the non-root user (Standard uid/gid from base image)
|
||||||
|
# We do this as root before switching users
|
||||||
|
USER root
|
||||||
|
RUN chown -R 1001:65533 /app
|
||||||
|
USER nextjs
|
||||||
|
|
||||||
# Start from the app directory to ensure references solve correctly
|
# Start from the app directory to ensure references solve correctly
|
||||||
WORKDIR /app/apps/web
|
WORKDIR /app/apps/web
|
||||||
|
|||||||
@@ -1 +1,120 @@
|
|||||||
export const importMap = {};
|
import { AiMediaButtons as AiMediaButtons_1d402a78164f07306f77dce953e62e11 } from "@mintel/payload-ai/components/AiMediaButtons";
|
||||||
|
import { OptimizeButton as OptimizeButton_338ff118e214cff355f6d710d1a381fb } from "@mintel/payload-ai/components/OptimizeButton";
|
||||||
|
import { GenerateSlugButton as GenerateSlugButton_5baeea8510d263708dd253e86d55e0b4 } from "@mintel/payload-ai/components/FieldGenerators/GenerateSlugButton";
|
||||||
|
import { default as default_76cec558bd86098fa1dab70b12eb818f } from "@/src/payload/components/TagSelector";
|
||||||
|
import { GenerateThumbnailButton as GenerateThumbnailButton_e5e8c00f1c031f15175fef0ff67513dc } from "@mintel/payload-ai/components/FieldGenerators/GenerateThumbnailButton";
|
||||||
|
import { RscEntryLexicalCell as RscEntryLexicalCell_44fe37237e0ebf4470c9990d8cb7b07e } from "@payloadcms/richtext-lexical/rsc";
|
||||||
|
import { RscEntryLexicalField as RscEntryLexicalField_44fe37237e0ebf4470c9990d8cb7b07e } from "@payloadcms/richtext-lexical/rsc";
|
||||||
|
import { LexicalDiffComponent as LexicalDiffComponent_44fe37237e0ebf4470c9990d8cb7b07e } from "@payloadcms/richtext-lexical/rsc";
|
||||||
|
import { BlocksFeatureClient as BlocksFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { AiFieldButton as AiFieldButton_9125bc0af442fbb1889d8de3dff98501 } from "@mintel/payload-ai/components/FieldGenerators/AiFieldButton";
|
||||||
|
import { InlineToolbarFeatureClient as InlineToolbarFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { HorizontalRuleFeatureClient as HorizontalRuleFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { UploadFeatureClient as UploadFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { BlockquoteFeatureClient as BlockquoteFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { RelationshipFeatureClient as RelationshipFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { LinkFeatureClient as LinkFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { ChecklistFeatureClient as ChecklistFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { OrderedListFeatureClient as OrderedListFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { UnorderedListFeatureClient as UnorderedListFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { IndentFeatureClient as IndentFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { AlignFeatureClient as AlignFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { HeadingFeatureClient as HeadingFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { ParagraphFeatureClient as ParagraphFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { InlineCodeFeatureClient as InlineCodeFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { SuperscriptFeatureClient as SuperscriptFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { SubscriptFeatureClient as SubscriptFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { StrikethroughFeatureClient as StrikethroughFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { UnderlineFeatureClient as UnderlineFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { BoldFeatureClient as BoldFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { ItalicFeatureClient as ItalicFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from "@payloadcms/richtext-lexical/client";
|
||||||
|
import { default as default_2ebf44fdf8ebc607cf0de30cff485248 } from "@/src/payload/components/ColorPicker";
|
||||||
|
import { default as default_a1c6da8fb7dd9846a8b07123ff256d09 } from "@/src/payload/components/IconSelector";
|
||||||
|
import { ConvertInquiryButton as ConvertInquiryButton_09fd670bce023a947ab66e4eebea5168 } from "@/src/payload/components/ConvertInquiryButton";
|
||||||
|
import { AiAnalyzeButton as AiAnalyzeButton_51a6009c2b12d068d736ffd2b8182c71 } from "@/src/payload/components/AiAnalyzeButton";
|
||||||
|
import { BulkMailButton as BulkMailButton_ebc54eabb8a07878581b0043bd687708 } from "@/src/payload/components/BulkMailButton";
|
||||||
|
import { GanttChartView as GanttChartView_0162b82db971e8f1e27fbdd0aaa2f1f4 } from "@/src/payload/views/GanttChart";
|
||||||
|
import { ChatWindowProvider as ChatWindowProvider_258e2d0901cb901e46c3eeed91676211 } from "@mintel/payload-ai/components/ChatWindow/index";
|
||||||
|
import { S3ClientUploadHandler as S3ClientUploadHandler_f97aa6c64367fa259c5bc0567239ef24 } from "@payloadcms/storage-s3/client";
|
||||||
|
import { CollectionCards as CollectionCards_f9c02e79a4aed9a3924487c0cd4cafb1 } from "@payloadcms/next/rsc";
|
||||||
|
|
||||||
|
export const importMap = {
|
||||||
|
"@mintel/payload-ai/components/AiMediaButtons#AiMediaButtons":
|
||||||
|
AiMediaButtons_1d402a78164f07306f77dce953e62e11,
|
||||||
|
"@mintel/payload-ai/components/OptimizeButton#OptimizeButton":
|
||||||
|
OptimizeButton_338ff118e214cff355f6d710d1a381fb,
|
||||||
|
"@mintel/payload-ai/components/FieldGenerators/GenerateSlugButton#GenerateSlugButton":
|
||||||
|
GenerateSlugButton_5baeea8510d263708dd253e86d55e0b4,
|
||||||
|
"@/src/payload/components/TagSelector#default":
|
||||||
|
default_76cec558bd86098fa1dab70b12eb818f,
|
||||||
|
"@mintel/payload-ai/components/FieldGenerators/GenerateThumbnailButton#GenerateThumbnailButton":
|
||||||
|
GenerateThumbnailButton_e5e8c00f1c031f15175fef0ff67513dc,
|
||||||
|
"@payloadcms/richtext-lexical/rsc#RscEntryLexicalCell":
|
||||||
|
RscEntryLexicalCell_44fe37237e0ebf4470c9990d8cb7b07e,
|
||||||
|
"@payloadcms/richtext-lexical/rsc#RscEntryLexicalField":
|
||||||
|
RscEntryLexicalField_44fe37237e0ebf4470c9990d8cb7b07e,
|
||||||
|
"@payloadcms/richtext-lexical/rsc#LexicalDiffComponent":
|
||||||
|
LexicalDiffComponent_44fe37237e0ebf4470c9990d8cb7b07e,
|
||||||
|
"@payloadcms/richtext-lexical/client#BlocksFeatureClient":
|
||||||
|
BlocksFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton":
|
||||||
|
AiFieldButton_9125bc0af442fbb1889d8de3dff98501,
|
||||||
|
"@payloadcms/richtext-lexical/client#InlineToolbarFeatureClient":
|
||||||
|
InlineToolbarFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#HorizontalRuleFeatureClient":
|
||||||
|
HorizontalRuleFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#UploadFeatureClient":
|
||||||
|
UploadFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#BlockquoteFeatureClient":
|
||||||
|
BlockquoteFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#RelationshipFeatureClient":
|
||||||
|
RelationshipFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#LinkFeatureClient":
|
||||||
|
LinkFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#ChecklistFeatureClient":
|
||||||
|
ChecklistFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#OrderedListFeatureClient":
|
||||||
|
OrderedListFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#UnorderedListFeatureClient":
|
||||||
|
UnorderedListFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#IndentFeatureClient":
|
||||||
|
IndentFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#AlignFeatureClient":
|
||||||
|
AlignFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#HeadingFeatureClient":
|
||||||
|
HeadingFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#ParagraphFeatureClient":
|
||||||
|
ParagraphFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#InlineCodeFeatureClient":
|
||||||
|
InlineCodeFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#SuperscriptFeatureClient":
|
||||||
|
SuperscriptFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#SubscriptFeatureClient":
|
||||||
|
SubscriptFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#StrikethroughFeatureClient":
|
||||||
|
StrikethroughFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#UnderlineFeatureClient":
|
||||||
|
UnderlineFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#BoldFeatureClient":
|
||||||
|
BoldFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@payloadcms/richtext-lexical/client#ItalicFeatureClient":
|
||||||
|
ItalicFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
|
"@/src/payload/components/ColorPicker#default":
|
||||||
|
default_2ebf44fdf8ebc607cf0de30cff485248,
|
||||||
|
"@/src/payload/components/IconSelector#default":
|
||||||
|
default_a1c6da8fb7dd9846a8b07123ff256d09,
|
||||||
|
"@/src/payload/components/ConvertInquiryButton#ConvertInquiryButton":
|
||||||
|
ConvertInquiryButton_09fd670bce023a947ab66e4eebea5168,
|
||||||
|
"@/src/payload/components/AiAnalyzeButton#AiAnalyzeButton":
|
||||||
|
AiAnalyzeButton_51a6009c2b12d068d736ffd2b8182c71,
|
||||||
|
"@/src/payload/components/BulkMailButton#BulkMailButton":
|
||||||
|
BulkMailButton_ebc54eabb8a07878581b0043bd687708,
|
||||||
|
"@/src/payload/views/GanttChart#GanttChartView":
|
||||||
|
GanttChartView_0162b82db971e8f1e27fbdd0aaa2f1f4,
|
||||||
|
"@mintel/payload-ai/components/ChatWindow/index#ChatWindowProvider":
|
||||||
|
ChatWindowProvider_258e2d0901cb901e46c3eeed91676211,
|
||||||
|
"@payloadcms/storage-s3/client#S3ClientUploadHandler":
|
||||||
|
S3ClientUploadHandler_f97aa6c64367fa259c5bc0567239ef24,
|
||||||
|
"@payloadcms/next/rsc#CollectionCards":
|
||||||
|
CollectionCards_f9c02e79a4aed9a3924487c0cd4cafb1,
|
||||||
|
};
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ import { getAllPosts } from "@/src/lib/posts";
|
|||||||
import { BlogClient } from "@/src/components/blog/BlogClient";
|
import { BlogClient } from "@/src/components/blog/BlogClient";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
|
||||||
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Blog | Mintel.me",
|
title: "Blog | Mintel.me",
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -24,19 +24,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@apply text-4xl md:text-8xl leading-[1.1] md:leading-[0.95] mb-6 md:mb-12;
|
@apply text-4xl md:text-6xl lg:text-8xl leading-[1.1] md:leading-[1] lg:leading-[0.95] mb-6 md:mb-8 lg:mb-12;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
@apply text-2xl md:text-6xl leading-tight mb-4 md:mb-8 mt-12 md:mt-16;
|
@apply text-2xl md:text-4xl lg:text-6xl leading-tight mb-4 md:mb-6 lg:mb-8 mt-12 lg:mt-16;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
@apply text-xl md:text-5xl leading-tight mb-3 md:mb-6 mt-8 md:mt-12;
|
@apply text-xl md:text-3xl lg:text-5xl leading-tight mb-3 md:mb-4 lg:mb-6 mt-8 lg:mt-12;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
@apply text-lg md:text-3xl leading-tight mb-3 md:mb-4 mt-6 md:mt-8;
|
@apply text-lg md:text-2xl lg:text-3xl leading-tight mb-3 lg:mb-4 mt-6 lg:mt-8;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.lead {
|
.lead {
|
||||||
@apply text-base md:text-2xl text-slate-600 mb-6 leading-relaxed;
|
@apply text-base md:text-xl lg:text-2xl text-slate-600 mb-6 leading-relaxed;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,15 +92,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
@apply max-w-6xl mx-auto px-5 md:px-6 py-8 md:py-12;
|
@apply max-w-6xl mx-auto px-5 md:px-6 lg:px-8 py-8 md:py-10 lg:py-12;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wide-container {
|
.wide-container {
|
||||||
@apply max-w-7xl mx-auto px-5 md:px-6 py-10 md:py-16;
|
@apply max-w-7xl mx-auto px-5 md:px-6 lg:px-8 py-10 md:py-12 lg:py-16;
|
||||||
}
|
}
|
||||||
|
|
||||||
.narrow-container {
|
.narrow-container {
|
||||||
@apply max-w-4xl mx-auto px-5 md:px-6 py-6 md:py-10;
|
@apply max-w-4xl mx-auto px-5 md:px-6 lg:px-8 py-6 md:py-8 lg:py-10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlighter-tag {
|
.highlighter-tag {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export default function LandingPage() {
|
|||||||
</H3>
|
</H3>
|
||||||
</Reveal>
|
</Reveal>
|
||||||
|
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 relative z-10">
|
<div className="grid grid-cols-1 md:grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 relative z-10">
|
||||||
{[
|
{[
|
||||||
{
|
{
|
||||||
icon: <ConceptCommunication className="w-8 h-8" />,
|
icon: <ConceptCommunication className="w-8 h-8" />,
|
||||||
@@ -136,7 +136,7 @@ export default function LandingPage() {
|
|||||||
|
|
||||||
{/* Section 04: Target Group */}
|
{/* Section 04: Target Group */}
|
||||||
<Section number="04" title="Für wen" borderTop>
|
<Section number="04" title="Für wen" borderTop>
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6 relative z-10">
|
<div className="grid grid-cols-1 md:grid-cols-1 lg:grid-cols-2 gap-4 md:gap-6 lg:gap-10 relative z-10">
|
||||||
<Reveal>
|
<Reveal>
|
||||||
<Card variant="glass" padding="normal" techBorder className="group">
|
<Card variant="glass" padding="normal" techBorder className="group">
|
||||||
<div className="space-y-4 md:space-y-6 relative overflow-hidden">
|
<div className="space-y-4 md:space-y-6 relative overflow-hidden">
|
||||||
@@ -215,8 +215,8 @@ export default function LandingPage() {
|
|||||||
},
|
},
|
||||||
].map((service, i) => (
|
].map((service, i) => (
|
||||||
<Reveal key={i} delay={0.1 + i * 0.15}>
|
<Reveal key={i} delay={0.1 + i * 0.15}>
|
||||||
<div className="group py-8 md:py-16 border-b border-slate-100 last:border-b-0 cursor-pointer transition-all duration-500">
|
<div className="group py-8 md:py-12 lg:py-16 border-b border-slate-100 last:border-b-0 cursor-pointer transition-all duration-500">
|
||||||
<div className="flex flex-col md:flex-row md:items-start gap-6 md:gap-16">
|
<div className="flex flex-col md:flex-row md:items-start gap-6 md:gap-10 lg:gap-16">
|
||||||
{/* Number + Binary */}
|
{/* Number + Binary */}
|
||||||
<div className="shrink-0 flex md:block items-baseline gap-4">
|
<div className="shrink-0 flex md:block items-baseline gap-4">
|
||||||
<span className="text-4xl md:text-6xl font-black text-slate-100 group-hover:text-slate-200 transition-colors duration-500 tracking-tighter block leading-none">
|
<span className="text-4xl md:text-6xl font-black text-slate-100 group-hover:text-slate-200 transition-colors duration-500 tracking-tighter block leading-none">
|
||||||
@@ -280,13 +280,13 @@ export default function LandingPage() {
|
|||||||
<Section number="06" title="Kontakt" borderTop>
|
<Section number="06" title="Kontakt" borderTop>
|
||||||
<div className="relative py-4 md:py-12" id="contact">
|
<div className="relative py-4 md:py-12" id="contact">
|
||||||
<Reveal>
|
<Reveal>
|
||||||
<div className="space-y-8 md:space-y-16">
|
<div className="space-y-8 md:space-y-12 lg:space-y-16">
|
||||||
<H1 className="text-3xl md:text-8xl">
|
<H1 className="text-4xl md:text-6xl lg:text-8xl">
|
||||||
Lassen Sie uns <br />
|
Lassen Sie uns <br />
|
||||||
<span className="text-slate-400">starten.</span>
|
<span className="text-slate-400">starten.</span>
|
||||||
</H1>
|
</H1>
|
||||||
|
|
||||||
<div className="flex flex-col md:flex-row gap-6 md:gap-16 items-start relative z-10">
|
<div className="flex flex-col md:flex-row gap-6 md:gap-10 lg:gap-16 items-start relative z-10">
|
||||||
<div className="space-y-4 md:space-y-8 flex-1">
|
<div className="space-y-4 md:space-y-8 flex-1">
|
||||||
<LeadText className="text-lg md:text-3xl text-slate-400">
|
<LeadText className="text-lg md:text-3xl text-slate-400">
|
||||||
Beschreiben Sie kurz Ihr Vorhaben. Ich melde mich{" "}
|
Beschreiben Sie kurz Ihr Vorhaben. Ich melde mich{" "}
|
||||||
|
|||||||
@@ -10,17 +10,21 @@ const dirname = path.dirname(filename);
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
serverExternalPackages: [
|
serverExternalPackages: [
|
||||||
'@mintel/content-engine',
|
|
||||||
'@mintel/concept-engine',
|
|
||||||
'@mintel/estimation-engine',
|
|
||||||
'@mintel/payload-ai',
|
|
||||||
'@mintel/pdf',
|
|
||||||
'canvas',
|
'canvas',
|
||||||
'sharp',
|
'sharp',
|
||||||
'puppeteer',
|
'puppeteer',
|
||||||
'require-in-the-middle',
|
'require-in-the-middle',
|
||||||
'import-in-the-middle' // Sentry 10+ instrumentation dependencies
|
'import-in-the-middle' // Sentry 10+ instrumentation dependencies
|
||||||
],
|
],
|
||||||
|
transpilePackages: [
|
||||||
|
'@mintel/content-engine',
|
||||||
|
'@mintel/concept-engine',
|
||||||
|
'@mintel/estimation-engine',
|
||||||
|
'@mintel/meme-generator',
|
||||||
|
'@mintel/payload-ai',
|
||||||
|
'@mintel/pdf',
|
||||||
|
'@mintel/thumbnail-generator'
|
||||||
|
],
|
||||||
images: {
|
images: {
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"dev": "pnpm run seed:context && next dev --webpack --hostname 0.0.0.0",
|
"dev": "pnpm run seed:context && next dev --webpack --hostname 0.0.0.0",
|
||||||
"dev:native": "DATABASE_URI=postgres://payload:payload@127.0.0.1:54321/payload PAYLOAD_SECRET=dev-secret pnpm run seed:context && DATABASE_URI=postgres://payload:payload@127.0.0.1:54321/payload PAYLOAD_SECRET=dev-secret next dev --webpack",
|
"dev:native": "DATABASE_URI=postgres://payload:payload@127.0.0.1:54321/payload PAYLOAD_SECRET=dev-secret pnpm run seed:context && DATABASE_URI=postgres://payload:payload@127.0.0.1:54321/payload PAYLOAD_SECRET=dev-secret next dev --webpack",
|
||||||
"seed:context": "node --import tsx --experimental-loader ./ignore-css.mjs ./seed-context.ts",
|
"seed:context": "node --import tsx --experimental-loader ./ignore-css.mjs ./seed-context.ts",
|
||||||
"build": "next build --webpack",
|
"build": "payload generate:importmap && next build --webpack",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "eslint app src scripts video",
|
"lint": "eslint app src scripts video",
|
||||||
"test": "echo \"No tests configured\"",
|
"test": "echo \"No tests configured\"",
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
"@mintel/content-engine": "link:../../../at-mintel/packages/content-engine",
|
"@mintel/content-engine": "link:../../../at-mintel/packages/content-engine",
|
||||||
"@mintel/estimation-engine": "link:../../../at-mintel/packages/estimation-engine",
|
"@mintel/estimation-engine": "link:../../../at-mintel/packages/estimation-engine",
|
||||||
"@mintel/meme-generator": "link:../../../at-mintel/packages/meme-generator",
|
"@mintel/meme-generator": "link:../../../at-mintel/packages/meme-generator",
|
||||||
"@mintel/payload-ai": "^1.9.15",
|
"@mintel/payload-ai": "link:../../../at-mintel/packages/payload-ai",
|
||||||
"@mintel/pdf": "link:../../../at-mintel/packages/pdf-library",
|
"@mintel/pdf": "link:../../../at-mintel/packages/pdf-library",
|
||||||
"@mintel/thumbnail-generator": "link:../../../at-mintel/packages/thumbnail-generator",
|
"@mintel/thumbnail-generator": "link:../../../at-mintel/packages/thumbnail-generator",
|
||||||
"@next/mdx": "^16.1.6",
|
"@next/mdx": "^16.1.6",
|
||||||
|
|||||||
@@ -287,6 +287,9 @@ export interface Inquiry {
|
|||||||
email: string;
|
email: string;
|
||||||
companyName?: string | null;
|
companyName?: string | null;
|
||||||
projectType?: string | null;
|
projectType?: string | null;
|
||||||
|
phone?: string | null;
|
||||||
|
role?: string | null;
|
||||||
|
deadline?: string | null;
|
||||||
message?: string | null;
|
message?: string | null;
|
||||||
isFreeText?: boolean | null;
|
isFreeText?: boolean | null;
|
||||||
/**
|
/**
|
||||||
@@ -808,7 +811,10 @@ export interface InquiriesSelect<T extends boolean = true> {
|
|||||||
name?: T;
|
name?: T;
|
||||||
email?: T;
|
email?: T;
|
||||||
companyName?: T;
|
companyName?: T;
|
||||||
|
phone?: T;
|
||||||
|
role?: T;
|
||||||
projectType?: T;
|
projectType?: T;
|
||||||
|
deadline?: T;
|
||||||
message?: T;
|
message?: T;
|
||||||
isFreeText?: T;
|
isFreeText?: T;
|
||||||
config?: T;
|
config?: T;
|
||||||
|
|||||||
@@ -26,12 +26,30 @@ import { Projects } from "./src/payload/collections/Projects";
|
|||||||
const filename = fileURLToPath(import.meta.url);
|
const filename = fileURLToPath(import.meta.url);
|
||||||
const dirname = path.dirname(filename);
|
const dirname = path.dirname(filename);
|
||||||
|
|
||||||
|
const isCLI =
|
||||||
|
process.argv.includes("migrate") ||
|
||||||
|
process.argv.includes("generate:importmap");
|
||||||
|
let aiPlugin: any;
|
||||||
|
if (!isCLI) {
|
||||||
|
const { payloadChatPlugin } = await import("@mintel/payload-ai");
|
||||||
|
aiPlugin = payloadChatPlugin({
|
||||||
|
enabled: true,
|
||||||
|
mcpServers: [],
|
||||||
|
renderChatBubble: false, // disable dynamic injection since it's added statically below
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
export default buildConfig({
|
export default buildConfig({
|
||||||
admin: {
|
admin: {
|
||||||
user: Users.slug,
|
user: Users.slug,
|
||||||
importMap: {
|
importMap: {
|
||||||
baseDir: path.resolve(dirname),
|
baseDir: path.resolve(dirname),
|
||||||
},
|
},
|
||||||
|
components: {
|
||||||
|
providers: [
|
||||||
|
"@mintel/payload-ai/components/ChatWindow/index#ChatWindowProvider",
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
collections: [
|
collections: [
|
||||||
Users,
|
Users,
|
||||||
@@ -79,6 +97,7 @@ export default buildConfig({
|
|||||||
connectionString:
|
connectionString:
|
||||||
process.env.DATABASE_URI || process.env.POSTGRES_URI || "",
|
process.env.DATABASE_URI || process.env.POSTGRES_URI || "",
|
||||||
},
|
},
|
||||||
|
push: false,
|
||||||
}),
|
}),
|
||||||
sharp,
|
sharp,
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -103,6 +122,7 @@ export default buildConfig({
|
|||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
...(aiPlugin ? [aiPlugin] : []),
|
||||||
],
|
],
|
||||||
endpoints: [
|
endpoints: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -89,14 +89,14 @@ resolve_target() {
|
|||||||
prod|production)
|
prod|production)
|
||||||
REMOTE_PROJECT="mintel-me-production"
|
REMOTE_PROJECT="mintel-me-production"
|
||||||
REMOTE_DB_CONTAINER="mintel-me-production-postgres-db-1"
|
REMOTE_DB_CONTAINER="mintel-me-production-postgres-db-1"
|
||||||
REMOTE_APP_CONTAINER="mintel-me-production-app-1"
|
REMOTE_APP_CONTAINER="mintel-me-production-mintel-me-app-1"
|
||||||
REMOTE_SITE_DIR="/home/deploy/sites/mintel.me"
|
REMOTE_SITE_DIR="/home/deploy/sites/mintel.me"
|
||||||
;;
|
;;
|
||||||
branch-*)
|
branch-*)
|
||||||
local SLUG=${TARGET#branch-}
|
local SLUG=${TARGET#branch-}
|
||||||
REMOTE_PROJECT="mintel-me-branch-$SLUG"
|
REMOTE_PROJECT="mintel-me-branch-$SLUG"
|
||||||
REMOTE_DB_CONTAINER="${REMOTE_PROJECT}-postgres-db-1"
|
REMOTE_DB_CONTAINER="${REMOTE_PROJECT}-postgres-db-1"
|
||||||
REMOTE_APP_CONTAINER="${REMOTE_PROJECT}-app-1"
|
REMOTE_APP_CONTAINER="${REMOTE_PROJECT}-mintel-me-app-1"
|
||||||
REMOTE_SITE_DIR="/home/deploy/sites/branch.mintel.me/$SLUG"
|
REMOTE_SITE_DIR="/home/deploy/sites/branch.mintel.me/$SLUG"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
@@ -11,8 +11,11 @@ import configPromise from "@payload-config";
|
|||||||
export async function sendContactInquiry(data: {
|
export async function sendContactInquiry(data: {
|
||||||
name: string;
|
name: string;
|
||||||
email: string;
|
email: string;
|
||||||
|
phone?: string;
|
||||||
|
role?: string;
|
||||||
companyName: string;
|
companyName: string;
|
||||||
projectType: string;
|
projectType: string;
|
||||||
|
deadline?: string;
|
||||||
message: string;
|
message: string;
|
||||||
isFreeText: boolean;
|
isFreeText: boolean;
|
||||||
config?: any;
|
config?: any;
|
||||||
@@ -25,8 +28,11 @@ export async function sendContactInquiry(data: {
|
|||||||
data: {
|
data: {
|
||||||
name: data.name,
|
name: data.name,
|
||||||
email: data.email,
|
email: data.email,
|
||||||
|
phone: data.phone,
|
||||||
|
role: data.role,
|
||||||
companyName: data.companyName,
|
companyName: data.companyName,
|
||||||
projectType: data.projectType,
|
projectType: data.projectType,
|
||||||
|
deadline: data.deadline,
|
||||||
message: data.message,
|
message: data.message,
|
||||||
isFreeText: data.isFreeText,
|
isFreeText: data.isFreeText,
|
||||||
config: data.config || null,
|
config: data.config || null,
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export function ContactForm({
|
|||||||
initialStepIndex = 0,
|
initialStepIndex = 0,
|
||||||
initialState: injectedState,
|
initialState: injectedState,
|
||||||
}: ContactFormProps) {
|
}: ContactFormProps) {
|
||||||
const [flow, setFlow] = useState<FlowState>("discovery");
|
const [flow, setFlow] = useState<FlowState>("direct-message");
|
||||||
const [stepIndex, setStepIndex] = useState(initialStepIndex);
|
const [stepIndex, setStepIndex] = useState(initialStepIndex);
|
||||||
const [state, setState] = useState<FormState>({
|
const [state, setState] = useState<FormState>({
|
||||||
...initialState,
|
...initialState,
|
||||||
@@ -125,8 +125,11 @@ export function ContactForm({
|
|||||||
const result = await sendContactInquiry({
|
const result = await sendContactInquiry({
|
||||||
name: state.name,
|
name: state.name,
|
||||||
email: state.email,
|
email: state.email,
|
||||||
|
phone: state.phone,
|
||||||
|
role: state.role,
|
||||||
companyName: state.companyName,
|
companyName: state.companyName,
|
||||||
projectType: state.projectType,
|
projectType: state.projectType,
|
||||||
|
deadline: state.deadline,
|
||||||
message: state.message,
|
message: state.message,
|
||||||
isFreeText: flow === "direct-message",
|
isFreeText: flow === "direct-message",
|
||||||
config: flow === "configurator" ? state : undefined,
|
config: flow === "configurator" ? state : undefined,
|
||||||
@@ -190,7 +193,7 @@ export function ContactForm({
|
|||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setIsSubmitted(false);
|
setIsSubmitted(false);
|
||||||
setFlow("discovery");
|
setFlow("direct-message"); // Reset back to dm
|
||||||
setStepIndex(0);
|
setStepIndex(0);
|
||||||
setState(initialState);
|
setState(initialState);
|
||||||
}}
|
}}
|
||||||
@@ -204,7 +207,7 @@ export function ContactForm({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gateway Flow
|
// Gateway Flow (Disabled but kept logically if needed, can just not render)
|
||||||
if (flow === "discovery") {
|
if (flow === "discovery") {
|
||||||
return (
|
return (
|
||||||
<ContactGateway
|
<ContactGateway
|
||||||
@@ -225,13 +228,23 @@ export function ContactForm({
|
|||||||
return (
|
return (
|
||||||
<DirectMessageFlow
|
<DirectMessageFlow
|
||||||
name={state.name}
|
name={state.name}
|
||||||
|
setName={(v) => updateState({ name: v })}
|
||||||
email={state.email}
|
email={state.email}
|
||||||
setEmail={(v) => updateState({ email: v })}
|
setEmail={(v) => updateState({ email: v })}
|
||||||
|
phone={state.phone}
|
||||||
|
setPhone={(v) => updateState({ phone: v })}
|
||||||
|
role={state.role}
|
||||||
|
setRole={(v) => updateState({ role: v })}
|
||||||
company={state.companyName}
|
company={state.companyName}
|
||||||
|
setCompany={(v) => updateState({ companyName: v })}
|
||||||
|
projectType={state.projectType}
|
||||||
|
setProjectType={(v) => updateState({ projectType: v })}
|
||||||
|
deadline={state.deadline}
|
||||||
|
setDeadline={(v) => updateState({ deadline: v })}
|
||||||
message={state.message}
|
message={state.message}
|
||||||
setMessage={(v) => updateState({ message: v })}
|
setMessage={(v) => updateState({ message: v })}
|
||||||
onBack={() => setFlow("discovery")}
|
onBack={() => setFlow("discovery")} // Can keep, but won't be seen if we hide button
|
||||||
onSubmit={handleSubmit}
|
onSubmit={() => handleSubmit()}
|
||||||
isSubmitting={isSubmitting}
|
isSubmitting={isSubmitting}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -88,41 +88,40 @@ export const ContactGateway = ({
|
|||||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 w-full">
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 w-full">
|
||||||
{/* Configurator Path */}
|
{/* Configurator Path */}
|
||||||
<Reveal width="100%" delay={0.3} direction="up">
|
<Reveal width="100%" delay={0.3} direction="up">
|
||||||
<button
|
<div className="relative group p-[1px] rounded-3xl overflow-hidden transition-all duration-500">
|
||||||
onClick={onChooseConfigurator}
|
{/* Disabled Overlay Background */}
|
||||||
disabled={!name}
|
<div className="absolute inset-0 bg-gradient-to-br from-slate-200 to-slate-100 dark:from-slate-800 dark:to-slate-900 opacity-50" />
|
||||||
className={cn(
|
|
||||||
"group relative flex flex-col items-start p-8 rounded-3xl border text-left transition-all duration-500 overflow-hidden",
|
|
||||||
name
|
|
||||||
? "bg-slate-900 border-slate-800 text-white shadow-2xl hover:-translate-y-2"
|
|
||||||
: "bg-slate-50 border-slate-100 text-slate-400 cursor-not-allowed opacity-60",
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<div className="absolute top-0 right-0 p-8 opacity-10 group-hover:opacity-20 transition-opacity">
|
|
||||||
<Settings2 size={120} />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<Settings2 size={24} className="mb-6 text-green-400" />
|
<button
|
||||||
<h3 className="text-2xl font-bold mb-2 tracking-tight">
|
disabled
|
||||||
System-Konfigurator
|
className={cn(
|
||||||
</h3>
|
"w-full h-full relative flex flex-col items-start p-8 rounded-[23px] border text-left bg-slate-50 border-slate-100 text-slate-400 cursor-not-allowed",
|
||||||
<p className="text-sm text-slate-400 font-medium mb-8 max-w-[280px]">
|
)}
|
||||||
Konfigurieren Sie Ihr Projekt modular für eine präzise
|
>
|
||||||
Aufwandsschätzung.
|
<div className="absolute top-0 right-0 p-8 opacity-5">
|
||||||
</p>
|
<Settings2 size={120} />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="mt-auto flex items-center gap-2 text-[10px] font-mono uppercase tracking-widest font-bold">
|
<div className="flex items-center gap-3 mb-6">
|
||||||
<span>Sitzung starten</span>
|
<Settings2 size={24} className="text-slate-300" />
|
||||||
<ArrowRight
|
<span className="px-2 py-0.5 rounded-full bg-slate-200 text-[8px] font-bold uppercase tracking-wider text-slate-500">
|
||||||
size={14}
|
Wartungsmodus
|
||||||
className="group-hover:translate-x-1 transition-transform"
|
</span>
|
||||||
/>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
{!name && (
|
<h3 className="text-2xl font-bold mb-2 tracking-tight opacity-50">
|
||||||
<div className="absolute inset-0 bg-slate-50/60 backdrop-blur-[6px] z-20" />
|
System-Konfigurator
|
||||||
)}
|
</h3>
|
||||||
</button>
|
<p className="text-sm text-slate-400 font-medium mb-8 max-w-[280px] opacity-70">
|
||||||
|
Dieser Modus wird aktuell optimiert und steht in Kürze wieder
|
||||||
|
zur Verfügung.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div className="mt-auto flex items-center gap-2 text-[10px] font-mono uppercase tracking-widest font-bold opacity-30">
|
||||||
|
<span>Konfigurator offline</span>
|
||||||
|
</div>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</Reveal>
|
</Reveal>
|
||||||
|
|
||||||
{/* Direct Mail Path */}
|
{/* Direct Mail Path */}
|
||||||
|
|||||||
@@ -3,13 +3,33 @@
|
|||||||
import { motion } from "framer-motion";
|
import { motion } from "framer-motion";
|
||||||
import { cn } from "../../utils/cn";
|
import { cn } from "../../utils/cn";
|
||||||
import { Reveal } from "../Reveal";
|
import { Reveal } from "../Reveal";
|
||||||
import { Mail, MessageSquare, ArrowLeft, Send } from "lucide-react";
|
import { ProjectType } from "./types";
|
||||||
|
import {
|
||||||
|
Mail,
|
||||||
|
MessageSquare,
|
||||||
|
ArrowLeft,
|
||||||
|
Send,
|
||||||
|
Phone,
|
||||||
|
User as UserIcon,
|
||||||
|
Calendar,
|
||||||
|
Layers,
|
||||||
|
} from "lucide-react";
|
||||||
|
|
||||||
interface DirectMessageFlowProps {
|
interface DirectMessageFlowProps {
|
||||||
name: string;
|
name: string;
|
||||||
|
setName: (val: string) => void;
|
||||||
email: string;
|
email: string;
|
||||||
setEmail: (val: string) => void;
|
setEmail: (val: string) => void;
|
||||||
|
phone: string;
|
||||||
|
setPhone: (val: string) => void;
|
||||||
|
role: string;
|
||||||
|
setRole: (val: string) => void;
|
||||||
company: string;
|
company: string;
|
||||||
|
setCompany: (val: string) => void;
|
||||||
|
projectType: ProjectType;
|
||||||
|
setProjectType: (val: ProjectType) => void;
|
||||||
|
deadline: string;
|
||||||
|
setDeadline: (val: string) => void;
|
||||||
message: string;
|
message: string;
|
||||||
setMessage: (val: string) => void;
|
setMessage: (val: string) => void;
|
||||||
onBack: () => void;
|
onBack: () => void;
|
||||||
@@ -19,9 +39,19 @@ interface DirectMessageFlowProps {
|
|||||||
|
|
||||||
export const DirectMessageFlow = ({
|
export const DirectMessageFlow = ({
|
||||||
name,
|
name,
|
||||||
|
setName,
|
||||||
email,
|
email,
|
||||||
setEmail,
|
setEmail,
|
||||||
|
phone,
|
||||||
|
setPhone,
|
||||||
|
role,
|
||||||
|
setRole,
|
||||||
company,
|
company,
|
||||||
|
setCompany,
|
||||||
|
projectType,
|
||||||
|
setProjectType,
|
||||||
|
deadline,
|
||||||
|
setDeadline,
|
||||||
message,
|
message,
|
||||||
setMessage,
|
setMessage,
|
||||||
onBack,
|
onBack,
|
||||||
@@ -30,72 +60,167 @@ export const DirectMessageFlow = ({
|
|||||||
}: DirectMessageFlowProps) => {
|
}: DirectMessageFlowProps) => {
|
||||||
return (
|
return (
|
||||||
<div className="w-full max-w-3xl mx-auto px-4 py-12">
|
<div className="w-full max-w-3xl mx-auto px-4 py-12">
|
||||||
<Reveal width="100%" delay={0.1}>
|
|
||||||
<button
|
|
||||||
onClick={onBack}
|
|
||||||
className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400 hover:text-slate-900 transition-colors mb-12"
|
|
||||||
>
|
|
||||||
<ArrowLeft size={14} /> Zurück zur Auswahl
|
|
||||||
</button>
|
|
||||||
</Reveal>
|
|
||||||
|
|
||||||
<div className="space-y-12">
|
<div className="space-y-12">
|
||||||
<Reveal width="100%" delay={0.2}>
|
<Reveal width="100%" delay={0.2}>
|
||||||
<div className="space-y-2">
|
<div className="space-y-4">
|
||||||
<span className="text-[10px] font-mono text-green-600 uppercase tracking-[0.3em] font-bold">
|
<span className="text-[10px] font-mono text-green-600 uppercase tracking-[0.3em] font-bold">
|
||||||
DIREKTNACHRICHT // MODUS_AKTIVIERT
|
DIREKTANFRAGE // SCHRITT_01
|
||||||
</span>
|
</span>
|
||||||
<h2 className="text-3xl font-bold tracking-tight text-slate-900">
|
<h2 className="text-3xl md:text-5xl font-bold tracking-tight text-slate-900 line-clamp-2">
|
||||||
Wie kann ich helfen, {name.split(" ")[0]}?
|
Lassen Sie uns sprechen.
|
||||||
</h2>
|
</h2>
|
||||||
<p className="text-slate-500 font-medium">
|
<p className="text-slate-500 font-medium text-lg">
|
||||||
Sende mir eine Nachricht zu {company || "deinem Projekt"} und ich
|
Senden Sie mir eine Nachricht und ich melde mich zeitnah zurück.
|
||||||
melde mich in Kürze.
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</Reveal>
|
</Reveal>
|
||||||
|
|
||||||
<div className="space-y-8">
|
<div className="space-y-12">
|
||||||
{/* Email Input */}
|
{/* Section: Mission Focus */}
|
||||||
<Reveal width="100%" delay={0.3} direction="up">
|
<Reveal width="100%" delay={0.3} direction="up">
|
||||||
<div className="space-y-4">
|
<div className="space-y-6">
|
||||||
<label className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400">
|
<label className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400">
|
||||||
<Mail size={12} /> Rückantwort an
|
<Layers size={12} /> Mission // Projekt-Typ
|
||||||
</label>
|
</label>
|
||||||
<input
|
<div className="grid grid-cols-1 md:grid-cols-3 gap-3">
|
||||||
type="email"
|
{(["website", "web-app", "ecommerce"] as ProjectType[]).map(
|
||||||
value={email}
|
(type) => {
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
const labels = {
|
||||||
placeholder="ihre@email.de"
|
website: "Website",
|
||||||
className="w-full bg-slate-50 border border-slate-100 rounded-2xl px-6 py-4 text-lg font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all"
|
"web-app": "Web Application",
|
||||||
/>
|
ecommerce: "E-Commerce",
|
||||||
|
};
|
||||||
|
return (
|
||||||
|
<button
|
||||||
|
key={type}
|
||||||
|
onClick={() => setProjectType(type)}
|
||||||
|
className={cn(
|
||||||
|
"px-6 py-4 rounded-xl border font-bold text-sm transition-all duration-200 text-left",
|
||||||
|
projectType === type
|
||||||
|
? "bg-slate-900 text-white border-slate-900 shadow-lg"
|
||||||
|
: "bg-white border-slate-100 text-slate-500 hover:border-slate-300",
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{labels[type]}
|
||||||
|
</button>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Reveal>
|
</Reveal>
|
||||||
|
|
||||||
{/* Message Input */}
|
{/* Section: Identity Details */}
|
||||||
<Reveal width="100%" delay={0.4} direction="up">
|
<Reveal width="100%" delay={0.4} direction="up">
|
||||||
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||||
|
<div className="space-y-4">
|
||||||
|
<label className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400">
|
||||||
|
<UserIcon size={12} /> Ihr Name
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
value={name}
|
||||||
|
onChange={(e) => setName(e.target.value)}
|
||||||
|
placeholder="Max Mustermann"
|
||||||
|
className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="space-y-4">
|
||||||
|
<label className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400">
|
||||||
|
<Layers size={12} /> Unternehmen (Optional)
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
value={company}
|
||||||
|
onChange={(e) => setCompany(e.target.value)}
|
||||||
|
placeholder="Beispiel GmbH"
|
||||||
|
className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="space-y-4">
|
||||||
|
<label className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400">
|
||||||
|
<Mail size={12} /> E-Mail Adresse
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="email"
|
||||||
|
value={email}
|
||||||
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
|
placeholder="name@firma.de"
|
||||||
|
className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="space-y-4">
|
||||||
|
<label className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400">
|
||||||
|
<Phone size={12} /> Rückruf-Nummer (Optional)
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="tel"
|
||||||
|
value={phone}
|
||||||
|
onChange={(e) => setPhone(e.target.value)}
|
||||||
|
placeholder="+49 123 456789"
|
||||||
|
className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Reveal>
|
||||||
|
|
||||||
|
{/* Section: Additional Context */}
|
||||||
|
<Reveal width="100%" delay={0.5} direction="up">
|
||||||
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||||
|
<div className="space-y-4">
|
||||||
|
<label className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400">
|
||||||
|
<UserIcon size={12} /> Ihre Position
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
value={role}
|
||||||
|
onChange={(e) => setRole(e.target.value)}
|
||||||
|
placeholder="z.B. Gründer, Marketing Lead..."
|
||||||
|
className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="space-y-4">
|
||||||
|
<label className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400">
|
||||||
|
<Calendar size={12} /> Zeitfenster
|
||||||
|
</label>
|
||||||
|
<select
|
||||||
|
value={deadline}
|
||||||
|
onChange={(e) => setDeadline(e.target.value)}
|
||||||
|
className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all appearance-none cursor-pointer"
|
||||||
|
>
|
||||||
|
<option value="asap">ASAP (Sofort)</option>
|
||||||
|
<option value="1month">< 1 Monat (Priorität)</option>
|
||||||
|
<option value="3months">1-3 Monate (Standard)</option>
|
||||||
|
<option value="flexible">Flexibel</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Reveal>
|
||||||
|
|
||||||
|
{/* Section: Payload */}
|
||||||
|
<Reveal width="100%" delay={0.6} direction="up">
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<label className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400">
|
<label className="flex items-center gap-2 text-[10px] font-mono font-bold uppercase tracking-widest text-slate-400">
|
||||||
<MessageSquare size={12} /> Ihre Nachricht
|
<MessageSquare size={12} /> Nachricht // Briefing
|
||||||
</label>
|
</label>
|
||||||
<textarea
|
<textarea
|
||||||
value={message}
|
value={message}
|
||||||
onChange={(e) => setMessage(e.target.value)}
|
onChange={(e) => setMessage(e.target.value)}
|
||||||
placeholder="Beschreiben Sie kurz Ihr Anliegen..."
|
placeholder="Beschreiben Sie kurz Ihr Anliegen oder hinterlassen Sie einen Link zum Briefing..."
|
||||||
rows={6}
|
rows={5}
|
||||||
className="w-full bg-slate-50 border border-slate-100 rounded-2xl px-6 py-4 text-lg font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all resize-none"
|
className="w-full bg-slate-50 border border-slate-100 rounded-2xl px-6 py-4 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all resize-none"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Reveal>
|
</Reveal>
|
||||||
|
|
||||||
{/* Submit Button */}
|
{/* Submit Button */}
|
||||||
<Reveal width="100%" delay={0.5} direction="up">
|
<Reveal width="100%" delay={0.7} direction="up">
|
||||||
<button
|
<button
|
||||||
onClick={onSubmit}
|
onClick={onSubmit}
|
||||||
disabled={isSubmitting || !email || !message}
|
disabled={isSubmitting || !email || !message || !name}
|
||||||
className={cn(
|
className={cn(
|
||||||
"group relative w-full py-5 rounded-2xl font-bold text-lg transition-all duration-300 flex items-center justify-center gap-3 overflow-hidden",
|
"group relative w-full py-5 rounded-2xl font-bold text-lg transition-all duration-300 flex items-center justify-center gap-3 overflow-hidden",
|
||||||
isSubmitting || !email || !message
|
isSubmitting || !email || !message || !name
|
||||||
? "bg-slate-100 text-slate-400 cursor-not-allowed"
|
? "bg-slate-100 text-slate-400 cursor-not-allowed"
|
||||||
: "bg-slate-900 text-white shadow-xl hover:shadow-2xl hover:-translate-y-1 active:scale-[0.98]",
|
: "bg-slate-900 text-white shadow-xl hover:shadow-2xl hover:-translate-y-1 active:scale-[0.98]",
|
||||||
)}
|
)}
|
||||||
@@ -109,7 +234,7 @@ export const DirectMessageFlow = ({
|
|||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<span>Nachricht absenden</span>
|
<span>Anfrage senden</span>
|
||||||
<Send
|
<Send
|
||||||
size={20}
|
size={20}
|
||||||
className="group-hover:translate-x-1 group-hover:-translate-y-1 transition-transform"
|
className="group-hover:translate-x-1 group-hover:-translate-y-1 transition-transform"
|
||||||
|
|||||||
@@ -21,15 +21,19 @@ export const getInquiryEmailHtml = (data: any) => `
|
|||||||
<div class="title">NEUE_ANFRAGE_INPUT</div>
|
<div class="title">NEUE_ANFRAGE_INPUT</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section">
|
|
||||||
<div class="label">ABSENDER</div>
|
<div class="label">ABSENDER</div>
|
||||||
<div class="value">${data.name} (${data.email})</div>
|
<div class="value">${data.name} (${data.email})</div>
|
||||||
|
|
||||||
|
${data.phone ? `<div class="label">TELEFON</div><div class="value">${data.phone}</div>` : ""}
|
||||||
|
${data.role ? `<div class="label">POSITION</div><div class="value">${data.role}</div>` : ""}
|
||||||
|
|
||||||
<div class="label">UNTERNEHMEN</div>
|
<div class="label">UNTERNEHMEN</div>
|
||||||
<div class="value">${data.companyName || "N/A"}</div>
|
<div class="value">${data.companyName || "N/A"}</div>
|
||||||
|
|
||||||
<div class="label">PROJEKT_TYP</div>
|
<div class="label">PROJEKT_TYP</div>
|
||||||
<div class="value">${data.projectType}</div>
|
<div class="value">${data.projectType}</div>
|
||||||
|
|
||||||
|
${data.deadline ? `<div class="label">ZEITRAUM</div><div class="value">${data.deadline}</div>` : ""}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
${
|
${
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export interface FormState {
|
|||||||
storageExpansion: number;
|
storageExpansion: number;
|
||||||
name: string;
|
name: string;
|
||||||
email: string;
|
email: string;
|
||||||
|
phone: string;
|
||||||
role: string;
|
role: string;
|
||||||
message: string;
|
message: string;
|
||||||
sitemapFile: File | null;
|
sitemapFile: File | null;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export const HeroSection: React.FC = () => {
|
|||||||
initial={{ opacity: 0, scale: 0.95 }}
|
initial={{ opacity: 0, scale: 0.95 }}
|
||||||
animate={{ opacity: 1, scale: 1 }}
|
animate={{ opacity: 1, scale: 1 }}
|
||||||
transition={{ duration: 1, delay: 0.2 }}
|
transition={{ duration: 1, delay: 0.2 }}
|
||||||
className="mb-4 md:mb-10 inline-flex items-center gap-3 md:gap-4 px-4 md:px-6 py-2 border border-slate-100 bg-white/40 backdrop-blur-sm rounded-full"
|
className="mb-4 md:mb-8 lg:mb-10 inline-flex items-center gap-3 md:gap-4 px-4 md:px-6 py-2 border border-slate-100 bg-white/40 backdrop-blur-sm rounded-full"
|
||||||
>
|
>
|
||||||
<div className="flex gap-1">
|
<div className="flex gap-1">
|
||||||
<div className="w-1 h-1 rounded-full bg-blue-500 animate-pulse" />
|
<div className="w-1 h-1 rounded-full bg-blue-500 animate-pulse" />
|
||||||
@@ -59,7 +59,7 @@ export const HeroSection: React.FC = () => {
|
|||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
||||||
{/* Headline */}
|
{/* Headline */}
|
||||||
<h1 className="text-3xl md:text-[11rem] font-black tracking-tighter leading-[0.9] md:leading-[0.8] text-slate-900 mb-6 md:mb-12 uppercase">
|
<h1 className="text-4xl md:text-8xl lg:text-[10rem] xl:text-[11rem] font-black tracking-tighter leading-[0.9] md:leading-[0.85] lg:leading-[0.8] text-slate-900 mb-6 md:mb-8 lg:mb-12 uppercase">
|
||||||
<div className="block">
|
<div className="block">
|
||||||
<GlitchText delay={0.5} duration={1.2}>
|
<GlitchText delay={0.5} duration={1.2}>
|
||||||
Websites
|
Websites
|
||||||
@@ -80,9 +80,9 @@ export const HeroSection: React.FC = () => {
|
|||||||
initial={{ opacity: 0, y: 20 }}
|
initial={{ opacity: 0, y: 20 }}
|
||||||
animate={{ opacity: 1, y: 0 }}
|
animate={{ opacity: 1, y: 0 }}
|
||||||
transition={{ duration: 1, delay: 0.8 }}
|
transition={{ duration: 1, delay: 0.8 }}
|
||||||
className="flex flex-col items-center gap-6 md:gap-12"
|
className="flex flex-col items-center gap-6 md:gap-8 lg:gap-12"
|
||||||
>
|
>
|
||||||
<p className="text-base md:text-3xl text-slate-400 font-medium max-w-2xl leading-relaxed px-4">
|
<p className="text-base md:text-xl lg:text-3xl text-slate-400 font-medium max-w-2xl leading-relaxed px-4">
|
||||||
Ein Entwickler. Ein Ansprechpartner.{" "}
|
Ein Entwickler. Ein Ansprechpartner.{" "}
|
||||||
<br className="hidden md:block" />
|
<br className="hidden md:block" />
|
||||||
<span className="text-slate-900 font-bold tracking-tight">
|
<span className="text-slate-900 font-bold tracking-tight">
|
||||||
|
|||||||
@@ -1,12 +1,62 @@
|
|||||||
import { RichText } from "@payloadcms/richtext-lexical/react";
|
import {
|
||||||
|
RichText,
|
||||||
|
defaultJSXConverters,
|
||||||
|
} from "@payloadcms/richtext-lexical/react";
|
||||||
import type { JSXConverters } from "@payloadcms/richtext-lexical/react";
|
import type { JSXConverters } from "@payloadcms/richtext-lexical/react";
|
||||||
import { MemeCard } from "@/src/components/MemeCard";
|
import { MemeCard } from "@/src/components/MemeCard";
|
||||||
import { Mermaid } from "@/src/components/Mermaid";
|
import { Mermaid } from "@/src/components/Mermaid";
|
||||||
import { LeadMagnet } from "@/src/components/LeadMagnet";
|
import { LeadMagnet } from "@/src/components/LeadMagnet";
|
||||||
import { ComparisonRow } from "@/src/components/Landing/ComparisonRow";
|
import { ComparisonRow } from "@/src/components/Landing/ComparisonRow";
|
||||||
import { mdxComponents } from "../content-engine/components";
|
import { mdxComponents } from "../content-engine/components";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Renders markdown-style inline links [text](/url) as <a> tags.
|
||||||
|
* Used by mintelP blocks which store body text with links.
|
||||||
|
*/
|
||||||
|
function renderInlineMarkdown(text: string): React.ReactNode {
|
||||||
|
if (!text) return null;
|
||||||
|
const parts = text.split(/(\[[^\]]+\]\([^)]+\)|<Marker>[^<]*<\/Marker>)/);
|
||||||
|
return parts.map((part, i) => {
|
||||||
|
const linkMatch = part.match(/\[([^\]]+)\]\(([^)]+)\)/);
|
||||||
|
if (linkMatch) {
|
||||||
|
return (
|
||||||
|
<a
|
||||||
|
key={i}
|
||||||
|
href={linkMatch[2]}
|
||||||
|
className="text-slate-900 underline underline-offset-4 hover:text-slate-600 transition-colors"
|
||||||
|
>
|
||||||
|
{linkMatch[1]}
|
||||||
|
</a>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
const markerMatch = part.match(/<Marker>([^<]*)<\/Marker>/);
|
||||||
|
if (markerMatch) {
|
||||||
|
return (
|
||||||
|
<mark key={i} className="bg-yellow-100/60 px-1 rounded">
|
||||||
|
{markerMatch[1]}
|
||||||
|
</mark>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return <React.Fragment key={i}>{part}</React.Fragment>;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const jsxConverters: JSXConverters = {
|
const jsxConverters: JSXConverters = {
|
||||||
|
...defaultJSXConverters,
|
||||||
|
// Override paragraph to filter out leftover <TableOfContents /> raw text
|
||||||
|
paragraph: ({ node, nodesToJSX }: any) => {
|
||||||
|
const children = node?.children;
|
||||||
|
if (
|
||||||
|
children?.length === 1 &&
|
||||||
|
children[0]?.type === "text" &&
|
||||||
|
children[0]?.text?.trim()?.startsWith("<") &&
|
||||||
|
children[0]?.text?.trim()?.endsWith("/>")
|
||||||
|
) {
|
||||||
|
return null; // suppress raw JSX component text like <TableOfContents />
|
||||||
|
}
|
||||||
|
return <p>{nodesToJSX({ nodes: children })}</p>;
|
||||||
|
},
|
||||||
blocks: {
|
blocks: {
|
||||||
memeCard: ({ node }: any) => (
|
memeCard: ({ node }: any) => (
|
||||||
<div className="my-8">
|
<div className="my-8">
|
||||||
@@ -49,6 +99,15 @@ const jsxConverters: JSXConverters = {
|
|||||||
showShare={true}
|
showShare={true}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
|
// --- Core text blocks ---
|
||||||
|
mintelP: ({ node }: any) => (
|
||||||
|
<p className="text-base md:text-lg text-slate-600 leading-relaxed mb-6">
|
||||||
|
{renderInlineMarkdown(node.fields.text)}
|
||||||
|
</p>
|
||||||
|
),
|
||||||
|
mintelTldr: ({ node }: any) => (
|
||||||
|
<mdxComponents.TLDR>{node.fields.content}</mdxComponents.TLDR>
|
||||||
|
),
|
||||||
// --- MDX Registry Injections ---
|
// --- MDX Registry Injections ---
|
||||||
leadParagraph: ({ node }: any) => (
|
leadParagraph: ({ node }: any) => (
|
||||||
<mdxComponents.LeadParagraph>
|
<mdxComponents.LeadParagraph>
|
||||||
@@ -81,37 +140,46 @@ const jsxConverters: JSXConverters = {
|
|||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
diagramState: ({ node }: any) => (
|
diagramState: ({ node }: any) => (
|
||||||
<mdxComponents.DiagramState
|
<div className="my-8">
|
||||||
states={[]}
|
<Mermaid id={`diagram-state-${node.fields.id || Date.now()}`}>
|
||||||
transitions={[]}
|
{node.fields.definition}
|
||||||
caption={node.fields.definition}
|
</Mermaid>
|
||||||
/>
|
</div>
|
||||||
),
|
),
|
||||||
diagramTimeline: ({ node }: any) => (
|
diagramTimeline: ({ node }: any) => (
|
||||||
<mdxComponents.DiagramTimeline
|
<div className="my-8">
|
||||||
events={[]}
|
<Mermaid id={`diagram-timeline-${node.fields.id || Date.now()}`}>
|
||||||
title={node.fields.definition}
|
{node.fields.definition}
|
||||||
/>
|
</Mermaid>
|
||||||
|
</div>
|
||||||
),
|
),
|
||||||
diagramGantt: ({ node }: any) => (
|
diagramGantt: ({ node }: any) => (
|
||||||
<mdxComponents.DiagramGantt tasks={[]} title={node.fields.definition} />
|
<div className="my-8">
|
||||||
|
<Mermaid id={`diagram-gantt-${node.fields.id || Date.now()}`}>
|
||||||
|
{node.fields.definition}
|
||||||
|
</Mermaid>
|
||||||
|
</div>
|
||||||
),
|
),
|
||||||
diagramPie: ({ node }: any) => (
|
diagramPie: ({ node }: any) => (
|
||||||
<mdxComponents.DiagramPie data={[]} title={node.fields.definition} />
|
<div className="my-8">
|
||||||
|
<Mermaid id={`diagram-pie-${node.fields.id || Date.now()}`}>
|
||||||
|
{node.fields.definition}
|
||||||
|
</Mermaid>
|
||||||
|
</div>
|
||||||
),
|
),
|
||||||
diagramSequence: ({ node }: any) => (
|
diagramSequence: ({ node }: any) => (
|
||||||
<mdxComponents.DiagramSequence
|
<div className="my-8">
|
||||||
participants={[]}
|
<Mermaid id={`diagram-seq-${node.fields.id || Date.now()}`}>
|
||||||
steps={[]}
|
{node.fields.definition}
|
||||||
title={node.fields.definition}
|
</Mermaid>
|
||||||
/>
|
</div>
|
||||||
),
|
),
|
||||||
diagramFlow: ({ node }: any) => (
|
diagramFlow: ({ node }: any) => (
|
||||||
<mdxComponents.DiagramFlow
|
<div className="my-8">
|
||||||
nodes={[]}
|
<Mermaid id={`diagram-flow-${node.fields.id || Date.now()}`}>
|
||||||
edges={[]}
|
{node.fields.definition}
|
||||||
title={node.fields.definition}
|
</Mermaid>
|
||||||
/>
|
</div>
|
||||||
),
|
),
|
||||||
|
|
||||||
waterfallChart: ({ node }: any) => (
|
waterfallChart: ({ node }: any) => (
|
||||||
@@ -128,12 +196,22 @@ const jsxConverters: JSXConverters = {
|
|||||||
),
|
),
|
||||||
iconList: ({ node }: any) => (
|
iconList: ({ node }: any) => (
|
||||||
<mdxComponents.IconList>
|
<mdxComponents.IconList>
|
||||||
{node.fields.items?.map((item: any, i: number) => (
|
{node.fields.items?.map((item: any, i: number) => {
|
||||||
// @ts-ignore
|
const isCheck = item.icon === "check" || !item.icon;
|
||||||
<mdxComponents.IconListItem key={i} icon={item.icon || "check"}>
|
const isCross = item.icon === "x" || item.icon === "cross";
|
||||||
{item.description}
|
const isBullet = item.icon === "circle" || item.icon === "bullet";
|
||||||
</mdxComponents.IconListItem>
|
return (
|
||||||
))}
|
// @ts-ignore
|
||||||
|
<mdxComponents.IconListItem
|
||||||
|
key={i}
|
||||||
|
check={isCheck}
|
||||||
|
cross={isCross}
|
||||||
|
bullet={isBullet}
|
||||||
|
>
|
||||||
|
{item.title || item.description}
|
||||||
|
</mdxComponents.IconListItem>
|
||||||
|
);
|
||||||
|
})}
|
||||||
</mdxComponents.IconList>
|
</mdxComponents.IconList>
|
||||||
),
|
),
|
||||||
statsGrid: ({ node }: any) => {
|
statsGrid: ({ node }: any) => {
|
||||||
@@ -159,8 +237,8 @@ const jsxConverters: JSXConverters = {
|
|||||||
<mdxComponents.Carousel
|
<mdxComponents.Carousel
|
||||||
items={
|
items={
|
||||||
node.fields.slides?.map((s: any) => ({
|
node.fields.slides?.map((s: any) => ({
|
||||||
title: s.caption || "Image",
|
title: s.title || s.caption || "Slide",
|
||||||
content: "",
|
content: s.content || s.caption || "",
|
||||||
icon: undefined,
|
icon: undefined,
|
||||||
})) || []
|
})) || []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,9 +82,9 @@ export const Section: React.FC<SectionProps> = ({
|
|||||||
|
|
||||||
<div className={cn("relative z-10", containerClass)}>
|
<div className={cn("relative z-10", containerClass)}>
|
||||||
{hasSidebar ? (
|
{hasSidebar ? (
|
||||||
<div className="grid grid-cols-1 md:grid-cols-12 gap-4 md:gap-24">
|
<div className="grid grid-cols-1 md:grid-cols-12 gap-4 md:gap-12 lg:gap-24">
|
||||||
{/* Sidebar: Number & Title */}
|
{/* Sidebar: Number & Title */}
|
||||||
<div className="md:col-span-3">
|
<div className="md:col-span-4 lg:col-span-3">
|
||||||
<div className="md:sticky md:top-40 flex flex-col gap-4 md:gap-8">
|
<div className="md:sticky md:top-40 flex flex-col gap-4 md:gap-8">
|
||||||
<div className="flex items-end md:flex-col md:items-start gap-6 md:gap-8">
|
<div className="flex items-end md:flex-col md:items-start gap-6 md:gap-8">
|
||||||
{number && (
|
{number && (
|
||||||
@@ -124,7 +124,7 @@ export const Section: React.FC<SectionProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Main Content */}
|
{/* Main Content */}
|
||||||
<div className="md:col-span-9">{children}</div>
|
<div className="md:col-span-8 lg:col-span-9">{children}</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="w-full">{children}</div>
|
<div className="w-full">{children}</div>
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect, useRef } from 'react';
|
||||||
import { ComponentShareButton } from '../ComponentShareButton';
|
import { ComponentShareButton } from '../ComponentShareButton';
|
||||||
import { Reveal } from '../Reveal';
|
import { Reveal } from '../Reveal';
|
||||||
import { Play, RotateCcw } from 'lucide-react';
|
import { RotateCcw } from 'lucide-react';
|
||||||
|
|
||||||
export function LoadTimeSimulator({ className = '' }: { className?: string }) {
|
export function LoadTimeSimulator({ className = '' }: { className?: string }) {
|
||||||
const [isRunning, setIsRunning] = useState(false);
|
const [isRunning, setIsRunning] = useState(false);
|
||||||
const [timeElapsed, setTimeElapsed] = useState(0);
|
const [timeElapsed, setTimeElapsed] = useState(0);
|
||||||
const [legacyState, setLegacyState] = useState(0);
|
const [legacyState, setLegacyState] = useState(0);
|
||||||
|
const [hasAutoStarted, setHasAutoStarted] = useState(false);
|
||||||
|
const containerRef = useRef<HTMLDivElement>(null);
|
||||||
const [mintelState, setMintelState] = useState(0);
|
const [mintelState, setMintelState] = useState(0);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -36,6 +38,25 @@ export function LoadTimeSimulator({ className = '' }: { className?: string }) {
|
|||||||
return () => clearInterval(interval);
|
return () => clearInterval(interval);
|
||||||
}, [isRunning, timeElapsed]);
|
}, [isRunning, timeElapsed]);
|
||||||
|
|
||||||
|
// Auto-start the race when scrolled into viewport
|
||||||
|
useEffect(() => {
|
||||||
|
if (hasAutoStarted) return;
|
||||||
|
const el = containerRef.current;
|
||||||
|
if (!el) return;
|
||||||
|
const observer = new IntersectionObserver(
|
||||||
|
([entry]) => {
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
setHasAutoStarted(true);
|
||||||
|
setIsRunning(true);
|
||||||
|
observer.disconnect();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ threshold: 0.4 }
|
||||||
|
);
|
||||||
|
observer.observe(el);
|
||||||
|
return () => observer.disconnect();
|
||||||
|
}, [hasAutoStarted]);
|
||||||
|
|
||||||
const startRace = () => {
|
const startRace = () => {
|
||||||
setTimeElapsed(0);
|
setTimeElapsed(0);
|
||||||
setLegacyState(0);
|
setLegacyState(0);
|
||||||
@@ -45,7 +66,7 @@ export function LoadTimeSimulator({ className = '' }: { className?: string }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Reveal direction="up" delay={0.1}>
|
<Reveal direction="up" delay={0.1}>
|
||||||
<div className={`not-prose max-w-4xl mx-auto my-12 relative group ${className}`}>
|
<div ref={containerRef} className={`not-prose max-w-4xl mx-auto my-12 relative group ${className}`}>
|
||||||
<div className="absolute -inset-1 bg-gradient-to-r from-red-100 to-emerald-100 rounded-3xl blur opacity-30" />
|
<div className="absolute -inset-1 bg-gradient-to-r from-red-100 to-emerald-100 rounded-3xl blur opacity-30" />
|
||||||
|
|
||||||
<div id="sim-load-time" className="relative bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden flex flex-col">
|
<div id="sim-load-time" className="relative bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden flex flex-col">
|
||||||
@@ -63,13 +84,15 @@ export function LoadTimeSimulator({ className = '' }: { className?: string }) {
|
|||||||
Simulieren Sie den Unterschied zwischen dynamischem Server-Rendering (PHP/MySQL) und statischer Edge-Auslieferung (<span className="font-mono bg-slate-200 px-1 rounded text-[10px]">TTV < 500ms</span>).
|
Simulieren Sie den Unterschied zwischen dynamischem Server-Rendering (PHP/MySQL) und statischer Edge-Auslieferung (<span className="font-mono bg-slate-200 px-1 rounded text-[10px]">TTV < 500ms</span>).
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<button
|
{timeElapsed > 0 && !isRunning && (
|
||||||
onClick={startRace}
|
<button
|
||||||
className="shrink-0 flex items-center gap-2 px-6 py-2.5 bg-slate-900 !text-white rounded-full font-bold text-sm hover:hover:bg-black hover:scale-105 active:scale-95 transition-all shadow-md"
|
onClick={startRace}
|
||||||
>
|
className="shrink-0 flex items-center gap-2 px-6 py-2.5 bg-slate-900 !text-white rounded-full font-bold text-sm hover:hover:bg-black hover:scale-105 active:scale-95 transition-all shadow-md"
|
||||||
{timeElapsed > 0 ? <RotateCcw size={16} /> : <Play size={16} />}
|
>
|
||||||
{timeElapsed > 0 ? "Neustart" : "Rennen Starten"}
|
<RotateCcw size={16} />
|
||||||
</button>
|
Neustart
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="grid md:grid-cols-2 divide-y md:divide-y-0 md:divide-x divide-slate-100 bg-slate-50/50">
|
<div className="grid md:grid-cols-2 divide-y md:divide-y-0 md:divide-x divide-slate-100 bg-slate-50/50">
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ const envExtension = {
|
|||||||
// Mail Configuration
|
// Mail Configuration
|
||||||
MAIL_HOST: z.string().optional(),
|
MAIL_HOST: z.string().optional(),
|
||||||
MAIL_PORT: z.coerce.number().optional().default(587),
|
MAIL_PORT: z.coerce.number().optional().default(587),
|
||||||
MAIL_USER: z.string().optional(),
|
MAIL_USERNAME: z.string().optional(),
|
||||||
MAIL_PASS: z.string().optional(),
|
MAIL_PASSWORD: z.string().optional(),
|
||||||
MAIL_FROM: z.string().optional().default("marc@mintel.me"),
|
MAIL_FROM: z.string().optional().default("marc@mintel.me"),
|
||||||
MAIL_RECIPIENTS: z.string().optional().default("marc@mintel.me"),
|
MAIL_RECIPIENTS: z.string().optional().default("marc@mintel.me"),
|
||||||
|
|
||||||
@@ -21,8 +21,16 @@ const envExtension = {
|
|||||||
.optional()
|
.optional()
|
||||||
.default("https://analytics.infra.mintel.me"),
|
.default("https://analytics.infra.mintel.me"),
|
||||||
|
|
||||||
|
// S3 Storage (Required for importMap at build-time)
|
||||||
|
S3_ENDPOINT: z.string().optional(),
|
||||||
|
S3_ACCESS_KEY: z.string().optional(),
|
||||||
|
S3_SECRET_KEY: z.string().optional(),
|
||||||
|
S3_BUCKET: z.string().optional(),
|
||||||
|
S3_REGION: z.string().optional(),
|
||||||
|
S3_PREFIX: z.string().optional(),
|
||||||
|
|
||||||
// Error Tracking
|
// Error Tracking
|
||||||
SENTRY_DSN: z.string().url().optional(),
|
SENTRY_DSN: z.string().optional(),
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ function getTransporter() {
|
|||||||
port: env.MAIL_PORT,
|
port: env.MAIL_PORT,
|
||||||
secure: env.MAIL_PORT === 465,
|
secure: env.MAIL_PORT === 465,
|
||||||
auth: {
|
auth: {
|
||||||
user: env.MAIL_USER,
|
user: env.MAIL_USERNAME,
|
||||||
pass: env.MAIL_PASS,
|
pass: env.MAIL_PASSWORD,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export const initialState: FormState = {
|
|||||||
storageExpansion: 0,
|
storageExpansion: 0,
|
||||||
name: "",
|
name: "",
|
||||||
email: "",
|
email: "",
|
||||||
|
phone: "",
|
||||||
role: "",
|
role: "",
|
||||||
message: "",
|
message: "",
|
||||||
sitemapFile: null,
|
sitemapFile: null,
|
||||||
|
|||||||
@@ -1,89 +1,90 @@
|
|||||||
export type ProjectType = 'website' | 'web-app';
|
export type ProjectType = "website" | "web-app";
|
||||||
|
|
||||||
export interface FormState {
|
export interface FormState {
|
||||||
projectType: ProjectType;
|
projectType: ProjectType;
|
||||||
// Company
|
// Company
|
||||||
companyName: string;
|
companyName: string;
|
||||||
employeeCount: string;
|
employeeCount: string;
|
||||||
// Existing Presence
|
// Existing Presence
|
||||||
existingWebsite: string;
|
existingWebsite: string;
|
||||||
socialMedia: string[];
|
socialMedia: string[];
|
||||||
socialMediaUrls: Record<string, string>;
|
socialMediaUrls: Record<string, string>;
|
||||||
existingDomain: string;
|
existingDomain: string;
|
||||||
wishedDomain: string;
|
wishedDomain: string;
|
||||||
// Project
|
// Project
|
||||||
websiteTopic: string;
|
websiteTopic: string;
|
||||||
selectedPages: string[];
|
selectedPages: string[];
|
||||||
otherPages: string[];
|
otherPages: string[];
|
||||||
otherPagesCount: number;
|
otherPagesCount: number;
|
||||||
features: string[];
|
features: string[];
|
||||||
otherFeatures: string[];
|
otherFeatures: string[];
|
||||||
otherFeaturesCount: number;
|
otherFeaturesCount: number;
|
||||||
functions: string[];
|
functions: string[];
|
||||||
otherFunctions: string[];
|
otherFunctions: string[];
|
||||||
otherFunctionsCount: number;
|
otherFunctionsCount: number;
|
||||||
apiSystems: string[];
|
apiSystems: string[];
|
||||||
otherTech: string[];
|
otherTech: string[];
|
||||||
otherTechCount: number;
|
otherTechCount: number;
|
||||||
assets: string[];
|
assets: string[];
|
||||||
otherAssets: string[];
|
otherAssets: string[];
|
||||||
otherAssetsCount: number;
|
otherAssetsCount: number;
|
||||||
newDatasets: number;
|
newDatasets: number;
|
||||||
cmsSetup: boolean;
|
cmsSetup: boolean;
|
||||||
storageExpansion: number;
|
storageExpansion: number;
|
||||||
name: string;
|
name: string;
|
||||||
email: string;
|
email: string;
|
||||||
role: string;
|
phone: string;
|
||||||
message: string;
|
role: string;
|
||||||
sitemapFile: any; // Using any for File/null to be CLI-compatible
|
message: string;
|
||||||
contactFiles: any[]; // Using any[] for File[]
|
sitemapFile: any; // Using any for File/null to be CLI-compatible
|
||||||
// Design
|
contactFiles: any[]; // Using any[] for File[]
|
||||||
designVibe: string;
|
// Design
|
||||||
colorScheme: string[];
|
designVibe: string;
|
||||||
references: string[];
|
colorScheme: string[];
|
||||||
designWishes: string;
|
references: string[];
|
||||||
// Maintenance
|
designWishes: string;
|
||||||
expectedAdjustments: string;
|
// Maintenance
|
||||||
languagesList: string[];
|
expectedAdjustments: string;
|
||||||
// Timeline
|
languagesList: string[];
|
||||||
deadline: string;
|
// Timeline
|
||||||
// Web App specific
|
deadline: string;
|
||||||
targetAudience: string;
|
// Web App specific
|
||||||
userRoles: string[];
|
targetAudience: string;
|
||||||
dataSensitivity: string;
|
userRoles: string[];
|
||||||
platformType: string;
|
dataSensitivity: string;
|
||||||
// Meta
|
platformType: string;
|
||||||
dontKnows: string[];
|
// Meta
|
||||||
visualStaging: string;
|
dontKnows: string[];
|
||||||
complexInteractions: string;
|
visualStaging: string;
|
||||||
gridDontKnows?: Record<string, string>;
|
complexInteractions: string;
|
||||||
briefingSummary?: string;
|
gridDontKnows?: Record<string, string>;
|
||||||
companyAddress?: string;
|
briefingSummary?: string;
|
||||||
companyPhone?: string;
|
companyAddress?: string;
|
||||||
personName?: string;
|
companyPhone?: string;
|
||||||
taxId?: string;
|
personName?: string;
|
||||||
designVision?: string;
|
taxId?: string;
|
||||||
positionDescriptions?: Record<string, string>;
|
designVision?: string;
|
||||||
sitemap?: {
|
positionDescriptions?: Record<string, string>;
|
||||||
category: string;
|
sitemap?: {
|
||||||
pages: { title: string; desc: string }[];
|
category: string;
|
||||||
}[];
|
pages: { title: string; desc: string }[];
|
||||||
|
}[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Position {
|
export interface Position {
|
||||||
pos: number;
|
pos: number;
|
||||||
title: string;
|
title: string;
|
||||||
desc: string;
|
desc: string;
|
||||||
qty: number;
|
qty: number;
|
||||||
price: number;
|
price: number;
|
||||||
isRecurring?: boolean;
|
isRecurring?: boolean;
|
||||||
}
|
}
|
||||||
export interface Totals {
|
export interface Totals {
|
||||||
totalPrice: number;
|
totalPrice: number;
|
||||||
monthlyPrice: number;
|
monthlyPrice: number;
|
||||||
totalPagesCount: number;
|
totalPagesCount: number;
|
||||||
totalFeatures: number;
|
totalFeatures: number;
|
||||||
totalFunctions: number;
|
totalFunctions: number;
|
||||||
totalApis: number;
|
totalApis: number;
|
||||||
languagesCount: number;
|
languagesCount: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const ArchitectureBuilderBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "ArchitectureBuilder",
|
|
||||||
description:
|
|
||||||
"Interactive comparison between a standard SaaS rental approach and a custom Built-First (Mintel) architecture. Useful for articles discussing digital ownership, software rent vs. build, or technological assets. Requires no props.",
|
|
||||||
usageExample: "'<ArchitectureBuilder />'",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "preset",
|
name: "preset",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const ArticleBlockquoteBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "ArticleBlockquote",
|
|
||||||
description: "Styled blockquote for expert quotes or key statements.",
|
|
||||||
usageExample:
|
|
||||||
"'<ArticleBlockquote>\n Performance ist keine IT-Kennzahl, sondern ein ökonomischer Hebel.\n</ArticleBlockquote>'",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "quote",
|
name: "quote",
|
||||||
@@ -25,7 +19,7 @@ export const ArticleBlockquoteBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für quote ein.",
|
description: "Geben Sie den mehrzeiligen Text für quote ein.",
|
||||||
@@ -37,7 +31,7 @@ export const ArticleBlockquoteBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für author ein.",
|
description: "Geben Sie den Text für author ein.",
|
||||||
@@ -49,7 +43,7 @@ export const ArticleBlockquoteBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für role ein.",
|
description: "Geben Sie den Text für role ein.",
|
||||||
|
|||||||
@@ -10,13 +10,6 @@ export const ArticleMemeBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "ArticleMeme",
|
|
||||||
description:
|
|
||||||
"Real image-based meme from the media library. Use for static screenshots or custom memes that are not available via memegen.link.",
|
|
||||||
usageExample:
|
|
||||||
'<ArticleMeme image="/media/my-meme.png" alt="Sarcastic dev meme" caption="When the code finally builds." />',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
@@ -32,7 +25,7 @@ export const ArticleMemeBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für alt ein.",
|
description: "Geben Sie den Text für alt ein.",
|
||||||
@@ -44,7 +37,7 @@ export const ArticleMemeBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für caption ein.",
|
description: "Geben Sie den Text für caption ein.",
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const ArticleQuoteBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für quote ein.",
|
description: "Geben Sie den mehrzeiligen Text für quote ein.",
|
||||||
@@ -39,7 +39,7 @@ export const ArticleQuoteBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für author ein.",
|
description: "Geben Sie den Text für author ein.",
|
||||||
@@ -51,7 +51,7 @@ export const ArticleQuoteBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für role ein.",
|
description: "Geben Sie den Text für role ein.",
|
||||||
@@ -63,7 +63,7 @@ export const ArticleQuoteBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für source ein.",
|
description: "Geben Sie den Text für source ein.",
|
||||||
@@ -75,7 +75,7 @@ export const ArticleQuoteBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für sourceUrl ein.",
|
description: "Geben Sie den Text für sourceUrl ein.",
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const BoldNumberBlock: MintelBlock = {
|
|||||||
description: "e.g. 53% or 2.5M€",
|
description: "e.g. 53% or 2.5M€",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -38,7 +38,7 @@ export const BoldNumberBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für label ein.",
|
description: "Geben Sie den Text für label ein.",
|
||||||
@@ -50,7 +50,7 @@ export const BoldNumberBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für source ein.",
|
description: "Geben Sie den Text für source ein.",
|
||||||
@@ -62,7 +62,7 @@ export const BoldNumberBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für sourceUrl ein.",
|
description: "Geben Sie den Text für sourceUrl ein.",
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const ButtonBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "Button",
|
|
||||||
description:
|
|
||||||
"DEPRECATED: Use <LeadMagnet /> instead for main CTAs. Only use for small secondary links.",
|
|
||||||
usageExample:
|
|
||||||
'<Button href="/contact" variant="outline">Webprojekt anfragen</Button>',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "label",
|
name: "label",
|
||||||
@@ -26,7 +19,7 @@ export const ButtonBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für label ein.",
|
description: "Geben Sie den Text für label ein.",
|
||||||
|
|||||||
@@ -11,18 +11,21 @@ export const CarouselBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "Carousel",
|
|
||||||
description:
|
|
||||||
"Interactive swipeable slider for multi-step explanations. IMPORTANT: items array must contain at least 2 items with substantive title and content text (no empty content).",
|
|
||||||
usageExample:
|
|
||||||
'\'<Carousel items={[{ title: "Schritt 1", content: "Analyse der aktuellen Performance..."',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "slides",
|
name: "slides",
|
||||||
type: "array",
|
type: "array",
|
||||||
fields: [
|
fields: [
|
||||||
|
{
|
||||||
|
name: "title",
|
||||||
|
type: "text",
|
||||||
|
admin: { description: "Titel der Slide-Karte." },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "content",
|
||||||
|
type: "textarea",
|
||||||
|
admin: { description: "Beschreibungstext der Slide-Karte." },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
type: "upload",
|
type: "upload",
|
||||||
@@ -35,7 +38,7 @@ export const CarouselBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für caption ein.",
|
description: "Geben Sie den Text für caption ein.",
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export const ComparisonRowBlock: MintelBlock = {
|
|||||||
description: "Optional overarching description for the comparison.",
|
description: "Optional overarching description for the comparison.",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -44,7 +44,7 @@ export const ComparisonRowBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für negativeLabel ein.",
|
description: "Geben Sie den Text für negativeLabel ein.",
|
||||||
@@ -57,7 +57,7 @@ export const ComparisonRowBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für negativeText ein.",
|
description: "Geben Sie den Text für negativeText ein.",
|
||||||
@@ -71,7 +71,7 @@ export const ComparisonRowBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für positiveLabel ein.",
|
description: "Geben Sie den Text für positiveLabel ein.",
|
||||||
@@ -84,7 +84,7 @@ export const ComparisonRowBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für positiveText ein.",
|
description: "Geben Sie den Text für positiveText ein.",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const DiagramFlowBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "DiagramFlow",
|
|
||||||
description:
|
|
||||||
"Mermaid flowchart diagram defining the graph structure. MUST output raw mermaid code, no quotes or HTML.",
|
|
||||||
usageExample: "graph TD\\n A[Start] --> B[End]",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "definition",
|
name: "definition",
|
||||||
@@ -25,7 +19,7 @@ export const DiagramFlowBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const DiagramGanttBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "DiagramGantt",
|
|
||||||
description: "Mermaid Gantt timeline chart. MUST output raw mermaid code.",
|
|
||||||
usageExample:
|
|
||||||
"gantt\\n title Project Roadmap\\n dateFormat YYYY-MM-DD\\n Section Design\\n Draft UI :a1, 2024-01-01, 7d",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "definition",
|
name: "definition",
|
||||||
@@ -25,7 +19,7 @@ export const DiagramGanttBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
||||||
|
|||||||
@@ -11,11 +11,6 @@ export const DiagramPieBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "DiagramPie",
|
|
||||||
description: "Mermaid pie chart diagram. MUST output raw mermaid code.",
|
|
||||||
usageExample: 'pie title Market Share\\n "Chrome" : 60\\n "Safari" : 20',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "definition",
|
name: "definition",
|
||||||
@@ -24,7 +19,7 @@ export const DiagramPieBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const DiagramSequenceBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "DiagramSequence",
|
|
||||||
description:
|
|
||||||
"Mermaid sequence diagram showing actor interactions. MUST output raw mermaid code.",
|
|
||||||
usageExample:
|
|
||||||
"sequenceDiagram\\n Client->>Server: GET /api\\n Server-->>Client: 200 OK",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "definition",
|
name: "definition",
|
||||||
@@ -26,7 +19,7 @@ export const DiagramSequenceBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const DiagramStateBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "DiagramState",
|
|
||||||
description:
|
|
||||||
"Mermaid state diagram showing states and transitions. MUST output raw mermaid code.",
|
|
||||||
usageExample: "stateDiagram-v2\\n [*] --> Idle\\n Idle --> Loading",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "definition",
|
name: "definition",
|
||||||
@@ -25,7 +19,7 @@ export const DiagramStateBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const DiagramTimelineBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "DiagramTimeline",
|
|
||||||
description:
|
|
||||||
"Mermaid timeline or journey diagram. MUST output raw mermaid code.",
|
|
||||||
usageExample:
|
|
||||||
"timeline\\n title Project Timeline\\n 2024\\n : Q1 : Planning\\n : Q2 : Execution",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "definition",
|
name: "definition",
|
||||||
@@ -26,7 +19,7 @@ export const DiagramTimelineBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const DigitalAssetVisualizerBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "DigitalAssetVisualizer",
|
|
||||||
description:
|
|
||||||
"Interactive visualization illustrating the financial difference between software as a liability (SaaS/rent) and software as a digital asset (Custom IP). Great for articles concerning CTO strategies, business value of code, and digital independence. Requires no props.",
|
|
||||||
usageExample: "'<DigitalAssetVisualizer />'",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "assetId",
|
name: "assetId",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export const ExternalLinkBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für label ein.",
|
description: "Geben Sie den Text für label ein.",
|
||||||
|
|||||||
@@ -16,13 +16,6 @@ export const FAQSectionBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "FAQSection",
|
|
||||||
description:
|
|
||||||
"Semantic wrapper for FAQ questions at the end of the article. Put standard Markdown H3/Paragraphs inside.",
|
|
||||||
usageExample:
|
|
||||||
"'<FAQSection>\n <H3>Frage 1</H3>\n <Paragraph>Antwort 1</Paragraph>\n</FAQSection>'",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export const H2Block: MintelBlock = {
|
|||||||
description: "Geben Sie den Text für die H2-Überschrift ein.",
|
description: "Geben Sie den Text für die H2-Überschrift ein.",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export const H3Block: MintelBlock = {
|
|||||||
description: "Geben Sie den Text für die H3-Überschrift ein.",
|
description: "Geben Sie den Text für die H3-Überschrift ein.",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export const HeadingBlock: MintelBlock = {
|
|||||||
description: "Der Text der Überschrift.",
|
description: "Der Text der Überschrift.",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export const IconListBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für title ein.",
|
description: "Geben Sie den Text für title ein.",
|
||||||
@@ -56,7 +56,7 @@ export const IconListBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für description ein.",
|
description: "Geben Sie den mehrzeiligen Text für description ein.",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const ImageTextBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "ImageText",
|
|
||||||
description: "Layout component for image next to explanatory text.",
|
|
||||||
usageExample:
|
|
||||||
'\'<ImageText image="/img.jpg" title="Architektur">Erklärung...</ImageText>\'',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
@@ -32,7 +26,7 @@ export const ImageTextBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für text ein.",
|
description: "Geben Sie den mehrzeiligen Text für text ein.",
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export const LeadMagnetBlock: MintelBlock = {
|
|||||||
description: "The strong headline for the Call-to-Action",
|
description: "The strong headline for the Call-to-Action",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -40,7 +40,7 @@ export const LeadMagnetBlock: MintelBlock = {
|
|||||||
description: "The value proposition text.",
|
description: "The value proposition text.",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -53,7 +53,7 @@ export const LeadMagnetBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für buttonText ein.",
|
description: "Geben Sie den Text für buttonText ein.",
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const LeadParagraphBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für text ein.",
|
description: "Geben Sie den mehrzeiligen Text für text ein.",
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const LinkedInEmbedBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "LinkedInEmbed",
|
|
||||||
description:
|
|
||||||
"Embeds a professional post from LinkedIn. Use the activity URN (e.g. urn:li:activity:1234567890).",
|
|
||||||
usageExample:
|
|
||||||
"'<LinkedInEmbed urn=\"urn:li:activity:7153664326573674496\" />'",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "url",
|
name: "url",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const LoadTimeSimulatorBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "LoadTimeSimulator",
|
|
||||||
description:
|
|
||||||
"Interactive visual race simulating the loading experience of a slow legacy CMS vs a fast headless stack. Great for articles discussing load times, technical debt, or user frustration. Requires no props.",
|
|
||||||
usageExample: "'<LoadTimeSimulator />'",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "initialLoadTime",
|
name: "initialLoadTime",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const MarkerBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "Marker",
|
|
||||||
description:
|
|
||||||
"Inline highlight (yellow marker effect) for emphasizing key phrases within paragraphs.",
|
|
||||||
usageExample: "'<Marker>entscheidender Wettbewerbsvorteil</Marker>'",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "text",
|
name: "text",
|
||||||
@@ -25,7 +19,7 @@ export const MarkerBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für text ein.",
|
description: "Geben Sie den Text für text ein.",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export const MemeCardBlock: MintelBlock = {
|
|||||||
ai: {
|
ai: {
|
||||||
name: "MemeCard",
|
name: "MemeCard",
|
||||||
description:
|
description:
|
||||||
'Real meme image from memegen.link. template must be a valid memegen.link ID. IMPORTANT: Captions must be EXTREMELY SARCASTIC and PUNCHY (mocking bad B2B agencies, max 6 words per line). Best templates: drake (2-line prefer/dislike), gru (4-step plan backfire), disastergirl (burning house), fine (this is fine dog). Use German captions. Wrap in div with className="my-8".',
|
"Real meme from memegen.link. ONLY use these templates: drake, distracted-bf, change-my-mind, uno-draw-25, always-has-been. Captions MUST be in German, extremely sarcastic, max 6 words per line. Use pipe | to separate caption lines. Use sparingly: MAX 1 meme per article.",
|
||||||
usageExample: `<div className="my-8">
|
usageExample: `<div className="my-8">
|
||||||
<MemeCard template="drake" captions="47 WordPress Plugins installieren|Eine saubere Serverless Architektur" />
|
<MemeCard template="drake" captions="47 WordPress Plugins installieren|Eine saubere Serverless Architektur" />
|
||||||
</div>`,
|
</div>`,
|
||||||
@@ -28,7 +28,7 @@ export const MemeCardBlock: MintelBlock = {
|
|||||||
"The template ID from memegen.link (e.g. 'drake', 'disastergirl')",
|
"The template ID from memegen.link (e.g. 'drake', 'disastergirl')",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -42,7 +42,7 @@ export const MemeCardBlock: MintelBlock = {
|
|||||||
"Pipe-separated captions for the meme (e.g. 'Legacy Code|Mintel Stack'). Maximum 6 words per line.",
|
"Pipe-separated captions for the meme (e.g. 'Legacy Code|Mintel Stack'). Maximum 6 words per line.",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export const MermaidBlock: MintelBlock = {
|
|||||||
description: "Optional title displayed above the diagram.",
|
description: "Optional title displayed above the diagram.",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -59,7 +59,7 @@ export const MermaidBlock: MintelBlock = {
|
|||||||
"The raw Mermaid.js syntax (e.g. graph TD... shadowing, loops, etc.).",
|
"The raw Mermaid.js syntax (e.g. graph TD... shadowing, loops, etc.).",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const MetricBarBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "MetricBar",
|
|
||||||
description:
|
|
||||||
"Animated horizontal progress bar. Use multiple in sequence to compare metrics. IMPORTANT: value MUST be a real number > 0, never use 0 or placeholder values. Props: label, value (number), max (default 100), unit (default %), color (red|green|blue|slate).",
|
|
||||||
usageExample: '<MetricBar label="WordPress Sites" value={33',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "label",
|
name: "label",
|
||||||
@@ -25,7 +19,7 @@ export const MetricBarBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für label ein.",
|
description: "Geben Sie den Text für label ein.",
|
||||||
@@ -50,7 +44,7 @@ export const MetricBarBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für unit ein.",
|
description: "Geben Sie den Text für unit ein.",
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const ParagraphBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den mehrzeiligen Text für text ein.",
|
description: "Geben Sie den mehrzeiligen Text für text ein.",
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const PerformanceChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "PerformanceChart",
|
|
||||||
description:
|
|
||||||
"A visual chart illustrating performance metrics (e.g. PageSpeed, TTFB) over time or in comparison. Use to emphasize technical improvements.",
|
|
||||||
usageExample:
|
|
||||||
'<PerformanceChart items={[{ label: "Vorher", value: 12 }, { label: "Nachher", value: 98 }]} />',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "title",
|
name: "title",
|
||||||
@@ -26,7 +19,7 @@ export const PerformanceChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für title ein.",
|
description: "Geben Sie den Text für title ein.",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const PerformanceROICalculatorBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "PerformanceROICalculator",
|
|
||||||
description:
|
|
||||||
"Interactive simulation calculator showing the monetary ROI of improving load times (based on Deloitte B2B metrics). Use exactly once in performance-related articles to provide a highly engaging simulation. Requires no props.",
|
|
||||||
usageExample: "'<PerformanceROICalculator />'",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "baseConversionRate",
|
name: "baseConversionRate",
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const PremiumComparisonChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "PremiumComparisonChart",
|
|
||||||
description:
|
|
||||||
"Advanced chart for comparing performance metrics with industrial aesthetics.",
|
|
||||||
usageExample:
|
|
||||||
'\'<PremiumComparisonChart title="TTFB Vergleich" items={[{ label: "Alt", value: 800, max: 1000, color: "red"',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "title",
|
name: "title",
|
||||||
@@ -25,7 +18,7 @@ export const PremiumComparisonChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für title ein.",
|
description: "Geben Sie den Text für title ein.",
|
||||||
@@ -37,7 +30,7 @@ export const PremiumComparisonChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für subtitle ein.",
|
description: "Geben Sie den Text für subtitle ein.",
|
||||||
@@ -54,7 +47,7 @@ export const PremiumComparisonChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für label ein.",
|
description: "Geben Sie den Text für label ein.",
|
||||||
@@ -82,7 +75,7 @@ export const PremiumComparisonChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für unit ein.",
|
description: "Geben Sie den Text für unit ein.",
|
||||||
@@ -102,7 +95,7 @@ export const PremiumComparisonChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für description ein.",
|
description: "Geben Sie den Text für description ein.",
|
||||||
|
|||||||
@@ -12,13 +12,6 @@ export const RevealBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "Reveal",
|
|
||||||
description:
|
|
||||||
"Scroll-triggered reveal animation wrapper. Wrap any content to animate on scroll.",
|
|
||||||
usageExample:
|
|
||||||
'\'<Reveal>\n <StatsDisplay value="100" label="PageSpeed Score" />\n</Reveal>\'',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "direction",
|
name: "direction",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const RevenueLossCalculatorBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "RevenueLossCalculator",
|
|
||||||
description:
|
|
||||||
"Interactive calculator that estimates financial loss due to slow page load times. Use to build a business case for performance optimization.",
|
|
||||||
usageExample: "<RevenueLossCalculator />",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "title",
|
name: "title",
|
||||||
@@ -25,7 +19,7 @@ export const RevenueLossCalculatorBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für title ein.",
|
description: "Geben Sie den Text für title ein.",
|
||||||
|
|||||||
@@ -12,12 +12,6 @@ export const SectionBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "Section",
|
|
||||||
description: "Wraps a thematic section block with optional heading.",
|
|
||||||
usageExample:
|
|
||||||
"'<Section>\n <h3>Section Title</h3>\n <p>Content here.</p>\n</Section>'",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "title",
|
name: "title",
|
||||||
@@ -25,7 +19,7 @@ export const SectionBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für title ein.",
|
description: "Geben Sie den Text für title ein.",
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const StatsDisplayBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "StatsDisplay",
|
|
||||||
description:
|
|
||||||
"A single large stat card with prominent value, label, and optional subtext.",
|
|
||||||
usageExample:
|
|
||||||
'\'<StatsDisplay value="-20%" label="Conversion" subtext="Jede Sekunde Verzögerung kostet." />\'',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "label",
|
name: "label",
|
||||||
@@ -25,7 +18,7 @@ export const StatsDisplayBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für label ein.",
|
description: "Geben Sie den Text für label ein.",
|
||||||
@@ -38,7 +31,7 @@ export const StatsDisplayBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für value ein.",
|
description: "Geben Sie den Text für value ein.",
|
||||||
@@ -50,7 +43,7 @@ export const StatsDisplayBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für subtext ein.",
|
description: "Geben Sie den Text für subtext ein.",
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const StatsGridBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "StatsGrid",
|
|
||||||
description:
|
|
||||||
"Grid of 2–4 stat cards in a row. Use tilde (~) to separate stats, pipe (|) to separate value|label|subtext within each stat.",
|
|
||||||
usageExample:
|
|
||||||
"'<StatsGrid stats=\"53%|Mehr Umsatz|Rakuten 24~33%|Conversion Boost|nach CWV Fix~24%|Top 3 Ranking|bei bestandenen CWV\" />'",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "stats",
|
name: "stats",
|
||||||
@@ -30,7 +23,7 @@ export const StatsGridBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für label ein.",
|
description: "Geben Sie den Text für label ein.",
|
||||||
@@ -43,7 +36,7 @@ export const StatsGridBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für value ein.",
|
description: "Geben Sie den Text für value ein.",
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const TLDRBlock: MintelBlock = {
|
|||||||
description: "The summary content for the TLDR box.",
|
description: "The summary content for the TLDR box.",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const TrackedLinkBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "TrackedLink",
|
|
||||||
description:
|
|
||||||
"A wrapper around next/link that tracks clicks. Use for all INTERNAL navigational links that should be tracked.",
|
|
||||||
usageExample:
|
|
||||||
'\'<TrackedLink href="/contact" className="text-blue-600 font-bold">Jetzt anfragen</TrackedLink>\'',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "href",
|
name: "href",
|
||||||
@@ -32,7 +25,7 @@ export const TrackedLinkBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für label ein.",
|
description: "Geben Sie den Text für label ein.",
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const TwitterEmbedBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "TwitterEmbed",
|
|
||||||
description:
|
|
||||||
"Embeds a post from X.com (Twitter). Used to provide social proof, industry quotes, or examples. Provide the numerical tweetId.",
|
|
||||||
usageExample:
|
|
||||||
'\'<TwitterEmbed tweetId="1753464161943834945" theme="light" />\'',
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "url",
|
name: "url",
|
||||||
|
|||||||
@@ -11,15 +11,6 @@ export const WaterfallChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "WaterfallChart",
|
|
||||||
description:
|
|
||||||
"A timeline visualization of network requests (waterfall). Use to show loading sequences or bottlenecks. Labels auto-color coded by type (JS, HTML, IMG).",
|
|
||||||
usageExample: `<WaterfallChart
|
|
||||||
title="Initial Load"
|
|
||||||
events={[
|
|
||||||
{ name: "Document", start: 0, duration: 150`,
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "title",
|
name: "title",
|
||||||
@@ -27,7 +18,7 @@ export const WaterfallChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für title ein.",
|
description: "Geben Sie den Text für title ein.",
|
||||||
@@ -44,7 +35,7 @@ export const WaterfallChartBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für label ein.",
|
description: "Geben Sie den Text für label ein.",
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ export const WebVitalsScoreBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
group: "MDX Components",
|
group: "MDX Components",
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
name: "WebVitalsScore",
|
|
||||||
description:
|
|
||||||
"Displays Core Web Vitals (LCP, INP, CLS) in a premium card layout with automatic traffic light coloring (Good/Needs Improvement/Poor). Use for performance audits or comparisons.",
|
|
||||||
usageExample: "'<WebVitalsScore values={{ lcp: 2.5, inp: 200, cls: 0.1",
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "lcp",
|
name: "lcp",
|
||||||
@@ -42,7 +36,7 @@ export const WebVitalsScoreBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für description ein.",
|
description: "Geben Sie den Text für description ein.",
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export const YouTubeEmbedBlock: MintelBlock = {
|
|||||||
admin: {
|
admin: {
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
description: "Geben Sie den Text für title ein.",
|
description: "Geben Sie den Text für title ein.",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { CollectionConfig } from "payload";
|
import type { CollectionConfig } from "payload";
|
||||||
|
import { bulkMailEndpointHandler } from "../endpoints/bulkMailEndpoint";
|
||||||
export const CrmContacts: CollectionConfig = {
|
export const CrmContacts: CollectionConfig = {
|
||||||
slug: "crm-contacts",
|
slug: "crm-contacts",
|
||||||
labels: {
|
labels: {
|
||||||
@@ -12,7 +12,21 @@ export const CrmContacts: CollectionConfig = {
|
|||||||
group: "CRM",
|
group: "CRM",
|
||||||
description:
|
description:
|
||||||
"Contacts are the individual people linked to an Account. A person should only be created once and can be assigned to a company here.",
|
"Contacts are the individual people linked to an Account. A person should only be created once and can be assigned to a company here.",
|
||||||
|
components: {
|
||||||
|
views: {
|
||||||
|
list: {
|
||||||
|
actions: ["@/src/payload/components/BulkMailButton#BulkMailButton"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
endpoints: [
|
||||||
|
{
|
||||||
|
path: "/bulk-mail",
|
||||||
|
method: "post",
|
||||||
|
handler: bulkMailEndpointHandler,
|
||||||
|
},
|
||||||
|
],
|
||||||
access: {
|
access: {
|
||||||
read: ({ req: { user } }) => Boolean(user),
|
read: ({ req: { user } }) => Boolean(user),
|
||||||
create: ({ req: { user } }) => Boolean(user),
|
create: ({ req: { user } }) => Boolean(user),
|
||||||
|
|||||||
@@ -62,10 +62,22 @@ export const Inquiries: CollectionConfig = {
|
|||||||
name: "companyName",
|
name: "companyName",
|
||||||
type: "text",
|
type: "text",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "phone",
|
||||||
|
type: "text",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "role",
|
||||||
|
type: "text",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "projectType",
|
name: "projectType",
|
||||||
type: "text",
|
type: "text",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "deadline",
|
||||||
|
type: "text",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "message",
|
name: "message",
|
||||||
type: "textarea",
|
type: "textarea",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { CollectionConfig } from "payload";
|
import type { CollectionConfig } from "payload";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { fileURLToPath } from "url";
|
import { fileURLToPath } from "url";
|
||||||
import { replicateMediaHandler } from "@mintel/payload-ai/endpoints/replicateMediaEndpoint.js";
|
import { replicateMediaHandler } from "@mintel/payload-ai/endpoints/replicateMediaEndpoint";
|
||||||
|
|
||||||
const filename = fileURLToPath(import.meta.url);
|
const filename = fileURLToPath(import.meta.url);
|
||||||
const dirname = path.dirname(filename);
|
const dirname = path.dirname(filename);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export const Posts: CollectionConfig = {
|
|||||||
position: "sidebar",
|
position: "sidebar",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/GenerateSlugButton#GenerateSlugButton",
|
"@mintel/payload-ai/components/FieldGenerators/GenerateSlugButton#GenerateSlugButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -100,7 +100,7 @@ export const Posts: CollectionConfig = {
|
|||||||
position: "sidebar",
|
position: "sidebar",
|
||||||
components: {
|
components: {
|
||||||
afterInput: [
|
afterInput: [
|
||||||
"@mintel/payload-ai/components/GenerateThumbnailButton#GenerateThumbnailButton",
|
"@mintel/payload-ai/components/FieldGenerators/GenerateThumbnailButton#GenerateThumbnailButton",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
147
apps/web/src/payload/components/BulkMailButton.tsx
Normal file
147
apps/web/src/payload/components/BulkMailButton.tsx
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import React, { useState } from "react";
|
||||||
|
import { useSelection, Button, toast } from "@payloadcms/ui";
|
||||||
|
|
||||||
|
export const BulkMailButton: React.FC = () => {
|
||||||
|
const { selected } = useSelection();
|
||||||
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
|
const [prompt, setPrompt] = useState("");
|
||||||
|
const [isTest, setIsTest] = useState(true);
|
||||||
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
|
|
||||||
|
const selectedCount = Object.keys(selected).length;
|
||||||
|
|
||||||
|
if (selectedCount === 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const handleBulkMail = async () => {
|
||||||
|
setIsLoading(true);
|
||||||
|
try {
|
||||||
|
const contactIds = Object.keys(selected);
|
||||||
|
|
||||||
|
const response = await fetch("/api/crm-contacts/bulk-mail", {
|
||||||
|
method: "POST",
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
body: JSON.stringify({
|
||||||
|
contactIds,
|
||||||
|
instructions: prompt,
|
||||||
|
isTest,
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
||||||
|
const data = await response.json();
|
||||||
|
|
||||||
|
if (data.success) {
|
||||||
|
toast.success(
|
||||||
|
`Successfully sent emails to ${contactIds.length} contacts.`,
|
||||||
|
);
|
||||||
|
setIsOpen(false);
|
||||||
|
} else {
|
||||||
|
toast.error(`Failed: ${data.error}`);
|
||||||
|
}
|
||||||
|
} catch (e: any) {
|
||||||
|
toast.error(`An error occurred: ${e.message}`);
|
||||||
|
} finally {
|
||||||
|
setIsLoading(false);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div style={{ display: "inline-block", marginLeft: "1rem" }}>
|
||||||
|
<Button
|
||||||
|
onClick={() => setIsOpen(true)}
|
||||||
|
buttonStyle="primary"
|
||||||
|
size="small"
|
||||||
|
>
|
||||||
|
🤖 AI Bulk Mail ({selectedCount})
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
{isOpen && (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: "fixed",
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
bottom: 0,
|
||||||
|
backgroundColor: "rgba(0,0,0,0.5)",
|
||||||
|
zIndex: 9999,
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
background: "var(--theme-elevation-100, #fff)",
|
||||||
|
color: "var(--theme-text, #000)",
|
||||||
|
padding: "2rem",
|
||||||
|
borderRadius: "8px",
|
||||||
|
width: "500px",
|
||||||
|
maxWidth: "90vw",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<h2 style={{ marginTop: 0 }}>AI Bulk Mail</h2>
|
||||||
|
<p>
|
||||||
|
Generate and send personalized emails to {selectedCount} contacts.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div style={{ marginBottom: "1rem" }}>
|
||||||
|
<label style={{ display: "block", marginBottom: "0.5rem" }}>
|
||||||
|
<strong>Prompt / Instructions for AI</strong>
|
||||||
|
</label>
|
||||||
|
<textarea
|
||||||
|
value={prompt}
|
||||||
|
onChange={(e) => setPrompt(e.target.value)}
|
||||||
|
placeholder="e.g. Mache ein Angebot für ein neues Messe-Design"
|
||||||
|
style={{
|
||||||
|
width: "100%",
|
||||||
|
height: "100px",
|
||||||
|
padding: "0.5rem",
|
||||||
|
borderRadius: "4px",
|
||||||
|
border: "1px solid var(--theme-elevation-400, #ccc)",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style={{ marginBottom: "1.5rem" }}>
|
||||||
|
<label
|
||||||
|
style={{ display: "flex", alignItems: "center", gap: "0.5rem" }}
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
checked={isTest}
|
||||||
|
onChange={(e) => setIsTest(e.target.checked)}
|
||||||
|
/>
|
||||||
|
<strong>Test Mode</strong> (Send all emails to yourself)
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
display: "flex",
|
||||||
|
gap: "1rem",
|
||||||
|
justifyContent: "flex-end",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Button
|
||||||
|
buttonStyle="secondary"
|
||||||
|
onClick={() => setIsOpen(false)}
|
||||||
|
disabled={isLoading}
|
||||||
|
>
|
||||||
|
Cancel
|
||||||
|
</Button>
|
||||||
|
<Button onClick={handleBulkMail} disabled={isLoading || !prompt}>
|
||||||
|
{isLoading ? "Sending..." : "Send Emails"}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
191
apps/web/src/payload/endpoints/bulkMailEndpoint.ts
Normal file
191
apps/web/src/payload/endpoints/bulkMailEndpoint.ts
Normal file
@@ -0,0 +1,191 @@
|
|||||||
|
import { PayloadRequest } from "payload";
|
||||||
|
|
||||||
|
export const bulkMailEndpointHandler = async (req: PayloadRequest) => {
|
||||||
|
try {
|
||||||
|
let body: any = {};
|
||||||
|
if (req.body) {
|
||||||
|
try {
|
||||||
|
body = (await req.json?.()) || {};
|
||||||
|
} catch (_e) {
|
||||||
|
body = req.body;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const { contactIds, instructions, isTest } = body;
|
||||||
|
|
||||||
|
if (!req.user) {
|
||||||
|
return Response.json(
|
||||||
|
{ success: false, error: "Unauthorized" },
|
||||||
|
{ status: 401 },
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!Array.isArray(contactIds) || contactIds.length === 0) {
|
||||||
|
return Response.json(
|
||||||
|
{ success: false, error: "No contacts selected" },
|
||||||
|
{ status: 400 },
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const OPENROUTER_KEY =
|
||||||
|
process.env.OPENROUTER_KEY || process.env.OPENROUTER_API_KEY;
|
||||||
|
if (!OPENROUTER_KEY) {
|
||||||
|
return Response.json(
|
||||||
|
{ success: false, error: "Missing OPENROUTER_API_KEY" },
|
||||||
|
{ status: 500 },
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const sentEmails = [];
|
||||||
|
const interactions = [];
|
||||||
|
|
||||||
|
for (const contactId of contactIds) {
|
||||||
|
// Fetch contact with account populated
|
||||||
|
const contact = await req.payload.findByID({
|
||||||
|
collection: "crm-contacts",
|
||||||
|
id: contactId,
|
||||||
|
depth: 1,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!contact || !contact.email) continue;
|
||||||
|
|
||||||
|
const account = contact.account as any;
|
||||||
|
const accountInfo = account
|
||||||
|
? `
|
||||||
|
Company Name: ${account.name || "Unknown"}
|
||||||
|
Website: ${account.website || "Unknown"}
|
||||||
|
Industry: ${account.industry || "Unknown"}
|
||||||
|
Website Status: ${account.websiteStatus || "Unknown"}
|
||||||
|
Internal Notes: ${account.notes || "None"}
|
||||||
|
`
|
||||||
|
: "No company information available.";
|
||||||
|
|
||||||
|
const prompt = `You are an expert sales/business development AI assistant. Write a professional, personalized German B2B outreach email ("Anschreiben").
|
||||||
|
|
||||||
|
CONTEXT ABOUT THE CONTACT:
|
||||||
|
Name: ${contact.fullName || contact.firstName || "Unknown"}
|
||||||
|
Role: ${contact.role || "Unknown"}
|
||||||
|
|
||||||
|
CONTEXT ABOUT THEIR COMPANY:
|
||||||
|
${accountInfo}
|
||||||
|
|
||||||
|
USER INSTRUCTIONS / GOAL OF THE EMAIL:
|
||||||
|
${instructions}
|
||||||
|
|
||||||
|
CRITICAL INSTRUCTIONS:
|
||||||
|
1. Write the email subject on the FIRST line as: "SUBJECT: <Your Subject>"
|
||||||
|
2. The rest of the message should be the email body.
|
||||||
|
3. Keep it professional and natural in German (Sie-form unless you think Du is appropriate based on the industry, but prefer Sie).
|
||||||
|
4. Output only the email text, no markdown code blocks around it. No extra chit-chat.
|
||||||
|
`;
|
||||||
|
|
||||||
|
const res = await fetch("https://openrouter.ai/api/v1/chat/completions", {
|
||||||
|
method: "POST",
|
||||||
|
headers: {
|
||||||
|
Authorization: `Bearer ${OPENROUTER_KEY}`,
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
body: JSON.stringify({
|
||||||
|
model: "google/gemini-3-flash-preview",
|
||||||
|
messages: [{ role: "user", content: prompt }],
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
||||||
|
const data = await res.json();
|
||||||
|
const generatedText = data.choices?.[0]?.message?.content?.trim() || "";
|
||||||
|
|
||||||
|
if (!generatedText) {
|
||||||
|
console.error("AI Generation failed for contact", contactId);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Parse subject and body
|
||||||
|
const lines = generatedText.split("\n");
|
||||||
|
let subject = "Information von Mintel";
|
||||||
|
let bodyText = generatedText;
|
||||||
|
|
||||||
|
if (lines[0].startsWith("SUBJECT:")) {
|
||||||
|
subject = lines[0].replace("SUBJECT:", "").trim();
|
||||||
|
bodyText = lines.slice(1).join("\n").trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Use a simple HTML wrapper to preserve line breaks
|
||||||
|
const htmlBody = `<p>${bodyText.replace(/\n/g, "<br/>")}</p>`;
|
||||||
|
|
||||||
|
const targetEmail = isTest ? req.user.email : contact.email;
|
||||||
|
|
||||||
|
// Send the email
|
||||||
|
await req.payload.sendEmail({
|
||||||
|
to: targetEmail,
|
||||||
|
subject: (isTest ? "[TEST] " : "") + subject,
|
||||||
|
html: htmlBody,
|
||||||
|
});
|
||||||
|
|
||||||
|
sentEmails.push({ contactId, email: targetEmail });
|
||||||
|
|
||||||
|
if (!isTest) {
|
||||||
|
// Log interaction
|
||||||
|
const interaction = await req.payload.create({
|
||||||
|
collection: "crm-interactions",
|
||||||
|
data: {
|
||||||
|
type: "email",
|
||||||
|
subject: `Outbound AI Mail: ${subject}`,
|
||||||
|
date: new Date().toISOString(),
|
||||||
|
contact: contact.id,
|
||||||
|
account: account?.id,
|
||||||
|
content: {
|
||||||
|
root: {
|
||||||
|
type: "root",
|
||||||
|
format: "",
|
||||||
|
indent: 0,
|
||||||
|
version: 1,
|
||||||
|
direction: "ltr",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
type: "paragraph",
|
||||||
|
format: "",
|
||||||
|
indent: 0,
|
||||||
|
version: 1,
|
||||||
|
direction: "ltr",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
type: "text",
|
||||||
|
mode: "normal",
|
||||||
|
style: "",
|
||||||
|
detail: 0,
|
||||||
|
format: 0,
|
||||||
|
text: bodyText,
|
||||||
|
version: 1,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
interactions.push(interaction.id);
|
||||||
|
|
||||||
|
// Update lead temperature to "warm" if it's currently cold and the status is lead
|
||||||
|
if (
|
||||||
|
account &&
|
||||||
|
account.status === "lead" &&
|
||||||
|
account.leadTemperature === "cold"
|
||||||
|
) {
|
||||||
|
await req.payload.update({
|
||||||
|
collection: "crm-accounts",
|
||||||
|
id: account.id,
|
||||||
|
data: {
|
||||||
|
leadTemperature: "warm",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return Response.json({ success: true, sentEmails, testMode: isTest });
|
||||||
|
} catch (e: any) {
|
||||||
|
console.error("Bulk Mail error", e);
|
||||||
|
return Response.json({ success: false, error: e.message }, { status: 500 });
|
||||||
|
}
|
||||||
|
};
|
||||||
18
apps/web/test-env.ts
Normal file
18
apps/web/test-env.ts
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import { z } from "zod";
|
||||||
|
import { validateMintelEnv } from "@mintel/next-utils";
|
||||||
|
|
||||||
|
const envExtension = {
|
||||||
|
SENTRY_DSN: z.string().url().nullish().or(z.literal("")),
|
||||||
|
};
|
||||||
|
|
||||||
|
process.env.SENTRY_DSN = " ";
|
||||||
|
console.log("Empty Space:");
|
||||||
|
try {
|
||||||
|
validateMintelEnv(envExtension);
|
||||||
|
} catch (e) {}
|
||||||
|
|
||||||
|
process.env.SENTRY_DSN = "\n";
|
||||||
|
console.log("Newline:");
|
||||||
|
try {
|
||||||
|
validateMintelEnv(envExtension);
|
||||||
|
} catch (e) {}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "bash -c 'trap \"COMPOSE_PROJECT_NAME=mintel-me docker-compose -f docker-compose.dev.yml down\" EXIT INT TERM; docker network create infra 2>/dev/null || true && COMPOSE_PROJECT_NAME=mintel-me docker-compose -f docker-compose.dev.yml down && COMPOSE_PROJECT_NAME=mintel-me docker-compose -f docker-compose.dev.yml up app postgres-db --remove-orphans'",
|
"dev": "bash -c 'trap \"COMPOSE_PROJECT_NAME=mintel-me docker-compose -f docker-compose.dev.yml down\" EXIT INT TERM; docker network create infra 2>/dev/null || true && COMPOSE_PROJECT_NAME=mintel-me docker-compose -f docker-compose.dev.yml down && COMPOSE_PROJECT_NAME=mintel-me docker-compose -f docker-compose.dev.yml up app postgres-db --remove-orphans'",
|
||||||
"dev:docker": "docker network create infra 2>/dev/null || true && echo \"\\n🚀 Dockerized Environment Starting...\\n\\n📱 App: http://mintel.localhost\\n🚦 Caddy Proxy: http://localhost:80\\n\" && COMPOSE_PROJECT_NAME=mintel-me docker-compose -f docker-compose.dev.yml up app postgres-db",
|
"dev:docker": "docker network create infra 2>/dev/null || true && echo \"\\n🚀 Dockerized Environment Starting...\\n\\n📱 App: http://mintel.localhost\\n🚦 Caddy Proxy: http://localhost:80\\n\" && COMPOSE_PROJECT_NAME=mintel-me docker-compose -f docker-compose.dev.yml up app postgres-db",
|
||||||
"dev:clean": "pnpm dev:stop && rm -rf apps/web/.next apps/web/node_modules && pnpm install && pnpm dev",
|
"dev:clean": "pnpm dev:stop && rm -rf apps/web/.next apps/web/node_modules && pnpm install && CI=true pnpm dev",
|
||||||
"dev:stop": "COMPOSE_PROJECT_NAME=mintel-me docker-compose -f docker-compose.dev.yml down",
|
"dev:stop": "COMPOSE_PROJECT_NAME=mintel-me docker-compose -f docker-compose.dev.yml down",
|
||||||
"dev:local": "pnpm -r dev",
|
"dev:local": "pnpm -r dev",
|
||||||
"build": "pnpm -r build",
|
"build": "pnpm -r build",
|
||||||
@@ -52,7 +52,8 @@
|
|||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@sentry/nextjs": "10.38.0",
|
"@sentry/nextjs": "10.38.0",
|
||||||
"eslint": "10.0.0"
|
"eslint": "10.0.0",
|
||||||
|
"zod": "^3.23.8"
|
||||||
},
|
},
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
"@parcel/watcher",
|
"@parcel/watcher",
|
||||||
|
|||||||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@@ -119,8 +119,8 @@ importers:
|
|||||||
specifier: link:../../../at-mintel/packages/meme-generator
|
specifier: link:../../../at-mintel/packages/meme-generator
|
||||||
version: link:../../../at-mintel/packages/meme-generator
|
version: link:../../../at-mintel/packages/meme-generator
|
||||||
"@mintel/payload-ai":
|
"@mintel/payload-ai":
|
||||||
specifier: ^1.9.15
|
specifier: link:../../../at-mintel/packages/payload-ai
|
||||||
version: 1.9.15(@payloadcms/next@3.77.0(graphql@16.12.0)(monaco-editor@0.55.1)(next@16.1.6(@opentelemetry/api@1.9.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(sass@1.77.4))(payload@3.77.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(typescript@5.9.3))(@payloadcms/ui@3.77.0(monaco-editor@0.55.1)(next@16.1.6(@opentelemetry/api@1.9.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(sass@1.77.4))(payload@3.77.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(typescript@5.9.3))(payload@3.77.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(typescript@5.9.3)(ws@8.19.0)
|
version: link:../../../at-mintel/packages/payload-ai
|
||||||
"@mintel/pdf":
|
"@mintel/pdf":
|
||||||
specifier: link:../../../at-mintel/packages/pdf-library
|
specifier: link:../../../at-mintel/packages/pdf-library
|
||||||
version: link:../../../at-mintel/packages/pdf-library
|
version: link:../../../at-mintel/packages/pdf-library
|
||||||
@@ -314,7 +314,7 @@ importers:
|
|||||||
specifier: ^0.18.5
|
specifier: ^0.18.5
|
||||||
version: 0.18.5
|
version: 0.18.5
|
||||||
zod:
|
zod:
|
||||||
specifier: ^3.25.76
|
specifier: ^3.23.8
|
||||||
version: 3.25.76
|
version: 3.25.76
|
||||||
devDependencies:
|
devDependencies:
|
||||||
"@eslint/eslintrc":
|
"@eslint/eslintrc":
|
||||||
|
|||||||
Reference in New Issue
Block a user