mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Move Game List to static folder
This commit is contained in:
parent
4255174dd3
commit
b22fd148f1
5 changed files with 6 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -84,6 +84,6 @@ dist
|
||||||
# Other
|
# Other
|
||||||
/static/app-list.json
|
/static/app-list.json
|
||||||
/README-temp.md
|
/README-temp.md
|
||||||
/game-list.json
|
/static/game-list.json
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/commits-data.json
|
/commits-data.json
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ const storeAppList = async function (builder) {
|
||||||
const gamesListPath = path.join(
|
const gamesListPath = path.join(
|
||||||
// builder.nuxt.options.buildDir,
|
// builder.nuxt.options.buildDir,
|
||||||
builder.nuxt.options.srcDir,
|
builder.nuxt.options.srcDir,
|
||||||
'/game-list.json'
|
'/static/game-list.json'
|
||||||
)
|
)
|
||||||
|
|
||||||
const appList = await buildAppList()
|
const appList = await buildAppList()
|
||||||
|
|
@ -60,7 +60,7 @@ export default {
|
||||||
routes() {
|
routes() {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
import('./static/app-list.json'),
|
import('./static/app-list.json'),
|
||||||
import('./game-list.json')
|
import('./static/game-list.json')
|
||||||
])
|
])
|
||||||
.then(([
|
.then(([
|
||||||
importedAppList,
|
importedAppList,
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@
|
||||||
<script>
|
<script>
|
||||||
import LinkButton from '~/components/link-button.vue'
|
import LinkButton from '~/components/link-button.vue'
|
||||||
import EmailSubscribe from '~/components/email-subscribe.vue'
|
import EmailSubscribe from '~/components/email-subscribe.vue'
|
||||||
import gameList from '~/game-list.json'
|
import gameList from '~/static/game-list.json'
|
||||||
// import buildAppList from '~/helpers/build-app-list'
|
// import buildAppList from '~/helpers/build-app-list'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
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 gameList from '~/game-list.json'
|
import gameList from '~/static/game-list.json'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ import LinkButton from '~/components/link-button.vue'
|
||||||
import { byTimeThenNull } from '~/helpers/sort-list.js'
|
import { byTimeThenNull } from '~/helpers/sort-list.js'
|
||||||
|
|
||||||
import appList from '~/static/app-list.json'
|
import appList from '~/static/app-list.json'
|
||||||
import gameList from '~/game-list.json'
|
import gameList from '~/static/game-list.json'
|
||||||
|
|
||||||
// console.log('appList.length', appList.length)
|
// console.log('appList.length', appList.length)
|
||||||
// console.log('gameList.length', gameList.length)
|
// console.log('gameList.length', gameList.length)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue