Commit Graph

104 Commits

Author SHA1 Message Date
Tom Moor
d2d9164fa1 chore: Remove unused component 2020-05-31 21:19:44 -07:00
Tom Moor
9274005cbb feat: Upgrade editor (#1227)
* WIP

* document migration

* fix: Handle clashing keyboard events

* fix: convert getSummary

* fix: parseDocumentIds

* lint

* fix: Remove unused plugin

* Move editor version to header
Add editor version check for API endpoints

* fix: Editor update auto-reload
Bump RME

* test

* bump rme

* Remove slate flow types, improve themeing, bump rme

* bump rme

* fix: parseDocumentIds returning duplicate ID's, improved regression tests

* test

* fix: Missing code styles

* lint

* chore: Upgrade v2 migration to use AST

* Bump RME

* Update welcome doc

* add highlight to keyboard shortcuts ref

* theming improvements

* fix: Code comments show as headings, closes #1255

* loop

* fix: TOC highlighting

* lint

* add: Automated backup of docs before migration

* Update embeds to new format

* fix: React warning

* bump to final editor version 10.0.0

* test
2020-05-19 20:39:34 -07:00
Tom Moor
9338a54fe0 feat: Separate title from body (#1216)
* first pass at updating all Time components each second

* fix a couple date variable typos

* use class style state management instead of hooks

* wip: Separate title from body

* address feedback

* test: Remove unused test

* feat: You in publishing info language
fix: Removal of secondary headings

* After much deliberation… a migration is needed for this to be reliable

* fix: Export to work with new title structure

* fix: Untitled

* fix: Consistent spacing of first editor node

* fix: Emoji in title handling

* fix: Time component not updating for new props

* chore: Add createdAt case

* fix: Conflict after merging new TOC

* PR feedback

* lint

* fix: Heading level adjustment

Co-authored-by: Taylor Lapeyre <taylorlapeyre@gmail.com>
2020-04-05 15:07:34 -07:00
Tom Moor
d0606a72c3 feat: Improved table of contents (#1223)
* feat: New table of contents

* fix: Hide TOC in edit mode

* feat: Highlight follows scroll position

* scroll tracking

* UI

* fix: Unrelated css fix with long doc titles

* Improve responsiveness

* feat: Add keyboard shortcut access to TOC

* fix: Headings should reflect content correctly when viewing old document revision

* flow

* fix: Persist TOC choice between sessions
2020-04-05 12:22:26 -07:00
Tom Moor
f0afa67012 fix: Focus on empty document after creation
fix: Clicking in whitespace below document should focus
Remove unused component
2020-02-26 22:29:22 -08:00
Tom Moor
908b457dec fix: Use alternative redirect method (#1176) 2020-02-16 17:28:24 -08:00
Tom Moor
8e5a5a57a9 feat: Store image uploads as attachments in database (#1144)
* First pass

* Documentation

* Added optional documentId relationship

* name -> key

* cleanup: No need for separate documentId prop
2020-01-16 09:42:42 -08:00
Tom Moor
7bbddcaebf fix: Unable to focus into description in collection edit 2020-01-02 22:49:40 -08:00
Tom Moor
293c3b7b9c fix: Move references spacing directly below content (#1113)
* fix: Move references spacing directly below content

* Child document -> Nested document
2019-12-18 21:00:36 -08:00
Tom Moor
14f6e6abad feat: Add support for InVision live images
closes #946
2019-11-03 15:32:43 -08:00
Tom Moor
97c8bfc27f fix: Protect against redirecting back to the same doc
closes #975
2019-10-15 20:59:00 -07:00
Tom Moor
18658e354a Update Editor.js 2019-09-15 21:18:31 -07:00
Tom Moor
f43643f43b fix: Image and horizontal highlight on selected 2019-09-15 14:53:27 -07:00
Tom Moor
e2453b5b2a fix: Editor headings offset 2019-09-15 14:42:32 -07:00
Tom Moor
6520a501e3 fix: accessiblity improvements, focus states, real buttons 2019-08-30 00:27:40 -07:00
Tom Moor
4d2eda6750 fix: Embed does not show selected highlight 2019-08-18 12:45:54 +01:00
Tom Moor
d024d31f66 refactor: flow typing (#1012)
* fix: padding

* fix: Minor button alignment issues

* feat: Add icon to invite people button

* WIP
2019-08-08 23:09:09 -07:00
Tom Moor
3d805d5fe7 chore: tooltip update / remove css loader (#985)
* fix: Add suspended filter to people management #984

* chore: removing css loader

* pui-react-tooltip -> tippy
closes #980

* remove extract-text-plugin
2019-07-09 21:17:25 -07:00
Tom Moor
091e542406 feat: Backlinks (#979)
* feat: backlinks

* feat: add backlinkDocumentId to documents.list

* chore: refactor
fix: create and delete backlink handling

* fix: guard against self links

* feat: basic frontend
fix: race condition

* styling

* test: fix parse ids

* self review

* linting

* feat: Improved link styling

* fix: Increase clickable area at bottom of doc / between references

* perf: global styles are SLOW
2019-07-07 19:25:45 -07:00
Tom Moor
d3abbcf9d5 feat: Added tooltips to editor controls 2019-07-03 21:32:21 -07:00
Tom Moor
07a941a65d Websocket Support (#937)
* Atom / RSS meta link

* Spike

* Feeling good about this spike now

* Remove document.collection

* Remove koa.ctx from all presenters to make them portable outside requests

* Remove full serialized model from events
Move events.add to controllers for now, will eventually be in commands

* collections.create event
parentDocument -> parentDocumentId

* Fix up deprecated tests

* Fixed: Doc creation

* documents.move

* Handle collection deleted

* 💚

* Authorize room join requests

* Move starred data structure
Account for documents with no context on sockets

* Add socket.io-redis

* Add WEBSOCKETS_ENABLED env variable to disable websockets entirely for self hosted
New installations will default to true, existing installations to false

* 💚 No need for promise response here

* Reload notice
2019-04-17 19:11:23 -07:00
Tom Moor
59c82f1f06 Dark Mode (#912)
closes #704
2019-03-12 21:35:35 -07:00
Tom Moor
0ce50781d7 Fixes: Redirects do not push into history stack 2019-01-26 13:01:33 +00:00
Tom Moor
39a61d8559 Upgrade Dependencies (#873)
* Loading placeholder

* Upgrade dependencies, reduce warnings

* 👕

* Remove more unused deps

* Bump RME
2019-01-21 11:06:44 -08:00
Tom Moor
13501b6d76 Moving redirects to declarative method 2019-01-19 00:23:39 -08:00
Tom Moor
d21dd710bb Upgrade Editor – Slate 0.44 / RME 8.0.0 (#863)
* Upgrade Slate

* Normalization

* Remove dupe dep

* Fixes placeholders

* Image uploading fixed

* Verbose but solid placeholder handling

* RME 8.0.0

* Fixes: Ability to delete embeds
2019-01-18 22:44:31 -08:00
Tom Moor
044b4f16bc Editor embeds (#680)
- [x] Make deleting an embed easier
- [x] Add document level ability to disable embeds
- [x] Add team level ability to disable embeds
- [x] GitHub
- [x] Numeracy
- [x] Mode Analytics
- [x] Figma
- [x] Airtable
- [x] Vimeo
- [x] RealtimeBoard
- [x] Loom
- [x] Lucidcharts
- [x] Framer
- [x] InVision
- [x] Typeform
- [x] Marvel
- [x] Spotify
- [x] Codepen
- [x] Trello
2018-12-15 14:06:29 -08:00
Tom Moor
f72fa40a0f WIP 2018-04-03 20:20:30 -07:00
Tom Moor
403e504499 Merge pull request #620 from outline/paragraph-handling
Improved paragraph behavior
2018-03-26 21:23:21 -07:00
Tom Moor
bdff3b716b Merge pull request #629 from outline/issue-623
Improves behavior of link toolbar
2018-03-25 16:42:58 -07:00
Tom Moor
fcd8f07a2a Increase padding at the bottom of the editable area 2018-03-25 15:56:17 -07:00
Tom Moor
a24d745870 Improves behavior of link toolbar based on user feedback 2018-03-25 15:35:59 -07:00
Tom Moor
48e3a93d83 Bump slate serializer 2018-03-18 01:10:53 -07:00
Tom Moor
3a78c4b66e Only show block insert on empty paragraphs 2018-03-10 22:33:13 -08:00
Tom Moor
d02fc793ee Improved paragraph behavior 2018-03-10 21:25:07 -08:00
Tom Moor
b9dda35566 Bump slate-edit-code dependency 2018-03-06 21:00:44 -08:00
Tom Moor
9142d975df Draft Documents (#518)
* Mostly there

* Fix up specs

* Working scope, updated tests

* Don't record view on draft

* PR feedback

* Highlight drafts nav item

* Bugaboos

* Styling

* Refactoring, gradually addressing Jori feedback

* Show collection in drafts list
Flow fixes

* Ensure menu actions are hidden when draft
2018-02-27 22:41:12 -08:00
Tom Moor
e8b10176eb Upgrade to Slate 32
closes #588
2018-02-13 21:03:38 -08:00
Tom Moor
6caba86751 Mobile Responsive Styles (#580)
* WIP: Responsive styles

* Flip breakpoints, ensure doc doesn't spread

* Add MenuIcon

* Refactor Sidebar to share mobile responsive styles

* Fix accidental find/replace

* Tweak padding to take into account icon spacing
2018-02-10 23:24:12 -08:00
Tom Moor
b0db7f29d3 Fixes: Possible to create blocks inside document title 2018-02-07 22:29:33 -08:00
Jori Lallo
abcab12b97 Fix TOC 2018-02-06 22:40:13 -08:00
Jori Lallo
9fad61c4b4 Fix code overflow. Fixes #563 (#565) 2018-02-04 23:43:57 -08:00
Tom Moor
f076582ce4 Fixes code blocks (#554)
* Fixes code blocks

* Flow ignore uncompiled files

* 💚

* big > bug
2018-02-04 12:30:22 -08:00
Tom Moor
66c091cfbb Closes #538
Seems simple and obvious because it is, we should check that startBlock exists before using it
2018-01-30 08:24:49 -08:00
Jori Lallo
97268314fe Map keyboard shortcuts on windows (#526)
* Map keyboard shortcuts on windows

* Fixed also saving commands

* Fix keyboard shortcut for keyboard shortcuts

* Fixed guide

* Cmd -> Mod
2018-01-28 17:57:45 -08:00
Tom Moor
edcb92d223 Updated to only add numbering to slugified heading anchors when absolutely neccessary 2018-01-27 11:45:46 -08:00
Tom Moor
7647d23804 Stable heading ids 2018-01-27 00:47:48 -08:00
Jori Lallo
891bac6d1d Autofocus on new link 2018-01-24 23:16:13 -08:00
Jori Lallo
395c022178 LinkToolbar changes 2018-01-24 00:00:58 -08:00
Jori Lallo
2c9e92e5b9 Fixes 2018-01-03 21:35:13 -08:00