* Revert "fix: featured version ui shifts (#1191)" This reverts commit 3036f43b756768453a66c973bebdd383f7c3c68a. * Revert "Fix CTRL clicking on versions issue (#1189)" This reverts commit f4560bd7d8a41f5d171b3ed90330cdb8fb131ae0. * Add basic neoforge frontend support
64 lines
1.6 KiB
JavaScript
64 lines
1.6 KiB
JavaScript
import tags from '~/generated/state.json'
|
|
|
|
export const useTags = () =>
|
|
useState('tags', () => ({
|
|
categories: tags.categories,
|
|
loaders: tags.loaders,
|
|
gameVersions: tags.gameVersions,
|
|
donationPlatforms: tags.donationPlatforms,
|
|
reportTypes: tags.reportTypes,
|
|
projectTypes: [
|
|
{
|
|
actual: 'mod',
|
|
id: 'mod',
|
|
display: 'mod',
|
|
},
|
|
{
|
|
actual: 'mod',
|
|
id: 'plugin',
|
|
display: 'plugin',
|
|
},
|
|
{
|
|
actual: 'mod',
|
|
id: 'datapack',
|
|
display: 'data pack',
|
|
},
|
|
{
|
|
actual: 'shader',
|
|
id: 'shader',
|
|
display: 'shader',
|
|
},
|
|
{
|
|
actual: 'resourcepack',
|
|
id: 'resourcepack',
|
|
display: 'resource pack',
|
|
},
|
|
{
|
|
actual: 'modpack',
|
|
id: 'modpack',
|
|
display: 'modpack',
|
|
},
|
|
],
|
|
loaderData: {
|
|
pluginLoaders: ['bukkit', 'spigot', 'paper', 'purpur', 'sponge', 'folia'],
|
|
pluginPlatformLoaders: ['bungeecord', 'waterfall', 'velocity'],
|
|
allPluginLoaders: [
|
|
'bukkit',
|
|
'spigot',
|
|
'paper',
|
|
'purpur',
|
|
'sponge',
|
|
'bungeecord',
|
|
'waterfall',
|
|
'velocity',
|
|
'folia',
|
|
],
|
|
dataPackLoaders: ['datapack'],
|
|
modLoaders: ['forge', 'fabric', 'quilt', 'liteloader', 'modloader', 'rift', 'neoforge'],
|
|
},
|
|
projectViewModes: ['list', 'grid', 'gallery'],
|
|
approvedStatuses: ['approved', 'archived', 'unlisted', 'private'],
|
|
rejectedStatuses: ['rejected', 'withheld'],
|
|
staffRoles: ['moderator', 'admin'],
|
|
}))
|