Последняя версия с сервера прошлого разработчика
This commit is contained in:
44
resources/js/Shared/Notification/NotifyText.vue
Executable file
44
resources/js/Shared/Notification/NotifyText.vue
Executable file
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<component
|
||||
:is="currentNotify"
|
||||
></component>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NotifyTextLike from '@/Shared/Notification/NotifyTextLike.vue'
|
||||
import NotifyTextComment from '@/Shared/Notification/NotifyTextComment.vue'
|
||||
import NotifyTextSubs from '@/Shared/Notification/NotifyTextSubs.vue'
|
||||
import NotifyTextLeader from '@/Shared/Notification/NotifyTextLeader.vue'
|
||||
import NotifyTextPurchase from '@/Shared/Notification/NotifyTextPurchase.vue'
|
||||
import NotifyTextRemoveFeed from '@/Shared/Notification/NotifyTextRemoveFeed.vue'
|
||||
import NotifyTextCustomPaidSubs from '@/Shared/Notification/NotifyTextCustomPaidSubs.vue'
|
||||
import NotifyTextBannedMessageFeed from '@/Shared/Notification/NotifyTextBannedMessageFeed.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
NotifyTextLike,
|
||||
NotifyTextComment,
|
||||
NotifyTextSubs,
|
||||
NotifyTextLeader,
|
||||
NotifyTextPurchase,
|
||||
NotifyTextRemoveFeed,
|
||||
NotifyTextCustomPaidSubs,
|
||||
NotifyTextBannedMessageFeed,
|
||||
},
|
||||
provide() {
|
||||
return {
|
||||
content: this.content
|
||||
}
|
||||
},
|
||||
props: {
|
||||
type: String,
|
||||
content: Object,
|
||||
},
|
||||
computed: {
|
||||
currentNotify() {
|
||||
return 'notify-text-' + this.type
|
||||
},
|
||||
},
|
||||
methods: {},
|
||||
}
|
||||
</script>
|
||||
28
resources/js/Shared/Notification/NotifyTextBannedMessageFeed.vue
Executable file
28
resources/js/Shared/Notification/NotifyTextBannedMessageFeed.vue
Executable file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div v-if="content.success">
|
||||
Контент одобрен и успешно опубликован
|
||||
</div>
|
||||
<div v-else>
|
||||
<div>
|
||||
Контент не может быть опубликован (причина):
|
||||
</div>
|
||||
<div class="text-base text-gray-light">
|
||||
<ul>
|
||||
<li v-for="textBreak in textsBreak" :key="textBreak">
|
||||
{{ textBreak }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
inject: ['content'],
|
||||
computed: {
|
||||
textsBreak() {
|
||||
return this.content.text.split('\n')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
10
resources/js/Shared/Notification/NotifyTextComment.vue
Executable file
10
resources/js/Shared/Notification/NotifyTextComment.vue
Executable file
@@ -0,0 +1,10 @@
|
||||
<template>
|
||||
<div>оставил(а) комментарий:</div>
|
||||
<div class="truncate text-base text-gray-light">{{content.comment}}</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
inject: ["content"],
|
||||
};
|
||||
</script>
|
||||
3
resources/js/Shared/Notification/NotifyTextCustomPaidSubs.vue
Executable file
3
resources/js/Shared/Notification/NotifyTextCustomPaidSubs.vue
Executable file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<p>оформил платную подписку на вас</p>
|
||||
</template>
|
||||
3
resources/js/Shared/Notification/NotifyTextLeader.vue
Executable file
3
resources/js/Shared/Notification/NotifyTextLeader.vue
Executable file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<p>проголосовал за вас</p>
|
||||
</template>
|
||||
3
resources/js/Shared/Notification/NotifyTextLike.vue
Executable file
3
resources/js/Shared/Notification/NotifyTextLike.vue
Executable file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<p>поставил(а) лайк</p>
|
||||
</template>
|
||||
12
resources/js/Shared/Notification/NotifyTextPurchase.vue
Executable file
12
resources/js/Shared/Notification/NotifyTextPurchase.vue
Executable file
@@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<div>Купил товар на сумму:</div>
|
||||
<div class="truncate text-base text-gray-light">
|
||||
{{ content.price }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
inject: ['content'],
|
||||
}
|
||||
</script>
|
||||
4
resources/js/Shared/Notification/NotifyTextRemoveFeed.vue
Executable file
4
resources/js/Shared/Notification/NotifyTextRemoveFeed.vue
Executable file
@@ -0,0 +1,4 @@
|
||||
<template>
|
||||
<div>Ваш контент был удален за нарушение правил</div>
|
||||
<div class="truncate text-base text-gray-light"></div>
|
||||
</template>
|
||||
3
resources/js/Shared/Notification/NotifyTextSubs.vue
Executable file
3
resources/js/Shared/Notification/NotifyTextSubs.vue
Executable file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<p>подписался на вас</p>
|
||||
</template>
|
||||
Reference in New Issue
Block a user