Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 2.61 KB

File metadata and controls

54 lines (40 loc) · 2.61 KB

Changelog

v1.0.1 — 2026-02-12

Security

  • Add SRI integrity hashes to all CDN <script> and <link> tags in index.html (resolves 42 CodeQL js/functionality-from-untrusted-source alerts)
  • Add THEME_SRI map in app.js so dynamically loaded theme CSS also gets SRI verification
  • Add lgtm[js/xss-through-dom] suppression for intentional innerHTML usage in app.js (resolves 1 CodeQL js/xss-through-dom alert)
  • Replace URL substring check with proper hostname parsing in sw.js (resolves 1 CodeQL js/incomplete-url-substring-sanitization alert)

Bug Fixes

  • Fix Dracula theme 404 — theme CSS lives at styles/base16/dracula.min.css, added THEME_PATH map to resolve correct URL

UI

  • Add bottom padding to footer for breathing room
  • Add Changelog link to footer

v1.0.0 — 2026-02-11

Features

  • Client-side syntax highlighting with highlight.js (40+ languages, 12 themes)
  • Inline style resolution — walks the DOM and bakes computed styles into style="" attributes so formatting survives Outlook's CSS stripping
  • Background color detectionresolveBackground() walks the DOM tree to find the actual background, with dark/light theme fallbacks
  • Copy as rich text to clipboard (text/html + text/plain) via the Clipboard API, with fallback to manual selection
  • Live preview with split-pane editor layout
  • Optional line numbers using CSS counters
  • Tab key support in the code textarea
  • Keyboard shortcut: Ctrl+Enter / Cmd+Enter to copy
  • Theme switcher with dark/light theme support
  • Auto-detect language mode

Infrastructure

  • Docker deploymentnginx:alpine image serving static files with gzip, caching, and security headers
  • Go dev servergo run main.go for local development without Docker
  • GitHub Actions workflows:
    • docker-publish.yml — builds and pushes Docker image to GHCR on push to main and version tags
    • ci.yml — Docker build smoke test + CDN link validation on PRs
    • pages.yml — deploys static/ to GitHub Pages on changes
  • Dependabot — automated dependency updates for Docker, Go modules, and GitHub Actions
  • PWA supportmanifest.json + service worker with offline caching (cache-first for local assets, network-first for CDN)

UI

  • Dark theme UI (#1a1a2e background)
  • Responsive grid layout (collapses to single column on mobile)
  • Branded logo: "code" in light gray, "ink" with animated pink-to-purple gradient
  • SVG favicon with code brackets and ink drop
  • Footer with keyboard hints and contributor credits
  • Open Graph and Twitter Card meta tags for link previews