mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Improve homepage (#245)
* 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
This commit is contained in:
@@ -1,27 +1,34 @@
|
||||
import config from '../config.json'
|
||||
|
||||
interface Config {
|
||||
languages: Array<{
|
||||
code: string,
|
||||
name: string,
|
||||
schemas?: boolean,
|
||||
}>,
|
||||
versions: Array<{
|
||||
id: string,
|
||||
pack_format: number,
|
||||
ref?: string,
|
||||
dynamic?: boolean,
|
||||
}>,
|
||||
generators: Array<{
|
||||
id: string,
|
||||
url: string,
|
||||
schema: string,
|
||||
path?: string,
|
||||
category?: string,
|
||||
partner?: string,
|
||||
minVersion?: string,
|
||||
maxVersion?: string,
|
||||
}>,
|
||||
export interface ConfigLanguage {
|
||||
code: string,
|
||||
name: string,
|
||||
schemas?: boolean,
|
||||
}
|
||||
|
||||
export interface ConfigVersion {
|
||||
id: string,
|
||||
pack_format: number,
|
||||
ref?: string,
|
||||
dynamic?: boolean,
|
||||
}
|
||||
|
||||
export interface ConfigGenerator {
|
||||
id: string,
|
||||
url: string,
|
||||
schema: string,
|
||||
path?: string,
|
||||
noPath?: boolean,
|
||||
tags?: string[],
|
||||
partner?: string,
|
||||
minVersion?: string,
|
||||
maxVersion?: string,
|
||||
}
|
||||
|
||||
export interface Config {
|
||||
languages: ConfigLanguage[],
|
||||
versions: ConfigVersion[],
|
||||
generators: ConfigGenerator[],
|
||||
}
|
||||
|
||||
export default config as Config
|
||||
|
||||
Reference in New Issue
Block a user