@ -14239,6 +14239,228 @@ function renderColumnTitle(title, props) {
/***/ } ) ,
/***/ } ) ,
/***/ "./node_modules/antd/lib/tag/CheckableTag.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node_modules / antd / lib / tag / CheckableTag . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports , __webpack_require__ ) {
"use strict" ;
var _interopRequireWildcard = __webpack_require__ ( /*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js" ) ;
var _interopRequireDefault = __webpack_require__ ( /*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js" ) ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
exports [ "default" ] = void 0 ;
var _extends2 = _interopRequireDefault ( __webpack_require__ ( /*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js" ) ) ;
var _defineProperty2 = _interopRequireDefault ( __webpack_require__ ( /*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js" ) ) ;
var React = _interopRequireWildcard ( __webpack_require__ ( /*! react */ "./node_modules/react/index.js" ) ) ;
var _classnames = _interopRequireDefault ( __webpack_require__ ( /*! classnames */ "./node_modules/classnames/index.js" ) ) ;
var _configProvider = __webpack_require__ ( /*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js" ) ;
var __rest = void 0 && ( void 0 ) . __rest || function ( s , e ) {
var t = { } ;
for ( var p in s ) {
if ( Object . prototype . hasOwnProperty . call ( s , p ) && e . indexOf ( p ) < 0 ) t [ p ] = s [ p ] ;
}
if ( s != null && typeof Object . getOwnPropertySymbols === "function" ) for ( var i = 0 , p = Object . getOwnPropertySymbols ( s ) ; i < p . length ; i ++ ) {
if ( e . indexOf ( p [ i ] ) < 0 && Object . prototype . propertyIsEnumerable . call ( s , p [ i ] ) ) t [ p [ i ] ] = s [ p [ i ] ] ;
}
return t ;
} ;
var CheckableTag = function CheckableTag ( _a ) {
var _classNames ;
var customizePrefixCls = _a . prefixCls ,
className = _a . className ,
checked = _a . checked ,
onChange = _a . onChange ,
onClick = _a . onClick ,
restProps = __rest ( _a , [ "prefixCls" , "className" , "checked" , "onChange" , "onClick" ] ) ;
var _React$useContext = React . useContext ( _configProvider . ConfigContext ) ,
getPrefixCls = _React$useContext . getPrefixCls ;
var handleClick = function handleClick ( e ) {
onChange === null || onChange === void 0 ? void 0 : onChange ( ! checked ) ;
onClick === null || onClick === void 0 ? void 0 : onClick ( e ) ;
} ;
var prefixCls = getPrefixCls ( 'tag' , customizePrefixCls ) ;
var cls = ( 0 , _classnames [ "default" ] ) ( prefixCls , ( _classNames = { } , ( 0 , _defineProperty2 [ "default" ] ) ( _classNames , "" . concat ( prefixCls , "-checkable" ) , true ) , ( 0 , _defineProperty2 [ "default" ] ) ( _classNames , "" . concat ( prefixCls , "-checkable-checked" ) , checked ) , _classNames ) , className ) ;
return /*#__PURE__*/ React . createElement ( "span" , ( 0 , _extends2 [ "default" ] ) ( { } , restProps , {
className : cls ,
onClick : handleClick
} ) ) ;
} ;
var _default = CheckableTag ;
exports [ "default" ] = _default ;
/***/ } ) ,
/***/ "./node_modules/antd/lib/tag/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node_modules / antd / lib / tag / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports , __webpack_require__ ) {
"use strict" ;
var _interopRequireWildcard = __webpack_require__ ( /*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js" ) ;
var _interopRequireDefault = __webpack_require__ ( /*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js" ) ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
exports [ "default" ] = void 0 ;
var _defineProperty2 = _interopRequireDefault ( __webpack_require__ ( /*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js" ) ) ;
var _extends2 = _interopRequireDefault ( __webpack_require__ ( /*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js" ) ) ;
var _slicedToArray2 = _interopRequireDefault ( __webpack_require__ ( /*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js" ) ) ;
var React = _interopRequireWildcard ( __webpack_require__ ( /*! react */ "./node_modules/react/index.js" ) ) ;
var _classnames = _interopRequireDefault ( __webpack_require__ ( /*! classnames */ "./node_modules/classnames/index.js" ) ) ;
var _omit = _interopRequireDefault ( __webpack_require__ ( /*! rc-util/lib/omit */ "./node_modules/rc-util/lib/omit.js" ) ) ;
var _CloseOutlined = _interopRequireDefault ( __webpack_require__ ( /*! @ant-design/icons/CloseOutlined */ "./node_modules/@ant-design/icons/CloseOutlined.js" ) ) ;
var _CheckableTag = _interopRequireDefault ( __webpack_require__ ( /*! ./CheckableTag */ "./node_modules/antd/lib/tag/CheckableTag.js" ) ) ;
var _configProvider = __webpack_require__ ( /*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js" ) ;
var _colors = __webpack_require__ ( /*! ../_util/colors */ "./node_modules/antd/lib/_util/colors.js" ) ;
var _wave = _interopRequireDefault ( __webpack_require__ ( /*! ../_util/wave */ "./node_modules/antd/lib/_util/wave.js" ) ) ;
var __rest = void 0 && ( void 0 ) . __rest || function ( s , e ) {
var t = { } ;
for ( var p in s ) {
if ( Object . prototype . hasOwnProperty . call ( s , p ) && e . indexOf ( p ) < 0 ) t [ p ] = s [ p ] ;
}
if ( s != null && typeof Object . getOwnPropertySymbols === "function" ) for ( var i = 0 , p = Object . getOwnPropertySymbols ( s ) ; i < p . length ; i ++ ) {
if ( e . indexOf ( p [ i ] ) < 0 && Object . prototype . propertyIsEnumerable . call ( s , p [ i ] ) ) t [ p [ i ] ] = s [ p [ i ] ] ;
}
return t ;
} ;
var PresetColorRegex = new RegExp ( "^(" . concat ( _colors . PresetColorTypes . join ( '|' ) , ")(-inverse)?$" ) ) ;
var PresetStatusColorRegex = new RegExp ( "^(" . concat ( _colors . PresetStatusColorTypes . join ( '|' ) , ")$" ) ) ;
var InternalTag = function InternalTag ( _a , ref ) {
var _classNames ;
var customizePrefixCls = _a . prefixCls ,
className = _a . className ,
style = _a . style ,
children = _a . children ,
icon = _a . icon ,
color = _a . color ,
onClose = _a . onClose ,
closeIcon = _a . closeIcon ,
_a$closable = _a . closable ,
closable = _a$closable === void 0 ? false : _a$closable ,
props = __rest ( _a , [ "prefixCls" , "className" , "style" , "children" , "icon" , "color" , "onClose" , "closeIcon" , "closable" ] ) ;
var _React$useContext = React . useContext ( _configProvider . ConfigContext ) ,
getPrefixCls = _React$useContext . getPrefixCls ,
direction = _React$useContext . direction ;
var _React$useState = React . useState ( true ) ,
_React$useState2 = ( 0 , _slicedToArray2 [ "default" ] ) ( _React$useState , 2 ) ,
visible = _React$useState2 [ 0 ] ,
setVisible = _React$useState2 [ 1 ] ;
React . useEffect ( function ( ) {
if ( 'visible' in props ) {
setVisible ( props . visible ) ;
}
} , [ props . visible ] ) ;
var isPresetColor = function isPresetColor ( ) {
if ( ! color ) {
return false ;
}
return PresetColorRegex . test ( color ) || PresetStatusColorRegex . test ( color ) ;
} ;
var tagStyle = ( 0 , _extends2 [ "default" ] ) ( {
backgroundColor : color && ! isPresetColor ( ) ? color : undefined
} , style ) ;
var presetColor = isPresetColor ( ) ;
var prefixCls = getPrefixCls ( 'tag' , customizePrefixCls ) ;
var tagClassName = ( 0 , _classnames [ "default" ] ) ( prefixCls , ( _classNames = { } , ( 0 , _defineProperty2 [ "default" ] ) ( _classNames , "" . concat ( prefixCls , "-" ) . concat ( color ) , presetColor ) , ( 0 , _defineProperty2 [ "default" ] ) ( _classNames , "" . concat ( prefixCls , "-has-color" ) , color && ! presetColor ) , ( 0 , _defineProperty2 [ "default" ] ) ( _classNames , "" . concat ( prefixCls , "-hidden" ) , ! visible ) , ( 0 , _defineProperty2 [ "default" ] ) ( _classNames , "" . concat ( prefixCls , "-rtl" ) , direction === 'rtl' ) , _classNames ) , className ) ;
var handleCloseClick = function handleCloseClick ( e ) {
e . stopPropagation ( ) ;
onClose === null || onClose === void 0 ? void 0 : onClose ( e ) ;
if ( e . defaultPrevented ) {
return ;
}
if ( ! ( 'visible' in props ) ) {
setVisible ( false ) ;
}
} ;
var renderCloseIcon = function renderCloseIcon ( ) {
if ( closable ) {
return closeIcon ? /*#__PURE__*/ React . createElement ( "span" , {
className : "" . concat ( prefixCls , "-close-icon" ) ,
onClick : handleCloseClick
} , closeIcon ) : /*#__PURE__*/ React . createElement ( _CloseOutlined [ "default" ] , {
className : "" . concat ( prefixCls , "-close-icon" ) ,
onClick : handleCloseClick
} ) ;
}
return null ;
} ;
var isNeedWave = 'onClick' in props || children && children . type === 'a' ;
var tagProps = ( 0 , _omit [ "default" ] ) ( props , [ 'visible' ] ) ;
var iconNode = icon || null ;
var kids = iconNode ? /*#__PURE__*/ React . createElement ( React . Fragment , null , iconNode , /*#__PURE__*/ React . createElement ( "span" , null , children ) ) : children ;
var tagNode = /*#__PURE__*/ React . createElement ( "span" , ( 0 , _extends2 [ "default" ] ) ( { } , tagProps , {
ref : ref ,
className : tagClassName ,
style : tagStyle
} ) , kids , renderCloseIcon ( ) ) ;
return isNeedWave ? /*#__PURE__*/ React . createElement ( _wave [ "default" ] , null , tagNode ) : tagNode ;
} ;
var Tag = /*#__PURE__*/ React . forwardRef ( InternalTag ) ;
Tag . displayName = 'Tag' ;
Tag . CheckableTag = _CheckableTag [ "default" ] ;
var _default = Tag ;
exports [ "default" ] = _default ;
/***/ } ) ,
/***/ "./node_modules/antd/lib/time-picker/locale/en_US.js" :
/***/ "./node_modules/antd/lib/time-picker/locale/en_US.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node_modules / antd / lib / time - picker / locale / en_US . js * * * !
! * * * . / node_modules / antd / lib / time - picker / locale / en_US . js * * * !
@ -79539,6 +79761,115 @@ MyButton.propTypes = {
/***/ } ) ,
/***/ } ) ,
/***/ "./src/components/TabelaPessoas/index.jsx" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / components / TabelaPessoas / index . jsx * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
"use strict" ;
__webpack_require__ . r ( __webpack_exports__ ) ;
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__ ( /*! react */ "./node_modules/react/index.js" ) ;
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__ . n ( react__WEBPACK_IMPORTED_MODULE_0__ ) ;
/* harmony import */ var antd_lib_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__ ( /*! antd/lib/table */ "./node_modules/antd/lib/table/index.js" ) ;
/* harmony import */ var antd_lib_table__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__ . n ( antd_lib_table__WEBPACK_IMPORTED_MODULE_1__ ) ;
/* harmony import */ var antd_lib_tag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__ ( /*! antd/lib/tag */ "./node_modules/antd/lib/tag/index.js" ) ;
/* harmony import */ var antd_lib_tag__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__ . n ( antd_lib_tag__WEBPACK_IMPORTED_MODULE_2__ ) ;
var _this = undefined ;
function _slicedToArray ( arr , i ) { return _arrayWithHoles ( arr ) || _iterableToArrayLimit ( arr , i ) || _unsupportedIterableToArray ( arr , i ) || _nonIterableRest ( ) ; }
function _nonIterableRest ( ) { throw new TypeError ( "Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ; }
function _unsupportedIterableToArray ( o , minLen ) { if ( ! o ) return ; if ( typeof o === "string" ) return _arrayLikeToArray ( o , minLen ) ; var n = Object . prototype . toString . call ( o ) . slice ( 8 , - 1 ) ; if ( n === "Object" && o . constructor ) n = o . constructor . name ; if ( n === "Map" || n === "Set" ) return Array . from ( o ) ; if ( n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( n ) ) return _arrayLikeToArray ( o , minLen ) ; }
function _arrayLikeToArray ( arr , len ) { if ( len == null || len > arr . length ) len = arr . length ; for ( var i = 0 , arr2 = new Array ( len ) ; i < len ; i ++ ) { arr2 [ i ] = arr [ i ] ; } return arr2 ; }
function _iterableToArrayLimit ( arr , i ) { if ( typeof Symbol === "undefined" || ! ( Symbol . iterator in Object ( arr ) ) ) return ; var _arr = [ ] ; var _n = true ; var _d = false ; var _e = undefined ; try { for ( var _i = arr [ Symbol . iterator ] ( ) , _s ; ! ( _n = ( _s = _i . next ( ) ) . done ) ; _n = true ) { _arr . push ( _s . value ) ; if ( i && _arr . length === i ) break ; } } catch ( err ) { _d = true ; _e = err ; } finally { try { if ( ! _n && _i [ "return" ] != null ) _i [ "return" ] ( ) ; } finally { if ( _d ) throw _e ; } } return _arr ; }
function _arrayWithHoles ( arr ) { if ( Array . isArray ( arr ) ) return arr ; }
var columns = [ {
title : 'Nome' ,
dataIndex : 'nome' ,
key : 'nome' ,
render : function render ( text ) {
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( "a" , null , text ) ;
}
} , {
title : 'Sobrenom' ,
dataIndex : 'sobrenome' ,
key : 'sobrenome'
} , {
title : 'Comunidades' ,
dataIndex : 'comunidades' ,
render : function render ( item , data , index ) {
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( react__WEBPACK_IMPORTED_MODULE_0___default . a . Fragment , null , item . map ( function ( i ) {
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( antd_lib_tag__WEBPACK_IMPORTED_MODULE_2___default . a , null , i ) ;
} ) ) ;
}
} ] ;
var TabelaPessoas = function TabelaPessoas ( ) {
var _useState = Object ( react__WEBPACK_IMPORTED_MODULE_0__ [ "useState" ] ) ( [ ] ) ,
_useState2 = _slicedToArray ( _useState , 2 ) ,
data = _useState2 [ 0 ] ,
setData = _useState2 [ 1 ] ;
Object ( react__WEBPACK_IMPORTED_MODULE_0__ [ "useEffect" ] ) ( function ( ) {
var _fail = function fail ( ) {
_this . setState ( {
loading : false
} ) ;
notification [ "error" ] ( {
message : 'Error' ,
description : 'Data loading error...' ,
style : {
marginTop : 100
}
} ) ;
} ;
netuno . service ( {
url : '/services/pessoas' ,
method : 'POST' ,
credentials : 'include' ,
headers : {
'Content-Type' : 'application/json'
} ,
body : JSON . stringify ( {
param1 : 'value1' ,
param2 : 'value2'
} ) ,
success : function success ( response ) {
console . log ( response ) ;
if ( response . json ) {
setData ( response . json ) ;
} else {
_fail ( ) ;
}
} ,
fail : function fail ( ) {
_fail ( ) ;
}
} ) ;
} , [ ] ) ;
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( antd_lib_table__WEBPACK_IMPORTED_MODULE_1___default . a , {
columns : columns ,
dataSource : data
} ) ;
} ;
/* harmony default export */ __webpack_exports__ [ "default" ] = ( TabelaPessoas ) ;
/***/ } ) ,
/***/ "./src/containers/DashboardContainer/index.jsx" :
/***/ "./src/containers/DashboardContainer/index.jsx" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / containers / DashboardContainer / index . jsx * * * !
! * * * . / src / containers / DashboardContainer / index . jsx * * * !
@ -79553,9 +79884,12 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__ . n ( react__WEBPACK_IMPORTED_MODULE_0__ ) ;
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__ . n ( react__WEBPACK_IMPORTED_MODULE_0__ ) ;
/* harmony import */ var antd_lib_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__ ( /*! antd/lib/table */ "./node_modules/antd/lib/table/index.js" ) ;
/* harmony import */ var antd_lib_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__ ( /*! antd/lib/table */ "./node_modules/antd/lib/table/index.js" ) ;
/* harmony import */ var antd_lib_table__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__ . n ( antd_lib_table__WEBPACK_IMPORTED_MODULE_1__ ) ;
/* harmony import */ var antd_lib_table__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__ . n ( antd_lib_table__WEBPACK_IMPORTED_MODULE_1__ ) ;
/* harmony import */ var _components_MyButton_index_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__ ( /*! ../../components/MyButton/index.jsx */ "./src/components/MyButton/index.jsx" ) ;
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__ ( /*! ./index.less */ "./src/containers/DashboardContainer/index.less" ) ;
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__ . n ( _index_less__WEBPACK_IMPORTED_MODULE_3__ ) ;
/* harmony import */ var antd_lib_notification__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__ ( /*! antd/lib/notification */ "./node_modules/antd/lib/notification/index.js" ) ;
/* harmony import */ var antd_lib_notification__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__ . n ( antd_lib_notification__WEBPACK_IMPORTED_MODULE_2__ ) ;
/* harmony import */ var _components_MyButton_index_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__ ( /*! ../../components/MyButton/index.jsx */ "./src/components/MyButton/index.jsx" ) ;
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__ ( /*! ./index.less */ "./src/containers/DashboardContainer/index.less" ) ;
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__ . n ( _index_less__WEBPACK_IMPORTED_MODULE_4__ ) ;
/* harmony import */ var _components_TabelaPessoas_index_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__ ( /*! ../../components/TabelaPessoas/index.jsx */ "./src/components/TabelaPessoas/index.jsx" ) ;
function _typeof ( obj ) { "@babel/helpers - typeof" ; if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof = function _typeof ( obj ) { return typeof obj ; } ; } else { _typeof = function _typeof ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof ( obj ) ; }
function _typeof ( obj ) { "@babel/helpers - typeof" ; if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof = function _typeof ( obj ) { return typeof obj ; } ; } else { _typeof = function _typeof ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof ( obj ) ; }
function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( "Cannot call a class as a function" ) ; } }
function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( "Cannot call a class as a function" ) ; } }
@ -79582,18 +79916,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
var columns = [ {
title : 'Nome' ,
dataIndex : 'nome' ,
key : 'nome' ,
render : function render ( text ) {
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( "a" , null , text ) ;
}
} , {
title : 'Sobrenome' ,
dataIndex : 'sobrenome' ,
key : 'sobrenome'
} ] ;
var DashboardContainer = /*#__PURE__*/ function ( _Component ) {
var DashboardContainer = /*#__PURE__*/ function ( _Component ) {
_inherits ( DashboardContainer , _Component ) ;
_inherits ( DashboardContainer , _Component ) ;
@ -79619,8 +79943,6 @@ var DashboardContainer = /*#__PURE__*/function (_Component) {
_createClass ( DashboardContainer , [ {
_createClass ( DashboardContainer , [ {
key : "componentDidMount" ,
key : "componentDidMount" ,
value : function componentDidMount ( ) {
value : function componentDidMount ( ) {
var _this2 = this ;
/ *
/ *
// Basic sample of the service call:
// Basic sample of the service call:
fetch ( '/services/my-test.netuno' , {
fetch ( '/services/my-test.netuno' , {
@ -79632,47 +79954,6 @@ var DashboardContainer = /*#__PURE__*/function (_Component) {
} ) ;
} ) ;
* /
* /
// Better sample of the recommended way to call services:
// Better sample of the recommended way to call services:
var _fail = function fail ( ) {
_this2 . setState ( {
loading : false
} ) ;
notification [ "error" ] ( {
message : 'Error' ,
description : 'Data loading error...' ,
style : {
marginTop : 100
}
} ) ;
} ;
netuno . service ( {
url : '/services/pessoas' ,
method : 'POST' ,
credentials : 'include' ,
headers : {
'Content-Type' : 'application/json'
} ,
body : JSON . stringify ( {
param1 : 'value1' ,
param2 : 'value2'
} ) ,
success : function success ( response ) {
console . log ( response ) ;
if ( response . json ) {
_this2 . setState ( {
loading : false ,
data : response . json
} ) ;
} else {
_fail ( ) ;
}
} ,
fail : function fail ( ) {
_fail ( ) ;
}
} ) ;
}
}
} , {
} , {
key : "componentDidUpdate" ,
key : "componentDidUpdate" ,
@ -79694,14 +79975,9 @@ var DashboardContainer = /*#__PURE__*/function (_Component) {
data = _this$state . data ;
data = _this$state . data ;
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( "div" , {
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( "div" , {
className : "my-dashboard"
className : "my-dashboard"
} , /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( "ul" , null , data . map ( function ( item ) {
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( "li" , null , item . nome , " " , item . sobrenome ) ;
} ) ) , /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( antd_lib_table__WEBPACK_IMPORTED_MODULE_1___default . a , {
columns : columns ,
dataSource : data
} ) , /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( "div" , {
} , /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( _components_TabelaPessoas_index_jsx__WEBPACK_IMPORTED_MODULE_5__ [ "default" ] , null ) , /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( "div" , {
className : "my-dashboard__button"
className : "my-dashboard__button"
} , /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( _components_MyButton_index_jsx__WEBPACK_IMPORTED_MODULE_2 __ [ "default" ] , {
} , /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default . a . createElement ( _components_MyButton_index_jsx__WEBPACK_IMPORTED_MODULE_3__ [ "default" ] , {
mainRef : this . button ,
mainRef : this . button ,
text : "ReactJS \u26A1 Ant.Design \uD83D\uDC49 Click me! " . concat ( counter ) ,
text : "ReactJS \u26A1 Ant.Design \uD83D\uDC49 Click me! " . concat ( counter ) ,
click : this . click
click : this . click