Skip to content

Commit

Permalink
Merge pull request #1537 from chaoss/main
Browse files Browse the repository at this point in the history
Frontend updates from latest release to main
  • Loading branch information
sgoggins authored Dec 14, 2021
2 parents a570a30 + c42306f commit e9f9723
Show file tree
Hide file tree
Showing 32 changed files with 1,003 additions and 896 deletions.
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Pull Request Template
1 change: 1 addition & 0 deletions docs/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Pull Request Template
1,765 changes: 923 additions & 842 deletions frontend/package-lock.json

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<!-- This file is where the title and Icon are finally set -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="shortcut icon" type="image/png" href="./logowithoutletters2.png"/>
<title>Augur</title>
</head>
<body>
<div id="app"></div>
</body>
</html>
Binary file added frontend/public/logowithoutletters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/logowithoutletters2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed frontend/src/assets/avatars/0.jpg
Binary file not shown.
Binary file removed frontend/src/assets/avatars/1.jpg
Binary file not shown.
Binary file removed frontend/src/assets/avatars/2.jpg
Binary file not shown.
Binary file removed frontend/src/assets/avatars/3.jpg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/1.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/10.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/11.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/12.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/13.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/14.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/15.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/16.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/2.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/3.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/4.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/5.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/6.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/7.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/8.jpeg
Binary file not shown.
Binary file removed frontend/src/assets/content-management/9.jpeg
Binary file not shown.
20 changes: 11 additions & 9 deletions frontend/src/components/ReposInGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<tbody>
<tr v-for="(repo,index) in sortedReposInGroup(base,sortColumn,ascending)" v-bind:item="repo">
<td>
<a href="#" @click="onGitRepo(repo)">{{ repo.url }}</a>
<router-link tag="a" :to="'/repo/' + repo.rg_name + '/' + repo.repo_name + '/overview'">{{ repo.url }}</router-link>
</td>
<td>{{ repo.rg_name }}</td>
<!-- <td>{{ repo.description }}</td> -->
Expand Down Expand Up @@ -182,14 +182,16 @@ export default class ReposInGroup extends Vue{
this.sortColumn = col;
}
}

onGitRepo (e: any) {
console.log(e)
this.$router.push({
name: 'repo_overview',
params: {group:e.rg_name, repo:e.repo_name, repo_group_id: e.repo_group_id, repo_id: e.repo_id, url:e.url}
})
}
// Removed 12/6/2021
// Replaced by router-link element
// If something broke in regards to parameter passing to the router, this could be it
// onGitRepo (e: any) {
// console.log(e)
// this.$router.push({
// name: 'repo_overview',
// params: {group:e.rg_name, repo:e.repo_name, repo_group_id: e.repo_group_id, repo_id: e.repo_id, url:e.url}
// })
// }
}

</script>
30 changes: 15 additions & 15 deletions frontend/src/components/layout/MainSidebar/MainSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<div class="nav-wrapper">
<d-nav class="flex-column mainSideBarNav">
<li v-for="(item, navItemIdx) in items" :key="navItemIdx" class="nav-item dropdown" @click="checkForRepoRouteChange($event)">
<li v-for="(item, navItemIdx) in items" :key="navItemIdx" class="nav-item dropdown">
<d-link class="mainSideBarLink" :class="['nav-link', item.items && item.items.length ? 'dropdown-toggle' : '']" :to="item.to" v-d-toggle="`snc-${navItemIdx}`">
<div class="item-icon-wrapper" v-if="item.htmlBefore" v-html="item.htmlBefore" />
<span v-if="item.title" class="mainSideBarV">{{ item.title }}</span>
Expand Down Expand Up @@ -130,7 +130,7 @@
}, {
title: 'Repos',
to: {
name: 'group_overview',
name: 'repos',
params: { }
},
htmlBefore: '<i class="material-icons">table_chart</i>',
Expand Down Expand Up @@ -193,19 +193,19 @@
findRepoGroup() {
console.log(Object.keys(this.$store.state.common.apiGroups));
}
checkForRepoRouteChange(e: any) {
console.log(e);
if (e.target.innerHTML !== 'Repos') {
return;
}
let currentlySelectedRepoGroup = Object.keys(this.$store.state.common.apiGroups)[Object.keys(this.$store.state.common.apiGroups).length - 1].split('/')[0];
console.log('HERE: ' + currentlySelectedRepoGroup);
if (currentlySelectedRepoGroup === 'undefined') {
this.$router.push({ name: 'repo_groups' });
} else {
this.$router.push(`group/${currentlySelectedRepoGroup}/overview`);
}
}
// checkForRepoRouteChange(e: any) {
// console.log(e);
// if (e.target.innerHTML !== 'Repos') {
// return;
// }
// //let currentlySelectedRepoGroup = Object.keys(this.$store.state.common.apiGroups)[Object.keys(this.$store.state.common.apiGroups).length - 1].split('/')[0];
// //console.log('HERE: ' + currentlySelectedRepoGroup);
// //if (currentlySelectedRepoGroup === 'undefined') {
// // this.$router.push({ name: 'repo_groups' });
// //} else {
// this.$router.push(`/repos`);
// //}
// }
}
</script>

