Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add next/cloud-icons project #2821

Merged
merged 1 commit into from
Jan 17, 2025
Merged

feat: add next/cloud-icons project #2821

merged 1 commit into from
Jan 17, 2025

Conversation

zzcr
Copy link
Member

@zzcr zzcr commented Jan 17, 2025

PR

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Summary by CodeRabbit

Release Notes

  • New Features

    • Added Cloud Design Icons library with system and service icons
    • Expanded internationalization support with Spanish and Portuguese languages
  • Documentation

    • Created README for Cloud Design Icons library
    • Updated internationalization documentation for multiple languages
  • Chores

    • Updated .gitignore files to exclude specific cache and generated files
    • Added package configuration for Cloud Icons project
  • Tests

    • Added unit tests for icon processing and generation scripts

Copy link

coderabbitai bot commented Jan 17, 2025

Walkthrough

This pull request introduces a comprehensive set of changes focused on cloud icons, internationalization, and project configuration. The modifications span multiple files across different directories, including the addition of a new cloud icons library, updates to internationalization support with Spanish and Portuguese languages, and modifications to .gitignore files to exclude specific files and directories from version control.

Changes

File Change Summary
.gitignore Added entries for next/cloud-icons/categorys.ts and next/scene-theme/docs/.vitepress/cache
examples/sites/demos/apis/user.js Added hover-expand property to user component props
examples/sites/demos/pc/app/pop-upload/file-type.spec.ts Updated test assertions with minor text changes
examples/sites/demos/pc/webdoc/i18n-en.md Added Spanish and Portuguese language support documentation
examples/sites/demos/pc/webdoc/i18n.md Updated default locale to Spanish
next/cloud-icons/README.md New documentation for Cloud Design Icons library
next/cloud-icons/index.html Added preview interface for cloud icon set
next/cloud-icons/main.ts Implemented icon rendering and management functionality
next/cloud-icons/package.json Created package configuration for @opentiny/cloud-icons
next/cloud-icons/scripts/build.ts Added SVG processing script with path parsing and icon generation functions

Sequence Diagram

sequenceDiagram
    participant User
    participant IconInterface
    participant IconRenderer
    participant IconSet

    User->>IconInterface: Select Category
    User->>IconInterface: Choose Color
    IconInterface->>IconRenderer: Trigger Render
    IconRenderer->>IconSet: Fetch Icons
    IconRenderer-->>IconInterface: Display Icons
    User->>IconInterface: Copy Icon HTML
    IconInterface->>Clipboard: Copy Icon Representation
Loading

Possibly related PRs

Suggested labels

enhancement, documentation, internationalization

Poem

🐰 Hop, hop, icons take flight!
Cloud design, a colorful delight
Languages dance, Spanish and more
Gitignore whispers, "Track no more!"
Code rabbits celebrate today's bright
🌈✨

Finishing Touches

  • 📝 Generate Docstrings (Beta)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the enhancement New feature or request (功能增强) label Jan 17, 2025
Copy link

[e2e-test-warn]
The component to be tested is missing.

The title of the Pull request should look like "fix(vue-renderless): [action-menu, alert] fix xxx bug".

Please make sure you've read our contributing guide

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 9

🧹 Nitpick comments (8)
examples/sites/demos/pc/app/pop-upload/file-type.spec.ts (1)

14-17: Consider using import statement instead of require.

The require statement triggers an eslint warning. Consider using the ES6 import syntax if possible.

-  // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
-  const path = require('node:path')
+  import * as path from 'node:path'
examples/sites/demos/pc/webdoc/i18n-en.md (1)

134-134: Consider implications of changing default locale.

The example sets Spanish (esLA) as the default locale, which might not be the best choice for documentation examples. Consider keeping Chinese or English as the default for consistency with earlier examples.

- export const i18n = initI18n({ locale: 'esLA' })
+ export const i18n = initI18n({ locale: 'zhCN' })
examples/sites/demos/pc/webdoc/i18n.md (1)

181-219: LGTM! Documentation is consistent across languages.

The Chinese documentation perfectly mirrors the English version, maintaining consistency in:

  • Structure and content
  • Code examples
  • Version requirements

However, the same concern about the default locale applies here as in the English version.

- export const i18n = initI18n({ locale: 'esLA' }) // 此处指定初始的默认语言
+ export const i18n = initI18n({ locale: 'zhCN' }) // 此处指定初始的默认语言
next/cloud-icons/scripts/__tests__/build.test.ts (1)

4-13: Enhance test coverage for path parsing.

The current test only covers a happy path scenario. Consider adding tests for:

  • Invalid path formats
  • Missing order numbers
  • Special characters in names
  • Empty group names
