2024-01-25 16:32:45 +00:00
|
|
|
|
import type { DefaultTheme } from 'vitepress'
|
2023-11-14 15:10:49 +00:00
|
|
|
|
|
2023-11-12 16:42:57 +00:00
|
|
|
|
export const meta = {
|
2024-01-26 16:57:58 +00:00
|
|
|
|
name: 'freemediaheckyeah',
|
2024-01-25 16:32:45 +00:00
|
|
|
|
description: 'The largest collection of free stuff on the internet!',
|
|
|
|
|
hostname: 'https://fmhy.net',
|
|
|
|
|
keywords: ['stream', 'movies', 'gaming', 'reading', 'anime']
|
|
|
|
|
}
|
2023-11-12 16:42:57 +00:00
|
|
|
|
|
2024-01-04 08:08:55 +00:00
|
|
|
|
export const commitRef = process.env.CF_PAGES
|
2024-01-26 16:57:58 +00:00
|
|
|
|
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${process.env.CF_PAGES_COMMIT_SHA
|
|
|
|
|
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
2024-01-25 16:32:45 +00:00
|
|
|
|
: 'dev'
|
2023-12-28 10:48:39 +00:00
|
|
|
|
|
2024-01-25 16:32:45 +00:00
|
|
|
|
export const feedback = `<a href="/feedback" class="feedback-footer">Made with ❤️</a>`
|
2023-11-14 15:10:49 +00:00
|
|
|
|
|
2024-01-25 16:32:45 +00:00
|
|
|
|
export const search: DefaultTheme.Config['search'] = {
|
2024-01-04 08:08:55 +00:00
|
|
|
|
options: {
|
|
|
|
|
miniSearch: {
|
|
|
|
|
searchOptions: {
|
2024-01-25 16:32:45 +00:00
|
|
|
|
combineWith: 'AND',
|
2024-01-04 08:08:55 +00:00
|
|
|
|
fuzzy: false,
|
|
|
|
|
// @ts-ignore
|
2024-01-25 16:32:45 +00:00
|
|
|
|
boostDocument: (
|
|
|
|
|
_,
|
|
|
|
|
term,
|
|
|
|
|
storedFields: Record<string, string | string[]>
|
|
|
|
|
) => {
|
2024-01-04 08:08:55 +00:00
|
|
|
|
const titles = (storedFields?.titles as string[])
|
|
|
|
|
.filter((t) => Boolean(t))
|
2024-01-25 16:32:45 +00:00
|
|
|
|
.map((t) => t.toLowerCase())
|
2024-01-04 08:08:55 +00:00
|
|
|
|
// Uprate if term appears in titles. Add bonus for higher levels (i.e. lower index)
|
|
|
|
|
const titleIndex =
|
2024-01-25 16:32:45 +00:00
|
|
|
|
titles
|
|
|
|
|
.map((t, i) => (t?.includes(term) ? i : -1))
|
|
|
|
|
.find((i) => i >= 0) ?? -1
|
|
|
|
|
if (titleIndex >= 0) return 10000 - titleIndex
|
2024-01-04 08:08:55 +00:00
|
|
|
|
|
2024-01-25 16:32:45 +00:00
|
|
|
|
return 1
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-01-04 08:08:55 +00:00
|
|
|
|
},
|
2024-01-25 16:32:45 +00:00
|
|
|
|
detailedView: true
|
2024-01-04 08:08:55 +00:00
|
|
|
|
},
|
2024-01-25 16:32:45 +00:00
|
|
|
|
provider: 'local'
|
|
|
|
|
}
|
2024-01-04 08:08:55 +00:00
|
|
|
|
|
|
|
|
|
export const socialLinks: DefaultTheme.SocialLink[] = [
|
2024-01-25 16:32:45 +00:00
|
|
|
|
{ icon: 'github', link: 'https://github.com/fmhy/FMHYEdit' },
|
|
|
|
|
{ icon: 'discord', link: 'https://discord.gg/Stz6y6NgNg' },
|
2023-11-14 15:10:49 +00:00
|
|
|
|
{
|
2024-01-25 16:32:45 +00:00
|
|
|
|
icon: 'reddit',
|
|
|
|
|
link: 'https://reddit.com/r/FREEMEDIAHECKYEAH'
|
|
|
|
|
}
|
|
|
|
|
]
|
2024-01-04 08:08:55 +00:00
|
|
|
|
|
2024-01-26 16:57:58 +00:00
|
|
|
|
export const sidebar: DefaultTheme.Sidebar | DefaultTheme.NavItemWithLink[] = [
|
2024-01-25 16:32:45 +00:00
|
|
|
|
{ text: '📛 Adblocking / Privacy', link: '/adblockvpnguide' },
|
|
|
|
|
{ text: '🤖 Artificial Intelligence', link: '/ai' },
|
|
|
|
|
{ text: '📺 Movies / TV / Anime', link: '/videopiracyguide' },
|
|
|
|
|
{ text: '🎵 Music / Podcasts / Radio', link: '/audiopiracyguide' },
|
|
|
|
|
{ text: '🎮 Gaming / Emulation', link: '/gamingpiracyguide' },
|
|
|
|
|
{ text: '📗 Books / Comics / Manga', link: '/readingpiracyguide' },
|
|
|
|
|
{ text: '💾 Downloading', link: '/downloadpiracyguide' },
|
|
|
|
|
{ text: '🌀 Torrenting', link: '/torrentpiracyguide' },
|
|
|
|
|
{ text: '🧠 Educational', link: '/edupiracyguide' },
|
|
|
|
|
{ text: '📱 Android / iOS', link: '/android-iosguide' },
|
|
|
|
|
{ text: '🐧 Linux / MacOS', link: '/linuxguide' },
|
|
|
|
|
{ text: '🌍 Non-English', link: '/non-english' },
|
|
|
|
|
{ text: '📂 Miscellaneous', link: '/miscguide' },
|
2024-01-04 08:08:55 +00:00
|
|
|
|
{
|
2024-01-25 16:32:45 +00:00
|
|
|
|
text: '🔧 Tools',
|
2024-01-04 08:08:55 +00:00
|
|
|
|
collapsed: false,
|
|
|
|
|
items: [
|
2024-01-25 16:32:45 +00:00
|
|
|
|
{ text: '💻 System Tools', link: '/system-tools' },
|
|
|
|
|
{ text: '🗃️ File Tools', link: '/file-tools' },
|
|
|
|
|
{ text: '🔗 Internet Tools', link: '/internet-tools' },
|
|
|
|
|
{ text: '💬 Social Media Tools', link: '/social-media-tools' },
|
|
|
|
|
{ text: '📝 Text Tools', link: '/text-tools' },
|
|
|
|
|
{ text: '👾 Gaming Tools', link: '/gamingpiracyguide#gaming-tools' },
|
|
|
|
|
{ text: '📷 Image Tools', link: '/img-tools' },
|
|
|
|
|
{ text: '📼 Video Tools', link: '/video-tools' },
|
|
|
|
|
{ text: '🔊 Audio Tools', link: '/audiopiracyguide#audio-tools' },
|
|
|
|
|
{
|
|
|
|
|
text: '🍎 Educational Tools',
|
|
|
|
|
link: '/edupiracyguide#educational-tools'
|
|
|
|
|
},
|
|
|
|
|
{ text: '👨💻 Developer Tools', link: '/devtools' }
|
|
|
|
|
]
|
2024-01-04 08:08:55 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2024-01-25 16:32:45 +00:00
|
|
|
|
text: '➕️ More',
|
2024-01-04 08:08:55 +00:00
|
|
|
|
collapsed: true,
|
|
|
|
|
items: [
|
2024-01-25 16:32:45 +00:00
|
|
|
|
{ text: '🔞 NSFW', link: '/nsfwpiracy' },
|
|
|
|
|
{ text: '⚠️ Unsafe Sites', link: '/unsafesites' },
|
|
|
|
|
{ text: '📦 Storage', link: '/storage' }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|