Skip to content

Commit

Permalink
Merge pull request #10 from dartilesm/feature/rename-apps
Browse files Browse the repository at this point in the history
Feature/rename apps
  • Loading branch information
dartilesm authored Nov 17, 2024
2 parents e011e07 + 0149486 commit 8d00b12
Show file tree
Hide file tree
Showing 167 changed files with 561 additions and 554 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
ignorePatterns: ["apps/**", "packages/**"],
extends: ["@makify/eslint-config/library.js"],
extends: ["@makefy/eslint-config/library.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
Expand Down
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Makify ✨ - Make Things Simplify
# Makefy ✨ - Make Things Simplify

Makify is a hub of AI tools designed to simplify various tasks and processes. Utilizing cutting-edge artificial intelligence, Makify aims to provide users with powerful, easy-to-use solutions for their everyday needs.
Makefy is a hub of AI tools designed to simplify various tasks and processes. Utilizing cutting-edge artificial intelligence, Makefy aims to provide users with powerful, easy-to-use solutions for their everyday needs.

## Repository Structure

Expand All @@ -9,19 +9,19 @@ This repository is managed using [Turborepo](https://turbo.build/) for efficient
### Apps and Packages

- `chat-with-pdf`: the Chat with PDF AI tool
- `landing`: the landing page of Makify
- `@makify/ui`: a stub React component library all apps share made with [shadcn](https://ui.shadcn.com/).
- `@makify/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `@makify/typescript-config`: `tsconfig.json`s used throughout the monorepo
- `landing`: the landing page of Makefy
- `@makefy/ui`: a stub React component library all apps share made with [shadcn](https://ui.shadcn.com/).
- `@makefy/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `@makefy/typescript-config`: `tsconfig.json`s used throughout the monorepo

## Getting Started

To get started with Makify, follow these steps:
To get started with Makefy, follow these steps:

1. **Clone the Repository**:
```bash
git clone https://github.com/dartilesm/makify.git
cd makify
git clone https://github.com/dartilesm/makefy.git
cd makefy
```
2. **Install Dependencies**:
```bash
Expand All @@ -43,5 +43,7 @@ To get started with Makify, follow these steps:
```bash
bun run lint
```
-------------------------------------------------------------------------------
Thank you for using Makify! We hope our tools help you simplify your tasks and improve productivity.

---

Thank you for using Makefy! We hope our tools help you simplify your tasks and improve productivity.
8 changes: 4 additions & 4 deletions apps/chat-with-pdf/app/(default)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Header } from "@/components/header/header";
import { AppSidebar } from "@/components/sidebar/app-sidebar";
import { SidebarProvider } from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
import type { User } from "@makify/supabase/types";
import { SidebarProvider } from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";
import type { User } from "@makefy/supabase/types";
import { Metadata } from "next";
import { createSupabaseServer } from "@makify/supabase/server";
import { createSupabaseServer } from "@makefy/supabase/server";

export const metadata: Metadata = {
title: "Chats",
Expand Down
2 changes: 1 addition & 1 deletion apps/chat-with-pdf/app/actions/auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use server";

import { createSupabaseServer } from "@makify/supabase/server";
import { createSupabaseServer } from "@makefy/supabase/server";

export const verifyOtp = async (data: {
email: string;
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/actions/delete-chat.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use server";

import { createSupabaseServer } from "@makify/supabase/server";
import { Tables } from "@makify/supabase/types";
import { createSupabaseServer } from "@makefy/supabase/server";
import { Tables } from "@makefy/supabase/types";

import { revalidatePath, revalidateTag } from "next/cache";
import { redirect } from "next/navigation";
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/actions/edit-chat.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use server";

import { createSupabaseServer } from "@makify/supabase/server";
import { Tables } from "@makify/supabase/types";
import { createSupabaseServer } from "@makefy/supabase/server";
import { Tables } from "@makefy/supabase/types";
import { revalidatePath, revalidateTag } from "next/cache";

export async function editChat(document: Tables<"Document">, title: string) {
Expand Down
2 changes: 1 addition & 1 deletion apps/chat-with-pdf/app/actions/generate-document-title.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use server";

import { getContext } from "@/lib/context";
import { createSupabaseServer } from "@makify/supabase/server";
import { createSupabaseServer } from "@makefy/supabase/server";
import { google } from "@ai-sdk/google";
import { generateObject } from "ai";
import { revalidatePath, revalidateTag } from "next/cache";
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/actions/get-document-by-chat-id.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use server";

import { unstable_cache } from "next/cache";
import { createSupabaseServer } from "@makify/supabase/server";
import type { SupabaseClient } from "@makify/supabase/types";
import { createSupabaseServer } from "@makefy/supabase/server";
import type { SupabaseClient } from "@makefy/supabase/types";

async function retrieveDocumentByChatId(
supabase: SupabaseClient,
Expand Down
2 changes: 1 addition & 1 deletion apps/chat-with-pdf/app/actions/login.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use server";

import { createSupabaseServer } from "@makify/supabase/server";
import { createSupabaseServer } from "@makefy/supabase/server";
import { revalidatePath } from "next/cache";
import { redirect } from "next/navigation";

Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/actions/sign-in-with-oauth.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use server";

import { getOAuthRedirectUrl } from "@/lib/oauth-redirect-url";
import { createSupabaseServer } from "@makify/supabase/server";
import { createSupabaseServer } from "@makefy/supabase/server";
import { ReadonlyURLSearchParams, redirect } from "next/navigation";
import type { SignInWithOAuthCredentials } from "@makify/supabase/types";
import type { SignInWithOAuthCredentials } from "@makefy/supabase/types";
export async function signInWithOAuth(
provider: SignInWithOAuthCredentials["provider"],
searchParams: ReadonlyURLSearchParams,
Expand Down
2 changes: 1 addition & 1 deletion apps/chat-with-pdf/app/actions/signup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use server";

import { createSupabaseServer } from "@makify/supabase/server";
import { createSupabaseServer } from "@makefy/supabase/server";
import { revalidatePath } from "next/cache";
import { redirect } from "next/navigation";

Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/actions/update-chat-messages.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use server";

import { createSupabaseServer } from "@makify/supabase/server";
import { Tables } from "@makify/supabase/types";
import { createSupabaseServer } from "@makefy/supabase/server";
import { Tables } from "@makefy/supabase/types";
import { revalidatePath } from "next/cache";

type UpdateChatMessagesParams = {
Expand Down
2 changes: 1 addition & 1 deletion apps/chat-with-pdf/app/api/auth/callback/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextResponse } from "next/server";
// The client you created from the Server-Side Auth instructions
import { createSupabaseServer } from "@makify/supabase/server";
import { createSupabaseServer } from "@makefy/supabase/server";

export async function GET(request: Request) {
const { searchParams, origin } = new URL(request.url);
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/api/auth/confirm/route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { EmailOtpType } from "@makify/supabase/types";
import type { EmailOtpType } from "@makefy/supabase/types";
import { type NextRequest } from "next/server";

import { redirect } from "next/navigation";
import { createSupabaseServer } from "@makify/supabase/server";
import { createSupabaseServer } from "@makefy/supabase/server";

export async function GET(request: NextRequest) {
const { searchParams } = new URL(request.url);
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/api/auth/signup/route.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VerifyEmailTemplate } from "@/components/email-templates/verify-email-template";
import { createSupabaseAdmin } from "@makify/supabase/admin";
import { createSupabaseAdmin } from "@makefy/supabase/admin";
import { Resend } from "resend";

const resend = new Resend(process.env.RESEND_API_KEY);
Expand All @@ -19,7 +19,7 @@ export async function POST(request: Request) {
if (res.data.properties?.email_otp) {
// resend email
const resendRes = await resend.emails.send({
from: `Makify <onboarding@${process.env.RESEND_DOMAIN}>`,
from: `Makefy <onboarding@${process.env.RESEND_DOMAIN}>`,
to: [data.email],
subject: "Verify Email",
react: (
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/api/chat/new-chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { embedDocument, prepareDocument } from "@/lib/embed-document";
import { getLoadingMessages } from "@/lib/get-loading-messages";
import { getPdfData } from "@/lib/get-pdf-metadata";
import { rateLimitRequests } from "@/lib/rate-limit-requests";
import { createSupabaseServer } from "@makify/supabase/server";
import { createSupabaseServer } from "@makefy/supabase/server";
import { WebPDFLoader } from "@langchain/community/document_loaders/web/pdf";
import { PineconeRecord } from "@pinecone-database/pinecone";
import { revalidateTag } from "next/cache";
import { NextRequest, NextResponse } from "next/server";
import { Tables } from "@makify/supabase/types";
import { Tables } from "@makefy/supabase/types";

export const revalidate = 0;
export const dynamic = "force-dynamic";
Expand Down
2 changes: 1 addition & 1 deletion apps/chat-with-pdf/app/api/chat/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { rateLimitRequests } from "@/lib/rate-limit-requests";
import { google } from "@ai-sdk/google";
import { Message, StreamData, convertToCoreMessages, streamText } from "ai";
import { Tables } from "@makify/supabase/types";
import { Tables } from "@makefy/supabase/types";
import { getContext } from "utils/context";

export const revalidate = 0;
Expand Down
2 changes: 1 addition & 1 deletion apps/chat-with-pdf/app/auth/callback/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createSupabaseServer } from "@makify/supabase/server";
import { createSupabaseServer } from "@makefy/supabase/server";
import { NextResponse } from "next/server";

export async function GET(request: Request) {
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/components/chat/assistant-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
} from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";
import { useGlobalChat } from "hooks/use-global-chat";
import Markdown, { ExtraProps } from "react-markdown";
import rehypeRaw from "rehype-raw";
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/components/chat/chat-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
AlertTitle,
Button,
Textarea,
} from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
} from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";
import { Message } from "ai";
import { AnimatePresence, motion } from "framer-motion";
import { useGlobalChat } from "hooks/use-global-chat";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import { Button } from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
import { Button } from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";
import { motion } from "framer-motion";
import { useGlobalChat } from "hooks/use-global-chat";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@makify/ui";
} from "@makefy/ui";
import { BookmarkIcon, DownloadIcon } from "lucide-react";
import Link from "next/link";
import { useParams } from "next/navigation";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function ChatPDF({ documentId, messages }: ChatPDFProps) {
}}
fixed
>
~ Makify - Chat with PDF ~
~ Makefy - Chat with PDF ~
</Text>
<Text
style={{
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/components/chat/chat-list.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Avatar, AvatarFallback, AvatarImage } from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
import { Avatar, AvatarFallback, AvatarImage } from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";
import { ChatBubbleIcon } from "@radix-ui/react-icons";
import Link from "next/link";
import { getChats } from "lib/supabase/queries/get-chats";
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/components/chat/chat-messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
} from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";
import { AnimatePresence, inView, motion } from "framer-motion";
import { useGlobalChat } from "hooks/use-global-chat";
import { ArrowDown } from "lucide-react";
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/components/chat/chat-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
Tabs,
TabsList,
TabsTrigger,
} from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
} from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";
import { ChatLoading } from "./loading/chat.loading";
import { PDFLoading } from "./loading/pdf.loading";

Expand Down
2 changes: 1 addition & 1 deletion apps/chat-with-pdf/app/components/chat/chat.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { cn } from "@makify/ui/lib/utils";
import { cn } from "@makefy/ui/lib/utils";
import { ChatFooter } from "./chat-footer";
import { ChatHeader } from "./chat-header/chat-header";
import { ChatMessages } from "./chat-messages";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Skeleton } from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
import { Skeleton } from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";

export function ChatLoading() {
const fakeMessagesLoading = Array.from({ length: 6 }, () => null);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Skeleton } from "@makify/ui";
import { Skeleton } from "@makefy/ui";

export function PDFLoading() {
return (
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/components/chat/message-bubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
} from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";
import { Message } from "ai";
import { useGlobalChat } from "hooks/use-global-chat";
import { AssistantMessage } from "./assistant-message";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
TooltipProvider,
TooltipTrigger,
useToast,
} from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
} from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";
import { Message } from "ai";
import { AnimatePresence, CustomDomComponent, motion } from "framer-motion";
import { useGlobalChat } from "hooks/use-global-chat";
Expand All @@ -26,7 +26,7 @@ import { useParams } from "next/navigation";
import { forwardRef, RefAttributes, useState } from "react";
import { QUICK_ACTIONS } from "./constants/message-quick-actions";
import { MessageActions } from "./types/message-actions";
import { Tables } from "@makify/supabase/types";
import { Tables } from "@makefy/supabase/types";

type MessageQuickActionsProps = {
message: Message;
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-with-pdf/app/components/chat/user-message.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Alert, AlertDescription, AlertTitle } from "@makify/ui";
import { cn } from "@makify/ui/lib/utils";
import { Alert, AlertDescription, AlertTitle } from "@makefy/ui";
import { cn } from "@makefy/ui/lib/utils";
import { Message } from "ai";

type UserMessageProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
"use client";

import { Button } from "@makify/ui/components/button";
import { Button } from "@makefy/ui/components/button";
import {
Command,
CommandItem,
CommandList,
} from "@makify/ui/components/command";
} from "@makefy/ui/components/command";
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@makify/ui/components/popover";
import { cn } from "@makify/ui/lib/utils";
import { Tables } from "@makify/supabase/types";
} from "@makefy/ui/components/popover";
import { cn } from "@makefy/ui/lib/utils";
import { Tables } from "@makefy/supabase/types";
import { ChevronDownIcon, PencilIcon, TrashIcon } from "lucide-react";
import { useParams } from "next/navigation";
import { useEffect, useMemo, useRef, useState } from "react";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import {
TabsList,
TabsTrigger,
useToast,
} from "@makify/ui";
import { Tables } from "@makify/supabase/types";
} from "@makefy/ui";
import { Tables } from "@makefy/supabase/types";
import { LoaderCircleIcon, PencilIcon, TrashIcon } from "lucide-react";
import { useEffect } from "react";
import { useForm } from "react-hook-form";
Expand Down
Loading

0 comments on commit 8d00b12

Please sign in to comment.