This project designed for Slack users to store relevant messages in their repositories in Github. It contains:
- JSON generation script based on TXT files (sample) generated through Ctrl+c/v;
- Stored message viewer, developed with React (React-router, Redux and Styled-components);
- The viewer also has an advanced offline search system through elasticlunr;
- Github page access https://react-brasil.github.io/slack-history;
This repository can be cloned by anyone and used to store any type of message or group. We are currently working on storing messages from https://react-brasil.slack.com
To generate or update a JSON file from a channel, simply change the desired file (sample) and generate a new version of JSON containing the new changes. The generation of the new version of the JSON file is done by script () through the command:
node scripts/generate-session-object.js -p data/channel/general.txt
This command will generate or update the 'public/data/channel/general.json' file.
Attention: For now, the system still does not automatically generate menus for new created channels. To do this you should change the file src/components/aside-menu.js.
We are using the gh-pages package to generate and publish our data in https://react-brasil.github.io/slack-history.
To generate the files and send them to the Github pages, simply execute the command:
npm run deploy
If you are a member of https://react-brasil.slack.com and want to make some highlight in our history (https://react-brasil.github.io/slack-history). Send us a PR following the same pattern of the PR (raphox#1), sending us a list of messages or a new channel. So we can share with everyone.