From 5eb02595b99b0fd332cee54179345659b86dc5d7 Mon Sep 17 00:00:00 2001 From: chenshihai Date: Fri, 2 Dec 2022 15:44:20 +0800 Subject: [PATCH] add repos square --- templates/base/head_navbar.tmpl | 6 +- templates/base/head_navbar_fluid.tmpl | 6 +- templates/base/head_navbar_home.tmpl | 6 +- templates/base/head_navbar_pro.tmpl | 4 +- templates/explore/navbar.tmpl | 4 +- templates/explore/repos/search.tmpl | 6 + templates/explore/repos/square.tmpl | 6 + templates/user/dashboard/dashboard.tmpl | 2 +- web_src/js/index.js | 2 +- web_src/vuepages/apis/modules/common.js | 12 + web_src/vuepages/apis/modules/repos.js | 69 ++++ .../pages/repos/components/ActiveOrgs.vue | 113 ++++++ .../pages/repos/components/ActiveUsers.vue | 138 +++++++ .../pages/repos/components/RecommendRepos.vue | 135 +++++++ .../pages/repos/components/ReposFilters.vue | 111 ++++++ .../pages/repos/components/ReposItem.vue | 266 ++++++++++++++ .../pages/repos/components/ReposList.vue | 94 +++++ .../pages/repos/components/SearchBar.vue | 155 ++++++++ .../pages/repos/components/SquareTop.vue | 343 ++++++++++++++++++ web_src/vuepages/pages/repos/search/index.vue | 59 +++ .../pages/repos/search/vp-repos-search.js | 17 + web_src/vuepages/pages/repos/square/index.vue | 86 +++++ .../pages/repos/square/vp-repos-square.js | 17 + 23 files changed, 1642 insertions(+), 15 deletions(-) create mode 100644 templates/explore/repos/search.tmpl create mode 100644 templates/explore/repos/square.tmpl create mode 100644 web_src/vuepages/apis/modules/common.js create mode 100644 web_src/vuepages/apis/modules/repos.js create mode 100644 web_src/vuepages/pages/repos/components/ActiveOrgs.vue create mode 100644 web_src/vuepages/pages/repos/components/ActiveUsers.vue create mode 100644 web_src/vuepages/pages/repos/components/RecommendRepos.vue create mode 100644 web_src/vuepages/pages/repos/components/ReposFilters.vue create mode 100644 web_src/vuepages/pages/repos/components/ReposItem.vue create mode 100644 web_src/vuepages/pages/repos/components/ReposList.vue create mode 100644 web_src/vuepages/pages/repos/components/SearchBar.vue create mode 100644 web_src/vuepages/pages/repos/components/SquareTop.vue create mode 100644 web_src/vuepages/pages/repos/search/index.vue create mode 100644 web_src/vuepages/pages/repos/search/vp-repos-search.js create mode 100644 web_src/vuepages/pages/repos/square/index.vue create mode 100644 web_src/vuepages/pages/repos/square/vp-repos-square.js diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 50521516f..cb28fa846 100755 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -32,7 +32,7 @@ - {{.i18n.Tr "custom.head.project"}} + {{.i18n.Tr "custom.head.project"}} {{.i18n.Tr "custom.head.dataset"}} - {{.i18n.Tr "custom.head.project"}} + {{.i18n.Tr "custom.head.project"}} {{.i18n.Tr "custom.head.dataset"}} {{else if .IsLandingPageExplore}} - {{.i18n.Tr "home"}} + {{.i18n.Tr "home"}} {{else if .IsLandingPageOrganizations}} {{.i18n.Tr "home"}} {{end}} diff --git a/templates/base/head_navbar_fluid.tmpl b/templates/base/head_navbar_fluid.tmpl index b2fd60787..19f04f0b7 100644 --- a/templates/base/head_navbar_fluid.tmpl +++ b/templates/base/head_navbar_fluid.tmpl @@ -32,7 +32,7 @@ - {{.i18n.Tr "custom.head.project"}} + {{.i18n.Tr "custom.head.project"}} {{.i18n.Tr "custom.head.dataset"}} - {{.i18n.Tr "custom.head.project"}} + {{.i18n.Tr "custom.head.project"}} {{.i18n.Tr "custom.head.dataset"}} {{else if .IsLandingPageExplore}} - {{.i18n.Tr "home"}} + {{.i18n.Tr "home"}} {{else if .IsLandingPageOrganizations}} {{.i18n.Tr "home"}} {{end}} diff --git a/templates/base/head_navbar_home.tmpl b/templates/base/head_navbar_home.tmpl index 3a8a273d2..e64c18c9b 100644 --- a/templates/base/head_navbar_home.tmpl +++ b/templates/base/head_navbar_home.tmpl @@ -24,7 +24,7 @@ - {{.i18n.Tr "custom.head.project"}} + {{.i18n.Tr "custom.head.project"}} {{.i18n.Tr "custom.head.dataset"}} - {{.i18n.Tr "custom.head.project"}} + {{.i18n.Tr "custom.head.project"}} {{.i18n.Tr "custom.head.dataset"}} {{else if .IsLandingPageExplore}} - {{.i18n.Tr "home"}} + {{.i18n.Tr "home"}} {{else if .IsLandingPageOrganizations}} {{.i18n.Tr "home"}} {{end}} diff --git a/templates/base/head_navbar_pro.tmpl b/templates/base/head_navbar_pro.tmpl index f342e568a..02374e7fc 100644 --- a/templates/base/head_navbar_pro.tmpl +++ b/templates/base/head_navbar_pro.tmpl @@ -34,7 +34,7 @@ - {{.i18n.Tr "custom.head.project"}} + {{.i18n.Tr "custom.head.project"}} {{.i18n.Tr "custom.head.dataset"}} {{else if .IsLandingPageExplore}} - {{.i18n.Tr "home"}} + {{.i18n.Tr "home"}} {{else if .IsLandingPageOrganizations}} {{.i18n.Tr "home"}} {{end}} diff --git a/templates/explore/navbar.tmpl b/templates/explore/navbar.tmpl index c8c81defb..3bc907458 100644 --- a/templates/explore/navbar.tmpl +++ b/templates/explore/navbar.tmpl @@ -1,6 +1,6 @@