-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Fix package link setting can only list limited repositories #35394
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
Merged
silverwind
merged 21 commits into
go-gitea:main
from
lunny:lunny/fix_package_link_search_repo
Sep 10, 2025
Merged
Changes from 5 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4343688
Fix package link setting can only list limited repositories
lunny 18a1050
Remove unused file
lunny f623d68
Merge branch 'main' into lunny/fix_package_link_search_repo
lunny 4c6ef5f
Merge branch 'main' into lunny/fix_package_link_search_repo
lunny 7a7e4ad
Merge branch 'main' into lunny/fix_package_link_search_repo
lunny 538536d
fix
lunny 0b34ff8
Merge branch 'main' into lunny/fix_package_link_search_repo
lunny 3f82970
Merge branch 'lunny/fix_package_link_search_repo' of github.com:lunny…
lunny d4645fd
improvements
lunny 4146753
Add html escape for repository full name
lunny c0a2fd3
improvements
lunny b834153
fix
wxiaoguang 7c62d08
improvements
lunny f7156c6
Merge branch 'main' into lunny/fix_package_link_search_repo
lunny fdc0bcd
Merge branch 'lunny/fix_package_link_search_repo' of github.com:lunny…
lunny 1f91aa7
Merge branch 'main' into lunny/fix_package_link_search_repo
lunny 77f022d
Merge branch 'main' into lunny/fix_package_link_search_repo
GiteaBot 0f9ce74
Merge branch 'main' into lunny/fix_package_link_search_repo
GiteaBot d81cb1e
improvement the package link description
lunny 99603c6
Merge branch 'lunny/fix_package_link_search_repo' of github.com:lunny…
lunny b004ef5
Merge branch 'main' into lunny/fix_package_link_search_repo
GiteaBot 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
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
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
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,31 @@ | ||
| import {fomanticQuery} from '../../modules/fomantic/base.ts'; | ||
|
|
||
| const {appSubUrl} = window.config; | ||
|
|
||
| export function initCompSearchRepoBox() { | ||
| // on the page "page-content organization teams" | ||
| const $searchRepoBox = fomanticQuery('#search-repo-box'); | ||
| const showFullName = $searchRepoBox.data('full-name'); | ||
wxiaoguang marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| $searchRepoBox.search({ | ||
| minCharacters: 2, | ||
| apiSettings: { | ||
| url: `${appSubUrl}/repo/search?q={query}&uid=${$searchRepoBox.data('uid')}`, | ||
| onResponse(response: any) { | ||
| const items = []; | ||
| for (const item of response.data) { | ||
| let title = item.repository.full_name.split('/')[1]; | ||
| if (showFullName) { | ||
| title = item.repository.full_name; | ||
| } | ||
| items.push({ | ||
| title, | ||
| description: item.repository.full_name, | ||
wxiaoguang marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
wxiaoguang marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }); | ||
| } | ||
| return {results: items}; | ||
| }, | ||
| }, | ||
| searchFields: ['full_name'], | ||
| showNoResults: false, | ||
| }); | ||
| } | ||
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,5 @@ | ||
| import {initCompSearchRepoBox} from './comp/SearchRepoBox.ts'; | ||
|
|
||
| export function initPackageSettings() { | ||
| initCompSearchRepoBox(); | ||
| } |
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.
on the same owner.No idea whether it is right English: "on".
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.
under the same ownerwould read better I thinkThere 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.
d81cb1e