mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add Homebrew Formulae to index list
This commit is contained in:
parent
3702254b00
commit
6a70d2e0bf
1 changed files with 12 additions and 21 deletions
|
|
@ -9,7 +9,8 @@
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<Search
|
<Search
|
||||||
:app-list="appList"
|
:app-list="allList"
|
||||||
|
:initial-limit="200"
|
||||||
@update:query="query = $event"
|
@update:query="query = $event"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
@ -37,22 +38,17 @@
|
||||||
import Search from '~/components/search.vue'
|
import Search from '~/components/search.vue'
|
||||||
import LinkButton from '~/components/link-button.vue'
|
import LinkButton from '~/components/link-button.vue'
|
||||||
|
|
||||||
import { byTimeThenNull } from '~/helpers/sort-list.js'
|
|
||||||
|
|
||||||
import appList from '~/static/app-list.json'
|
|
||||||
import gameList from '~/static/game-list.json'
|
|
||||||
|
|
||||||
// console.log('appList.length', appList.length)
|
|
||||||
// console.log('gameList.length', gameList.length)
|
|
||||||
|
|
||||||
const sortedAppList = appList.sort(byTimeThenNull)
|
|
||||||
|
|
||||||
const mergedList = [
|
|
||||||
...sortedAppList,
|
|
||||||
...gameList
|
|
||||||
]
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
async asyncData () {
|
||||||
|
// const { default: appList } = await import('~/static/app-list.json')
|
||||||
|
// const { default: gamelist } = await import('~/static/game-list.json')
|
||||||
|
|
||||||
|
const { allList } = await import('~/helpers/get-list.js')
|
||||||
|
|
||||||
|
return {
|
||||||
|
allList
|
||||||
|
}
|
||||||
|
},
|
||||||
components: {
|
components: {
|
||||||
Search,
|
Search,
|
||||||
LinkButton
|
LinkButton
|
||||||
|
|
@ -61,11 +57,6 @@ export default {
|
||||||
return {
|
return {
|
||||||
query: '',
|
query: '',
|
||||||
}
|
}
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
appList() {
|
|
||||||
return mergedList
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue