From c68ffee2cba856f6c22494fc97223fd7d0589d23 Mon Sep 17 00:00:00 2001 From: Williams Sissoko <35783824+wcisco17@users.noreply.github.com> Date: Thu, 18 Apr 2024 00:50:40 +0700 Subject: [PATCH] feat(THOR-00): weeeev ai --- apps/dashboard/.eslintrc.js | 0 apps/dashboard/.gitignore | 0 apps/dashboard/.idea/.gitignore | 0 apps/dashboard/.idea/codeStyles/Project.xml | 0 .../.idea/codeStyles/codeStyleConfig.xml | 0 apps/dashboard/.idea/dashboard.iml | 0 .../inspectionProfiles/Project_Default.xml | 0 apps/dashboard/.idea/jsLinters/eslint.xml | 0 apps/dashboard/.idea/misc.xml | 0 apps/dashboard/.idea/modules.xml | 0 apps/dashboard/.idea/prettier.xml | 0 apps/dashboard/.idea/vcs.xml | 0 apps/dashboard/.prettierrc | 0 apps/dashboard/README.md | 0 apps/dashboard/components.json | 0 apps/dashboard/gcp_cors.json | 0 apps/dashboard/next.config.mjs | 0 apps/dashboard/package.json | 0 apps/dashboard/postcss.config.js | 0 apps/dashboard/public/32.svg | 0 apps/dashboard/public/44.png | 0 apps/dashboard/public/46.svg | 0 apps/dashboard/public/54.svg | 0 apps/dashboard/public/weev-logo.svg | 0 apps/dashboard/src/api-utils/gcp/getGCPFile.ts | 0 apps/dashboard/src/api-utils/gcp/storage.ts | 0 apps/dashboard/src/api-utils/gcp/uploadFile.ts | 0 .../src/api-utils/gcp/uploadFileStream.ts | 0 .../src/api-utils/leonardo/constant.ts | 0 apps/dashboard/src/api-utils/leonardo/index.ts | 0 apps/dashboard/src/api-utils/models/index.ts | 0 .../src/api-utils/models/prompt-template.ts | 0 apps/dashboard/src/api-utils/pinecone/index.ts | 0 .../src/api-utils/planetscale/index.ts | 0 apps/dashboard/src/app/auth/login/page.tsx | 0 .../app/dashboard/api/ai/brand-voice/route.ts | 0 .../api/ai/generate-product-image/route.ts | 0 .../dashboard/api/ai/get-chat-history/route.ts | 0 .../api/ai/get-product-image/route.ts | 0 .../api/ai/knowledge-brand-voice/route.ts | 0 .../api/ai/retrieve-brand-voice/route.ts | 0 .../api/ai/search-brand-voice/route.ts | 0 .../dashboard/api/ai/store-product/route.ts | 0 .../dashboard/api/create-brand-voice/route.ts | 0 .../app/dashboard/api/create-image/route.ts | 0 .../api/create-placeholder-product/route.ts | 0 .../api/delete-product-by-id/route.ts | 0 .../[brandVoiceId]/route.ts | 0 .../src/app/dashboard/api/storage/route.ts | 0 .../api/update-product-image/route.ts | 0 .../src/app/dashboard/api/upload-file/route.ts | 0 .../app/dashboard/api/upload-image/route.ts | 0 .../app/dashboard/brand-voice/create/page.tsx | 0 .../src/app/dashboard/brand-voice/page.tsx | 0 apps/dashboard/src/app/dashboard/chat/page.tsx | 0 apps/dashboard/src/app/dashboard/layout.tsx | 0 .../app/dashboard/organization/api/route.ts | 0 apps/dashboard/src/app/dashboard/page.tsx | 0 .../src/app/dashboard/projects/api/route.ts | 0 .../details/[id]/create-product/page.tsx | 0 .../dashboard/projects/details/[id]/page.tsx | 0 .../dashboard/projects/details/create/page.tsx | 0 .../projects/details/edit/[id]/not-found.tsx | 0 .../projects/details/edit/[id]/page.tsx | 0 .../details/edit/create-image/page.tsx | 0 .../src/app/dashboard/projects/layout.tsx | 0 .../src/app/dashboard/projects/page.tsx | 0 .../src/app/dashboard/settings/page.tsx | 0 apps/dashboard/src/app/favicon.ico | 0 apps/dashboard/src/app/globals.css | 0 apps/dashboard/src/app/layout.tsx | 0 apps/dashboard/src/app/page.tsx | 0 .../components/BrandIdentity/BrandIdentity.tsx | 0 .../src/components/BrandIdentity/index.ts | 0 apps/dashboard/src/components/Menu/Menu.tsx | 0 apps/dashboard/src/components/Menu/index.ts | 0 .../src/components/PageHeader/PageHeader.tsx | 0 .../src/components/PageHeader/index.ts | 0 .../src/components/Products/Products.tsx | 0 .../src/components/Products/getDefaultImage.ts | 0 .../dashboard/src/components/Products/index.ts | 0 .../src/components/Projects/Projects.tsx | 0 .../dashboard/src/components/Projects/index.ts | 0 .../src/components/Showcase/Showcase.tsx | 0 .../src/components/ui/alert-dialog.tsx | 0 apps/dashboard/src/components/ui/alert.tsx | 0 apps/dashboard/src/components/ui/avatar.tsx | 0 apps/dashboard/src/components/ui/badge.tsx | 0 apps/dashboard/src/components/ui/button.tsx | 0 apps/dashboard/src/components/ui/card.tsx | 0 apps/dashboard/src/components/ui/checkbox.tsx | 0 apps/dashboard/src/components/ui/container.tsx | 0 apps/dashboard/src/components/ui/input.tsx | 0 apps/dashboard/src/components/ui/label.tsx | 0 apps/dashboard/src/components/ui/nav.tsx | 0 .../src/components/ui/navigation-menu.tsx | 0 apps/dashboard/src/components/ui/popover.tsx | 0 apps/dashboard/src/components/ui/progress.tsx | 0 apps/dashboard/src/components/ui/resizable.tsx | 0 apps/dashboard/src/components/ui/select.tsx | 0 apps/dashboard/src/components/ui/separator.tsx | 0 apps/dashboard/src/components/ui/slider.tsx | 0 apps/dashboard/src/components/ui/table.tsx | 0 apps/dashboard/src/components/ui/tabs.tsx | 0 apps/dashboard/src/components/ui/textarea.tsx | 0 apps/dashboard/src/components/ui/toast.tsx | 0 apps/dashboard/src/components/ui/toaster.tsx | 0 apps/dashboard/src/components/ui/tooltip.tsx | 0 apps/dashboard/src/components/ui/use-toast.ts | 0 apps/dashboard/src/database/brand/brand.ts | 0 apps/dashboard/src/database/brand/index.ts | 0 apps/dashboard/src/database/index.ts | 0 .../src/database/products/products.ts | 0 apps/dashboard/src/database/projects/index.ts | 0 .../src/database/projects/projects.ts | 0 apps/dashboard/src/database/user/index.ts | 0 apps/dashboard/src/database/user/user.ts | 0 .../src/lib/create-details/Brand/Brand.tsx | 0 .../Brand/BrandIdentity/BrandIdentity.tsx | 0 .../Brand/BrandIdentity/index.ts | 0 .../src/lib/create-details/Brand/index.ts | 0 .../Organization/Organization.tsx | 0 .../lib/create-details/Organization/index.ts | 0 .../CopyrightingProduct.tsx | 0 .../Product/CopyrightingProduct/index.ts | 0 .../Product/CreateImage/CreateImage.tsx | 0 .../Product/CreateImage/index.ts | 0 .../Product/EditProducts/EditProducts.tsx | 0 .../ProductContent/ProductContent.tsx | 0 .../EditProducts/ProductContent/index.ts | 0 .../EditProducts/ProductImage/ProductImage.tsx | 0 .../Product/EditProducts/ProductImage/index.ts | 0 .../ProductImage/useListenImageGeneration.tsx | 0 .../Product/EditProducts/index.ts | 0 .../GenerateProgressBar.tsx | 0 .../Product/GenerateProgressBar/index.ts | 0 .../src/lib/create-details/Product/Product.tsx | 0 .../src/lib/create-details/Product/constant.ts | 0 .../lib/create-details/Product/hooks/index.ts | 0 .../Product/hooks/updatePersonalizedVoice.tsx | 0 .../hooks/useProductImageControllers.tsx | 0 .../src/lib/create-details/Product/index.ts | 0 .../lib/create-details/Projects/Projects.tsx | 0 .../src/lib/create-details/Projects/index.ts | 0 .../src/lib/create-details/Upload/Assets.tsx | 0 .../src/lib/create-details/Upload/Upload.tsx | 0 .../src/lib/create-details/Upload/index.ts | 0 apps/dashboard/src/lib/create-details/index.ts | 0 .../src/lib/knowledge-hub/KnowledgeHub.tsx | 0 apps/dashboard/src/lib/not-found/Projects.tsx | 0 apps/dashboard/src/lib/utils.ts | 0 apps/dashboard/src/middleware.ts | 0 .../src/provider/ProviderInitilizer.tsx | 0 .../shared-utils/constant/constant-default.ts | 0 .../src/shared-utils/constant/navigation.ts | 0 apps/dashboard/src/shared-utils/text/index.ts | 0 .../store/ai/api/createPlaceholderProduct.ts | 0 .../src/store/ai/api/generateProduct.ts | 0 .../src/store/ai/api/getBrandVoiceDocsGCP.ts | 0 .../src/store/ai/api/getImageGeneration.ts | 0 apps/dashboard/src/store/ai/api/uniqueVoice.ts | 0 .../src/store/ai/generate-ai-product.ts | 0 .../src/store/ai/getUniqueGenImage.ts | 0 .../src/store/ai/store-brand-voice.tsx | 0 .../src/store/brand-voice/brand-voice.tsx | 0 apps/dashboard/src/store/brand-voice/index.ts | 0 apps/dashboard/src/store/index.ts | 0 .../store/organization/createOrganization.tsx | 0 apps/dashboard/src/store/organization/index.ts | 0 .../src/store/products/createImage.tsx | 0 .../src/store/products/createProducts.ts | 0 .../src/store/products/deleteProductById.ts | 0 .../src/store/products/deleteProducts.tsx | 0 .../src/store/projects/createProjects.tsx | 0 apps/dashboard/src/store/types.ts | 0 apps/dashboard/src/store/upload-file/index.ts | 0 .../src/store/upload-file/upload-file.ts | 0 apps/dashboard/tailwind.config.ts | 0 apps/dashboard/tsconfig.json | 0 apps/reacthor-admin/next.config.js | 17 +++++++++++++++++ apps/reacthor-admin/next.config.mjs | 18 ------------------ packages/prisma/.gitignore | 0 packages/prisma/README.md | 0 packages/prisma/index.ts | 0 packages/prisma/package.json | 0 .../20240303150759_init/migration.sql | 0 .../20240305141242_change_image/migration.sql | 0 .../migration.sql | 0 .../migration.sql | 0 .../migration.sql | 0 .../migration.sql | 0 .../migration.sql | 0 .../migration.sql | 0 .../migration.sql | 0 .../migration.sql | 0 .../prisma/migrations/migration_lock.toml | 0 packages/prisma/prisma/schema.prisma | 0 197 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 apps/dashboard/.eslintrc.js create mode 100644 apps/dashboard/.gitignore create mode 100644 apps/dashboard/.idea/.gitignore create mode 100644 apps/dashboard/.idea/codeStyles/Project.xml create mode 100644 apps/dashboard/.idea/codeStyles/codeStyleConfig.xml create mode 100644 apps/dashboard/.idea/dashboard.iml create mode 100644 apps/dashboard/.idea/inspectionProfiles/Project_Default.xml create mode 100644 apps/dashboard/.idea/jsLinters/eslint.xml create mode 100644 apps/dashboard/.idea/misc.xml create mode 100644 apps/dashboard/.idea/modules.xml create mode 100644 apps/dashboard/.idea/prettier.xml create mode 100644 apps/dashboard/.idea/vcs.xml create mode 100644 apps/dashboard/.prettierrc create mode 100644 apps/dashboard/README.md create mode 100644 apps/dashboard/components.json create mode 100644 apps/dashboard/gcp_cors.json create mode 100644 apps/dashboard/next.config.mjs create mode 100644 apps/dashboard/package.json create mode 100644 apps/dashboard/postcss.config.js create mode 100644 apps/dashboard/public/32.svg create mode 100644 apps/dashboard/public/44.png create mode 100644 apps/dashboard/public/46.svg create mode 100644 apps/dashboard/public/54.svg create mode 100644 apps/dashboard/public/weev-logo.svg create mode 100644 apps/dashboard/src/api-utils/gcp/getGCPFile.ts create mode 100644 apps/dashboard/src/api-utils/gcp/storage.ts create mode 100644 apps/dashboard/src/api-utils/gcp/uploadFile.ts create mode 100644 apps/dashboard/src/api-utils/gcp/uploadFileStream.ts create mode 100644 apps/dashboard/src/api-utils/leonardo/constant.ts create mode 100644 apps/dashboard/src/api-utils/leonardo/index.ts create mode 100644 apps/dashboard/src/api-utils/models/index.ts create mode 100644 apps/dashboard/src/api-utils/models/prompt-template.ts create mode 100644 apps/dashboard/src/api-utils/pinecone/index.ts create mode 100644 apps/dashboard/src/api-utils/planetscale/index.ts create mode 100644 apps/dashboard/src/app/auth/login/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/api/ai/brand-voice/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/ai/generate-product-image/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/ai/get-chat-history/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/ai/get-product-image/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/ai/knowledge-brand-voice/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/ai/retrieve-brand-voice/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/ai/search-brand-voice/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/ai/store-product/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/create-brand-voice/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/create-image/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/create-placeholder-product/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/delete-product-by-id/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/get-brand-voice-by-id/[brandVoiceId]/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/storage/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/update-product-image/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/upload-file/route.ts create mode 100644 apps/dashboard/src/app/dashboard/api/upload-image/route.ts create mode 100644 apps/dashboard/src/app/dashboard/brand-voice/create/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/brand-voice/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/chat/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/layout.tsx create mode 100644 apps/dashboard/src/app/dashboard/organization/api/route.ts create mode 100644 apps/dashboard/src/app/dashboard/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/projects/api/route.ts create mode 100644 apps/dashboard/src/app/dashboard/projects/details/[id]/create-product/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/projects/details/[id]/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/projects/details/create/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/projects/details/edit/[id]/not-found.tsx create mode 100644 apps/dashboard/src/app/dashboard/projects/details/edit/[id]/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/projects/details/edit/create-image/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/projects/layout.tsx create mode 100644 apps/dashboard/src/app/dashboard/projects/page.tsx create mode 100644 apps/dashboard/src/app/dashboard/settings/page.tsx create mode 100644 apps/dashboard/src/app/favicon.ico create mode 100644 apps/dashboard/src/app/globals.css create mode 100644 apps/dashboard/src/app/layout.tsx create mode 100644 apps/dashboard/src/app/page.tsx create mode 100644 apps/dashboard/src/components/BrandIdentity/BrandIdentity.tsx create mode 100644 apps/dashboard/src/components/BrandIdentity/index.ts create mode 100644 apps/dashboard/src/components/Menu/Menu.tsx create mode 100644 apps/dashboard/src/components/Menu/index.ts create mode 100644 apps/dashboard/src/components/PageHeader/PageHeader.tsx create mode 100644 apps/dashboard/src/components/PageHeader/index.ts create mode 100644 apps/dashboard/src/components/Products/Products.tsx create mode 100644 apps/dashboard/src/components/Products/getDefaultImage.ts create mode 100644 apps/dashboard/src/components/Products/index.ts create mode 100644 apps/dashboard/src/components/Projects/Projects.tsx create mode 100644 apps/dashboard/src/components/Projects/index.ts create mode 100644 apps/dashboard/src/components/Showcase/Showcase.tsx create mode 100644 apps/dashboard/src/components/ui/alert-dialog.tsx create mode 100644 apps/dashboard/src/components/ui/alert.tsx create mode 100644 apps/dashboard/src/components/ui/avatar.tsx create mode 100644 apps/dashboard/src/components/ui/badge.tsx create mode 100644 apps/dashboard/src/components/ui/button.tsx create mode 100644 apps/dashboard/src/components/ui/card.tsx create mode 100644 apps/dashboard/src/components/ui/checkbox.tsx create mode 100644 apps/dashboard/src/components/ui/container.tsx create mode 100644 apps/dashboard/src/components/ui/input.tsx create mode 100644 apps/dashboard/src/components/ui/label.tsx create mode 100644 apps/dashboard/src/components/ui/nav.tsx create mode 100644 apps/dashboard/src/components/ui/navigation-menu.tsx create mode 100644 apps/dashboard/src/components/ui/popover.tsx create mode 100644 apps/dashboard/src/components/ui/progress.tsx create mode 100644 apps/dashboard/src/components/ui/resizable.tsx create mode 100644 apps/dashboard/src/components/ui/select.tsx create mode 100644 apps/dashboard/src/components/ui/separator.tsx create mode 100644 apps/dashboard/src/components/ui/slider.tsx create mode 100644 apps/dashboard/src/components/ui/table.tsx create mode 100644 apps/dashboard/src/components/ui/tabs.tsx create mode 100644 apps/dashboard/src/components/ui/textarea.tsx create mode 100644 apps/dashboard/src/components/ui/toast.tsx create mode 100644 apps/dashboard/src/components/ui/toaster.tsx create mode 100644 apps/dashboard/src/components/ui/tooltip.tsx create mode 100644 apps/dashboard/src/components/ui/use-toast.ts create mode 100644 apps/dashboard/src/database/brand/brand.ts create mode 100644 apps/dashboard/src/database/brand/index.ts create mode 100644 apps/dashboard/src/database/index.ts create mode 100644 apps/dashboard/src/database/products/products.ts create mode 100644 apps/dashboard/src/database/projects/index.ts create mode 100644 apps/dashboard/src/database/projects/projects.ts create mode 100644 apps/dashboard/src/database/user/index.ts create mode 100644 apps/dashboard/src/database/user/user.ts create mode 100644 apps/dashboard/src/lib/create-details/Brand/Brand.tsx create mode 100644 apps/dashboard/src/lib/create-details/Brand/BrandIdentity/BrandIdentity.tsx create mode 100644 apps/dashboard/src/lib/create-details/Brand/BrandIdentity/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Brand/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Organization/Organization.tsx create mode 100644 apps/dashboard/src/lib/create-details/Organization/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Product/CopyrightingProduct/CopyrightingProduct.tsx create mode 100644 apps/dashboard/src/lib/create-details/Product/CopyrightingProduct/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Product/CreateImage/CreateImage.tsx create mode 100644 apps/dashboard/src/lib/create-details/Product/CreateImage/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Product/EditProducts/EditProducts.tsx create mode 100644 apps/dashboard/src/lib/create-details/Product/EditProducts/ProductContent/ProductContent.tsx create mode 100644 apps/dashboard/src/lib/create-details/Product/EditProducts/ProductContent/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Product/EditProducts/ProductImage/ProductImage.tsx create mode 100644 apps/dashboard/src/lib/create-details/Product/EditProducts/ProductImage/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Product/EditProducts/ProductImage/useListenImageGeneration.tsx create mode 100644 apps/dashboard/src/lib/create-details/Product/EditProducts/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Product/GenerateProgressBar/GenerateProgressBar.tsx create mode 100644 apps/dashboard/src/lib/create-details/Product/GenerateProgressBar/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Product/Product.tsx create mode 100644 apps/dashboard/src/lib/create-details/Product/constant.ts create mode 100644 apps/dashboard/src/lib/create-details/Product/hooks/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Product/hooks/updatePersonalizedVoice.tsx create mode 100644 apps/dashboard/src/lib/create-details/Product/hooks/useProductImageControllers.tsx create mode 100644 apps/dashboard/src/lib/create-details/Product/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Projects/Projects.tsx create mode 100644 apps/dashboard/src/lib/create-details/Projects/index.ts create mode 100644 apps/dashboard/src/lib/create-details/Upload/Assets.tsx create mode 100644 apps/dashboard/src/lib/create-details/Upload/Upload.tsx create mode 100644 apps/dashboard/src/lib/create-details/Upload/index.ts create mode 100644 apps/dashboard/src/lib/create-details/index.ts create mode 100644 apps/dashboard/src/lib/knowledge-hub/KnowledgeHub.tsx create mode 100644 apps/dashboard/src/lib/not-found/Projects.tsx create mode 100644 apps/dashboard/src/lib/utils.ts create mode 100644 apps/dashboard/src/middleware.ts create mode 100644 apps/dashboard/src/provider/ProviderInitilizer.tsx create mode 100644 apps/dashboard/src/shared-utils/constant/constant-default.ts create mode 100644 apps/dashboard/src/shared-utils/constant/navigation.ts create mode 100644 apps/dashboard/src/shared-utils/text/index.ts create mode 100644 apps/dashboard/src/store/ai/api/createPlaceholderProduct.ts create mode 100644 apps/dashboard/src/store/ai/api/generateProduct.ts create mode 100644 apps/dashboard/src/store/ai/api/getBrandVoiceDocsGCP.ts create mode 100644 apps/dashboard/src/store/ai/api/getImageGeneration.ts create mode 100644 apps/dashboard/src/store/ai/api/uniqueVoice.ts create mode 100644 apps/dashboard/src/store/ai/generate-ai-product.ts create mode 100644 apps/dashboard/src/store/ai/getUniqueGenImage.ts create mode 100644 apps/dashboard/src/store/ai/store-brand-voice.tsx create mode 100644 apps/dashboard/src/store/brand-voice/brand-voice.tsx create mode 100644 apps/dashboard/src/store/brand-voice/index.ts create mode 100644 apps/dashboard/src/store/index.ts create mode 100644 apps/dashboard/src/store/organization/createOrganization.tsx create mode 100644 apps/dashboard/src/store/organization/index.ts create mode 100644 apps/dashboard/src/store/products/createImage.tsx create mode 100644 apps/dashboard/src/store/products/createProducts.ts create mode 100644 apps/dashboard/src/store/products/deleteProductById.ts create mode 100644 apps/dashboard/src/store/products/deleteProducts.tsx create mode 100644 apps/dashboard/src/store/projects/createProjects.tsx create mode 100644 apps/dashboard/src/store/types.ts create mode 100644 apps/dashboard/src/store/upload-file/index.ts create mode 100644 apps/dashboard/src/store/upload-file/upload-file.ts create mode 100644 apps/dashboard/tailwind.config.ts create mode 100644 apps/dashboard/tsconfig.json create mode 100644 apps/reacthor-admin/next.config.js delete mode 100644 apps/reacthor-admin/next.config.mjs create mode 100644 packages/prisma/.gitignore create mode 100644 packages/prisma/README.md create mode 100644 packages/prisma/index.ts create mode 100644 packages/prisma/package.json create mode 100644 packages/prisma/prisma/migrations/20240303150759_init/migration.sql create mode 100644 packages/prisma/prisma/migrations/20240305141242_change_image/migration.sql create mode 100644 packages/prisma/prisma/migrations/20240305161504_add_brand_voice_org/migration.sql create mode 100644 packages/prisma/prisma/migrations/20240305163512_add_brand_text_for_enum_type/migration.sql create mode 100644 packages/prisma/prisma/migrations/20240305170434_add_brand_voice_docs_link/migration.sql create mode 100644 packages/prisma/prisma/migrations/20240306173633_change_varchar_tables/migration.sql create mode 100644 packages/prisma/prisma/migrations/20240307164832_product_title_desc_optional/migration.sql create mode 100644 packages/prisma/prisma/migrations/20240307165539_add_image_type_prompt/migration.sql create mode 100644 packages/prisma/prisma/migrations/20240309075829_change_text_length/migration.sql create mode 100644 packages/prisma/prisma/migrations/20240326114528_added_prompt_text/migration.sql create mode 100644 packages/prisma/prisma/migrations/migration_lock.toml create mode 100644 packages/prisma/prisma/schema.prisma diff --git a/apps/dashboard/.eslintrc.js b/apps/dashboard/.eslintrc.js new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.gitignore b/apps/dashboard/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.idea/.gitignore b/apps/dashboard/.idea/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.idea/codeStyles/Project.xml b/apps/dashboard/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.idea/codeStyles/codeStyleConfig.xml b/apps/dashboard/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.idea/dashboard.iml b/apps/dashboard/.idea/dashboard.iml new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.idea/inspectionProfiles/Project_Default.xml b/apps/dashboard/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.idea/jsLinters/eslint.xml b/apps/dashboard/.idea/jsLinters/eslint.xml new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.idea/misc.xml b/apps/dashboard/.idea/misc.xml new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.idea/modules.xml b/apps/dashboard/.idea/modules.xml new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.idea/prettier.xml b/apps/dashboard/.idea/prettier.xml new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.idea/vcs.xml b/apps/dashboard/.idea/vcs.xml new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/.prettierrc b/apps/dashboard/.prettierrc new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/README.md b/apps/dashboard/README.md new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/components.json b/apps/dashboard/components.json new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/gcp_cors.json b/apps/dashboard/gcp_cors.json new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/next.config.mjs b/apps/dashboard/next.config.mjs new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/postcss.config.js b/apps/dashboard/postcss.config.js new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/public/32.svg b/apps/dashboard/public/32.svg new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/public/44.png b/apps/dashboard/public/44.png new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/public/46.svg b/apps/dashboard/public/46.svg new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/public/54.svg b/apps/dashboard/public/54.svg new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/public/weev-logo.svg b/apps/dashboard/public/weev-logo.svg new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/api-utils/gcp/getGCPFile.ts b/apps/dashboard/src/api-utils/gcp/getGCPFile.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/api-utils/gcp/storage.ts b/apps/dashboard/src/api-utils/gcp/storage.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/api-utils/gcp/uploadFile.ts b/apps/dashboard/src/api-utils/gcp/uploadFile.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/api-utils/gcp/uploadFileStream.ts b/apps/dashboard/src/api-utils/gcp/uploadFileStream.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/api-utils/leonardo/constant.ts b/apps/dashboard/src/api-utils/leonardo/constant.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/api-utils/leonardo/index.ts b/apps/dashboard/src/api-utils/leonardo/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/api-utils/models/index.ts b/apps/dashboard/src/api-utils/models/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/api-utils/models/prompt-template.ts b/apps/dashboard/src/api-utils/models/prompt-template.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/api-utils/pinecone/index.ts b/apps/dashboard/src/api-utils/pinecone/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/api-utils/planetscale/index.ts b/apps/dashboard/src/api-utils/planetscale/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/auth/login/page.tsx b/apps/dashboard/src/app/auth/login/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/ai/brand-voice/route.ts b/apps/dashboard/src/app/dashboard/api/ai/brand-voice/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/ai/generate-product-image/route.ts b/apps/dashboard/src/app/dashboard/api/ai/generate-product-image/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/ai/get-chat-history/route.ts b/apps/dashboard/src/app/dashboard/api/ai/get-chat-history/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/ai/get-product-image/route.ts b/apps/dashboard/src/app/dashboard/api/ai/get-product-image/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/ai/knowledge-brand-voice/route.ts b/apps/dashboard/src/app/dashboard/api/ai/knowledge-brand-voice/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/ai/retrieve-brand-voice/route.ts b/apps/dashboard/src/app/dashboard/api/ai/retrieve-brand-voice/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/ai/search-brand-voice/route.ts b/apps/dashboard/src/app/dashboard/api/ai/search-brand-voice/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/ai/store-product/route.ts b/apps/dashboard/src/app/dashboard/api/ai/store-product/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/create-brand-voice/route.ts b/apps/dashboard/src/app/dashboard/api/create-brand-voice/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/create-image/route.ts b/apps/dashboard/src/app/dashboard/api/create-image/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/create-placeholder-product/route.ts b/apps/dashboard/src/app/dashboard/api/create-placeholder-product/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/delete-product-by-id/route.ts b/apps/dashboard/src/app/dashboard/api/delete-product-by-id/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/get-brand-voice-by-id/[brandVoiceId]/route.ts b/apps/dashboard/src/app/dashboard/api/get-brand-voice-by-id/[brandVoiceId]/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/storage/route.ts b/apps/dashboard/src/app/dashboard/api/storage/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/update-product-image/route.ts b/apps/dashboard/src/app/dashboard/api/update-product-image/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/upload-file/route.ts b/apps/dashboard/src/app/dashboard/api/upload-file/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/api/upload-image/route.ts b/apps/dashboard/src/app/dashboard/api/upload-image/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/brand-voice/create/page.tsx b/apps/dashboard/src/app/dashboard/brand-voice/create/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/brand-voice/page.tsx b/apps/dashboard/src/app/dashboard/brand-voice/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/chat/page.tsx b/apps/dashboard/src/app/dashboard/chat/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/layout.tsx b/apps/dashboard/src/app/dashboard/layout.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/organization/api/route.ts b/apps/dashboard/src/app/dashboard/organization/api/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/page.tsx b/apps/dashboard/src/app/dashboard/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/projects/api/route.ts b/apps/dashboard/src/app/dashboard/projects/api/route.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/projects/details/[id]/create-product/page.tsx b/apps/dashboard/src/app/dashboard/projects/details/[id]/create-product/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/projects/details/[id]/page.tsx b/apps/dashboard/src/app/dashboard/projects/details/[id]/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/projects/details/create/page.tsx b/apps/dashboard/src/app/dashboard/projects/details/create/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/projects/details/edit/[id]/not-found.tsx b/apps/dashboard/src/app/dashboard/projects/details/edit/[id]/not-found.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/projects/details/edit/[id]/page.tsx b/apps/dashboard/src/app/dashboard/projects/details/edit/[id]/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/projects/details/edit/create-image/page.tsx b/apps/dashboard/src/app/dashboard/projects/details/edit/create-image/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/projects/layout.tsx b/apps/dashboard/src/app/dashboard/projects/layout.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/projects/page.tsx b/apps/dashboard/src/app/dashboard/projects/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/dashboard/settings/page.tsx b/apps/dashboard/src/app/dashboard/settings/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/favicon.ico b/apps/dashboard/src/app/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/globals.css b/apps/dashboard/src/app/globals.css new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/layout.tsx b/apps/dashboard/src/app/layout.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/page.tsx b/apps/dashboard/src/app/page.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/BrandIdentity/BrandIdentity.tsx b/apps/dashboard/src/components/BrandIdentity/BrandIdentity.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/BrandIdentity/index.ts b/apps/dashboard/src/components/BrandIdentity/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/Menu/Menu.tsx b/apps/dashboard/src/components/Menu/Menu.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/Menu/index.ts b/apps/dashboard/src/components/Menu/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/PageHeader/PageHeader.tsx b/apps/dashboard/src/components/PageHeader/PageHeader.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/PageHeader/index.ts b/apps/dashboard/src/components/PageHeader/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/Products/Products.tsx b/apps/dashboard/src/components/Products/Products.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/Products/getDefaultImage.ts b/apps/dashboard/src/components/Products/getDefaultImage.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/Products/index.ts b/apps/dashboard/src/components/Products/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/Projects/Projects.tsx b/apps/dashboard/src/components/Projects/Projects.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/Projects/index.ts b/apps/dashboard/src/components/Projects/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/Showcase/Showcase.tsx b/apps/dashboard/src/components/Showcase/Showcase.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/alert-dialog.tsx b/apps/dashboard/src/components/ui/alert-dialog.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/alert.tsx b/apps/dashboard/src/components/ui/alert.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/avatar.tsx b/apps/dashboard/src/components/ui/avatar.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/badge.tsx b/apps/dashboard/src/components/ui/badge.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/button.tsx b/apps/dashboard/src/components/ui/button.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/card.tsx b/apps/dashboard/src/components/ui/card.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/checkbox.tsx b/apps/dashboard/src/components/ui/checkbox.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/container.tsx b/apps/dashboard/src/components/ui/container.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/input.tsx b/apps/dashboard/src/components/ui/input.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/label.tsx b/apps/dashboard/src/components/ui/label.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/nav.tsx b/apps/dashboard/src/components/ui/nav.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/navigation-menu.tsx b/apps/dashboard/src/components/ui/navigation-menu.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/popover.tsx b/apps/dashboard/src/components/ui/popover.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/progress.tsx b/apps/dashboard/src/components/ui/progress.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/resizable.tsx b/apps/dashboard/src/components/ui/resizable.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/select.tsx b/apps/dashboard/src/components/ui/select.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/separator.tsx b/apps/dashboard/src/components/ui/separator.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/slider.tsx b/apps/dashboard/src/components/ui/slider.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/table.tsx b/apps/dashboard/src/components/ui/table.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/tabs.tsx b/apps/dashboard/src/components/ui/tabs.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/textarea.tsx b/apps/dashboard/src/components/ui/textarea.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/toast.tsx b/apps/dashboard/src/components/ui/toast.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/toaster.tsx b/apps/dashboard/src/components/ui/toaster.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/tooltip.tsx b/apps/dashboard/src/components/ui/tooltip.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/components/ui/use-toast.ts b/apps/dashboard/src/components/ui/use-toast.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/database/brand/brand.ts b/apps/dashboard/src/database/brand/brand.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/database/brand/index.ts b/apps/dashboard/src/database/brand/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/database/index.ts b/apps/dashboard/src/database/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/database/products/products.ts b/apps/dashboard/src/database/products/products.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/database/projects/index.ts b/apps/dashboard/src/database/projects/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/database/projects/projects.ts b/apps/dashboard/src/database/projects/projects.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/database/user/index.ts b/apps/dashboard/src/database/user/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/database/user/user.ts b/apps/dashboard/src/database/user/user.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Brand/Brand.tsx b/apps/dashboard/src/lib/create-details/Brand/Brand.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Brand/BrandIdentity/BrandIdentity.tsx b/apps/dashboard/src/lib/create-details/Brand/BrandIdentity/BrandIdentity.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Brand/BrandIdentity/index.ts b/apps/dashboard/src/lib/create-details/Brand/BrandIdentity/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Brand/index.ts b/apps/dashboard/src/lib/create-details/Brand/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Organization/Organization.tsx b/apps/dashboard/src/lib/create-details/Organization/Organization.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Organization/index.ts b/apps/dashboard/src/lib/create-details/Organization/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/CopyrightingProduct/CopyrightingProduct.tsx b/apps/dashboard/src/lib/create-details/Product/CopyrightingProduct/CopyrightingProduct.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/CopyrightingProduct/index.ts b/apps/dashboard/src/lib/create-details/Product/CopyrightingProduct/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/CreateImage/CreateImage.tsx b/apps/dashboard/src/lib/create-details/Product/CreateImage/CreateImage.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/CreateImage/index.ts b/apps/dashboard/src/lib/create-details/Product/CreateImage/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/EditProducts/EditProducts.tsx b/apps/dashboard/src/lib/create-details/Product/EditProducts/EditProducts.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/EditProducts/ProductContent/ProductContent.tsx b/apps/dashboard/src/lib/create-details/Product/EditProducts/ProductContent/ProductContent.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/EditProducts/ProductContent/index.ts b/apps/dashboard/src/lib/create-details/Product/EditProducts/ProductContent/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/EditProducts/ProductImage/ProductImage.tsx b/apps/dashboard/src/lib/create-details/Product/EditProducts/ProductImage/ProductImage.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/EditProducts/ProductImage/index.ts b/apps/dashboard/src/lib/create-details/Product/EditProducts/ProductImage/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/EditProducts/ProductImage/useListenImageGeneration.tsx b/apps/dashboard/src/lib/create-details/Product/EditProducts/ProductImage/useListenImageGeneration.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/EditProducts/index.ts b/apps/dashboard/src/lib/create-details/Product/EditProducts/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/GenerateProgressBar/GenerateProgressBar.tsx b/apps/dashboard/src/lib/create-details/Product/GenerateProgressBar/GenerateProgressBar.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/GenerateProgressBar/index.ts b/apps/dashboard/src/lib/create-details/Product/GenerateProgressBar/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/Product.tsx b/apps/dashboard/src/lib/create-details/Product/Product.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/constant.ts b/apps/dashboard/src/lib/create-details/Product/constant.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/hooks/index.ts b/apps/dashboard/src/lib/create-details/Product/hooks/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/hooks/updatePersonalizedVoice.tsx b/apps/dashboard/src/lib/create-details/Product/hooks/updatePersonalizedVoice.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/hooks/useProductImageControllers.tsx b/apps/dashboard/src/lib/create-details/Product/hooks/useProductImageControllers.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Product/index.ts b/apps/dashboard/src/lib/create-details/Product/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Projects/Projects.tsx b/apps/dashboard/src/lib/create-details/Projects/Projects.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Projects/index.ts b/apps/dashboard/src/lib/create-details/Projects/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Upload/Assets.tsx b/apps/dashboard/src/lib/create-details/Upload/Assets.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Upload/Upload.tsx b/apps/dashboard/src/lib/create-details/Upload/Upload.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/Upload/index.ts b/apps/dashboard/src/lib/create-details/Upload/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/create-details/index.ts b/apps/dashboard/src/lib/create-details/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/knowledge-hub/KnowledgeHub.tsx b/apps/dashboard/src/lib/knowledge-hub/KnowledgeHub.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/not-found/Projects.tsx b/apps/dashboard/src/lib/not-found/Projects.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/lib/utils.ts b/apps/dashboard/src/lib/utils.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/middleware.ts b/apps/dashboard/src/middleware.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/provider/ProviderInitilizer.tsx b/apps/dashboard/src/provider/ProviderInitilizer.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/shared-utils/constant/constant-default.ts b/apps/dashboard/src/shared-utils/constant/constant-default.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/shared-utils/constant/navigation.ts b/apps/dashboard/src/shared-utils/constant/navigation.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/shared-utils/text/index.ts b/apps/dashboard/src/shared-utils/text/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/ai/api/createPlaceholderProduct.ts b/apps/dashboard/src/store/ai/api/createPlaceholderProduct.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/ai/api/generateProduct.ts b/apps/dashboard/src/store/ai/api/generateProduct.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/ai/api/getBrandVoiceDocsGCP.ts b/apps/dashboard/src/store/ai/api/getBrandVoiceDocsGCP.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/ai/api/getImageGeneration.ts b/apps/dashboard/src/store/ai/api/getImageGeneration.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/ai/api/uniqueVoice.ts b/apps/dashboard/src/store/ai/api/uniqueVoice.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/ai/generate-ai-product.ts b/apps/dashboard/src/store/ai/generate-ai-product.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/ai/getUniqueGenImage.ts b/apps/dashboard/src/store/ai/getUniqueGenImage.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/ai/store-brand-voice.tsx b/apps/dashboard/src/store/ai/store-brand-voice.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/brand-voice/brand-voice.tsx b/apps/dashboard/src/store/brand-voice/brand-voice.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/brand-voice/index.ts b/apps/dashboard/src/store/brand-voice/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/index.ts b/apps/dashboard/src/store/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/organization/createOrganization.tsx b/apps/dashboard/src/store/organization/createOrganization.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/organization/index.ts b/apps/dashboard/src/store/organization/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/products/createImage.tsx b/apps/dashboard/src/store/products/createImage.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/products/createProducts.ts b/apps/dashboard/src/store/products/createProducts.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/products/deleteProductById.ts b/apps/dashboard/src/store/products/deleteProductById.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/products/deleteProducts.tsx b/apps/dashboard/src/store/products/deleteProducts.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/projects/createProjects.tsx b/apps/dashboard/src/store/projects/createProjects.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/types.ts b/apps/dashboard/src/store/types.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/upload-file/index.ts b/apps/dashboard/src/store/upload-file/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/store/upload-file/upload-file.ts b/apps/dashboard/src/store/upload-file/upload-file.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/tailwind.config.ts b/apps/dashboard/tailwind.config.ts new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/tsconfig.json b/apps/dashboard/tsconfig.json new file mode 100644 index 0000000..e69de29 diff --git a/apps/reacthor-admin/next.config.js b/apps/reacthor-admin/next.config.js new file mode 100644 index 0000000..319c93b --- /dev/null +++ b/apps/reacthor-admin/next.config.js @@ -0,0 +1,17 @@ +const path = require("path"); +const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin') + +module.exports = { + output: "standalone", + reactStrictMode: true, + experimental: { + outputFileTracingRoot: path.join(__dirname, "../../"), + }, + webpack: (config, { isServer }) => { + if (isServer) { + config.plugins = [...config.plugins, new PrismaPlugin()]; + } + + return config; + }, +}; \ No newline at end of file diff --git a/apps/reacthor-admin/next.config.mjs b/apps/reacthor-admin/next.config.mjs deleted file mode 100644 index 3dfc2cd..0000000 --- a/apps/reacthor-admin/next.config.mjs +++ /dev/null @@ -1,18 +0,0 @@ -import path from 'path' - -import { PrismaPlugin } from '@prisma/nextjs-monorepo-workaround-plugin' - -module.exports = { - output: 'standalone', - reactStrictMode: true, - experimental: { - outputFileTracingRoot: path.join(__dirname, '../../') - }, - webpack: (config, { isServer }) => { - if (isServer) { - config.plugins = [...config.plugins, new PrismaPlugin()] - } - - return config - } -} \ No newline at end of file diff --git a/packages/prisma/.gitignore b/packages/prisma/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/README.md b/packages/prisma/README.md new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/index.ts b/packages/prisma/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/package.json b/packages/prisma/package.json new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/20240303150759_init/migration.sql b/packages/prisma/prisma/migrations/20240303150759_init/migration.sql new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/20240305141242_change_image/migration.sql b/packages/prisma/prisma/migrations/20240305141242_change_image/migration.sql new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/20240305161504_add_brand_voice_org/migration.sql b/packages/prisma/prisma/migrations/20240305161504_add_brand_voice_org/migration.sql new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/20240305163512_add_brand_text_for_enum_type/migration.sql b/packages/prisma/prisma/migrations/20240305163512_add_brand_text_for_enum_type/migration.sql new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/20240305170434_add_brand_voice_docs_link/migration.sql b/packages/prisma/prisma/migrations/20240305170434_add_brand_voice_docs_link/migration.sql new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/20240306173633_change_varchar_tables/migration.sql b/packages/prisma/prisma/migrations/20240306173633_change_varchar_tables/migration.sql new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/20240307164832_product_title_desc_optional/migration.sql b/packages/prisma/prisma/migrations/20240307164832_product_title_desc_optional/migration.sql new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/20240307165539_add_image_type_prompt/migration.sql b/packages/prisma/prisma/migrations/20240307165539_add_image_type_prompt/migration.sql new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/20240309075829_change_text_length/migration.sql b/packages/prisma/prisma/migrations/20240309075829_change_text_length/migration.sql new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/20240326114528_added_prompt_text/migration.sql b/packages/prisma/prisma/migrations/20240326114528_added_prompt_text/migration.sql new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/migrations/migration_lock.toml b/packages/prisma/prisma/migrations/migration_lock.toml new file mode 100644 index 0000000..e69de29 diff --git a/packages/prisma/prisma/schema.prisma b/packages/prisma/prisma/schema.prisma new file mode 100644 index 0000000..e69de29