mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
30 lines
No EOL
781 B
JavaScript
30 lines
No EOL
781 B
JavaScript
import React from 'react';
|
|
import { ListContainer, DocumentContainer } from "meteor/utilities:react-list-container";
|
|
|
|
const PostsHome = (props, context) => {
|
|
|
|
const params = _.isEmpty(props.params) ? {view: 'top'} : _.clone(props.params);
|
|
params.listId = "posts.list.main";
|
|
|
|
const {selector, options} = Posts.parameters.get(params);
|
|
|
|
return (
|
|
<ListContainer
|
|
collection={Posts}
|
|
publication="posts.list"
|
|
selector={selector}
|
|
options={options}
|
|
terms={params}
|
|
joins={Posts.getJoins()}
|
|
component={Telescope.components.PostsList}
|
|
cacheSubscription={false}
|
|
listId={params.listId}
|
|
limit={Telescope.settings.get("postsPerPage", 10)}
|
|
/>
|
|
)
|
|
|
|
};
|
|
|
|
PostsHome.displayName = "PostsHome";
|
|
|
|
module.exports = PostsHome; |