Add slugs
This commit is contained in:
parent
7ac56b1a0c
commit
dcc83271af
13
package-lock.json
generated
13
package-lock.json
generated
@ -10425,14 +10425,6 @@
|
||||
"uniq": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"postscribe": {
|
||||
"version": "2.0.8",
|
||||
"resolved": "https://registry.npmjs.org/postscribe/-/postscribe-2.0.8.tgz",
|
||||
"integrity": "sha1-W3pTqtS2kLbC91gY/O/nRJD0ENU=",
|
||||
"requires": {
|
||||
"prescribe": ">=1.1.2"
|
||||
}
|
||||
},
|
||||
"prelude-ls": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
|
||||
@ -10444,11 +10436,6 @@
|
||||
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz",
|
||||
"integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw="
|
||||
},
|
||||
"prescribe": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/prescribe/-/prescribe-1.1.3.tgz",
|
||||
"integrity": "sha1-jTEiRF8/uvTExYF+pSehf8gTnuY="
|
||||
},
|
||||
"prettier": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.1.2.tgz",
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
</div>
|
||||
<ModCard
|
||||
v-for="mod in mods"
|
||||
:id="mod.id"
|
||||
:id="mod.slug ? mod.slug : mod.id"
|
||||
:key="mod.id"
|
||||
:author="mod.author"
|
||||
:name="mod.title"
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
</client-only>
|
||||
<SearchResult
|
||||
v-for="(result, index) in results"
|
||||
:id="result.mod_id.split('-')[1]"
|
||||
:id="result.slug ? result.slug : result.mod_id.split('-')[1]"
|
||||
:key="result.mod_id"
|
||||
:author="result.author"
|
||||
:name="result.title"
|
||||
|
||||
@ -54,7 +54,7 @@
|
||||
<div class="mods">
|
||||
<SearchResult
|
||||
v-for="result in mods"
|
||||
:id="result.id"
|
||||
:id="result.slug ? result.slug : result.id"
|
||||
:key="result.id"
|
||||
:name="result.title"
|
||||
:description="result.description"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user