Skip to content

Commit 2962cfe

Browse files
committed
upgrade to v1.5.0
1 parent 0c39f49 commit 2962cfe

File tree

7 files changed

+402
-376
lines changed

7 files changed

+402
-376
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nesercode/team-application",
3-
"version": "v1.2.2",
3+
"version": "v1.5.0",
44
"private": false,
55
"description": "A lot tool in a set which improves effictive power when work in Team_Beihua.",
66
"author": "NeserCode",

src/components/CheckDays/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</a>
2424
</div>
2525
<div class="checkDays" v-show="!userStatus">
26-
<span class="notSignSpan">用户未登录</span>
26+
<span class="notSignSpan">请先登录</span>
2727
</div>
2828
</div>
2929
</template>
@@ -263,13 +263,15 @@ export default {
263263
}
264264
265265
.checkDays span.notSignSpan {
266-
@apply inline-block text-base font-semibold;
266+
@apply inline-block text-base;
267267
line-height: 3rem;
268+
font-family: "HanSerif";
268269
}
269270
270271
.message {
271272
@apply block w-32 h-12 px-3 my-4 text-center font-thin text-sm transition rounded-lg;
272273
line-height: 3rem;
274+
font-family: "HanSerif";
273275
}
274276
275277
.message.checked {

src/components/Score/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ h1 span {
194194
}
195195
196196
.sub-list {
197-
@apply inline-flex justify-center flex-col w-full flex-grow my-4 font-mono;
197+
@apply inline-flex justify-center flex-col w-full flex-grow my-4;
198+
font-family: Consolas, "HanSerif";
198199
}
199200
200201
.sub-list .sub-item {
Lines changed: 59 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,76 @@
11
<template>
2-
<div class="about">
3-
<SettingOption
4-
opTitle="关于作者"
5-
opType="button"
6-
opTip="前往 GitHub 查看作者"
7-
opBtnText="前往"
8-
:opDisabled="isDisabled"
9-
:opCallbackFn="goForAuthor"
10-
/>
11-
<SettingOption
12-
opTitle="关于本软件"
13-
opType="button"
14-
opTip="前往 GitHub 查看本项目 本项目遵循 GUN3.0 协议"
15-
opBtnText="前往"
16-
:opDisabled="isDisabled"
17-
:opCallbackFn="goForSoftware"
18-
/>
19-
</div>
2+
<div class="about">
3+
<SettingOption
4+
opTitle="关于作者"
5+
opType="button"
6+
opTip="前往 GitHub 查看作者"
7+
opBtnText="前往"
8+
:opDisabled="isDisabled"
9+
:opCallbackFn="goForAuthor"
10+
/>
11+
<SettingOption
12+
opTitle="关于本软件"
13+
opType="button"
14+
:opTip="versionTip"
15+
opBtnText="前往"
16+
:opDisabled="isDisabled"
17+
:opCallbackFn="goForSoftware"
18+
/>
19+
</div>
2020
</template>
2121

2222
<script>
23-
import SettingOption from "@/components/Setting/option/index.vue";
24-
import { ipcRenderer } from "electron";
23+
import SettingOption from "@/components/Setting/option/index.vue"
24+
import { ipcRenderer } from "electron"
25+
26+
var app = require("electron").remote.app
2527
2628
export default {
27-
name: "About",
28-
components: { SettingOption },
29-
data() {
30-
return {
31-
isDisabled: false,
32-
};
33-
},
34-
mounted() {},
35-
beforeMount() {},
36-
methods: {
37-
goForAuthor: function () {
38-
ipcRenderer.send("open-link-extra", "https://github.com/NeserCode");
39-
},
40-
goForSoftware: function () {
41-
ipcRenderer.send(
42-
"open-link-extra",
43-
"https://github.com/NeserCode/Team-Application"
44-
);
45-
},
46-
},
47-
};
29+
name: "About",
30+
components: { SettingOption },
31+
data() {
32+
return {
33+
isDisabled: false,
34+
newestVersion: "",
35+
versionTip: "前往 GitHub 查看本项目 本项目遵循 GUN3.0 协议",
36+
}
37+
},
38+
mounted() {},
39+
beforeMount() {
40+
this.$axios
41+
.get(
42+
" https://api.github.com/repos/nesercode/team-application/releases/latest"
43+
)
44+
.then((res) => {
45+
console.log(res)
46+
this.newestVersion = res.data.tag_name
47+
this.versionTip += `\n当前版本:${app.getVersion()} 最新版本:${
48+
this.newestVersion
49+
}`
50+
})
51+
},
52+
methods: {
53+
goForAuthor: function () {
54+
ipcRenderer.send("open-link-extra", "https://github.com/NeserCode")
55+
},
56+
goForSoftware: function () {
57+
ipcRenderer.send(
58+
"open-link-extra",
59+
"https://github.com/NeserCode/Team-Application"
60+
)
61+
},
62+
},
63+
}
4864
</script>
4965

5066
<style scoped lang="postcss">
5167
.about {
52-
@apply py-8;
68+
@apply py-8;
5369
}
5470
5571
@media (prefers-color-scheme: dark) {
5672
}
5773
5874
@media (prefers-color-scheme: light) {
5975
}
60-
</style>
76+
</style>

0 commit comments

Comments
 (0)