Commit Graph

41 Commits (b9a8f5055cc2be931a14e8b67a7809a6f1fbc0f2)

Author SHA1 Message Date
Ryan Wang 3af96040e6 feat: add attachment management support (halo-dev/console#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 18828c035b chore: use vue/vue3-recommended eslint plugin
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-30 17:30:43 +08:00
Ryan Wang 525b440b8a refactor: post editor creation
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-24 15:29:21 +08:00
Ryan Wang ee10f49678 feat: post basic management capability (halo-dev/console#599)
<!--  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/2326

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

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

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes https://github.com/halo-dev/halo/issues/2322

#### Screenshots:

// pending

<!--
如果此 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:

// pending

#### 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-08-23 04:08:10 +00:00
Ryan Wang a65649b1cd feat: add empty state support for core modules
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-22 16:49:07 +08:00
Ryan Wang 02997e1d55 feat: add empty component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-22 16:01:59 +08:00
Ryan Wang 4ec95fb2dc chore: bump packages version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-15 21:07:18 +08:00
Ryan Wang 53beb65a4c refactor: refine emits type declaration
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-15 20:31:51 +08:00
Ryan Wang 8e9a476136 refactor: define props with pure types via a generic type argument
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-15 17:56:13 +08:00
Ryan Wang 9a306fc2b7 chore: bump histoire version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-14 11:59:35 +08:00
Ryan Wang f661a6767e chore: bump @halo-dev/richtext-editor version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-13 11:37:07 +08:00
Ryan Wang 35ee3f0855 feat: refine attachment management page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-12 16:15:08 +08:00
Ryan Wang 4912d78ae7 feat: support for dynamically adding child routes to a route
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-09 12:05:40 +08:00
Ryan Wang cbcb2c8027 chore: bump vite version to 3.0
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-07 23:54:54 +08:00
Ryan Wang ee3b6605fa chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-30 11:41:40 +08:00
Ryan Wang 4fb5c6f588 perf(components): modal automatically focuses after opening
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-26 15:41:08 +08:00
Ryan Wang fadbe47a54 feat: add plugin uninstall support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-26 11:45:00 +08:00
Ryan Wang 0a087d3956 refactor: basic components styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 16:48:37 +08:00
Ryan Wang 51c87c1519 feat: user editing support using yaml
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-22 17:04:30 +08:00
Ryan Wang e218818a59 feat: add codemirror component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-22 16:12:28 +08:00
Ryan Wang d90838f4cb chore: bump packages version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-21 15:10:46 +08:00
Ryan Wang 5862db903f perf: improve user detail page style
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-21 15:03:30 +08:00
Ryan Wang c15330f1e8 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-18 12:35:34 +08:00
Ryan Wang d5c1e3e428 feat: support permission judgment of interface elements and routes 2022-07-15 16:26:27 +08:00
Ryan Wang 16cf4d70a1 refactor: response structure of Extension list API
see halo-dev/halo#2244
2022-07-14 16:48:54 +08:00
Ryan Wang 03bb8d6bc6 refactor: admin ui theme system
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-14 11:38:13 +08:00
Ryan Wang 75b76ec919 refactor: removal of plugin batch operation
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 17:39:31 +08:00
Ryan Wang 4bd201d399 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 10:11:43 +08:00
Ryan Wang 9e16e1f26c feat: add pagination component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 18:16:45 +08:00
Ryan Wang 4b84ee053e perf: refine dialog component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 16:27:46 +08:00
Ryan Wang 2ec35c36b1 chore: add changeset
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-08 14:52:52 +08:00
Ryan Wang 6eff21edbd feat: refine the configuration of unplugin-icons
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-03 16:50:25 +08:00
Ryan Wang 87e56bd165 feat: add dialog component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-29 14:53:57 +08:00
Ryan Wang 1aa7a61c55 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-23 11:51:03 +08:00
Ryan Wang 6cf17b2381 feat: plugin management (halo-dev/console#583)
* chore: remove unnecessary files

Signed-off-by: Ryan Wang <i@ryanc.cc>

* feat: plugin management

Signed-off-by: Ryan Wang <i@ryanc.cc>

* feat: refine plugin detail page

Signed-off-by: Ryan Wang <i@ryanc.cc>

* feat: refine plugin detail page

Signed-off-by: Ryan Wang <i@ryanc.cc>

* fix: theme plugin router link

Signed-off-by: Ryan Wang <i@ryanc.cc>

* Update src/modules/system/plugins/PluginList.vue

Co-authored-by: John Niang <johnniang@fastmail.com>

* feat: plugin detail page support start/stop plugin

Signed-off-by: Ryan Wang <i@ryanc.cc>

Co-authored-by: John Niang <johnniang@fastmail.com>
2022-06-23 03:28:23 +00:00
Ryan Wang 7f304a92b4 feat(components): add switch component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-21 17:31:23 +08:00
Ryan Wang 7dab901864 feat(components): add switch component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-21 17:25:24 +08:00
Ryan Wang 2f4721c62b refactor(components): remove tooltip component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-21 16:36:41 +08:00
Ryan Wang 1b3aae9ef8 chore(packages/components): change d.ts dist folder
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 22:08:42 +08:00
Ryan Wang 25543cf84e chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 15:02:32 +08:00
Ryan Wang 8783c5b1f1 chore: use pnpm's workspace feature to manage base components (halo-dev/console#579) 2022-06-14 15:56:55 +08:00