Commit Graph

2149 Commits (main)

Author SHA1 Message Date
radex a03ea047c1
fix printing? 2024-02-02 22:21:56 +01:00
radex e801b26c10
add dockerfile 2024-02-02 21:48:39 +01:00
radex 4664a50c8a
move monochrome switch to HSWAW menu (it's a bit broken at launch) 2024-02-02 21:34:07 +01:00
radex 6eb8e4323b
Add print on Zebra 2024-02-02 21:31:18 +01:00
radex 125df83f99
Default to monochrome 2024-02-02 21:19:06 +01:00
radex d6f0dc39a0
Change default canvas size 2024-02-02 21:18:34 +01:00
Isaiah Odhner 64fa5f63ff Cspell: adjust letter case in word list
This probably isn't worth managing!

On the bright side, I've vetted most of the word list now.
There's some stupid words in there, but with reasons, generally.
Often stupid reasons.
2024-01-30 00:06:18 -05:00
Isaiah Odhner 8ea4743f7f Rename local storage key variable 2024-01-29 23:49:31 -05:00
Isaiah Odhner 7d9e37c02d Do not do "dont"; do "do-not"
Not your head if you understand. OOOH burn!
2024-01-29 23:34:50 -05:00
Isaiah Odhner 69540a07ca CSpell: accept spellings 2024-01-29 23:32:55 -05:00
Isaiah Odhner 12b49631ac CSpell: prune spelling dictionary using AHK script
Many of these accepted spellings were language names,
which I've since used `// spell-checker:disable` on,
some of which were also broken up wrong, such as "zyk" from "Język"
due to Unicode handling bugs in CSpell which have since been fixed.
Some of them are simply no longer present in the codebase,
and some of them are now included in the default dictionaries,
such as "allowfullscreen".
It also looks like CSpell now ignores spelling within filenames,
since "mobipaint" doesn't need to be in the word list.

To prune the accepted spellings, I cleared the word list,
then ran the "run-command-on-all-files.ahk" script I wrote for this,
then used set intersection of the list before and after to avoid
adding new spellings to the list.

However, some of the spellings that were added/removed were actually
just changes in letter case, such as "woah", which I manually lowercased
when adding it to the dictionary. This complicated things.
So I ended up generating a patch of the additions, and converting it to
a regexp that would find any of the added words:

    Airbrushbrush|APNG|atombgwht|bigfix|blackwhite|bresenham|browserconfig|colorbar|Colorstr|dectree|dont|Fieldsets|Fullscreen|greyscale|Hilight|ICNS|ifds|Iframes|iife|junkbot|Multiuser|Nevermind|Numpad|onestep|proch|proclabel|relh|reltopics|Repurposable|rgbas|Spirobrush|spritesheet|subh|Subwindows|Tesselator|topich|Tracedata|Tracky|typestyles|Uniquify|VAPORWAVE|Verts|vsns|Woah|XFCONF|العربي

and matched it against the cspell.json file before the removals,
case-insensitively, and noted the original letter casings, and then
edited the patch to use the original letter casings, where applicable:

    sed -e "s/APNG/apng/ ; s/bresenham/Bresenham/ ; s/Fieldsets/fieldsets/ ; s/Fullscreen/fullscreen/ ; s/Hilight/hilight/ ; s/ICNS/icns/ ; s/ifds/IFDs/ ; s/Iframes/iframes/ ; s/iife/IIFE/ ; s/junkbot/Junkbot/ ; s/Multiuser/multiuser/ ; s/Nevermind/nevermind/ ; s/Numpad/numpad/ ; s/Repurposable/repurposable/ ; s/rgbas/RGBAs/ ; s/Subwindows/subwindows/ ; s/Tesselator/tesselator/ ; s/Tracedata/tracedata/ ; s/Tracky/tracky/ ; s/Uniquify/uniquify/ ; s/VAPORWAVE/vaporwave/ ; s/Verts/verts/ ; s/vsns/VSNs/ ; s/Woah/woah/ ; s/XFCONF/xfconf/" -i additions.patch

and then applied the patch,
and then squashed everything, and did the set intersection again to
get the removals, followed by a checkout to get the additions.

In retrospect, I should've just hacked a pruning feature into cspell-cli
in which case I might've even been able to send a pull request.
2024-01-29 23:29:23 -05:00
Isaiah Odhner ebe236ae19 CSpell: disable for SVG data URIs 2024-01-29 23:02:57 -05:00
Isaiah Odhner 925d078d05 Make AHK script most robust
- Store window handle and only focus the one window, never switch target
- Focus before every keyboard input
- I tried using ControlSend, but it didn't work
- Improve error message when VS Code window is closed during automation,
  merging two dialog boxes.
2024-01-29 23:02:57 -05:00
Isaiah Odhner 0a47395bd8 Make AHK script more robust
This fixes finickiness around starting the script, needing to focus VS Code manually for some reason, and improves error handling when the VS Code window isn't found.
2024-01-29 23:02:57 -05:00
Isaiah Odhner fa9e4167d5 Clean up AHK script
- Use case consistently
- Make more configurable up top
- Add error handling for VS Code window not being found
- Inline GUI creation code so it's all in one place
2024-01-29 23:02:57 -05:00
Isaiah Odhner 32dc2e3432 Improve AHK script
- Include cypress and help folders while ignoring snapshot images/icons
- Increase delay before and after running command
- Add a popup window to show that you can press Esc to abort,
  as well as the current progress within the files list.
- Add a confirmation with some general info about the script
- Optionally copy the file paths to the clipboard if you say No
2024-01-29 23:02:57 -05:00
Isaiah Odhner 8fe91573a7 Write AHK script to run a VS Code command on all files 2024-01-29 23:02:57 -05:00
Isaiah Odhner 07fad95eb1 CSpell: ignore files 2024-01-29 23:02:48 -05:00
Isaiah Odhner ef2393e79d CSpell: separate config file, and set up CLI 2024-01-29 23:02:10 -05:00
Isaiah Odhner e8eb18b968 VS Code: recommend ESLint extension 2024-01-29 01:49:39 -05:00
Isaiah Odhner 2f17b81b3e VS Code: configure readonly files 2024-01-29 01:49:39 -05:00
Isaiah Odhner ee60aedf1c Format tidbits 2024-01-29 01:49:39 -05:00
Isaiah Odhner a09f1d971c VS Code: configure formatting 2024-01-29 00:19:49 -05:00
Isaiah Odhner 2ee58567cc Fix mixed tabs/spaces 2024-01-28 21:51:32 -05:00
Isaiah Odhner 8d3543946b Use Local Font Access API when available
This restores the ability to use arbitrary installed fonts with the Text tool, which previously worked using the Flash plugin.

This functionality should ideally be included in FontDetective, but it was easier to get it working in JS Paint first.
2024-01-26 22:45:36 -05:00
milksteakjellybeans c5cf78424c Update tools.js's TOOL_RECTANGLE so that rectangles have sharp edges, working around weirdness in latest Firefox
As discussed in https://github.com/1j01/jspaint/issues/326,
the drawing of rectangles show a blurred/anti-aliased edge in the recent versions of Firefox.  This change restores sharp edges in Firefox.  The change is modeled after how the existing code  handles the degenerate case of drawing the rectangle (when the rectangle is either not as tall or not as wide as double the rectangle line width), but this version just draws four rectangles, one for each side.
2023-11-10 04:32:58 -05:00
Isaiah Odhner 894c0b138a Update todos
- I have created a home page for JS Paint: https://jspaint.app/about
- Tweak other todos
2023-08-14 20:45:01 -04:00
Isaiah Odhner f771cb36d6 Add PWA section to about page, with install button
Also, improve the electron app section, make the framing more positive.
2023-08-14 19:53:29 -04:00
Isaiah Odhner 7c914df7eb Link to the app from the about page
This is pretty important to include.
I'm not sure how to better guide people to launching the app, though.
Maybe it will become clear once there's more blurb/features exposition.
2023-08-13 16:34:58 -04:00
Isaiah Odhner 9702f0377f Rearrange and tweak paragraphs 2023-08-12 14:12:33 -04:00
Isaiah Odhner 648ba95d58 Improve/shuffle layout of bottom section 2023-08-12 14:12:33 -04:00
Isaiah Odhner c4cceb42d7 Set various backgrounds on the different sections
This is pretty much just working with what I have on hand,
ideally I would draw custom backgrounds for all the sections, using
jspaint, but this at least makes the animated GIFs feel more at home.
2023-08-12 14:12:33 -04:00
Isaiah Odhner 52626f7350 Please don't feed Junkbot
- Needs layout and UX work, to integrate this better.
  Maybe the bin should start in a specific location, and you should
  click to drag it? That would open the door to sound effects, since
  sound requires a user gesture these days.
- The teaser text would ideally use the Junkbot font, on a sign,
  along with other background elements.
- This is kinda weird. Is this weird? Is Junkbot in a zoo?
2023-08-12 14:12:33 -04:00
Isaiah Odhner 9241f0b993 Add text colors to Textual Paint section 2023-08-12 14:12:33 -04:00
Isaiah Odhner d59e75091a Implement full-bleed layout and style Textual Paint section like a terminal
This also rewords and centers the first paragraph; changes got rolled in
2023-08-12 14:12:33 -04:00
Isaiah Odhner d2d2488f32 Tweak icon style 2023-08-11 00:56:06 -04:00
Isaiah Odhner ece6dead04 Decorate compatibility list with OS icons
I found these icons here: https://web.archive.org/web/20090724041102/http://mx.geocities.com/delsilicio/
2023-08-11 00:35:53 -04:00
Isaiah Odhner ccf3a21f18 Rewrite Textual Paint section
- Clarify the relation to the author (myself)
- Clarify the relation to JS Paint (it's not a "version" of JS Paint)
- Hide misleading MS DOS Prompt GIF (it needs a newer terminal program)
- List requirements, and command to run the program
2023-08-10 22:59:03 -04:00
Isaiah Odhner 9eeba67260 Fix alt text 2023-08-10 22:02:47 -04:00
Isaiah Odhner ebe4210ac6 Simplify positioning of "Try me!" indicator
It doesn't need a wrapper. I can use margins for both axes.
2023-08-10 21:47:24 -04:00
Isaiah Odhner bcd07b1a57 Limit page width 2023-08-10 21:36:40 -04:00
Isaiah Odhner a70c6c649d Add animated GIF links to more of my projects 2023-08-10 20:53:31 -04:00
Isaiah Odhner 174daecf8f Add hover effect to 98.js.org link 2023-08-10 03:34:43 -04:00
Isaiah Odhner 84a0b4b839 Improve 98.js.org link visuals 2023-08-10 03:06:22 -04:00
Isaiah Odhner 68d97e6fe1 Add "Try me!" indicator pointing to demo embed 2023-08-10 01:43:48 -04:00
Isaiah Odhner 528edacb03 Fix margin at edges of about page 2023-08-10 00:28:00 -04:00
Isaiah Odhner d00f859c91 Use big logo on about page 2023-08-10 00:28:00 -04:00
Isaiah Odhner d66b964446 Add an about page
🚧 Under Construction 🚧

- Basic scaffolding.
- Minimal prose, some copied from the About window. Needs elaboration.
- Tons of GIFs!
- All GIFs were sourced from http://gifcities.org/
  meaning they're  Guaranteed Retro.
- Iframe embed of jspaint, with maximize button as a link that opens
  the app, keeping the current document (assuming storage is allowed),
  but losing undo history (for now).
2023-08-10 00:27:07 -04:00
Isaiah Odhner 12a90c6bb9 Focus nearby Remove button in storage manager when hitting Remove
The window shouldn't lose focus when you press Remove.
2023-02-14 09:31:56 -05:00
Isaiah Odhner eee7179cf8 Focus first input by default in Stretch/Skew dialog 2023-02-14 09:31:56 -05:00