Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
updated react side
Browse files Browse the repository at this point in the history
  • Loading branch information
the-robot committed Feb 18, 2020
1 parent c21db87 commit c22f68a
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions src/web/public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -136785,6 +136785,8 @@ var _react = _interopRequireDefault(require("react"));

var _axios = _interopRequireDefault(require("axios"));

var _moment = _interopRequireDefault(require("moment"));

var _urls = _interopRequireDefault(require("../../../routes/urls"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
Expand Down Expand Up @@ -136863,7 +136865,11 @@ function (_React$Component) {
var _res$data = res.data,
data = _res$data.data,
page = _res$data.page,
total_pages = _res$data.total_pages;
total_pages = _res$data.total_pages; // format date data

for (var i = 0; i < data.length; i++) {
data[i].date = (0, _moment["default"])(data[i].date).format('DD-MM-YYYY HH:mm');
}

_this.setState({
data: data,
Expand Down Expand Up @@ -136975,7 +136981,7 @@ function (_React$Component) {
var _default = NewsFeed;
exports["default"] = _default;

},{"../../../routes/urls":1187,"axios":10,"react":647,"rsuite":1140}],1197:[function(require,module,exports){
},{"../../../routes/urls":1187,"axios":10,"moment":579,"react":647,"rsuite":1140}],1197:[function(require,module,exports){
"use strict";

Object.defineProperty(exports, "__esModule", {
Expand All @@ -136989,6 +136995,8 @@ var _react = _interopRequireDefault(require("react"));

var _axios = _interopRequireDefault(require("axios"));

var _moment = _interopRequireDefault(require("moment"));

var _urls = _interopRequireDefault(require("../../../routes/urls"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
Expand Down Expand Up @@ -137067,7 +137075,11 @@ function (_React$Component) {
var _res$data = res.data,
data = _res$data.data,
page = _res$data.page,
total_pages = _res$data.total_pages;
total_pages = _res$data.total_pages; // format date data

for (var i = 0; i < data.length; i++) {
data[i].date = (0, _moment["default"])(data[i].date).format('DD-MM-YYYY HH:mm');
}

_this.setState({
data: data,
Expand Down Expand Up @@ -137179,7 +137191,7 @@ function (_React$Component) {
var _default = Reddit;
exports["default"] = _default;

},{"../../../routes/urls":1187,"axios":10,"react":647,"rsuite":1140}],1198:[function(require,module,exports){
},{"../../../routes/urls":1187,"axios":10,"moment":579,"react":647,"rsuite":1140}],1198:[function(require,module,exports){
"use strict";

Object.defineProperty(exports, "__esModule", {
Expand All @@ -137193,6 +137205,8 @@ var _react = _interopRequireDefault(require("react"));

var _axios = _interopRequireDefault(require("axios"));

var _moment = _interopRequireDefault(require("moment"));

var _urls = _interopRequireDefault(require("../../../routes/urls"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
Expand Down Expand Up @@ -137271,7 +137285,11 @@ function (_React$Component) {
var _res$data = res.data,
data = _res$data.data,
page = _res$data.page,
total_pages = _res$data.total_pages;
total_pages = _res$data.total_pages; // format date data

for (var i = 0; i < data.length; i++) {
data[i].date = (0, _moment["default"])(data[i].date).format('DD-MM-YYYY HH:mm');
}

_this.setState({
data: data,
Expand Down Expand Up @@ -137383,7 +137401,7 @@ function (_React$Component) {
var _default = Tweets;
exports["default"] = _default;

},{"../../../routes/urls":1187,"axios":10,"react":647,"rsuite":1140}],1199:[function(require,module,exports){
},{"../../../routes/urls":1187,"axios":10,"moment":579,"react":647,"rsuite":1140}],1199:[function(require,module,exports){
"use strict";

var _react = _interopRequireDefault(require("react"));
Expand Down

0 comments on commit c22f68a

Please sign in to comment.