Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85158073
bookmarked_statuses.js.map
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
5 KB
Referenced Files
None
Subscribers
None
bookmarked_statuses.js.map
View Options
{
"version"
:
3
,
"sources"
:
[
"webpack:///app/javascript/tank/sources/git/git.pleroma.social/pleroma/mastofe/app/javascript/mastodon/features/bookmarked_statuses/index.js"
],
"names"
:
[
"messages"
,
"defineMessages"
,
"heading"
,
"Bookmarks"
,
"connect"
,
"state"
,
"statusIds"
,
"getIn"
,
"isLoading"
,
"hasMore"
,
"injectIntl"
,
"props"
,
"columnId"
,
"dispatch"
,
"removeColumn"
,
"addColumn"
,
"dir"
,
"moveColumn"
,
"column"
,
"scrollTop"
,
"c"
,
"expandBookmarkedStatuses"
,
"leading"
,
"componentWillMount"
,
"this"
,
"fetchBookmarkedStatuses"
,
"render"
,
"intl"
,
"shouldUpdateScroll"
,
"multiColumn"
,
"pinned"
,
"emptyMessage"
,
"id"
,
"defaultMessage"
,
"bindToDocument"
,
"ref"
,
"setRef"
,
"label"
,
"formatMessage"
,
"icon"
,
"title"
,
"onPin"
,
"handlePin"
,
"onMove"
,
"handleMove"
,
"onClick"
,
"handleHeaderClick"
,
"showBackButton"
,
"trackScroll"
,
"scrollKey"
,
"onLoadMore"
,
"handleLoadMore"
,
"ImmutablePureComponent"
,
"PropTypes"
,
"func"
,
"isRequired"
,
"ImmutablePropTypes"
,
"list"
,
"object"
,
"string"
,
"bool"
],
"mappings"
:
"mUAaA,IAAMA,EAAWC,YAAe,CAC9BC,QAAQ,CAAD,oDAWHC,EAFUC,mBANQ,SAAAC,GAAK,MAAK,CAChCC,UAAWD,EAAME,MAAM,CAAC,eAAgB,YAAa,UACrDC,UAAWH,EAAME,MAAM,CAAC,eAAgB,YAAa,cAAc,GACnEE,UAAWJ,EAAME,MAAM,CAAC,eAAgB,YAAa,Y,GAItDG,a,0NAkBa,WAAO,IAAD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AAOH,WACvB3C,SAAUyC,IAAUM,OACpB9B,YAAawB,IAAUO,KACvBnD,QAAS4C,IAAUO,KACnBpD,UAAW6C,IAAUO,O"
,
"file"
:
"features/bookmarked_statuses.js"
,
"sourcesContent"
:
[
"import React from 'react';
\n
import { connect } from 'react-redux';
\n
import PropTypes from 'prop-types';
\n
import ImmutablePropTypes from 'react-immutable-proptypes';
\n
import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks';
\n
import Column from '../ui/components/column';
\n
import ColumnHeader from '../../components/column_header';
\n
import { addColumn, removeColumn, moveColumn } from '../../actions/columns';
\n
import StatusList from '../../components/status_list';
\n
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
\n
import ImmutablePureComponent from 'react-immutable-pure-component';
\n
import { debounce } from 'lodash';
\n\n
const messages = defineMessages({
\n
heading: { id: 'column.bookmarks', defaultMessage: 'Bookmarks' },
\n
});
\n\n
const mapStateToProps = state => ({
\n
statusIds: state.getIn(['status_lists', 'bookmarks', 'items']),
\n
isLoading: state.getIn(['status_lists', 'bookmarks', 'isLoading'], true),
\n
hasMore: !!state.getIn(['status_lists', 'bookmarks', 'next']),
\n
});
\n\n
export default @connect(mapStateToProps)
\n
@injectIntl
\n
class Bookmarks 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
columnId: PropTypes.string,
\n
multiColumn: PropTypes.bool,
\n
hasMore: PropTypes.bool,
\n
isLoading: PropTypes.bool,
\n
};
\n\n
componentWillMount () {
\n
this.props.dispatch(fetchBookmarkedStatuses());
\n
}
\n\n
handlePin = () => {
\n
const { columnId, dispatch } = this.props;
\n\n
if (columnId) {
\n
dispatch(removeColumn(columnId));
\n
} else {
\n
dispatch(addColumn('BOOKMARKS', {}));
\n
}
\n
}
\n\n
handleMove = (dir) => {
\n
const { columnId, dispatch } = this.props;
\n
dispatch(moveColumn(columnId, dir));
\n
}
\n\n
handleHeaderClick = () => {
\n
this.column.scrollTop();
\n
}
\n\n
setRef = c => {
\n
this.column = c;
\n
}
\n\n
handleLoadMore = debounce(() => {
\n
this.props.dispatch(expandBookmarkedStatuses());
\n
}, 300, { leading: true })
\n\n
render () {
\n
const { intl, shouldUpdateScroll, statusIds, columnId, multiColumn, hasMore, isLoading } = this.props;
\n
const pinned = !!columnId;
\n\n
const emptyMessage = <FormattedMessage id='empty_column.bookmarked_statuses' defaultMessage=
\"
You don't have any bookmarked toots yet. When you bookmark one, it will show up here.
\"
/>;
\n\n
return (
\n
<Column bindToDocument={!multiColumn} ref={this.setRef} label={intl.formatMessage(messages.heading)}>
\n
<ColumnHeader
\n
icon='bookmark'
\n
title={intl.formatMessage(messages.heading)}
\n
onPin={this.handlePin}
\n
onMove={this.handleMove}
\n
onClick={this.handleHeaderClick}
\n
pinned={pinned}
\n
multiColumn={multiColumn}
\n
showBackButton
\n
/>
\n\n
<StatusList
\n
trackScroll={!pinned}
\n
statusIds={statusIds}
\n
scrollKey={`bookmarked_statuses-${columnId}`}
\n
hasMore={hasMore}
\n
isLoading={isLoading}
\n
onLoadMore={this.handleLoadMore}
\n
shouldUpdateScroll={shouldUpdateScroll}
\n
emptyMessage={emptyMessage}
\n
bindToDocument={!multiColumn}
\n
/>
\n
</Column>
\n
);
\n
}
\n\n
}
\n
"
],
"sourceRoot"
:
""
}
File Metadata
Details
Attached
Mime Type
application/json
Expires
Sun, Jun 28, 5:46 AM (1 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1630661
Default Alt Text
bookmarked_statuses.js.map (5 KB)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment