From cd4c9df2ac10e0ece99d6f2ca667d8fccb62e19b Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 9 Feb 2025 20:24:14 +0000 Subject: [PATCH] chore: clean up obsolete files and consolidate code Co-Authored-By: G --- app/api/products/search/route.ts | 6 +- app/blog/future-of-shopping/page.tsx | 69 --------- app/blog/libertech-revolution/page.tsx | 76 ---------- app/blog/welcome-to-botsmann/page.tsx | 66 --------- package-lock.json | 185 +----------------------- package.json | 3 - public/index.html | 50 ------- public/script.js | 35 ----- public/solutions.html | 13 -- public/style.css | 187 ------------------------- public/thank-you.html | 24 ---- {lib => src/lib}/nlp.ts | 0 {lib => src/lib}/platforms/amazon.ts | 0 {lib => src/lib}/platforms/ricardo.ts | 0 {lib => src/lib}/rate-limit.ts | 0 start-server.js | 21 --- tests/__tests__/lib/nlp.test.ts | 2 +- tests/__tests__/lib/platforms.test.ts | 4 +- 18 files changed, 8 insertions(+), 733 deletions(-) delete mode 100644 app/blog/future-of-shopping/page.tsx delete mode 100644 app/blog/libertech-revolution/page.tsx delete mode 100644 app/blog/welcome-to-botsmann/page.tsx delete mode 100644 public/index.html delete mode 100644 public/script.js delete mode 100644 public/solutions.html delete mode 100644 public/style.css delete mode 100644 public/thank-you.html rename {lib => src/lib}/nlp.ts (100%) rename {lib => src/lib}/platforms/amazon.ts (100%) rename {lib => src/lib}/platforms/ricardo.ts (100%) rename {lib => src/lib}/rate-limit.ts (100%) delete mode 100644 start-server.js diff --git a/app/api/products/search/route.ts b/app/api/products/search/route.ts index 36f9d04..aef08ba 100644 --- a/app/api/products/search/route.ts +++ b/app/api/products/search/route.ts @@ -1,7 +1,7 @@ import { NextResponse } from 'next/server'; -import { searchAmazon } from '@/lib/platforms/amazon'; -import { searchRicardo } from '@/lib/platforms/ricardo'; -import { processQuery } from '@/lib/nlp'; +import { searchAmazon } from '@/src/lib/platforms/amazon'; +import { searchRicardo } from '@/src/lib/platforms/ricardo'; +import { processQuery } from '@/src/lib/nlp'; import { ProductResult } from '@/types/products'; export async function POST(req: Request) { diff --git a/app/blog/future-of-shopping/page.tsx b/app/blog/future-of-shopping/page.tsx deleted file mode 100644 index 36721ec..0000000 --- a/app/blog/future-of-shopping/page.tsx +++ /dev/null @@ -1,69 +0,0 @@ -'use client'; - -import React from 'react'; -import Link from 'next/link'; - -export default function FutureOfShoppingPost() { - return ( -
-

- The Future of Shopping: One Word is All You Need -

- -

- Shopping is about to become radically simpler with Roboshop's revolutionary one-word query - system. Our AI-powered shopping assistant understands exactly what you need from a single - word, making online shopping more efficient and intuitive than ever before. -

- -

The Power of One Word

-

- Traditional e-commerce requires you to navigate through multiple menus, filters, and search - results. With Roboshop, you simply: -

-
    -
  1. Enter a single word
  2. -
  3. Let our AI understand your intent
  4. -
  5. Receive perfectly matched products
  6. -
- -

Multi-Platform Integration

-

- Roboshop searches across multiple e-commerce platforms simultaneously: -

- - -

How It Works

-

Our advanced AI system:

-
    -
  1. Analyzes Intent: Understanding not just the word, but its context and likely use case
  2. -
  3. Matches Products: Searching across platforms for the best matches
  4. -
  5. Compares Options: Evaluating prices, ratings, and availability
  6. -
  7. Presents Results: Showing you the most relevant options first
  8. -
- -

Real-World Examples

-

Here's how Roboshop interprets different single-word queries:

- - -
- - Contact Us - -
-
- ); -} diff --git a/app/blog/libertech-revolution/page.tsx b/app/blog/libertech-revolution/page.tsx deleted file mode 100644 index fed29ea..0000000 --- a/app/blog/libertech-revolution/page.tsx +++ /dev/null @@ -1,76 +0,0 @@ -'use client'; - -import React from 'react'; -import Link from 'next/link'; - -export default function LibertechRevolutionPost() { - return ( -
-

- The LiberTech Revolution: Transparency Through Technology -

- -

- In an age where government accountability is more crucial than ever, we're proud to introduce - LiberTech - our initiative to maximize human liberty through technological innovation. At the - heart of this revolution is our government spending tracker, a tool that brings unprecedented - transparency to public finance. -

- -

The Power of Public Oversight

-

- Our government spending tracker transforms how citizens interact with public finance by creating - a Venmo-like social experience around government transactions. Every payment made by government - entities is: -

- - -

Social Features for Civic Engagement

-

What makes our platform revolutionary is its social aspect. Users can:

- - -

Impact on Democracy

-

This level of transparency and engagement has far-reaching implications:

-
    -
  1. Officials know their spending decisions are visible to all
  2. -
  3. Citizens gain insight into how their tax money is used
  4. -
  5. The ability to comment and donate creates a new form of civic engagement
  6. -
  7. Patterns in spending become visible and analyzable
  8. -
- -

Looking Forward

-

- The government spending tracker is just the beginning. We're developing additional tools to: -

- - -
- - Contact Us - -
-
- ); -} diff --git a/app/blog/welcome-to-botsmann/page.tsx b/app/blog/welcome-to-botsmann/page.tsx deleted file mode 100644 index b106160..0000000 --- a/app/blog/welcome-to-botsmann/page.tsx +++ /dev/null @@ -1,66 +0,0 @@ -'use client'; - -import React from 'react'; -import Link from 'next/link'; - -export default function WelcomePost() { - return ( -
-

- Welcome to Botsmann: AI Solutions for Human Progress -

- -

- At Botsmann, we're dedicated to developing cutting-edge AI solutions that help businesses automate tasks, - enhance productivity, and unlock new possibilities. Our suite of specialized bots and innovative projects - are designed to transform industries and promote transparency. -

- -

Our Mission

-

- We believe in the power of AI to drive positive change in society. Through our specialized bots and - ambitious projects, we're working to: -

- - -

Featured Projects

- -

LiberTech

-

- Our flagship project dedicated to maximizing human liberty and minimizing government power. - The centerpiece is our Venmo-style government spending tracker, bringing unprecedented - transparency to public finance. -

- -

Roboshop

-

- An AI-powered shopping assistant that finds exactly what you need with just one word. - By integrating with multiple e-commerce platforms and using advanced natural language - processing, we're simplifying the online shopping experience. -

- -

Get Involved

-

- We're always looking for partners, contributors, and early adopters who share our vision. - Whether you're interested in our specialized bots or want to help promote government - transparency, we'd love to hear from you. -

- -
- - Contact Us - -
-
- ); -} diff --git a/package-lock.json b/package-lock.json index 01cd591..b241452 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,11 +14,8 @@ "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.16", "autoprefixer": "^10.4.17", - "mongodb": "^6.12.0", - "mongoose": "^8.9.3", "next": "^14.0.4", "next-mdx-remote": "^5.0.0", - "nodemailer": "^6.9.16", "postcss": "^8.4.35", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -1181,14 +1178,6 @@ "react": ">=16" } }, - "node_modules/@mongodb-js/saslprep": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.9.tgz", - "integrity": "sha512-tVkljjeEaAhCqTzajSdgbQ6gE6f3oneVwa3iXR6csiEwXXOFsiC6Uh9iAjAhXPtqa/XMDHWjjeNH/77m/Yq2dw==", - "dependencies": { - "sparse-bitfield": "^3.0.3" - } - }, "node_modules/@next/env": { "version": "14.0.4", "resolved": "https://registry.npmjs.org/@next/env/-/env-14.0.4.tgz", @@ -1905,19 +1894,6 @@ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", "license": "MIT" }, - "node_modules/@types/webidl-conversions": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz", - "integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==" - }, - "node_modules/@types/whatwg-url": { - "version": "11.0.5", - "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz", - "integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==", - "dependencies": { - "@types/webidl-conversions": "*" - } - }, "node_modules/@types/yargs": { "version": "17.0.33", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", @@ -2380,14 +2356,6 @@ "node-int64": "^0.4.0" } }, - "node_modules/bson": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/bson/-/bson-6.10.1.tgz", - "integrity": "sha512-P92xmHDQjSKPLHqFxefqMxASNq/aWJMEZugpCjf+AF/pgcUpMMQCg7t7+ewko0/u8AapvF3luf/FoehddEK+sA==", - "engines": { - "node": ">=16.20.1" - } - }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", @@ -5197,14 +5165,6 @@ "node": ">=6" } }, - "node_modules/kareem": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.6.3.tgz", - "integrity": "sha512-C3iHfuGUXK2u8/ipq9LfjFfXFxAZMQJJq7vLS45r3D9Y2xQ/m4S8zaR4zMLFWh9AsNPXmcFfUDhTEO8UIC/V6Q==", - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", @@ -5543,11 +5503,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/memory-pager": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", - "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==" - }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", @@ -6246,100 +6201,6 @@ "node": ">=16 || 14 >=14.17" } }, - "node_modules/mongodb": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.12.0.tgz", - "integrity": "sha512-RM7AHlvYfS7jv7+BXund/kR64DryVI+cHbVAy9P61fnb1RcWZqOW1/Wj2YhqMCx+MuYhqTRGv7AwHBzmsCKBfA==", - "dependencies": { - "@mongodb-js/saslprep": "^1.1.9", - "bson": "^6.10.1", - "mongodb-connection-string-url": "^3.0.0" - }, - "engines": { - "node": ">=16.20.1" - }, - "peerDependencies": { - "@aws-sdk/credential-providers": "^3.188.0", - "@mongodb-js/zstd": "^1.1.0 || ^2.0.0", - "gcp-metadata": "^5.2.0", - "kerberos": "^2.0.1", - "mongodb-client-encryption": ">=6.0.0 <7", - "snappy": "^7.2.2", - "socks": "^2.7.1" - }, - "peerDependenciesMeta": { - "@aws-sdk/credential-providers": { - "optional": true - }, - "@mongodb-js/zstd": { - "optional": true - }, - "gcp-metadata": { - "optional": true - }, - "kerberos": { - "optional": true - }, - "mongodb-client-encryption": { - "optional": true - }, - "snappy": { - "optional": true - }, - "socks": { - "optional": true - } - } - }, - "node_modules/mongodb-connection-string-url": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.1.tgz", - "integrity": "sha512-XqMGwRX0Lgn05TDB4PyG2h2kKO/FfWJyCzYQbIhXUxz7ETt0I/FqHjUeqj37irJ+Dl1ZtU82uYyj14u2XsZKfg==", - "dependencies": { - "@types/whatwg-url": "^11.0.2", - "whatwg-url": "^13.0.0" - } - }, - "node_modules/mongoose": { - "version": "8.9.3", - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-8.9.3.tgz", - "integrity": "sha512-G50GNPdMqhoiRAJ/24GYAzg13yxXDD3FOOFeYiFwtHmHpAJem3hxbYIxAhLJGWbYEiUZL0qFMu2LXYkgGAmo+Q==", - "dependencies": { - "bson": "^6.10.1", - "kareem": "2.6.3", - "mongodb": "~6.12.0", - "mpath": "0.9.0", - "mquery": "5.0.0", - "ms": "2.1.3", - "sift": "17.1.3" - }, - "engines": { - "node": ">=16.20.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mongoose" - } - }, - "node_modules/mpath": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", - "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/mquery": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/mquery/-/mquery-5.0.0.tgz", - "integrity": "sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==", - "dependencies": { - "debug": "4.x" - }, - "engines": { - "node": ">=14.0.0" - } - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -6491,14 +6352,6 @@ "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", "license": "MIT" }, - "node_modules/nodemailer": { - "version": "6.9.16", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.16.tgz", - "integrity": "sha512-psAuZdTIRN08HKVd/E8ObdV6NO7NTBY3KsC30F7M4H1OnmLCUNaS56FpYxyb26zWLSyYF9Ozch9KYHhHegsiOQ==", - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -7029,6 +6882,7 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, "engines": { "node": ">=6" } @@ -7458,11 +7312,6 @@ "node": ">=8" } }, - "node_modules/sift": { - "version": "17.1.3", - "resolved": "https://registry.npmjs.org/sift/-/sift-17.1.3.tgz", - "integrity": "sha512-Rtlj66/b0ICeFzYTuNvX/EF1igRbbnGSvEyT79McoZa/DeGhMyC5pWKOEsZKnpkqtSeovd5FL/bjHWC3CIIvCQ==" - }, "node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", @@ -7527,14 +7376,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/sparse-bitfield": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", - "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", - "dependencies": { - "memory-pager": "^1.0.2" - } - }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -7915,17 +7756,6 @@ "node": ">=6" } }, - "node_modules/tr46": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", - "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", - "dependencies": { - "punycode": "^2.3.0" - }, - "engines": { - "node": ">=14" - } - }, "node_modules/trim-lines": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", @@ -8353,6 +8183,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "dev": true, "engines": { "node": ">=12" } @@ -8393,18 +8224,6 @@ "node": ">=12" } }, - "node_modules/whatwg-url": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-13.0.0.tgz", - "integrity": "sha512-9WWbymnqj57+XEuqADHrCJ2eSXzn8WXIW/YSGaZtb2WKAInQ6CHfaUUcTyyver0p8BDg5StLQq8h1vtZuwmOig==", - "dependencies": { - "tr46": "^4.1.1", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", diff --git a/package.json b/package.json index 83a63d4..a5e2f8d 100644 --- a/package.json +++ b/package.json @@ -16,11 +16,8 @@ "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.16", "autoprefixer": "^10.4.17", - "mongodb": "^6.12.0", - "mongoose": "^8.9.3", "next": "^14.0.4", "next-mdx-remote": "^5.0.0", - "nodemailer": "^6.9.16", "postcss": "^8.4.35", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/public/index.html b/public/index.html deleted file mode 100644 index f703d11..0000000 --- a/public/index.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - Botsmann - - - - - - - - -
-
-

