14 Commits

Author SHA1 Message Date
Chris
8fd5429c96
Feat/add split preview (#68)
* Add split editor & preview mode with a 3-way toggle

* Update default preview mode settings to a radio to match the 3 way toggle

* add resize cursor to split view handle

* remove redundant cursor style

* add mobile touch support with vertical splitting for split preview mode
2025-07-14 15:40:45 -07:00
Chris
47caab05b7
use notepad names for filenames (#67)
* use notepad names for filenames

* add MAX_FILENAME_COLLISION_ATTEMPTS variable

* refactor findnotepadbyid into a reusable function

* bump version to 1.0.3

* sanitize file id

* keep default notepad id

* add foundavailablepath check in loop when renaming notepads

* add logic to retain id for default notepad
2025-07-14 11:53:22 -07:00
Chris
3b5325bc68
Feat/add code syntax highlighting (#65)
* Add syntax highlighting to markdown preview

* Include highlight styles

* disable markedhighlight for now

* fix proper importing for code syntax highlighting with css files and register all languages

* Add language examples for code syntax highlighting

* bump version and update readme.md

* update readme
- add code syntax highlight example

* update readme.md

* Using default languages for highlight.js

* Include all language support by default with option to specify/limit list

* clean up app.js execution

* implement tab indenting and deindenting

* refactor preview code into preview manager

* Add language to copy button and include language label to print preview as well

* Add lazy loading to markdown code styles

* update readme.md image

* Cache highlight languages and simplify variable in server.js

* fix tab indenting / deindenting and refactor all functions to declarations instead of arrow functions for hoisting

* collaborative editing fix for accurate representations between local and remote changes

* refactor undo and redo functionality to be session based per client per notepad
2025-07-13 16:12:05 -07:00
gitmotion
8bf3f9f247 v1.0.1
- new service worker auto cache busting logic
- update markdown preview styles with fixes
- minor bug fixes

cleanup old caches on first install for backwards compatibility

include old cache name for busting

Adjust codeblock styles with new copy button

Add marked-alert and revamp of markdown styles

updating print preview styles to be a 1 to 1 style copy of the actual preview

Implement unique notepad naming & query params for ?id= with either notepad id or notepadname.
- also include window.history for back and forward capabilities

Add copy link to clipboard button in header-right

Add logic to auto expand collapsed details in print preview.
- also add new setting to disable that functionality
- update svg alert colors to match respectively

Make sure to get the updated settings for disabling expand markdown in print

update marked-alert cache name

update readme.md

fix comments and update readme

removing duplicate event listener

update codeblock style to wrap if overflow x
2025-06-30 18:05:54 -07:00
gitmotion
3cf6291e76 Add Docker Image versioning and style updates for v1.0.0 2025-05-16 12:42:04 -07:00
gitmotion
ee17281a27 Add autosave / settings modal and code refactors
revert unused change

update header right gap on mobile

update input with placeholder

update placeholder text
2025-03-24 14:55:03 -07:00
gitmotion
9ac91948e1 Added PWA Registration: https://github.com/DumbWareio/DumbPad/issues/41
Update comments

minor restructuring updates and styling updates

update readme.me

update notepad-selector css to truncate dropdown item text if overflow with ellipsis

updates to change status to toasts instead and update to fix pwa caching error
2025-03-11 12:13:33 -07:00
gitmotion
3db7425f8f Add Fuzzy Search to Dumbpad
- add fuse.js
- code to search files and filenames in server.js
- front end to handle searching by cache
- styling updates

Updates to add click events on each result item, update threshold for less strict matching, and update endpoint

update fuse search options, styling, and add tooltip

update header-right styles

Add logic to open first item if no item was selected, styling updates, and remove logging

Update readme.md

Update readme.md 2
2025-03-06 19:28:32 -08:00
gitmotion
6ad6f338ca Add markdown formatting, preview pane, and download/print options
update readme.md

Add injectPreviewPane function to clean up

returning preview pane element from injectPreviewPane function

removing injectPreviewPane and added element instead

Updates to inherit editor styles to preview pane and keep track of localcursor

updatelocalcursor updates after parsing and toggling preview mode

remove comment
2025-02-27 14:04:20 -08:00
abiteman
45f3459af4 Implement Websocket for Live Cross-talk editing 2025-02-17 16:35:03 -06:00
abiteman
88c6a42d6d Screwed up a merge. Reattempt 2025-02-17 10:00:44 -06:00
abiteman
2291b04bcd Add Simple Auth
Added Pin verification, set as DUMBPAD_PIN env variable.
2025-01-24 11:30:55 -06:00
abiteman
620e7c115e add icons 2025-01-23 18:38:00 -06:00
abiteman
c3f2aeae62 initial commit 2025-01-23 15:11:49 -06:00