1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-04-08 17:05:45 +02:00

2004 Commits

Author SHA1 Message Date
wxiaoguang
3063e37802
Fix markdown frontmatter rendering () ()
Backport 
Fix 
2025-04-03 15:26:43 +08:00
wxiaoguang
dd901983c0
Fix repo-template.ts error in 1.23 ()
Fix 
2025-03-29 12:30:27 -07:00
wxiaoguang
5d81f6d73f
Adjust the layout of the toolbar on the Issues/Projects page () ()
And fix layout for mobile

Backport  

Fix 

---------

Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
2025-03-28 12:37:27 +00:00
Giteabot
eee4a752a5
Simplify emoji rendering () ()
Backport  by silverwind

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-28 10:30:29 +00:00
wxiaoguang
b3516767fb
fix org repo creation being limited by user limits () ()
Backport 
2025-03-28 07:59:46 +00:00
Giteabot
35983ac0a8
Polyfill WeakRef () ()
Backport  by wxiaoguang

Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-27 00:13:22 +08:00
wxiaoguang
6f8e62fa9c
Fix some UI problems for 1.23 ()
Partially backport  
2025-03-11 23:16:33 +08:00
wxiaoguang
d03e7fd65e
Support disable passkey auth () ()
* Backport 
* Backport 

---------

Co-authored-by: yp05327 <576951401@qq.com>
2025-03-07 21:31:25 +02:00
wxiaoguang
2cc76009dc
Fix navbar dropdown item align ()
1.23 only

Fix 
2025-03-04 16:52:54 +08:00
Giteabot
ae595aa913
Improve Open-with URL encoding () ()
Backport  by wxiaoguang

Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-22 01:57:17 +08:00
Giteabot
9da6d4ea85
Fix mCaptcha bug () ()
Backport  by wxiaoguang

Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-21 00:21:31 +08:00
Giteabot
9780da583d
Fix issue sidebar dropdown keyboard support () ()
Backport  by wxiaoguang

Just a quick fix, fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-31 10:11:51 +08:00
Giteabot
6f3837284d
Fix flex width () ()
Backport  by wxiaoguang

Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-27 17:16:21 +00:00
wxiaoguang
c30f4f4be5
Fix issue suggestion bug () ()
Backport 
2025-01-27 19:11:13 +08:00
Giteabot
2196ba5e42
Clone button enhancements () ()
Backport  by @silverwind

- Add box-shadow to default tippy theme
- Make colors for tabs match the ones from `.ui.tabular.menu`
- Remove tippy arrow and slightly offset tooltip closer to the button
- Fix setting of `aria-haspopup` when default role is used with tippy

<img width="335" alt="image"
src="https://github.com/user-attachments/assets/8633ebac-a43f-457a-86bd-7a88a83519ee"
/>

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-26 19:20:57 +01:00
Giteabot
12347f07ae
Repo homepage styling tweaks () ()
Backport  by @silverwind

Reduce it to a value that results in `.repo-home-sidebar-top` and
`.repo-home-sidebar-bottom` having 240px content width, the same as
GitHub.

Co-authored-by: silverwind <me@silverwind.io>
2025-01-24 13:41:01 -05:00
wxiaoguang
4ffa49aa04
Make issue suggestion work for all editors () ()
Backport 

And do not handle special keys when the text-expander popup exists
2025-01-21 21:09:37 +08:00
wxiaoguang
eef635523a
Make tracked time representation display as hours () ()
Try to backport , the only trivial conflict is in the helper
functions map in the helper.go

Fix 

Co-authored-by: Sysoev, Vladimir <i@vsysoev.ru>
2025-01-21 06:49:58 +08:00
wxiaoguang
bf664c2e85
Trivial fixes () ()
Backport 

The only conflict is caused by `templates/shared/issueicon.tmpl`
2025-01-18 03:09:17 +08:00
wxiaoguang
c09e43acf5
Fix closed dependency title () ()
Backport 
2025-01-15 16:05:01 +00:00
Giteabot
10b6047498
Fix upload file form () ()
Backport  by @wxiaoguang

Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-13 01:49:56 +02:00
wxiaoguang
1454e1b6eb
Fix editor markdown not incrementing in a numbered list () ()
Backport  (no conflict)

Co-authored-by: Harry Vince <47283812+harryvince@users.noreply.github.com>
2025-01-10 16:00:22 +08:00
wxiaoguang
531f36ea4a
Fix git remote error check, fix dependencies, fix js error () ()
And update some dependencies to fix bugs.

Backport  , 

Fix 
Fix 
Fix 

---------

Co-authored-by: yp05327 <576951401@qq.com>
2025-01-08 05:08:44 +00:00
wxiaoguang
e637008fe3
Fix empty git repo handling logic and fix mobile view () ()
Backport  and UI fix from main (including )
2025-01-05 23:18:02 +08:00
wxiaoguang
fd281518ae
Fix line-number and scroll bugs () ()
Partially backport  

Fix the scroll bug in issue/pr view page.

