mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-12-06 10:34:13 +00:00
fix embedding + playground
This commit is contained in:
1 parent
ec3eb387e5
commit
59710d2e1a
14 files changed
+307
-422
No files matched your search
@@ -16,10 +16,12 @@
|
||||
import { i18n } from '$lib/i18n.svelte';
|
||||
import { settings } from '$lib/logic/settings';
|
||||
import { loadFiles } from '$lib/logic/file-actions';
|
||||
import { onMount } from 'svelte';
|
||||
import { onDestroy, onMount } from 'svelte';
|
||||
import { page } from '$app/state';
|
||||
import { gpxStatistics, slicedGPXStatistics } from '$lib/logic/statistics';
|
||||
import { getURLForGoogleDriveFile } from '$lib/components/embedding/Embedding';
|
||||
import { getURLForGoogleDriveFile } from '$lib/components/embedding/embedding';
|
||||
import { db } from '$lib/db';
|
||||
import { fileStateCollection } from '$lib/logic/file-state';
|
||||
|
||||
const {
|
||||
treeFileView,
|
||||
@@ -49,6 +51,14 @@
|
||||
loadFiles(files.filter((file) => file !== null));
|
||||
});
|
||||
}
|
||||
|
||||
fileStateCollection.connectToDatabase(db);
|
||||
settings.connectToDatabase(db);
|
||||
});
|
||||
|
||||
onDestroy(() => {
|
||||
fileStateCollection.disconnectFromDatabase();
|
||||
settings.disconnectFromDatabase();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user