+test('测试解析路径的错误情况', () => {
+  expect(() => parsePath('./invalid/path.svg')).toThrow()
+  expect(() => parsePath('./svgs/base/方向/no-order-go.svg')).toThrow()
+  expect(() => parsePath('./svgs/base/1-方向/1#特殊!符号-special.svg')).toThrow()
+})
next/cloud-icons/main.ts (1)

32-54: Optimize performance of icon rendering.

The current implementation rebuilds HTML strings in memory. Consider using DocumentFragment for better performance.

-  let html = ''
+  const fragment = document.createDocumentFragment()
   Object.keys(icons)
     .sort((groupName1, groupName2) => {
       const num1 = parseInt(groupName1.split('-')[0])
       const num2 = parseInt(groupName2.split('-')[0])
       return num1 > num2 ? 1 : -1
     })
     .forEach((groupName) => {
-      html += `<h3 class='icons-group'>${groupName}</h3>`
+      const group = document.createElement('h3')
+      group.className = 'icons-group'
+      group.textContent = groupName
+      fragment.appendChild(group)
     })
-  list.innerHTML = html
+  list.replaceChildren(fragment)
next/cloud-icons/README.md (2)

10-13: Add language specification to code block.

Specify the language for the code block to enable syntax highlighting.

-```
+```bash
 npm install @opentiny/cloud-icons

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 Markdownlint (0.37.0)</summary>

10-10: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

---

`1-80`: **Add version compatibility information.**

The README should specify:
- Supported browser versions
- Required Node.js version
- Framework compatibility matrix

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 Markdownlint (0.37.0)</summary>

10-10: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

</blockquote></details>
<details>
<summary>next/cloud-icons/index.html (1)</summary><blockquote>

`7-85`: **Move styles to external stylesheet and improve CSS maintainability.**

Consider the following improvements:
1. Move embedded styles to the external stylesheet (`style/all.css`)
2. Use CSS variables for colors and spacing
3. Combine duplicate selectors (lines 69-74)

Example refactor:

