feat: update for proxy field app edit

This commit is contained in:
2025-03-11 11:26:19 +08:00
parent 4d231c3efc
commit d86473477d
4 changed files with 316 additions and 408 deletions

View File

@@ -1,7 +1,7 @@
import { useShallow } from 'zustand/react/shallow';
import { useUserAppStore } from '../store';
import { useEffect } from 'react';
import { Button, Form, Input, Space, Modal, Select, Tooltip } from 'antd';
import { Button, Form, Input, Space, Modal, Select, Tooltip, Switch } from 'antd';
import { CodeOutlined, DeleteOutlined, EditOutlined, LinkOutlined, PlusOutlined, UnorderedListOutlined } from '@ant-design/icons';
import { isObjectNull } from '@/utils/is-null';
import { useNewNavigate } from '@/modules';
@@ -72,6 +72,9 @@ const FormModal = () => {
<Form.Item name='description' label='description'>
<Input.TextArea rows={4} />
</Form.Item>
<Form.Item name='proxy' label='proxy' tooltip='静态网站设置如果是静态网站不需要重定向到index.html的页面。'>
<Switch />
</Form.Item>
<Form.Item name='status' label='status'>
<Select
options={[
@@ -130,7 +133,7 @@ export const List = () => {
</div>
<div className='grow'>
<div className='w-full h-full p-4'>
<div className='w-full h-full bg-white rounded-lg p-2'>
<div className='w-full h-full bg-white rounded-lg p-2 scrollbar '>
<div className='flex flex-wrap gap-2'>
{userAppStore.list.map((item) => {
const isRunning = item.status === 'running';