diff --git a/templates/repo/contributors.tmpl b/templates/repo/contributors.tmpl index 71b706331..de00e7961 100755 --- a/templates/repo/contributors.tmpl +++ b/templates/repo/contributors.tmpl @@ -1,49 +1,9 @@ {{template "base/head" .}} -
{{template "repo/header" .}} -
+
+ -
-

- - -

-
- {{range .ContributorInfo}} -
- {{if .UserInfo}} - - {{else if .Email}} - - {{end}} - -
-
- {{if .UserInfo}} - {{.UserInfo.Name}} - {{else if .Email}} - {{.Email}} - {{end}} -
- Commits: {{.CommitCnt}} -
- -
- - {{end}} - -
- - {{template "base/paginate" .}} - -
{{template "base/footer" .}} diff --git a/web_src/js/components/Contributors.vue b/web_src/js/components/Contributors.vue new file mode 100644 index 000000000..2446e0bed --- /dev/null +++ b/web_src/js/components/Contributors.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/web_src/js/index.js b/web_src/js/index.js index a117ee73d..560683b7e 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -37,6 +37,7 @@ import ObsUploader from './components/ObsUploader.vue'; import EditAboutInfo from './components/EditAboutInfo.vue'; import Images from './components/Images.vue' import EditTopics from './components/EditTopics.vue' +import Contributors from './components/Contributors.vue' Vue.use(ElementUI); Vue.prototype.$axios = axios; @@ -2969,6 +2970,7 @@ $(document).ready(async () => { initObsUploader(); initVueEditAbout(); initVueEditTopic(); + initVueContributors(); initVueImages(); initTeamSettings(); initCtrlEnterSubmit(); @@ -3682,6 +3684,21 @@ function initVueEditTopic() { render:h=>h(EditTopics) }) } + +function initVueContributors() { + const el = document.getElementById('Contributors'); + + if (!el) { + return; + } + + new Vue({ + el:'#Contributors', + render:h=>h(Contributors) + }) +} + + function initVueImages() { const el = document.getElementById('images'); console.log("el",el)