```diff
+/* In style/all.css */
+:root {
+  --color-primary: #0057c3;
+  --color-text: #575d6c;
+  --spacing-base: 8px;
+}

 .icon-counts {
-  color: #0057c3;
+  color: var(--color-primary);
 }

-/* Remove duplicate selector */
-.settings label {
-  margin: 0 16px 12px;
-}
-.settings label {
-  font-weight: bold;
+.settings label {
+  margin: 0 calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 1.5);
+  font-weight: bold;
}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 589695b and 222ab26.

⛔ Files ignored due to path filters (287)
  • next/cloud-icons/scripts/__tests__/__snapshots__/build.test.ts.snap is excluded by !**/*.snap
  • next/cloud-icons/scripts/__tests__/函数工作流-FunctionGraph.svg is excluded by !**/*.svg
  • next/cloud-icons/scripts/__tests__/点击-click.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/1#首页_房子-home.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/10#符号-at.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/100#历史数据-history.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/101#加号_创建-plus.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/102#加号_创建-plus1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/103#减号_删减-minus1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/104#更多-more.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/105#更多_3点-more1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/106#移动_6点_骰子_盲文-dot6.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/11#最新动态_纸飞机-news.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/12#笑脸_满意度评价-smile-face.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/13#最小化-minimize.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/13.1#最大化-maximize.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/14#分享-share.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/15#搜索-search.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/2#短信-email.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/20#通话-call.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/200#加载-loading.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/21#手机-phone.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/22#打印-print.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/23#计算器-calculator.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/24#地图_位置-map.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/25#钥匙_密钥-key.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/26#钥匙_密钥-key1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/27#相机_拍照-camera.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/28#自动保存-auto-save.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/29#视频-video.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/3#发布-release.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/30#录制-record.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/31#电视_演示-TV.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/32#药箱_诊断-diagnosis.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/33#皮肤_衣服-skin.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/34#告警灯-alarm.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/35#提醒-remind.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/36#定位-position.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/4#消息-message.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/40#投屏-cast.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/41#插头_扩展-plug.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/42#灯泡_想法-idea.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/43#正方体-cube.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/44#麦克风_公告-speeker.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/45#清除-clean.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/46#拖动手形-choose-drag.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/47#点击手形-click.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/48#拖动中手形-choosing.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/49#设置_齿轮-setting.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/5#日期-date.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/50#修复-repair.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/6#书签-bookmark.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/60#置顶_顶部-top.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/61#推荐_喜欢-like.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/62#店铺-shop.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/63#购物车-cart.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/64#售罄-soldout.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/65#手提包_商品-bag.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/66#钱包-wallet.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/67#礼包-gift.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/68#支付_续费-payment.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/69#vscode-vscode.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/7#指南-guide.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/70#助手-assistant.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/71#转码-transcode.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/72#指示器-Indicator .svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/73#堆叠_图层-stack.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/74#日出_唤醒-sun-raise.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/75#太阳_亮色模式-sun.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/76#休眠_月亮-hibernate.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/77#暗色模式_月亮-dark.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/78#对比度_昼夜-contrast.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/79#垂直镜像_对称-mirror-y.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/8#标签-tag.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/80#水平镜像_对称-mirror-x.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/81#对号_选中-tick.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/82#清除_叉号-clear.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/83#箭头右-right.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/84#箭头左-left.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/85#箭头下-down.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/86#箭头上-up.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/87#全部收起-collapse.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/88#全部收起-collapse1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/89#全部展开-expand.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/9#图钉_固定-pin.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/9.1#取消固定-unpin.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/90#全部展开-expand1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/91#双箭头左-dbl-left.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/92#双箭头右-dbl-right.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/93#选择-check.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/94#关闭-close.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/95#警告-warn.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/95.1#风险_警告-risk.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/96#版本信息-info.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/97#帮助-help.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/98#停止_禁用-disabled.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/1-标记(Signs)/99#时间-time.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/1#开始-start.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/10#取消收藏_星星-unstar.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/11#半星_半分-half-star.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/12#横向调整-adjust-x.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/13#竖向调整-adjust-y.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/14#筛选-filter.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/15#剪切_裁剪-crop.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/16#返回-backward.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/17#前进-forward.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/2#暂停-pause.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/20#放大-zoom-in.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/21#缩小-zoom-out.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/23#取消隐藏-unhide.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/24#隐藏-hide.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/25#音量-volume.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/26#静音-mute.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/27#横向伸缩-horizontal-scale.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/28#全屏-full.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/29#退出全屏-exit-full.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/3#停止-stop.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/30#全屏_最大化-full1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/31#退出全屏_还原-exit-full1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/32#适应画布-fit-canvas.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/33#减号_收起列表-minus-square.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/34#加号_展开列表-plus-square.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/4#播放-start1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/40#复制-copy.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/41#复制-copy1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/42#类型-type.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/43#群组_复制-group.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/44#列表_清单-list.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/45#均衡器_配置-custom.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/46#配置-config-x.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/47#配置-config-y.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/48#切换方式-switch.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/49#退出-logout.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/5#暂停-pause1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/50#登录-login.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/51#退出-logout1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/52#离开-leave.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/6#降序-desc.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/60#上传-upload.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/61#下载-download.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/62#上传下载-two-way-load.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/63#上传到云-upload-cloud.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/64#选中-choose.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/65#删除-delete.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/66#剪切_剪刀-cut.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/7#升序-asc.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/70#关机-shutdown.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/71#关机-shutdown1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/72#重启-restart.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/73#重试-retry.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/74#刷新-refresh.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/75#重置密码-reset-pwd.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/76#暂停刷新-pause-refresh.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/77#屏蔽设置_禁止配置-no-setting.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/78#升级-update.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/79#锁-lock-ring.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/8#排序-sort.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/80#解锁-unlock.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/81#锁定-lock.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/82#边界_规则-border.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/83#隐藏边界_规则-dash-border.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/2-操作(Operations)/9#收藏_星星_评分-star.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/1#展开文件夹-folder-open1.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/10#查看详情-view-detail.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/11#新建文件-new-file.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/12#反馈-feedback.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/13#开发文档-docs.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/13.1#默认配置-default-setting.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/14#任务-task.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/15#日志-log.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/16#域名记录-domain-log.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/17#添加域名解析-add-domain.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/18#域名生效验证-domain-valid.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/19#同步-Synchronize.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/2#新建文件夹-folder-add.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/20#黑名单-blacklist.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/21#文档搜索-doc-search.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/22#报表-report.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/23#委托-agency.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/3#展开文件夹-folder-open.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/30#图片-pic.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/31#图形-graph.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/32#截图-screenshot.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/33#上传图片-image-upload.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/34#word文档-word.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/35#doc文档-doc.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/36#ppt文档-ppt.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/37#表格文档-xlsx.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/4#历史文件夹-folder-history.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/40#存储-save.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/41#新建窗口-new-window.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/42#编辑-edit.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/42.1#恢复-redo.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/42.2#回退-undo.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/43#左对齐-align-left.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/44#居中对齐-align-center.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/45#右对齐-align-right.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/46#底部对齐-align-bottom.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/47#顶部对齐-align-top.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/48#横中对齐-align-middle.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/49#横向排列-x-arrange.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/5#文件夹-folder.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/50#纵向排列-y-arrange.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/51#表格-table.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/52#网格线-grid-line.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/53#网格线间距-grid-space.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/54#未选中-no-checked.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/55#半选-half-checked.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/56#选中-checked.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/57#未单选中-radio.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/58#单选选中-radio-checked.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/3-文档_编辑器(Document & Editor)/6#文件夹下载-folder-download.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/1#电脑-pc.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/10#实时数据-realtime-data.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/11#诊断分析-analysis.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/12#饼图-chart-pie.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/13#折线表-chart-line.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/14#指标_指数-index.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/15#指标_指数趋势-index-trend.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/16#周期性报表-period-report.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/17#配额-quota.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/2#监控信息_大屏-monitor.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/20#挂载存储-mount-storage.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/21#迁移数据库-migration-db.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/22#确认配置-confirm-configure.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/23#确认配置2-confirm-configure2.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/24#节点_关系图-nodes.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/25#创建节点-create-node.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/26#节点池-node-pool.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/27#工作负载-workloads.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/28#主机数据-host-data.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/29#替换协议-ip-replace.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/3#pycharm插件_电脑-pycharm.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/30#安装失败-install-failed.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/31#防护策略-protection-policy.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/32#合规策略-compliance-policy.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/33#空闲配额-idle-quota.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/34#离线-offline.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/35#已阻断_防护事件总数-protected-events.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/36#异常集群-failed-cluster.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/37#安全权限-privilege.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/38#安全策略-security-policy.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/4#选择对象-select-object.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/40#虚拟机移动-vm-move.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/41#链接_绑定-link.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/42#运行异常-exception.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/43#插件中心-add-ons.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/44#应用-apps.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/45#部署-deploy.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/46#编译-compile.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/47#集群-cluster.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/48#集群配置-cluster-config.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/49#集群事件-cluster-events.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/5#对象-object.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/50#规格变更-spec-change.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/51#已接入镜像仓-image-repo.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/52#镜像阻断策略-blocking-policy.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/53#异常镜像仓-failed-image-repo.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/6#命令行-cli-shell.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/60#已开启策略-strategy-enabled.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/61#未开启策略-strategy-disabled.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/62#主机修复失败-hostrepair-failed.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/63#主机修复中-host-repairing.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/64#主机修复成功-host-repair-successful.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/65#同步失败镜像仓-sync-failed-image-repo.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/66#同步镜像仓-sync-image-repo.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/67#同步成功镜像仓-sync-successful-image-repo.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/68#主机已取消扫描-host-scan-canceled.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/69#主机扫描失败-host-scan-failed.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/7#云命令行-cloud-shell.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/70#主机扫描成功-host-scaned.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/8#选择时间-select-time.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/80#扫描失败-scan-failed.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/81#扫描中-scanning.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/82#扫描成功-scaned.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/84#主机验证中-host-verifying.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/85#主机验证失败-host-deny.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/86#主机验证成功-host-verified.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/87#内网域名-domain-ip.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/88#反向解析-reverse-resolution.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/89#路由_线路-route.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/9#实时流量-realtime-flow.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/90#AI开发平台-modelarts.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/91#全球服务-global-services.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/92#健康中心-wellness-center.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/4-计算机_云(IT & Clouds)/93#公网域名-domain.svg is excluded by !**/*.svg
  • next/cloud-icons/svgs/base/5-用户_权限(User & Auth)/1#用户-user.svg is excluded by !**/*.svg
📒 Files selected for processing (13)
  • .gitignore (1 hunks)
  • examples/sites/demos/apis/user.js (1 hunks)
  • examples/sites/demos/pc/app/pop-upload/file-type.spec.ts (1 hunks)
  • examples/sites/demos/pc/webdoc/i18n-en.md (1 hunks)
  • examples/sites/demos/pc/webdoc/i18n.md (1 hunks)
  • next/.gitignore (1 hunks)
  • next/cloud-icons/.gitignore (1 hunks)
  • next/cloud-icons/README.md (1 hunks)
  • next/cloud-icons/index.html (1 hunks)
  • next/cloud-icons/main.ts (1 hunks)
  • next/cloud-icons/package.json (1 hunks)
  • next/cloud-icons/scripts/__tests__/build.test.ts (1 hunks)
  • next/cloud-icons/scripts/build.ts (1 hunks)
✅ Files skipped from review due to trivial changes (3)
  • next/cloud-icons/.gitignore
  • next/.gitignore
  • next/cloud-icons/package.json
🧰 Additional context used
🪛 Markdownlint (0.37.0)
next/cloud-icons/README.md

10-10: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🔇 Additional comments (6)
.gitignore (2)

72-73: LGTM! Good use of sectioning.

The empty line and descriptive comment help organize the .gitignore file into logical sections, improving readability.


74-75: Consider fixing the potential typo in the filename.

The ignore patterns are well-structured, but there might be a typo:

  • categorys.ts appears to be misspelled (standard English spelling would be categories.ts)

Let's verify if this is a consistent naming convention across the project:

examples/sites/demos/pc/app/pop-upload/file-type.spec.ts (1)

21-22: LGTM! Improved readability of alert messages.

The added spaces after colons in alert messages improve readability.

examples/sites/demos/apis/user.js (1)

75-89: LGTM! Well-documented new property.

The hover-expand property is well-structured with:

  • Clear documentation in both languages
  • Explicit conditions for usage (requires multiple=true)
  • Version metadata
examples/sites/demos/pc/webdoc/i18n-en.md (1)

102-103: Verify version compatibility.

The documentation states these changes are available from @opentiny/[email protected]. Ensure this version is already released and available.

next/cloud-icons/README.md (1)

58-58: Update placeholder URL for icon preview.

The preview URL is currently a placeholder. Please update it with the actual URL.

Comment on lines +15 to +25
test('测试生成css的正确性', () => {
let svg = loadSvg('./scripts/__tests__/点击-click.svg')
let css = genClass('click', svg.toMinifiedString())

expect(css).toMatchSnapshot()

svg = loadSvg('./scripts/__tests__/函数工作流-FunctionGraph.svg')
css = genClass('fg', svg.toMinifiedString())

expect(css).toMatchSnapshot()
})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Add test coverage for loadSvg function.

The test suite is missing coverage for the loadSvg function, which is a critical part of the icon processing pipeline.

+test('测试加载SVG文件的错误处理', () => {
+  expect(() => loadSvg('./non-existent.svg')).toThrow()
+  const svg = loadSvg('./scripts/__tests__/点击-click.svg')
+  expect(svg.toString()).not.toContain('<?xml')
+  expect(svg.toString()).not.toContain('<defs>')
+})
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
test('测试生成css的正确性', () => {
let svg = loadSvg('./scripts/__tests__/点击-click.svg')
let css = genClass('click', svg.toMinifiedString())
expect(css).toMatchSnapshot()
svg = loadSvg('./scripts/__tests__/函数工作流-FunctionGraph.svg')
css = genClass('fg', svg.toMinifiedString())
expect(css).toMatchSnapshot()
})
test('测试生成css的正确性', () => {
let svg = loadSvg('./scripts/__tests__/点击-click.svg')
let css = genClass('click', svg.toMinifiedString())
expect(css).toMatchSnapshot()
svg = loadSvg('./scripts/__tests__/函数工作流-FunctionGraph.svg')
css = genClass('fg', svg.toMinifiedString())
expect(css).toMatchSnapshot()
})
test('测试加载SVG文件的错误处理', () => {
expect(() => loadSvg('./non-existent.svg')).toThrow()
const svg = loadSvg('./scripts/__tests__/点击-click.svg')
expect(svg.toString()).not.toContain('<?xml')
expect(svg.toString()).not.toContain('<defs>')
})

Comment on lines +66 to +78
list.addEventListener('click', function (ev: MouseEvent) {
const target = ev.target as HTMLElement
const name = target.dataset.name
if (name) {
const cls = 'ci-' + name
const tag = `<i class="${cls}></i>`
const copyText = selCopy.value === 'all' ? tag : cls

