Skip to content

Commit

Permalink
Fix help entry content (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: AceDataCloud <office@acedata.cloud>
  • Loading branch information
Germey and AceDataCloud authored Jun 24, 2024
1 parent ae5a9e4 commit 9ad2410
Show file tree
Hide file tree
Showing 597 changed files with 20,011 additions and 20,902 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "update support info",
"packageName": "@acedatacloud/nexior",
"email": "office@acedata.cloud",
"dependentChangeType": "patch"
}
65 changes: 58 additions & 7 deletions src/components/common/HelpEntry.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,80 @@
<template>
<div>
<el-tooltip effect="dark" :content="$t('common.message.joinDiscord')" placement="top-start">
<el-button type="primary" circle size="large" @click="onJoin">
<font-awesome-icon icon="fa-brands fa-discord" />
</el-button>
</el-tooltip>
<el-popover
placement="bottom"
:width="200"
trigger="hover"
:popper-style="{
padding: '10px'
}"
>
<template #reference>
<el-button type="primary" circle size="large" class="entry">
<font-awesome-icon icon="fa-solid fa-question" />
</el-button>
</template>
<el-menu :collapse="false" class="menu">
<el-menu-item index="1" @click="onJoin">
<font-awesome-icon icon="fa-brands fa-discord" class="mr-2" />
<template #title>{{ $t('common.message.joinDiscord') }}</template>
</el-menu-item>
<el-popover placement="right" :width="420" trigger="hover">
<template #reference>
<el-menu-item index="2">
<font-awesome-icon icon="fa-brands fa-weixin" class="mr-2" />
<template #title>{{ $t('common.message.addWeChat') }}</template>
</el-menu-item>
</template>
<div class="flex">
<div class="flex-1 text-center">
<el-image src="https://cdn.acedata.cloud/wechat.png" />
<span>{{ $t('common.message.serviceTech') }}</span>
</div>
<div class="flex-1 text-center">
<el-image src="https://cdn.acedata.cloud/ue99mv.png" />
<span>{{ $t('common.message.businessCooperation') }}</span>
</div>
</div>
</el-popover>
</el-menu>
</el-popover>
</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { ElTooltip, ElButton } from 'element-plus';
import { ElButton, ElPopover, ElMenu, ElMenuItem, ElImage } from 'element-plus';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import { ROUTE_DISTRIBUTION_INDEX } from '@/router';
export default defineComponent({
name: 'HelpEntry',
components: {
ElTooltip,
ElImage,
ElButton,
ElPopover,
ElMenu,
ElMenuItem,
FontAwesomeIcon
},
methods: {
onJoin() {
window.open('https://discord.gg/73F3MYj3vp', '_blank');
},
onProfit() {
this.$router.push({
name: ROUTE_DISTRIBUTION_INDEX
});
}
}
});
</script>

<style lang="scss" scoped>
.menu {
border-right: none;
.el-menu-item {
height: 40px;
}
}
</style>
7 changes: 1 addition & 6 deletions src/components/console/SidePanel.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template>
<div class="side-panel">
<div class="pl-16 pr-16">
<logo @click="onHome" />
</div>
<div class="links">
<a
v-for="(link, linkIndex) in links"
Expand Down Expand Up @@ -37,7 +34,6 @@ import {
} from '@/router';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import { BASE_URL_HUB } from '@/constants';
import Logo from '../common/Logo.vue';
interface ILink {
key: string;
Expand All @@ -51,8 +47,7 @@ interface ILink {
export default defineComponent({
name: 'Navigator',
components: {
FontAwesomeIcon,
Logo
FontAwesomeIcon
},
computed: {
isOfficial() {
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Loading

0 comments on commit 9ad2410

Please sign in to comment.