untitled-9291About.tsx1 match
44<h3 className="text-2xl font-semibold text-gray-800 mb-4">Our Story</h3>
45<p className="text-gray-600 mb-4">
46Founded in 2010, IDES INTERIOR began with a simple mission: to create beautiful, functional spaces that enhance people's lives. Over the years, we've grown from a small studio to a full-service interior design firm serving clients across the country.
47</p>
48<p className="text-gray-600 mb-4">
untitled-9291Portfolio.tsx1 match
18title: "Modern Minimalist Apartment",
19category: "residential",
20description: "A clean, minimalist design focusing on functionality and open space.",
21emoji: "🏙️"
22},
untitled-9291Services.tsx3 matches
21icon: "🏠",
22title: "Residential Design",
23description: "Transform your home into a personalized sanctuary that reflects your unique style and meets your functional needs."
24},
25{
31icon: "🛋️",
32title: "Furniture Selection",
33description: "Find the perfect furniture pieces that balance aesthetics, comfort, and functionality for your space."
34},
35{
41icon: "📐",
42title: "Space Planning",
43description: "Optimize your floor plan to maximize functionality, flow, and spatial efficiency in any environment."
44},
45{
reactHonoStarterApp.tsx1 match
2import { useState } from "https://esm.sh/react@18.2.0";
34export function App() {
5const [clicked, setClicked] = useState(0);
6return (
untitled-3483README.md2 matches
67- `migrations.ts` - Database schema setup and seed data
8- `queries.ts` - Functions for querying the database
910## Database Schema
39```
4041## Query Functions
4243- `getCategories()` - Get all product categories
untitled-3483README.md2 matches
5## Files
67- `types.ts` - TypeScript interfaces and utility functions used by both frontend and backend
89## Shared Types
13- `CartItem` - Shopping cart item structure
1415## Utility Functions
1617- `formatPrice` - Format a number as a currency string
untitled-3483README.md1 match
13- Client-side rendering of different pages
14- Shopping cart with local storage persistence
15- Product search functionality
16- Contact form
17
untitled-3483index.js20 matches
4const initialData = window.__INITIAL_DATA__ || {};
56// Cart functionality
7let cart = JSON.parse(localStorage.getItem('toystore_cart') || '[]');
89function saveCart() {
10localStorage.setItem('toystore_cart', JSON.stringify(cart));
11updateCartCount();
12}
1314function updateCartCount() {
15const cartCount = document.getElementById('cart-count');
16if (cartCount) {
21}
2223function addToCart(product, quantity = 1) {
24const existingItem = cart.find(item => item.product.id === product.id);
25
43}
4445function removeFromCart(productId) {
46cart = cart.filter(item => item.product.id !== productId);
47saveCart();
49}
5051function updateQuantity(productId, quantity) {
52const item = cart.find(item => item.product.id === productId);
53if (item) {
5960// Page rendering
61function renderHeader() {
62return `
63<header class="bg-blue-600 text-white shadow-md">
106}
107108function renderFooter() {
109return `
110<footer class="bg-gray-800 text-white py-8 mt-auto">
139}
140141function renderProductCard(product) {
142return `
143<div class="product-card bg-white rounded-lg overflow-hidden shadow-md hover:shadow-xl">
165}
166167function renderHomePage() {
168const featuredProducts = initialData.featuredProducts || [];
169
239}
240241function renderProductPage() {
242const product = initialData.product;
243
317}
318319function renderCategoryPage() {
320const category = initialData.category;
321const products = initialData.products || [];
353}
354355function renderCartPage() {
356return `
357<div class="container mx-auto px-4 py-8">
442}
443444function renderContactPage() {
445return `
446<div class="container mx-auto px-4 py-8">
535}
536537function renderSearchResults(products) {
538return `
539<div class="container mx-auto px-4 py-8">
557}
558559// Main render function
560function renderPage() {
561const app = document.getElementById('app');
562let content = '';
599600// Set up event listeners for interactive elements
601function setupEventListeners() {
602// Product quantity buttons on product page
603const quantityInput = document.getElementById('product-quantity');
695}
696697// Search function
698window.searchProducts = async function(query) {
699if (!query || query.trim() === '') return;
700
ddddashboardController.ts1 match
67// Get dashboard statistics
8export async function getDashboardStats(agentId?: number): Promise<DashboardStats> {
9try {
10// Base query for counting properties
dddpropertyController.ts9 matches
11import { PROPERTIES_TABLE, USERS_TABLE } from "../database/schema.ts";
1213// Helper function to build property object from database row
14export function buildPropertyFromRow(row: any): Property {
15return {
16id: row.id,
4344// Get all properties with pagination and filtering
45export async function getProperties(
46page: number = 1,
47limit: number = 10,
166167// Get property by ID
168export async function getPropertyById(id: number): Promise<Property | null> {
169try {
170const query = `
205206// Create new property
207export async function createProperty(propertyData: Omit<Property, "id" | "createdAt" | "updatedAt">, userId: number): Promise<Property | null> {
208try {
209const now = new Date().toISOString();
253254// Update property
255export async function updateProperty(
256id: number,
257propertyData: Partial<Property>,
402403// Delete property
404export async function deleteProperty(
405id: number,
406userId: number,
433434// Get featured properties (for homepage)
435export async function getFeaturedProperties(limit: number = 6): Promise<Property[]> {
436try {
437const query = `
475476// Get properties by agent
477export async function getPropertiesByAgent(agentId: number): Promise<Property[]> {
478try {
479const query = `