Make app endpoints a generated value

This commit is contained in:
Sam Carlton 2020-12-11 14:04:03 -06:00
parent ea17b014af
commit 63c405943e
7 changed files with 56 additions and 20 deletions

View file

@ -75,7 +75,7 @@
>
<!-- app.endpoint: {{ app.endpoint }} -->
<a
:href="app.endpoint"
:href="getAppEndpoint(app)"
class="flex flex-col justify-center inset-x-0 hover:bg-darkest border-2 border-white border-opacity-0 hover:border-opacity-50 focus:outline-none focus:bg-gray-50 duration-300 ease-in-out rounded-lg space-y-2 -mx-5 pl-5 md:pl-20 pr-6 md:pr-64 py-6 "
style="transition-property: border;"
>
@ -168,6 +168,7 @@
import scrollIntoView from 'scroll-into-view-if-needed'
import { getAppCategory } from '~/helpers/categories.js'
import { getAppEndpoint } from '~/helpers/app-derived.js'
// import appList from '~/static/app-list.json'
// import EmailSubscribe from '~/components/email-subscribe.vue'
@ -320,6 +321,7 @@ export default {
},
methods: {
getAppCategory,
getAppEndpoint,
// Search priorities
titleStartsWith (query, app) {
const matches = app.name.toLowerCase().startsWith(query)