From 56362043d35d2542c6fe4ac7c0ac5aabb833a9ed Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 15 Oct 2021 10:35:26 +0800 Subject: Frontend refactor: move Vue related code from `index.js` to `components` dir, and remove unused codes. (#17301) * frontend refactor * Apply suggestions from code review Co-authored-by: delvh * Update templates/base/head.tmpl Co-authored-by: delvh * Update docs/content/doc/developers/guidelines-frontend.md Co-authored-by: Lunny Xiao * fix typo * fix typo * refactor PageData to pageData * Apply suggestions from code review Co-authored-by: delvh * Simply for the visual difference. Co-authored-by: delvh * Revert "Apply suggestions from code review" This reverts commit 4d78ad9b0e96ca180e0823de17659a2e0814c099. Co-authored-by: delvh Co-authored-by: Lunny Xiao Co-authored-by: 6543 <6543@obermui.de> --- web_src/js/components/ActivityHeatmap.vue | 1 - web_src/js/components/ActivityTopAuthors.vue | 101 ---- web_src/js/components/DashboardRepoList.js | 370 +++++++++++++++ web_src/js/components/RepoActivityTopAuthors.vue | 110 +++++ web_src/js/components/RepoBranchTagDropdown.js | 161 +++++++ web_src/js/components/VueComponentLoader.js | 52 +++ web_src/js/features/admin-users.js | 2 +- web_src/js/index.js | 567 +---------------------- web_src/less/_repository.less | 4 - 9 files changed, 705 insertions(+), 663 deletions(-) delete mode 100644 web_src/js/components/ActivityTopAuthors.vue create mode 100644 web_src/js/components/DashboardRepoList.js create mode 100644 web_src/js/components/RepoActivityTopAuthors.vue create mode 100644 web_src/js/components/RepoBranchTagDropdown.js create mode 100644 web_src/js/components/VueComponentLoader.js (limited to 'web_src') diff --git a/web_src/js/components/ActivityHeatmap.vue b/web_src/js/components/ActivityHeatmap.vue index 63e38ea69e..fa2c43b5b4 100644 --- a/web_src/js/components/ActivityHeatmap.vue +++ b/web_src/js/components/ActivityHeatmap.vue @@ -70,4 +70,3 @@ export default { }, }; -