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,7 +1,7 @@
|
||||
import config from '../../config.json'
|
||||
import { Footer, ToolCard } from '../components'
|
||||
import { useLocale, useTitle } from '../contexts'
|
||||
import { cleanUrl } from '../Utils'
|
||||
import { Footer, ToolCard } from '../components/index.js'
|
||||
import config from '../Config.js'
|
||||
import { useLocale, useTitle } from '../contexts/index.js'
|
||||
import { cleanUrl } from '../Utils.js'
|
||||
|
||||
interface Props {
|
||||
category: string,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Ad, ChangelogList, ErrorPanel, Footer } from '../components'
|
||||
import { useLocale, useTitle } from '../contexts'
|
||||
import { useAsync } from '../hooks'
|
||||
import { getChangelogs } from '../services'
|
||||
import { Ad, ChangelogList, ErrorPanel, Footer } from '../components/index.js'
|
||||
import { useLocale, useTitle } from '../contexts/index.js'
|
||||
import { useAsync } from '../hooks/index.js'
|
||||
import { getChangelogs } from '../services/index.js'
|
||||
|
||||
interface Props {
|
||||
path?: string,
|
||||
|
||||
+10
-10
@@ -1,16 +1,16 @@
|
||||
import { DataModel, Path } from '@mcschema/core'
|
||||
import { getCurrentUrl, route } from 'preact-router'
|
||||
import { useCallback, useEffect, useErrorBoundary, useMemo, useRef, useState } from 'preact/hooks'
|
||||
import config from '../../config.json'
|
||||
import { Analytics } from '../Analytics'
|
||||
import { Ad, Btn, BtnMenu, ErrorPanel, FileCreation, FileRenaming, Footer, HasPreview, Octicon, PreviewPanel, ProjectCreation, ProjectDeletion, ProjectPanel, SearchList, SourcePanel, TextInput, Tree, VersionSwitcher } from '../components'
|
||||
import { DRAFT_PROJECT, useLocale, useProject, useTitle, useVersion } from '../contexts'
|
||||
import { AsyncCancel, useActiveTimeout, useAsync, useModel, useSearchParam } from '../hooks'
|
||||
import { getOutput } from '../schema/transformOutput'
|
||||
import type { VersionId } from '../services'
|
||||
import { checkVersion, fetchPreset, getBlockStates, getCollections, getModel, getSnippet, shareSnippet } from '../services'
|
||||
import { Store } from '../Store'
|
||||
import { cleanUrl, deepEqual, getGenerator } from '../Utils'
|
||||
import { Analytics } from '../Analytics.js'
|
||||
import { Ad, Btn, BtnMenu, ErrorPanel, FileCreation, FileRenaming, Footer, HasPreview, Octicon, PreviewPanel, ProjectCreation, ProjectDeletion, ProjectPanel, SearchList, SourcePanel, TextInput, Tree, VersionSwitcher } from '../components/index.js'
|
||||
import config from '../Config.js'
|
||||
import { DRAFT_PROJECT, useLocale, useProject, useTitle, useVersion } from '../contexts/index.js'
|
||||
import { AsyncCancel, useActiveTimeout, useAsync, useModel, useSearchParam } from '../hooks/index.js'
|
||||
import { getOutput } from '../schema/transformOutput.js'
|
||||
import type { VersionId } from '../services/index.js'
|
||||
import { checkVersion, fetchPreset, getBlockStates, getCollections, getModel, getSnippet, shareSnippet } from '../services/index.js'
|
||||
import { Store } from '../Store.js'
|
||||
import { cleanUrl, deepEqual, getGenerator } from '../Utils.js'
|
||||
|
||||
export const SHARE_KEY = 'share'
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@ import json from 'highlight.js/lib/languages/json'
|
||||
import { marked } from 'marked'
|
||||
import { route } from 'preact-router'
|
||||
import { useCallback, useEffect, useMemo, useState } from 'preact/hooks'
|
||||
import config from '../../config.json'
|
||||
import { Ad, Btn, ChangelogTag, Footer, Giscus, Octicon, VersionSwitcher } from '../components'
|
||||
import { useLocale, useTitle, useVersion } from '../contexts'
|
||||
import { useActiveTimeout, useAsync, useHash } from '../hooks'
|
||||
import type { VersionId } from '../services'
|
||||
import { parseFrontMatter, versionContent } from '../Utils'
|
||||
import { Ad, Btn, ChangelogTag, Footer, Giscus, Octicon, VersionSwitcher } from '../components/index.js'
|
||||
import config from '../Config.js'
|
||||
import { useLocale, useTitle, useVersion } from '../contexts/index.js'
|
||||
import { useActiveTimeout, useAsync, useHash } from '../hooks/index.js'
|
||||
import type { VersionId } from '../services/index.js'
|
||||
import { parseFrontMatter, versionContent } from '../Utils.js'
|
||||
|
||||
const HASH = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M6.368 1.01a.75.75 0 01.623.859L6.57 4.5h3.98l.46-2.868a.75.75 0 011.48.237L12.07 4.5h2.18a.75.75 0 010 1.5h-2.42l-.64 4h2.56a.75.75 0 010 1.5h-2.8l-.46 2.869a.75.75 0 01-1.48-.237l.42-2.632H5.45l-.46 2.869a.75.75 0 01-1.48-.237l.42-2.632H1.75a.75.75 0 010-1.5h2.42l.64-4H2.25a.75.75 0 010-1.5h2.8l.46-2.868a.75.75 0 01.858-.622zM9.67 10l.64-4H6.33l-.64 4h3.98z"></path></svg>'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useMemo, useState } from 'preact/hooks'
|
||||
import { ChangelogTag, Footer, GuideCard, TextInput, VersionSwitcher } from '../components'
|
||||
import { useLocale, useTitle, useVersion } from '../contexts'
|
||||
import { useTags } from '../hooks/useTags'
|
||||
import { ChangelogTag, Footer, GuideCard, TextInput, VersionSwitcher } from '../components/index.js'
|
||||
import { useLocale, useTitle, useVersion } from '../contexts/index.js'
|
||||
import { useTags } from '../hooks/index.js'
|
||||
|
||||
interface Guide {
|
||||
id: string,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import config from '../../config.json'
|
||||
import { Footer, Giscus, ToolCard } from '../components'
|
||||
import { useLocale, useTitle } from '../contexts'
|
||||
import { cleanUrl } from '../Utils'
|
||||
import { Footer, Giscus, ToolCard } from '../components/index.js'
|
||||
import config from '../Config.js'
|
||||
import { useLocale, useTitle } from '../contexts/index.js'
|
||||
import { cleanUrl } from '../Utils.js'
|
||||
|
||||
interface Props {
|
||||
path?: string,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import config from '../../config.json'
|
||||
import { Footer, ToolCard } from '../components'
|
||||
import { useLocale, useTitle } from '../contexts'
|
||||
import { cleanUrl } from '../Utils'
|
||||
import { Footer, ToolCard } from '../components/index.js'
|
||||
import config from '../Config.js'
|
||||
import { useLocale, useTitle } from '../contexts/index.js'
|
||||
import { cleanUrl } from '../Utils.js'
|
||||
|
||||
const partners = [...new Set(config.generators
|
||||
.filter(g => g.partner !== undefined)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { Howl, HowlOptions } from 'howler'
|
||||
import { useEffect, useMemo, useRef, useState } from 'preact/hooks'
|
||||
import { Btn, ErrorPanel, Footer, SoundConfig, TextInput, VersionSwitcher } from '../components'
|
||||
import { useLocale, useTitle, useVersion } from '../contexts'
|
||||
import { useAsync } from '../hooks'
|
||||
import { fetchSounds } from '../services'
|
||||
import { hexId } from '../Utils'
|
||||
import { Btn, ErrorPanel, Footer, SoundConfig, TextInput, VersionSwitcher } from '../components/index.js'
|
||||
import { useLocale, useTitle, useVersion } from '../contexts/index.js'
|
||||
import { useAsync } from '../hooks/index.js'
|
||||
import { fetchSounds } from '../services/index.js'
|
||||
import { hexId } from '../Utils.js'
|
||||
|
||||
interface Props {
|
||||
path?: string,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Ad, BtnLink, ErrorPanel, Footer, VersionDetail, VersionList } from '../components'
|
||||
import { useLocale, useTitle } from '../contexts'
|
||||
import { useAsync, useSearchParam } from '../hooks'
|
||||
import type { VersionMeta } from '../services'
|
||||
import { fetchVersions } from '../services'
|
||||
import { Ad, BtnLink, ErrorPanel, Footer, VersionDetail, VersionList } from '../components/index.js'
|
||||
import { useLocale, useTitle } from '../contexts/index.js'
|
||||
import { useAsync, useSearchParam } from '../hooks/index.js'
|
||||
import type { VersionMeta } from '../services/index.js'
|
||||
import { fetchVersions } from '../services/index.js'
|
||||
|
||||
interface Props {
|
||||
path?: string,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
export * from './Category'
|
||||
export * from './Changelog'
|
||||
export * from './Generator'
|
||||
export * from './Guide'
|
||||
export * from './Guides'
|
||||
export * from './Home'
|
||||
export * from './Partners'
|
||||
export * from './Sounds'
|
||||
export * from './Versions'
|
||||
export * from './Category.js'
|
||||
export * from './Changelog.js'
|
||||
export * from './Generator.js'
|
||||
export * from './Guide.js'
|
||||
export * from './Guides.js'
|
||||
export * from './Home.js'
|
||||
export * from './Partners.js'
|
||||
export * from './Sounds.js'
|
||||
export * from './Versions.js'
|
||||
|
||||
Reference in New Issue
Block a user