AI Solutions for - Human Progress -

-

Transforming industries through advanced robotics and artificial intelligence

-
- -
-

Contact Us

-
-
- - -
-
- - -
-
- - -
- -
-
-
-
- - diff --git a/public/script.js b/public/script.js deleted file mode 100644 index 14cd2ab..0000000 --- a/public/script.js +++ /dev/null @@ -1,35 +0,0 @@ -document.getElementById('consultationForm').addEventListener('submit', async (event) => { - event.preventDefault(); - - const formStatus = document.getElementById('formStatus'); - formStatus.textContent = 'Sending...'; - formStatus.style.color = 'blue'; - - const formData = { - name: document.getElementById('name').value.trim(), - email: document.getElementById('email').value.trim(), - message: document.getElementById('message').value.trim() - }; - - try { - const response = await fetch('/api/consultations', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify(formData) - }); - - const data = await response.json(); - - if (response.ok) { - window.location.href = '/thank-you.html'; - } else { - formStatus.textContent = data.error || 'An error occurred'; - formStatus.style.color = 'red'; - console.error('Submission error:', data); - } - } catch (error) { - formStatus.textContent = 'Failed to send message. Please try again.'; - formStatus.style.color = 'red'; - console.error('Request error:', error); - } -}); \ No newline at end of file diff --git a/public/solutions.html b/public/solutions.html deleted file mode 100644 index e94dca9..0000000 --- a/public/solutions.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - Solutions - Coming Soon - - - -
-