navigator.clipboard.writeText(copyText)
lightTip.textContent = copyText + ' 复制成功'
lightTip.show()
}
})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add error handling for clipboard operations.

The clipboard operation could fail, especially on older browsers or with certain permissions.

-    navigator.clipboard.writeText(copyText)
-    lightTip.textContent = copyText + ' 复制成功'
-    lightTip.show()
+    navigator.clipboard.writeText(copyText)
+      .then(() => {
+        lightTip.textContent = copyText + ' 复制成功'
+        lightTip.show()
+      })
+      .catch(error => {
+        console.error('Failed to copy:', error)
+        lightTip.textContent = '复制失败,请手动复制'
+        lightTip.show()
+      })
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
list.addEventListener('click', function (ev: MouseEvent) {
const target = ev.target as HTMLElement
const name = target.dataset.name
if (name) {
const cls = 'ci-' + name
const tag = `<i class="${cls}></i>`
const copyText = selCopy.value === 'all' ? tag : cls
navigator.clipboard.writeText(copyText)
lightTip.textContent = copyText + ' 复制成功'
lightTip.show()
}
})
list.addEventListener('click', function (ev: MouseEvent) {
const target = ev.target as HTMLElement
const name = target.dataset.name
if (name) {
const cls = 'ci-' + name
const tag = `<i class="${cls}></i>`
const copyText = selCopy.value === 'all' ? tag : cls
navigator.clipboard.writeText(copyText)
.then(() => {
lightTip.textContent = copyText + ' 复制成功'
lightTip.show()
})
.catch(error => {
console.error('Failed to copy:', error)
lightTip.textContent = '复制失败,请手动复制'
lightTip.show()
})
}
})

