Shaderpack support (#798)

* Shader support PR

* Make search page work

* Fix env showing

* Make moderation look reasonable

* Fix search for shaders
This commit is contained in:
Geometrically
2022-12-20 13:47:41 -07:00
committed by GitHub
parent 6f58e9e7bb
commit 97ecb0a5d6
14 changed files with 73 additions and 10 deletions

View File

@@ -53,6 +53,16 @@
return (
a.name.replace(/\D/g, '') - b.name.replace(/\D/g, '')
)
} else if (header === 'performance impact') {
const x = [
'potato',
'low',
'medium',
'high',
'screenshot',
]
return x.indexOf(a.name) - x.indexOf(b.name)
}
return 0
})"
@@ -147,7 +157,9 @@
/>
</section>
<section
v-if="!['resourcepack', 'plugin'].includes(projectType.id)"
v-if="
!['resourcepack', 'plugin', 'shader'].includes(projectType.id)
"
aria-label="Environment filters"
>
<h3 class="sidebar-menu-heading">Environments</h3>