mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-28 01:08:47 +00:00
Move more stuff to services folder
This commit is contained in:
@@ -2,9 +2,8 @@ import marked from 'marked'
|
||||
import { useEffect, useMemo, useState } from 'preact/hooks'
|
||||
import { Ad, Btn, ErrorPanel, Octicon, TextInput } from '../components'
|
||||
import { locale } from '../Locales'
|
||||
import type { VersionId } from '../Schemas'
|
||||
import type { ChangelogEntry, ChangelogVersion } from '../services/Changelogs'
|
||||
import { getChangelogs } from '../services/Changelogs'
|
||||
import type { ChangelogEntry, ChangelogVersion, VersionId } from '../services'
|
||||
import { getChangelogs } from '../services'
|
||||
import { hashString } from '../Utils'
|
||||
|
||||
type ChangelogProps = {
|
||||
|
||||
@@ -4,11 +4,10 @@ import { useEffect, useErrorBoundary, useRef, useState } from 'preact/hooks'
|
||||
import config from '../../config.json'
|
||||
import { Analytics } from '../Analytics'
|
||||
import { Ad, Btn, BtnInput, BtnMenu, ErrorPanel, HasPreview, Octicon, PreviewPanel, SourcePanel, Tree } from '../components'
|
||||
import { fetchPreset } from '../DataFetcher'
|
||||
import { useModel } from '../hooks'
|
||||
import { locale } from '../Locales'
|
||||
import type { BlockStateRegistry, VersionId } from '../Schemas'
|
||||
import { checkVersion, getBlockStates, getCollections, getModel } from '../Schemas'
|
||||
import type { BlockStateRegistry, VersionId } from '../services'
|
||||
import { checkVersion, fetchPreset, getBlockStates, getCollections, getModel } from '../services'
|
||||
import { getGenerator, message } from '../Utils'
|
||||
|
||||
type GeneratorProps = {
|
||||
|
||||
@@ -2,9 +2,8 @@ import { useEffect, useRef, useState } from 'preact/hooks'
|
||||
import config from '../../config.json'
|
||||
import { Ad, Btn, BtnMenu, ErrorPanel, SoundConfig, TextInput } from '../components'
|
||||
import { locale } from '../Locales'
|
||||
import type { SoundEvents, VersionAssets } from '../Manifest'
|
||||
import { getAssets, getSounds } from '../Manifest'
|
||||
import type { VersionId } from '../Schemas'
|
||||
import type { SoundEvents, VersionAssets, VersionId } from '../services'
|
||||
import { getAssets, getSounds } from '../services'
|
||||
import { hexId, message } from '../Utils'
|
||||
|
||||
type SoundsProps = {
|
||||
|
||||
Reference in New Issue
Block a user