From 6e326761e8d16a3ea0d3e7d69b0c5633262049f5 Mon Sep 17 00:00:00 2001 From: 13659257719 <819781841@qq.com> Date: Thu, 19 Oct 2023 19:34:44 +0800 Subject: [PATCH] =?UTF-8?q?[inula-dev-tools]=20=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=20svgs=20=E5=90=88=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/inula-dev-tools/src/svgs/Arrow.tsx | 33 ++++++++++++++++ packages/inula-dev-tools/src/svgs/Close.tsx | 22 +++++++++++ packages/inula-dev-tools/src/svgs/Debug.tsx | 27 +++++++++++++ .../inula-dev-tools/src/svgs/Discover.tsx | 26 +++++++++++++ packages/inula-dev-tools/src/svgs/Eye.tsx | 26 +++++++++++++ .../inula-dev-tools/src/svgs/Location.tsx | 24 ++++++++++++ .../inula-dev-tools/src/svgs/Operation.tsx | 22 +++++++++++ packages/inula-dev-tools/src/svgs/Select.tsx | 39 +++++++++++++++++++ .../inula-dev-tools/src/svgs/Triangle.tsx | 32 +++++++++++++++ packages/inula-dev-tools/src/svgs/copy.svg | 20 ++++++++++ packages/inula-dev-tools/src/svgs/storage.svg | 19 +++++++++ 11 files changed, 290 insertions(+) create mode 100644 packages/inula-dev-tools/src/svgs/Arrow.tsx create mode 100644 packages/inula-dev-tools/src/svgs/Close.tsx create mode 100644 packages/inula-dev-tools/src/svgs/Debug.tsx create mode 100644 packages/inula-dev-tools/src/svgs/Discover.tsx create mode 100644 packages/inula-dev-tools/src/svgs/Eye.tsx create mode 100644 packages/inula-dev-tools/src/svgs/Location.tsx create mode 100644 packages/inula-dev-tools/src/svgs/Operation.tsx create mode 100644 packages/inula-dev-tools/src/svgs/Select.tsx create mode 100644 packages/inula-dev-tools/src/svgs/Triangle.tsx create mode 100644 packages/inula-dev-tools/src/svgs/copy.svg create mode 100644 packages/inula-dev-tools/src/svgs/storage.svg diff --git a/packages/inula-dev-tools/src/svgs/Arrow.tsx b/packages/inula-dev-tools/src/svgs/Arrow.tsx new file mode 100644 index 00000000..0e6dd813 --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/Arrow.tsx @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + +interface IArrow { + direction: 'up' | 'down' +} + +export default function Arrow({ direction: director }: IArrow) { + let d = ''; + if (director === 'up') { + d = 'M4 9.5 L5 10.5 L8 7.5 L11 10.5 L12 9.5 L8 5.5 z'; + } else if (director === 'down') { + d = 'M5 5.5 L4 6.5 L8 10.5 L12 6.5 L11 5.5 L8 8.5z'; + } + + return ( + + + + ); +} diff --git a/packages/inula-dev-tools/src/svgs/Close.tsx b/packages/inula-dev-tools/src/svgs/Close.tsx new file mode 100644 index 00000000..4d8cfd81 --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/Close.tsx @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + +export default function Close() { + return ( + + + + ); +} diff --git a/packages/inula-dev-tools/src/svgs/Debug.tsx b/packages/inula-dev-tools/src/svgs/Debug.tsx new file mode 100644 index 00000000..f50f8ddb --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/Debug.tsx @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + +export default function Debug() { + return ( + + + + + ); +} diff --git a/packages/inula-dev-tools/src/svgs/Discover.tsx b/packages/inula-dev-tools/src/svgs/Discover.tsx new file mode 100644 index 00000000..defd1702 --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/Discover.tsx @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + +export default function Discover() { + return ( + + + + + ); +} diff --git a/packages/inula-dev-tools/src/svgs/Eye.tsx b/packages/inula-dev-tools/src/svgs/Eye.tsx new file mode 100644 index 00000000..c3fc2582 --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/Eye.tsx @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + +export default function Eye() { + return ( + + + + + ); +} diff --git a/packages/inula-dev-tools/src/svgs/Location.tsx b/packages/inula-dev-tools/src/svgs/Location.tsx new file mode 100644 index 00000000..40e6c713 --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/Location.tsx @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + +export default function Location() { + return ( + + + + + ); +} diff --git a/packages/inula-dev-tools/src/svgs/Operation.tsx b/packages/inula-dev-tools/src/svgs/Operation.tsx new file mode 100644 index 00000000..13831192 --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/Operation.tsx @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + +export default function Operation() { + return ( + + + + ); +} diff --git a/packages/inula-dev-tools/src/svgs/Select.tsx b/packages/inula-dev-tools/src/svgs/Select.tsx new file mode 100644 index 00000000..86c6c1ea --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/Select.tsx @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + +export default function Select() { + return ( + + + + + + + + + + ); +} diff --git a/packages/inula-dev-tools/src/svgs/Triangle.tsx b/packages/inula-dev-tools/src/svgs/Triangle.tsx new file mode 100644 index 00000000..49ed3afd --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/Triangle.tsx @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + +interface IArrow { + director: 'right' | 'down' +} + +export default function Triangle({ director }: IArrow) { + let d = ''; + if (director === 'right') { + d = 'm2 0l12 8l-12 8 z'; + } else if (director === 'down') { + d = 'm0 2h16 l-8 12 z'; + } + return ( + + + + ); +} diff --git a/packages/inula-dev-tools/src/svgs/copy.svg b/packages/inula-dev-tools/src/svgs/copy.svg new file mode 100644 index 00000000..48431e0e --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/copy.svg @@ -0,0 +1,20 @@ + + + + + + + diff --git a/packages/inula-dev-tools/src/svgs/storage.svg b/packages/inula-dev-tools/src/svgs/storage.svg new file mode 100644 index 00000000..470821fc --- /dev/null +++ b/packages/inula-dev-tools/src/svgs/storage.svg @@ -0,0 +1,19 @@ + + + + + +