Kerwin Bryant
7179916402
fix
2025-01-16 01:22:25 +00:00
Kerwin Bryant
0aa1b867dd
Merge branch 'main' into add-file-tree-to-file-view-page
2025-01-16 08:18:34 +08:00
silverwind
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
Kerwin Bryant
20198ea5a2
fix
2025-01-15 03:50:50 +00:00
Kerwin Bryant
76c82b21a5
fix
2025-01-15 01:29:48 +00:00
Lunny Xiao
61be52be5d
finish submodule support
2025-01-14 12:24:16 -08:00
Kerwin Bryant
b1193e0291
fix
2025-01-14 08:16:16 +00:00
Kerwin Bryant
abf95a76db
fix
2025-01-14 03:38:14 +00:00
Kerwin Bryant
9400d52ee9
fix
2025-01-14 03:36:19 +00:00
Kerwin Bryant
459edfebcb
fix
2025-01-14 01:21:54 +00:00
Lunny Xiao
bdd78dfdcb
Use the old infrustructure about getting refullname
2025-01-13 17:11:57 -08:00
Kerwin Bryant
a55548feb2
fix
2025-01-13 06:14:27 +00:00
Kerwin Bryant
fe212908b1
fix
2025-01-13 06:09:01 +00:00
Kerwin Bryant
dc63b48493
fix
2025-01-13 05:55:23 +00:00
Kerwin Bryant
c0e2fd2e7d
fix
2025-01-13 05:41:46 +00:00
Lunny Xiao
eff3568d31
Merge branch 'main' into kerwin612-add-file-tree-to-file-view-page
2025-01-12 20:54:57 -08:00
wxiaoguang
c0751ef116
Fix upload file form ( #33230 )
...
Fix #33228
2025-01-13 03:39:15 +08:00
Kerwin Bryant
d4a99e53c8
fix
2025-01-10 14:05:34 +00:00
Kerwin Bryant
62ecf34b99
Merge branch 'main' into add-file-tree-to-file-view-page
2025-01-10 21:13:39 +08:00
Kerwin Bryant
c2670dbb81
fix
2025-01-10 09:11:57 +00:00
Kerwin Bryant
0cafe2a39d
fix
2025-01-10 09:02:02 +00:00
Harry Vince
d7ec23febf
Fix editor markdown not incrementing in a numbered list ( #33187 )
...
Amended the logic for newPrefix in the MarkdownEditor to resolve
incorrect number ordering.
Fixes #33184
Attached screenshot of fixed input similar to issue
<img width="175" alt="Screenshot 2025-01-09 at 23 59 24"
src="https://github.com/user-attachments/assets/dfa23cf1-f3db-4b5e-99d2-a71bbcb289a8 "
/>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-10 07:28:38 +00:00
Kerwin Bryant
3e679d67b3
fix
2025-01-10 06:52:30 +00:00
Kerwin Bryant
335375fd76
merge main
2025-01-10 01:57:19 +00:00
Lunny Xiao
39d51e7c82
Automerge supports deleting branch automatically after merging ( #32343 )
...
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
wxiaoguang
386c1ed908
Refactor HTMLFormat, update chroma render, fix js error ( #33136 )
...
A small refactor to improve HTMLFormat, to help to prevent low-level
mistakes.
And fix #33141 , fix #33139
2025-01-08 03:44:32 +00:00
Rowan Bohde
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
TheFox0x7
4a18c72262
Remove extended glob pattern from branch protection UI ( #33125 )
...
Underlying go library has no support for it
Fixes: https://github.com/go-gitea/gitea/issues/33121
---
I never touched frontend tests so pointers how to write them are
welcome.
This can be either fix or workaround, depending if this is something
gitea should support in the future or not. The golang side is unlikely
to get updates though.
2025-01-07 01:23:50 +02:00
wxiaoguang
ef736b7e27
Refactor legacy JS ( #33115 )
2025-01-06 17:38:42 +08:00
Kerwin Bryant
07e48964b5
fix lint error
2025-01-06 07:06:25 +00:00
Kerwin Bryant
91f972ce82
fix
2025-01-06 06:59:04 +00:00
Kerwin Bryant
c949f42d4d
fix
2025-01-06 03:20:42 +00:00
wxiaoguang
2b064b8637
Refactor legacy line-number and scroll code ( #33094 )
...
1. remove jquery
2. rewrite the "line number selection", fix various edge cases
3. fix the scroll
2025-01-04 10:56:07 +08:00
Kerwin Bryant
2a8f9c8531
fix
2025-01-03 08:53:47 +00:00
Kerwin Bryant
087f0d41bd
fix
2025-01-03 07:47:44 +00:00
Kerwin Bryant
b1b24282ae
Merge branch 'main' into add-file-tree-to-file-view-page
2025-01-03 13:52:57 +08:00
wxiaoguang
c1167709ed
Refactor repo-new.ts ( #33070 )
...
1. merge `repo-template.ts` into `repo-new.ts` (they are all for "/repo/create")
2. remove jquery
3. fix an anonying fomantic dropdown bug, see the comment of `onResponseKeepSelectedItem`
2025-01-01 17:21:13 +00:00
wxiaoguang
85c756e279
Refactor pull-request compare&create page ( #33071 )
...
The old code is unnecessarily complex.
2025-01-02 01:16:09 +08:00
wxiaoguang
a0853e2278
Fix unittest and repo create bug ( #33061 )
...
1. `StatDir` was not right, fix the FIXME
2. Clarify the test cases for `IsUsableRepoName`
3. Fix regression bug in `repo-new.ts`
Fix #33060
2024-12-31 18:45:05 +08:00
Chai-Shi
0387195abb
[Feature] Private README.md for organization ( #32872 )
...
Implemented #29503
---------
Co-authored-by: Ben Chang <ben_chang@htc.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-31 04:22:09 +00:00
wxiaoguang
c09656e0e0
Make issue suggestion work for new PR page ( #33035 )
...
Fix #33026
2024-12-31 03:50:55 +00:00
Lunny Xiao
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
wxiaoguang
3d3ece36d2
Refactor comment history and fix content edit ( #33018 )
...
And fix a regression bug for comment content editing.
Now 11 "import jquery" files left
2024-12-28 19:26:16 +08:00
Kerwin Bryant
91ffb2d720
fix bug
2024-12-27 06:31:28 +00:00
Lunny Xiao
bf15e1878c
Fix bug
2024-12-26 12:38:11 -08:00
Kerwin Bryant
634fbe0c2d
Merge branch 'main' into add-file-tree-to-file-view-page
2024-12-26 08:52:35 +08:00
Kerwin Bryant
143249f4f1
change loading
2024-12-26 00:51:46 +00:00
Kerwin Bryant
158b79e40a
debug new api /tree
2024-12-25 08:55:43 +00:00
metiftikci
1a7591d7f9
fix textarea newline handle ( #32966 )
...
- Fix cursor position if input newline on middle of lines
- ~Increment number if numbered list~

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-25 13:03:43 +08:00
Kerwin Bryant
07fb84f830
Merge branch 'main' into add-file-tree-to-file-view-page
2024-12-23 10:56:23 +08:00