52 Commits

Author SHA1 Message Date
Mahendran Mookkiah 69a02313a3 updating axios version to remove audit/security issues (#491) 2021-04-01 08:23:07 -05:00
Tania Rascia 23d01ca963 Webpack production optimization updates 2020-11-10 19:31:09 -06:00
Kody Clemens 4625a5a8cd Implement linked notes (#428)
* Worked on linked notes
- Added custom plugin for react-markdown
- Valid note uuids are hyperlinked to # for now, text displays as the target note's title
- Error text added for invalid uuids

* More work on linked notes
- Notes are now properly "linked"
- Clicking on a link with load a new active note in the editor

* more work on linked notes

* More work on linked tasks
- Added note id reference on note menu bar
- Added e2e tests

* enabled skipped test

* address PR comments

* address requested changes
2020-11-01 08:35:14 -06:00
Jose Felix 685c2ade74 Feat/add import export data (#424)
* feat: add or export user data

* feat: add e2e tests for import and backup

* fix: use dayjs for backup name and correct label
2020-10-28 11:26:08 -05:00
Tania Rascia 5bc732ab41 Refactoring (#423)
* Refactoring

* v0.7.2

* Add to travis

* Don't run a server

* Extra package

* Self hosted

* Fix tests
2020-10-28 01:00:25 -05:00
Jadhiel Vélez fa9021e204 Feat: Not display app on mobile (#402)
* Not display app on mobile

* Shortened MobileMsg

* Update MobileMsg component

* Fix break changes after merge branch 'master'

* Add viewports width and height globally

* Add and usage 'react-device-detect' dependency

* Remove viewports width and height globally

* Add conditional linked: isMobile

* Demo button not be displayed
2020-10-28 00:40:21 -05:00
Tania Rascia 7609b213b0 Integrate GitHub sync (#389)
* Front end stuff

* Github integration init

* Fix test

* Slice test

* Sync handler

* Rotate loader

* Adding...

* Sync

* Brilliant

* Fix

* Fix test

* Working!

* Almost there

* Working

* Remove sync

* Add demo mode

* Update HTML webpack

* Don't sync settings to GitHub

* Demo on
2020-10-25 18:39:01 -05:00
Kody Clemens bfbbbc6428 Download all notes as zip (#380)
* Changes for #380

- Used react-feather 'Download' icon; removed unneeded SVG element
- Fixed SVG element breaking the settings modal by using react-feather
- Removed unrelated code accidentally included from the other draft notes PR

* Finished changes

- Added 'Data management' tab
- Added IconButton component
- Download all notes is now a button (uses the IconButton cmp)
- Added styling classes in _modal.scss for new IconButton cmp
2020-10-21 22:07:00 -05:00
Tania Rascia dcaa6d60e2 Add split pane support (#363)
* Updating styles

* Sidebar

* Update tests

* Fix tests

* Test

* Max resize

* Eslint
2020-10-17 20:15:07 -05:00
Tania Rascia e68838d07c Attempt to deploy 2020-10-17 12:07:58 -05:00
Tania Rascia d6dd7a1ee5 v0.6.0 (#362)
* Version 0.6.0

* Remove manual sync for now

* Remove manual sync for now

* Update changelog

* Fix test

* Update tests
2020-10-16 15:44:54 -05:00
Kody Clemens 50d0648560 Complete issue 289 (#353)
- Can now drag and drop a note from the trash back to the notes category
- Renamed 'All Notes' to 'Notes'
- Added E2E test for new d&d functionality
- Corrected previous tests that used the 'All Notes' title
2020-10-05 08:54:58 -05:00
Yankee 90298223f9 Feat/prettier note shortcut (#334)
* can run prettify on note and update the note

* starting to work on testing

* making progress on keyboard shortcut tests integrated with Note Editor

* at least I got take note app mocking working

* undo test helper change

* undo test helper change

* added shortcut to settings modal and welcome notes default

* prettier can format code blocks as well js ts css and html for now

* updating settings modal and welcome md to ctrl+alt+i

Co-authored-by: Giancarlo Gonzalez <giancarlog20@gmail.com>
2020-04-11 19:59:29 -05:00
Vincent Dörig 787b162015 Replace moment.js with dayjs (#308)
* Replace moment.js with dayjs

* Update package.json

Co-authored-by: Tania Rascia <taniarascia@gmail.com>
2020-03-18 23:58:38 -05:00
Tania Rascia 721a8bc13a #231 Multi-select notes (#310)
* Add selectedNotes to note state and a way to update it

* Update note state to work with multi selection

* Update swapNote to have a multiSelect param

* Apply updateSelectedNotes when creating new note

* Fix categoryId bug

* Fix add multiple notes to category behaviour

* Add functionality to download multiple notes

* Fix folder not swapping on category deletion big

* Fix remove category from note while in that category bug

* Add integration tests

* Rename swapNote to updateActiveNote

* Rename swapCategory to updateActiveCategoryId

* Remove pruneCategoryFromNotes (unused)

* Drag and drop

* Add interval back

Co-authored-by: Michael <tranmichael97@gmail.com>
2020-03-18 23:41:57 -05:00
Jackson Elfers 0fc1148b29 refactor: remove lodash, create debounceEvent helper, regex escape (#303) 2020-03-16 18:28:54 -05:00
Jose Felix d711305bf8 Context menu for note list and categories (#276)
* [WIP] Context menu for note list items

* Context menu doesn't overflow screen

* [WIP] Context menu:

- Categories now has a context menu
- Modified CSS to match general context menus
- Moved Editing of categories to category slice
- Added available context menus to enums

* Finished creating Cypress tests

* Updated unit tests to match changes

* Made dark mode available in context menu

* [Fix] Menu now opens at correct positions

* Fix tests
2020-02-26 20:25:52 -06:00
Tania Rascia f82d8fe2ae Add unit test examples (#277)
* Set up some test examples

* Fix typo
2020-02-24 22:55:21 -06:00
Tania Rascia ffef7cd2f9 Refactor configuration files and test suites (#273) 2020-02-24 18:38:13 -06:00
Jose Felix c798512992 Feature/drag categories (#270)
* [WIP] Added basic elements of react-beautiful-dnd

* User can now swap categories

Co-authored-by: Tania Rascia <taniarascia@gmail.com>
2020-02-23 17:48:07 -06:00
Tania Rascia c1cda9e521 Release version v0.4.0 (#223) 2020-02-03 20:34:11 -06:00
Tania Rascia 7a8ae87d4b Initiate Express server for backend routes (#213)
* Initial commit of TypeScript Express server

* Update title

* Update path alias

* Add eslint configuration

* Add private routes

* Add authentication routes

* src/server/

Minor server cleanup

* Add markdown loader

* Fix markdown issue

* Fix tests locally

* Attempt to run Cypress on Travis

* Update Travis script to build server

* Get Cypress running in Travis

* Get docker builds to work locally

* Add Docker details to README

* Attempt CI/CD Docker build

* Add bash deploy script because Travis doesn't allow multiple lines in their config

* Update deploy script

* Update deploy script

* Do not kill node

* Fix variable in script

* Deploy to Droplet

* Add doctl snap

* Rearrange config

* y u no parse

* Lets see if I can instal snap this way

* Travis terminal error

* Test bypass known SSH hosts

* Better config

* Proper DO side deploy

* Fix deployment script

* Making a new commit

* Detach Docker run

* Test encrypted host

* Update SSH

* Public key

* Only apply deployment to master branch
2020-02-03 19:18:48 -06:00
Tania Rascia 3c34858957 Remove Auth0 (#206)
* Remove authentication

* Fix package
2020-01-19 17:56:06 -06:00
Tania Rascia 2ecac73870 Update packages and router 2019-12-29 17:39:25 -06:00
Eduardo Reveles 13cd6ff296 Update Redux Starter Kit to Redux Toolkit (#190)
* Update Redux Starter Kit to Redux Toolkit

* Restore sync functionality
2019-12-24 16:43:35 -06:00
Tania Rascia 94c972ed6a Github Authentication (WIP) (#151)
* Begin bringing in Auth0

* fix rebase conflicts

* Fix settings open error, update route names

* Add responsive nav

* Finish most of the responsive styles

* Add landing page

* Add config
2019-11-02 16:42:05 -05:00
Tania Rascia d2bc55d3db Update package lock 2019-10-18 20:14:56 -05:00
Tania Rascia 0ae8838999 Move all contributors to dev dependency 2019-10-18 20:07:37 -05:00
Tania Rascia b0641ff151 Generate contributors 2019-10-18 17:54:15 -05:00
Jakub Naskręski 37cb20a346 feat(cypress): Add category tests; add cypress-testing-library (#125)
Also added some aria-labels for accessibility
2019-10-18 15:54:37 -06:00
hankolsen f132961440 Add Cypress e2e tests (#107) 2019-10-18 00:39:01 -06:00
Tania Rascia 4b393792b9 Use React Helmet Async 2019-10-17 00:31:36 -05:00
Tania Rascia f059704133 Add proper titles to display location and make settings modal not overflow 2019-10-16 23:43:39 -05:00
Martin Rosenberg 7b6b6e17f6 Add @meowwwls and @jjtowle as contributors (#45)
* Move all-contributors-cli to devDeps
* Add contributors:add and contributors:generate scripts
* Add @meowwwls as a contributor
* Add @jjtowle as a contributor
2019-10-15 13:52:17 -06:00
Martin Rosenberg a6169d0f34 WIP: Use Redux-Starter-Kit (#35)
Use Redux-Starter-Kit

1. Install Redux-Starter-Kit

    * Install [Redux-Starter-Kit (RSK)](https://redux-starter-kit.js.org/)
    * Replace Redux `createStore` with RSK `configureStore`
    * Add RSK's development-only middlewares:
        * [redux-immutable-state-invariant](https://github.com/leoasis/redux-immutable-state-invariant)
        * serializable-state-invariant-middleware

2. Implement RSK slices

    * Implement slices for notes, categories, sync, theme
    * Clean up noteReducer functions for noteSlice
    * Replace `createStore` with `configureStore` in `tests/helpers.tsx`
    * Rename Actions, Folders enums to Action, Folder
    * Sort some imports that already should've been sorted...?
    * Remove `else` from `if` blocks that return in every branch

3. Delete old actions, reducers, etc

    * Delete actions
    * Delete Action enum
    * Delete reducers
    * Delete (nearly) all action types
    * Refactor noteReducer functions for noteSlice
    * Change references to Folder to use Folder type instead of string
    * In that process, clean up NoteList react-redux stuff

4. Remove newly added actions, types, reducer

    * Removed new actions, action types, reducer, etc added for Settings
    * Removed `Slice` from filenames in `slices`

5. Add PayloadAction types to reducers

6. Use hooks instead of HOF from react-redux

    * Replace `connect` from `react-redux` with `useDispatch` and
    `useSelector`, eliminating (nearly) all props for containers by no
    longer mapping state and actions to props
    * Miscellaneous cleanup/refactoring
2019-10-15 11:14:22 -06:00
Martin Rosenberg ae6602e477 Merge branch 'master' into lint 2019-10-13 22:40:43 -06:00
Martin Rosenberg ad0bf05676 Set up and run linting
* Add Prettier plugin/config to ESLint
* Set lint-staged to run both ESLint and Prettier as appropriate
* Broaden lint-staged globs, because gitignored files won't be staged
anyway
* Lint `./tests`
* Sort `package.json` canonically
* Fix project name in `package.json`
2019-10-13 22:23:09 -06:00
Tania Rascia 5412894e5c package: lint-staged and pretty-quick 2019-10-13 22:58:04 -05:00
Tania Rascia eab65a7e24 package: add prettier 2019-10-13 22:56:27 -05:00
Tania Rascia db24e3e9e3 ci: add coveralls 2019-10-13 22:24:51 -05:00
Paul Cowan 847270a1c4 inital setup of jest and 1 test for NoteOptions 2019-10-13 17:07:15 +01:00
Tania Rascia 7fd997fcbe add contributions 2019-10-11 18:50:07 -05:00
hank 967b39b837 Add Favorite option
https://github.com/taniarascia/takenote/issues/1
2019-10-11 19:55:56 +02:00
Tania Rascia 749c985212 patch error in react-codemirror2 2019-10-09 18:42:46 -05:00
Tania Rascia 7a844236ce add moment 2019-10-07 19:46:56 -05:00
Tania Rascia 510d0bdb96 add strict typing to all implicit anys 2019-10-07 19:08:20 -05:00
Tania Rascia 56ed19a29b add typechecking to any types 2019-10-06 23:49:10 -05:00
Tania Rascia 5702ce4cb8 add keybindings and begin adding category list 2019-10-06 15:05:35 -05:00
Tania Rascia 4f172df642 add prettier and husky 2019-09-27 11:32:17 -05:00
Tania Rascia 0bc85e4348 convert functional components to React.FC types 2019-09-27 11:19:53 -05:00