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
------------------------------------------------------------------------------------------------------------------------ | |
Google Ai Studio Scripts | |
/* | |
* Install the Generative AI SDK | |
* | |
* $ npm install @google/generative-ai | |
* | |
* See the getting started guide for more information | |
* https://ai.google.dev/gemini-api/docs/get-started/node |
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
NEXT_PUBLIC_FIREBASE_API_KEY=your_api_key | |
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_api_key | |
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_api_key | |
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_api_key | |
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_api_key | |
NEXT_PUBLIC_FIREBASE_APP_ID=your_api_key | |
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
STRIPE env Variables | |
---------------------------- | |
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY= | |
STRIPE_SECRET_KEY= | |
STRIPE_WEBHOOK_SECRET= | |
---------------------------- | |
Stripe Helpers |
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
-------------------------------------Chat Container------------------------------------------ | |
import React, { useState } from "react"; | |
import { Avatar1, Avatar2, Avatar3, ChatHero, Three } from "../assets"; | |
import { FaUsers } from "react-icons/fa6"; | |
import { BsFillSendFill, BsThreeDots } from "react-icons/bs"; | |
import moment from "moment"; | |
const ChatContainer = () => { | |
const [messages, setMessages] = useState([ |
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
TailwindCss Configurations | |
/** @type {import('tailwindcss').Config} */ | |
module.exports = { | |
content: ["./src/**/*.{js,jsx,ts,tsx}"], | |
theme: { | |
extend: { | |
colors: { | |
primary: "#131417", | |
secondary: "#1E1F26", | |
primaryText: "#868CA0", |
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
Tailwidcss Config | |
/** @type {import('tailwindcss').Config} */ | |
module.exports = { | |
content: [ | |
"./App.{js,jsx,ts,tsx}", | |
"./screens/**/*.{js,jsx,ts,tsx}", | |
"./components/**/*.{js,jsx,ts,tsx}", | |
], | |
theme: { | |
extend: { |
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
export const fetchQuery = `*[_type == 'products'] | order(_createdAt desc){ | |
_id, | |
title, | |
productType, | |
mainImage { | |
asset -> { | |
url | |
} | |
}, | |
bgImage { |
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
Support Codes | |
import { | |
FaCamera, | |
FaFire, | |
FaHome, | |
FaPaintBrush, | |
FaVideo, | |
} from "react-icons/fa"; | |
import { v4 as uuidv4 } from "uuid"; |
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
import axios from "axios"; | |
const baseURL = "http://localhost:4000/"; | |
export const validateUser = async (token) => { | |
try { | |
const res = await axios.get(`${baseURL}api/users/login`, { | |
headers: { | |
Authorization: "Bearer " + token, | |
}, |
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
module.exports = { | |
content: ["./src/**/*.{js,jsx,ts,tsx}"], | |
theme: { | |
extend: { | |
width: { | |
150: "150px", | |
190: "190px", | |
225: "225px", | |
275: "275px", | |
300: "300px", |
NewerOlder