This commit is contained in:
Torsten Dittmann
2024-02-25 18:56:49 +01:00
parent dcaa06874f
commit b8a76e6e73
8 changed files with 23 additions and 11 deletions

View File

@@ -2,7 +2,7 @@ import { writable } from 'svelte/store';
import type { Language } from './code';
import { browser } from '$app/environment';
const allVersions = ['1.4.x', '1.3.x', '1.2.x', '1.1.x', '1.0.x', '0.15.x', 'cloud'] as const;
const allVersions = ['1.5.x', '1.4.x', '1.3.x', '1.2.x', '1.1.x', '1.0.x', '0.15.x', 'cloud'] as const;
export type Version = (typeof allVersions)[number];
@@ -19,7 +19,8 @@ export enum Service {
Locale = 'locale',
Storage = 'storage',
Teams = 'teams',
Users = 'users'
Users = 'users',
Messaging = 'messaging'
}
export enum Platform {
@@ -67,7 +68,7 @@ export const platformMap: Record<Language | string, string> = {
sh: 'Shell',
js: 'JavaScript',
ts: 'TypeScript',
jsx: 'React',
jsx: 'React',
tsx: 'React',
typescript: 'TypeScript',
dart: 'Dart',
@@ -110,7 +111,8 @@ export const serviceMap: Record<Service, string> = {
[Service.Locale]: 'Locale',
[Service.Storage]: 'Storage',
[Service.Teams]: 'Teams',
[Service.Users]: 'Users'
[Service.Users]: 'Users',
[Service.Messaging]: 'Messaging'
};
export const preferredVersion = writable<Version | null>(