Commit Graph
161 Commits
Author SHA1 Message Date
James Smith 53cff0115e enable/disable submit button as uploads progress 2024-06-28 14:27:28 +01:00
James Smith 086587f3fc linting and using correct nullish operators 2024-06-28 11:34:30 +01:00
James Smith 0f02a9db1b add i18n support for uppy 2024-06-28 11:22:05 +01:00
James Smith 156b466af3 tweak uppy form settings 2024-06-28 10:19:04 +01:00
James Smith ff4c911a8a refactor uppy config into its own file and make more robust 2024-06-28 10:15:35 +01:00
James Smith ad0cca8949 move uploading into ModelsController new and create actions 2024-06-27 14:41:49 +01:00
James Smith 06b6124210 push selectize import down to where needed 2024-06-19 13:08:46 +01:00
James Smith ff6e5db4ce reduce bootstrap import to minimum 2024-06-19 13:06:00 +01:00
James Smith 4189e87f8e use local selectize 2024-06-19 12:55:48 +01:00
James Smith 7586bde817 use local jquery 2024-06-19 12:55:36 +01:00
James Smith 99ab395a72 lint 2024-06-17 15:43:18 +01:00
James Smith 09c0298ad1 add custom validation for max file size 2024-06-17 15:37:46 +01:00
James Smith d2c16765e9 add keyboard control for zoom 2024-05-12 15:21:47 +01:00
James Smith d5ab2ec9be swap pan/rotate around so that rotate is default, and pan uses modifier keys 2024-05-12 15:13:26 +01:00
James Smith a7e64fcbe5 lint: manual fixes 2024-05-12 12:35:44 +01:00
James Smith d9a1969d38 lint: autofix simple stuff 2024-05-12 12:31:45 +01:00
James Smith 5fda027066 copy orbitcontrols.js from THREE 2024-05-12 12:30:33 +01:00
James Smith 245c924545 only pass through relevant key presses and let the rest do their defaults 2024-05-11 10:59:55 +01:00
James Smith dc26bc5b20 set keyboard focus to canvas when clicked with mouse 2024-05-11 10:49:07 +01:00
James Smith e4c64e373f split event handlers for special pointer/key handling 2024-05-11 10:42:29 +01:00
James Smith 08669e5f03 handle undefined worker url 2024-05-10 15:44:06 +01:00
James Smith f661bc822f Pass worker URL in as an attribute to avoid path problems 2024-05-10 15:34:43 +01:00
James Smith 676e522dde absorb promise when running preview 2024-05-10 14:23:01 +01:00
James Smith 6faeb65e05 fix DOMRect type properties 2024-05-10 14:22:00 +01:00
James Smith 88aaebc9a3 add type for getBoundingClientRect 2024-05-10 14:15:04 +01:00
James Smith 0e1b35df9f add translation for processing string 2024-05-10 14:09:43 +01:00
James Smith 8bf11afd72 lint pass 2024-05-10 14:01:05 +01:00
James Smith 3117bf6bf2 fix typs for comlink remote 2024-05-10 13:59:18 +01:00
James Smith ce181eeeef fix type for run() 2024-05-10 12:16:02 +01:00
James Smith 8ffad9afff type for preview array 2024-05-10 12:15:48 +01:00
James Smith f3aaa46290 type hints for event handler in canvas proxy 2024-05-10 12:15:18 +01:00
James Smith fc65530de1 code is a string 2024-05-10 12:14:35 +01:00
James Smith 7de3b00c6b fix window globals 2024-05-10 12:14:15 +01:00
James Smith d00f30fdbb remove left/top from resize
not needed
2024-05-10 12:13:34 +01:00
James Smith 525ccca7d9 get controls keyboard inputs working 2024-05-09 17:15:03 +01:00
James Smith 02e2452746 load button click 2024-05-09 15:27:27 +01:00
James Smith b21dbbdf7e detect canvas intersection and autoload 2024-05-09 13:49:50 +01:00
James Smith 55116b3b6e refactor UI-side code into a class so we can encapsulate it for each canvas 2024-05-09 13:09:56 +01:00
James Smith 071e12b167 capture pointer events over canvas and prevent default behaviour 2024-05-09 12:38:45 +01:00
James Smith 7fc33167bf lint 2024-05-09 12:38:01 +01:00
James Smith 8e3149af4f improve resize to handle position and pixel ratio as well as size 2024-05-09 11:57:35 +01:00
James Smith 5c009bfc60 typecheck: explicit string conversion 2024-05-09 10:09:38 +01:00
James Smith c90a022f0e lint: return types and string templating 2024-05-09 10:09:38 +01:00
James Smith dbcbb7a499 lint: autocorrections 2024-05-09 10:09:38 +01:00
James Smith 350ca7af91 some typing for the progress bars 2024-05-09 10:09:38 +01:00
James Smith 1a4a5e5afa stub preventDefault 2024-05-09 10:09:38 +01:00
James Smith 7f1401d9c7 make event transfer handler type safe 2024-05-09 10:09:37 +01:00
James Smith 186f29d385 some type safety improvements 2024-05-09 10:09:37 +01:00
James Smith 3fa34828ae remove unused ObjectPreview type 2024-05-09 10:09:37 +01:00
James Smith d2e72ded5d add type hint for real canvas 2024-05-09 10:09:37 +01:00