Datapack support (#815)

* Shader support PR

* Make search page work

* Fix env showing

* Make moderation look reasonable

* Fix search for shaders

* Datapack support

* Make file types work + datapack inferring

* Add editing to file types

* Finish datapack file generation

* Fix bugs, make forge support work

* Fix inconsistent data pack label

* Final fixes
This commit is contained in:
Geometrically
2022-12-29 09:59:41 -07:00
committed by GitHub
parent 879576b613
commit 1f133dbcd0
22 changed files with 978 additions and 262 deletions

View File

@@ -50,7 +50,15 @@
<p class="description">
{{ description }}
</p>
<Categories :categories="categories" :type="type" class="tags">
<Categories
:categories="
categories.filter(
(x) => !hideLoaders || !$tag.loaders.find((y) => y.name === x)
)
"
:type="type"
class="tags"
>
<span v-if="moderation" class="environment">
<InfoIcon aria-hidden="true" />
A {{ projectTypeDisplay }}
@@ -58,7 +66,8 @@
<span
v-else-if="
!['resourcepack', 'shader'].includes(type) &&
!(projectTypeDisplay === 'plugin' && search)
!(projectTypeDisplay === 'plugin' && search) &&
!categories.some((x) => $tag.loaderData.dataPackLoaders.includes(x))
"
class="environment"
>
@@ -261,6 +270,11 @@ export default {
required: false,
default: true,
},
hideLoaders: {
type: Boolean,
required: false,
default: false,
},
},
computed: {
projectTypeDisplay() {