Skip to content

Commit

Permalink
Merge pull request #66 from RobbinBaauw/dev
Browse files Browse the repository at this point in the history
[Release] 0.2.1
  • Loading branch information
RobbinBaauw authored Nov 6, 2018
2 parents cb665e2 + d8507be commit 79fb430
Show file tree
Hide file tree
Showing 32 changed files with 1,223 additions and 712 deletions.
2 changes: 1 addition & 1 deletion cshub-client/.env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VUE_APP_API_URL=https://api-dev.cshub.nl
VUE_APP_API_URL=https://api.cshub.nl
VUE_APP_DEBUG=false
28 changes: 7 additions & 21 deletions cshub-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added cshub-client/public/assets/defaultAvatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions cshub-client/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@
background: white;
}
.postTile .v-list__tile {
height: auto !important;
}
.v-icon {
font-size: 17px !important;
}
Expand Down
2 changes: 0 additions & 2 deletions cshub-client/src/components/admin/UserTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<td class="text-xs-right">{{ props.item.lastname }}</td>
<td class="text-xs-right">{{ props.item.email }}</td>
<td class="text-xs-right">{{ props.item.admin }}</td>
<td class="text-xs-right">{{ props.item.avatar }}</td>
<td class="text-xs-right">{{ props.item.blocked }}</td>
<td class="text-xs-right">{{ props.item.verified }}</td>
</template>
Expand Down Expand Up @@ -47,7 +46,6 @@
{text: "Last name", value: "lastname"},
{text: "Email", value: "email"},
{text: "Admin", value: "admin"},
{text: "Avatar", value: "avatar"},
{text: "Blocked", value: "blocked"},
{text: "Verified", value: "verified"}
];
Expand Down
13 changes: 13 additions & 0 deletions cshub-client/src/components/global/NavDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<router-link :to="navigationLocations.USERDASHBOARD" v-if="userLoggedInComputed"><NavDrawerItem icon="fas fa-user" text="User dashboard"></NavDrawerItem></router-link>
<router-link :to="navigationLocations.ADMINDASHBOARD" v-if="userLoggedInComputed && userAdminComputed"><NavDrawerItem icon="fas fa-users" text="Admin dashboard"></NavDrawerItem></router-link>
<router-link :to="navigationLocations.LOGIN" v-if="!userLoggedInComputed"><NavDrawerItem icon="fas fa-sign-in-alt" text="Login"></NavDrawerItem></router-link>
<a @click="logout"><NavDrawerItem v-if="userLoggedInComputed" icon="fas fa-sign-out-alt" text="Logout"></NavDrawerItem></a>
<v-divider dark class="my-3"></v-divider>
<v-layout
row
Expand All @@ -36,6 +37,7 @@
:items="topics"
item-key="hash"
activatable
class="ml-3"
active-class="primary--text"
transition>
</v-treeview>
Expand Down Expand Up @@ -191,6 +193,17 @@
});
});
}
/**
* Methods
*/
private logout() {
logStringConsole("Logging user out");
document.cookie = "token=";
userState.clearUserModel();
uiState.setDrawerState(false);
this.$router.push(Routes.INDEX);
}
}
</script>

Expand Down
Loading

0 comments on commit 79fb430

Please sign in to comment.