mirror of
https://github.com/LukeHagar/OpenAPI.gg.git
synced 2025-12-06 12:37:48 +00:00
feat: added full indexeddb support
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
<script lang="ts">
|
||||
import { addPath } from '$lib';
|
||||
import { openApiStore, sortPathsAlphabetically } from '$lib';
|
||||
import type { OpenAPIV3 } from '$lib/openAPITypes';
|
||||
import { sortPathsAlphabetically } from '$lib';
|
||||
import { selectedSpec } from '$lib/db';
|
||||
import type { OpenAPIV3_1 } from '$lib/openAPITypes';
|
||||
import PathListItem from '../atoms/PathListItem.svelte';
|
||||
import { getModalStore } from '@skeletonlabs/skeleton';
|
||||
|
||||
let paths: OpenAPIV3.PathsObject = {};
|
||||
// @ts-expect-error - working with a potentially empty object
|
||||
openApiStore.subscribe((store) => (paths = store.paths));
|
||||
let paths: OpenAPIV3_1.PathsObject = {};
|
||||
selectedSpec.subscribe((store) => {
|
||||
if (store.spec.paths) {
|
||||
paths = store.spec.paths;
|
||||
}
|
||||
});
|
||||
|
||||
const modalStore = getModalStore();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user