Browse Source

chore: 修改镜像文件目录结构

pull/48/head
cp3hnu 1 year ago
parent
commit
cd8840960c
7 changed files with 7 additions and 7 deletions
  1. +3
    -3
      react-ui/config/routes.ts
  2. +0
    -0
      react-ui/src/pages/Mirror/Create/index.less
  3. +1
    -1
      react-ui/src/pages/Mirror/Create/index.tsx
  4. +0
    -0
      react-ui/src/pages/Mirror/Info/index.less
  5. +2
    -2
      react-ui/src/pages/Mirror/Info/index.tsx
  6. +0
    -0
      react-ui/src/pages/Mirror/List/index.less
  7. +1
    -1
      react-ui/src/pages/Mirror/List/index.tsx

+ 3
- 3
react-ui/config/routes.ts View File

@@ -170,17 +170,17 @@ export default [
{ {
name: '镜像列表', name: '镜像列表',
path: '', path: '',
component: './Mirror/list',
component: './Mirror/List',
}, },
{ {
name: '镜像详情', name: '镜像详情',
path: ':id', path: ':id',
component: './Mirror/info',
component: './Mirror/Info',
}, },
{ {
name: '创建镜像', name: '创建镜像',
path: 'create', path: 'create',
component: './Mirror/create',
component: './Mirror/Create',
}, },
], ],
}, },


react-ui/src/pages/Mirror/create.less → react-ui/src/pages/Mirror/Create/index.less View File


react-ui/src/pages/Mirror/create.tsx → react-ui/src/pages/Mirror/Create/index.tsx View File

@@ -21,7 +21,7 @@ import { useNavigate } from '@umijs/max';
import { Button, Col, Form, Input, Row, Upload, UploadFile, message, type UploadProps } from 'antd'; import { Button, Col, Form, Input, Row, Upload, UploadFile, message, type UploadProps } from 'antd';
import { omit } from 'lodash'; import { omit } from 'lodash';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import styles from './create.less';
import styles from './index.less';


type FormData = { type FormData = {
name: string; name: string;

react-ui/src/pages/Mirror/info.less → react-ui/src/pages/Mirror/Info/index.less View File


react-ui/src/pages/Mirror/info.tsx → react-ui/src/pages/Mirror/Info/index.tsx View File

@@ -34,8 +34,8 @@ import {
} from 'antd'; } from 'antd';
import classNames from 'classnames'; import classNames from 'classnames';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import MirrorStatusCell from './components/MirrorStatusCell';
import styles from './info.less';
import MirrorStatusCell from '../components/MirrorStatusCell';
import styles from './index.less';


type MirrorInfoData = { type MirrorInfoData = {
name?: string; name?: string;

react-ui/src/pages/Mirror/list.less → react-ui/src/pages/Mirror/List/index.less View File


react-ui/src/pages/Mirror/list.tsx → react-ui/src/pages/Mirror/List/index.tsx View File

@@ -28,7 +28,7 @@ import {
import { type SearchProps } from 'antd/es/input'; import { type SearchProps } from 'antd/es/input';
import classNames from 'classnames'; import classNames from 'classnames';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import styles from './list.less';
import styles from './index.less';


const mirrorTabItems = [ const mirrorTabItems = [
{ {

Loading…
Cancel
Save