remove: unused method.

This commit is contained in:
Darshan
2025-06-19 19:50:27 +05:30
parent b0e647896d
commit 0cfc0d7a90
3 changed files with 3 additions and 42 deletions
@@ -41,7 +41,7 @@
await Promise.all([
invalidate(Dependencies.ACCOUNT),
invalidate(Dependencies.ORGANIZATION),
invalidate(Dependencies.MEMBERS),
invalidate(Dependencies.MEMBERS)
]);
showCreate = false;
@@ -5,7 +5,7 @@
import CreateFlutter from './createFlutter.svelte';
import CreateReactNative from './createReactNative.svelte';
import CreateWeb from './createWeb.svelte';
import { createPlatform, versions } from './wizard/store';
import { createPlatform } from './wizard/store';
import { Click, trackEvent } from '$lib/actions/analytics';
export enum Platform {
@@ -17,13 +17,12 @@
}
export async function addPlatform(type: Platform) {
await versions.load();
createPlatform.reset();
wizard.start(platforms[type]);
trackEvent(Click.PlatformCreateClick, {
platform: platforms[type],
source: 'platforms_page'
});
wizard.start(platforms[type]);
}
export async function continuePlatform(
@@ -32,7 +31,6 @@
key: string,
type: string
) {
await versions.load();
createPlatform.set({
name: name,
key: key,
@@ -1,6 +1,4 @@
import { writable } from 'svelte/store';
import { sdk } from '$lib/stores/sdk';
import { cachedStore } from '$lib/helpers/cache';
import type { Models } from '@appwrite.io/console';
function createPlatformStore() {
@@ -31,38 +29,3 @@ function createPlatformStore() {
}
export const createPlatform = createPlatformStore();
export const versions = cachedStore<
{
server: string;
'client-web': string;
'client-flutter': string;
'client-apple': string;
'client-android': string;
'console-web': string;
'console-cli': string;
'server-nodejs': string;
'server-deno': string;
'server-php': string;
'server-python': string;
'server-ruby': string;
'server-dart': string;
'server-kotlin': string;
'server-swift': string;
},
{
load: () => Promise<void>;
}
>('versions', function ({ set }) {
return {
load: async () => {
const { endpoint, project } = sdk.forConsole.client.config;
const response = await fetch(`${endpoint}/../versions`, {
headers: {
'X-Appwrite-Project': project
}
});
set(await response.json());
}
};
});