Comment on lines +9 to +17
const list = document.getElementById('list')!
const selCategory = document.getElementById('sel-category')! as HTMLSelectElement
const selType = document.getElementById('sel-type')! as HTMLSelectElement
const selColor = document.getElementById('sel-color')! as HTMLInputElement
const selCopy = document.getElementById('sel-copy')! as HTMLSelectElement
const lightTip = document.getElementById('lightTip')!
const btnHelp = document.getElementById('btnHelp')! as HTMLButtonElement
const dlgHelp = document.getElementById('dlgHelp')! as HTMLDialogElement
const helpCode = document.getElementById('helpCode')! as HTMLDialogElement
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add error handling for DOM element queries.

The code assumes all DOM elements exist. Consider adding error handling to prevent runtime errors.

-const list = document.getElementById('list')!
-const selCategory = document.getElementById('sel-category')! as HTMLSelectElement
+const getRequiredElement = <T extends HTMLElement>(id: string): T => {
+  const element = document.getElementById(id)
+  if (!element) throw new Error(`Required element #${id} not found`)
+  return element as T
+}
+
+const list = getRequiredElement<HTMLElement>('list')
+const selCategory = getRequiredElement<HTMLSelectElement>('sel-category')
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const list = document.getElementById('list')!
const selCategory = document.getElementById('sel-category')! as HTMLSelectElement
const selType = document.getElementById('sel-type')! as HTMLSelectElement
const selColor = document.getElementById('sel-color')! as HTMLInputElement
const selCopy = document.getElementById('sel-copy')! as HTMLSelectElement
const lightTip = document.getElementById('lightTip')!
const btnHelp = document.getElementById('btnHelp')! as HTMLButtonElement
const dlgHelp = document.getElementById('dlgHelp')! as HTMLDialogElement
const helpCode = document.getElementById('helpCode')! as HTMLDialogElement
const getRequiredElement = <T extends HTMLElement>(id: string): T => {
const element = document.getElementById(id)
if (!element) throw new Error(`Required element #${id} not found`)
return element as T
}
const list = getRequiredElement<HTMLElement>('list')
const selCategory = getRequiredElement<HTMLSelectElement>('sel-category')
const selType = getRequiredElement<HTMLSelectElement>('sel-type')
const selColor = getRequiredElement<HTMLInputElement>('sel-color')
const selCopy = getRequiredElement<HTMLSelectElement>('sel-copy')
const lightTip = getRequiredElement<HTMLElement>('lightTip')
const btnHelp = getRequiredElement<HTMLButtonElement>('btnHelp')
const dlgHelp = getRequiredElement<HTMLDialogElement>('dlgHelp')
const helpCode = getRequiredElement<HTMLDialogElement>('helpCode')

