pleroma/priv/static/packs/flavours/glitch/async/pinned_statuses.js.map

1 line
3.0 KiB
Plaintext

{"version":3,"sources":["webpack:///app/javascript/tank/sources/git/git.pleroma.social/pleroma/mastofe/app/javascript/flavours/glitch/features/pinned_statuses/index.js"],"names":["messages","defineMessages","heading","PinnedStatuses","connect","state","statusIds","getIn","hasMore","injectIntl","column","scrollTop","c","componentWillMount","this","props","dispatch","fetchPinnedStatuses","render","intl","icon","formatMessage","ref","setRef","scrollKey","ImmutablePureComponent","PropTypes","func","isRequired","ImmutablePropTypes","list","object","bool"],"mappings":"0RAWMA,EAAWC,YAAe,CAC9BC,QAAQ,CAAD,iDAUHC,EAFUC,kBALQ,SAAAC,GAAK,MAAK,CAChCC,UAAWD,EAAME,MAAM,CAAC,eAAgB,OAAQ,UAChDC,UAAWH,EAAME,MAAM,CAAC,eAAgB,OAAQ,W,GAIjDE,a,sMAcqB,WAClB,EAAKC,OAAOC,c,oCAGL,SAAAC,GACP,EAAKF,OAASE,I,8CAThBC,mBAAA,WACEC,KAAKC,MAAMC,SAASC,gB,EAWtBC,OAAA,WAAW,IAAD,EAC6BJ,KAAKC,MAAlCI,EADA,EACAA,KAAMb,EADN,EACMA,UAAWE,EADjB,EACiBA,QAEzB,OACE,kBAAC,IAAD,CAAQY,KAAK,aAAalB,QAASiB,EAAKE,cAAcrB,EAASE,SAAUoB,IAAKR,KAAKS,QACjF,YAAC,IAAD,IACA,YAAC,IAAD,CACEjB,UAAWA,EACXkB,UAAU,kBACVhB,QAASA,M,GA9BUiB,K,0BAER,CACjBT,SAAUU,IAAUC,KAAKC,WACzBtB,UAAWuB,IAAmBC,KAAKF,WACnCT,KAAMO,IAAUK,OAAOH,WACvBpB,QAASkB,IAAUM,KAAKJ,a","file":"flavours/glitch/async/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 'flavours/glitch/actions/pin_statuses';\nimport Column from 'flavours/glitch/features/ui/components/column';\nimport ColumnBackButtonSlim from 'flavours/glitch/components/column_back_button_slim';\nimport StatusList from 'flavours/glitch/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 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, 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 />\n </Column>\n );\n }\n\n}\n"],"sourceRoot":""}