feat(sj_1.0.0): 关于页面优化

This commit is contained in:
opensnail 2024-05-13 23:16:41 +08:00
parent 7d91233c80
commit 17385bc241
6 changed files with 107 additions and 26 deletions

View File

@ -1,18 +1,20 @@
{
"name": "snail-job",
"type": "module",
"version": "1.1.0",
"version": "1.0.0",
"description": "A flexible, reliable, and fast platform for distributed task retry and distributed task scheduling.",
"license": "Apache-2.0",
"homepage": "https://gitee.com/aizuda/snail-job",
"repository": {
"url": "https://gitee.com/aizuda/snail-job.git"
"githubUrl": "https://github.com/aizuda/snail-job.git",
"giteeUrl": "https://gitee.com/aizuda/snail-job.git"
},
"bugs": {
"url": "https://gitee.com/aizuda/snail-job/issues"
},
"keywords": [
"Job",
"Retry",
"Snail Job",
"Vue3 admin ",
"vue-admin-template",
@ -109,5 +111,5 @@
"lint-staged": {
"*": "eslint --fix"
},
"website": "https://www.easyretry.com"
"website": "https://www.easyretry.com/pages/78ba75/"
}

View File

@ -377,7 +377,10 @@ const local: App.I18n.Schema = {
version: 'Version',
latestBuildTime: 'Latest Build Time',
githubLink: 'Github Link',
previewLink: 'Preview Link'
giteeLink: 'Gitee Link',
officialWebsite: 'Home Page',
previewLink: 'Preview Link',
videoTutorial: 'Video Tutorial'
},
prdDep: 'Production Dependency',
devDep: 'Development Dependency'

View File

@ -371,13 +371,28 @@ const local: App.I18n.Schema = {
},
about: {
title: '关于',
introduction: `SoybeanAdmin 是一个优雅且功能强大的后台管理模板,基于最新的前端技术栈,包括 Vue3, Vite5, TypeScript, Pinia 和 UnoCSS。它内置了丰富的主题配置和组件代码规范严谨实现了自动化的文件路由系统。此外它还采用了基于 ApiFox 的在线Mock数据方案。SoybeanAdmin 为您提供了一站式的后台管理解决方案,无需额外配置,开箱即用。同样是一个快速学习前沿技术的最佳实践。`,
introduction: `<span style="font-weight: bold; color: #1366ff">Snail Job</span>
<br />
<br />
<br />
<span style="font-weight: bold; color: #1366ff"></span> <br />
便退
<br />
<span style="font-weight: bold; color: #1366ff"></span> <br />
广`,
projectInfo: {
title: '项目信息',
version: '版本',
latestBuildTime: '最新构建时间',
githubLink: 'Github 地址',
previewLink: '预览地址'
previewLink: '预览地址',
giteeLink: 'Gitee 地址',
officialWebsite: '官网',
videoTutorial: '视频教程'
},
prdDep: '生产依赖',
devDep: '开发依赖'

View File

@ -529,6 +529,9 @@ declare namespace App {
latestBuildTime: string;
githubLink: string;
previewLink: string;
giteeLink: string;
officialWebsite: string;
videoTutorial: string;
};
prdDep: string;
devDep: string;

View File

@ -43,42 +43,93 @@ const latestBuildTime = BUILD_TIME;
<template>
<NSpace vertical :size="16">
<NCard :title="$t('page.about.title')" :bordered="false" size="small" segmented class="card-wrapper">
<p>{{ $t('page.about.introduction') }}</p>
<p v-html="$t('page.about.introduction')" />
</NCard>
<NCard :title="$t('page.about.projectInfo.title')" :bordered="false" size="small" segmented class="card-wrapper">
<NDescriptions label-placement="left" bordered size="small" :column="column">
<NDescriptionsItem :label="$t('page.about.projectInfo.officialWebsite')">
<a class="text-primary" :href="pkg.website" target="_blank" rel="noopener noreferrer">
{{ $t('page.about.projectInfo.officialWebsite') }}
</a>
</NDescriptionsItem>
<NDescriptionsItem :label="$t('page.about.projectInfo.version')">
<NTag type="primary">{{ pkgJson.version }}</NTag>
</NDescriptionsItem>
<NDescriptionsItem :label="$t('page.about.projectInfo.latestBuildTime')">
<NTag type="primary">{{ latestBuildTime }}</NTag>
</NDescriptionsItem>
<NDescriptionsItem :label="$t('page.about.projectInfo.githubLink')">
<a class="text-primary" :href="pkg.homepage" target="_blank" rel="noopener noreferrer">
<a class="text-primary" :href="pkg.repository.githubUrl" target="_blank" rel="noopener noreferrer">
{{ $t('page.about.projectInfo.githubLink') }}
</a>
</NDescriptionsItem>
<NDescriptionsItem :label="$t('page.about.projectInfo.giteeLink')">
<a class="text-primary" :href="pkg.repository.giteeUrl" target="_blank" rel="noopener noreferrer">
{{ $t('page.about.projectInfo.giteeLink') }}
</a>
</NDescriptionsItem>
<NDescriptionsItem :label="$t('page.about.projectInfo.previewLink')">
<a class="text-primary" :href="pkg.website" target="_blank" rel="noopener noreferrer">
{{ $t('page.about.projectInfo.previewLink') }}
</a>
</NDescriptionsItem>
</NDescriptions>
</NCard>
<NCard :title="$t('page.about.prdDep')" :bordered="false" size="small" segmented class="card-wrapper">
<NDescriptions label-placement="left" bordered size="small" :column="column">
<NDescriptionsItem v-for="item in pkgJson.dependencies" :key="item.name" :label="item.name">
{{ item.version }}
</NDescriptionsItem>
</NDescriptions>
</NCard>
<NCard :title="$t('page.about.devDep')" :bordered="false" size="small" segmented class="card-wrapper">
<NDescriptions label-placement="left" bordered size="small" :column="column">
<NDescriptionsItem v-for="item in pkgJson.devDependencies" :key="item.name" :label="item.name">
{{ item.version }}
<NDescriptionsItem :label="$t('page.about.projectInfo.latestBuildTime')">
<NTag type="primary">{{ latestBuildTime }}</NTag>
</NDescriptionsItem>
</NDescriptions>
</NCard>
<!-- <NCard-->
<!-- :title="$t('page.about.projectInfo.videoTutorial')"-->
<!-- :bordered="false"-->
<!-- size="small"-->
<!-- segmented-->
<!-- class="card-wrapper"-->
<!-- >-->
<!-- <NCarousel :slides-per-view="3" :space-between="20" show-arrow :mousewheel="true">-->
<!-- <iframe-->
<!-- src="//player.bilibili.com/player.html?bvid=BV1Yu4y1k7WU&page=1"-->
<!-- scrolling="no"-->
<!-- border="0"-->
<!-- width="100%"-->
<!-- height="298px"-->
<!-- autoplay="no"-->
<!-- frameborder="no"-->
<!-- framespacing="0"-->
<!-- allowfullscreen="false"-->
<!-- ></iframe>-->
<!-- <iframe-->
<!-- src="//player.bilibili.com/player.html?bvid=BV1Lu4y1C74h&page=1"-->
<!-- scrolling="no"-->
<!-- border="0"-->
<!-- width="100%"-->
<!-- height="298px"-->
<!-- frameborder="no"-->
<!-- framespacing="0"-->
<!-- autoplay="no"-->
<!-- allowfullscreen="false"-->
<!-- ></iframe>-->
<!-- <iframe-->
<!-- src="//player.bilibili.com/player.html?bvid=BV1Km4y1N7s9&page=1"-->
<!-- scrolling="no"-->
<!-- border="0"-->
<!-- width="100%"-->
<!-- height="298px"-->
<!-- autoplay="no"-->
<!-- frameborder="no"-->
<!-- framespacing="0"-->
<!-- allowfullscreen="true"-->
<!-- ></iframe>-->
<!-- <iframe-->
<!-- src="//player.bilibili.com/player.html?bvid=BV1xk4y1F7tD&page=1"-->
<!-- scrolling="no"-->
<!-- border="0"-->
<!-- width="100%"-->
<!-- height="298px"-->
<!-- frameborder="no"-->
<!-- framespacing="0"-->
<!-- allowfullscreen="true"-->
<!-- ></iframe>-->
<!-- </NCarousel>-->
<!-- <p></p>-->
<!-- <p></p>-->
<!-- </NCard>-->
</NSpace>
</template>

View File

@ -76,8 +76,15 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP
return null;
}
const label = $t(taskBatchStatusRecord[row.taskBatchStatus!]);
return <NTag type={tagColor(row.taskBatchStatus!)}>{label}</NTag>;
const tagMap: Record<number, NaiveUI.ThemeColor> = {
1: 'info',
2: 'info',
3: 'info',
4: 'error',
5: 'error',
6: 'error'
};
return <NTag type={tagMap[row.taskBatchStatus!]}>{label}</NTag>;
}
},
{