summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add `/options/license` and `/options/gitignore` to `.ignore` (#30219)silverwind2024-04-071-1/+3
| | | | | | | Ignore this folder in tools like `rg` or `ag`. Also sorted the entries alphabetically. (cherry picked from commit 934fa46f769f0b90fc319054612d4f5c9a4c46ba)
* Remove fomantic input module (#30194)silverwind2024-04-0711-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.
* Remove most jQuery function calls from the repository topic box (#30191)Yarden Shoham2024-04-075-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)
* Prevent flash of dropdown menu on labels list (#30215)silverwind2024-04-072-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)
* Remove jQuery class from the `repo-issue.js` file (#30192)Yarden Shoham2024-04-071-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)
* Ignore fomantic folder in linters (#30200)silverwind2024-04-072-0/+2
| | | | | | | We are not linting these files but editor integrations will still try to lint, disable that. (cherry picked from commit 38d56ca10600bdb867b363be717f7cf5d176297a)
* Make a distinction between `active` and `selected` in the issue author ↵Yarden Shoham2024-04-071-1/+3
| | | | | | | dropdown (#30207) Signed-off-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit f8fbaaf26fa7798fde690f4400910069fbccd40e)
* Move and simplify tab-size helpers (#30196)silverwind2024-04-072-80/+17
| | | | | | | Tailwind does not support. Dropped the vendor-prefix. Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit 44dd6d6927180a4d36b3811fd2fb7557d0b44adb)
* Fix GPG subkey verify (#30193)KN4CK3R2024-04-071-0/+4
| | | | | | | | Fixes #30189 Can't verify subkeys if they are not loaded. (cherry picked from commit 82ffd91607ba03907ebad31ec9a38555b153a331)
* Fix unclickable checkboxes (#30195)silverwind2024-04-072-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)
* Remove jQuery class from the issue author dropdown (#30188)Yarden Shoham2024-04-071-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)
* Remove jQuery class from the comment edit history (#30186)Yarden Shoham2024-04-071-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)
* Remove jQuery class from the repository branch settings (#30184)Yarden Shoham2024-04-071-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)
* Remove jQuery class from the project page (#30183)Yarden Shoham2024-04-071-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)
* Remove jQuery class from the comment context menu (#30179)Yarden Shoham2024-04-071-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)
* Include encoding in signature payload (#30174)KN4CK3R2024-04-073-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)
* Add `stylelint-value-no-unknown-custom-properties` and convert stylelint ↵silverwind2024-04-074-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.
* Remove jQuery class from the commit button (#30178)Yarden Shoham2024-04-071-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)
* Remove jQuery class from the diff view (#30176)Yarden Shoham2024-04-072-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)
* Remove jQuery class from the notification count (#30172)Yarden Shoham2024-04-071-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)
* Remove jQuery class from the code range selection (#30173)Yarden Shoham2024-04-071-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)
* Add setting to disable user features when user login type is not plain (#29615)Jack Hay2024-04-078-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.
* Remove jQuery class from the image diff (#30140)Yarden Shoham2024-04-071-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)
* Remove fomantic checkbox module (#30162)silverwind2024-04-0718-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)
* replace jquery-minicolors with coloris (#30055)silverwind2024-04-0718-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)
* Add API for `Variables` (#29520)sillyguodong2024-04-0716-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.
* Fix `DEFAULT_SHOW_FULL_NAME=false` has no effect in commit list and commit ↵yp053272024-04-073-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)
* Add gap to commit status details (#30284)silverwind2024-04-071-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)
* Merge pull request '[BUG] Fix admin layout' (#3087) from ↵Earl Warren2024-04-061-4/+2
|\ | | | | | | | | | | | | gusted/forgejo-admin-layout into forgejo Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3087 Reviewed-by: 0ko <0ko@noreply.codeberg.org>
| * [BUG] Fix admin layoutGusted2024-04-061-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
* | Add vars context to cron jobs (#3059)TheFox0x72024-04-061-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>
* | Merge pull request 'Add unit tests for update git hook' (#3081) from ↵Gusted2024-04-062-22/+58
|\ \ | | | | | | | | | | | | | | | | | | | | | gusted/forgejo-hook-test into forgejo Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3081 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: oliverpool <oliverpool@noreply.codeberg.org>
| * | Add unit tests for update git hookGusted2024-04-062-22/+58
| |/ | | | | | | | | | | - Add unit tests. - Handle the 'impossible' case of not enough arguments. - Ref: https://codeberg.org/forgejo/forgejo/pulls/2834
* / [FEAT] Support Include/Exclude Filters for Grep (#3058)Shiny Nematoda2024-04-063-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>
* Merge pull request 'Sort `BuiltinApplicationsClientIDs()` in test' (#3075) ↵Gusted2024-04-061-1/+4
|\ | | | | | | | | | | | | | | from gusted/forgejo-sort into forgejo Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3075 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: oliverpool <oliverpool@noreply.codeberg.org>
| * Sort `BuiltinApplicationsClientIDs()` in testGusted2024-04-061-1/+4
| | | | | | | | - Ref https://codeberg.org/forgejo/forgejo/pulls/3069#issuecomment-1736290
* | Merge pull request 'Fix "view file" button in diff compare view' (#3046) ↵Gusted2024-04-062-1/+32
|\ \ | | | | | | | | | | | | | | | | | | | | | from Mai-Lapyst/forgejo:fix-diffcompare-viewfile-url into forgejo Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3046 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: Gusted <gusted@noreply.codeberg.org>
| * | Update integration testMai-Lapyst2024-04-061-2/+3
| | |
| * | Add integration testMai-Lapyst2024-04-051-0/+30
| | |
| * | Fix view file button in diff compareMai-Lapyst2024-04-051-1/+1
| | |
* | | Merge pull request 'Add optional pronoun field in user settings' (#1518) ↵Gusted2024-04-0621-1/+331
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | from hazy/forgejo:feat/pronoun-field into forgejo Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1518 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Reviewed-by: Gergely Nagy <algernon@noreply.codeberg.org>
| * | | use EqualValues in test of pronouns not being displayed when unspecifiedhazycora2024-04-031-1/+1
| | | |
| * | | Add a new test for "Unspecified" pronounsGergely Nagy2024-04-031-0/+21
| | | | | | | | | | | | | | | | Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
| * | | remove unused assignmenthazycora2024-04-031-1/+1
| | | |
| * | | Add tests for the Pronouns fieldGergely Nagy2024-04-031-0/+162
| | | | | | | | | | | | | | | | Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
| * | | Enable user pronoun editing from the admin uiGergely Nagy2024-04-033-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While users can edit their own pronouns, the admin UI enables an admin to edit *any* user setting. As such, pronouns should be editable here, too. For the sake of simplicity, the input here is a simple text input field, rather than a dropdown. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
| * | | services/convert/user: Convert pronouns properlyGergely Nagy2024-04-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When converting from a `user_model.User` to `api.User` or `api.UserSettings`, convert the `Pronouns` field too. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
| * | | Add Pronouns to the User and UserSettings api structsGergely Nagy2024-04-032-0/+12
| | | | | | | | | | | | | | | | Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
| * | | only add name attribute to pronouns input in JS, to ensure fallback workshazycora2024-04-032-1/+2
| | | |
| * | | add some commentshazycora2024-04-032-0/+6
| | | |