mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 20:46:11 +00:00
1 line
3.7 KiB
Plaintext
1 line
3.7 KiB
Plaintext
{"version":3,"sources":["webpack:///./app/javascript/mastodon/features/pinned_statuses/index.js"],"names":["messages","Object","react_intl__WEBPACK_IMPORTED_MODULE_12__","heading","id","defaultMessage","PinnedStatuses","react_redux__WEBPACK_IMPORTED_MODULE_5__","state","statusIds","getIn","hasMore","handleHeaderClick","_this","column","scrollTop","setRef","c","componentWillMount","this","props","dispatch","_actions_pin_statuses__WEBPACK_IMPORTED_MODULE_8__","render","_props","intl","shouldUpdateScroll","react__WEBPACK_IMPORTED_MODULE_4___default","a","createElement","_ui_components_column__WEBPACK_IMPORTED_MODULE_9__","icon","formatMessage","ref","babel_runtime_helpers_jsx__WEBPACK_IMPORTED_MODULE_0___default","_components_column_back_button_slim__WEBPACK_IMPORTED_MODULE_10__","_components_status_list__WEBPACK_IMPORTED_MODULE_11__","scrollKey","react_immutable_pure_component__WEBPACK_IMPORTED_MODULE_13__","propTypes","prop_types__WEBPACK_IMPORTED_MODULE_6___default","func","isRequired","react_immutable_proptypes__WEBPACK_IMPORTED_MODULE_7___default","list","object","bool"],"mappings":"8TAWMA,EAAWC,OAAAC,EAAA,EAAAD,EACfE,SAAAC,GAAA,cAAAC,eAAA,iBAUmBC,EAFpBL,OAAAM,EAAA,QAAAN,CALuB,SAAAO,GAAA,OACtBC,UAAWD,EAAME,OAAO,eAAgB,OAAQ,UAChDC,UAAWH,EAAME,OAAO,eAAgB,OAAQ,cAIjDT,OAAAC,EAAA,EAAAD,iLAeCW,kBAAoB,WAClBC,EAAKC,OAAOC,eAGdC,OAAS,SAAAC,GACPJ,EAAKC,OAASG,4CAThBC,8BACEC,KAAKC,MAAMC,SAASpB,OAAAqB,EAAA,EAAArB,iBAWtBsB,kBAAU,IAAAC,EACiDL,KAAKC,MAAtDK,EADAD,EACAC,KAAMC,EADNF,EACME,mBAAoBjB,EAD1Be,EAC0Bf,UAAWE,EADrCa,EACqCb,QAE7C,OACEgB,EAAAC,EAAAC,cAACC,EAAA,GAAOC,KAAK,aAAa5B,QAASsB,EAAKO,cAAchC,EAASG,SAAU8B,IAAKd,KAAKH,QAAnFkB,IACGC,EAAA,MADHD,IAEGE,EAAA,GAFH3B,UAGeA,EAHf4B,UAIc,kBAJd1B,QAKaA,EALbe,mBAMwBA,SAhCcY,EAAA,KAEnCC,WACLlB,SAAUmB,EAAAZ,EAAUa,KAAKC,WACzBhB,mBAAoBc,EAAAZ,EAAUa,KAC9BhC,UAAWkC,EAAAf,EAAmBgB,KAAKF,WACnCjB,KAAMe,EAAAZ,EAAUiB,OAAOH,WACvB/B,QAAS6B,EAAAZ,EAAUkB,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\n@connect(mapStateToProps)\n@injectIntl\nexport default class 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":""} |