Jason Song
ab4350b413
Merge branch 'main' into feature/bots
2022-12-20 16:53:28 +08:00
silverwind
2774671584
Fix heatmap first color being unused ( #22157 )
...
vue3-calendar-heatmap has the behaviour that the first and second colors
are mapped to values null and 0, meaning the second color was not used
as intended for values > 0. I think this is a behaviour change from
previous vue2 version that was missed during the upgrade.
This change makes first and second values the same, so the heatmap can
now use one additional color for meaningful values.
Before:
<img width="710" alt="Screenshot 2022-12-18 at 09 17 58"
src="https://user-images.githubusercontent.com/115237/208288347-df4973af-8ebd-4582-b828-bec948ffdf60.png ">
After:
<img width="709" alt="Screenshot 2022-12-18 at 09 18 15"
src="https://user-images.githubusercontent.com/115237/208288350-e0b85aa2-6925-4a37-83d2-89e2518c91ce.png ">
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-12-19 16:14:49 -05:00
Jason Song
825b838b81
fix: margin
2022-12-19 18:38:13 +08:00
Jason Song
dfa1b6168d
Merge branch 'main' into feature/bots
2022-12-12 10:46:13 +08:00
Felipe Leopoldo Sologuren Gutiérrez
097d4e30b1
Change ID pattern of raw content container for issue ( #21966 )
...
Implement differentiation to html id for issue raw content container.
Fixes #21965
2022-12-10 00:25:32 +08:00
Jason Song
901914e34b
feat: move summary to header
2022-12-09 16:14:45 +08:00
Jason Song
9b6b848311
fix: layout
2022-12-09 15:47:58 +08:00
Jason Song
10ebbeca2f
chore: rename to action
2022-12-09 15:29:26 +08:00
Jason Song
49143952fa
fix: remove timestamp
2022-12-08 18:08:17 +08:00
Jason Song
d4842ac45b
chore: resolve conflict
2022-12-02 22:23:18 +08:00
Jason Song
3dc5547775
Merge branch 'main' into feature/bots
2022-12-02 21:05:31 +08:00
silverwind
d64063277d
Multiple improvements for comment edit diff ( #21990 )
...
- Use explicit avatar size so when JS copies the HTML, the size gets
copied with it
- Replace icon font use with SVG
- Improve styling and diff rendering
- Sort lists in `svg.js`
Fixes: https://github.com/go-gitea/gitea/issues/21924
<img width="933" alt="Screenshot 2022-11-30 at 17 52 17"
src="https://user-images.githubusercontent.com/115237/204859608-f322a8f8-7b91-45e4-87c0-82694e574115.png ">
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2022-12-02 11:42:34 +02:00
Jason Song
66b558017f
Merge branch 'main' into feature/bots
2022-11-28 17:23:53 +08:00
silverwind
5f38acd9a0
Fix markdown anchor re-clicking ( #21931 )
...
The hashchange event did not fire on re-click of a active anchor.
Instead, use the click event which always fires.
Fixes: https://github.com/go-gitea/gitea/issues/21680
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2022-11-26 19:15:44 +08:00
zeripath
d7f12af805
Prevent NPE if trying to restore an already restored deleted branch ( #21940 )
...
If a deleted-branch has already been restored, a request to restore it
again will cause a NPE. This PR adds detection for this case, but also
disables buttons when they're clicked in order to help prevent
accidental repeat requests.
Fix #21930
Signed-off-by: Andrew Thornton <art27@cantab.net >
2022-11-25 20:58:20 +00:00
Jason Song
6af809d0bd
chore: lint front
2022-11-25 22:27:34 +08:00
Jason Song
736275f0b1
feat: support cancel button
2022-11-25 17:48:48 +08:00
Jason Song
f3a9a25682
fix: remove build view header
2022-11-25 17:48:47 +08:00
Jason Song
706aed2ba6
fix: update color of rerun button
2022-11-25 17:48:47 +08:00
Jason Song
0b62e1da74
feat: rerun jobs
2022-11-25 17:48:47 +08:00
wxiaoguang
37224e2441
fix ui
2022-11-25 17:48:47 +08:00
Jason Song
64eb15b73c
fix: show block icon
2022-11-25 17:48:47 +08:00
Jason Song
465c348922
fix: show blocked jobs
2022-11-25 17:48:47 +08:00
wxiaoguang
ea5e769428
fix build view ui
2022-11-25 17:48:46 +08:00
Jason Song
3d4d44dadf
fix: use index of run
2022-11-25 17:48:46 +08:00
wxiaoguang
e6ad1b3233
make RepoBuildView loadJobData work correctly, avoid concurrency requests.
2022-11-25 17:48:45 +08:00
Jason Song
15db111df1
fix: avoid multiplue fetching
2022-11-25 17:48:45 +08:00
wxiaoguang
bc6a2b2374
fix RepoBuildView loadJobData
2022-11-25 17:48:45 +08:00
Jason Song
1cba52376a
feat: use run id and job id in page view
2022-11-25 17:48:45 +08:00
Jason Song
d320eb66f4
feat: fetch job data
2022-11-25 17:48:45 +08:00
wxiaoguang
c73dbab6e5
fix
2022-11-25 17:48:44 +08:00
wxiaoguang
c623e9a279
view logs
2022-11-25 17:48:44 +08:00
wxiaoguang
9193b72d17
view logs
2022-11-25 17:48:44 +08:00
wxiaoguang
b54fc6aacb
view logs
2022-11-25 17:48:44 +08:00
wxiaoguang
0abbc2b50f
log color
2022-11-25 17:48:44 +08:00
wxiaoguang
3e9022c9f0
view logs
2022-11-25 17:48:44 +08:00
wxiaoguang
7ba22b740f
view logs
2022-11-25 17:48:44 +08:00
wxiaoguang
4f2330623e
view logs
2022-11-25 17:48:44 +08:00
silverwind
9ce5e092f3
Fix scroll over mermaid frame ( #21925 )
...
When starting a scroll while the mouse is over a mermaid diagram, the
scroll sometimes propagates to the iframe, preventing the parent page
from scrolling. Fix this by disabling scroll inside the iframe. This is
not a problem because those frames are never meant to scroll. Bug seems
to affect Firefox only.

2022-11-24 20:56:57 +00:00
kolaente
13746f070d
feat: add button to quickly clear merge message ( #21548 )
...
This PR adds a button to allow quickly clearing the merge message of a
PR. The button will remove everything but the git trailers.
I found myself often pruning the commit message before merging,
especially for PRs generated by renovate - renovate puts a very long and
detailed comment with the full changelog in each PR it opens. This
clutters the commit message. However, I want to explicitly preserve the
git commit trailers. Doing this manually works, but having a button is a
lot easier.
Screenshot:

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: delvh <dev.lh@web.de >
2022-11-23 18:24:03 +08:00
Felipe Leopoldo Sologuren Gutiérrez
1d52228ee7
Fixes #21895 : standardize UTC tz for util tests ( #21897 )
...
Standardize UTC timezone for `translateMonth` and `translateDay` tests.
2022-11-22 16:46:29 +08:00
silverwind
c8b217110b
Update JS dependencies ( #21881 )
...
- Update all JS deps
- Regenerate SVGs
- Add new eslint rules, fix issues
- Tested Mermaid, Swagger, Vue, Webpack, Citation
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-11-22 08:58:55 +08:00
silverwind
c2fb27beb4
Improvements for Content Copy ( #21842 )
...
It now supports copying Markdown, SVG and Images (not in Firefox
currently because of lacking
[`ClipboardItem`](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem )
support, but can be enabled in `about:config` and works). It will fetch
the data if in a rendered view or when it's an image.
Followup to https://github.com/go-gitea/gitea/pull/21629 .
2022-11-21 17:59:42 +08:00
silverwind
c144942b23
Tweak katex options ( #21828 )
...
- Render directly into DOM, skipping string conversion
- Add limiting options to prevent excessive size/macros
- Remove invalid `display` option previously passed
Ref: https://katex.org/docs/options.html
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
2022-11-17 09:04:09 +08:00
silverwind
3e3975e0fa
fix webpackChunkName for citation-js-csl ( #21806 )
2022-11-13 15:10:58 -05:00
Nolann
9f8e778918
Copy citation file content, in APA and BibTex format, on repo home page ( #19999 )
...
Add feature to easily copy CITATION.cff content in APA and BibTex format.
2022-11-11 18:02:50 +01:00
silverwind
9db221780f
Ignore line anchor links with leading zeroes ( #21728 )
...
Fixes: https://github.com/go-gitea/gitea/issues/21722
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-11-11 18:22:36 +08:00
Xinyu Zhou
dd7f1c0334
Quick fixes monaco-editor error: "vs.editor.nullLanguage" ( #21734 )
...
fixes: https://github.com/go-gitea/gitea/issues/21733
Uncaught Error: Language id "vs.editor.nullLanguage" is not configured
nor known
Note that this monaco-editor worked fine on 0.33.0 and broke on 0.34.0.
If upstream fixed, remove this code.
Signed-off-by: Xinyu Zhou <i@sourcehut.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-11-09 18:02:19 +08:00
wxiaoguang
7e40ceee9e
Fix UI language switching bug ( #21597 )
...
Related:
* https://github.com/go-gitea/gitea/pull/21596#issuecomment-1291450224
There was a bug when switching language by AJAX: the irrelevant POST
requests were processed by the target page's handler.
Now, use GET instead of POST. The GET requests should be harmless.
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: Jason Song <i@wolfogre.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-11-09 15:40:26 +08:00
Yarden Shoham
e3a7f15791
Add "Copy" button to file view of raw text ( #21629 )
...
If a raw text file is displayed, a copy button of the text is enabled.
* Closes #12866
### Before

### After

#### Rendered files and binaries have their button disabled


Signed-off-by: Yarden Shoham <hrsi88@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-11-04 15:33:50 -04:00