Skip to content

Add template path configuration #202

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
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

blackWins
Copy link
Contributor

image

添加模板管理功能
Add template management feature

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a new template management feature, including UI components, state handling, and persistence of recent templates.

  • Introduces ICurrentTemplate and its implementation to track the active template
  • Adds toolbar dropdown (TemplateSwitch) and full management page under /Templates
  • Implements backend services (TemplateAppService, RecentlyTemplatesManager) and DTOs

Reviewed Changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.

Show a summary per file
File Description
GuiToolbarContributor.cs Registers the template switch in the toolbar
ICurrentTemplate.cs / CurrentTemplate.cs Defines and implements current‐template state service
TemplateManagementBase.cs, Index.razor(.cs) Core template management UI and state refresh logic
Components/TemplateSwitch.razor(.cs) Toolbar dropdown for switching and opening templates
ExecutableComponentBase* Injects CurrentTemplate and updates input DTOs
TemplateAppService.cs, RecentlyTemplatesManager.cs Backend logic for listing, using, and deleting templates
TemplateDto.cs DTO with custom Equals override
InputDtoWithDirectory.cs Extends input DTO to include TemplatePath
Localization JSONs Adds translations for template-related strings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant