Merged
Conversation
Regex and Replacer can be reused. No need to recreate for each invocation. Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
* replace empty interface with any * run fmt via golangci-lint related to #1432 Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
* gocritic * misspell * modernize (aside, bumping go would be nice) * testifylint * unconvert * unparam * whitespace related to #1432 Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
Translations of items that had not yet been translated. Adjustments to translations already made.
turkish translations improved Co-authored-by: dashuai <lishuailing@sifou.com>
# Conflicts: # i18n/pl_PL.yaml # i18n/tr_TR.yaml
…nd enhance editor functionalities - Added TipTap extensions for image, placeholder, table, and markdown support. - Implemented WYSIWYG and Markdown editor components. - Refactored editor context and tool items to utilize the new editor interface. - Updated styles for the WYSIWYG editor. - Removed deprecated utility functions and integrated new command methods for better editor interaction.
) ## Summary - Show success toast notification after user is added - Refresh user list and navigate to 'normal' filter on page 1 to display the newly added user ## Problem When adding a user in Admin -> Users, the page had no feedback after submission (as reported in #1457). **Root cause:** The code only refreshed the user list if the current filter was "all" or "staff", but the default filter is "normal". Additionally, there was no success toast notification. ## Solution 1. Added toast notification to confirm successful user creation 2. After adding user, navigate to "normal" filter page 1 and refresh the list so the new user is visible ## Test plan 1. Go to Admin -> Users 2. Click "Add User" 3. Submit user information 4. ✅ Success toast should appear 5. ✅ Page should navigate to "normal" filter 6. ✅ Newly added user should be visible in the list Fixes #1457 --------- Co-authored-by: LinkinStars <linkinstar@foxmail.com>
…dating existing ones
…ommand methods - Removed unnecessary conditional rendering in the MDEditor component for the PluginRender. - Simplified the MarkdownEditor component's useEffect hooks for better clarity. - Refactored command methods to utilize self-referencing for improved maintainability.
…RichEditor component - Updated the editor mode from WYSIWYG to Rich in the MDEditor component. - Introduced a new RichEditor component utilizing TipTap for enhanced editing capabilities. - Adjusted styles and references in the editor components to reflect the new naming convention.
…alization logic - Introduced BaseEditorProps interface to standardize props across MarkdownEditor and RichEditor components. - Improved initialization logic in RichEditor and MarkdownEditor to handle editor state more effectively. - Updated useEditor hook to support initial values and prevent unnecessary updates during prop changes. - Refactored command methods to utilize dispatch for state changes in CodeMirror editor.
…policies and security endpoints
…umTags to SiteQuestionsReq
…om siteInfoCommonService
…ent, regardless of functional split or reorganization
1. Add AI assistant-related business. 2. Add Mcp related configuration in the management background
related to #1432 Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
# Conflicts: # go.mod # internal/base/translator/provider.go
# Conflicts: # docs/docs.go # docs/swagger.json # docs/swagger.yaml # internal/base/constant/site_type.go # internal/controller/ai_controller.go # internal/controller/siteinfo_controller.go # internal/migrations/migrations.go # internal/schema/siteinfo_schema.go # internal/service/mock/siteinfo_repo_mock.go
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.