Skip to content

Commit

Permalink
feat(frontend): github -> gitee
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengqc-nju committed Jan 14, 2024
1 parent 8292f70 commit d591541
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/packages/locale/src/en/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default {
},
Footer: {
About: "About",
Github: "Github",
Gitee: "Gitee",
ContactUs: "Contact Us",
UserAgreement: "User Agreement",
PrivacyPolicy: "Privacy Policy",
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/locale/src/zh-cn/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default {
},
Footer: {
About: "关于我们",
Github: "Github",
Gitee: "Gitee",
ContactUs: "联系我们",
UserAgreement: "用户协议",
PrivacyPolicy: "隐私政策",
Expand Down
2 changes: 2 additions & 0 deletions frontend/packages/main/src/assets/images/home/gitee.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 15 additions & 4 deletions frontend/packages/main/src/components/Home/MyFooter.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { computed } from "vue";
import { useI18n } from "vue-i18n";
import gitee from "@main/assets/images/home/gitee.svg?url";
const { t } = useI18n();
Expand All @@ -14,9 +15,9 @@ const links = computed(() => [
tooltips: "",
},
{
icon: "mdi-github",
name: t("Home.Footer.Github"),
path: "https://github.com/Learnware-LAMDA",
icon: gitee,
name: t("Home.Footer.Gitee"),
path: "https://gitee.com/beimingwu/beimingwu",
tooltips: "",
},
{
Expand Down Expand Up @@ -63,9 +64,19 @@ function buttonClick(func: (() => void) | undefined): void {
rounded="xl"
@click="buttonClick(link.click)"
>
<v-icon class="mr-1">
<v-icon
v-if="link.icon.startsWith('mdi-')"
class="mr-1"
>
{{ link.icon }}
</v-icon>
<v-img
v-else
:src="link.icon"
width="20"
height="20"
class="mr-1"
/>
{{ link.name }}
<v-tooltip
v-if="link.tooltips"
Expand Down

0 comments on commit d591541

Please sign in to comment.