Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Block Readonly Ranges #44

Open
wants to merge 54 commits into
base: main
Choose a base branch
from
Open

Code Block Readonly Ranges #44

wants to merge 54 commits into from

Conversation

LyonSyonII
Copy link
Owner

@LyonSyonII LyonSyonII commented Nov 17, 2024

Adds new feature to limit what the User can edit, greatly improving the experience (now more "code mess")

Contents (#44)

Other

  • make images more blurred in disabled checkpoints to avoid spoilers
  • RESET now properly resets the chapter/codeblock
  • add readonly ranges to chapters 2 and 3
  • add readonly ranges to chapter 4
  • multiple style adjustements
  • manually implemented CodeBlock vertical navigation for a much smoother experience
  • enable protectedRanges only if code is protected
  • fixed multiline jumps when a line does not have a modifiable block
  • line end will not be focused, instead selection travels to nearest modifiable section
  • line end will not be focused, instead selection travels to nearest modifiable section
  • fixed corner case where a line doesn't have a modifiable section
  • no return allowed on script tags
  • add debug console if ?dbg is present
  • show "interpreter downloaded" only once per session
  • change protected ranges getters for clarity
  • rewrite navigationExtension logic to make it much simpler and correct
  • [1] small change
  • add underline when modifiable region is empty
  • empty modifiable section setting caret to right instead of left
  • replace deprecated Astro.glob with Vite import.meta.glob
  • re-add shift+enter shortcut
  • make images invisible when in a blurred checkpoint to avoid spoilers

Uncategorised!

  • update dependencies
  • small performance adjustements
  • fix big layout shift in index.html on desktop
  • WIP
  • works, but small fixes are needed
  • Completely implemented, more testing needed
  • handle copy and cut
  • merge main
  • prettier
  • a bit of cleanup
  • remove unnecessary log
  • prettier
  • add protected ranges
  • pnpm fmt
  • dev-prev
  • merged
  • merge
  • update to latest astro
  • pnpm biome
  • small annotations
  • [6] changed first exercise to freshness instead of temperature
  • pnpm up
  • update nix dependencies
  • remove bundle analyzers
  • inline stylesheets to avoid large css files
  • remove unneeded imports
  • move Prec import to dynamic
  • improve placeholder codeblock when loading page
  • update nix shell
  • Merge branch 'main' into dev
  • add action to deploy development branch to other repo
  • add action to deploy development branch to other repo

@builder-coolify
Copy link

builder-coolify bot commented Nov 17, 2024

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-01-07 15:22:43 CET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant