Merge branch 'main' into feat-android-tutorial

This commit is contained in:
Vincent (Wen Yu) Ge
2024-01-15 22:41:03 +00:00
656 changed files with 22320 additions and 16281 deletions

View File

@@ -2,15 +2,13 @@ import { writable } from 'svelte/store';
import type { Language } from './code';
import { browser } from '$app/environment';
export type Version = '1.4.x' | '1.3.x' | '1.2.x' | '1.1.x' | '1.0.x' | '0.15.x' | 'cloud';
export const versions: Readonly<Array<Omit<Version, 'cloud'>>> = [
'1.4.x',
'1.3.x',
'1.2.x',
'1.1.x',
'1.0.x',
'0.15.x'
] as const;
const allVersions = ['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];
export const versions: Readonly<Array<Omit<Version, 'cloud'>>> = allVersions.filter(
(v) => v !== 'cloud'
);
export enum Service {
Account = 'account',
@@ -39,7 +37,11 @@ export enum Platform {
ServerPhp = 'server-php',
ServerPython = 'server-python',
ServerRuby = 'server-ruby',
ServerSwift = 'server-swift'
ServerSwift = 'server-swift',
ServerKotlin = 'server-kotlin',
ServerJava = 'server-java',
ServerGraphql = 'server-graphql',
ServerRest = 'server-rest'
}
export const platformMap: Record<Language | string, string> = {
@@ -58,9 +60,14 @@ export const platformMap: Record<Language | string, string> = {
[Platform.ServerPython]: 'Python',
[Platform.ServerRuby]: 'Ruby',
[Platform.ServerSwift]: 'Swift',
[Platform.ServerKotlin]: 'Kotlin',
[Platform.ServerJava]: 'Java',
[Platform.ServerGraphql]: 'GraphQL',
[Platform.ServerRest]: 'REST',
sh: 'Shell',
js: 'JavaScript',
ts: 'TypeScript',
typescript: 'TypeScript',
dart: 'Dart',
java: 'Java',
kotlin: 'Kotlin',