halo/ui/src
Ryan Wang f40770ad64
chore: add prettier-plugin-organize-imports plugin to organize imports (#6836)
#### What type of PR is this?

/area ui
/kind improvement
/milestone 2.20.x

#### What this PR does / why we need it:

使用 https://github.com/simonhaenisch/prettier-plugin-organize-imports 优化 UI 项目的模块导入,之前我们是通过[配置 VSCode](9468e8741f/ui/.vscode/settings.json (L34-L36)) 来实现导入优化,但这种方式局限于 VSCode 编辑器,在其他编辑器无法得到统一的支持。

并且我们为 UI 添加了 git pre commit hook,在提交代码前会对已修改的文件执行 prettier,这样能够更好的保证一致性。

<img width="1475" alt="image" src="https://github.com/user-attachments/assets/755e2aba-be07-4fba-8007-6210ef44a8ef">

#### Does this PR introduce a user-facing change?

```release-note
None
```
2024-10-12 07:05:09 +00:00
..
assets chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
components chore: add prettier-plugin-organize-imports plugin to organize imports (#6836) 2024-10-12 07:05:09 +00:00
composables refactor: remove async loading logic for editor (#6707) 2024-09-27 05:03:35 +00:00
constants Refine password validation 2024-10-10 10:43:20 +08:00
formkit chore: add prettier-plugin-organize-imports plugin to organize imports (#6836) 2024-10-12 07:05:09 +00:00
locales feat: improve built-in auth providers' i18n in detail page (#6816) 2024-10-10 09:31:01 +00:00
setup feat: add login expiration notification (#6738) 2024-09-30 11:01:52 +00:00
stores refactor: remove login-related pages from UI project (#6712) 2024-09-28 10:19:41 +00:00
styles fix: resolve styling issue for checkbox when disabled (#6240) 2024-07-01 09:55:17 +00:00
types feat: change the tab title to the site title of the website (#5696) 2024-04-12 09:48:08 +00:00
utils Add frontend support for customizing login and logout pages 2024-09-28 17:38:32 +08:00
views/exceptions Move folder console to ui 2024-02-02 22:22:51 +08:00
vite feat: add requests library as a global shared dependency 2024-06-25 12:31:44 +08:00