Skip to content

Commit

Permalink
Merge pull request #464 from penguin-statistics/dev
Browse files Browse the repository at this point in the history
Release v3.5.8
  • Loading branch information
AlvISsReimu authored Aug 4, 2021
2 parents 24691a0 + b1d19f9 commit fb32560
Show file tree
Hide file tree
Showing 11 changed files with 311 additions and 46 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "penguin-stats-frontend",
"version": "3.5.6",
"version": "3.5.8",
"private": true,
"author": "Penguin Statistics Contributors <contributors@penguin-stats.io> (https://github.com/orgs/penguin-statistics/people)",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/components/global/ItemIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ export default {
resolutions: {
high: {
iconSize: 183,
dimensions: [1098, 2562],
url: '/sprite/sprite.202011011235.png'
dimensions: [1098, 2745],
url: '/sprite/sprite.202108050453.png'
},
low: {
iconSize: 183 / 2,
dimensions: [1098 / 2, 2562 / 2],
url: '/sprite/sprite.202011011235.small.png'
dimensions: [1098 / 2, 2745 / 2],
url: '/sprite/sprite.202108050453.small.png'
}
}
}
Expand Down
86 changes: 86 additions & 0 deletions src/components/report/SpecialStageDialog.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<template>
<v-dialog
persistent
:value="value"
max-width="500"
@input="e => $emit('input', e)"
>
<v-card>
<v-card-title class="title pa-4 slash-strip--warning-transparent d-flex flex-column text-left align-start">
<v-icon>mdi-alert</v-icon>
<span class="mt-2">{{ $t('report.specialSideStory.dialog.title') }}</span>
</v-card-title>

<v-card-text class="pt-4">
<h3 class="title mb-2">
请<strong class="text-glow">确保集齐所有标志物</strong>后再进行汇报
</h3>
<p>根据初步数据统计推测,标志物掉率计算事件可能不满足独立前提,即:在所有标志物被集齐前、其掉率可能会产生动态变化。因此,我们决定仅收集集齐所有标志物后的掉率数据</p>
</v-card-text>

<v-divider />

<v-card-actions>
<v-btn
v-haptic
color="error"
text
@click="$emit('cancel')"
>
{{ $t('report.specialSideStory.dialog.cancel') }}
</v-btn>
<v-spacer />
<v-btn
v-haptic
color="primary"
depressed
:disabled="timerValue > 0"
@click="$emit('confirm')"
>
{{ timerValue > 0
? $t('report.specialSideStory.dialog.confirmTimerPending', {timer: timerValue})
: $t('report.specialSideStory.dialog.confirmTimerDone')
}}
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>

<script>
export default {
name: "SpecialStageDialog",
props: {
value: Boolean
},
data() {
return {
timer: null,
timerValue: 10
}
},
watch: {
value(val) {
if (val) this.start()
else this.stop()
}
},
methods: {
start() {
this.timerValue = 10
this.timer = setInterval(() => {
if (this.timerValue > 0) this.timerValue -= 1
else this.stop()
}, 1000)
},
stop () {
clearInterval(this.timer)
this.timer = null
}
},
}
</script>

<style scoped>
</style>
2 changes: 1 addition & 1 deletion src/config/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const version = 'v3.5.6'
const version = 'v3.5.8'
const project = 'frontend-v2'

