新增功能:添加zhaozuohong.vip镜像选项

This commit is contained in:
li-xiaochen 2025-03-08 11:28:22 +08:00
parent 501259b420
commit de2c2af2bd
9 changed files with 123 additions and 14 deletions

View file

@ -1,15 +1,17 @@
<script setup>
import { useConfigStore } from '@/stores/config.js'
import { form_item_label_style } from '@/styles/styles.js'
import BaseMirrorOption from '@/components/BaseMirrorOption.vue'
const conf = useConfigStore().config
const branch = ref(null)
const mirror = ref(null)
const running = inject('running')
const steps = computed(() => [
{
title: '更新源码',
command: ['fetch', 'switch', 'reset'],
command: ['set_remote', 'set_lfs', 'fetch', 'switch', 'reset'],
cwd: 'mower-ng'
},
{
@ -28,8 +30,9 @@ provide('current_state', current_state)
<template>
<n-flex vertical style="gap: 16px; height: 100%; padding: 16px; box-sizing: border-box">
<n-form label-placement="left" :show-feedback="false" label-width="auto" label-align="left">
<base-mirror-option />
<n-form-item label="mower-ng 代码分支" :label-style="form_item_label_style">
<n-radio-group v-model:value="conf.branch">
<n-radio-group v-model:value="conf.branch" :disabled="running">
<n-flex>
<n-radio value="fast">测试版</n-radio>
<n-radio value="slow">稳定版</n-radio>
@ -37,7 +40,7 @@ provide('current_state', current_state)
</n-radio-group>
</n-form-item>
<n-form-item label="PyPI 仓库镜像" :label-style="form_item_label_style">
<n-radio-group v-model:value="conf.mirror">
<n-radio-group v-model:value="conf.mirror" :disabled="running">
<n-flex>
<n-radio value="pypi">PyPI</n-radio>
<n-radio value="aliyun">阿里云镜像站</n-radio>