1d4ad5aa2b
Improve html escape ( #34911 )
...
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
drop "escape-goat"
2025-07-01 21:44:05 +08:00
1839110ea6
Fix some log and UI problems ( #34863 )
...
Remove the misleading error log, fix #34738
Make the "search" input auto-focused, fix #34807
2025-06-26 00:32:50 +08:00
181db69e0c
Use shallowRef
instead of ref
in .vue
files where possible ( #34813 )
...
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
This PR improves some `.vue` components by using `shallowRef instead of
ref`, which `should improve performance`. It's probably not significant,
but it's an improvement because Vue no longer deep watches the ref
(shallowRef). Also i used `useTemplateRef` instead of `ref`.
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-22 21:37:03 +08:00
81adb01713
Improve img lazy loading ( #34804 )
...
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
Related #32051 and #13526
2025-06-21 14:53:22 +08:00
7346ae7cd4
Add repo file tree item link behavior ( #34730 )
...
Converts the repo file tree items into `<a>` elements to have default
link behavior. Dynamic content load is still done when no special key is
pressed while clicking on an item.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-20 02:28:19 +08:00
17cfae82a5
Hide href attribute of a tag if there is no target_url ( #34556 )
...
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
Relate #34450
2025-06-10 19:32:20 +00:00
f6f6aedd4f
Update JS deps, regenerate SVGs ( #34640 )
...
Result of `make update-js svg`.
2025-06-07 17:59:36 +00:00
fe57ee3074
fixed incorrect page navigation with up and down arrow on last item of dashboard repos ( #34570 )
...
Previously, pressing the down arrow key on the last item of a list would
incorrectly load the latest page when not release key. This commit
corrects the logic to ensure that the next page is loaded as intended.
2025-06-03 17:55:09 +00:00
e8d8984f7c
Fix some trivial problems ( #34579 )
2025-06-02 15:22:43 +00:00
0cec4b84e2
Fix actions skipped commit status indicator ( #34507 )
...
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
Addresses https://github.com/go-gitea/gitea/issues/34500
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-28 11:36:21 -04:00
6b2c506e05
Grey out expired artifact on Artifacts list ( #34314 )
...
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
Grey out expired artifact on Artifacts list.


---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-05 21:53:17 -07:00
2b76993415
support the open-icon of folder ( #34168 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-28 19:51:32 -07:00
533b8b2d3d
Fix button alignments ( #34276 )
...
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
Continue with #34206 .
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-04-27 19:39:03 +00:00
c2c04ffff7
Add fullscreen mode as a more efficient operation way to view projects ( #34081 )
...
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
Maybe fix #33482 , maybe fix #34015
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-23 13:42:22 +08:00
dd0caf7e16
Fix various misalignments and overflows ( #34227 )
...
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
release-nightly / nightly-binary (push) Has been cancelled
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-17 10:32:41 +00:00
bde014e46d
Fix button alignments and remove unnecessary styles ( #34206 )
...
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
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-16 08:14:10 +00:00
2b99a58f54
Mark parent directory as viewed when all files are viewed ( #33958 )
...
Fix #25644
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-15 22:35:22 +08:00
33df23c1f0
Update RepoContributors.vue ( #34194 )
2025-04-14 14:51:49 +00:00
02e49a0f47
Fix vertical centering of file tree icons and use entryIcon for submodules/symlinks ( #34137 )
...
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
In the file tree, the icons are not vertically centered, which affects
the overall visual consistency.
Currently, the icons of submodules and symlinks do not adopt the value
of entryIcon, resulting in inconsistent icon display.
before:

after:

---------
Co-authored-by: silverwind <me@silverwind.io >
2025-04-09 18:10:16 -07:00
8c9d2bdee3
Keep file tree view icons consistent with icon theme ( #33921 )
...
Fix #33914
before:

after:

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-06 19:35:08 +00:00
a62ed19da6
Use overflow-wrap: anywhere
to replace word-break: break-all
( #34126 )
2025-04-06 17:13:02 +08:00
ee6929d96b
Refactor dropdown ellipsis ( #34123 )
...
Remove legacy `truncated-item-container` and `truncated-item-name`.
2025-04-05 03:21:11 +00:00
92f997ce6b
Add file tree to file view page ( #32721 )
...
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
Resolve #29328
This pull request introduces a file tree on the left side when reviewing
files of a repository.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-15 16:26:49 +08:00
aba96f65cd
Use git diff-tree
for DiffFileTree
on diff pages ( #33514 )
...
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
Modify Diff View FileTree to show all files
## Changes
* removes Show Status button on diff
* uses `git diff-tree` to generate the file tree for the diff
* doesn't reload the diff tree each time we load more files in the
preview
* selecting and unloaded file will keep loading until that file is
loaded
* removes `DiffFileList.vue` and "Show Stats" in diff options
## Open Questions
* selecting and unloaded file will keep loading until that file is
loaded. Is this behaviour okay? It matches what github does.
### Demo
In this demo I set `git.MAX_GIT_DIFF_FILES=1` in my `app.ini` to
demonstrate a worst case example. In most cases the behaviour isn't
nearly as jarring as we load a bunch of files at a time.
https://github.com/user-attachments/assets/72f29663-d6fc-472d-94fa-7fb5950c2836
---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-28 00:58:25 +00:00
303af554c9
Improve "generate new access token" form ( #33730 )
...
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
Fix: https://github.com/go-gitea/gitea/issues/33519
As discussed in [PR
#33614 ](https://github.com/go-gitea/gitea/pull/33614 ), the
ScopedAccessTokenSelector Vue component is not particularly useful.
This PR removes the component and reverts to using HTML templates. It
also introduces some (hopefully) useful refactoring.
The Vue component was causing the UX bug reported in the linked issue.
Required form fields are now properly working, as expected (see
screenshot).

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-27 19:40:12 +00:00
555d64d024
Always show the "rerun" button for action jobs ( #33692 )
...
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
And improve the mock code.
2025-02-24 08:40:46 +00:00
1ba7cbbfd6
Fix typo in HTML attribute ( #33599 )
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
2025-02-14 10:59:37 -05:00
085f273d19
Optimize the dashboard ( #32990 )
...
before:

after:

-----

-----
Optimize the dashboard by adding welcoming messages or quick action
entry points (such as adding a new repository or organization) to ensure
that new users are not greeted by a blank page upon logging in.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-11 01:24:34 +08:00
06088ec672
Remove "class-name" from svg icon ( #33540 )
...
Only use "class" attribute
2025-02-09 22:39:54 +02:00
c7f4ca2653
Enable Typescript noImplicitAny
( #33322 )
...
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Enable `noImplicitAny` and fix all issues.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-22 15:11:51 +08:00
4b21a6c792
Enable Typescript noImplicitThis
( #33250 )
...
- Enable https://www.typescriptlang.org/tsconfig/#noImplicitThis
- Wrap Vue Template-Syntax SFCs in
[`defineComponent`](https://vuejs.org/api/general#definecomponent ) which
makes type inference and linter work better
- Move `createApp` calls outside the SFCs into separate files
- Use [`PropType`](https://vuejs.org/api/utility-types#proptype-t ) where
appropriate
- Some top-level component properties changed order as dictated by the
linter
- Fix all tsc and lint issues that popped up during these refactors
2025-01-16 04:26:17 +08:00
39d51e7c82
Automerge supports deleting branch automatically after merging ( #32343 )
...
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
Resolve #32341
~Depends on #27151~
- [x] It will display a checkbox of deleting the head branch on the pull
request view page when starting an auto-merge task.
- [x] Add permission check before deleting the branch
- [x] Add delete branch comment for those closing pull requests because
of head branch or base branch was deleted.
- [x] Merge `RetargetChildrenOnMerge` and `AddDeletePRBranchComment`
into `service.DeleteBranch`.
2025-01-10 03:51:03 +08:00
a8e7caedfa
add submodule diff links ( #33097 )
...
This adds links to submodules in diffs, similar to the existing link
when viewing a repo at a specific commit. It does this by expanding diff
parsing to recognize changes to submodules, and find the specific refs
that are added, deleted or changed.
Related #25888
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-08 01:38:30 +00:00
344c89ea34
Fix bug automerge cannot be chosed when there is only 1 merge style ( #33040 )
...
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
auto-merge.
Fix #32448
2024-12-30 03:04:22 +00:00
6279646ee4
Add auto-expanding running actions step ( #30058 )
...
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
Auto-expands the currently running action step.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-22 18:57:17 +00:00
5d6d62493b
Add action auto-scroll ( #30057 )
...
Adds an auto-scroll/follow feature to running actions (fix #25186 , fix
#28535 ).
When new log lines are appended and the bottom of the logs container
(`.action-view-right`) is visible at this time, the page automatically
scrolls down to the bottom of the logs.
---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-21 14:49:26 -08:00
c0e80dbe26
Enable Typescript strictFunctionTypes
( #32911 )
...
1. Enable
[strictFunctionTypes](https://www.typescriptlang.org/tsconfig/#strictFunctionTypes )
2. Introduce `DOMEvent` helper type which sets `e.target`. Surely not
totally correct with that `Partial` but seems to work.
3. Various type-related refactors, change objects in
`eventsource.sharedworker.ts` to `Map`.
2024-12-22 02:59:25 +08:00
857abed3a9
Move RepoBranchTagSelector init outside the SFC ( #32890 )
...
SFCs shouldn't export anything besides their component, and this
eliminates one issue with tsc, while apparently also solving a hack. It
seems to work as before, also when multiples are on the same page.
2024-12-18 21:26:17 +01:00
2d7e6e9482
Fix various trivial problems ( #32861 )
...
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
1. add/improve comments to help future readers could understand the
problem more easily.
2. add an error log to LDAP with username fallback
3. use `or` instead of `Iif` for "repo/branch_dropdown" (`Iif` was a
mistake, but it doesn't really affect the UI)
4. add `tw-font-mono` style to container digest to match dockerhub
5. fix a bug in RepoBranchTagSelector: the form is not updated when
there is no click to an item
---------
Co-authored-by: delvh <dev.lh@web.de >
2024-12-17 01:15:18 +00:00
d28a4843b8
Fix incomplete Actions status aggregations ( #32859 )
...
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
fix #32857
2024-12-16 11:18:00 +08: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
1b069dc94a
Make RepoActionView.vue support ##[group]
( #32770 )
2024-12-10 01:57:20 +00: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
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
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
e3e32605a1
Refactor RepoBranchTagSelector ( #32681 )
2024-12-02 01:41:32 +00: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
896314c7a2
Fix some places which doesn't repsect org full name setting ( #32243 )
...
Partially fix #31345
2024-11-18 06:24:49 +00:00