diff --git a/.env b/.env new file mode 100644 index 000000000..a90afdb33 --- /dev/null +++ b/.env @@ -0,0 +1,5 @@ +DB_URL="mongodb://localhost:27017/TrustBridge" +JWT_SECRET="NetDpVFFq8H8tYtWT3bKjKzgTmsXPZ7mylWw/Z4t2PKC09bhJuL9aud0u4GPuGBojCDZ/XHrpHDBmPokRoTA==" +FRONTEND_URL=http://localhost:5173 +REDIS_URL=redis://localhost:6379 +VITE_BACKEND_URL=http://localhost:5000 diff --git a/index.html b/index.html index 55f905377..ec7d134aa 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,9 @@
- + -{message.content}
- {lastMessage.senderId === currentUser.id ? 'You: ' : ''} + {lastMessage.senderId === currentUser.userId + ? "You: " + : ""} {lastMessage.content}
)} - - {lastMessage && !lastMessage.isRead && lastMessage.senderId !== currentUser.id && ( -- {formatDistanceToNow(new Date(request.createdAt), { addSuffix: true })} + {formatDistanceToNow(new Date(request.time), { addSuffix: true })}
+ Description: {c.description} +
+ ++ Goal Amount: ${c.goalAmount}k +
+ + +Investor • {investor.totalInvestments} investments
- ++ Investor • {investor.totalInvestments || "0"} investments +
+{investor.bio}
{investor.minimumInvestment} - {investor.maximumInvestment}
++ {investor.minimumInvestment} - {investor.maximumInvestment} +
{user.name}
-{user.role}
++ {user.name} +
++ {user.role} +
Need assistance?
-+ Choose how you want the interface to look +
++ {theme.description} +
++ Adjust the text size for better readability +
+{size.description}
++ Base size: {size.size} +
++ Preview: This text is displayed in your current selected font size setting. +
++ Reset all appearance settings to their default values +
++ Expires {method.expiryMonth}/{method.expiryYear} +
+{invoice.description}
+{invoice.date}
+Hello,
+Your account is currently under review by our administrators. You will be notified about your account activation within 24 hours.
+If you have any questions, reply to this email or contact support at trustbridgeai@gmail.
+Thank you for your patience.
+Regards
TrustBridgeAi Support Team
Hello,
+Your account is currently under review by our administrators. You will be notified about your account activation within 24 hours.
+If you have any questions, reply to this email or contact support at trustbridgeai@gmail.
+Thank you for your patience.
+Regards
TrustBridgeAi Support Team
+ JPG, GIF or PNG. Max size of 800K +
++ Add an extra layer of security to your account by requiring a + verification code in addition to your password. +
+{passwordError}
++ Password updated successfully! +
+{activity.location}
+{activity.date}
+Entrepreneur not set his profile yet..
++ {error || helperText} +
)}- {error || helperText} -
- )} -
*/}
+ {fromName} request you for {callType} call
+To reset your password, please click the button below:
+ + Reset Password + +If the button doesn’t work, copy and paste this link into your browser:
+ + `; + + const sub = "Password reset instructions"; + const res = await axios.post( + `${URL}/auth/send-mail`, + { email, message, sub, role }, + { + withCredentials: true, + } + ); + const { user } = res.data; + + localStorage.setItem(USER_STORAGE_KEY, JSON.stringify(user)); + toast.success("Password reset instructions sent to your email"); } catch (error) { toast.error((error as Error).message); throw error; @@ -114,20 +189,29 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children }; // Mock reset password function - const resetPassword = async (token: string, newPassword: string): Promise{user.name}
+Loading users...
; + if (users.length === 0) + returnNo users found.
; + + return ( +{ + e.preventDefault(); + setGraphViewModal({ show: true, type: "startup" }); + }} + > + View +
+{ + e.preventDefault(); + setGraphViewModal({ show: true, type: "industry" }); + }} + > + View +
+| Name | +Role | +Location | +Is Online | +When Registered | +
|---|
| + Name + | ++ Business Name + | ++ Action + | +
|---|---|---|
| John Carter | +Carter Tech | +
+ |
+
| Sarah Khan | ++ SK Enterprises + | +
+ |
+
{c.description}
++ 🎯 Goal: ${c.goalAmount} | 💰 Raised:{" "} + ${c.raisedAmount} +
++ Status:{" "} + + {c.status} + +
+ ++ Start:{" "} + {new Date(c.startDate).toLocaleDateString()} +
++ End:{" "} + {new Date(c.endDate).toLocaleDateString()} +
++ Status:{" "} + + {c.status} + +
+ +| Name | +Role | +Reason | +Status | +|
|---|---|---|---|---|
| {user.name} | +{user.email} | +{user.role} | +{user.reason} | ++ {user.status.toUpperCase()} + | +
Loading investors...
; + + if (investors.length === 0) + returnNo investors found.
; + + return ( +| Name | +Total Investments | +Successful Exits | +
|---|
| Name | +Business Name | +Action | +
|---|---|---|
| {user.name} | +{user.business} | +
+ |
+
| Name | +Campaign | +Amount Invested | +
|---|
- Connect with investors and entrepreneurs + Connect with entrepreneurs, investors, and admins
Upcoming Meetings
++ Upcoming Meetings +
Profile Views
++ Profile Views +
No collaboration requests yet
-When investors are interested in your startup, their requests will appear here
++ When investors are interested in your startup, their + requests will appear here +
Find and connect with promising entrepreneurs
++ Find and connect with promising entrepreneurs +
Total Startups
-+ Total Startups +
+Industries
-+ Industries +
+Your Connections
++ Your Connections +
No startups match your filters
-Track and manage your investment pipeline
++ Track and manage your investment pipeline +
Total Investment
-$4.3M
-Active Deals
-8
-Portfolio Companies
-12
-Closed This Month
-2
-| - Startup - | -- Amount - | -- Equity - | -- Status - | -- Stage - | -- Last Activity - | -- Actions - | -||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
-
-
-
- {deal.startup.name}
-
-
- {deal.startup.industry}
+ {filteredDeals.length === 0 ? (
+ No deals found. + ) : ( +
+
+
|
+
+ {deal.amount}
+ |
+
+ {deal.equity}
+ |
+
+ |
+
+ {deal.stage}
+ |
+
+
+ {new Date(deal.lastActivity).toLocaleDateString()}
+
+ |
+
+ |
+
Manage your startup's important files
{description}
+{fundNeeded}
++ Description: + {description} +
+{exits}
+
+
+ Connect with investors who match your startup's needs
++ Connect with investors who match your startup's needs +
- Start connecting with entrepreneurs and investors to begin conversations + Start connecting with entrepreneurs and investors to begin + conversation
Stay updated with your network activity
++ Stay updated with your network activity +
- {notification.content} -
- -{notification.content}
+ ++ No notifications found 🚀 +
+ )}The entrepreneur profile you're looking for doesn't exist or has been removed.
++ The entrepreneur profile you're looking for doesn't exist or has been + removed. +
+ s -
{entrepreneur.bio}
++ {entrepreneur.bio || "Say about yours..?"} +
- {entrepreneur?.pitchSummary?.split('.')[0]}. + {entrepreneur?.pitchSummary?.split(".")[0] || "--"}.
- {entrepreneur.pitchSummary} + {entrepreneur.pitchSummary || "--"}
- The {entrepreneur.industry} market is experiencing significant growth, with a projected CAGR of 14.5% through 2027. Our solution addresses key pain points in this expanding market. + {entrepreneur.marketOpportunity || "--"}
- Unlike our competitors, we offer a unique approach that combines innovative technology with deep industry expertise, resulting in superior outcomes for our customers. + {entrepreneur.advantage || "--"}
Founder & CEO
CTO
Head of Product
+ {entrepreneur.teamSize - 3} more team members
++ + {entrepreneur?.teamSize - 3} more team members +
{entrepreneur.fundingNeeded}
++ {AmountMeasureWithTags(entrepreneur.fundingNeeded ?? 0)} +
$8M - $12M
++ ${AmountMeasureWithTags(valuation ?? 0)} +
$750K Seed (2022)
+ + Previous Funding + ++ $750K Seed (2022) +
Updated 2 months ago
++ Updated 2 months ago +
Updated 1 month ago
Updated 2 weeks ago
- Request access to detailed documents and financials by sending a collaboration request. + Request access to detailed documents and financials by + sending a collaboration request.
- + {!hasRequestedCollaboration ? ( -The investor profile you're looking for doesn't exist or has been removed.
- -+ The investor profile you're looking for doesn't exist or has been + removed. +
+ +
{investor.bio}
++ {investor.bio || "Say something about u..?"} +
Invested in 2022
+ {(investor.portfolioCompanies && + investor.portfolioCompanies.map((company, index) => ( ++ Invested in 2022 +
+- {investor.minimumInvestment} - {investor.maximumInvestment} + + Investment Range + +
+
{investor.totalInvestments} companies
+ + Total Investments + ++ {investor.totalInvestments || 0} companies +
3-5 years
+ + Typical Investment Timeline + ++ {investor.minTimline || 0}-{investor.maxTimline || 0} years +
4
++ {investor.successfullExits || 0} +
3.2x
++ 3.2x +
{investor.portfolioCompanies.length}
++ {(investor.portfolioCompanies && + investor.portfolioCompanies.length) || + 0} +
Manage your account preferences and settings
++ Manage your account preferences and settings +
- JPG, GIF or PNG. Max size of 800K -
-- Add an extra layer of security to your account -
-📡 Call in Progress...
+ ) : ( +Not connected
+ )} +📡 Call in Progress...
+ ) : ( +Not connected
+ )} +