feat: 关于页面更新

This commit is contained in:
wangdan-fit2cloud 2024-03-21 15:52:10 +08:00
parent b9532782dd
commit cff0b8c278
4 changed files with 116 additions and 8 deletions

View File

@ -577,5 +577,68 @@ export const iconMap: any = {
)
])
}
},
'app-reading': {
iconReader: () => {
return h('i', [
h(
'svg',
{
style: { height: '100%', width: '100%' },
viewBox: '0 0 1024 1024',
version: '1.1',
xmlns: 'http://www.w3.org/2000/svg'
},
[
h('path', {
d: 'M401.066667 378.88H175.786667c-8.533333 0-13.653333 6.826667-13.653334 13.653333 0 8.533333 6.826667 13.653333 13.653334 13.653334h225.28c8.533333 0 13.653333-6.826667 13.653333-13.653334s-5.12-13.653333-13.653333-13.653333z m0 110.933333H175.786667c-8.533333 0-13.653333 6.826667-13.653334 13.653334 0 8.533333 6.826667 13.653333 13.653334 13.653333h225.28c8.533333 0 13.653333-6.826667 13.653333-13.653333s-5.12-13.653333-13.653333-13.653334z m0 109.226667H175.786667c-8.533333 0-13.653333 6.826667-13.653334 13.653333 0 8.533333 6.826667 13.653333 13.653334 13.653334h225.28c8.533333 0 13.653333-6.826667 13.653333-13.653334s-5.12-13.653333-13.653333-13.653333zM612.693333 392.533333c0 8.533333 6.826667 13.653333 13.653334 13.653334h225.28c8.533333 0 13.653333-6.826667 13.653333-13.653334 0-8.533333-6.826667-13.653333-13.653333-13.653333H626.346667c-6.826667 0-13.653333 6.826667-13.653334 13.653333z m237.226667 97.28H626.346667c-8.533333 0-13.653333 6.826667-13.653334 13.653334 0 8.533333 6.826667 13.653333 13.653334 13.653333h225.28c8.533333 0 13.653333-6.826667 13.653333-13.653333 0-8.533333-6.826667-13.653333-15.36-13.653334z m0 109.226667H626.346667c-8.533333 0-13.653333 6.826667-13.653334 13.653333 0 8.533333 6.826667 13.653333 13.653334 13.653334h225.28c8.533333 0 13.653333-6.826667 13.653333-13.653334s-6.826667-13.653333-15.36-13.653333zM737.28 153.6c-81.92 0-174.08 13.653333-223.573333 46.08-47.786667-32.426667-139.946667-46.08-221.866667-46.08C172.373333 153.6 34.133333 180.906667 34.133333 252.586667v581.973333c0 10.24 5.12 18.773333 11.946667 25.6 8.533333 6.826667 17.066667 10.24 27.306667 8.533333 66.56-11.946667 139.946667-17.066667 216.746666-17.066666s151.893333 6.826667 216.746667 17.066666h11.946667c66.56-11.946667 139.946667-17.066667 216.746666-17.066666s151.893333 6.826667 216.746667 17.066666h6.826667c8.533333 0 15.36-3.413333 20.48-8.533333 8.533333-6.826667 11.946667-15.36 11.946666-25.6V252.586667c1.706667-71.68-136.533333-98.986667-254.293333-98.986667zM102.4 797.013333V256c13.653333-13.653333 80.213333-35.84 189.44-35.84 109.226667 0 175.786667 22.186667 189.44 35.84v539.306667c-59.733333-8.533333-124.586667-13.653333-189.44-13.653334-66.56 1.706667-131.413333 6.826667-189.44 15.36z m824.32 0c-117.76-15.36-261.12-15.36-380.586667 0V256c13.653333-13.653333 80.213333-35.84 189.44-35.84 109.226667 0 175.786667 22.186667 189.44 35.84l1.706667 541.013333z',
fill: 'currentColor'
})
]
)
])
}
},
'app-github': {
iconReader: () => {
return h('i', [
h(
'svg',
{
style: { height: '100%', width: '100%' },
viewBox: '0 0 1024 1024',
version: '1.1',
xmlns: 'http://www.w3.org/2000/svg'
},
[
h('path', {
d: 'M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9 23.5 23.2 38.1 55.4 38.1 91v112.5c0.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z',
fill: 'currentColor'
})
]
)
])
}
},
'app-help': {
iconReader: () => {
return h('i', [
h(
'svg',
{
style: { height: '100%', width: '100%' },
viewBox: '0 0 1024 1024',
version: '1.1',
xmlns: 'http://www.w3.org/2000/svg'
},
[
h('path', {
d: 'M615.312 720H832V192H192v528h216.688a64 64 0 0 1 49.168 23.04l41.856 50.208a16 16 0 0 0 24.576 0l41.856-50.224A64 64 0 0 1 615.312 720z m19.088 64l-88.544 88.128a48 48 0 0 1-67.712 0L389.6 784H192a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h640a64 64 0 0 1 64 64v528a64 64 0 0 1-64 64H634.4z m-124.32-528c34.384 0 62.048 9.392 82.96 28.192 21.28 18.432 31.92 43.792 31.92 76.064 0 25.888-6.736 47.52-20.208 64.896-4.608 5.68-19.52 19.504-44.688 41.488-9.92 8.16-17.376 17.376-22.336 27.664-5.68 10.288-8.512 21.984-8.512 35.104v9.04h-56.912v-9.04c0-20.576 3.536-37.408 10.64-50.528 6.72-14.192 26.768-36.176 60.096-65.968l9.04-10.096c9.936-12.768 14.896-25.712 14.896-38.832 0-18.08-5.136-32.64-15.424-43.616-10.64-10.64-25.712-15.968-45.216-15.968-24.112 0-41.488 7.632-52.128 22.88-9.568 12.768-14.352 30.848-14.352 54.24H384c0-38.64 11.168-69.136 33.504-91.472C439.856 267.344 470.72 256 510.08 256z m-9.6 311.168c11.712 0 21.12 3.552 28.208 10.64 7.44 6.736 11.168 15.792 11.168 27.136 0 10.64-3.904 19.84-11.712 27.648a39.76 39.76 0 0 1-27.648 10.64c-10.992 0-20.224-3.712-27.68-11.168a36.928 36.928 0 0 1-11.152-27.12c0-11.36 3.712-20.4 11.168-27.136 7.088-7.088 16.32-10.64 27.664-10.64z',
fill: 'currentColor'
})
]
)
])
}
}
}