Contact Us for Details

- Back to Home -
- - \ No newline at end of file diff --git a/public/style.css b/public/style.css deleted file mode 100644 index 41445c1..0000000 --- a/public/style.css +++ /dev/null @@ -1,187 +0,0 @@ -:root { - --primary: #0066FF; - --background: #000000; - --text: #FFFFFF; - --gray: #333333; -} - -body { - margin: 0; - padding: 0; - font-family: 'Inter', sans-serif; - background: var(--background); - color: var(--text); - line-height: 1.6; -} - -nav { - display: flex; - justify-content: space-between; - align-items: center; - padding: 2rem 4rem; - position: fixed; - width: 100%; - box-sizing: border-box; - background: rgba(0, 0, 0, 0.8); - backdrop-filter: blur(10px); - z-index: 100; -} - -.logo { - font-size: 1.5rem; - font-weight: 600; -} - -.nav-links a { - color: var(--text); - text-decoration: none; - margin-left: 2rem; - opacity: 0.8; - transition: opacity 0.3s; -} - -.nav-links a:hover { - opacity: 1; -} - -.hero { - min-height: 100vh; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - text-align: center; - padding: 0 2rem; -} - -h1 { - font-size: 4rem; - margin-bottom: 1rem; - font-weight: 600; -} - -.gradient-text { - background: linear-gradient(45deg, #0066FF, #00FF95); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; -} - -.contact-form { - max-width: 600px; - margin: 4rem auto; - padding: 2rem; -} - -.form-group { - position: relative; - margin-bottom: 2rem; -} - -input, textarea { - width: 100%; - padding: 1rem; - background: var(--gray); - border: none; - border-radius: 8px; - color: var(--text); - font-size: 1rem; - transition: all 0.3s; -} - -textarea { - height: 150px; - resize: vertical; -} - -label { - position: absolute; - left: 1rem; - top: 1rem; - color: #888; - transition: all 0.3s; - pointer-events: none; -} - -input:focus ~ label, -textarea:focus ~ label, -input:valid ~ label, -textarea:valid ~ label { - top: -1.5rem; - left: 0; - font-size: 0.875rem; - color: var(--primary); -} - -button { - width: 100%; - padding: 1rem; - background: var(--primary); - color: var(--text); - border: none; - border-radius: 8px; - font-size: 1rem; - cursor: pointer; - position: relative; - overflow: hidden; - transition: transform 0.2s; -} - -button:hover { - transform: translateY(-2px); -} - -.spinner { - display: none; - width: 20px; - height: 20px; - border: 2px solid #ffffff; - border-top: 2px solid transparent; - border-radius: 50%; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - animation: spin 1s linear infinite; -} - -@keyframes spin { - 0% { transform: translate(-50%, -50%) rotate(0deg); } - 100% { transform: translate(-50%, -50%) rotate(360deg); } -} - -@media (max-width: 768px) { - nav { - padding: 1rem 2rem; - } - - h1 { - font-size: 2.5rem; - } -} -.thank-you-page { - text-align: center; - padding: 4rem 2rem; - max-width: 800px; - margin: 0 auto; -} - -.thank-you-content { - margin-top: 2rem; - font-size: 1.2rem; - line-height: 1.6; -} - -.back-button { - display: inline-block; - margin-top: 2rem; - padding: 0.8rem 1.5rem; - background: linear-gradient(90deg, #4776E6, #8E54E9); - color: white; - text-decoration: none; - border-radius: 4px; - transition: opacity 0.3s ease; -} - -.back-button:hover { - opacity: 0.9; -} \ No newline at end of file diff --git a/public/thank-you.html b/public/thank-you.html deleted file mode 100644 index 477ae14..0000000 --- a/public/thank-you.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Thank You! - Botsmann - - - - - - -
-

Thank You for Reaching Out! 🚀

-
-

We're excited to explore how we can help transform your ideas into reality.

-

Our team has received your message and will get back to you within 24 hours.

- Back to Home -
-
- - \ No newline at end of file diff --git a/lib/nlp.ts b/src/lib/nlp.ts similarity index 100% rename from lib/nlp.ts rename to src/lib/nlp.ts diff --git a/lib/platforms/amazon.ts b/src/lib/platforms/amazon.ts similarity index 100% rename from lib/platforms/amazon.ts rename to src/lib/platforms/amazon.ts diff --git a/lib/platforms/ricardo.ts b/src/lib/platforms/ricardo.ts similarity index 100% rename from lib/platforms/ricardo.ts rename to src/lib/platforms/ricardo.ts diff --git a/lib/rate-limit.ts b/src/lib/rate-limit.ts similarity index 100% rename from lib/rate-limit.ts rename to src/lib/rate-limit.ts diff --git a/start-server.js b/start-server.js deleted file mode 100644 index 916a74c..0000000 --- a/start-server.js +++ /dev/null @@ -1,21 +0,0 @@ -const express = require('express'); -const cors = require('cors'); -require('dotenv').config(); - -const app = express(); - -// Middleware -app.use(cors()); -app.use(express.json()); -app.use(express.static('public')); - -// Import the consultations route handler -const consultationsHandler = require('./api/consultations'); - -// Set up the API route -app.post('/api/consultations', consultationsHandler); - -const PORT = process.env.PORT || 3001; -app.listen(PORT, () => { - console.log(`Server running on port ${PORT}`); -}); \ No newline at end of file diff --git a/tests/__tests__/lib/nlp.test.ts b/tests/__tests__/lib/nlp.test.ts index 134556d..cd29b0a 100644 --- a/tests/__tests__/lib/nlp.test.ts +++ b/tests/__tests__/lib/nlp.test.ts @@ -1,4 +1,4 @@ -import { processQuery } from '@/lib/nlp'; +import { processQuery } from '@/src/lib/nlp'; describe('NLP Processing', () => { beforeEach(() => { diff --git a/tests/__tests__/lib/platforms.test.ts b/tests/__tests__/lib/platforms.test.ts index 7571f2f..08f712a 100644 --- a/tests/__tests__/lib/platforms.test.ts +++ b/tests/__tests__/lib/platforms.test.ts @@ -1,5 +1,5 @@ -import { searchAmazon } from '@/lib/platforms/amazon'; -import { searchRicardo } from '@/lib/platforms/ricardo'; +import { searchAmazon } from '@/src/lib/platforms/amazon'; +import { searchRicardo } from '@/src/lib/platforms/ricardo'; describe('Platform Integrations', () => { describe('Amazon Integration', () => {