Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend updates from latest release to main #1537

Merged
merged 40 commits into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
7e09056
Added notes and requirements docs for Sprint 1
bglob Nov 15, 2021
9467069
Merge pull request #1 from JamesDonovan1/Sprint1
bglob Nov 15, 2021
3a5dcf1
Create pull_request_template.md
sgoggins Nov 17, 2021
33fcbc2
Rename pull_request_template.md to docs/pull_request_template.md
sgoggins Nov 17, 2021
31e8da0
Create pull_request_template.md
sgoggins Nov 17, 2021
21d094d
Rename pull_request_template.md to .github/pull_request_template.md
sgoggins Nov 17, 2021
a59c0fb
Merge pull request #1519 from chaoss/sean-patch-aaf
sgoggins Nov 17, 2021
8771f03
public dir
jacoblagesse Nov 18, 2021
ea0b05e
Test commit, please ignore
Nov 18, 2021
0ab24f8
Merge branch 'tab-title-icon-fix' of https://github.com/JamesDonovan1…
Nov 18, 2021
c0a1f2f
Tab Title/Icon Fix
bglob Nov 18, 2021
c72eb6a
Merge branch 'tab-title-icon-fix' of https://github.com/JamesDonovan1…
Nov 18, 2021
c715ff5
Added new icon
bglob Nov 18, 2021
43bb06e
Merge branch 'tab-title-icon-fix' of https://github.com/JamesDonovan1…
Nov 18, 2021
31021d5
Merge pull request #1522 from chaoss/sean-patch-aaf
sgoggins Nov 18, 2021
c2648aa
Deleted Useless images
Nov 18, 2021
f4f2ea7
Merge pull request #3 from JamesDonovan1/tab-title-icon-fix
bglob Nov 18, 2021
dff88a7
Added comments
bglob Nov 18, 2021
8e8087c
Merge pull request #4 from JamesDonovan1/tab-title-icon-fix
bglob Nov 18, 2021
4086a83
Merge pull request #6 from JamesDonovan1/Sprint2-dummy
bglob Nov 21, 2021
7d6e254
Merge pull request #7 from JamesDonovan1/Sprint2
bglob Nov 21, 2021
650657f
Added Sprint 2 Documentation
bglob Nov 21, 2021
6117a85
fixed tooltip positioning
jacoblagesse Dec 6, 2021
4e4b46c
Merge pull request #1526 from chaoss/sean-patch-aaf
sgoggins Dec 6, 2021
6199159
Initial work
Dec 6, 2021
8d2bb69
Changed repo group from click event to router-link driven. Commented …
Dec 6, 2021
917a075
Fixed issue in repo page that repo group page was suffering from befo…
Dec 7, 2021
c7a536b
Merge pull request #9 from JamesDonovan1/jim-branch
bglob Dec 7, 2021
854b769
Merge pull request #10 from JamesDonovan1/tooltip-fix
bglob Dec 7, 2021
18682b6
Incased previous router-link work in table data elements to improve t…
Dec 7, 2021
439ff1f
Add Docs Sprint 3
bglob Dec 7, 2021
34ef50b
Merge pull request #11 from JamesDonovan1/Sprint3
bglob Dec 7, 2021
2bfc684
Repo tab sends user to list of all repos
Dec 10, 2021
1225d2a
Merge pull request #12 from JamesDonovan1/repo-tab-fix
bglob Dec 10, 2021
f5c857a
Added Docs
bglob Dec 11, 2021
b5c9e07
Merge pull request #1533 from JamesDonovan1/Sprint4
sgoggins Dec 13, 2021
2836a32
tidying
sgoggins Dec 13, 2021
bf0b6d5
Merge pull request #1534 from chaoss/test
sgoggins Dec 13, 2021
21ddd4d
Update metadata.py
sgoggins Dec 13, 2021
c42306f
Merge branch 'sean-patch-aai' into main
sgoggins Dec 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"