mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 13:28:25 +00:00 
			
		
		
		
	Refactor dashboard repo list to Vue SFC (#23405)
Similar to #23394 The dashboard repo list mixes jQuery/Fomantic UI/Vue together, it's very diffcult to maintain and causes unfixable a11y problems. This PR uses two steps to refactor the repo list: 1. move `data-` attributes to JS object and use Vue data as much as possibled3adc0dcac2. move the code into a Vue SFC7ebe55df6eTotal: +516 −585 Screenshots: <details>    </details> --------- Co-authored-by: John Olheiser <john.olheiser@gmail.com>
This commit is contained in:
		@@ -2,9 +2,8 @@
 | 
			
		||||
import './bootstrap.js';
 | 
			
		||||
 | 
			
		||||
import $ from 'jquery';
 | 
			
		||||
import {initVueEnv} from './components/VueComponentLoader.js';
 | 
			
		||||
import {initRepoActivityTopAuthorsChart} from './components/RepoActivityTopAuthors.vue';
 | 
			
		||||
import {initDashboardRepoList} from './components/DashboardRepoList.js';
 | 
			
		||||
import {initDashboardRepoList} from './components/DashboardRepoList.vue';
 | 
			
		||||
 | 
			
		||||
import {attachTribute} from './features/tribute.js';
 | 
			
		||||
import {initGlobalCopyToClipboardListener} from './features/clipboard.js';
 | 
			
		||||
@@ -100,7 +99,6 @@ $.fn.tab.settings.silent = true;
 | 
			
		||||
// Disable the behavior of fomantic to toggle the checkbox when you press enter on a checkbox element.
 | 
			
		||||
$.fn.checkbox.settings.enableEnterKey = false;
 | 
			
		||||
 | 
			
		||||
initVueEnv();
 | 
			
		||||
$(document).ready(() => {
 | 
			
		||||
  initGlobalCommon();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user