feat: add Supabase, React Router, dnd-kit, recharts, Vitest

This commit is contained in:
2026-05-07 20:04:19 +03:00
commit fa342235d9
7 changed files with 4355 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
# Скопируйте этот файл в .env и укажите ваши данные от Telegram бота
VITE_TG_BOT_TOKEN="ваш_токен_бота_от_botfather"
VITE_TG_CHAT_ID="ваш_chat_id_куда_отправлять_сообщения"
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key
+4286
View File
File diff suppressed because it is too large Load Diff
+42
View File
@@ -0,0 +1,42 @@
{
"name": "glass",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview",
"test": "vitest",
"test:run": "vitest run"
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@supabase/supabase-js": "^2.105.3",
"framer-motion": "^12.38.0",
"lucide-react": "^1.14.0",
"react": "^19.2.5",
"react-dom": "^19.2.5",
"react-router-dom": "^7.15.0",
"recharts": "^3.8.1"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"eslint": "^10.2.1",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.5.0",
"jsdom": "^29.1.1",
"vite": "^8.0.10",
"vitest": "^4.1.5"
}
}
+6
View File
@@ -0,0 +1,6 @@
import { createClient } from '@supabase/supabase-js'
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY
export const supabase = createClient(supabaseUrl, supabaseAnonKey)
+4
View File
@@ -0,0 +1,4 @@
// Placeholder to satisfy vitest run with no real tests yet
test('placeholder', () => {
expect(true).toBe(true)
})
+1
View File
@@ -0,0 +1 @@
import '@testing-library/jest-dom'
+11
View File
@@ -0,0 +1,11 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/test/setup.js'],
},
})