mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-27 16:58:46 +00:00
Add footer with donate link
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import config from '../../config.json'
|
||||
import { ToolCard } from '../components'
|
||||
import { Footer, ToolCard } from '../components'
|
||||
import { useLocale, useTitle } from '../contexts'
|
||||
import { cleanUrl } from '../Utils'
|
||||
|
||||
@@ -16,5 +16,6 @@ export function Category({ category }: Props) {
|
||||
<ToolCard title={locale(g.id)} link={cleanUrl(g.url)} />
|
||||
)}
|
||||
</div>
|
||||
<Footer donate={false} />
|
||||
</main>
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Ad, ChangelogList, ErrorPanel } from '../components'
|
||||
import { Ad, ChangelogList, ErrorPanel, Footer } from '../components'
|
||||
import { useLocale, useTitle } from '../contexts'
|
||||
import { useAsync } from '../hooks'
|
||||
import { getChangelogs } from '../services'
|
||||
@@ -18,5 +18,6 @@ export function Changelog({}: Props) {
|
||||
<div class="changelog">
|
||||
<ChangelogList changes={changelogs} defaultOrder="desc" />
|
||||
</div>
|
||||
<Footer />
|
||||
</main>
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import { getCurrentUrl, route } from 'preact-router'
|
||||
import { useEffect, useErrorBoundary, useMemo, useRef, useState } from 'preact/hooks'
|
||||
import config from '../../config.json'
|
||||
import { Analytics } from '../Analytics'
|
||||
import { Ad, Btn, BtnMenu, ErrorPanel, HasPreview, Octicon, PreviewPanel, SearchList, SourcePanel, TextInput, Tree } from '../components'
|
||||
import { Ad, Btn, BtnMenu, ErrorPanel, Footer, HasPreview, Octicon, PreviewPanel, SearchList, SourcePanel, TextInput, Tree } from '../components'
|
||||
import { useLocale, useProject, useTitle, useVersion } from '../contexts'
|
||||
import { AsyncCancel, useActiveTimeout, useAsync, useModel, useSearchParam } from '../hooks'
|
||||
import { getOutput } from '../schema/transformOutput'
|
||||
@@ -377,6 +377,7 @@ export function Generator({}: Props) {
|
||||
</div>
|
||||
{error && <ErrorPanel error={error} onDismiss={() => setError(null)} />}
|
||||
<Tree {...{model, version, blockStates}} onError={setError} />
|
||||
<Footer donate={!gen.partner} />
|
||||
</main>
|
||||
<div class="popup-actions" style={`--offset: -${8 + actionsShown * 50}px;`}>
|
||||
<div class={`popup-action action-preview${hasPreview ? ' shown' : ''} tooltipped tip-nw`} aria-label={locale(previewShown ? 'hide_preview' : 'show_preview')} onClick={togglePreview}>
|
||||
|
||||
@@ -4,7 +4,7 @@ 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, BtnMenu, ChangelogTag, Giscus, Octicon } from '../components'
|
||||
import { Ad, Btn, BtnMenu, ChangelogTag, Footer, Giscus, Octicon } from '../components'
|
||||
import { useLocale, useTitle, useVersion } from '../contexts'
|
||||
import { useActiveTimeout, useAsync, useHash } from '../hooks'
|
||||
import type { VersionId } from '../services'
|
||||
@@ -195,5 +195,6 @@ export function Guide({ id }: Props) {
|
||||
<Giscus />
|
||||
</>}
|
||||
</div>
|
||||
<Footer />
|
||||
</main>
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useMemo, useState } from 'preact/hooks'
|
||||
import config from '../../config.json'
|
||||
import { Btn, BtnMenu, ChangelogTag, GuideCard, TextInput } from '../components'
|
||||
import { Btn, BtnMenu, ChangelogTag, Footer, GuideCard, TextInput } from '../components'
|
||||
import { useLocale, useTitle, useVersion } from '../contexts'
|
||||
import { useTags } from '../hooks/useTags'
|
||||
import type { VersionId } from '../services'
|
||||
@@ -72,5 +72,6 @@ export function Guides({}: Props) {
|
||||
<GuideCard title={g.title} link={`/guides/${g.id}/`} tags={g.tags ?? []} versions={g.versions ?? []} activeTags={activeTags} toggleTag={toggleTag} />
|
||||
)}
|
||||
</div>
|
||||
<Footer />
|
||||
</main>
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import config from '../../config.json'
|
||||
import { Giscus, ToolCard } from '../components'
|
||||
import { Footer, Giscus, ToolCard } from '../components'
|
||||
import { useLocale, useTitle } from '../contexts'
|
||||
import { cleanUrl } from '../Utils'
|
||||
|
||||
@@ -37,6 +37,7 @@ export function Home({}: Props) {
|
||||
<ToolCard title="Minecraft Versions" link="/versions/" />
|
||||
<ToolCard title="Data Pack Guides" link="/guides/" />
|
||||
<Giscus />
|
||||
<Footer />
|
||||
</div>
|
||||
</main>
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import config from '../../config.json'
|
||||
import { ToolCard } from '../components'
|
||||
import { Footer, ToolCard } from '../components'
|
||||
import { useLocale, useTitle } from '../contexts'
|
||||
import { cleanUrl } from '../Utils'
|
||||
|
||||
@@ -23,5 +23,6 @@ export function Partners({}: Props) {
|
||||
)}
|
||||
</ToolCard>)}
|
||||
</div>
|
||||
<Footer donate={false} />
|
||||
</main>
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { Howl, HowlOptions } from 'howler'
|
||||
import { useEffect, useMemo, useRef, useState } from 'preact/hooks'
|
||||
import config from '../../config.json'
|
||||
import { Btn, BtnMenu, ErrorPanel, SoundConfig, TextInput } from '../components'
|
||||
import { Btn, BtnMenu, ErrorPanel, Footer, SoundConfig, TextInput } from '../components'
|
||||
import { useLocale, useTitle, useVersion } from '../contexts'
|
||||
import { useAsync } from '../hooks'
|
||||
import type { VersionId } from '../services'
|
||||
@@ -87,5 +87,6 @@ export function Sounds({}: Props) {
|
||||
{soundKeys.map(s => <option key={s} value={s} />)}
|
||||
</datalist>
|
||||
</>}
|
||||
<Footer donate={false} />
|
||||
</main>
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Ad, ErrorPanel, Octicon, VersionDetail, VersionList } from '../components'
|
||||
import { Ad, ErrorPanel, Footer, Octicon, VersionDetail, VersionList } from '../components'
|
||||
import { useLocale, useTitle } from '../contexts'
|
||||
import { useAsync, useSearchParam } from '../hooks'
|
||||
import type { VersionMeta } from '../services'
|
||||
@@ -46,6 +46,7 @@ export function Versions({}: Props) {
|
||||
<VersionDetail id={selectedId} version={selected} />
|
||||
</> : <VersionList versions={versions ?? []} link={id => `/versions/?id=${id}`} />}
|
||||
</div>
|
||||
<Footer donate={false} />
|
||||
</main>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user