summaryrefslogtreecommitdiffstats
path: root/routers (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-04-07Remove fomantic input module (#30194)silverwind11-813/+208
Another pure CSS module. Some styling is part of the `form` module which will likely follow next. (cherry picked from commit ff334749f58c71980ec19143bc21c0a799074b30) Conflicts: - web_src/js/components/DashboardRepoList.vue Resolved the conflict by manually applying the Gitea change.
2024-04-07Remove most jQuery function calls from the repository topic box (#30191)Yarden Shoham5-75/+54
Remove most jQuery function calls --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit 0497b2607d1052e771af4017c2c4180adb7d86b2)
2024-04-07Prevent flash of dropdown menu on labels list (#30215)silverwind2-1/+7
On the labels list, This `left` class caused the dropdown content to flash on page load until JS had hidden it. Remove it as I see no purpose to it. <img width="215" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/9e1de97f-dd89-41e0-9229-5c4a786ba762"> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit 8da9130c1ffe93e0e97290fddb908ae5b67432e2)
2024-04-07Remove jQuery class from the `repo-issue.js` file (#30192)Yarden Shoham1-70/+85
Switched from jQuery class functions to plain JavaScript `classList`. Tested the following functionalities and they work as before: - delete issue comment - cancel code comment - update (merge or rebase) pull request - re-request review - reply to code comment - show/hide outdated comments - add code comment - edit issue title --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io> (cherry picked from commit ef5892d988f71743c7f5446bc6ce69cb4384455b)
2024-04-07Ignore fomantic folder in linters (#30200)silverwind2-0/+2
We are not linting these files but editor integrations will still try to lint, disable that. (cherry picked from commit 38d56ca10600bdb867b363be717f7cf5d176297a)
2024-04-07Make a distinction between `active` and `selected` in the issue author ↵Yarden Shoham1-1/+3
dropdown (#30207) Signed-off-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit f8fbaaf26fa7798fde690f4400910069fbccd40e)
2024-04-07Move and simplify tab-size helpers (#30196)silverwind2-80/+17
Tailwind does not support. Dropped the vendor-prefix. Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit 44dd6d6927180a4d36b3811fd2fb7557d0b44adb)
2024-04-07Fix GPG subkey verify (#30193)KN4CK3R1-0/+4
Fixes #30189 Can't verify subkeys if they are not loaded. (cherry picked from commit 82ffd91607ba03907ebad31ec9a38555b153a331)
2024-04-07Fix unclickable checkboxes (#30195)silverwind2-5/+14
Fix https://github.com/go-gitea/gitea/issues/30185, regression from https://github.com/go-gitea/gitea/pull/30162. The checkboxes were unclickable because the label was positioned over the checkbox with `padding`. Now it uses `margin` so the checkbox itself will be clickable in all cases. Secondly, I changed the for/id linking to also add missing `for` attributes when `id` is present. The other way around (only `for` present) is currently not handled and I think there are likey no occurences in the code and introducing new non-generated `id`s might cause problems elsewhere if we do, so I skipped on that. (cherry picked from commit 640850e15f56bbe01f5d8ea407f99c79dc38457e)
2024-04-07Remove jQuery class from the issue author dropdown (#30188)Yarden Shoham1-7/+13
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the issue author dropdown functionality and it works as before Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit 72a5d3faa8b65042a4fc7525d511d8942a47dafe)
2024-04-07Remove jQuery class from the comment edit history (#30186)Yarden Shoham1-2/+5
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the comment edit history functionality and it works as before Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit 6aeff21b76fcbb10d5ce9009ed4243c14633d899)
2024-04-07Remove jQuery class from the repository branch settings (#30184)Yarden Shoham1-13/+18
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the repository branch settings functionality and it works as before Signed-off-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit 2b3f7d3e966ab60cb147115303d1992e8b50d4df)
2024-04-07Remove jQuery class from the project page (#30183)Yarden Shoham1-22/+23
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the edit column modal functionality and it works as before Signed-off-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit b535c6ca7b9e8c4bcf5637091ee5ad6d9c807c31)
2024-04-07Remove jQuery class from the comment context menu (#30179)Yarden Shoham1-1/+1
- Switched from jQuery class functions to plain JavaScript - Tested the comment context menu functionality and it works as before --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io> (cherry picked from commit 66f7d47d2c702bab4ca9bcedc1c0ba9ddfa49a17)
2024-04-07Include encoding in signature payload (#30174)KN4CK3R3-0/+75
Fixes #30119 Include the encoding in the signature payload. before ![grafik](https://github.com/go-gitea/gitea/assets/1666336/01ab94a3-8af5-4d6f-be73-a10b65a15421) after ![grafik](https://github.com/go-gitea/gitea/assets/1666336/3a37d438-c70d-4d69-b178-d170e74aa683) (cherry picked from commit b6a3cd4b8dc20ba48d0044a972f6ff0f0de6e49e)
2024-04-07Add `stylelint-value-no-unknown-custom-properties` and convert stylelint ↵silverwind4-223/+263
config to js (#30117) Add [`stylelint-value-no-unknown-custom-properties`](https://github.com/csstools/stylelint-value-no-unknown-custom-properties) which lints for undefined CSS variables. No current violations. To make it work properly with editor integrations, I had to convert the config to JS to be able to pass absolute paths to the plugin, but this is a needed change anyways. (cherry picked from commit f31a88d3cb64106e75bbe8a3502856db71dbacfc) Conflicts: - .github/labeler.yml - .github/workflows/files-changed.yml Removed both, Gitea specific files.
2024-04-07Remove jQuery class from the commit button (#30178)Yarden Shoham1-2/+2
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the commit button disabled toggling functionality and it works as before --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit 42870cf40278e84024ccea41368312451f79a4d6)
2024-04-07Remove jQuery class from the diff view (#30176)Yarden Shoham2-25/+32
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the diff view functionality and it works as before --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io> (cherry picked from commit c487a32bcd093affe3284282ea279d97f52a867f)
2024-04-07Remove jQuery class from the notification count (#30172)Yarden Shoham1-7/+5
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the notification count and it works as before --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit 56ac5f18e8022242316d86c8f3091bce554faebb)
2024-04-07Remove jQuery class from the code range selection (#30173)Yarden Shoham1-3/+5
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the code range selection functionality and it works as before Signed-off-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit 911993429f3bec0ff4440c012b2a8f295673f961)
2024-04-07Add setting to disable user features when user login type is not plain (#29615)Jack Hay8-13/+77
- Adds setting `EXTERNAL_USER_DISABLE_FEATURES` to disable any supported user features when login type is not plain - In general, this is necessary for SSO implementations to avoid inconsistencies between the external account management and the linked account - Adds helper functions to encourage correct use (cherry picked from commit 59d4aadba5c15d02f3b9f0e61abb7476870c20a5) Conflicts: - docs/content/administration/config-cheat-sheet.en-us.md Removed. - modules/setting/admin.go Trivial resolution: pick the newly added struct member.
2024-04-07Remove jQuery class from the image diff (#30140)Yarden Shoham1-9/+20
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the image diff and it works as before --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit 849eee8db70c8999d54350b85ea7a16fc44dc404)
2024-04-07Remove fomantic checkbox module (#30162)silverwind18-1730/+181
CSS is pretty slim already and the `.ui.toggle.checkbox` sliders on admin page also still work. The only necessary JS is the one that links `input` and `label` so that it can be toggled via label. All checkboxes except the markdown ones render at `--checkbox-size: 16px` now. <img width="174" alt="Screenshot 2024-03-28 at 22 15 10" src="https://github.com/go-gitea/gitea/assets/115237/3455c1bb-166b-47e4-9847-2d20dd1f04db"> <img width="499" alt="Screenshot 2024-03-28 at 21 00 07" src="https://github.com/go-gitea/gitea/assets/115237/412be2b3-d5a0-478a-b17b-43e6bc12e8ce"> <img width="83" alt="Screenshot 2024-03-28 at 22 14 34" src="https://github.com/go-gitea/gitea/assets/115237/d8c89838-a420-4723-8c49-89405bb39474"> --------- Co-authored-by: delvh <dev.lh@web.de> (cherry picked from commit 8fd15990c5c8980caf2b9ffefc0b3427efacdc04)
2024-04-07replace jquery-minicolors with coloris (#30055)silverwind18-106/+224
Get rid of one more jQuery dependant and have a nicer color picker as well. Now there is only a single global color picker init because that is all that's necessary because the elements are present on the page when the init code runs. The init is slightly weird because the module only takes a selector instead of DOM elements directly. The label modals now also perform form validation because previously it was possible to trigger a 500 error `Color cannot be empty.` by clearing out the color value on labels. <img width="867" alt="Screenshot 2024-03-25 at 00 21 05" src="https://github.com/go-gitea/gitea/assets/115237/71215c39-abb1-4881-b5c1-9954b4a89adb"> <img width="860" alt="Screenshot 2024-03-25 at 00 20 48" src="https://github.com/go-gitea/gitea/assets/115237/a12cb68f-c38b-4433-ba05-53bbb4b1023e"> (cherry picked from commit dd8dde2be89921b2b1497c6cc5eafdde213429cb)
2024-04-07Add API for `Variables` (#29520)sillyguodong16-74/+2102
close #27801 --------- Co-authored-by: silverwind <me@silverwind.io> (cherry picked from commit 62b073e6f31645e446c7e8d6b5a506f61b47924e) Conflicts: - modules/util/util.go Trivial resolution, only picking the newly introduced function - routers/api/v1/swagger/options.go Trivial resolution. We don't have UserBadges, don't pick that part. - templates/swagger/v1_json.tmpl Regenerated.
2024-04-07Fix `DEFAULT_SHOW_FULL_NAME=false` has no effect in commit list and commit ↵yp053273-3/+3
graph page (#30096) Fix #20446 This PR will fix the username in: repo home page ![image](https://github.com/go-gitea/gitea/assets/18380374/347c0f70-ea42-432d-aae3-bf87a7e07ae1) repo commit list page ![image](https://github.com/go-gitea/gitea/assets/18380374/b3b1f5d5-c371-4222-ac2e-64b8994c7551) repo commit graph page ![image](https://github.com/go-gitea/gitea/assets/18380374/01b7117c-3aea-4d7d-8bd1-35e5ea942821) pr commit page ![image](https://github.com/go-gitea/gitea/assets/18380374/4d180c30-2150-4348-8eeb-0b4b2559ec19) Will not fix: wiki revisions page: ![image](https://github.com/go-gitea/gitea/assets/18380374/b49df6bf-d751-4374-b7ea-1ac85e2739e3) ps: the author name is `FullName` by default (cherry picked from commit 61036235966773a0af6b690b10b33ff8222df1d7)
2024-04-07Add gap to commit status details (#30284)silverwind1-0/+1
Before: <img width="162" alt="Screenshot 2024-04-05 at 02 25 27" src="https://github.com/go-gitea/gitea/assets/115237/9f786811-3e45-4b3c-aaf9-e1d2cad284d2"> After: <img width="172" alt="Screenshot 2024-04-05 at 02 27 25" src="https://github.com/go-gitea/gitea/assets/115237/f5254877-9e0d-44cb-9605-ba15c75872bb"> (cherry picked from commit 556099fa72f6239aa9446d06265876bc72b021b8)
2024-04-06Add vars context to cron jobs (#3059)TheFox0x71-1/+10
Introduce vars context into cron triggered actions Fixes #3044 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3059 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
2024-04-06[BUG] Fix admin layoutGusted1-4/+2
- Fix the layout of admin pages, it previously was full-width and had the alert at the incorrect place and within an container. - Make the placement of the alert consistent with other pages, inside `flex-container-main` and not wrapped around a container. - We have to revert 145bebc829c03cbb078e518d7364d27bcf60d96c, as this expected that the page contain provided padding, this was provided by the incorrect placement of the alert. As well isn't consistent with how other pages are being shown, non-full width. The solution to the described problem isn't optimal and should rather be fixed with the tables. - Reverts 145bebc829c03cbb078e518d7364d27bcf60d96c - Resolves #3082
2024-04-06Add unit tests for update git hookGusted2-22/+58
- Add unit tests. - Handle the 'impossible' case of not enough arguments. - Ref: https://codeberg.org/forgejo/forgejo/pulls/2834
2024-04-06[FEAT] Support Include/Exclude Filters for Grep (#3058)Shiny Nematoda3-16/+67
fixes `TestRepoSearch` failing occasionally Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3058 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Shiny Nematoda <snematoda.751k2@aleeas.com> Co-committed-by: Shiny Nematoda <snematoda.751k2@aleeas.com>
2024-04-06Sort `BuiltinApplicationsClientIDs()` in testGusted1-1/+4
- Ref https://codeberg.org/forgejo/forgejo/pulls/3069#issuecomment-1736290
2024-04-06Update integration testMai-Lapyst1-2/+3
2024-04-06[BUG] Don't remove builtin OAuth2 applicationsGusted4-3/+93
- When the database consistency is being run it would check for any OAuth2 applications that don't have an existing user. However there are few special OAuth2 applications that don't have an user set, because they are global applications. - This was not taken into account by the database consistency checker and were removed if the database consistency check was being run with autofix enabled. - Take into account to ignore these global OAuth2 applications when running the database consistency check. - Add unit tests. - Ref: https://codeberg.org/Codeberg/Community/issues/1530
2024-04-06Remove useless t.runAda1-10/+7
2024-04-06Add health-check testAda2-21/+49
2024-04-05feat: improve nuget nuspec apiMichael Kriese5-175/+413
2024-04-05Remove old proxy backwards compatibilityAda1-1/+1
2024-04-05Fix #3030 add Cache-Control header for health-checkAda1-0/+1
2024-04-05Refactor LFS GC functionsGusted5-56/+132
- Remove options that currently aren't set on `GarbageCollectLFSMetaObjectsOptions` and `IterateLFSMetaObjectsForRepoOptions`. - Simplify `IterateRepositoryIDsWithLFSMetaObjects` and `IterateLFSMetaObjectsForRepo`. - `IterateLFSMetaObjectsForRepo` was previously able to get in a loop (`gc-lfs` doctor check was able to reproduce this) because the code expected that the records would be updated to not match the SQL query, but that wasn't the case. Simply enforce that only records higher than the latest `id` from the previous iteration are allowed. - For `gc-lfs` doctor check this was because `UpdatedLessRecentlyThan` option was not set, which caused that records just marked as active in the iteration weren't being filtered. - Add unit tests - Most likely a regression from 2cc3a6381cab34113fd2dc2c24ef0efc22c4336d. - The bug with `gc-lfs` was found on Codeberg.
2024-04-05[CHORE] Remove u2f dependencyGusted5-16/+43
- It was only used to parse old U2F data to webauthn credentials. We only used the public key and keyhandle. This functiontionality was reworked to `parseU2FRegistration`. - Tests are already present, `Test_RemigrateU2FCredentials`.
2024-04-05[FIX] webhook creation payload refoliverpool1-4/+2
2024-04-05[TEST] webhook creation payload refoliverpool3-1/+74
2024-04-05CODEOWNERS: add more reviewers (#3054)oliverpool1-0/+6
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3054 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: oliverpool <git@olivier.pfad.fr> Co-committed-by: oliverpool <git@olivier.pfad.fr>
2024-04-05[FEAT] sourcehut webhooksoliverpool28-13/+890
2024-04-05[PORT] Refactor dropzone (#30232)wxiaoguang1-32/+22
Simplify code and use `.files` elements (cherry picked from commit ca297a90fb1fec5b270fad1a3e575916510e7385) Conflicts: web_src/js/features/repo-legacy.js
2024-04-05Add integration testMai-Lapyst1-0/+30
2024-04-05Use people icon instead of person on profiles0ko1-1/+1
2024-04-05[I18N] Provide plural support for followers/following in user profiles0ko34-78/+80
2024-04-05[I18N] Translations update from Weblate (#2982)Codeberg Translate9-92/+293
Translations update from [Weblate](https://translate.codeberg.org) for [Forgejo/forgejo](https://translate.codeberg.org/projects/forgejo/forgejo/). Current translation status: ![Weblate translation status](https://translate.codeberg.org/widget/forgejo/forgejo/horizontal-auto.svg) Co-authored-by: Dirk <Dirk@users.noreply.translate.codeberg.org> Co-authored-by: Eriwi <Eriwi@users.noreply.translate.codeberg.org> Co-authored-by: earl-warren <earl-warren@users.noreply.translate.codeberg.org> Co-authored-by: 0ko <0ko@users.noreply.translate.codeberg.org> Co-authored-by: Salif Mehmed <mail@salif.eu> Co-authored-by: Fjuro <fjuro@alius.cz> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-authored-by: hankskyjames777 <hankskyjames777@users.noreply.translate.codeberg.org> Co-authored-by: Kita Ikuyo <searinminecraft@courvix.com> Co-authored-by: FedericoSchonborn <FedericoSchonborn@users.noreply.translate.codeberg.org> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2982 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: Codeberg Translate <translate@noreply.codeberg.org> Co-committed-by: Codeberg Translate <translate@noreply.codeberg.org>