df9a78cd04
Tweak repo sidebar ( #32847 )
...
Before and after:
<img width="218" alt="Screenshot 2024-12-15 at 04 53 53"
src="https://github.com/user-attachments/assets/299b1f0a-ba72-47c6-b662-a9d540d4d741 "
/>
<img width="222" alt="Screenshot 2024-12-15 at 04 53 41"
src="https://github.com/user-attachments/assets/5a2b5332-e324-4d20-82e9-21d1c850e826 "
/>
Diff without whitespace:
https://github.com/go-gitea/gitea/pull/32847/files?diff=unified&w=1
The `tw-mt-2` is fine even if the element renders empty:
<img width="387" alt="image"
src="https://github.com/user-attachments/assets/76a976e4-ba2e-48a5-9248-c361552a937a "
/>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-15 10:01:46 +00:00
1a07ebe549
Fix overflow on org header ( #32837 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2024-12-14 06:50:12 +00:00
cc5ff98e0d
Refactor markdown math render ( #32831 )
...
Add more tests
2024-12-14 13:43:05 +08:00
bed563e574
Improve JSX/TSX support in code editor ( #32833 )
...
Two tweaks to Monaco to improve JSX/TSX support.
1. Certain language features like JSX/TSX only work when passing `uri`
(containing the filename), do this.
2. Set the `jsx` compiler option to avoid error annotations
Before:
<img width="441" alt="Screenshot 2024-12-13 at 15 11 33"
src="https://github.com/user-attachments/assets/dac245a7-e80f-4249-8e09-13124b03d12a "
/>
After:
<img width="441" alt="Screenshot 2024-12-13 at 15 10 46"
src="https://github.com/user-attachments/assets/726ad712-d116-438d-88da-bc40534b6860 "
/>
2024-12-14 03:10:20 +00:00
5bc030efa2
Fix various UI bugs ( #32821 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2024-12-13 01:45:32 -05:00
30008fcfcf
Fix bug of branch/tag selector in the issue sidebar ( #32744 )
...
Fix : #32731
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-13 00:45:06 +00:00
6370d2fb93
Detect whether action view branch was deleted ( #32764 )
...
Fix #32761

2024-12-12 19:28:23 +00:00
c9487a755b
Add "n commits" link to contributors in contributors graph page ( #32799 )
...
Fixes Issue #29365 and inherit PR #29429
- I should extend the #29429 fork but the fork is not synced, so I
created another PR.
- Use `silenced` class for the link, as in #29847
---------
Co-authored-by: Ben Chang <ben_chang@htc.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-12 19:02:54 +00:00
00e2b339b6
Fix "unicode escape" JS error ( #32806 )
...
<details>




</details>
---------
Co-authored-by: silverwind <me@silverwind.io >
2024-12-12 18:37:44 +00:00
1e751d81b3
Fix JS error when dropping a file to a editor without dropzone ( #32804 )
...
`dropzoneEl` may not exist
2024-12-12 12:37:25 +08:00
17f0411441
Fix clone panel js error ( #32798 )
...
side effect of jquery removal, fix #32797
2024-12-12 02:01:20 +00:00
4814f43af7
Fix repo home file list ( #32788 )
...
1. use grid instead of table, completely drop "ui table" from that list
2. move some "commit sign" related styles into a new file by the way (no
change) because I need to figure out where `#repo-files-table` is used.
3. move legacy "branch/tag selector" related code into repo-legacy.ts,
now there are 13 `import $` files left.
2024-12-11 23:54:42 +08:00
18061af490
Rearrange Clone Panel ( #31142 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m30s
release-nightly / nightly-docker-rootless (push) Failing after 5m25s
Rearrange the clone panel to use less horizontal space.
The following changes have been made to achieve this:
- Moved everything into the dropdown menu
- Moved the HTTPS/SSH Switch to a separate line
- Moved the "Clone in VS Code"-Button up and added a divider
- Named the dropdown button "Code", added appropriate icon
---------
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-11 21:54:30 +08:00
8a53a39c42
Fix a number of typescript errors ( #32773 )
...
Fixes 96 typescript errors. Behaviour changes are commented below.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-11 09:29:04 +01:00
e619384098
Add label/author/assignee filters to the user/org home issue list ( #32779 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m28s
release-nightly / nightly-docker-rootless (push) Failing after 5m29s
cron-translations / crowdin-pull (push) Has been skipped
Replace #26661 , fix #25979
Not perfect, but usable and much better than before. Since it is quite
complex, I am not quite sure whether there would be any regression, if
any, I will fix in first time.
I have tested the related pages many times: issue list, milestone issue
list, project view, user issue list, org issue list.
2024-12-11 06:33:24 +00:00
d061f6b70a
Change typescript module
to nodenext
( #32757 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m31s
release-nightly / nightly-docker-rootless (push) Failing after 5m25s
cron-translations / crowdin-pull (push) Has been skipped
Typescript 5.7 changed semantics around JSON imports and `nodenext` is
now [treated
differently](https://devblogs.microsoft.com/typescript/announcing-typescript-5-7-beta/#validated-json-imports-in---module-nodenext )
than `node16` for JSON imports and it requires the import attribute, so
change the value to that and add the attribute to eliminate this
typescript error.
[`moduleResolution`](https://www.typescriptlang.org/tsconfig/#moduleResolution )
is treated as an alias when `module` is `nodenext`, so we don't need to
specify it.
Also see https://github.com/microsoft/TypeScript/issues/60589 . It
appears the next Typescript release will fix this for `node16`, but I
guess it'll still be good to switch to `nodenext`.
2024-12-10 08:44:39 +00:00
90d20be541
Refactor issue filter (labels, poster, assignee) ( #32771 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m29s
release-nightly / nightly-docker-rootless (push) Failing after 5m26s
Rewrite a lot of legacy strange code, remove duplicate code, remove
jquery, and make these filters reusable.
Let's forget the old code, new code affects:
* issue list open/close switch
* issue list filter (label, author, assignee)
* milestone list open/close switch
* milestone issue list filter (label, author, assignee)
* project view (label, assignee)
2024-12-10 11:38:22 +08:00
1b069dc94a
Make RepoActionView.vue support ##[group]
( #32770 )
2024-12-10 01:57:20 +00:00
57a5e9acf8
Make Monaco theme follow browser, fully type codeeditor.ts ( #32756 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m28s
release-nightly / nightly-docker-rootless (push) Failing after 5m24s
1. Monaco's theme now follows changes in dark/light mode setting, this
works via
[`MediaQueryList`](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList )'s
[change
event](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/change_event ).
2. Fully type the file, it now passes typescript strict mode.
2024-12-09 17:03:36 +00:00
5675efb3e0
Fix duplicate dropdown dividers ( #32760 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m34s
release-nightly / nightly-docker-rootless (push) Failing after 5m26s
cron-translations / crowdin-pull (push) Has been skipped
Fix #27466
The problem is that any item in the menu could be hidden, pure CSS won't
work, and dropdown's builtin "hideDividers" doesn't work with our "scope
dividers". The newly introduced "archived" label makes the dividers
regression more.
2024-12-09 07:54:59 +00:00
2d13eafd69
Remove unnecessary border in repo home page sidebar ( #32767 )
2024-12-09 15:30:16 +08:00
23471e1333
Refactor issue list ( #32755 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m28s
release-nightly / nightly-docker-rootless (push) Failing after 5m24s
cron-translations / crowdin-pull (push) Has been skipped
cron-licenses / cron-licenses (push) Has been skipped
1. add backend support for filtering "poster" and "assignee"
* due to the limits, there is no frontend support at the moment
2. rewrite TS code without jquery, now there are 14 jQuery files left:
2024-12-08 20:44:17 +08:00
ad994780af
fix: render job title as commit message ( #32748 )
...
resolves #32724
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-08 03:23:09 +00:00
1518f4ed12
Fix typescript errors in Vue files, fix regression in "Recent Commits" chart ( #32649 )
...
- Fix all typescript errors in `.vue` files
- Fix regression from https://github.com/go-gitea/gitea/pull/32329 where
"Recent Commits" chart would not render.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-08 02:58:18 +00:00
96d3a03a08
Refactor LabelEdit ( #32752 )
...
And fix a regression:
https://github.com/go-gitea/gitea/pull/30053#discussion_r1874405470
Major changes:
* rewrite without jquery
* remove the "delete modal", using "link-action" is good enough
* merge "new modal" and "edit modal"
2024-12-08 02:35:28 +00:00
faf5705d29
GitHub like repo home page ( #32213 )
...
Move some components (description, license, release, language stats) to sidebar
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-06 14:29:04 +00:00
f7f68e4cc0
Refactor RepoActionView.vue, add ::group::
support ( #32713 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 7m36s
release-nightly / nightly-docker-rootless (push) Failing after 5m27s
1. make it able to "force reload", then the previous pending request
won't block the new request
2. make it support `::group::`
3. add some TS types (but there are still many variables untyped, this
PR is large enough, the remaining types could be added in the future)
2024-12-06 12:04:16 +08:00
936665bf85
Issue time estimate, meaningful time tracking ( #23113 )
...
Redesign the time tracker side bar, and add "time estimate" support (in "1d 2m" format)
Closes #23112
---------
Co-authored-by: stuzer05 <stuzer05@gmail.com >
Co-authored-by: Yarden Shoham <hrsi88@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-05 13:07:53 +00:00
0c3c041c88
Add Arch package registry ( #32692 )
...
Close #25037
Close #31037
This PR adds a Arch package registry usable with pacman.

Rewrite of #25396 and #31037 . You can follow [this
tutorial](https://wiki.archlinux.org/title/Creating_packages ) to build a
package for testing.
Docs PR: https://gitea.com/gitea/docs/pulls/111
Co-authored-by: [d1nch8g@ion.lc ](mailto:d1nch8g@ion.lc )
Co-authored-by: @ExplodingDragon
---------
Co-authored-by: dancheg97 <dancheg97@fmnx.su >
Co-authored-by: dragon <ExplodingFKL@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-04 23:09:07 +00:00
838653d1df
Fix file editor & preview ( #32706 )
...
Fix a regression caused by jQuery removal (`renderPreviewPanelContent`)
And simplify the file editor, it doesn't need to be that complex. And
remove jQuery code.
2024-12-04 09:26:54 +00:00
c9e582c6b6
Refactor markdown editor and use it for milestone description editor ( #32688 )
...
Refactor markdown editor to clarify its "preview" behavior and remove
jQuery code.
Close #15045
---------
Co-authored-by: silverwind <me@silverwind.io >
2024-12-04 02:11:34 +00:00
690d07470c
Fix word overflow in file search page ( #32695 )
2024-12-03 16:52:25 +00:00
576e31ae3b
Add "View all branches/tags" entry to Branch Selector ( #32653 )
...

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-02 20:19:27 +00:00
13fbab5cf4
Remove all "floated" CSS styles ( #32691 )
...
flex but don't float
diff with ignoring spaces :
https://github.com/go-gitea/gitea/pull/32691/files?diff=split&w=1
related pages:
### admin users

### milestone

### user account setting

2024-12-03 03:54:33 +08:00
e3e32605a1
Refactor RepoBranchTagSelector ( #32681 )
2024-12-02 01:41:32 +00:00
1bb1a51f47
Fix JS error when reply comment on Conversation page ( #32685 )
...
Fix #32684 , regression of #32596 (side-effect of jQuery removal: jQuery could tolerate non-existing elements)
And fix another regression bug from #30453 (initCompReactionSelector double-init)
2024-12-02 00:13:58 +08:00
a1f56f83bf
Improve diff file tree ( #32658 )
...
- Unfolded directories now show a "open" icon
- Prevent accidential text selection while toggling directories
- Increase vertical item padding from 3px to 6px
<img width="257" alt="image"
src="https://github.com/user-attachments/assets/d5372306-a666-4732-827e-3ddeee3c711e ">
2024-11-28 12:25:21 +00:00
68d9f36543
Allow cropping an avatar before setting it ( #32565 )
...
Provide a cropping tool on the avatar editing page, allowing users to
select the cropping area themselves. This way, users can decide the
displayed area of the image, rather than us deciding for them.
---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: Giteabot <teabot@gitea.io >
2024-11-28 02:15:59 +00:00
5a50b271e7
Make frontend unit test code could know it is in testing ( #32656 )
...
See the comment of isInFrontendUnitTest
2024-11-28 01:40:32 +08:00
846f618716
Add priority to protected branch ( #32286 )
...
## Solves
Currently for rules to re-order them you have to alter the creation
date. so you basicly have to delete and recreate them in the right
order. This is more than just inconvinient ...
## Solution
Add a new col for prioritization
## Demo WebUI Video
https://github.com/user-attachments/assets/92182a31-9705-4ac5-b6e3-9bb74108cbd1
---
*Sponsored by Kithara Software GmbH*
2024-11-27 05:41:06 +01:00
3fc1bbe971
Regenerate fomantic package-lock.json ( #32650 )
...
Fixes: https://github.com/go-gitea/gitea/security/dependabot/83
Fixes: https://github.com/go-gitea/gitea/security/dependabot/84
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-11-27 04:04:12 +00:00
6e507c45ed
Fix global form submit event ( #32652 )
2024-11-27 11:54:50 +08:00
87bb5ed0bc
Fix: passkey login not working anymore ( #32623 )
...
Quick fix #32595 , use authenticator auth flags to login
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-11-26 16:04:17 +00:00
0f4b0cf892
Refactor some frontend problems ( #32646 )
...
1. correct the modal usage on "admin email list" page (then
`web_src/js/features/admin/emails.ts` is removed)
2. use `addDelegatedEventListener` instead of `jQuery().on`
3. more jQuery related changes and remove jQuery from
`web_src/js/features/common-button.ts`
4. improve `confirmModal` to make it support header, and remove
incorrect double-escaping
5. fix more typescript related types
6. fine tune devtest pages and add more tests
2024-11-26 15:36:55 +00:00
722e703c6b
Bypass vitest bug ( #32647 )
2024-11-26 23:10:45 +08:00
88f5d33ab2
Fix race condition in mermaid observer ( #32599 )
...
This Pull Request addresses a race condition in the updateIframeHeight
function where it is sometimes called when the iframe is not fully
loaded or accessible resulting in an alarming error message for the
user.
To address this we:
1. Add defensive programming within the updateIframeHeight function
2. Delay instantiating the intersection observer until the iframe has
loaded
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-11-26 06:37:24 +00:00
25cacaf0aa
Fixed Issue of Review Menu Shown Behind ( #32631 )
...
Fixed #31144
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-11-26 09:24:56 +08:00
e90753a712
Fix PR diff review form submit ( #32596 )
...
Fix #31622 , there is a longstanding bug in #19612 ,
it doesn't handle submit event, correctly.
2024-11-21 14:09:16 +00:00
675c288811
Fix some typescript issues ( #32586 )
...
Fixes around 30 or so typescript errors. No runtime changes.
2024-11-21 13:57:42 +00:00
07373f1d5d
Improve issue sidebar UI ( #32587 )
...
1. remove duplicate dividers
2. align reviewer items
3. merge & remove unused CSS styles
Before:
<details>


</details>
After:
<details>



</details>
2024-11-21 03:31:54 +00:00