Commit Graph

251 Commits (e13b4977bdc5769f6a82461de0be692944bac6ad)

Author SHA1 Message Date
Ryan Wang e8b6f5ccb9
feat: add global search support (#623)
#### What type of PR is this?

/kind feature
/milestone 2.0

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

添加全局搜索框支持。

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/1924

#### Screenshots:

<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/192448624-fbef4e58-7c0e-4c24-b29e-4dd6eba9fa4f.png">
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/192448660-369e19a4-747d-45ad-9056-162f5c8e01be.png">
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/192449009-6b856d82-e7a6-4e93-b2fa-d0d0c7a58ebf.png">


#### Special notes for your reviewer:

/cc @halo-dev/sig-halo-console 

测试方式:

1. 本地 Console 切换到当前 PR 的分支,需要 `pnpm install && pnpm build:packages`
2. 使用 Ctrl + K(Windows/Linux) 或者 Command + K(macOS)调起搜索框
3. 可以使用键盘上/下键(或者 Ctrl + J / Ctrl + K)选择搜索条目,回车键确认选择。

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

```release-note
后台添加全局搜索的支持
```
2022-09-28 06:50:16 +00:00
Ryan Wang 2c7d8551fb feat: add submit button component to support shortcut keys for form submission
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-09-26 15:48:55 +08:00
Ryan Wang 4a0bcd3777
fix: unable to load attachment images in production environment (#622)
#### What type of PR is this?

/kind bug
/milestone 2.0

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

修复在生产模式下,附件列表的图片无法及时加载的问题。

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/2465

#### Special notes for your reviewer:

/cc @halo-dev/sig-halo-console 

测试方式:

1. 本地 console 仓库切换到此 PR 的分支。
2. 构建生产资源:`pnpm build`
3. 参考 https://github.com/halo-dev/halo/pull/2453 配置本地 Halo 代理 Console
4. 访问 <http://localhost:8090/console>,切换到附件页面。
5. 测试上传图片之后是否可以正常加载。

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

```release-note
None
```
2022-09-26 02:46:14 +00:00
Ryan Wang 6892135644 refactor: move entity component to @halo-dev/components package
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-09-14 11:17:15 +08:00
Ryan Wang f1bf0333aa
feat: add the entity component as a list item (#609)
#### What type of PR is this?

/kind feature
/milestone 2.0

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

添加 Entity 和 EntityField 组件,作为列表项使用。

#### Which issue(s) this PR fixes:

#### Screenshots:

#### Special notes for your reviewer:

测试方式:检查后台各个页面的列表样式和功能是否正常。

/cc @halo-dev/sig-halo-admin 

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

```release-note
None
```
2022-09-13 04:08:12 +00:00
Ryan Wang 8e3578f445 feat: add avatar component 2022-09-11 01:26:26 +08:00
Ryan Wang 58690df5e1 feat: add user dropdown selector component 2022-09-06 19:48:12 +08:00
Ryan Wang e3fd9e8709
feat: add attachment management support (#600)
<!--  Thanks for sending a pull request!  Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->

#### What type of PR is this?

/kind feature
/milestone 2.0

<!--
添加其中一个类别:
Add one of the following kinds:

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind optimization

适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:

/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->

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

增加附件管理的功能,适配 https://github.com/halo-dev/halo/pull/2354

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/2330

<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

#### Screenshots:

None

<!--
如果此 PR 有 UI 的改动,最好截图说明这个 PR 的改动。
If there are UI changes to this PR, it is best to take a screenshot to illustrate the changes to this PR.

eg.

Before:

![screenshot-before](https://user-images.githubusercontent.com/screenshot.png)

After:

![screenshot-after](https://user-images.githubusercontent.com/screenshot.png)
-->

#### Special notes for your reviewer:

todo list:

- [x] 根据分组筛选附件列表。
- [x] 非图片文件支持显示占位图。
- [x] 完善选择附件组件。
- [ ] ~~附件引用关系查询。~~

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

<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->

```release-note
None
```
2022-09-04 17:06:11 +00:00
Ryan Wang d4b64f203d
chore: use pnpm's workspace feature to manage base components (#579) 2022-06-14 15:56:55 +08:00
Ryan Wang f6bfe4aaf6 perf: improve forms ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-31 16:19:04 +08:00
Ryan Wang 9c9a2ea5c4 perf: improve settings page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 19:54:43 +08:00
Ryan Wang 76ed305ae5 refactor: theme page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 16:36:34 +08:00
Ryan Wang 558b8a3778 chore: add tailwindcss prettier plugin and reformat code
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-29 23:55:06 +08:00
Ryan Wang 5b24b06859 feat: add visual theme editing page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-29 15:13:01 +08:00
Ryan Wang 90d2ddddca feat: add plugins list and detail page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-23 18:09:09 +08:00
Ryan Wang 906ecd9b57 feat: add post settings modal
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-17 16:45:30 +08:00
Ryan Wang 3d81d94197 feat(components/base/button): support route prop to push route 2022-05-16 16:23:09 +08:00
Ryan Wang 3208cc8bdc refactor: mobile menus drawer
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-16 14:30:21 +08:00
Ryan Wang 326a2384be fix(components/base/modal): cannot click on page elements after mounting modal components
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-16 13:26:42 +08:00
Ryan Wang 49705b6a80 refactor: modal component transition
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-16 12:39:35 +08:00
Ryan Wang 22a558bf67 feat: add SystemSettingsLayout layout component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-13 15:36:02 +08:00
Ryan Wang 1ba9502dce feat: add attachment list component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-11 17:20:10 +08:00
Ryan Wang 43a3c6dadf refactor: post list component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-11 15:46:23 +08:00
Ryan Wang ff3d495a6b feat: add user profile page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-07 15:52:56 +08:00
Ryan Wang d08195a3c6 feat(components/tabbar): support direction prop
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-05 17:49:42 +08:00
Ryan Wang 3414b1b282 feat: add tabs component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-29 15:15:09 +08:00
Ryan Wang aa861c3783 feat: add tabbar component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-28 21:55:56 +08:00
Ryan Wang db32465a04 feat: add alert component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-28 17:26:08 +08:00
Ryan Wang f522c4bbde feat: add card component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-28 15:35:16 +08:00
Ryan Wang 360ddd13c6 feat: add tooltip component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-27 15:28:13 +08:00
Ryan Wang a7f115f948 refactor(components/modal): remove default footer button
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-27 14:06:02 +08:00
Ryan Wang c39e13350e refactor: mount modal to body node
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-27 11:21:38 +08:00
Ryan Wang 8df46e45f2 feat: add modal component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-26 21:52:56 +08:00
Ryan Wang 6dab80a6dd perf: improve menu styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-25 11:23:53 +08:00
Ryan Wang 038bea728c fix: menu vertical overflow
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-24 14:33:46 +08:00
Ryan Wang 2e56412670 refactor: use histoire instead of view components page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-22 16:05:30 +08:00
Ryan Wang 36b77fc563 perf: improve button loading styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-21 17:44:25 +08:00
Ryan Wang 57433d9630 feat: add tag component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-21 17:33:13 +08:00
Ryan Wang d35c973f0c feat: add space component and test case
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-21 15:48:59 +08:00
Ryan Wang 19c74b3cde test: add test case for button loading state
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-21 10:53:29 +08:00
Ryan Wang 3222f3449f feat: button component support loading state
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-20 17:58:50 +08:00
Ryan Wang 6d45b96e4e feat: add checkbox and checkbox-group component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-20 14:40:16 +08:00
Ryan Wang d66ee9c391 feat: add radio and radio-group component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-19 17:56:21 +08:00
Ryan Wang c4479ff1fe test: add input component test case about props and v-model
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-19 14:39:38 +08:00
Ryan Wang 55f23cb961 feat: add textarea component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-19 14:33:09 +08:00
Ryan Wang 28ea197230 test: add input component test case
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-19 12:09:24 +08:00
Ryan Wang 5975d9d607 feat: add native select component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-19 12:06:38 +08:00
Ryan Wang 6a960e573e feat: add native select component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-19 12:06:17 +08:00
Ryan Wang 074d5b1fea feat: add input component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-18 18:01:03 +08:00
Ryan Wang 3d572c0643 feat: add base layout components
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-04-15 16:17:02 +08:00