mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 07:37:10 +00:00
Fix #314 Make 1.19.3 the default version
This commit is contained in:
@@ -3,7 +3,7 @@ import { DRAFT_PROJECT } from './contexts/index.js'
|
||||
import type { ColormapType } from './previews/Colormap.js'
|
||||
import { ColormapTypes } from './previews/Colormap.js'
|
||||
import type { VersionId } from './services/index.js'
|
||||
import { VersionIds } from './services/index.js'
|
||||
import { DEFAULT_VERSION, VersionIds } from './services/index.js'
|
||||
|
||||
export namespace Store {
|
||||
export const ID_LANGUAGE = 'language'
|
||||
@@ -35,7 +35,7 @@ export namespace Store {
|
||||
if (version && VersionIds.includes(version as VersionId)) {
|
||||
return version as VersionId
|
||||
}
|
||||
return '1.19'
|
||||
return DEFAULT_VERSION
|
||||
}
|
||||
|
||||
export function getVersion(): VersionId | null {
|
||||
|
||||
@@ -8,7 +8,7 @@ import { fetchData } from './DataFetcher.js'
|
||||
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3'] as const
|
||||
export type VersionId = typeof VersionIds[number]
|
||||
|
||||
export const DEFAULT_VERSION: VersionId = '1.19'
|
||||
export const DEFAULT_VERSION: VersionId = '1.19.3'
|
||||
|
||||
export type BlockStateRegistry = {
|
||||
[block: string]: {
|
||||
|
||||
Reference in New Issue
Block a user