Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.4k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
silverwind merged 21 commits intogo-gitea:mainfromlunny:lunny/fix_package_link_search_repoSep 10, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
21 commits Select commitHold shift + click to select a range
4343688 Fix package link setting can only list limited repositories
lunny18a1050 Remove unused file
lunnyf623d68 Merge branch 'main' into lunny/fix_package_link_search_repo
lunny4c6ef5f Merge branch 'main' into lunny/fix_package_link_search_repo
lunny7a7e4ad Merge branch 'main' into lunny/fix_package_link_search_repo
lunny538536d fix
lunny0b34ff8 Merge branch 'main' into lunny/fix_package_link_search_repo
lunny3f82970 Merge branch 'lunny/fix_package_link_search_repo' of github.com:lunny…
lunnyd4645fd improvements
lunny4146753 Add html escape for repository full name
lunnyc0a2fd3 improvements
lunnyb834153 fix
wxiaoguang7c62d08 improvements
lunnyf7156c6 Merge branch 'main' into lunny/fix_package_link_search_repo
lunnyfdc0bcd Merge branch 'lunny/fix_package_link_search_repo' of github.com:lunny…
lunny1f91aa7 Merge branch 'main' into lunny/fix_package_link_search_repo
lunny77f022d Merge branch 'main' into lunny/fix_package_link_search_repo
GiteaBot0f9ce74 Merge branch 'main' into lunny/fix_package_link_search_repo
GiteaBotd81cb1e improvement the package link description
lunny99603c6 Merge branch 'lunny/fix_package_link_search_repo' of github.com:lunny…
lunnyb004ef5 Merge branch 'main' into lunny/fix_package_link_search_repo
GiteaBotFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
5 changes: 4 additions & 1 deletionoptions/locale/locale_en-US.ini
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
103 changes: 55 additions & 48 deletionsrouters/web/user/package.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
4 changes: 2 additions & 2 deletionsservices/forms/user_form.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
2 changes: 1 addition & 1 deletiontemplates/org/team/repositories.tmpl
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
26 changes: 6 additions & 20 deletionstemplates/package/settings.tmpl
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
7 changes: 3 additions & 4 deletionsweb_src/js/features/common-page.ts
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
26 changes: 26 additions & 0 deletionsweb_src/js/features/comp/SearchRepoBox.ts
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,26 @@ | ||
| import {fomanticQuery} from '../../modules/fomantic/base.ts'; | ||
| import {htmlEscape} from '../../utils/html.ts'; | ||
| const {appSubUrl} = window.config; | ||
| export function initCompSearchRepoBox(el: HTMLElement) { | ||
| const uid = el.getAttribute('data-uid'); | ||
| fomanticQuery(el).search({ | ||
| minCharacters: 2, | ||
| apiSettings: { | ||
| url: `${appSubUrl}/repo/search?q={query}&uid=${uid}`, | ||
| onResponse(response: any) { | ||
| const items = []; | ||
| for (const item of response.data) { | ||
| items.push({ | ||
| title: htmlEscape(item.repository.full_name.split('/')[1]), | ||
| description: htmlEscape(item.repository.full_name), | ||
| }); | ||
| } | ||
| return {results: items}; | ||
| }, | ||
| }, | ||
| searchFields: ['full_name'], | ||
| showNoResults: false, | ||
| }); | ||
| } |
27 changes: 0 additions & 27 deletionsweb_src/js/features/org-team.ts
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
5 changes: 2 additions & 3 deletionsweb_src/js/index-domready.ts
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.