You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
1 year ago
..
admin Fix some more hidden problems (#23074) 1 year ago
api/packages/pypi Add Package Registry (#16510) 2 years ago
base Add accessibility to the menu on the navbar (#23059) 1 year ago
code Remove Fomantic-UI's `.hidden` CSS class for menu elements (#22895) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
explore Add context cache as a request level cache (#22294) 1 year ago
mail Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 1 year ago
org Hide 2FA status from other members in organization members list (#22999) 1 year ago
package Fix nil context in RenderMarkdownToHtml (#23092) 1 year ago
projects Projects: rename Board to Column in interface and improve consistency (#22767) 1 year ago
repo Add "Reviewed by you" filter for pull requests (#22927) 1 year ago
shared Fix no user listed in org teams page (#22979) 1 year ago
status Move helpers to be prefixed with `gt-` (#22879) 1 year ago
swagger Add "Reviewed by you" filter for pull requests (#22927) 1 year ago
user Fix incorrect checkbox behaviors in the dashboard repolist's filter (#23147) 1 year ago
home.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago
install.tmpl Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 1 year ago
post-install.tmpl Introduce customized HTML elements, fix incorrect AppUrl usages in templates (#22861) 1 year ago