Jason Song
bd1af5b7f8
Merge branch 'main' into feature/bots
2022-12-05 14:31:00 +08:00
Percy Ma
9eb9cf5153
fix(web): reduce page jitter on browsers that support overlay scrollbar ( #21850 )
...
Reduce jitter caused by the presence or absence of scrollbars in page
switching
---
Ref [scrollbar-gutter |
MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter )
https://user-images.githubusercontent.com/45708948/165972251-7d5a5017-f76d-4ba2-9106-a224b3ee521f.mp4
2022-12-04 08:56:10 +00: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
fuxiaohei
8c3ed11ed9
feat(runner-view): add task list in runnder details page, in admin
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
fuxiaohei
888b4c8313
feat(runner): finish org runners ui
2022-11-25 17:48:46 +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
fuxiaohei
f633ec9704
feat(runner): create new token for creating new runner
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
fuxiaohei
5b989e2a11
feat(bots): update runner data in html page
2022-11-25 17:48:45 +08:00
fuxiaohei
dff0d4b907
feat(runner): update edit.html
2022-11-25 17:48:45 +08:00
fuxiaohei
206b2a104e
feat(runner): begin runner view ui
2022-11-25 17:48:44 +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
Percy Ma
b91167b772
fix(web): keep the pages of the navigation in the center ( #21867 )
...
Keep the pages of the navigation in the center
<table>
<tr>
<th>Before</th>
<th>After</th>
</tr>
<tr>
<td>
<img width="200" alt="image"
src="https://user-images.githubusercontent.com/45708948/202838756-d6d57b3f-8144-4a43-a33b-ea7c8ab3a495.png ">
</td>
<td>
<img width="192" alt="image"
src="https://user-images.githubusercontent.com/45708948/202838740-bbae1e86-b14c-421d-92d4-d0e53d5952a2.png ">
</td>
</tr>
</table>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-11-25 14:37:02 +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
silverwind
b97548a2ee
Fix table misalignments and tweak webhook and githook lists ( #21917 )
...
- Fix regression from #21893 which had misaligned a few tables like repo
lists and e-mails
- Bring githooks list in line with webhooks list for styling
- Change webhook list icons to just colored dots, like githook list
- Increase size of dot in webhook and githook list from 16 to 22px
2022-11-24 00:43:07 -06: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
silverwind
ee21d5453f
Move all remaining colors into CSS variables ( #21903 )
...
This should eliminate all non-variable color usage in the styles, making
gitea fully themeable via CSS variables. Also, it adds a linter to
enforce variables for colors.
2022-11-23 08:22:27 +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
1c7496c7a7
Webhook list enhancements ( #21893 )
2022-11-22 07:10:42 +08:00
silverwind
2e5ac53bdc
Embed Matrix icon as SVG ( #21890 )
...
Embed the SVG icon directly, making further invertion unnecessary
because the icon color can now follow text color.
<img width="240" alt="Screenshot 2022-11-21 at 20 16 32"
src="https://user-images.githubusercontent.com/115237/203142189-89f20de9-c0bd-4d05-92c0-44dadf20d78f.png ">
<img width="245" alt="Screenshot 2022-11-21 at 20 16 46"
src="https://user-images.githubusercontent.com/115237/203142191-658239ba-1859-49c6-91ad-10ddf14780d0.png ">
2022-11-21 20:25:26 +00: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
fefdb7ffd1
Timeline and color tweaks ( #21799 )
...
Followup to https://github.com/go-gitea/gitea/pull/21784 .
- Restore muted effect on timeline author and issuelist comment icon
- Remove whitespace inside shared user templates, fixing link hover
underline
- Use shared author link template more
- Use `bold` class instead of CSS
- Fix grey-light color being too dark on arc-green
- Add missing black-light color
- Fix issuelist progress bar color
- Fix various other cases of missing `.muted`
<img width="416" alt="Screenshot 2022-11-13 at 12 15 22"
src="https://user-images.githubusercontent.com/115237/201519497-1d4725c6-bc8b-47b5-9f68-1278ac9a8c92.png ">
<img width="324" alt="Screenshot 2022-11-13 at 12 16 52"
src="https://user-images.githubusercontent.com/115237/201519501-c0d03700-f9af-4316-ab46-482f2c7c738b.png ">
<img width="79" alt="Screenshot 2022-11-13 at 12 30 55"
src="https://user-images.githubusercontent.com/115237/201519502-46dc2d73-bbdf-4a2e-84d3-d2976f793163.png ">
<img width="440" alt="Screenshot 2022-11-13 at 12 41 03"
src="https://user-images.githubusercontent.com/115237/201519876-ada33948-f84a-4aeb-a40d-5c873f9a49e9.png ">
<img width="213" alt="Screenshot 2022-11-13 at 12 52 54"
src="https://user-images.githubusercontent.com/115237/201520291-a4d7238e-aeca-46c7-9008-8b644b1b676e.png ">
<img width="208" alt="Screenshot 2022-11-13 at 12 56 16"
src="https://user-images.githubusercontent.com/115237/201520436-aa8ba109-b959-42fb-831a-021e806c7082.png ">
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-11-19 12:02:30 +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