3 коммитов

15 измененных файлов: 672 добавлений и 492 удалений
  1. +1
    -1
      .nvmrc
  2. +2
    -2
      Dockerfile
  3. +1
    -1
      README.md
  4. +1
    -1
      package.json
  5. +1
    -2
      src/App.vue
  6. +24
    -12
      src/components/Battleground.vue
  7. +1
    -1
      src/components/Objective.vue
  8. +1
    -4
      src/components/TheBattlegroundSelector.vue
  9. +0
    -0
      src/components/Timer.vue
  10. +2
    -2
      src/router/index.js
  11. +2
    -1
      src/styles/main.sass
  12. Двоичные данные
      static/backgrounds/alterac-pass.jpg
  13. Двоичные данные
      static/backgrounds/battlefieldofeternity.jpg
  14. Двоичные данные
      static/backgrounds/blackheartsbay.jpg
  15. +636
    -465
      yarn.lock

+ 1
- 1
.nvmrc Просмотреть файл

@@ -1 +1 @@
12
14

+ 2
- 2
Dockerfile Просмотреть файл

@@ -1,5 +1,5 @@
FROM node:erbium-alpine
RUN apk add python2
FROM node:fermium-alpine
RUN apk add python2 make g++
WORKDIR /home/node WORKDIR /home/node
COPY package.json yarn.lock ./ COPY package.json yarn.lock ./
RUN chown node:node -R . RUN chown node:node -R .


+ 1
- 1
README.md Просмотреть файл

@@ -9,7 +9,7 @@


## Build Setup ## Build Setup


This project run on the node 12 LTS version (Erbium)
This project run on the node 14 LTS version (Fermium)


``` bash ``` bash
# install dependencies # install dependencies


+ 1
- 1
package.json Просмотреть файл

@@ -52,7 +52,7 @@
"rimraf": "^2.6.2", "rimraf": "^2.6.2",
"sass-loader": "7.3.1", "sass-loader": "7.3.1",
"semver": "^5.4.1", "semver": "^5.4.1",
"shelljs": "^0.7.8",
"shelljs": "^0.8.4",
"sw-precache-webpack-plugin": "^0.11.4", "sw-precache-webpack-plugin": "^0.11.4",
"uglify-es": "^3.1.3", "uglify-es": "^3.1.3",
"url-loader": "^0.6.2", "url-loader": "^0.6.2",


+ 1
- 2
src/App.vue Просмотреть файл

@@ -41,8 +41,7 @@
box-sizing: border-box box-sizing: border-box
padding-top: 16px padding-top: 16px


main
margin-top: 20px

</style> </style>


<style lang="sass"> <style lang="sass">


+ 24
- 12
src/components/Battleground.vue Просмотреть файл

@@ -1,26 +1,35 @@
<template> <template>
<div class="battleground" v-if="battleground"> <div class="battleground" v-if="battleground">
<div>Welcome to {{ battleground.name }}</div>
<div class="battleground-content">
<div>Welcome to {{ battleground.name }}</div>


<div id="objectives" class="objectives">
<div class="row" v-for="objectiveRow in battleground.objectives">
<template v-for="objective in objectiveRow">
<Objective :objective="objective"></Objective>
</template>
<div id="objectives" class="objectives">
<div class="row" v-for="objectiveRow in battleground.objectives">
<template v-for="objective in objectiveRow">
<Objective :objective="objective"></Objective>
</template>
</div>
</div> </div>
<router-link to="/battlegrounds">Back to selector</router-link>
</div> </div>
<router-link to="/battlegrounds">Back to selector</router-link>

</div> </div>
</template> </template>


<style lang="sass" scoped> <style lang="sass" scoped>
$border-style: 1px solid #66CCFF $border-style: 1px solid #66CCFF


.battleground
background-image: url(/static/backgrounds/alterac-pass.jpg)
background-size: contain
&-content
backdrop-filter: blur(4px)
height: 100vh

.objectives .objectives
display: flex display: flex
flex-direction: column flex-direction: column
height: 70vh
height: 100%

.row .row
display: flex display: flex
justify-content: space-between justify-content: space-between
@@ -36,8 +45,8 @@