Expand Down
8 changes: 5 additions & 3 deletions frontend/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<d-tooltip
:target="'#' + idx"
container=".shards-demo--example--tooltip-01"
placement="right"
placement="bottom"
offset="10">
Click here to see an overview of this repository's metrics
</d-tooltip>
Expand All @@ -57,7 +57,9 @@
<d-tooltip
:target="'#ev' + idx"
container=".shards-demo--example--tooltip-01"
offset="20">
offset="20"
position="top"
>
Click to see evolution metrics for this repo.
</d-tooltip>
</d-col>
Expand Down Expand Up @@ -95,7 +97,7 @@
<d-tooltip
:target="'#ri' + idx"
container=".shards-demo--example--tooltip-01"
placement="right"
placement="top"
offset="20">
Click to see risk metrics for this repo.
</d-tooltip>
Expand Down
17 changes: 10 additions & 7 deletions frontend/src/views/RepoGroups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<tbody>
<tr v-for="(group, index) in sortedRepoGroups(sortColumn, ascending)">
<td>
<a href="#" @click="onRepoGroup(group)">{{ group.rg_name }}</a>
<router-link tag="a" :to="'/group/' + group.rg_name + '/overview'">{{ group.rg_name }}</router-link>
</td>
<td>{{ group.rg_description }}</td>
<td>{{ group.rg_website }}</td>
Expand Down Expand Up @@ -219,11 +219,14 @@ export default class RepoGroups extends Vue {
}
}

onRepoGroup(e: any) {
this.$router.push({
name: "group_overview",
params: { group: e.rg_name, repo_group_id: e.repo_group_id }
});
}
// Removed 12/6/2021
// Replaced by router-link element
// If something broke in regards to group or repo_group_id being passed to the router, this could be it
// onRepoGroup(e: any) {
// this.$router.push({
// name: "group_overview",
// params: { group: e.rg_name, repo_group_id: e.repo_group_id }
// });
// }
}
</script>
39 changes: 21 additions & 18 deletions frontend/src/views/Repos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<tbody>
<tr v-for="repo in sortedRepos(sortColumn,ascending)" v-bind:item="repo" :key="repo.url">
<td>
<a href="#" @click="onGitRepo(repo.rg_name, repo.repo_name)">{{ repo.url }}</a>
<router-link tag="a" :to="'/repo/' + repo.rg_name + '/' + repo.repo_name + '/overview'">{{ repo.url }}</router-link>
</td>
<td>{{ repo.rg_name }}</td>
<!-- <td>{{ repo.description }}</td> -->
Expand Down Expand Up @@ -184,23 +184,26 @@ export default class Repos extends Vue{
}
}

onGitRepo (rg_name: String, repo_name: String) {
// this.$router.push({
// name: 'repo_overview',
// params: {group:e.rg_name, repo:e.repo_name, repo_group_id: e.repo_group_id, repo_id: e.repo_id, url:e.url}
// }, () => {
// console.dir(e);
// });
if (rg_name == null || repo_name == null ) {
window.alert('Error - repo name not found in store');
console.log(this.sortedRepos(this.sortColumn,this.ascending));
} else {
this.$router.push(`repo/${rg_name}/${repo_name}/overview`, () => {
console.log(`RG_NAME: ${rg_name}`);
console.log(`REPO_NAME: ${repo_name}`);
});
}
}
// Removed 12/9/2021
// Replaced by router-link element
// If something broke in regards to parameter passing to the router, this could be it
// onGitRepo (rg_name: String, repo_name: String) {
// // this.$router.push({
// // name: 'repo_overview',
// // params: {group:e.rg_name, repo:e.repo_name, repo_group_id: e.repo_group_id, repo_id: e.repo_id, url:e.url}
// // }, () => {
// // console.dir(e);
// // });
// if (rg_name == null || repo_name == null ) {
// window.alert('Error - repo name not found in store');
// console.log(this.sortedRepos(this.sortColumn,this.ascending));
// } else {
// this.$router.push(`repo/${rg_name}/${repo_name}/overview`, () => {
// console.log(`RG_NAME: ${rg_name}`);
// console.log(`REPO_NAME: ${repo_name}`);
// });
// }
// }
}

</script>
4 changes: 2 additions & 2 deletions metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

__short_description__ = "Python 3 package for free/libre and open-source software community metrics & data collection"

__version__ = "0.22.0"
__release__ = "v0.22.0"
__version__ = "0.21.12"
__release__ = "v0.21.12"

__license__ = "MIT"
__copyright__ = "CHAOSS & Augurlabs 2021"

0 comments on commit e9f9723

Please sign in to comment.