Commit Graph

103 Commits

Author SHA1 Message Date
Alex Hunt 6b27755a6a Save a plain-text version of document for search highlighting 2018-04-28 18:38:19 -04:00
Alex Hunt bfabe75e97 Splitting out dev and prod webpack configs and updating some packages 2018-04-25 18:58:58 -04:00
Alex Hunt 335c5fdf47 Some cleaning and setting up pytest 2018-04-19 19:45:43 -04:00
Alex Hunt 14d123fded Making document list overflow scroll, for longer lists. 2017-12-17 01:16:27 -05:00
Alex Hunt 879c7e5857 Better handling for when there are no documents to display. Introduced a few welcome components. 2017-12-16 18:17:34 -05:00
Alex Hunt a6f6f4e44d Annotate mode ignores key bindings too 2017-12-16 16:56:49 -05:00
Alex Hunt 7332a5a10b Fixed sidebar positioning and made annotate mode ignore keyboard input 2017-12-16 15:44:34 -05:00
Alex Hunt ebf52f414b Creating route for a note reader page 2017-12-16 15:17:57 -05:00
Alex Hunt a8dea70e6e Bug fixes and tweaks 2017-12-16 15:07:49 -05:00
Alex Hunt da809a5e53 Adding favicon to static folder 2017-12-16 15:01:30 -05:00
Alex Hunt 83c657ceec Add loading indicators and basic components/api for a search page. Still needs some wiring up. 2017-12-16 15:00:20 -05:00
Alex Hunt 1c8586f3fe Consolidated Chapter and Note document pages into one Editor route with a dropdown to select the docType you wish to edit. Will be easier to manage as I add more doc types. Also began implementing some responsive layout elements. 2017-12-13 23:27:13 -05:00
Alex Hunt a9c13786e0 Cleaned up chapter seed data. 2017-12-13 23:25:11 -05:00
Alex Hunt b53ef17448 Converted Reader page to use DraftJS. Farewell dangerously setting HTML. 2017-12-11 23:01:41 -05:00
Alex Hunt 8b3274de8f Got remove link buttons to work. Got annotation links to pop up a modal! Looks like it's never gonna work with dangerouslySetInnerHTML, but I made the DraftJS link decorator a connected component and that worked. 2017-12-11 22:47:52 -05:00
Alex Hunt d69a3f7bff Fixed chapter numbering in Documents UI 2017-12-10 23:07:20 -05:00
Alex Hunt 4e63aca0a5 Fixing breaking changes made to Reader while working on Documents 2017-12-10 22:43:32 -05:00
Alex Hunt 814c9148a6 Abstracted the notes UI into a documents UI and set up a text route to return chapters in the documents UI. 2017-12-10 22:19:59 -05:00
Alex Hunt e083adfbc0 Used selectionState and decorators to add annotation UI to DraftJS editor! Includes modal for selecting note from list. 2017-12-10 18:22:38 -05:00
Alex Hunt 0d4927114b Added annotator top bar buttons. 2017-12-10 13:17:14 -05:00
Alex Hunt e5e3f90d00 Added annotate mode logic. 2017-12-10 12:58:25 -05:00
Alex Hunt 44eb201104 Added the title input and the logic to display a header in read mode 2017-12-09 18:16:41 -05:00
Alex Hunt 4cab7755c8 Rehashed same CRUD UI for notes, but using the mode. Need to build in title inputs next. 2017-12-09 18:00:19 -05:00
Alex Hunt e74ac611bc Refactored component names to make it clear which components correspond with which pages. 2017-12-09 14:02:54 -05:00
Alex Hunt 6e37fae7ca Fleshing out Notes page with edit and annotate modes. Commiting now while it basically works, before refactoring some of the component names, which have gotten confusing. 2017-12-09 13:05:18 -05:00
Alex Hunt ada54f7dfc Replicated basic chapter read UI for notes. 2017-12-07 21:08:07 -05:00
Alex Hunt 0b61166220 Converted Elasticsearch API to generate document IDs distinct from chapter numbers, the way I should have done it from the start. Also made chapter numbers update after deleting a chapter from the middle of the range 2017-11-28 23:44:15 -05:00
Alex Hunt ff6cb1b5cd Continued paring down actions and laying framework for notes. Need to tackle some kind of id / number distinction for document schema 2017-11-26 22:21:05 -05:00
Alex Hunt 29b2d2ff4b Refactored actions andAPI middleware to be more maintainable, and easy extending it to notes 2017-11-26 18:32:00 -05:00
Alex Hunt f4a548f23d Added notes doc_type to Elasticsearch index, extended Flask API blueprint to handle notes, added a notes entry point to webpack, and started fleshing out note components. Will require some refactoring of actions. 2017-11-26 12:38:25 -05:00
Alex Hunt ef5589f9fc Added Ulysses seed data to hydrate the setup helper. 2017-11-26 10:25:55 -05:00
Alex Hunt 43a37ce123 Refactored TextEditor components so that the DraftJS editor can be reused for note editing 2017-11-26 09:47:19 -05:00
Alex Hunt 1aa4fcf1f6 Used DraftJS RichUtil library to wire up bold/italic/underline/header buttons. 2017-11-25 09:57:25 -05:00
Alex Hunt e97d62e412 DRY-ed up Sass stylesheets by splititng into modules 2017-11-22 15:36:22 -05:00
Alex Hunt 44b432f1e1 Introduced FontAwesome to replace the glyphicons lost in upgrading Boostrap to4 2017-11-22 15:17:27 -05:00
Alex Hunt bf55be3404 Wired the react CRUD UI up to the Elasticsearch API. Numbering scheme will break once you start deleting chapters. 2017-11-21 22:52:32 -05:00
Alex Hunt 810236455a Refactored sidebars into two container components with different onClick funtions passed as props. 2017-11-13 19:49:29 -05:00
Alex Hunt dc4463800a Working on the editor UI. Needs some refactoring components and wire up api middleware. 2017-11-13 18:39:08 -05:00
Alex Hunt 287f15380a Incorporated DraftJS and refactored the reducers 2017-11-08 23:00:36 -05:00
Alex Hunt 7e2ec994f7 Wired up /edit route re-using Reader components. 2017-11-08 19:08:44 -05:00
Alex Hunt 13b472cd2b Merge branch 'master' of https://github.com/alexchunt90/joyce_flask 2017-11-06 22:38:30 -05:00
Alex Hunt 1c2b51fe81 Sass-ified some of the old static stylesheet with color variables and Bootstrap variable overrides 2017-11-06 22:38:14 -05:00
Alex Hunt d45e2f2373
Create README.md 2017-11-06 22:08:08 -05:00
Alex Hunt 97f17f0701 Components and Redux wiring. 2017-11-06 22:00:32 -05:00
Alex Hunt e7d1993a30 Basic layout styling and component tweaks. Moved Bootstrap dependencies behind Webpack and CSS into Sass. 2017-11-06 21:58:31 -05:00
Alex Hunt 0ea2c0524a Created setup script for Elasticsearch index seeded with sample data 2017-11-05 18:59:56 -05:00
Alex Hunt 13bde03424 Filling out Redux structure to encompass the full app, with API calls to get currentChapter text 2017-11-05 18:59:18 -05:00
Alex Hunt 063a63ba72 Set up basic Redux pattern with action middleware for API files, and then refactored into separate packages. 2017-11-05 14:28:55 -05:00
Alex Hunt 445b28d042 Cleaning up git repo before Redux 2017-11-05 10:45:15 -05:00
Alex Hunt 4c13c25cb6 React working as intended before I start tearing it up to implement Redux 2017-11-05 10:37:10 -05:00