mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Fix app benchmark links
This commit is contained in:
parent
63c9f10b86
commit
88648556b3
2 changed files with 11 additions and 2 deletions
|
|
@ -60,6 +60,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import parseGithubDate from '~/helpers/parse-github-date'
|
import parseGithubDate from '~/helpers/parse-github-date'
|
||||||
|
import { getAppEndpoint } from '~/helpers/app-derived.js'
|
||||||
|
|
||||||
import LinkButton from '~/components/link-button.vue'
|
import LinkButton from '~/components/link-button.vue'
|
||||||
import AllUpdatesSubscribe from '~/components/all-updates-subscribe.vue'
|
import AllUpdatesSubscribe from '~/components/all-updates-subscribe.vue'
|
||||||
import VideoRow from '~/components/video/row.vue'
|
import VideoRow from '~/components/video/row.vue'
|
||||||
|
|
@ -96,7 +98,7 @@ export default {
|
||||||
// console.log('video', video)
|
// console.log('video', video)
|
||||||
return {
|
return {
|
||||||
...video,
|
...video,
|
||||||
endpoint: `${slug}/benchmarks#${video.id}`
|
endpoint: `${getAppEndpoint(app)}/benchmarks#${video.id}`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { getAppEndpoint } from '~/helpers/app-derived.js'
|
||||||
|
|
||||||
import VideoRow from '~/components/video/row.vue'
|
import VideoRow from '~/components/video/row.vue'
|
||||||
import LinkButton from '~/components/link-button.vue'
|
import LinkButton from '~/components/link-button.vue'
|
||||||
|
|
@ -130,7 +131,13 @@ export default {
|
||||||
return {
|
return {
|
||||||
slug,
|
slug,
|
||||||
app,
|
app,
|
||||||
relatedVideos
|
relatedVideos: relatedVideos.map(video => {
|
||||||
|
// console.log('video', video)
|
||||||
|
return {
|
||||||
|
...video,
|
||||||
|
endpoint: `${getAppEndpoint(app)}/benchmarks#${video.id}`
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
head() {
|
head() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue