mirror of
https://github.com/ivabus/gui
synced 2025-06-07 15:50:27 +03:00
replace packages store
This commit is contained in:
parent
363e8150bc
commit
ed9dcb87a8
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
import type { GUIPackage } from '$libs/types';
|
import type { GUIPackage } from '$libs/types';
|
||||||
import { PackageStates } from '$libs/types';
|
import { PackageStates } from '$libs/types';
|
||||||
import PanelHeader from '@tea/ui/PanelHeader/PanelHeader.svelte';
|
import PanelHeader from '@tea/ui/PanelHeader/PanelHeader.svelte';
|
||||||
import { packages as packagesStore } from '$libs/stores';
|
import { packagesStore } from '$libs/stores';
|
||||||
import MiniPackageCard from '@tea/ui/MiniPackageCard/MiniPackageCard.svelte';
|
import MiniPackageCard from '@tea/ui/MiniPackageCard/MiniPackageCard.svelte';
|
||||||
import Preloader from '@tea/ui/Preloader/Preloader.svelte';
|
import Preloader from '@tea/ui/Preloader/Preloader.svelte';
|
||||||
let packages: GUIPackage[] = [];
|
let packages: GUIPackage[] = [];
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
/** @type {import('./$types').PageData} */
|
/** @type {import('./$types').PageData} */
|
||||||
export let data;
|
export let data;
|
||||||
|
|
||||||
import { packages, featuredPackages } from '$libs/stores';
|
import { packagesStore, featuredPackages } from '$libs/stores';
|
||||||
|
|
||||||
import type { Package } from '@tea/ui/types';
|
import type { Package } from '@tea/ui/types';
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
// }
|
// }
|
||||||
};
|
};
|
||||||
|
|
||||||
packages.subscribe(setPkg);
|
packagesStore.subscribe(setPkg);
|
||||||
featuredPackages.subscribe(setPkg);
|
featuredPackages.subscribe(setPkg);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue