Merge branch 'frontend' into leaderboard-pagination
# Conflicts: # frontend/game/tsconfig.json # frontend/package-lock.json # frontend/package.json # frontend/public/index.html # frontend/src/App.vue # frontend/src/components/Game.vue # frontend/src/components/Leaderboard.vue
This commit is contained in:
commit
91fd54a97f
4 changed files with 26 additions and 5 deletions
4
frontend/.browserslistrc
Normal file
4
frontend/.browserslistrc
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
> 1%
|
||||||
|
last 2 versions
|
||||||
|
not dead
|
||||||
|
not ie 11
|
||||||
19
frontend/.eslintrc.js
Normal file
19
frontend/.eslintrc.js
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
env: {
|
||||||
|
node: true
|
||||||
|
},
|
||||||
|
'extends': [
|
||||||
|
'plugin:vue/vue3-essential',
|
||||||
|
'eslint:recommended',
|
||||||
|
'@vue/typescript/recommended'
|
||||||
|
],
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 2020
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
'vue/multi-word-component-names': 'off',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -42,8 +42,6 @@ export default defineComponent({
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userScores: {},
|
userScores: {},
|
||||||
highscoreLeaderboard: [],
|
|
||||||
totalPlaytimeLeaderboard: [],
|
|
||||||
userId: 1,
|
userId: 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="wrapper">
|
||||||
<main></main>
|
<main></main>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue