aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/editor.mjs
Commit message (Collapse)AuthorAge
* feat: add more menu-item for renderer suggestionsHsieh Chin Fan2024-10-03
|
* refactor: set Suggestion as custom elementHsieh Chin Fan2024-10-03
|
* fix: set layout attribute wisely for observerHsieh Chin Fan2024-10-02
|
* style: switch to standardjsHsieh Chin Fan2024-10-02
|
* fix: focus issue for editorHsieh Chin Fan2024-10-01
| | | | Now <ESC> and <F1> switch focus correctly
* fix: keep data-mode=editing when HTML refreshHsieh Chin Fan2024-10-01
|
* style: prettierHsieh Chin Fan2024-10-01
|
* style: change owner of [data-mode]Hsieh Chin Fan2024-10-01
|
* feat: improve menu itemsHsieh Chin Fan2024-10-01
| | | | | | * fix editing mode, make it just like layout changes * add plain-modal for renderer results * check selection is within text range for geolink
* refactor: move menu feature from editor to dumbymapHsieh Chin Fan2024-10-01
|
* feat: add submenu for map/block/layout switchingHsieh Chin Fan2024-09-29
| | | | | | | | | | | * Add general classes into MenuItem * Use MutationObserver for data-mode * Automatically unfocus other maps when one is focused TODO: * hover effect on submenu item doesn't work, why? * shorcuts hint in selector ".folder.menu-item" not looks great
* feat(editor): use unicode for action iconsHsieh Chin Fan2024-09-29
| | | | * remove some buttons for later
* style: prettierHsieh Chin Fan2024-09-29
|
* style: prettierHsieh Chin Fan2024-09-28
|
* fix: hide menu anyway when cursor changesHsieh Chin Fan2024-09-28
|
* feat: add menu items for dumbymap.utilsHsieh Chin Fan2024-09-26
|
* feat: add MenuItem for GeoLinkHsieh Chin Fan2024-09-26
|
* feat: add menu item for adding Geo-LinkHsieh Chin Fan2024-09-26
|
* refactor: methods about creating geo/doc linksHsieh Chin Fan2024-09-25
| | | | change methods to only create a single link
* chore: reformat codeHsieh Chin Fan2024-09-25
|
* refactor: general menuHsieh Chin Fan2024-09-25
| | | | | * rename suggestionEle -> menu for general use cases * set Suggestion as module
* feat: use Escape and F1 to switch preview/editorHsieh Chin Fan2024-09-24
|
* feat(CSS): add focus visual to editor and outputHsieh Chin Fan2024-09-24
|
* feat: add util "removeBlockFocus"Hsieh Chin Fan2024-09-24
|
* feat: add focusNextBlock utilHsieh Chin Fan2024-09-24
|
* feat: disable debounce temporarily to check performanceHsieh Chin Fan2024-09-24
|
* feat: remove keydown events from dumbymapHsieh Chin Fan2024-09-23
| | | | | | | | | | | | * events now handed by editor * this fix document.onkeydown reset when generatedMaps() called more than one time * apply "bind" to remove methods about user interaction from generateMaps() * refactor focusNextmap(), using array to store rendered maps BREAKING CHANGE: generateMaps() now return dumbymap Object, contains key elements and methods
* refactor: rename data attribute for editorHsieh Chin Fan2024-09-22
| | | | | | data-layout -> data-mode This prevents confusing with data-layout in dumbymap
* fix: apply new layout name in editorHsieh Chin Fan2024-09-21
|
* chore(release): update mapclay to 0.6.7Hsieh Chin Fan2024-09-21
|
* feat: move anchor to newline after doc separator completionHsieh Chin Fan2024-09-20
|
* fix: don't show suggestion list in caseHsieh Chin Fan2024-09-19
|
* feat: swith focus map by tab key and clickHsieh Chin Fan2024-09-18
| | | | | | | | | | * Use data-focus attribute and MutationObserver to move map-container between Sementic HTML and Showcase. * Currently set return value of docuement.onkeydown in editor, then reset onkeydown function in dumbymap. Maybe there is a better way? * CSS to make placeholder not so obvious
* fix: update text decoration properlyHsieh Chin Fan2024-09-16
|
* fix: prevent autosave overrides content from hashHsieh Chin Fan2024-09-16
|
* feat: Set callback for click eventHsieh Chin Fan2024-09-15
|
* chore: eslintHsieh Chin Fan2024-09-15
|
* style: Reformat codeHsieh Chin Fan2024-09-15
|
* feat: Render maps directly be debounceHsieh Chin Fan2024-09-15
|
* feat: Switch layout by attributeHsieh Chin Fan2024-09-15
|
* refactor(CSS): Rename class name for HTML holderHsieh Chin Fan2024-09-15
| | | | result-html => DumbyMap
* refactor: Use hidden element as anchor of suggestion listHsieh Chin Fan2024-09-15
| | | | | Since suggestion list is not widget anymore, it could be seen outside of editor
* feat: Completion for text sequenceHsieh Chin Fan2024-09-15
| | | | | | * Type "-" or "`", autocomplet for YMAL doc separator or code fence * Delete a char of YAML doc separator or code fence, auto empty current line * Prevent more content after YAML doc separator
* style: More code blocksHsieh Chin Fan2024-09-13
|
* patchHsieh Chin Fan2024-09-13
|
* chore: Remove button of fullscreen modeHsieh Chin Fan2024-09-13
|
* fix: Logic about suggestionsHsieh Chin Fan2024-09-13
| | | | | * Switch to event 'onCursorActivity' for suggestions * Show suggestion about Renderer without case sensitive
* feat: Style code block even line is emptyHsieh Chin Fan2024-09-13
|
* chore: Fix warning from eslintHsieh Chin Fan2024-09-12
|
* feat: Use Query Params to render mapsHsieh Chin Fan2024-09-11
|