diff --git a/src/asset/image/ArchLinux.svg b/src/asset/image/ArchLinux.svg
deleted file mode 100644
index 9d62fa46..00000000
--- a/src/asset/image/ArchLinux.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/asset/image/TmpFileImage.png b/src/asset/image/TmpFileImage.png
deleted file mode 100644
index ae918c9e..00000000
Binary files a/src/asset/image/TmpFileImage.png and /dev/null differ
diff --git a/src/asset/image/adminImage.svg b/src/asset/image/admin-image.svg
similarity index 100%
rename from src/asset/image/adminImage.svg
rename to src/asset/image/admin-image.svg
diff --git a/src/asset/image/adminInstance.svg b/src/asset/image/admin-instance.svg
similarity index 100%
rename from src/asset/image/adminInstance.svg
rename to src/asset/image/admin-instance.svg
diff --git a/src/asset/image/adminNetwork.svg b/src/asset/image/admin-network.svg
similarity index 100%
rename from src/asset/image/adminNetwork.svg
rename to src/asset/image/admin-network.svg
diff --git a/src/asset/image/adminRouter.svg b/src/asset/image/admin-router.svg
similarity index 100%
rename from src/asset/image/adminRouter.svg
rename to src/asset/image/admin-router.svg
diff --git a/src/asset/image/adminSecurityGroup.svg b/src/asset/image/admin-security-group.svg
similarity index 100%
rename from src/asset/image/adminSecurityGroup.svg
rename to src/asset/image/admin-security-group.svg
diff --git a/src/asset/image/adminVolume.svg b/src/asset/image/admin-volume.svg
similarity index 100%
rename from src/asset/image/adminVolume.svg
rename to src/asset/image/admin-volume.svg
diff --git a/src/asset/image/critical-alert.svg b/src/asset/image/critical-alert.svg
deleted file mode 100644
index 4451ad83..00000000
--- a/src/asset/image/critical-alert.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/asset/image/loadBalancer.png b/src/asset/image/load-balancer.png
similarity index 100%
rename from src/asset/image/loadBalancer.png
rename to src/asset/image/load-balancer.png
diff --git a/src/asset/image/loginFull.png b/src/asset/image/login-full.png
similarity index 100%
rename from src/asset/image/loginFull.png
rename to src/asset/image/login-full.png
diff --git a/src/asset/image/login.png b/src/asset/image/login.png
deleted file mode 100644
index c149a600..00000000
Binary files a/src/asset/image/login.png and /dev/null differ
diff --git a/src/asset/image/major-alert.svg b/src/asset/image/major-alert.svg
deleted file mode 100644
index 5d509f7d..00000000
--- a/src/asset/image/major-alert.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/asset/image/minor-alert.svg b/src/asset/image/minor-alert.svg
deleted file mode 100644
index 69dd6a7b..00000000
--- a/src/asset/image/minor-alert.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/asset/image/volume-container.svg b/src/asset/image/volume-container.svg
deleted file mode 100755
index 18ff8d30..00000000
--- a/src/asset/image/volume-container.svg
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
\ No newline at end of file
diff --git a/src/components/Cards/EmptyTable/index.jsx b/src/components/Cards/EmptyTable/index.jsx
deleted file mode 100644
index 6caaa1c4..00000000
--- a/src/components/Cards/EmptyTable/index.jsx
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2021 99cloud
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-import React from 'react';
-import PropTypes from 'prop-types';
-import classnames from 'classnames';
-
-import { Row, Col, Button } from 'antd';
-
-import styles from './index.less';
-
-export default class EmptyList extends React.Component {
- static propTypes = {
- className: PropTypes.string,
- name: PropTypes.string,
- desc: PropTypes.string,
- createText: PropTypes.string,
- operations: PropTypes.oneOfType([PropTypes.node, PropTypes.element]),
- onCreate: PropTypes.func,
- };
-
- static defaultProps = {
- name: '',
- };
-
- render() {
- const { className, name, operations, onCreate, createText } = this.props;
- const desc =
- this.props.desc ||
- t(`${name.split(' ').join('_').toUpperCase()}_CREATE_DESC`);
-
- const btnText = createText || `${t('Create ')}${t(name)}`;
-
- return (
-
-
-
-
-
-
-
- {operations ||
- (onCreate && (
-
- ))}
-
-
-
- );
- }
-}
diff --git a/src/components/Cards/EmptyTable/index.less b/src/components/Cards/EmptyTable/index.less
deleted file mode 100644
index 0b30cd2b..00000000
--- a/src/components/Cards/EmptyTable/index.less
+++ /dev/null
@@ -1,18 +0,0 @@
-@import '~styles/variables';
-
-.wrapper {
- padding: 38px 72px;
- border-radius: @border-radius;
- background-color: #ffffff;
- box-shadow: @base-shadow;
-
- img {
- margin-right: 70px;
- }
-}
-
-.desc {
- max-width: 580px;
- margin-bottom: 20px;
- font-family: @font-family-id;
-}
\ No newline at end of file
diff --git a/src/components/Empty/index.jsx b/src/components/Empty/index.jsx
deleted file mode 100644
index abe4ca99..00000000
--- a/src/components/Empty/index.jsx
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2021 99cloud
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-import React from 'react';
-import PropTypes from 'prop-types';
-import classnames from 'classnames';
-
-import styles from './index.less';
-
-export default class Empty extends React.PureComponent {
- static propTypes = {
- className: PropTypes.string,
- img: PropTypes.string,
- desc: PropTypes.string,
- };
-
- static defaultProps = {
- img: '/asset/image/empty-card.svg',
- desc: 'No relevant data',
- };
-
- render() {
- const { className, img, desc } = this.props;
-
- return (
-
-
- {desc &&
{t(desc)}
}
-
- );
- }
-}
diff --git a/src/components/Empty/index.less b/src/components/Empty/index.less
deleted file mode 100644
index 55066f7a..00000000
--- a/src/components/Empty/index.less
+++ /dev/null
@@ -1,15 +0,0 @@
-@import '~styles/variables';
-
-.wrapper {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 100%;
- padding: 40px 0;
-}
-
-.content {
- margin-top: 30px;
-}
diff --git a/src/components/FormItem/Label/index.jsx b/src/components/FormItem/Label/index.jsx
index cedcd1c4..5e604858 100644
--- a/src/components/FormItem/Label/index.jsx
+++ b/src/components/FormItem/Label/index.jsx
@@ -14,7 +14,9 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
-import imageSvg from 'src/asset/image/image.svg';
+import imageSvg from 'asset/image/image.svg';
+import securityImg from 'asset/image/security-group.svg';
+import lbImg from 'asset/image/load-balancer.png';
import {
DesktopOutlined,
@@ -39,6 +41,12 @@ const ImageIcon = (
);
+const SecurityIcon = (
+
+);
+
+const LBIcon = ;
+
const iconTypeMap = {
instance: ,
router: ,
@@ -56,6 +64,8 @@ const iconTypeMap = {
metadata: ,
flavor: ,
host: ,
+ security: SecurityIcon,
+ lb: LBIcon,
};
export default class index extends Component {
diff --git a/src/components/ImageType/index.jsx b/src/components/ImageType/index.jsx
index 3174c3c5..da04c2cb 100644
--- a/src/components/ImageType/index.jsx
+++ b/src/components/ImageType/index.jsx
@@ -15,15 +15,15 @@
import React, { Component } from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
-import centosIcon from 'src/asset/image/centos.svg';
-import ubuntuIcon from 'src/asset/image/ubuntu.svg';
-import fedoraIcon from 'src/asset/image/fedora.svg';
-import windowsIcon from 'src/asset/image/windows.svg';
-import debianIcon from 'src/asset/image/debian.svg';
-import coreosIcon from 'src/asset/image/coreos.svg';
-import archIcon from 'src/asset/image/arch.svg';
-import freebsdIcon from 'src/asset/image/freebsd.svg';
-import othersIcon from 'src/asset/image/others.svg';
+import centosIcon from 'asset/image/centos.svg';
+import ubuntuIcon from 'asset/image/ubuntu.svg';
+import fedoraIcon from 'asset/image/fedora.svg';
+import windowsIcon from 'asset/image/windows.svg';
+import debianIcon from 'asset/image/debian.svg';
+import coreosIcon from 'asset/image/coreos.svg';
+import archIcon from 'asset/image/arch.svg';
+import freebsdIcon from 'asset/image/freebsd.svg';
+import othersIcon from 'asset/image/others.svg';
import { Tooltip } from 'antd';
import styles from './index.less';
diff --git a/src/components/NotFound/index.jsx b/src/components/NotFound/index.jsx
deleted file mode 100644
index 50a0f69a..00000000
--- a/src/components/NotFound/index.jsx
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2021 99cloud
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-import React from 'react';
-import styles from './index.less';
-
-export default class NotFound extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- time: 10,
- };
- }
-
- componentDidMount() {
- this.interval = setInterval(() => {
- this.setState(({ time }) => ({
- time: Math.max(time - 1, 0),
- }));
- }, 1100);
- }
-
- UNSAFE_componentWillUpdate(nextProps, nextState) {
- if (nextState.time === 0) {
- if (this.interval) {
- clearInterval(this.interval);
- }
-
- window.location.href = '/';
- }
- }
-
- componentWillUnmount() {
- if (this.interval) {
- clearInterval(this.interval);
- }
- }
-
- render() {
- return (
-