初步代替几个bat脚本的功能

This commit is contained in:
zhbaor 2024-09-23 16:12:34 +08:00
commit d0fbc89012
19 changed files with 4002 additions and 0 deletions

26
ui/src/pages/Init.vue Normal file
View file

@ -0,0 +1,26 @@
<script setup>
const steps = ref([
{ title: '设置Git LFS', command: ['git/bin/git lfs install'] },
{ title: '安装pip', command: ['../python/python -m ensurepip --default-pip'] },
{
title: '下载代码',
command: ['git/bin/git clone https://git-cf.zhaozuohong.vip/mower-ng/mower-ng.git --branch slow']
}
])
provide('steps', steps)
const current_step = ref(1)
provide('current_step', current_step)
const current_state = ref('wait')
provide('current_state', current_state)
</script>
<template>
<n-flex vertical style="gap: 16px; height: 100%; padding: 16px; box-sizing: border-box">
<n-alert title="以下步骤仅需运行一次" type="warning" />
<n-steps :current="current_step" :status="current_state" size="small">
<n-step v-for="step in steps" :title="step.title" />
</n-steps>
<log-component />
</n-flex>
<float-button />
</template>