mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 07:37:10 +00:00
Remove guides, they moved to the minecraft wiki
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
import { useMemo } from 'preact/hooks'
|
||||
import { getGuide } from '../services/Guides.js'
|
||||
import { Card } from './Card.jsx'
|
||||
import { Badge } from './index.js'
|
||||
|
||||
interface Props {
|
||||
id: string,
|
||||
minimal?: boolean,
|
||||
activeTags?: string[],
|
||||
toggleTag?: (tag: string) => unknown,
|
||||
}
|
||||
export function GuideCard({ id, minimal, activeTags, toggleTag }: Props) {
|
||||
const { title, versions, tags } = useMemo(() => getGuide(id), [id])
|
||||
|
||||
const onToggleTag = (tag: string) => (e: MouseEvent) => {
|
||||
if (toggleTag) toggleTag(tag)
|
||||
e.preventDefault()
|
||||
e.stopImmediatePropagation()
|
||||
}
|
||||
|
||||
return <Card title={title} overlay={!minimal && versions?.join(' • ')} link={`/guides/${id}/`}>
|
||||
<div class="badges-list">
|
||||
{tags?.sort().map(tag => <Badge label={tag} onClick={onToggleTag(tag)} active={activeTags?.includes(tag)} />)}
|
||||
</div>
|
||||
</Card>
|
||||
}
|
||||
@@ -7,18 +7,17 @@ export * from './Card.jsx'
|
||||
export * from './ErrorPanel.js'
|
||||
export * from './FileUpload.js'
|
||||
export * from './Footer.js'
|
||||
export * from './forms/index.js'
|
||||
export * from './generator/index.js'
|
||||
export * from './Giscus.js'
|
||||
export * from './GuideCard.jsx'
|
||||
export * from './Header.js'
|
||||
export * from './Icons.js'
|
||||
export * from './Modal.js'
|
||||
export * from './Octicon.js'
|
||||
export * from './previews/index.js'
|
||||
export * from './sounds/index.js'
|
||||
export * from './ToolCard.js'
|
||||
export * from './ToolGroup.jsx'
|
||||
export * from './TreeView.js'
|
||||
export * from './versions/index.js'
|
||||
export * from './VersionSwitcher.js'
|
||||
export * from './forms/index.js'
|
||||
export * from './generator/index.js'
|
||||
export * from './previews/index.js'
|
||||
export * from './sounds/index.js'
|
||||
export * from './versions/index.js'
|
||||
|
||||
@@ -11,6 +11,6 @@ export function WhatsNewEntry({ item }: EntryProps) {
|
||||
<WhatsNewTime item={item} />
|
||||
<h2 class="font-bold text-[27px]">{item.title}</h2>
|
||||
</a>
|
||||
<div class="guide-content" dangerouslySetInnerHTML={{ __html: marked(item.body) }} />
|
||||
<div class="markdown-content" dangerouslySetInnerHTML={{ __html: marked(item.body) }} />
|
||||
</article>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user