mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Add 1.20.2
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-S982VZS08T', {
|
||||
theme: localStorage.getItem('theme') || 'default',
|
||||
version: localStorage.getItem('schema_version') || '1.20',
|
||||
version: localStorage.getItem('schema_version') || '1.20.2',
|
||||
locale: localStorage.getItem('language') || 'en',
|
||||
prefers_color_scheme: matchMedia('(prefers-color-scheme: light)').matches ? 'light' : matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'none',
|
||||
tree_view_mode: localStorage.getItem('misode_tree_view_mode') || 'default',
|
||||
@@ -25,7 +25,7 @@
|
||||
ga('set', 'page', location.pathname);
|
||||
ga('set', 'dimension1', localStorage.getItem('theme') || 'default');
|
||||
ga('set', 'dimension2', 'v2');
|
||||
ga('set', 'dimension3', localStorage.getItem('schema_version') || '1.20');
|
||||
ga('set', 'dimension3', localStorage.getItem('schema_version') || '1.20.2');
|
||||
ga('set', 'dimension4', localStorage.getItem('language') || 'en');
|
||||
ga('set', 'dimension5', 'none');
|
||||
ga('set', 'dimension7', matchMedia('(prefers-color-scheme: light)').matches ? 'light' : matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'none');
|
||||
|
||||
31
package-lock.json
generated
31
package-lock.json
generated
@@ -20,7 +20,8 @@
|
||||
"@mcschema/java-1.19.3": "^0.0.8",
|
||||
"@mcschema/java-1.19.4": "^0.1.11",
|
||||
"@mcschema/java-1.20": "^0.0.14",
|
||||
"@mcschema/locales": "^0.1.87",
|
||||
"@mcschema/java-1.20.2": "^0.0.3",
|
||||
"@mcschema/locales": "^0.1.89",
|
||||
"@zip.js/zip.js": "^2.4.5",
|
||||
"brace": "^0.11.1",
|
||||
"buffer": "^6.0.3",
|
||||
@@ -635,10 +636,18 @@
|
||||
"@mcschema/core": "^0.12.39"
|
||||
}
|
||||
},
|
||||
"node_modules/@mcschema/java-1.20.2": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@mcschema/java-1.20.2/-/java-1.20.2-0.0.3.tgz",
|
||||
"integrity": "sha512-ezNikY3bbXXkgy3dSe6NWKLjgzE51I2hwd+t+r+ii7FHP29cFohg7g9FHo5wHJ6QuYOiQls4Gh34nA9B5YT/lw==",
|
||||
"dependencies": {
|
||||
"@mcschema/core": "^0.12.40"
|
||||
}
|
||||
},
|
||||
"node_modules/@mcschema/locales": {
|
||||
"version": "0.1.87",
|
||||
"resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.87.tgz",
|
||||
"integrity": "sha512-KocgK7GTsXzi2QKIt46W1vhw2wGLR7qEvbRn+aPr2FPxKz/+XgEFHWp11Wl38i5P4lvmNnOfObB1aON6fmysew=="
|
||||
"version": "0.1.89",
|
||||
"resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.89.tgz",
|
||||
"integrity": "sha512-veFdi5ajeX0HtQVx/S1Gj1w2WBuw+WYfkn0LK0W6ew4EXS3d5Q8wwMjvHq26RX/B/g1Bzq/sH3fT3xO0JR1QbA=="
|
||||
},
|
||||
"node_modules/@nodelib/fs.scandir": {
|
||||
"version": "2.1.5",
|
||||
@@ -5792,10 +5801,18 @@
|
||||
"@mcschema/core": "^0.12.39"
|
||||
}
|
||||
},
|
||||
"@mcschema/java-1.20.2": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@mcschema/java-1.20.2/-/java-1.20.2-0.0.3.tgz",
|
||||
"integrity": "sha512-ezNikY3bbXXkgy3dSe6NWKLjgzE51I2hwd+t+r+ii7FHP29cFohg7g9FHo5wHJ6QuYOiQls4Gh34nA9B5YT/lw==",
|
||||
"requires": {
|
||||
"@mcschema/core": "^0.12.40"
|
||||
}
|
||||
},
|
||||
"@mcschema/locales": {
|
||||
"version": "0.1.87",
|
||||
"resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.87.tgz",
|
||||
"integrity": "sha512-KocgK7GTsXzi2QKIt46W1vhw2wGLR7qEvbRn+aPr2FPxKz/+XgEFHWp11Wl38i5P4lvmNnOfObB1aON6fmysew=="
|
||||
"version": "0.1.89",
|
||||
"resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.89.tgz",
|
||||
"integrity": "sha512-veFdi5ajeX0HtQVx/S1Gj1w2WBuw+WYfkn0LK0W6ew4EXS3d5Q8wwMjvHq26RX/B/g1Bzq/sH3fT3xO0JR1QbA=="
|
||||
},
|
||||
"@nodelib/fs.scandir": {
|
||||
"version": "2.1.5",
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
"@mcschema/java-1.19.3": "^0.0.8",
|
||||
"@mcschema/java-1.19.4": "^0.1.11",
|
||||
"@mcschema/java-1.20": "^0.0.14",
|
||||
"@mcschema/locales": "^0.1.87",
|
||||
"@mcschema/java-1.20.2": "^0.0.3",
|
||||
"@mcschema/locales": "^0.1.89",
|
||||
"@zip.js/zip.js": "^2.4.5",
|
||||
"brace": "^0.11.1",
|
||||
"buffer": "^6.0.3",
|
||||
|
||||
@@ -19,7 +19,7 @@ interface Props {
|
||||
export function Customized({}: Props) {
|
||||
const { locale } = useLocale()
|
||||
// const { version, changeVersion } = useVersion()
|
||||
const version = '1.20'
|
||||
const version = '1.20.2'
|
||||
const changeVersion = () => {}
|
||||
useTitle(locale('title.customized'))
|
||||
|
||||
@@ -87,7 +87,7 @@ export function Customized({}: Props) {
|
||||
<span class={tab === 'basic' ? 'selected' : ''} onClick={() => setTab('basic')}>{locale('customized.basic')}</span>
|
||||
<span class={tab === 'structures' ? 'selected' : ''} onClick={() => setTab('structures')}>{locale('customized.structures')}</span>
|
||||
<span class={tab === 'ores' ? 'selected' : ''} onClick={() => setTab('ores')}>{locale('customized.ores')}</span>
|
||||
<VersionSwitcher value={version} onChange={changeVersion} allowed={['1.20']} />
|
||||
<VersionSwitcher value={version} onChange={changeVersion} allowed={['1.20.2']} />
|
||||
</div>
|
||||
<div class="customized-tab">
|
||||
{tab === 'basic' && <BasicSettings {...{model, initialModel, changeModel}} />}
|
||||
|
||||
@@ -5,10 +5,10 @@ import { message } from '../Utils.js'
|
||||
import { initPartners } from '../partners/index.js'
|
||||
import { fetchData } from './DataFetcher.js'
|
||||
|
||||
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3', '1.19.4', '1.20'] as const
|
||||
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3', '1.19.4', '1.20', '1.20.2'] as const
|
||||
export type VersionId = typeof VersionIds[number]
|
||||
|
||||
export const DEFAULT_VERSION: VersionId = '1.20'
|
||||
export const DEFAULT_VERSION: VersionId = '1.20.2'
|
||||
|
||||
export type BlockStateRegistry = {
|
||||
[block: string]: {
|
||||
@@ -49,6 +49,7 @@ const versionGetter: {
|
||||
'1.19.3': () => import('@mcschema/java-1.19.3'),
|
||||
'1.19.4': () => import('@mcschema/java-1.19.4'),
|
||||
'1.20': () => import('@mcschema/java-1.20'),
|
||||
'1.20.2': () => import('@mcschema/java-1.20.2'),
|
||||
}
|
||||
|
||||
export let CachedDecorator: INode<any>
|
||||
|
||||
@@ -100,6 +100,11 @@
|
||||
"id": "1.20",
|
||||
"ref": "1.20.1",
|
||||
"pack_format": 15
|
||||
},
|
||||
{
|
||||
"id": "1.20.2",
|
||||
"ref": "1.20.2",
|
||||
"pack_format": 18
|
||||
}
|
||||
],
|
||||
"generators": [
|
||||
|
||||
Reference in New Issue
Block a user