mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
remove: unused method.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user