Compare commits

...

2 Commits

Author SHA1 Message Date
ede6694cb7 Updated readme with config.js structure 2024-11-22 20:08:11 +01:00
f8cc1c0d8f Removed private key 🤡 2024-11-22 20:07:18 +01:00
3 changed files with 16 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
config.js

View File

@ -8,3 +8,14 @@ Vytvoriť systém, ktorý umožňuje nahrávku reči rozpoznať a „vygenerova
- https://infosluch.sk/posunkovy-jazyk/slovnik/
- https://nepocujucedieta.sk/slovnik-detskych-posunkov/
- https://infosluch.sk/posunkovy-jazyk/prstova-abeceda/#post-content (abeceda)
#### config.js structure
```javascript
// config.js
const config = {
SUPABASE_URL: 'URL',
SUPABASE_KEY: 'KEY'
};
export default config;

View File

@ -1,6 +1,8 @@
import { createClient } from 'https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm';
const supabaseUrl = 'https://manesldshonpegglmyan.supabase.co'
const supabaseKey = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1hbmVzbGRzaG9ucGVnZ2xteWFuIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTczMDcxNzQ2NCwiZXhwIjoyMDQ2MjkzNDY0fQ.saaJeTtwYZCS3YKJYmQsAOSAEFzUVUJnoJSD8-lgLHo'
import config from '../scripts/config.js';
const supabaseUrl = config.SUPABASE_URL;
const supabaseKey = config.SUPABASE_KEY;
const supabase = createClient(supabaseUrl, supabaseKey)
// Select DOM elements