Commit Graph

2263 Commits (08d28090a4931e95b965eb39f7e0d9ecee68f28f)

Author SHA1 Message Date
Lunny Xiao 08d28090a4 Merge branch 'main' into lunny/project_workflow 2025-11-11 11:00:13 -08:00
鲁汀 2223be2cc4
Support blue yellow colorblind theme (#35910)
This icon is from GitHub:

<img width="350" height="350" alt="image"
src="https://github.com/user-attachments/assets/c3f31901-5359-4b7f-ae68-eddcec63df53"
/>

---------

Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com>
Co-authored-by: lutinglt <lutinglt@users.noreply.github.com>
2025-11-11 18:21:15 +00:00
wxiaoguang 9affb513a8
Load jQuery as early as possible to support custom scripts (#35926)
Fix #35923
2025-11-12 00:11:46 +08:00
silverwind eef9406c6b
Contribution heatmap improvements (#35876)
1. Set a fixed height on the element, preventing the content after the
element from shifting on page load. This uses CSS [container query
length
units](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries#container_query_length_units)
as I saw no other way because of the non-linear scaling of the element.
2. Move the "total-contributions" text into the existing vue slot,
eliminating the need for absolute positioning.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-11-06 09:23:48 +01:00
silverwind 23a37b4b77
Remove padding override on `.ui .sha.label` (#35864)
Since upgrading to v1.25, I noticed the SHA labels have slightly
different padding than before. I can't pinpoint exactly which change it
was. Fix it by removing the padding override on `.ui .sha.label` and
make the one on`.ui.label` (`2px 6px`) take effect which matches 1.24
rendering.

Before:

<img width="135" height="172" alt="image"
src="https://github.com/user-attachments/assets/2781a854-be08-4a11-bde0-d3699b2b7454"
/>

After:

<img width="139" height="162" alt="image"
src="https://github.com/user-attachments/assets/5c864fa3-c1f9-4452-ae58-5411dd445865"
/>
2025-11-06 01:32:39 +00:00
silverwind d0ca2f6bc3
Fix pull description code label background (#35865)
Fix visual regression from https://github.com/go-gitea/gitea/pull/35567:

Before:

<img width="612" height="33" alt="image"
src="https://github.com/user-attachments/assets/aee4017c-b8b9-4ac2-9809-9d3eb3fda56c"
/>

After:

<img width="613" height="32" alt="image"
src="https://github.com/user-attachments/assets/ee6624da-b417-4e3b-8773-88c77c2cd672"
/>
2025-11-05 19:18:26 +02:00
Lunny Xiao bf841a831a Merge branch 'main' into lunny/project_workflow 2025-11-04 15:03:35 -08:00
Lunny Xiao be143bdd6e
Delete unused code 2025-11-04 12:53:00 -08:00
Lunny Xiao 7db5b850ca
fix clone workflow 2025-11-04 12:36:00 -08:00
Lunny Xiao 206f4c88b1
Remove wrong code (#35846)
Follow #35821
Fix https://github.com/go-gitea/gitea/pull/35844#issuecomment-3483521045

The reviewed file numbers and progress have been set from backend so
that we don't need to update the numbers when clicking `load more`.
2025-11-04 17:46:17 +00:00
Lunny Xiao c6bd967966
Merge branch 'main' into lunny/project_workflow 2025-11-03 12:23:08 -08:00
silverwind 37208fef7e
Fix a number of `strictNullChecks`-related issues (#35795)
In preparation to work on enabling
https://www.typescriptlang.org/tsconfig/#strictNullChecks, I fixed all
the issues outside of `web_src` that came up when the option was
enabled. There was also one lint issue in web_src that apparently only
came up with the option enabled, so I fixed that as well.

`isTruthy` is introduced because Typescript has a bug regarding
`filter(Boolean)` which they are seemingly unwilling to fix.

---------

Signed-off-by: silverwind <me@silverwind.io>
2025-11-03 20:17:06 +00:00
鲁汀 f2d7931b70
Fix circular spin animation direction (#35785)
Wait for the status icon to rotate clockwise instead of counterclockwise

before:
![GIF 2025-10-30
10-50-07](https://github.com/user-attachments/assets/3771b0bf-44e4-45a0-bde5-1b2b3dd8ba2a)

after:
![GIF 2025-10-30
10-50-43](https://github.com/user-attachments/assets/c45307fe-39a4-4e60-b48e-9d922c407565)

---------

Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: lutinglt <lutinglt@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-11-02 08:30:13 +00:00
Lunny Xiao 4c4a16ccb5 Merge branch 'main' into lunny/project_workflow 2025-10-31 21:32:51 -07:00
silverwind 8b290b87e9
Improve and fix markup code preview rendering (#35777)
1. Add the color on the link to the referenced file, which is the more
likely thing the user wants to click
2. Use monospace font on the SHA
3. Tweak text colors
4. Change SHA link to go to the commit instead of the repo root with
commit filter set
5. Added the repo name to the file link text
6. Fix broken line numbering rendering
2025-10-30 05:15:42 +00:00
bytedream 39c08ce4c1
Update tab title when navigating file tree (#35757)
Fix #35749.

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2025-10-29 13:38:09 +00:00
silverwind fe25997157
Enable `vue/require-typed-ref` eslint rule (#35764)
Enable https://eslint.vuejs.org/rules/require-typed-ref 
and fix discovered issues.
2025-10-29 17:42:06 +08:00
Lunny Xiao 984d4b0a3b
Fix lint 2025-10-28 12:15:59 -07:00
Lunny Xiao 0b41bfa135
Add valid when saving project workflow event 2025-10-28 11:52:37 -07:00
Lunny Xiao df50690df7 Merge branch 'main' into lunny/project_workflow 2025-10-28 11:41:39 -07:00
wxiaoguang 6b5563c54a
Support selecting theme on the footer (#35741)
Fixes: https://github.com/go-gitea/gitea/pull/27576
2025-10-28 18:25:00 +08:00
Lunny Xiao 3f9f725bd1
revert label component change 2025-10-27 10:22:44 -07:00
Lunny Xiao b840641fdc
revert label component change 2025-10-27 10:19:36 -07:00
Lunny Xiao b04d42b00f Merge branch 'main' into lunny/project_workflow 2025-10-27 09:30:40 -07:00
wxiaoguang cddff73bbd
Fix "ref-issue" handling in markup (#35739)
This is a follow up for #35662, and also fix #31181, help #30275, fix #31161
2025-10-27 22:45:07 +08:00
Lunny Xiao fdd3bf04cb
remove unused code 2025-10-25 20:28:16 -07:00
Lunny Xiao 4a2734aaa2
remove unused code 2025-10-25 20:17:03 -07:00
Lunny Xiao 045945d518
Fix label menu 2025-10-25 20:14:20 -07:00
Lunny Xiao 3d636fcbd4
fix bug and add label selector 2025-10-25 19:07:08 -07:00
Lunny Xiao 4efc69cbf3
Fix dark theme 2025-10-25 17:16:28 -07:00
Lunny Xiao 3aef130379
improvements 2025-10-25 16:59:28 -07:00
Lunny Xiao 37196261a6
improvements 2025-10-25 16:46:18 -07:00
Lunny Xiao 65dbaa528c
Remove log 2025-10-25 16:08:30 -07:00
Lunny Xiao 1bffdfe2fb Merge branch 'main' into lunny/project_workflow 2025-10-25 16:06:12 -07:00
Lunny Xiao d6958c50d5
Fix lint 2025-10-25 14:37:46 -07:00
Lunny Xiao e1d2cf47fd
Fix bug 2025-10-25 13:02:38 -07:00
Lunny Xiao f68eee55a1
Fix translations 2025-10-25 11:55:28 -07:00
Zettat123 c9beb0b01f
Support actions and reusable workflows from private repos (#32562)
Resolve https://gitea.com/gitea/act_runner/issues/102

This PR allows administrators of a private repository to specify some
collaborative owners. The repositories of collaborative owners will be
allowed to access this repository's actions and workflows.

Settings for private repos:


![image](https://github.com/user-attachments/assets/e591c877-f94d-48fb-82f3-3b051f21557e)

---

This PR also moves "Enable Actions" setting to `Actions > General` page

<img width="960" alt="image"
src="https://github.com/user-attachments/assets/49337ec2-afb1-4a67-8516-5c9ef0ce05d4"
/>

<img width="960" alt="image"
src="https://github.com/user-attachments/assets/f58ee6d5-17f9-4180-8760-a78e859f1c37"
/>

---------

Signed-off-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2025-10-25 17:37:33 +00:00
Lunny Xiao 635649d3bd
add translations 2025-10-24 23:59:13 -07:00
Lunny Xiao 3d081b300f
Fix bug 2025-10-24 21:35:11 -07:00
Zettat123 0d740a6a72
Improve online runner check (#35722)
This PR moves "no online runner" warning to the runs list. 

A job's `runs-on` may contain expressions like `runs-on: [self-hosted,
"${{ inputs.chosen-os }}"]` so the value of `runs-on` may be different
in each run. We cannot check it through the workflow file.

<details>
  <summary>Screenshots</summary>

Before:

<img width="960" alt="3d2a91746271d8b1f12c8f7d20eba550"
src="https://github.com/user-attachments/assets/7a972c50-db97-49d2-b12b-c1a439732a11"
/>

After:

<img width="960" alt="image"
src="https://github.com/user-attachments/assets/fc076e0e-bd08-4afe-99b9-c0eb0fd2c7e7"
/>
</details>

This PR also splits `prepareWorkflowDispatchTemplate` function into 2
functions:
- `prepareWorkflowTemplate` get and check all of the workflows
- `prepareWorkflowDispatchTemplate` only prepare workflow dispatch
config for `workflow_dispatch` workflows.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-24 12:02:52 -07:00
Lunny Xiao 903d605fe1
improvements 2025-10-24 10:55:10 -07:00
Lunny Xiao c2419f8c5b
improvements 2025-10-23 22:24:52 -07:00
Lunny Xiao 623388cef9 Merge branch 'main' into lunny/project_workflow 2025-10-23 21:38:29 -07:00
Lunny Xiao 7eb5673522
fix 2025-10-23 21:31:49 -07:00
Lunny Xiao 6c4160dba0
fix 2025-10-23 15:19:02 -07:00
Lunny Xiao 7240b2b144
fix 2025-10-23 14:44:03 -07:00
Lunny Xiao 829fa15816
fix 2025-10-23 11:39:22 -07:00
Lunny Xiao cc4a85b226
fix 2025-10-23 11:29:36 -07:00
Lunny Xiao ab5fa408ef
fix clone 2025-10-23 11:15:49 -07:00