Skip to content

Commit 41d2675

Browse files
committed
title as a var, rewrite copyright footer
1 parent 5dd61f2 commit 41d2675

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

app/src/App.vue

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<v-app-bar app clipped-left class="higher pr-2">
88
<v-app-bar-nav-icon @click.stop="drawer = !drawer"></v-app-bar-nav-icon>
9-
<v-toolbar-title>Tp0t OJ</v-toolbar-title>
9+
<v-toolbar-title>{{ title }}</v-toolbar-title>
1010
<v-spacer></v-spacer>
1111
<v-btn icon @click="WarmUp" v-if="$store.state.global.role === 'admin'">
1212
<v-icon color="primary">whatshot</v-icon>
@@ -19,7 +19,12 @@
1919

2020
<v-footer app padless class="higher">
2121
<v-col class="text-center pa-1">
22-
<span> <strong>Tp0t</strong> &copy; 2022 </span>
22+
<span>
23+
Powered by
24+
<a href="https://github.com/Tp0t-Team/Tp0tOJ" target="_blank"
25+
><strong>Tp0t OJ</strong></a
26+
>, under AGPL license
27+
</span>
2328
</v-col>
2429
</v-footer>
2530
</v-app>
@@ -29,6 +34,7 @@
2934
import { Component, Vue } from "vue-property-decorator";
3035
import gql from "graphql-tag";
3136
import NavList from "@/components/NavList.vue";
37+
import constValue from "./constValue";
3238
3339
@Component({
3440
components: {
@@ -37,8 +43,10 @@ import NavList from "@/components/NavList.vue";
3743
})
3844
export default class App extends Vue {
3945
private drawer: boolean | null = null;
46+
private title = constValue.navTitle;
4047
4148
mounted() {
49+
document.title = this.title;
4250
let userId = sessionStorage.getItem("user_id") || null;
4351
let role = sessionStorage.getItem("role") || null;
4452
if (!userId || !role) {

app/src/constValue.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ const constValue = {
33
roleType: ["member", "admin"],
44
stateType: ["normal", "disabled"],
55
flagType: ["Single", "Multiple", "Regexp", "Dynamic"],
6-
eventType: ["Stop", "Start"]
6+
eventType: ["Stop", "Start"],
7+
navTitle: "Tp0t OJ"
78
};
89

910
export default constValue;

0 commit comments

Comments
 (0)