mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-07 21:07:44 +00:00
Merge branch 'main' into feat-android-tutorial
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user