Skip to content

Commit

Permalink
v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
trylaarsdam committed Jul 28, 2022
1 parent 343127a commit 9498502
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "assignment-canvas",
"version": "2.4.0b",
"version": "2.5.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<v-list-item-title class="text-h6">
Assignment Canvas
</v-list-item-title>
<v-list-item-subtitle>v2.4.0b</v-list-item-subtitle>
<v-list-item-subtitle>v2.5.0</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</v-list>
Expand Down
27 changes: 27 additions & 0 deletions src/components/ReplyView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<v-card color="#272727" dark style="padding: 0.5rem; border-radius: 10px; border: 2px solid #666;">
<v-card-title class="text-h6" v-if="reply.deleted != true">
{{ reply.user_id }}
</v-card-title>

<v-card-subtitle
class="announcementContent"
v-html="reply.message"
v-if="reply.deleted != true"
>
</v-card-subtitle>
<v-card-subtitle v-else>
Deleted Reply
</v-card-subtitle>
<div v-for="nestedReply in reply.replies" :key="nestedReply.id">
<ReplyView :reply="nestedReply" />
</div>
</v-card>
</template>

<script>
export default {
name: "ReplyView",
props: ["reply"]
}
</script>
19 changes: 3 additions & 16 deletions src/views/AnnouncementView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,7 @@
<p v-html="announcement.message" />
<v-divider dark style="padding: 0.5rem;" />
<div class="reply" v-for="reply in announcement.replies" :key="reply.id">
<v-card color="#272727" dark>
<v-card-title class="text-h6" v-if="reply.deleted != true">
{{ reply.user_id }}
</v-card-title>

<v-card-subtitle
class="announcementContent"
v-html="reply.message"
v-if="reply.deleted != true"
>
</v-card-subtitle>
<v-card-subtitle v-else>
Deleted Reply
</v-card-subtitle>
</v-card>
<ReplyView :reply="reply" />
</div>
</div>
<div class="loading" v-else>
Expand All @@ -41,11 +27,12 @@

<script>
const axios = require("axios").default;
import ReplyView from "../components/ReplyView.vue"
export default {
name: "AnnouncementView",
components: {
ReplyView
},
data() {
return {
Expand Down

0 comments on commit 9498502

Please sign in to comment.