Download pool/shard000/JavaScript/0000114_notice.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard000/JavaScript/0000114_notice.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard000/JavaScript/0000114_notice.js
-
curl -L -o 0000114_notice.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard000/JavaScript/0000114_notice.js
542 Bytes
| import { createContainer } from 'meteor/react-meteor-data'; | |
| import Notice from '/imports/api/notices/collection'; | |
| import _Component from '../components/notice'; | |
| function _data(props) { | |
| const id = props.location.query.id; | |
| const type = props.location.query.type; | |
| if (id) { | |
| const ready = Meteor.subscribe('notices.one', id).ready(); | |
| const data = Notice.findOne(id); | |
| return { | |
| edit: true, | |
| ready, | |
| data | |
| }; | |
| } | |
| return { | |
| edit: false, | |
| type, | |
| }; | |
| } | |
| export default createContainer(_data, _Component); | |