Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
1j01 committed Jan 14, 2022
1 parent ec81e6a commit fde33a7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ Electron boilerplate stuff:
* Remember window position/state
* Set up autoupdating
* Keep window hidden until loaded (`show: false`, [`ready-to-show`](https://electronjs.org/docs/api/browser-window#event-ready-to-show))
* Create a landing page / home page for the desktop app (similar to https://desktop.webamp.org/ or https://desktop.github.com/) - (perhaps https://desktop.jspaint.app/) - and/or for JS Paint in general (perhaps https://jspaint.app/about/)

Security:

* IPC, and move file allow-list to main process
* Remove inline scripts from HTML, update CSP
* isolation
* disable multiplayer???????????? should be fine

Functionality:

Expand All @@ -152,12 +160,10 @@ Functionality:
* Document recovery without having to know about File > Manage Storage - pop up contextually with a dialog when you need it
* Show link URLs when you hover over them, in the status bar (because we have a status bar! haha) (there's this API: [event: update-target-url](https://github.com/electron/electron/blob/master/docs/api/web-contents.md#event-update-target-url), which gave me the idea, or it could be implemented with mouse events)
* Recent files (could also be implemented for 98.js.org in the future)
* Create a landing page / home page for the desktop app (similar to https://desktop.webamp.org/ or https://desktop.github.com/) - (perhaps https://desktop.jspaint.app/) - and/or for JS Paint in general (perhaps https://jspaint.app/about/)
* macOS: `open-file` event, `setRepresentedFilename`, `setDocumentEdited` etc.
* macOS: `open-file` event, test `setRepresentedFilename`, `setDocumentEdited`
* Windows: maybe handle `session-end` event and ask to save?
* Detect if file changes on disk, ask if you want to reload it?


### Also

* Anything marked `@TODO` or `@FIXME` in the source code
Expand Down

0 comments on commit fde33a7

Please sign in to comment.