This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 482
feat: add supports for automatic slug generation #831
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f2c-ci-robot
bot
added
the
release-note
Denotes a PR that will be considered when it comes time to generate release notes.
label
Jan 21, 2023
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
f2c-ci-robot
bot
added
the
kind/feature
Categorizes issue or PR as related to a new feature.
label
Jan 21, 2023
JohnNiang
approved these changes
Jan 28, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f2c-ci-robot
bot
added
the
approved
Indicates a PR has been approved by an approver from all required OWNERS files.
label
Jan 28, 2023
guqing
reviewed
Jan 30, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
JohnNiang
pushed a commit
to JohnNiang/halo
that referenced
this pull request
Mar 2, 2023
#### What type of PR is this? /kind feature /milestone 2.2.x #### What this PR does / why we need it: 文章、独立页面、分类、标签支持自动生成别名。 策略: 1. 仅在创建时会自动根据标题或者名称自动生成别名,编辑时如果需要重新生成,可以点击输入框右侧的按钮。 2. 中文会被转为拼音并用 - 隔开,需要注意多音字的情况,目前无法保证多音字是否符合预期。 3. 使用了 https://www.npmjs.com/package/transliteration 库。 #### Which issue(s) this PR fixes: Fixes halo-dev#3171 #### Screenshots: <img width="782" alt="image" src="https://user-images.githubusercontent.com/21301288/213849446-18d70974-7b2c-420c-bd50-93d2c3193895.png"> #### Special notes for your reviewer: 测试方式: 1. 需要 `pnpm install` 4. 测试文章、独立页面、分类、标签创建时,是否可以自动设置别名。 5. 测试别名输入框右侧的生成别名按钮是否正常工作。 6. 测试分类和标签选择器创建新分类或标签时,是否正确设置了别名。 #### Does this PR introduce a user-facing change? ```release-note Console 端的文章、独立页面、分类、标签支持自动生成别名 ```
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
Labels
approved
Indicates a PR has been approved by an approver from all required OWNERS files.
kind/feature
Categorizes issue or PR as related to a new feature.
lgtm
Indicates that a PR is ready to be merged.
release-note
Denotes a PR that will be considered when it comes time to generate release notes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind feature
/milestone 2.2.x
What this PR does / why we need it:
文章、独立页面、分类、标签支持自动生成别名。
策略:
Which issue(s) this PR fixes:
Fixes halo-dev/halo#3171
Screenshots:
Special notes for your reviewer:
测试方式:
pnpm install
Does this PR introduce a user-facing change?