-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: Login and Signup is not working (#69)
closes #62 ### Identified Issue During signup, the code unexpectedly checks for `userId` and `secret` before a user is even created. This check seems intended for email verification but is happening at the wrong stage, causing errors. ### Temporary Fix To prevent the error, a section of code in `signupPage.tsx` responsible for this check has been commented out. However, this is not a permanent solution. ### Next Steps 1. **Dedicated Verification Page:** Create a new page named `verifyEmail.tsx` specifically for handling email verification. This page will allow users to enter the userId and Secret received in their verification email.
- Loading branch information
Showing
45 changed files
with
1,689 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
NEXT_PUBLIC_APPWRITE_URL = <> | ||
NEXT_PUBLIC_APPWRITE_PROJECT_ID = <> | ||
NEXT_PUBLIC_APPWRITE_DB_ID = <> | ||
NEXT_PUBLIC_APPWRITE_COLLECTION_ID = <> | ||
|
||
NEXT_PUBLIC_SUCCESS_LOGIN_PATH='http://localhost:3000/' | ||
NEXT_PUBLIC_FAILURE_LOGIN_PATH='http://localhost:3000/login' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Figma Design Submission | ||
description: Submit a design file for review | ||
title: "[Design]: " | ||
labels: [design, figma, infraboard, xerocodee] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: "Thank you for submitting your design. Please provide the necessary details for review." | ||
|
||
- type: input | ||
id: design-title | ||
attributes: | ||
label: Design Title | ||
description: "What is the title of your design?" | ||
placeholder: "Enter the title here" | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: design-description | ||
attributes: | ||
label: Design Description | ||
description: "Please provide a detailed description of your design." | ||
placeholder: "Describe your design here" | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: figma-link | ||
attributes: | ||
label: Figma File Link | ||
description: "Please paste the link to your Figma file." | ||
placeholder: "https://www.figma.com/file/..." | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Terms and Conditions | ||
description: "Please accept the terms and conditions." | ||
options: | ||
- label: "I have read and agree to the [Terms of Service](/terms) and [Privacy Policy](/privacy)." | ||
|
||
- type: dropdown | ||
id: design-category | ||
attributes: | ||
label: Design Category | ||
description: "Please select the category your design best fits into." | ||
options: | ||
- UI/UX | ||
- Branding | ||
- Icons | ||
- Illustrations | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,15 +33,17 @@ InfraBoard combines synchronous and asynchronous services for a streamlined expe | |
### Getting Started | ||
Here you will find all the available npm commands [HERE](https://github.com/xerocodee/InfraBoard/wiki/Getting-Started) | ||
|
||
## 🤝 Contributing | ||
##### Demo Loging | ||
|
||
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**. | ||
Email : `[email protected]` | Passowrd : `test@123` | ||
|
||
1. Fork the Project | ||
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) | ||
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) | ||
4. Push to the Branch (`git push origin feature/AmazingFeature`) | ||
5. Open a Pull Request | ||
## 🤝 Contribution Department | ||
|
||
InfraBoard Open Source Contribution Department | ||
|
||
1. [Tech Department](./CONTRIBUTING.md) | [Code Structure](./STRUCTURE.md) | ||
2. [Designer Department](https://www.figma.com/file/HALTRuGqqInPg3VQ0kMwH2/InfraBoard?type=design&node-id=0%3A1&mode=design&t=GNyhaHaAAO4b4RgK-1) | ||
3. Technical Documentation Department : Comming Soon . . . | ||
|
||
## Preview | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
/// <reference types="next/navigation-types/compat/navigation" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
User-agent: * | ||
Allow: / | ||
User-agent: * | ||
Disallow: | ||
|
||
Sitemap: https://www.infraboard.xerocodee.com/sitemap.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
|
||
<url> | ||
<loc>https://www.infraboard.xerocodee.com/</loc> | ||
<priority>1</priority> | ||
</url> | ||
|
||
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// generate-robots.js | ||
const fs = require('fs') | ||
|
||
const robotsContent = `User-agent: * | ||
Disallow: | ||
Sitemap: https://www.infraboard.xerocodee.com/sitemap.xml | ||
` | ||
|
||
fs.writeFileSync('public/robots.txt', robotsContent) | ||
console.log('robots.txt generated!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const fs = require('fs') | ||
|
||
const pages = [{ path: '/', priority: 1.0 }] | ||
|
||
const sitemapContent = `<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
${pages | ||
.map( | ||
(page) => ` | ||
<url> | ||
<loc>https://www.infraboard.xerocodee.com${page.path}</loc> | ||
<priority>${page.priority}</priority> | ||
</url> | ||
`, | ||
) | ||
.join('')} | ||
</urlset> | ||
` | ||
|
||
fs.writeFileSync('public/sitemap.xml', sitemapContent) | ||
console.log('sitemap.xml generated!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import type { Metadata } from 'next' | ||
import { Inter } from 'next/font/google' | ||
import '../globals.css' | ||
import { TooltipProvider } from '@/components/ui/tooltip' | ||
const inter = Inter({ subsets: ['latin'] }) | ||
|
||
export const metadata: Metadata = { | ||
title: 'InfraBoard', | ||
description: 'Visual Cloud Infrastructure Management', | ||
} | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode | ||
}>) { | ||
return ( | ||
<html lang="en"> | ||
<body className={inter.className}> | ||
<TooltipProvider delayDuration={50}>{children}</TooltipProvider> | ||
</body> | ||
</html> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import LoginPage from '@/pages/loginPage' | ||
|
||
const Login = () => { | ||
return <LoginPage /> | ||
} | ||
|
||
export default Login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import dynamic from 'next/dynamic' | ||
|
||
const SignUpPage = dynamic(() => import('@/pages/signupPage'), { ssr: false }) | ||
|
||
const Signup = () => { | ||
return <SignUpPage /> | ||
} | ||
|
||
export default Signup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,10 @@ | ||
'use client' | ||
import Canvas from '@/components/canvas/canvas' | ||
import Header from '@/components/header/header' | ||
import SideBar from '@/components/sidebar/sidebar' | ||
import { HTML5Backend } from 'react-dnd-html5-backend' | ||
import { DndProvider } from 'react-dnd' | ||
import CodeEditor from '@/components/code_editor/codeEditor' | ||
import { useState } from 'react' | ||
import { Button } from '@/components/ui/button' | ||
|
||
interface DroppedItem { | ||
subTab: { | ||
title: string | ||
icon?: any | ||
subList: any[] | ||
} | ||
position: { x: number; y: number } | ||
} | ||
|
||
export default function Home() { | ||
const [droppedItems, setDroppedItems] = useState<DroppedItem[]>([]) | ||
const handleItemDrop = (newItem: DroppedItem) => { | ||
setDroppedItems((prevItems) => [...prevItems, newItem]) | ||
} | ||
import RootPage from '@/pages/home' | ||
const Home = () => { | ||
return ( | ||
<main> | ||
<DndProvider backend={HTML5Backend}> | ||
<Header /> | ||
<SideBar /> | ||
<Canvas onItemDrop={handleItemDrop} droppedItems={droppedItems} /> | ||
<CodeEditor droppedItems={droppedItems} /> | ||
</DndProvider> | ||
<RootPage /> | ||
</main> | ||
) | ||
} | ||
|
||
export default Home |
Oops, something went wrong.