module.exports = {
Expand Down
10 changes: 10 additions & 0 deletions src/locales/zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ report:
causes:
noDrop: 尚未选择任何掉落物品
limitation: 本次汇报与现有数据差距较大,继续提交可能导致此次汇报被判定为异常,无法计入全部统计数据中。
isSpecialSideStory: |2-
**请集齐所有标志物后,再来汇报!**
(由于未集齐时,我们推测掉率是*动态变化*的,因此只收集*集齐标志物*后的数据)
specialSideStory:
dialog:
title: 「多索雷斯假日」活动特殊掉落汇报策略提示
cancel: 关闭
confirmTimerPending: 我已知晓并继续 ({timer})
confirmTimerDone: 我已知晓并继续

recognition:
step:
select: 选择
Expand Down
134 changes: 131 additions & 3 deletions src/models/managers/stages.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,137 @@ const stages = new ObjectManager({
},
transform: [
(object) => {
// object.push({"stageType":"PERMANENT","stageId":"test01_001","zoneId":"test01","code":"测试活动 1","code_i18n":{"ko":"测试活动 1 ko","ja":"测试活动 1 ja","en":"测试活动 1 en","zh":"测试活动 1 zh"},"apCost":6,"dropInfos":[{"itemId":"2001","dropType":"NORMAL_DROP","bounds":{"lower":2,"upper":4}},{"itemId":"30011","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"30021","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"30031","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"30051","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"30061","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"3003","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"2001","dropType":"EXTRA_DROP","bounds":{"lower":1,"upper":2}},{"itemId":"furni","dropType":"FURNITURE","bounds":{"lower":0,"upper":1}},{"dropType":"NORMAL_DROP","bounds":{"lower":1,"upper":1}},{"dropType":"SPECIAL_DROP","bounds":{"lower":0,"upper":0}},{"dropType":"EXTRA_DROP","bounds":{"lower":1,"upper":2}},{"itemId":"30041","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}}]})
// object.push({"stageType":"PERMANENT","stageId":"test01_002","zoneId":"test01","code":"测试活动 2","code_i18n":{"ko":"测试活动 2 ko","ja":"测试活动 2 ja","en":"测试活动 2 en","zh":"测试活动 2 zh"},"apCost":6,"dropInfos":[{"itemId":"2001","dropType":"NORMAL_DROP","bounds":{"lower":2,"upper":4}},{"itemId":"30011","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"30021","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"30031","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"30051","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"30061","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"3003","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}},{"itemId":"2001","dropType":"EXTRA_DROP","bounds":{"lower":1,"upper":2}},{"itemId":"furni","dropType":"FURNITURE","bounds":{"lower":0,"upper":1}},{"dropType":"NORMAL_DROP","bounds":{"lower":1,"upper":1}},{"dropType":"SPECIAL_DROP","bounds":{"lower":0,"upper":0}},{"dropType":"EXTRA_DROP","bounds":{"lower":1,"upper":2}},{"itemId":"30041","dropType":"EXTRA_DROP","bounds":{"lower":0,"upper":1}}]})
// object.push({"stageType":"PERMANENT","stageId":"test01_003","zoneId":"test01","code":"测试活动 3","code_i18n":{"ko":"测试活动 3 ko","ja":"测试活动 3 ja","en":"测试活动 3 en","zh":"测试活动 3 zh 无dropInfos"},"apCost":6})
// object.push({
// "stageType": "ACTIVITY",
// "stageId": "act12side_zone1_001",
// "zoneId": "act12side_zone1",
// "code": "TEST-1",
// "apCost": 12,
// "existence": {
// "US": {
// "exist": false
// },
// "JP": {
// "exist": false
// },
// "KR": {
// "exist": false
// },
// "CN": {
// "exist": true
// }
// },
// "minClearTime": 192000,
// "code_i18n": {
// "ko": "TEST-1",
// "ja": "TEST-1",
// "en": "TEST-1",
// "zh": "TEST-1"
// },
// "dropInfos": [
// {
// "itemId": "30013",
// "dropType": "NORMAL_DROP",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "itemId": "30021",
// "dropType": "EXTRA_DROP",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "itemId": "30041",
// "dropType": "EXTRA_DROP",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "itemId": "30051",
// "dropType": "EXTRA_DROP",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "itemId": "2001",
// "dropType": "EXTRA_DROP",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "itemId": "30022",
// "dropType": "EXTRA_DROP",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "itemId": "30042",
// "dropType": "EXTRA_DROP",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "itemId": "30052",
// "dropType": "EXTRA_DROP",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "itemId": "2002",
// "dropType": "EXTRA_DROP",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "itemId": "furni",
// "dropType": "FURNITURE",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "dropType": "NORMAL_DROP",
// "bounds": {
// "lower": 0,
// "upper": 1
// }
// },
// {
// "dropType": "SPECIAL_DROP",
// "bounds": {
// "lower": 0,
// "upper": 0
// }
// },
// {
// "dropType": "EXTRA_DROP",
// "bounds": {
// "lower": 1,
// "upper": 1
// }
// }
// ]
// })
//
// object.push({"stageType":"PERMANENT","stageId":"test02_001","zoneId":"test02","code":"测试活动 2 1","code_i18n":{"ko":"测试活动 2 1 ko","ja":"测试活动 2 1 ja","en":"测试活动 2 1 en","zh":"测试活动 2 1 zh 无dropInfos"},"apCost":6})
// object.push({"stageType":"PERMANENT","stageId":"test02_002","zoneId":"test02","code":"测试活动 2 2","code_i18n":{"ko":"测试活动 2 2 ko","ja":"测试活动 2 2 ja","en":"测试活动 2 2 en","zh":"测试活动 2 2 zh 无dropInfos"},"apCost":6})
Expand Down
12 changes: 6 additions & 6 deletions src/models/managers/zones.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ const zones = new ObjectManager({
transform: [
(object) => {
// object.push({
// "zoneId": "test01",
// "zoneId": "act12side_zone1",
// "zoneIndex": 0,
// "type": "PERMANENT",
// "type": "ACTIVITY",
// "zoneName": "测试活动",
// "zoneName_i18n": {"ja": "测试活动 ja", "ko": "测试活动 ko", "en": "测试活动 en", "zh": "测试活动 zh"},
// "existence": {
// "US": {"exist": true, "openTime": Date.now() + 10000, "closeTime": 1800000000000},
// "JP": {"exist": false},
// "US": {"exist": true},
// "JP": {"exist": true},
// "CN": {"exist": true},
// "KR": {"exist": false}
// "KR": {"exist": true}
// },
// "stages": ["test01_001", "test01_002", "test01_003"]
// "stages": ["act12side_zone1_001"]
// })
// object.push({
// "zoneId": "test02",
Expand Down
3 changes: 3 additions & 0 deletions src/store/modules/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
outdated: false,
loadingRoute: '',
serverLocked: false,
specialSideStoryDialogRead: false
},
mutations: {
setSnackbar (state, { color, timeout, text, icon, extra }) {
Expand All @@ -38,12 +39,14 @@ export default {
},
lockServer: state => state.serverLocked = true,
unlockServer: state => state.serverLocked = false,
setSpecialSideStoryDialogRead: (state, value) => state.specialSideStoryDialogRead = value
},
getters: {
snackbar: state => state.snackbar,
outdated: state => state.outdated,
notice: state => state.notice,
loadingRoute: state => state.loadingRoute,
serverLocked: state => state.serverLocked,
specialSideStoryDialogRead: state => state.specialSideStoryDialogRead
}
}
4 changes: 1 addition & 3 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class="card-translate-up"
/>
<SiteStatsOverview class="card-translate-up" />
<Mew class="card-translate-up" />
<!-- <Mew class="card-translate-up" />-->
</v-col>

<!-- <v-col-->
Expand Down Expand Up @@ -112,12 +112,10 @@ import Console from '@/utils/Console'
import GettingStarted from '@/views/About/GettingStarted'
import SiteStatsOverview from '@/components/stats/SiteStatsOverview'
import HomeSearch from '@/views/About/HomeSearch'
import Mew from "@/views/About/Banners/Mew";
export default {
name: 'Home',
components: {
Mew,
HomeSearch,
SiteStatsOverview,
GettingStarted,
Expand Down
Loading

0 comments on commit fb32560

Please sign in to comment.