akkoma/priv/static/packs/features/pinned_statuses.js.map

1 line
3.5 KiB
Plaintext
Raw Normal View History

{"version":3,"sources":["webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/mastodon/features/pinned_statuses/index.js"],"names":["messages","defineMessages","heading","id","defaultMessage","PinnedStatuses","connect","state","statusIds","getIn","hasMore","injectIntl","_this","column","scrollTop","c","componentWillMount","this","props","dispatch","fetchPinnedStatuses","render","_this$props","intl","shouldUpdateScroll","react__WEBPACK_IMPORTED_MODULE_4___default","a","createElement","_ui_components_column__WEBPACK_IMPORTED_MODULE_9__","icon","formatMessage","ref","setRef","Object","_babel_runtime_helpers_esm_jsx__WEBPACK_IMPORTED_MODULE_0__","_components_column_back_button_slim__WEBPACK_IMPORTED_MODULE_10__","_components_status_list__WEBPACK_IMPORTED_MODULE_11__","scrollKey","ImmutablePureComponent","PropTypes","func","isRequired","ImmutablePropTypes","list","object","bool"],"mappings":"0RAWMA,EAAWC,YAAe,CAC9BC,QAAO,CAAAC,GAAA,cAAAC,eAAA,iBAUHC,EAFUC,kBALQ,SAAAC,GAAK,MAAK,CAChCC,UAAWD,EAAME,MAAM,CAAC,eAAgB,OAAQ,UAChDC,UAAWH,EAAME,MAAM,CAAC,eAAgB,OAAQ,cAIjDE,gOAeqB,WAClBC,EAAKC,OAAOC,+DAGL,SAAAC,GACPH,EAAKC,OAASE,kDAThBC,mBAAA,WACEC,KAAKC,MAAMC,SAASC,kBAWtBC,OAAA,WAAU,IAAAC,EACiDL,KAAKC,MAAtDK,EADAD,EACAC,KAAMC,EADNF,EACME,mBAAoBhB,EAD1Bc,EAC0Bd,UAAWE,EADrCY,EACqCZ,QAE7C,OACEe,EAAAC,EAAAC,cAACC,EAAA,EAAD,CAAQC,KAAK,aAAa3B,QAASqB,EAAKO,cAAc9B,EAASE,SAAU6B,IAAKd,KAAKe,QACjFC,OAAAC,EAAA,EAAAD,CAACE,EAAA,EAAD,IACAF,OAAAC,EAAA,EAAAD,CAACG,EAAA,EAAD,CACE5B,UAAWA,EACX6B,UAAU,kBACV3B,QAASA,EACTc,mBAAoBA,SAhCDc,+BAER,CACjBnB,SAAUoB,IAAUC,KAAKC,WACzBjB,mBAAoBe,IAAUC,KAC9BhC,UAAWkC,IAAmBC,KAAKF,WACnClB,KAAMgB,IAAUK,OAAOH,WACvB/B,QAAS6B,IAAUM,KAAKJ","file":"features/pinned_statuses.js","sourcesContent":["import React from 'react';\nimport { connect } from 'react-redux';\nimport PropTypes from 'prop-types';\nimport ImmutablePropTypes from 'react-immutable-proptypes';\nimport { fetchPinnedStatuses } from '../../actions/pin_statuses';\nimport Column from '../ui/components/column';\nimport ColumnBackButtonSlim from '../../components/column_back_button_slim';\nimport StatusList from '../../components/status_list';\nimport { defineMessages, injectIntl } from 'react-intl';\nimport ImmutablePureComponent from 'react-immutable-pure-component';\n\nconst messages = defineMessages({\n heading: { id: 'column.pins', defaultMessage: 'Pinned toot' },\n});\n\nconst mapStateToProps = state => ({\n statusIds: state.getIn(['status_lists', 'pins', 'items']),\n hasMore: !!state.getIn(['status_lists', 'pins', 'next']),\n});\n\nexport default @connect(mapStateToProps)\n@injectIntl\nclass PinnedStatuses extends ImmutablePureComponent {\n\n static propTypes = {\n dispatch: PropTypes.func.isRequired,\n shouldUpdateScroll: PropTypes.func,\n statusIds: ImmutablePropTypes.list.isRequired,\n intl: PropTypes.object.isRequired,\n hasMore: PropTypes.bool.isRequired,\n };\n\n componentWillMount () {\n this.props.dispatch(fetchPinnedStatuses());\n }\n\n handleHeaderClick = () => {\n this.column.scrollTop();\n }\n\n setRef = c => {\n this.column = c;\n }\n\n render () {\n const { intl, shouldUpdateScroll, statusIds, hasMore } = this.props;\n\n return (\n <Column icon='thumb-tack' heading={intl.formatMessage(messages.heading)} ref={this.setRef}>\n <ColumnBackButtonSlim />\n <StatusList\n statusIds={statusIds}\n scrollKey='pinned_statuses'\n hasMore={hasMore}\n shouldUpdateScroll={shouldUpdateScroll}\n />\n </Column>\n );\n }\n\n}\n"],"sourceRoot":""}