feat: stream video upload progress (#210)
* working on the streaming progress * connected video upload progress from frontend to server to bucket * cleanup * cleanup * added the progress bar * finished the supabase upload-progress using supabse realtime * use only progress bar * updating the helpertext * Merge branch 'upload-progress' of https://github.com/rotimi-best/classroomio into upload-progress * updated the supabase import * Update LocalVideo.svelte * update lock file --------- Co-authored-by: Rotimi Best <best@classroomio.com>
This commit is contained in:
@@ -9,22 +9,19 @@ const getSupabase = (config) => {
|
||||
|
||||
config = {
|
||||
supabaseConfig: {
|
||||
bucketPath:
|
||||
'https://koxqonvbkeakwvmdegcf.supabase.in/storage/v1/object/sign/',
|
||||
bucketPath: 'https://koxqonvbkeakwvmdegcf.supabase.in/storage/v1/object/sign/',
|
||||
url: PUBLIC_SUPABASE_URL || '',
|
||||
anonKey: PUBLIC_SUPABASE_ANON_KEY || '',
|
||||
},
|
||||
anonKey: PUBLIC_SUPABASE_ANON_KEY || ''
|
||||
}
|
||||
};
|
||||
|
||||
supabase = createClient(
|
||||
config.supabaseConfig.url,
|
||||
config.supabaseConfig.anonKey,
|
||||
{ auth: { persistSession: false } }
|
||||
);
|
||||
supabase = createClient(config.supabaseConfig.url, config.supabaseConfig.anonKey, {
|
||||
auth: { persistSession: false }
|
||||
});
|
||||
|
||||
return supabase;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
getSupabase,
|
||||
getSupabase
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user