Commit Graph

3663 Commits

Author SHA1 Message Date
44ee3fe550 remove termdemo 2022-11-25 17:48:46 +08:00
ea5e769428 fix build view ui 2022-11-25 17:48:46 +08:00
b5520f098f Some improvements 2022-11-25 17:48:46 +08:00
8ec691f3ce Almost finished 2022-11-25 17:48:46 +08:00
da60ae69be delete modal 2022-11-25 17:48:46 +08:00
08b463a308 Fix duplicated alert 2022-11-25 17:48:46 +08:00
5b55fd0d36 org secrets 2022-11-25 17:48:46 +08:00
8dc263c6ed fix show add secret panel 2022-11-25 17:48:46 +08:00
fa5b8e9eba org secrets 2022-11-25 17:48:46 +08:00
da981db596 finish adding and deleting secret for repository settting 2022-11-25 17:48:46 +08:00
e43e3f9518 improve UI 2022-11-25 17:48:46 +08:00
ab4f539453 add models and services 2022-11-25 17:48:46 +08:00
d4e84c0433 Add simple master key provider for secret encryption 2022-11-25 17:48:46 +08:00
6531738b2e fix: builds UI 2022-11-25 17:48:46 +08:00
dee4f2470b feat: inner build view UI 2022-11-25 17:48:46 +08:00
3d4d44dadf fix: use index of run 2022-11-25 17:48:46 +08:00
9292e9ebdb fix: add methods of status 2022-11-25 17:48:46 +08:00
25fe4f6d9e feat(runner): make admin runner template as common template, use for org runners setting 2022-11-25 17:48:46 +08:00
b65e263f92 Fix filter count 2022-11-25 17:48:45 +08:00
38b36edc5c feat(runner): add runner page in repo and org settings 2022-11-25 17:48:45 +08:00
c3530bf47c feat(runner): fix create runner dropdown ui 2022-11-25 17:48:45 +08:00
3518c098b9 Improve ui for builds 2022-11-25 17:48:45 +08:00
d69423a3b0 UI improvement 2022-11-25 17:48:45 +08:00
57cc7bf823 improve UI 2022-11-25 17:48:45 +08:00
7e01f8ce66 Fix bug 2022-11-25 17:48:45 +08:00
dd5b2c5dfd feat: optimize log indexes 2022-11-25 17:48:45 +08:00
f633ec9704 feat(runner): create new token for creating new runner 2022-11-25 17:48:45 +08:00
243c1e5134 Add workflow 2022-11-25 17:48:45 +08:00
1cba52376a feat: use run id and job id in page view 2022-11-25 17:48:45 +08:00
fbb9f437a6 feat(runner): delete runner from admin html page 2022-11-25 17:48:45 +08:00
5b989e2a11 feat(bots): update runner data in html page 2022-11-25 17:48:45 +08:00
dff0d4b907 feat(runner): update edit.html 2022-11-25 17:48:45 +08:00
206b2a104e feat(runner): begin runner view ui 2022-11-25 17:48:44 +08:00
4f2330623e view logs 2022-11-25 17:48:44 +08:00
b84aa84a0f Fix template 2022-11-25 17:48:44 +08:00
92d15afd18 database-filesystem, demo log tailing in term 2022-11-25 17:48:43 +08:00
931d8c2c21 add runners management ui 2022-11-25 17:48:43 +08:00
2ea693cdd2 update template 2022-11-25 17:48:43 +08:00
2c4f6fd42f add most tables 2022-11-25 17:48:43 +08:00
5a479bb034 Add builds UI 2022-11-25 17:48:43 +08:00
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
26f941fbda Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562)
This patch:
- Use `<button>` replace anchor link `<a>` in **_Delete/Restore
Branch_** button to avoid unexpected page jump before restore branch
actually done.
- Also replace right side buttons with `<button>` in branch list, let
some screen readers know they are buttons.


## Before
click restore branch -> restore triggered -> page refreshed, but branch
status not update -> manually refresh page

<details>


https://user-images.githubusercontent.com/76462613/197389108-5a0bd259-0455-40b2-92ac-4326900276f8.mp4

</details>

## After
waiting restore done -> page refresh -> branch status update

<details>


https://user-images.githubusercontent.com/76462613/197428683-616fcbd2-70f9-4572-bf76-e0b7f77b6dd7.mp4

</details>

Signed-off-by: baronbunny <its@baronbunny.cn>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-11-24 20:29:43 +08:00
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
09b7d8198c Fix flex layout for repo list icons (#21896)
#20241 Added a tooltip, which does not satisfy the flex layout, and the
icons are not aligned

Signed-off-by: Xinyu Zhou <i@sourcehut.net>
2022-11-23 22:01:30 -06:00
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:

![image](https://user-images.githubusercontent.com/13721712/197337525-d456d0f8-1f7c-43a9-815d-ca93b1e7a90a.png)

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
68e934ab5d Add option to enable CAPTCHA validation for login (#21638)
Enable this to require captcha validation for user login. You also must
enable `ENABLE_CAPTCHA`.

Summary:
- Consolidate CAPTCHA template
- add CAPTCHA handle and context
- add `REQUIRE_CAPTCHA_FOR_LOGIN` config and docs
- Consolidate CAPTCHA set-up and verification code 

Partially resolved #6049 

Signed-off-by: Xinyu Zhou <i@sourcehut.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
2022-11-22 21:13:18 +00:00
1c7496c7a7 Webhook list enhancements (#21893) 2022-11-22 07:10:42 +08:00
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
2836382f34 fix(web): add alt for logo in home page (#21887)
add `alt` for logo in home page
2022-11-21 15:09:55 -05:00
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