View File

@ -8,7 +8,32 @@
</div>
</div>
</template>
<ul class="about-ui">
<div class="about-ui">
<el-card
shadow="hover"
class="mb-16"
@click="toUrl('https://github.com/1Panel-dev/MaxKB/wiki')"
>
<div class="flex align-center cursor">
<AppIcon iconName="app-reading" class="mr-16 ml-8" style="font-size: 24px"></AppIcon>
<span>用户手册</span>
</div>
</el-card>
<el-card shadow="hover" class="mb-16" @click="toUrl('https://github.com/1Panel-dev/MaxKB')">
<div class="flex align-center cursor">
<AppIcon iconName="app-github" class="mr-16 ml-8" style="font-size: 24px"></AppIcon>
<span>项目地址</span>
</div>
</el-card>
<el-card shadow="hover" class="mb-16" @click="toUrl('https://bbs.fit2cloud.com/c/mk/11')">
<div class="flex align-center cursor">
<AppIcon iconName="app-help" class="mr-16 ml-8" style="font-size: 24px"></AppIcon>
<span>论坛求助</span>
</div>
</el-card>
<div class="text-center">当前版本号{{ PackageJSON.version }}</div>
</div>
<!-- <ul class="about-ui">
<li class="flex mb-16">
<span class="label text-right">授权数量</span><span class="text-center">-</span>
</li>
@ -22,19 +47,24 @@
<span class="label text-right">版本号</span
><span class="text-center">{{ PackageJSON.version }}</span>
</li>
</ul>
</ul> -->
</el-dialog>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import PackageJSON from '../../../../../package.json'
const defaultTitle = import.meta.env.VITE_APP_TITLE
const aboutDialogVisible = ref(false)
const open = () => {
aboutDialogVisible.value = true
}
function toUrl(url: string) {
window.open(url, '_blank')
}
defineExpose({ open })
</script>
<style lang="scss" scope>

View File

@ -126,10 +126,9 @@
<div>
<el-popover :visible="popoverVisible" :width="214" trigger="click">
<template #reference>
<el-button type="primary" link @click="datasetSettingChange('open')"
><AppIcon iconName="app-operation" class="mr-4"></AppIcon
>参数设置</el-button
>
<el-button type="primary" link @click="datasetSettingChange('open')">
<AppIcon iconName="app-operation" class="mr-4"></AppIcon>参数设置
</el-button>
</template>
<div class="dataset_setting">
<div class="form-item mb-16">

View File

@ -2,7 +2,7 @@
<p class="bold title p-24" style="padding-bottom: 0">
<span class="flex align-center">
<span>关联问题</span>
<el-divider direction="vertical" class="mr-4"/>
<el-divider direction="vertical" class="mr-4" />
<el-button text @click="addProblem">
<el-icon><Plus /></el-icon>
</el-button>
@ -20,7 +20,23 @@
class="mb-8"
autofocus
/>
<!-- <el-select
v-if="isAddProblem"
v-model="problemValue"
filterable
allow-create
default-first-option
:reserve-keyword="false"
placeholder="请选择问题"
style="width: 240px"
>
<el-option
v-for="item in problemList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select> -->
<template v-for="(item, index) in problemList" :key="index">
<TagEllipsis
@close="delProblemHandle(item, index)"