<script> <script>
import BATTLEGROUNDS from '@/gameInfos/battlegrounds' import BATTLEGROUNDS from '@/gameInfos/battlegrounds'
import Timer from '@/components/Battleground/Timer'
import Objective from '@/components/Battleground/Objective'
import Timer from '@/components/Timer'
import Objective from '@/components/Objective'


export default { export default {
name: 'Battleground', name: 'Battleground',
@@ -46,8 +55,11 @@
} }
}, },
computed: { computed: {
battlegroundId () {
return this.$route.params.battlegroundId
},
battleground () { battleground () {
return BATTLEGROUNDS[this.$route.params.battlegroundId]
return BATTLEGROUNDS[this.battlegroundId]
} }
}, },
watch: { watch: {


src/components/Battleground/Objective.vue → src/components/Objective.vue Просмотреть файл

@@ -25,7 +25,7 @@
</style> </style>


<script> <script>
import Timer from '@/components/Battleground/Timer'
import Timer from '@/components/Timer'
export default { export default {
name: 'Objective', name: 'Objective',
props: { props: {

src/components/BattlegroundSelector.vue → src/components/TheBattlegroundSelector.vue Просмотреть файл

@@ -24,7 +24,7 @@
} }
</script> </script>


<style lang="sass">
<style lang="sass" scoped>
.map-selector .map-selector
&__map-list &__map-list
list-style-type: none list-style-type: none
@@ -34,9 +34,6 @@
padding: 10px 0 10px 10px padding: 10px 0 10px 10px
border-top: solid #5659aa 1px border-top: solid #5659aa 1px
border-left: none border-left: none
</style>

<style lang="sass" scoped>
a a
text-decoration: none text-decoration: none
color: inherit color: inherit

src/components/Battleground/Timer.vue → src/components/Timer.vue Просмотреть файл


+ 2
- 2
src/router/index.js Просмотреть файл

@@ -2,7 +2,7 @@ import Vue from 'vue'
import Router from 'vue-router' import Router from 'vue-router'


import Hello from '@/components/Hello' import Hello from '@/components/Hello'
import BattlegroundSelector from '@/components/BattlegroundSelector'
import TheBattlegroundSelector from '@/components/TheBattlegroundSelector'
import Battleground from '@/components/Battleground' import Battleground from '@/components/Battleground'


Vue.use(Router) Vue.use(Router)
@@ -16,7 +16,7 @@ export default new Router({
}, },
{ {
path: '/battlegrounds', path: '/battlegrounds',
component: BattlegroundSelector
component: TheBattlegroundSelector
}, },
{ {
path: '/battleground/:battlegroundId', path: '/battleground/:battlegroundId',


+ 2
- 1
src/styles/main.sass Просмотреть файл

@@ -7,7 +7,8 @@
// ## Colors ## // ## Colors ##
// ############ // ############
$blizzard-background-color: #0A020F $blizzard-background-color: #0A020F
$blizzard-font-color: #66CCFF
$blizzard-background-color-transparent: #0A020FCC
$blizzard-font-color: #fff


=blizzard-header-gradient =blizzard-header-gradient
background: #0d39a0 /* Old browsers */ background: #0d39a0 /* Old browsers */


Двоичные данные
static/backgrounds/alterac-pass.jpg Просмотреть файл

До После
Ширина: 6000  |  Высота: 3375  |  Размер: 909 KiB Ширина: 6000  |  Высота: 3375  |  Размер: 909 KiB

Двоичные данные
static/backgrounds/battlefieldofeternity.jpg Просмотреть файл

До После
Ширина: 1920  |  Высота: 1080  |  Размер: 103 KiB Ширина: 1920  |  Высота: 1080  |  Размер: 103 KiB

Двоичные данные
static/backgrounds/blackheartsbay.jpg Просмотреть файл

До После
Ширина: 3300  |  Высота: 1856  |  Размер: 762 KiB Ширина: 3300  |  Высота: 1856  |  Размер: 762 KiB

+ 636
- 465
yarn.lock
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


Загрузка…
Отмена
Сохранить