0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 03:34:28 +01:00
gitea/templates
wxiaoguang 7a5af25592
Fix incorrect checkbox behaviors in the dashboard repolist's filter (#23147)
Co-author: yp05327 , this PR is based on yp05327's #22813.

The problems of the old DashboardRepoList / repolist.tmpl: 

* It mixes many different frameworks together
* It "just works", bug on bug
* It uses many anti-pattern of Vue

This PR:

* Fix bugs and close #22800
* Decouple the "checkbox" elements from Fomantic UI (only use CSS
styles)
* Simplify the HTML layout
* Simplify JS logic
* Make it easier to refactor the DashboardRepoList into a pure Vue
component in the future.

### Screenshots

#### Default

![image](https://user-images.githubusercontent.com/2114189/221355768-a3eb5b23-85b4-4e3d-b906-844d8b15539d.png)

####  Click "Archived" to make it checked

![image](https://user-images.githubusercontent.com/2114189/221355777-9a104ddf-52a7-4504-869a-43a73827d802.png)

####  Click "Archived" to make it intermediate

![image](https://user-images.githubusercontent.com/2114189/221355802-0f67a073-67ad-4e92-84a6-558c432103a5.png)

####  Click "Archived" to make it unchecked

![image](https://user-images.githubusercontent.com/2114189/221355810-acf1d9d8-ccce-47fe-a02e-70cf4e666331.png)

---------

Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-03-01 10:22:14 +08:00
..
admin Fix some more hidden problems (#23074) 2023-02-22 15:26:02 +00:00
api/packages/pypi
base Add accessibility to the menu on the navbar (#23059) 2023-02-22 15:58:07 -06:00
code
custom
explore
mail
org Hide 2FA status from other members in organization members list (#22999) 2023-02-20 17:16:29 -06:00
package Fix nil context in RenderMarkdownToHtml (#23092) 2023-02-24 14:36:07 +08:00
projects Projects: rename Board to Column in interface and improve consistency (#22767) 2023-02-24 18:10:50 -05:00
repo Add "Reviewed by you" filter for pull requests (#22927) 2023-02-24 21:55:50 -05:00
shared
status
swagger Add "Reviewed by you" filter for pull requests (#22927) 2023-02-24 21:55:50 -05:00
user Fix incorrect checkbox behaviors in the dashboard repolist's filter (#23147) 2023-03-01 10:22:14 +08:00
home.tmpl
install.tmpl
post-install.tmpl