mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
chore: remove unused store
This commit is contained in:
+1
-13
@@ -1,17 +1,5 @@
|
||||
import { page } from '$app/stores';
|
||||
import type { MarketplaceTemplate, Runtime } from '$lib/stores/marketplace';
|
||||
import type { MarketplaceTemplate } from '$lib/stores/marketplace';
|
||||
import { derived } from 'svelte/store';
|
||||
|
||||
export const template = derived(page, ($page) => $page.data.template as MarketplaceTemplate);
|
||||
|
||||
export const baseRuntimes = derived(template, ($template) => {
|
||||
const baseRuntimes = new Map<string, Runtime>();
|
||||
$template.runtimes.forEach((runtime) => {
|
||||
const runtimeBase = runtime.name.split('-')[0];
|
||||
baseRuntimes.set(runtimeBase, runtime);
|
||||
});
|
||||
return {
|
||||
...template,
|
||||
runtimes: [...baseRuntimes.values()]
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user