mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-18 11:27:35 +08:00
新增支持站点查看功能
This commit is contained in:
@@ -1082,6 +1082,7 @@ export default {
|
||||
dataDir: 'Data Directory',
|
||||
timezone: 'Timezone',
|
||||
latest: 'Latest',
|
||||
supportingSites: 'Supporting Sites',
|
||||
support: 'Support',
|
||||
documentation: 'Documentation',
|
||||
feedback: 'Feedback',
|
||||
|
||||
@@ -1078,6 +1078,7 @@ export default {
|
||||
dataDir: '数据目录',
|
||||
timezone: '时区',
|
||||
latest: '最新',
|
||||
supportingSites: '支持站点',
|
||||
support: '支援',
|
||||
documentation: '文档',
|
||||
feedback: '问题反馈',
|
||||
|
||||
@@ -1078,6 +1078,7 @@ export default {
|
||||
timezone: '時區',
|
||||
latest: '最新',
|
||||
support: '支援',
|
||||
supportingSites: '支持站點',
|
||||
documentation: '文檔',
|
||||
feedback: '問題反饋',
|
||||
channel: '發布頻道',
|
||||
|
||||
@@ -55,7 +55,6 @@ const searchShares = () => {
|
||||
// VMenu activator选择器
|
||||
const filterActivator = computed(() => '[data-menu-activator="filter-btn"]')
|
||||
const searchActivator = computed(() => '[data-menu-activator="search-btn"]')
|
||||
const statisticsActivator = computed(() => '[data-menu-activator="statistics-btn"]')
|
||||
|
||||
// 使用动态标签页
|
||||
const { registerHeaderTab } = useDynamicHeaderTab()
|
||||
|
||||
@@ -12,6 +12,9 @@ const systemEnv = ref<any>({})
|
||||
// 所有Release
|
||||
const allRelease = ref<any>([])
|
||||
|
||||
// 支持站点
|
||||
const supportingSites = ref<any>({})
|
||||
|
||||
// 变更日志对话框
|
||||
const releaseDialog = ref(false)
|
||||
|
||||
@@ -56,6 +59,15 @@ async function queryAllRelease() {
|
||||
}
|
||||
}
|
||||
|
||||
// 查询支持站点
|
||||
async function querySupportingSites() {
|
||||
try {
|
||||
supportingSites.value = await api.get('site/supporting')
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
}
|
||||
|
||||
// 计算发布时间
|
||||
function releaseTime(releaseDate: string) {
|
||||
// 上一次更新时间
|
||||
@@ -65,6 +77,7 @@ function releaseTime(releaseDate: string) {
|
||||
onMounted(() => {
|
||||
querySystemEnv()
|
||||
queryAllRelease()
|
||||
querySupportingSites()
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -156,6 +169,28 @@ onMounted(() => {
|
||||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="max-w-6xl py-4 sm:grid sm:grid-cols-3 sm:gap-4">
|
||||
<dt class="block text-sm font-bold">{{ t('setting.about.supportingSites') }}</dt>
|
||||
<dd class="flex text-sm sm:col-span-2 sm:mt-0">
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<VChip
|
||||
v-for="(site, domain) in supportingSites"
|
||||
:key="domain"
|
||||
variant="outlined"
|
||||
size="small"
|
||||
:title="`${site.name} - ${site.url}`"
|
||||
:href="site.url"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<span class="truncate max-w-32">{{ site.name }}</span>
|
||||
<VIcon icon="mdi-open-in-new" size="12" class="ml-1 flex-shrink-0" />
|
||||
</VChip>
|
||||
</div>
|
||||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user