Fix a JS error when line number exceeds the max
2025-01-03 23:50:39 +02:00
wxiaoguang
7a35f90b29
Fix broken forms () 2025-01-03 03:57:34 +08:00
Giteabot
3df11c07a8
Make issue suggestion work for new PR page () ()
Backport  by wxiaoguang

Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-31 03:56:34 +00:00
Giteabot
fef364e7d6
Fix bug automerge cannot be chosed when there is only 1 merge style () ()
Backport  by @lunny

This is a quick bug fix. Even if there is only 1 merge style, the
dropdown menu will still be displayed to allow users to choose
automerge.

Fix 

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2024-12-30 11:42:08 +08:00
wxiaoguang
ce6464123f
fix toggle commit body button ui when latest commit message is long () ()
backport  and 
2024-12-29 17:54:23 +00:00
Giteabot
f27128bf94
fix scoped label ui when contains emoji () ()
Backport  by metiftikci

Co-authored-by: metiftikci <metiftikci@hotmail.com>
2024-12-28 04:34:53 +00:00
Giteabot
0e0ebf68d7
fix textarea newline handle () ()
Backport  by metiftikci

Co-authored-by: metiftikci <metiftikci@hotmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-25 13:10:14 +08:00
wxiaoguang
e98dd6ee5b
Backport 1.23 ()
Co-authored-by: delvh <dev.lh@web.de>
2024-12-17 11:58:27 +08:00
wxiaoguang
d28a4843b8
Fix incomplete Actions status aggregations ()
fix 
2024-12-16 11:18:00 +08:00
silverwind
c8ea41b049
Fix remaining typescript issues, enable tsc ()
Fixes 79 typescript errors. Discovered at least two bugs in
`notifications.ts`, and I'm pretty sure this feature was at least
partially broken and may still be, I don't really know how to test it.

After this, only like ~10 typescript errors remain in the codebase but
those are harder to solve.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-16 05:02:32 +08:00
silverwind
74b06d4f5c
Repo file list enhancements ()
1. restore background color
2. fix border radius on top/bottom and on hover
3. parent link is now full-row again, much easier to click
4. parent link now uses directory icon, matching github
5 changed grid layout to remove auto width on file name column which could get too small.
6. mobile layout now shows more of the filename.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-15 16:56:56 +00:00
silverwind
df9a78cd04
Tweak repo sidebar ()
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
silverwind
1a07ebe549
Fix overflow on org header () 2024-12-14 06:50:12 +00:00
wxiaoguang
cc5ff98e0d
Refactor markdown math render ()
Add more tests
2024-12-14 13:43:05 +08:00
silverwind
bed563e574
Improve JSX/TSX support in code editor ()
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
wxiaoguang
5bc030efa2
Fix various UI bugs () 2024-12-13 01:45:32 -05:00
hiifong
30008fcfcf
Fix bug of branch/tag selector in the issue sidebar ()
Fix: 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-13 00:45:06 +00:00
Lunny Xiao
6370d2fb93
Detect whether action view branch was deleted ()
Fix  

![图片](https://github.com/user-attachments/assets/a5a7eef8-0fea-4242-b199-1b0b73d9bbdb)
2024-12-12 19:28:23 +00:00
Chai-Shi
c9487a755b
Add "n commits" link to contributors in contributors graph page ()
Fixes Issue  and inherit PR 

- I should extend the  fork but the fork is not synced, so I
created another PR.
- Use `silenced` class for the link, as in 

---------

Co-authored-by: Ben Chang <ben_chang@htc.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-12 19:02:54 +00:00
wxiaoguang
00e2b339b6
Fix "unicode escape" JS error ()
<details>


![image](https://github.com/user-attachments/assets/98aef2fb-791e-4b4a-b2ac-e880f8a52040)


![image](https://github.com/user-attachments/assets/532673ae-c4cf-4d84-a5c6-93e6eacd341c)


![image](https://github.com/user-attachments/assets/2a241a3d-b7f6-44ca-89d9-9d68386fbf3e)


![image](https://github.com/user-attachments/assets/1251e43d-41f2-42d1-a23b-3182e3812c3d)

</details>

---------

Co-authored-by: silverwind <me@silverwind.io>
2024-12-12 18:37:44 +00:00
wxiaoguang
1e751d81b3
Fix JS error when dropping a file to a editor without dropzone ()
`dropzoneEl` may not exist
2024-12-12 12:37:25 +08:00
wxiaoguang
17f0411441
Fix clone panel js error ()
side effect of jquery removal, fix 
2024-12-12 02:01:20 +00:00
wxiaoguang
4814f43af7
Fix repo home file list ()
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
Blender Defender
18061af490
Rearrange Clone Panel ()
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
silverwind
8a53a39c42
Fix a number of typescript errors ()
Fixes 96 typescript errors. Behaviour changes are commented below.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-11 09:29:04 +01:00
wxiaoguang
e619384098
Add label/author/assignee filters to the user/org home issue list ()
Replace , fix 

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