-
Notifications
You must be signed in to change notification settings - Fork 452
Feat/document: Add documents of app-preview & resource-management #1687
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
Open
betterdancing
wants to merge
11
commits into
opentiny:develop
Choose a base branch
from
betterdancing:feat/model-app-preview-document
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
cab32a4
feat(document): add app-preview & resouce-management doc
betterdancing 48decf7
feat(doc)
betterdancing 583c4c8
Add files via upload
betterdancing 5887182
Add files via upload
betterdancing 039e5c2
Add files via upload
betterdancing 117d92b
Add files via upload
betterdancing a725ac3
Add files via upload
betterdancing e946fc7
Merge branch 'develop' of https://github.com/betterdancing/tiny-engin…
betterdancing 4e47562
Add files via upload
betterdancing eec207b
Merge branch 'feat/model-app-preview-document' of https://github.com/…
betterdancing 51a763f
feat(document)
betterdancing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # 资源管理 | ||
|
|
||
| > 资源管理插件可以管理该应用下的静态资源,包括各种图片图标等,可以新增分类,可以新增资源URL链接,可以上传资源,以及对资源的增删操作及分类的增删改操作 | ||
|
|
||
|
|
||
| ### 新增分类 | ||
|
|
||
|  | ||
|
|
||
| 分类即对资源类型进行分组管理,如基础图标库,XXX模块资源库,只需点击新增分类图标,然后填入名称、描述,点击保存即可完成新增操作 | ||
|
|
||
| ### 新增资源 | ||
|
|
||
|  | ||
| 点击分类打开分类管理面板,在该面板点击添加资源按钮,在弹窗里可以选择通过URL添加和上传,通过URL添加必须输入资源名称和资源URL,资源名称和URL唯一,已添加的资源列表可以随时点击行进行操作调整,添加足够的资源并确定无误后,点击确定批量添加资源 | ||
|
|
||
| ### 删除、复制资源 | ||
|
|
||
| 在资源右上角的more-icon处hover会弹出复制和删除的操作,复制会复制该资源的URL,删除则需要二次确认方可删除 | ||
|
|
||
|  | ||
|
|
||
| ### 批量操作资源 | ||
|
|
||
| 点击批量操作,会在该按钮左侧弹出可以进行的批量操作,目前只有批量删除功能,资源列表中的内容变为可勾选,勾选需要操作的资源后,点击删除即可完成批量删除(需要二次确认) | ||
|
|
||
|  | ||
|
|
||
| ### 编辑资源分类 | ||
|
|
||
| 在资源分类列表上hover会出现齿轮的图标,点击即可编辑分类信息,编辑完成后点击保存即可完成修改 | ||
|
|
||
|  | ||
|
|
||
| #### 使用资源 | ||
|
|
||
| 我们在图片的物料中内置了选择资源的组件 SourceSelectConfigurator,只要配置了这个Configurator的组件都可以进行资源选择并绑定 | ||
|
|
||
|  | ||
|
|
||
| #### 其他组件使用资源 | ||
|
|
||
| 如果需要在其他组件或自定义组件中使用资源,只需要配置bundle.json中相关的属性即可 | ||
|  |
This file contains hidden or 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
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.
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.
🧩 Analysis chain
Verify new documentation files exist.
The catalog now references three new or relocated documentation files. Ensure that all referenced files exist and are correctly placed:
docs/basic-features/resources-management.md(new)docs/basic-features/page-app-and-block-preview.md(updated)docs/advanced-features/model-driven.md(new in development section)Also applies to: 46-49
🏁 Script executed:
Length of output: 4248
🏁 Script executed:
Length of output: 2261
🏁 Script executed:
Length of output: 3191
🏁 Script executed:
Length of output: 3663
Add content to model-driven.md — currently empty.
All three referenced documentation files exist in their correct subdirectories and are properly registered in the catalog structure:
docs/basic-features/resources-management.mddocs/basic-features/page-app-and-block-preview.mdHowever,
docs/advanced-features/model-driven.mdis an empty file (0 bytes). This file must have documentation content before merging.🤖 Prompt for AI Agents