Spaces:
Runtime error
Runtime error
Upload 15 files
Browse filesFiles changed (15)
- README.md+20-11
- index.htmlAdded+25
- metadata.jsonAdded+5
- package-lock.jsonAdded
- package.jsonAdded+41
- server.tsAdded
- src/App.tsxAdded
- src/global.d.tsAdded+21
- src/index.cssAdded+38
- src/lib/supabase.tsAdded+12
- src/main.tsxAdded+10
- src/types.tsAdded+59
- supabase_schema.sqlAdded+305
- tsconfig.jsonAdded+27
- vite.config.tsAdded+42
1234567891011---title: Botemoji: 📉colorFrom: pinkcolorTo: graysdk: dockerpinned: falseshort_description: bot---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference1234567891011121314151617181920<div align="center"><img width="1200" height="475" alt="GHBanner" src="https://github.com/user-attachments/assets/0aa67016-6eaf-458a-adb2-6e31a0763ed6" /></div># Run and deploy your AI Studio appThis contains everything you need to run your app locally.View your app in AI Studio: https://ai.studio/apps/d71f0321-e820-4ce9-8265-61f67997c046## Run Locally**Prerequisites:** Node.js1. Install dependencies:`npm install`2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key3. Run the app:`npm run dev`
12345678910111213141516171819202122232425<!doctype html><html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Mini App</title> <script src="https://telegram.org/js/telegram-web-app.js"></script> <script> // Anti-inspection and Right-click protection document.addEventListener('contextmenu', event => event.preventDefault()); document.onkeydown = function(e) { if(e.keyCode == 123) return false; // F12 if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) return false; // Ctrl+Shift+I if(e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) return false; // Ctrl+Shift+C if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) return false; // Ctrl+Shift+J if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) return false; // Ctrl+U }; </script> </head> <body> <div id="root"></div> <script type="module" src="/src/main.tsx"></script> </body></html>
12345{ "name": "Remix: BETA: LE TEST23 : Lusine Telegram Shop Mini App", "description": "Une mini app Telegram pour parcourir un catalogue de produits géré via un bot admin, avec redirection vers un gestionnaire de commandes.", "requestFramePermissions": []}1234567891011121314151617181920212223242526272829303132333435363738394041{ "name": "react-example", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "tsx server.ts", "build": "vite build", "start": "tsx server.ts", "preview": "vite preview", "clean": "rm -rf dist", "lint": "tsc --noEmit" }, "dependencies": { "@google/genai": "^1.29.0", "@supabase/supabase-js": "^2.99.1", "@tailwindcss/vite": "^4.1.14", "@vitejs/plugin-react": "^5.0.4", "axios": "^1.13.6", "clsx": "^2.1.1", "dotenv": "^17.2.3", "express": "^4.21.2", "lucide-react": "^0.546.0", "motion": "^12.23.24", "react": "^19.0.0", "react-dom": "^19.0.0", "react-router-dom": "^7.13.1", "tailwind-merge": "^3.5.0", "telegraf": "^4.16.3", "tsx": "^4.21.0", "vite": "^6.2.0", "vite-plugin-javascript-obfuscator": "^3.0.0" }, "devDependencies": { "@types/express": "^4.17.21", "@types/node": "^22.14.0", "autoprefixer": "^10.4.21", "tailwindcss": "^4.1.14", "typescript": "~5.8.2" }}123456789101112131415161718192021interface Window { Telegram?: { WebApp: { ready: () => void; expand: () => void; close: () => void; MainButton: { text: string; color: string; textColor: string; isVisible: boolean; isActive: boolean; show: () => void; hide: () => void; onClick: (callback: () => void) => void; }; openTelegramLink: (url: string) => void; setHeaderColor: (color: string) => void; }; };}1234567891011121314151617181920212223242526272829303132333435363738@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');@import "tailwindcss";
@theme { --font-sans: "Montserrat", ui-sans-serif, system-ui, sans-serif; --font-display: "Outfit", sans-serif; --color-bg-dark: #0B101B; --color-bg-card: #18181B; --color-accent: var(--accent-color, #10B981); --color-accent-hover: var(--accent-hover-color, #059669); --color-text-muted: #A1A1AA; --color-gold: #F59E0B; --color-border: rgba(255, 255, 255, 0.08);}
@layer base { body { @apply bg-bg-dark text-white antialiased selection:bg-accent/30; font-feature-settings: "cv02", "cv03", "cv04", "cv11"; }}
.no-scrollbar::-webkit-scrollbar { display: none;}.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none;}
.glass { @apply bg-bg-card/30 backdrop-blur-xl border border-border;}
.premium-shadow { box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);}123456789101112import { createClient } from '@supabase/supabase-js';
// These will be fetched from the API config or envconst supabaseUrl = import.meta.env.VITE_SUPABASE_URL || '';const supabaseKey = import.meta.env.VITE_SUPABASE_ANON_KEY || '';
export const supabase = createClient(supabaseUrl, supabaseKey);
export async function getAppConfig() { const res = await fetch(`/api/config?t=${Date.now()}`); return res.json();}12345678910import {StrictMode} from 'react';import {createRoot} from 'react-dom/client';import App from './App.tsx';import './index.css';
createRoot(document.getElementById('root')!).render( <StrictMode> <App /> </StrictMode>,);1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859export interface Category { id: string; name: string; type: 'delivery' | 'meetup'; display_order: number; created_at: string;}
export interface Product { id: string; category_id: string; name: string; description: string; image_url: string | null; is_in_stock: boolean; type: 'delivery' | 'meetup'; display_order: number; fictitious_likes?: number; real_likes_count?: number; created_at: string;}
export interface ProductPrice { id: string; product_id: string; quantity: string; price: number; created_at: string;}
export interface ShopConfig { shopName: string; shopDescription: string; shopLogo: string; shopBanner: string; orderManager: string; isOpen: boolean; isMeetupEnabled: boolean; isVerificationEnabled: boolean; welcomeMessage: string; infoText: string; channelUrl: string; managerChatId: string; adminId: string; isAutoBroadcastEnabled: boolean; orderDispatchMode: 'private' | 'group'; deliveryGroupId: string; meetupGroupId: string; accentColor?: string;}
export interface CartItem { productId: string; productName: string; priceId: string; quantityLabel: string; price: number; count: number;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305-- Enable UUID extensionCREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- Create categories tableCREATE TABLE IF NOT EXISTS public.categories ( id uuid NOT NULL DEFAULT uuid_generate_v4(), name text NOT NULL, type text DEFAULT 'delivery'::text, created_at timestamp with time zone DEFAULT now(), display_order integer DEFAULT 0, CONSTRAINT categories_pkey PRIMARY KEY (id), UNIQUE(name, type));
-- Create products tableCREATE TABLE IF NOT EXISTS public.products ( id uuid NOT NULL DEFAULT uuid_generate_v4(), category_id uuid, name text NOT NULL, description text, image_url text, is_in_stock boolean DEFAULT true, type text DEFAULT 'delivery'::text, created_at timestamp with time zone DEFAULT now(), display_order integer DEFAULT 0, fictitious_likes integer DEFAULT 0, real_likes_count integer DEFAULT 0, CONSTRAINT products_pkey PRIMARY KEY (id), CONSTRAINT products_category_id_fkey FOREIGN KEY (category_id) REFERENCES public.categories(id) ON DELETE CASCADE);
-- Create product_likes table to track real likes by userCREATE TABLE IF NOT EXISTS public.product_likes ( id uuid NOT NULL DEFAULT uuid_generate_v4(), product_id uuid, user_telegram_id text NOT NULL, created_at timestamp with time zone DEFAULT now(), CONSTRAINT product_likes_pkey PRIMARY KEY (id), CONSTRAINT product_likes_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.products(id) ON DELETE CASCADE, UNIQUE(product_id, user_telegram_id));
-- Enable RLS on product_likesALTER TABLE public.product_likes ENABLE ROW LEVEL SECURITY;
-- Policies for product_likesDROP POLICY IF EXISTS "Allow public read on product_likes" ON public.product_likes;CREATE POLICY "Allow public read on product_likes" ON public.product_likes FOR SELECT USING (true);
DROP POLICY IF EXISTS "Allow all for admin on product_likes" ON public.product_likes;CREATE POLICY "Allow all for admin on product_likes" ON public.product_likes FOR ALL USING (true) WITH CHECK (true);
-- Function to update real_likes_count on products tableCREATE OR REPLACE FUNCTION public.update_product_likes_count()RETURNS TRIGGER AS $$BEGIN IF (TG_OP = 'INSERT') THEN UPDATE public.products SET real_likes_count = real_likes_count + 1 WHERE id = NEW.product_id; ELSIF (TG_OP = 'DELETE') THEN UPDATE public.products SET real_likes_count = real_likes_count - 1 WHERE id = OLD.product_id; END IF; RETURN NULL;END;$$ LANGUAGE plpgsql SECURITY DEFINER SET search_path = public;
-- Trigger to call the function on insert or deleteDROP TRIGGER IF EXISTS on_product_like ON public.product_likes;CREATE TRIGGER on_product_likeAFTER INSERT OR DELETE ON public.product_likesFOR EACH ROW EXECUTE FUNCTION public.update_product_likes_count();
-- Create pricing tableCREATE TABLE IF NOT EXISTS public.product_prices ( id uuid NOT NULL DEFAULT uuid_generate_v4(), product_id uuid, quantity text NOT NULL, price numeric NOT NULL, created_at timestamp with time zone DEFAULT now(), CONSTRAINT product_prices_pkey PRIMARY KEY (id), CONSTRAINT product_prices_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.products(id) ON DELETE CASCADE);
-- Create shop settings tableCREATE TABLE IF NOT EXISTS public.shop_settings ( id integer NOT NULL, name text DEFAULT 'Ma Boutique'::text, description text DEFAULT ''::text, logo_url text DEFAULT ''::text, banner_url text DEFAULT ''::text, order_manager text DEFAULT ''::text, channel_url text DEFAULT 'https://t.me/hftfrance'::text, manager_chat_id text DEFAULT ''::text, is_open boolean DEFAULT true, is_meetup_enabled boolean DEFAULT false, is_verification_enabled boolean DEFAULT false, is_auto_broadcast_enabled boolean DEFAULT true, order_dispatch_mode text DEFAULT 'private'::text, delivery_group_id text DEFAULT ''::text, meetup_group_id text DEFAULT ''::text, last_opened_at timestamp with time zone DEFAULT now(), welcome_message text DEFAULT ''::text, info_text text DEFAULT ''::text, accent_color text DEFAULT '#10B981'::text, admin_id text DEFAULT ''::text, CONSTRAINT shop_settings_pkey PRIMARY KEY (id));
-- Insert default settings if not existsINSERT INTO public.shop_settings (id, name, accent_color)VALUES (1, 'Ma Boutique', '#10B981')ON CONFLICT (id) DO NOTHING;
-- Create bot_users tableCREATE TABLE IF NOT EXISTS public.bot_users ( id bigint GENERATED ALWAYS AS IDENTITY NOT NULL, telegram_id text NOT NULL UNIQUE, username text, first_name text, phone text, is_verified boolean DEFAULT false, verification_status text DEFAULT 'none'::text, referral_info text, last_seen timestamp with time zone DEFAULT now(), created_at timestamp with time zone DEFAULT now(), CONSTRAINT bot_users_pkey PRIMARY KEY (id));
-- Create drivers tableCREATE TABLE IF NOT EXISTS public.drivers ( id uuid NOT NULL DEFAULT uuid_generate_v4(), telegram_id text NOT NULL UNIQUE, username text, first_name text, created_at timestamp with time zone DEFAULT now(), CONSTRAINT drivers_pkey PRIMARY KEY (id));
-- Create meetup_workers tableCREATE TABLE IF NOT EXISTS public.meetup_workers ( id uuid NOT NULL DEFAULT uuid_generate_v4(), telegram_id text NOT NULL UNIQUE, username text, first_name text, created_at timestamp with time zone DEFAULT now(), CONSTRAINT meetup_workers_pkey PRIMARY KEY (id));
-- Create orders tableCREATE TABLE IF NOT EXISTS public.orders ( id uuid NOT NULL DEFAULT uuid_generate_v4(), client_telegram_id text, client_name text, total numeric, address text, items jsonb, status text DEFAULT 'pending'::text, type text DEFAULT 'delivery'::text, driver_id text, completed_by_name text, collected_amount numeric, created_at timestamp with time zone DEFAULT now(), CONSTRAINT orders_pkey PRIMARY KEY (id));
-- Create order_notifications tableCREATE TABLE IF NOT EXISTS public.order_notifications ( id uuid NOT NULL DEFAULT uuid_generate_v4(), order_id uuid, driver_id text, message_id integer, created_at timestamp with time zone DEFAULT now(), CONSTRAINT order_notifications_pkey PRIMARY KEY (id), CONSTRAINT order_notifications_order_id_fkey FOREIGN KEY (order_id) REFERENCES public.orders(id) ON DELETE CASCADE);
-- Create integrated_chats tableCREATE TABLE IF NOT EXISTS public.integrated_chats ( id uuid NOT NULL DEFAULT uuid_generate_v4(), chat_id text NOT NULL UNIQUE, chat_title text, chat_type text, added_at timestamp with time zone DEFAULT now(), CONSTRAINT integrated_chats_pkey PRIMARY KEY (id));
-- ==========================================-- SECURITY CONFIGURATION (RLS & POLICIES)-- ==========================================
-- 1. ENABLE ROW LEVEL SECURITY ON ALL TABLESALTER TABLE IF EXISTS public.categories ENABLE ROW LEVEL SECURITY;ALTER TABLE IF EXISTS public.products ENABLE ROW LEVEL SECURITY;ALTER TABLE IF EXISTS public.product_prices ENABLE ROW LEVEL SECURITY;ALTER TABLE IF EXISTS public.shop_settings ENABLE ROW LEVEL SECURITY;ALTER TABLE IF EXISTS public.bot_users ENABLE ROW LEVEL SECURITY;ALTER TABLE IF EXISTS public.drivers ENABLE ROW LEVEL SECURITY;ALTER TABLE IF EXISTS public.meetup_workers ENABLE ROW LEVEL SECURITY;ALTER TABLE IF EXISTS public.orders ENABLE ROW LEVEL SECURITY;ALTER TABLE IF EXISTS public.order_notifications ENABLE ROW LEVEL SECURITY;ALTER TABLE IF EXISTS public.integrated_chats ENABLE ROW LEVEL SECURITY;ALTER TABLE IF EXISTS public.product_likes ENABLE ROW LEVEL SECURITY;
-- 2. RADICAL CLEANUP: Remove all existing policies to start freshDO $$ DECLARE pol RECORD;BEGIN FOR pol IN ( SELECT policyname, tablename FROM pg_policies WHERE schemaname = 'public' AND tablename IN ( 'bot_users', 'orders', 'product_likes', 'shop_settings', 'categories', 'products', 'product_prices', 'integrated_chats', 'order_notifications', 'drivers', 'meetup_workers' ) ) LOOP EXECUTE format('DROP POLICY IF EXISTS %I ON public.%I', pol.policyname, pol.tablename); END LOOP;END $$;
-- 3. CREATE SECURE POLICIES (Strict Security: No public SELECT on sensitive data)
-- Public Read Access (Non-sensitive data only)CREATE POLICY "webapp_select_categories" ON public.categories FOR SELECT TO anon, authenticated, service_role USING (id IS NOT NULL);CREATE POLICY "webapp_select_products" ON public.products FOR SELECT TO anon, authenticated, service_role USING (id IS NOT NULL);CREATE POLICY "webapp_select_prices" ON public.product_prices FOR SELECT TO anon, authenticated, service_role USING (id IS NOT NULL);CREATE POLICY "webapp_select_settings" ON public.shop_settings FOR SELECT TO anon, authenticated, service_role USING (id IS NOT NULL);
-- Shop Settings Update (Allow Mini App for Admin/Manager identification)CREATE POLICY "webapp_update_settings" ON public.shop_settings FOR UPDATE TO anon, authenticated, service_role USING (id IS NOT NULL);
-- Sensitive Tables: NO SELECT for anon (Public)-- Only service_role can SELECT. anon can only INSERT/UPDATE where necessary.
-- Bot Users: anon can only register or update their own last_seen (via checkAuth)CREATE POLICY "webapp_insert_users" ON public.bot_users FOR INSERT TO anon, authenticated, service_role WITH CHECK (id IS NOT NULL);CREATE POLICY "webapp_update_users" ON public.bot_users FOR UPDATE TO anon, authenticated, service_role USING (id IS NOT NULL);-- No SELECT policy for anon on bot_users -> Dump impossible.
-- Orders: anon can only create ordersCREATE POLICY "webapp_insert_orders" ON public.orders FOR INSERT TO anon, authenticated, service_role WITH CHECK (id IS NOT NULL);-- No SELECT policy for anon on orders -> Dump impossible.
-- Product Likes Management (Publicly visible counts, but restricted management)CREATE POLICY "webapp_select_likes" ON public.product_likes FOR SELECT TO anon, authenticated, service_role USING (id IS NOT NULL);CREATE POLICY "webapp_insert_likes" ON public.product_likes FOR INSERT TO anon, authenticated, service_role WITH CHECK (id IS NOT NULL);CREATE POLICY "webapp_delete_likes" ON public.product_likes FOR DELETE TO anon, authenticated, service_role USING (id IS NOT NULL);
-- Service Tables: Strictly locked to service_role (Resolves "RLS Enabled No Policy" suggestions)-- No policies for anon -> Total protection.
CREATE POLICY "service_role_only_drivers" ON public.drivers FOR ALL TO service_role USING (true);CREATE POLICY "service_role_only_workers" ON public.meetup_workers FOR ALL TO service_role USING (true);CREATE POLICY "service_role_only_chats" ON public.integrated_chats FOR ALL TO service_role USING (true);CREATE POLICY "service_role_only_notifs" ON public.order_notifications FOR ALL TO service_role USING (true);
-- 4. GRANT PERMISSIONS-- service_role (The Bot) bypasses RLS but needs explicit grants for schema usageGRANT USAGE ON SCHEMA public TO service_role;GRANT ALL ON ALL TABLES IN SCHEMA public TO service_role;GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO service_role;GRANT ALL ON ALL FUNCTIONS IN SCHEMA public TO service_role;
-- authenticated roleGRANT USAGE ON SCHEMA public TO authenticated;GRANT ALL ON ALL TABLES IN SCHEMA public TO authenticated;GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO authenticated;
-- anon role (Mini App) - Strictly limited to functional needsGRANT USAGE ON SCHEMA public TO anon;GRANT INSERT, UPDATE ON public.bot_users TO anon; -- No SELECTGRANT SELECT ON public.categories TO anon;GRANT SELECT ON public.products TO anon;GRANT SELECT ON public.product_prices TO anon;GRANT SELECT, UPDATE ON public.shop_settings TO anon;GRANT INSERT ON public.orders TO anon; -- No SELECTGRANT SELECT, INSERT, DELETE ON public.product_likes TO anon;
-- Ensure future tables also get these permissions for service_roleALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO service_role;ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON SEQUENCES TO service_role;ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON FUNCTIONS TO service_role;
-- ==========================================-- STORAGE CONFIGURATION (Buckets & Policies)-- ==========================================
-- Create the bucket for images if it doesn't existINSERT INTO storage.buckets (id, name, public)VALUES ('product-images', 'product-images', true)ON CONFLICT (id) DO NOTHING;
-- Storage PoliciesDROP POLICY IF EXISTS "Public Read Access" ON storage.objects;CREATE POLICY "Public Read Access" ON storage.objects FOR SELECT TO anon, authenticated, service_role USING (bucket_id = 'product-images');
DROP POLICY IF EXISTS "Public Upload Access" ON storage.objects;CREATE POLICY "Public Upload Access" ON storage.objects FOR INSERT TO anon, authenticated, service_role WITH CHECK (bucket_id = 'product-images');
DROP POLICY IF EXISTS "Public Update Access" ON storage.objects;CREATE POLICY "Public Update Access" ON storage.objects FOR UPDATE TO anon, authenticated, service_role USING (bucket_id = 'product-images');
DROP POLICY IF EXISTS "Public Delete Access" ON storage.objects;CREATE POLICY "Public Delete Access" ON storage.objects FOR DELETE TO anon, authenticated, service_role USING (bucket_id = 'product-images');123456789101112131415161718192021222324252627{ "compilerOptions": { "target": "ES2022", "experimentalDecorators": true, "useDefineForClassFields": false, "module": "ESNext", "lib": [ "ES2022", "DOM", "DOM.Iterable" ], "skipLibCheck": true, "moduleResolution": "bundler", "isolatedModules": true, "moduleDetection": "force", "allowJs": true, "jsx": "react-jsx", "paths": { "@/*": [ "./*" ] }, "types": ["vite/client"], "allowImportingTsExtensions": true, "noEmit": true }}123456789101112131415161718192021222324252627282930313233343536373839404142import tailwindcss from '@tailwindcss/vite';import react from '@vitejs/plugin-react';import path from 'path';import {defineConfig, loadEnv} from 'vite';import obfuscator from 'vite-plugin-javascript-obfuscator';
export default defineConfig(({mode}) => { const env = loadEnv(mode, '.', ''); return { plugins: [ react(), tailwindcss(), // Obfuscation only in production to keep dev fast mode === 'production' ? (obfuscator as any)({ compact: true, controlFlowFlattening: true, controlFlowFlatteningThreshold: 0.75, numbersToExpressions: true, simplify: true, stringArrayThreshold: 0.75, splitStrings: true, splitStringsChunkLength: 10, unicodeEscapeSequence: false }) : [] ], define: { 'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY), 'import.meta.env.VITE_SUPABASE_URL': JSON.stringify(env.SUPABASE_URL), 'import.meta.env.VITE_SUPABASE_ANON_KEY': JSON.stringify(env.SUPABASE_ANON_KEY), }, resolve: { alias: { '@': path.resolve(__dirname, '.'), }, }, server: { // HMR is disabled in AI Studio via DISABLE_HMR env var. // Do not modifyâfile watching is disabled to prevent flickering during agent edits. hmr: process.env.DISABLE_HMR !== 'true', }, };});README.md+20-11
index.htmlAdded+25
metadata.jsonAdded+5
package-lock.jsonAdded
package.jsonAdded+41
server.tsAdded
src/App.tsxAdded
src/global.d.tsAdded+21
src/index.cssAdded+38
src/lib/supabase.tsAdded+12
src/main.tsxAdded+10
src/types.tsAdded+59
supabase_schema.sqlAdded+305
tsconfig.jsonAdded+27
vite.config.tsAdded+42