Comment on lines +148 to +150
let files = await fg(['./svgs/**/*.svg'])
files.map((file) => processSvg(file))
console.log(chalk.blue('> 遍历处理文件成功\n'))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add path sanitization for file operations.

The glob pattern could potentially access files outside the intended directory.

-let files = await fg(['./svgs/**/*.svg'])
+const ALLOWED_DIRS = ['base', 'svc', 'ext']
+let files = await fg(['./svgs/**/*.svg'])
+files = files.filter(file => {
+  const dir = file.split('/')[2]
+  return ALLOWED_DIRS.includes(dir)
+})
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
let files = await fg(['./svgs/**/*.svg'])
files.map((file) => processSvg(file))
console.log(chalk.blue('> 遍历处理文件成功\n'))
const ALLOWED_DIRS = ['base', 'svc', 'ext']
let files = await fg(['./svgs/**/*.svg'])
files = files.filter(file => {
const dir = file.split('/')[2]
return ALLOWED_DIRS.includes(dir)
})
files.map((file) => processSvg(file))
console.log(chalk.blue('> 遍历处理文件成功\n'))

Comment on lines +46 to +79
export function loadSvg(svgPath: string) {
const content = fs.readFileSync(svgPath, 'utf8')
const svg = new SVG(content)

try {
cleanupSVG(svg)
runSVGO(svg, {
plugins: [
'prefixIds',
{
name: 'removeDefs',
fn: () => {
return {
element: {
enter: (node, parentNode) => {
// 具有渐变的,则不过滤了
if (content.includes('<linearGradient')) return

if (node.name === 'defs') {
parentNode.children = parentNode.children.filter((child) => child !== node)
}
}
}
}
}
}
]
})
deOptimisePaths(svg)
} catch (error) {
console.log(chalk.red('处理svg时出错'), svgPath, error)
}
return svg
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Enhance error handling in loadSvg function.

The function catches errors but continues execution, which could lead to corrupted output.

 export function loadSvg(svgPath: string) {
+  if (!fs.existsSync(svgPath)) {
+    throw new Error(`SVG file not found: ${svgPath}`)
+  }
   const content = fs.readFileSync(svgPath, 'utf8')
+  if (!content.includes('<svg')) {
+    throw new Error(`Invalid SVG file: ${svgPath}`)
+  }
   const svg = new SVG(content)
   try {
     cleanupSVG(svg)
     runSVGO(svg)
     deOptimisePaths(svg)
   } catch (error) {
-    console.log(chalk.red('处理svg时出错'), svgPath, error)
+    throw new Error(`Failed to process SVG ${svgPath}: ${error}`)
   }
   return svg
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export function loadSvg(svgPath: string) {
const content = fs.readFileSync(svgPath, 'utf8')
const svg = new SVG(content)
try {
cleanupSVG(svg)
runSVGO(svg, {
plugins: [
'prefixIds',
{
name: 'removeDefs',
fn: () => {
return {
element: {
enter: (node, parentNode) => {
// 具有渐变的,则不过滤了
if (content.includes('<linearGradient')) return
if (node.name === 'defs') {
parentNode.children = parentNode.children.filter((child) => child !== node)
}
}
}
}
}
}
]
})
deOptimisePaths(svg)
} catch (error) {
console.log(chalk.red('处理svg时出错'), svgPath, error)
}
return svg
}
export function loadSvg(svgPath: string) {
if (!fs.existsSync(svgPath)) {
throw new Error(`SVG file not found: ${svgPath}`)
}
const content = fs.readFileSync(svgPath, 'utf8')
if (!content.includes('<svg')) {
throw new Error(`Invalid SVG file: ${svgPath}`)
}
const svg = new SVG(content)
try {
cleanupSVG(svg)
runSVGO(svg, {
plugins: [
'prefixIds',
{
name: 'removeDefs',
fn: () => {
return {
element: {
enter: (node, parentNode) => {
// 具有渐变的,则不过滤了
if (content.includes('<linearGradient')) return
if (node.name === 'defs') {
parentNode.children = parentNode.children.filter((child) => child !== node)
}
}
}
}
}
}
]
})
deOptimisePaths(svg)
} catch (error) {
throw new Error(`Failed to process SVG ${svgPath}: ${error}`)
}
return svg
}

@@ -0,0 +1,148 @@
<!doctype html>
<html lang="en">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix language inconsistency.

The document's lang attribute is set to "en" but contains Chinese content (title). This affects accessibility and SEO.

Apply this diff:

-<html lang="en">
+<html lang="zh">
-    <title>云规范图标集预览</title>
+    <title>Cloud Icon Set Preview</title>

Also applies to: 6-6

Comment on lines +102 to +105
<select id="sel-type" is="ui-select">
<option value="ci">class</option>
<option value="ci">json-data</option>
</select>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix duplicate select options.

The sel-type select element contains duplicate options with the same value "ci".

 <select id="sel-type" is="ui-select">
   <option value="ci">class</option>
-  <option value="ci">json-data</option>
+  <option value="json">json-data</option>
 </select>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<select id="sel-type" is="ui-select">
<option value="ci">class</option>
<option value="ci">json-data</option>
</select>
<select id="sel-type" is="ui-select">
<option value="ci">class</option>
<option value="json">json-data</option>
</select>

Comment on lines +122 to +143
<dialog id="dlgHelp" is="ui-dialog">
<div class="dlg-root">
<h3>1、安装</h3>
<div>在项目中安装: <code>npm i @opentiny/cloud-icons</code></div>
<h3>2、通过css 引用</h3>
<div>在工程中引入图标的css文件: <code>import "@opentiny/cloud-icons/style/all.css"</code></div>
<h3>3、通过 @unocss/preset-icons 插件按需引用</h3>
<div>
例如vite工程中,配置UnoCss的图标插件:
<pre id="helpCode"></pre>
</div>

<h3>4、使用图标</h3>
<ul>
<li>
通过图标名引用所需图标: <code>&lt;i class="ci-search"&gt;&lt;/i&gt;</code> 会得到
<i class="ci-search"></i>
</li>
<li>通过修改图标的 <code>color \ font-size</code> 控制图标的大小和颜色。</li>
</ul>
</div>
</dialog>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Enhance dialog accessibility and user experience.

The help dialog needs improvements for better accessibility and user interaction:

  1. Add close button
  2. Support keyboard navigation (Esc to close)
  3. Add proper ARIA attributes

Example improvements:

-<dialog id="dlgHelp" is="ui-dialog">
+<dialog id="dlgHelp" is="ui-dialog" aria-labelledby="dlg-title" aria-modal="true">
   <div class="dlg-root">
+    <div class="dialog-header">
+      <h2 id="dlg-title">使用说明</h2>
+      <button class="close-button" aria-label="Close dialog">×</button>
+    </div>
     <!-- existing content -->
   </div>
 </dialog>

Committable suggestion skipped: line range outside the PR's diff.

Comment on lines +89 to +120
<div id="app">
<h1 style="text-align: center">云规范图标集预览</h1>
<div class="settings">
<div>
<label> 选择图标集:</label>
<select id="sel-category" is="ui-select">
<option value="base">系统图标</option>
<option value="svc">服务图标</option>
<option value="ext">扩展图标</option>
<option value="stat">状态图标</option>
</select>
<span class="hide">
<label> 引用方式:</label>
<select id="sel-type" is="ui-select">
<option value="ci">class</option>
<option value="ci">json-data</option>
</select>
</span>
<label> 图标颜色:</label>
<input id="sel-color" type="color" is="ui-color" value="#000000" />
<label> 复制方式:</label>
<select id="sel-copy" is="ui-select">
<option value="all">完整标签</option>
<option value="only-name">图标类名</option>
</select>
<ui-lighttip id="lightTip" type="success">复制成功</ui-lighttip>
</div>
<div>
<button id="btnHelp" type="primary" class="ui-button">使用说明</button>
</div>
</div>
<div id="list"></div>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Improve accessibility with ARIA labels and internationalization.

  1. Add ARIA labels for form controls
  2. Consider internationalizing the text content

Example improvements:

-<select id="sel-category" is="ui-select">
+<select id="sel-category" is="ui-select" aria-label="Select icon category">

-<input id="sel-color" type="color" is="ui-color" value="#000000" />
+<input id="sel-color" type="color" is="ui-color" value="#000000" aria-label="Select icon color" />

-<button id="btnHelp" type="primary" class="ui-button">使用说明</button>
+<button id="btnHelp" type="primary" class="ui-button" aria-label="Open help dialog">使用说明</button>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<div id="app">
<h1 style="text-align: center">云规范图标集预览</h1>
<div class="settings">
<div>
<label> 选择图标集:</label>
<select id="sel-category" is="ui-select">
<option value="base">系统图标</option>
<option value="svc">服务图标</option>
<option value="ext">扩展图标</option>
<option value="stat">状态图标</option>
</select>
<span class="hide">
<label> 引用方式:</label>
<select id="sel-type" is="ui-select">
<option value="ci">class</option>
<option value="ci">json-data</option>
</select>
</span>
<label> 图标颜色:</label>
<input id="sel-color" type="color" is="ui-color" value="#000000" />
<label> 复制方式:</label>
<select id="sel-copy" is="ui-select">
<option value="all">完整标签</option>
<option value="only-name">图标类名</option>
</select>
<ui-lighttip id="lightTip" type="success">复制成功</ui-lighttip>
</div>
<div>
<button id="btnHelp" type="primary" class="ui-button">使用说明</button>
</div>
</div>
<div id="list"></div>
<div id="app">
<h1 style="text-align: center">云规范图标集预览</h1>
<div class="settings">
<div>
<label> 选择图标集:</label>
<select id="sel-category" is="ui-select" aria-label="Select icon category">
<option value="base">系统图标</option>
<option value="svc">服务图标</option>
<option value="ext">扩展图标</option>
<option value="stat">状态图标</option>
</select>
<span class="hide">
<label> 引用方式:</label>
<select id="sel-type" is="ui-select">
<option value="ci">class</option>
<option value="ci">json-data</option>
</select>
</span>
<label> 图标颜色:</label>
<input id="sel-color" type="color" is="ui-color" value="#000000" aria-label="Select icon color" />
<label> 复制方式:</label>
<select id="sel-copy" is="ui-select">
<option value="all">完整标签</option>
<option value="only-name">图标类名</option>
</select>
<ui-lighttip id="lightTip" type="success">复制成功</ui-lighttip>
</div>
<div>
<button id="btnHelp" type="primary" class="ui-button" aria-label="Open help dialog">使用说明</button>
</div>
</div>
<div id="list"></div>

@kagol kagol merged commit 3ddfaf2 into dev Jan 17, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request (功能增强)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants