Skip to content

Commit

Permalink
Merge pull request #537 from coljs/develop
Browse files Browse the repository at this point in the history
Go to prod
  • Loading branch information
JenyMzo authored May 5, 2021
2 parents a939a2d + a5306a2 commit 18131da
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 73 deletions.
9 changes: 6 additions & 3 deletions components/AppShortHeroes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,18 @@ export default {
return {
keysHeros: Object.keys(heroesData),
showModal: false,
myHeroes: [],
}
},
computed: {
heroes() {
const heoresKeys = sampleSize(this.keysHeros, 8)
const heroes = heoresKeys.map((heroe) => heroesData[heroe])
return heroes
return this.myHeroes
},
},
created() {
const heroesKeys = sampleSize(this.keysHeros, 8)
this.myHeroes = heroesKeys.map((hero) => heroesData[hero])
},
}
</script>

Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const routerBase =
: {}

export default {
mode: 'universal',
ssr: true,
/*
** Headers of the page
*/
Expand Down
195 changes: 128 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"@nuxtjs/eslint-module": "3.0.2",
"@nuxtjs/fontawesome": "1.1.2",
"@nuxtjs/pwa": "3.3.5",
"@vue/test-utils": "1.1.4",
"@vue/test-utils": "1.2.0",
"all-contributors-cli": "6.20.0",
"babel-eslint": "10.1.0",
"babel-jest": "26.6.3",
"eslint": "7.19.0",
"eslint": "7.25.0",
"eslint-config-prettier": "7.2.0",
"eslint-plugin-nuxt": "2.0.0",
"eslint-plugin-prettier": "3.3.1",
Expand Down

0 comments on commit 18131da

Please sign in to comment.