mirror of
https://github.com/misode/misode.github.io.git
synced 2026-05-01 21:23:12 +00:00
Update to esm, update deepslate (#244)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { isObject } from '../Utils'
|
||||
import { isObject } from '../Utils.js'
|
||||
|
||||
const repo = 'https://raw.githubusercontent.com/misode/technical-changes/main'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { CollectionRegistry } from '@mcschema/core'
|
||||
import config from '../../config.json'
|
||||
import { message } from '../Utils'
|
||||
import type { BlockStateRegistry, VersionId } from './Schemas'
|
||||
import config from '../Config.js'
|
||||
import { message } from '../Utils.js'
|
||||
import type { BlockStateRegistry, VersionId } from './Schemas.js'
|
||||
|
||||
const CACHE_NAME = 'misode-v2'
|
||||
const CACHE_LATEST_VERSION = 'cached_latest_version'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { CollectionRegistry, INode, SchemaRegistry } from '@mcschema/core'
|
||||
import { ChoiceNode, DataModel, Reference, StringNode } from '@mcschema/core'
|
||||
import config from '../../config.json'
|
||||
import { initPartners } from '../partners'
|
||||
import { message } from '../Utils'
|
||||
import { fetchData } from './DataFetcher'
|
||||
import config from '../Config.js'
|
||||
import { initPartners } from '../partners/index.js'
|
||||
import { message } from '../Utils.js'
|
||||
import { fetchData } from './DataFetcher.js'
|
||||
|
||||
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19'] as const
|
||||
export type VersionId = typeof VersionIds[number]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import lz from 'lz-string'
|
||||
import type { VersionId } from './Schemas'
|
||||
import type { VersionId } from './Schemas.js'
|
||||
|
||||
const API_PREFIX = 'https://z15g7can.directus.app/items'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import yaml from 'js-yaml'
|
||||
import { Store } from '../Store'
|
||||
import { Store } from '../Store.js'
|
||||
|
||||
const INDENTS: Record<string, number | string | undefined> = {
|
||||
'2_spaces': 2,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export * from './Changelogs'
|
||||
export * from './DataFetcher'
|
||||
export * from './Schemas'
|
||||
export * from './Sharing'
|
||||
export * from './Source'
|
||||
export * from './Changelogs.js'
|
||||
export * from './DataFetcher.js'
|
||||
export * from './Schemas.js'
|
||||
export * from './Sharing.js'
|
||||
export * from './Source.js'
|
||||
|
||||
Reference in New Issue
Block a user