diff --git a/.gitignore b/.gitignore
index a0dddc6f..96172bbf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@ node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
+package-lock.json
# Editor directories and files
.idea
diff --git a/package.json b/package.json
index a02e2690..1da17ea5 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "penguin-stats-frontend",
- "version": "1.1.0",
+ "version": "1.1.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
@@ -62,4 +62,4 @@
"path": "./node_modules/cz-conventional-changelog"
}
}
-}
\ No newline at end of file
+}
diff --git a/src/App.vue b/src/App.vue
index 03af8604..001612c1 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -10,7 +10,13 @@
style="max-height: calc(100vh - 36.76px)"
width="300"
>
-
+
@@ -58,6 +65,7 @@
:key="route.name"
:value="route.meta.active"
:prepend-icon="route.meta.icon"
+ color="grey"
no-action
>
@@ -67,6 +75,7 @@
{{ $t(child.meta.i18n) }}
@@ -84,25 +93,38 @@
-
- mdi-database-refresh
-
-
-
- mdi-invert-colors
-
+
+
+
+ mdi-database-refresh
+
+
+ {{ $t('menu.refreshData') }}
+
+
+
+
+
+ mdi-invert-colors
+
+
+ {{ $t('menu.invertColors') }}
+
@@ -378,11 +400,15 @@ export default {
: imageUrl("croissant")
},
changeLocale (localeId, save=true) {
- Console.debug("[i18n] locale changed to:", localeId, "| saving to vuex:", save);
- this.$i18n.locale = localeId;
- // this.$vuetify.lang.current = localeId;
- if (save) this.$store.commit("changeLocale", localeId);
- document.title = `${this.$t(this.$route.meta.i18n) + ' | ' || ''}${this.$t('app.name')}`;
+ if (localeId !== this.$i18n.locale) {
+ Console.debug("[i18n] locale changed to:", localeId, "| saving to vuex:", save);
+ this.$i18n.locale = localeId;
+ // this.$vuetify.lang.current = localeId;
+ if (save) this.$store.commit("changeLocale", localeId);
+ document.title = `${this.$t(this.$route.meta.i18n) + ' | ' || ''}${this.$t('app.name')}`;
+ } else {
+ Console.debug("[i18n] Same locale");
+ }
},
logRouteEvent (newValue) {
if (newValue.name === "StatsByStage_Selected") {
diff --git a/src/components/stats/StageSelector.vue b/src/components/stats/StageSelector.vue
index cf83156e..2c5d374c 100644
--- a/src/components/stats/StageSelector.vue
+++ b/src/components/stats/StageSelector.vue
@@ -257,11 +257,13 @@
},
set (val) {
this.internalStep = val;
+ if (val === 1) this.$emit("select", {zone: null, stage: null});
+
if (!this.bindRouter) return;
if (val === 1) {
this.$router.push({
name: this.routerNames.index
- })
+ });
} else if (val === 2) {
this.$router.push({
name: this.routerNames.details,
diff --git a/src/config/index.js b/src/config/index.js
index 924384f2..39842924 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -1,6 +1,6 @@
const client = {
source: "frontend-v2",
- version: "v1.1.0"
+ version: "v1.1.1"
};
export default {
diff --git a/src/locales/en.json b/src/locales/en.json
index 94b50a08..9203071d 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -24,7 +24,9 @@
},
"planner": "ArkPlanner",
"changelog": "Change Log",
- "v1": "Visit Old Version"
+ "v1": "Visit Old Version",
+ "refreshData": "Refresh Data",
+ "invertColors": "Change Theme Color"
},
"meta": {
"details": "Details",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index f0979582..bed38e6f 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -24,7 +24,9 @@
},
"planner": "周回計画作成ツール",
"changelog": "更新履歴",
- "v1": "旧バージョン"
+ "v1": "旧バージョン",
+ "refreshData": "データ更新",
+ "invertColors": "テーマ変更"
},
"meta": {
"details": "詳細を見る",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 101bb1d4..6eaaf1fb 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -24,7 +24,9 @@
},
"planner": "刷图规划器",
"changelog": "更新日志",
- "v1": "访问旧版"
+ "v1": "访问旧版",
+ "refreshData": "刷新数据",
+ "invertColors": "转换主题"
},
"meta": {
"details": "详细信息",
diff --git a/src/models/stages.js b/src/models/stages.js
index 5eab7359..47a01e71 100644
--- a/src/models/stages.js
+++ b/src/models/stages.js
@@ -6,6 +6,9 @@ const stages = new ObjectManager({
api: '/stages',
transform: [
(object) => {
+ // object.push({"stageType":"ACTIVITY","stageId":"test01_001","zoneId":"test01","code":"测试活动 1","apCost":99,"normalDrop":["30011"],"specialDrop":[],"extraDrop":[], "isGacha": true})
+ // object.push({"stageType":"ACTIVITY","stageId":"test01_002","zoneId":"test01","code":"测试活动 2","apCost":99,"normalDrop":["30011"],"specialDrop":[],"extraDrop":[], "isGacha": true})
+
object.forEach(el => {
el.dropsSet = [...el.normalDrop, ...el.extraDrop, ...el.specialDrop]
});
diff --git a/src/models/zones.js b/src/models/zones.js
index 84d7d1f1..f0f7ce8d 100644
--- a/src/models/zones.js
+++ b/src/models/zones.js
@@ -16,6 +16,8 @@ const zones = new ObjectManager({
api: '/zones?i18n=true',
transform: [
(object) => {
+ // object.push({"zoneId":"test01","zoneIndex":0,"type":"ACTIVITY","zoneName":"测试活动","openTime":1577174400000,"closeTime":1598340799000,"stages":["test01_001","test01_002"],"zoneName_i18n":{"ja":"测试活动 ja","en":"测试活动 en","zh":"测试活动 zh"}})
+
object.forEach((el) => {
el.icon = getIcon(el.type);
diff --git a/src/views/About/Bulletin.vue b/src/views/About/Bulletin.vue
index 5f1e8384..e042b7a8 100644
--- a/src/views/About/Bulletin.vue
+++ b/src/views/About/Bulletin.vue
@@ -3,29 +3,29 @@
"zh": {
"bulletin": {
"bulletin_0": "1月16日海外版正式上线,为了避免数据混淆,请只上传国服的掉落。",
- "bulletin_1": "专用于海外版的素材统计站是否开放正在计划中。",
- "bulletin_2": "另外,希望有会韩语的博士可以一起来完成网站韩语化工作。"
+ "bulletin_1": "专用于海外版的素材统计站是否开放正在计划中。"
}
},
"en": {
"bulletin": {
"bulletin_0": "Arknights EN server was officially released on 1/16. In order not to mess up the data, please only submit drop data from CN server.",
- "bulletin_1": "We are considering whether to open another website for overseas servers.",
- "bulletin_2": "In addition, we are sincerely looking for someone who can help us translate the website into Korean."
+ "bulletin_1": "We are considering whether to open another website for overseas servers."
}
},
"ja": {
"bulletin": {
"bulletin_0": "1月16日に海外版が正式にリリースされます。データの混雑を避けるために、当サイトでは大陸版のドロップデータのみをアップロードして下さい。",
- "bulletin_1": "海外版のドロップまとめサイトを開設するかは現時点では思案中のみとなっています。",
- "bulletin_2": "さらに、ウェブサイトを韓国語に翻訳する方を募集しています。"
+ "bulletin_1": "海外版のドロップまとめサイトを開設するかは現時点では思案中のみとなっています。"
}
}
}
-
+
{{ $t('menu.about.bulletin') }}
@@ -38,8 +38,6 @@
{{ $t('bulletin.bulletin_0') }}
{{ $t('bulletin.bulletin_1') }}
-
- {{ $t('bulletin.bulletin_2') }}
diff --git a/src/views/About/Changelog.vue b/src/views/About/Changelog.vue
index 189472c6..ac501efb 100644
--- a/src/views/About/Changelog.vue
+++ b/src/views/About/Changelog.vue
@@ -12,6 +12,7 @@
{{ dateKey }}
@@ -35,6 +36,9 @@ export default {
data() {
return {
logs: {
+ 'v1.1.1': [
+ '“岁过华灯”等一系列开箱子的汇报支持批量上传'
+ ],
'v1.1.0': [
'作战选择界面重做',
'对多语言更友好的支持',
diff --git a/src/views/About/Contact.vue b/src/views/About/Contact.vue
index c1f00994..378ca6ef 100644
--- a/src/views/About/Contact.vue
+++ b/src/views/About/Contact.vue
@@ -33,7 +33,10 @@
-
+
{{ $t('contact.contact_0') }}
diff --git a/src/views/About/Contribute.vue b/src/views/About/Contribute.vue
index 4e1fd8ac..6de9bcbc 100644
--- a/src/views/About/Contribute.vue
+++ b/src/views/About/Contribute.vue
@@ -28,7 +28,10 @@
-
+
{{ $t('menu.about.contribute') }}
diff --git a/src/views/About/Donate.vue b/src/views/About/Donate.vue
index c0121396..dfce8dd3 100644
--- a/src/views/About/Donate.vue
+++ b/src/views/About/Donate.vue
@@ -49,7 +49,10 @@
-
+
{{ $t('menu.about.donate') }}
diff --git a/src/views/About/Intro.vue b/src/views/About/Intro.vue
index 1a2f3161..b91b48d2 100644
--- a/src/views/About/Intro.vue
+++ b/src/views/About/Intro.vue
@@ -25,7 +25,10 @@
-
+
@@ -165,7 +168,9 @@
border="left"
>
- - {{ $t('rules.rule_1') }}
+ -
+ {{ $t('rules.rule_1') }}
+
- {{ $t('rules.rule_2') }}
- {{ $t('rules.rule_3') }}
- {{ $t('rules.rule_4') }}
@@ -183,6 +188,16 @@
{{ $t('usage') }}
+
+ {{ $t('gacha') }}
+
+