mirror of
https://github.com/misode/misode.github.io.git
synced 2026-05-01 21:23:12 +00:00
d0bae089d1
* Improve how generators are listed on home * Add some icons for generators * Remove debug * Refactor cachedFetch and use generated changelogs * Add limit to how many changes are shown by default * Add more generator icons * Refactor cards * Fix generator icons for light theme * Add more worldgen icons * Add remaining generator icons * Refactor navigation and badges style * Group on homepage for guides and tools * Fix header button style * Add versions and technical changelog to homepage * Make it clear that not all changes could be documented
25 lines
755 B
TypeScript
25 lines
755 B
TypeScript
import { BtnLink, ChangelogList, ErrorPanel, Footer } from '../components/index.js'
|
|
import { useLocale, useTitle } from '../contexts/index.js'
|
|
import { useAsync } from '../hooks/index.js'
|
|
import { fetchChangelogs } from '../services/index.js'
|
|
|
|
interface Props {
|
|
path?: string,
|
|
}
|
|
export function Changelog({}: Props) {
|
|
const { locale } = useLocale()
|
|
useTitle(locale('title.changelog'))
|
|
|
|
const { value: changes, error } = useAsync(fetchChangelogs, [])
|
|
|
|
return <main>
|
|
{error && <ErrorPanel error={error} />}
|
|
<div class="container changelog">
|
|
<ChangelogList changes={changes} defaultOrder="desc" limit={100} navigation={(
|
|
<BtnLink link="/versions/" icon="three_bars" label={locale('versions.all')} />
|
|
)} />
|
|
</div>
|
|
<Footer />
|
|
</main>
|
|
}
|