diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index aba70a6bf..e8a54fec4 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -13,9 +13,14 @@
-
-
+
+
+
+
+
+
+
@@ -82,108 +87,104 @@
-
+
-
-
+
+
+
+
+
+
-
+
-
-
+
+
-
+
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
-
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
-
-
+
+
-
+
-
-
+
+
@@ -199,9 +200,6 @@
- Remember Me
- login
- attempting
name
redirect
from
@@ -222,13 +220,16 @@
reply as
creatingreply
description
- review
item_rate_equip: {0,999}
'
configs
4339
- base_exp
item_rate_equip
+ base_exp
+ configuration
+ review
+ post
+ post comment
@@ -260,8 +261,6 @@
@@ -425,50 +426,6 @@
-
-
-
-
-
-
- Data flowJavaScript
-
-
- ECMAScript 6 migration aidsJavaScript
-
-
- General
-
-
- JavaScript
-
-
- Symfony
-
-
- TemplateSymfony
-
-
- TwigSymfony
-
-
- Vue
-
-
- XPath
-
-
- XSLT
-
-
-
-
- Angular
-
-
-
-
-
@@ -486,7 +443,20 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -514,7 +484,7 @@
-
+
@@ -671,20 +641,6 @@
-
- 1557606473408
-
-
-
- 1557606473408
-
-
- 1557606483864
-
-
-
- 1557606483864
-
1557613769227
@@ -988,7 +944,7 @@
1558517941772
-
+
1558518992015
@@ -1025,7 +981,21 @@
1558539114647
-
+
+ 1558552307451
+
+
+
+ 1558552307452
+
+
+ 1558553012888
+
+
+
+ 1558553012888
+
+
@@ -1036,9 +1006,6 @@
-
-
-
@@ -1066,10 +1033,13 @@
+
+
+
-
+
@@ -1084,13 +1054,13 @@
-
+
-
+
@@ -1099,7 +1069,7 @@
-
+
@@ -1161,8 +1131,6 @@
-
-
@@ -1186,55 +1154,12 @@
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1283,13 +1208,6 @@
-
-
-
-
-
-
-
@@ -1297,16 +1215,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -1386,27 +1294,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1414,13 +1301,6 @@
-
-
-
-
-
-
-
@@ -1435,20 +1315,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1465,13 +1331,6 @@
-
-
-
-
-
-
-
@@ -1542,10 +1401,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -1553,29 +1498,67 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
-
+
+
+
+
+
-
+
-
-
+
+
-
+
diff --git a/app/ReviewComment.php b/app/ReviewComment.php
index 1292d1322..73a831644 100644
--- a/app/ReviewComment.php
+++ b/app/ReviewComment.php
@@ -7,6 +7,13 @@
class ReviewComment extends Model
{
+ /**
+ * The attributes that are mass assignable.
+ *
+ * @var array
+ */
+ protected $fillable = ['message'];
+
/**
* Comment belongs to a review.
*/
diff --git a/public/js/app.js b/public/js/app.js
index ff4634644..9216310bd 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -15753,19 +15753,28 @@ __webpack_require__.r(__webpack_exports__);
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var vform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vform */ "./node_modules/vform/dist/vform.common.js");
+/* harmony import */ var vform__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vform__WEBPACK_IMPORTED_MODULE_1__);
+
/* harmony default export */ __webpack_exports__["default"] = ({
props: ['review'],
+ components: {
+ 'has-error': vform__WEBPACK_IMPORTED_MODULE_1__["HasError"],
+ 'alert-error': vform__WEBPACK_IMPORTED_MODULE_1__["AlertError"]
+ },
data: function data() {
return {
starCount: 0,
viewingDetails: false,
commenting: false,
- commentMessage: ''
+ comment: new vform__WEBPACK_IMPORTED_MODULE_1__["Form"]({
+ message: ''
+ })
};
},
computed: {
- reportButtonText: function reportButtonText() {
+ commentButtonText: function commentButtonText() {
return this.viewingDetails ? 'Close comment' : 'Comment as server owner';
},
detailButtonText: function detailButtonText() {
@@ -15789,7 +15798,17 @@ __webpack_require__.r(__webpack_exports__);
return moment__WEBPACK_IMPORTED_MODULE_0___default()(this.review.created_at).startOf('day').fromNow();
},
postComment: function postComment() {
- this.commenting = true;
+ var _this = this;
+
+ this.comment.post('/review/' + this.review.id + '/comment').then(function (response) {
+ _this.$Message.success('Great! We have notified this user of your comment');
+
+ _this.review.comments.push(response.data.comment);
+
+ _this.commenting = false;
+ })["catch"](function (error) {
+ _this.$Message.error(error.message);
+ });
},
reportReview: function reportReview() {}
}
diff --git a/public/mix-manifest.json b/public/mix-manifest.json
index df5edd137..233b67a52 100644
--- a/public/mix-manifest.json
+++ b/public/mix-manifest.json
@@ -1,4 +1,4 @@
{
- "/js/app.js": "/js/app.js?id=ad69a06e7802cb0d111f",
+ "/js/app.js": "/js/app.js?id=9767b81328e97feae7af",
"/css/app.css": "/css/app.css?id=2ca1c713699a279f42c3"
}
diff --git a/resources/js/components/ReviewComponent.vue b/resources/js/components/ReviewComponent.vue
index e290de406..68282ef5d 100644
--- a/resources/js/components/ReviewComponent.vue
+++ b/resources/js/components/ReviewComponent.vue
@@ -1,18 +1,26 @@