Add config support (#76)
Co-authored-by: AceDataCloud <office@acedata.cloud> Co-authored-by: GitHub Actions <actions@github.com>
This commit is contained in:
99 files changed
+2882
-2015
No files matched your search
@@ -0,0 +1,73 @@
|
||||
<template>
|
||||
<el-dialog :model-value="visible" :width="200" class="text-center" @close="$emit('close')">
|
||||
<el-menu :collapse="false" class="menu">
|
||||
<el-menu-item v-if="site?.features?.support?.discord?.enabled" 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 :width="350" trigger="hover">
|
||||
<template #reference>
|
||||
<el-menu-item v-if="site?.features?.support?.wechat?.enabled" 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="site?.features?.support?.wechat?.qr" />
|
||||
</div>
|
||||
</div>
|
||||
</el-popover>
|
||||
</el-menu>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElPopover, ElMenu, ElMenuItem, ElImage, ElDialog } from 'element-plus';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { ROUTE_DISTRIBUTION_INDEX } from '@/router';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'HelpEntry',
|
||||
components: {
|
||||
ElImage,
|
||||
ElDialog,
|
||||
ElPopover,
|
||||
ElMenu,
|
||||
ElMenuItem,
|
||||
FontAwesomeIcon
|
||||
},
|
||||
props: {
|
||||
visible: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
emits: ['close'],
|
||||
computed: {
|
||||
site() {
|
||||
return this.$store.state.site;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onJoin() {
|
||||
window.open(this.$store.state.site?.features?.support?.discord?.url, '_blank');
|
||||
},
|
||||
onProfit() {
|
||||
this.$router.push({
|
||||
name: ROUTE_DISTRIBUTION_INDEX
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.menu {
|
||||
border-right: none;
|
||||
.el-menu-item {
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,49 +1,40 @@
|
||||
<template>
|
||||
<div>
|
||||
<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 :width="350" 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>
|
||||
<el-popover
|
||||
placement="bottom"
|
||||
:width="200"
|
||||
trigger="hover"
|
||||
:popper-style="{
|
||||
padding: '10px'
|
||||
}"
|
||||
>
|
||||
<template #reference>
|
||||
<slot name="main" />
|
||||
</template>
|
||||
<el-menu :collapse="false" class="menu">
|
||||
<el-popover :width="350" trigger="hover">
|
||||
<template #reference>
|
||||
<el-menu-item v-if="site?.features?.support?.wechat?.enabled" index="1">
|
||||
<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="site?.features?.support?.wechat?.qr" />
|
||||
</div>
|
||||
</el-popover>
|
||||
</el-menu>
|
||||
</el-popover>
|
||||
</div>
|
||||
</div>
|
||||
</el-popover>
|
||||
<el-menu-item v-if="site?.features?.support?.discord?.enabled" index="2" @click="onJoin">
|
||||
<font-awesome-icon icon="fa-brands fa-discord" class="mr-2" />
|
||||
<template #title>{{ $t('common.message.joinDiscord') }}</template>
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
</el-popover>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElButton, ElPopover, ElMenu, ElMenuItem, ElImage } from 'element-plus';
|
||||
import { ElPopover, ElMenu, ElMenuItem, ElImage } from 'element-plus';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { ROUTE_DISTRIBUTION_INDEX } from '@/router';
|
||||
|
||||
@@ -51,15 +42,19 @@ export default defineComponent({
|
||||
name: 'HelpEntry',
|
||||
components: {
|
||||
ElImage,
|
||||
ElButton,
|
||||
ElPopover,
|
||||
ElMenu,
|
||||
ElMenuItem,
|
||||
FontAwesomeIcon
|
||||
},
|
||||
computed: {
|
||||
site() {
|
||||
return this.$store.state.site;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onJoin() {
|
||||
window.open('https://discord.gg/73F3MYj3vp', '_blank');
|
||||
window.open(this.$store.state.site?.features?.support?.discord?.url, '_blank');
|
||||
},
|
||||
onProfit() {
|
||||
this.$router.push({
|
||||
|
||||
@@ -25,6 +25,15 @@
|
||||
</div>
|
||||
<div class="middle" />
|
||||
<div class="bottom">
|
||||
<div class="link">
|
||||
<help-entry>
|
||||
<template #main>
|
||||
<el-button class="button">
|
||||
<font-awesome-icon icon="fa-solid fa-question" />
|
||||
</el-button>
|
||||
</template>
|
||||
</help-entry>
|
||||
</div>
|
||||
<div class="link">
|
||||
<el-tooltip effect="dark" :content="$t('common.nav.darkMode')" placement="right">
|
||||
<el-button class="button" @click="operating.dark = true">
|
||||
@@ -103,11 +112,13 @@ import {
|
||||
ROUTE_SITE_INDEX
|
||||
} from '@/router/constants';
|
||||
import LogoTiny from './LogoTiny.vue';
|
||||
import HelpEntry from '@/components/common/HelpEntry.vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Navigator',
|
||||
components: {
|
||||
ElButton,
|
||||
HelpEntry,
|
||||
LogoTiny,
|
||||
DarkSelector,
|
||||
ElTooltip,
|
||||
|
||||
Reference in new issue
Block a user