Commit Graph
40 Commits
Author SHA1 Message Date
James Smith a3acb966d8 remove path nesting of models inside libraries 2024-07-30 19:13:17 +01:00
James Smith cec0466fce extract list features into concerns and test 2024-07-26 23:22:12 +01:00
James Smith d8469b4b91 use redirect-to-presigned-url instead of reading the whole thing from an S3 store. 2024-07-05 13:35:07 +01:00
James Smith d37befeb9b send file data from Shrine via rack-response 2024-06-25 15:18:03 +01:00
James Smith 98142b23c7 rename ModelFile#pathname to #absolute_path for better understandability 2024-06-25 14:11:50 +01:00
James Smith 696c962191 use ModelFile methods to get info in send_file_content 2024-06-25 14:11:50 +01:00
James Smith bcdcb79ce3 eager loading for files 2024-04-24 12:25:20 +01:00
James Smith 71cd6b2b26 redirect back if possible after conversion
i.e. problem page
2024-04-16 11:50:47 +01:00
James Smith b026f9bbd9 add ModelFilesController#create to run conversions 2024-04-15 16:43:13 +01:00
James Smith c87f1bc885 Only include 3d files in bulk edit 2024-04-13 18:53:13 +01:00
James Smith 772df3be28 authorisation and policy for modelfiles 2024-03-16 00:33:22 +00:00
James Smith 38c668d5ab get model file tests passing again 2024-03-15 16:18:54 +00:00
James Smith cf22ebfa46 don't redirect back to deleted files or models 2024-03-04 13:47:33 +00:00
James Smith 353c7e06ab roll back streaming changes from #1776
They caused slower performance, somehow.
2024-02-22 09:50:06 +00:00
James Smith cb093404ad Move model file editing to its own page 2024-02-09 12:06:21 +00:00
James Smith 8ad66662ed allow presupported_version param in form 2024-02-09 12:04:28 +00:00
James Smith e823ab99ea add notices and alerts for succes and failure of various site actiivities 2024-02-01 10:23:06 +00:00
James Smith 7bf0b7be23 redirect back to some previous pages correctly, for things like scans, problem changes, etc. 2024-02-01 10:17:24 +00:00
James Smith 898eb313c6 include ActionController::Live and close stream 2024-01-29 16:53:37 +00:00
James Smith 1306d8a13f proper MIME type setting 2024-01-29 16:53:07 +00:00
James Smith fd712d394b Make file sending more memory efficient by chunking it
should allow memory to be garbage collected
2024-01-29 16:38:01 +00:00
James Smith 47a647ee89 disable model and file deletion in demo mode 2024-01-26 11:36:30 +00:00
James Smith dd063ee50a fix broken mime type responses
resolves #1556
2023-10-11 16:33:27 +01:00
James Smith cb5994cc17 save printed flag per-user 2023-08-05 22:34:34 +01:00
James Smith 883571cefe add method to properly delete model files and use it! 2023-07-16 13:07:56 +01:00
James Smith afc88c0ac8 enable caching and conditional GET for files
means that model files and images can get cached in browser
2023-07-15 20:36:37 +01:00
James Smith 604683769c Show duplicate files in warning box 2023-07-03 12:40:24 +01:00
James Smith ae33f74bc6 rename excerpt to caption
self explanatory now, resolves #1001
2023-02-22 16:02:32 +00:00
James Smith 6427162b30 Merge pull request #968 from ksuquix/notes_excerpt
Added notes/excerpts to models/creators/model_files
2023-02-19 20:14:43 +00:00
James Smith 9d18f2c22f combine all MIME type checks into a single place 2023-02-19 02:28:33 +00:00
James Smith 76e51dda5f rename ModelFile#file_format to #extension 2023-02-19 02:11:49 +00:00
James Smith 242be98a65 add file format handlers for all model and image types automagically 2023-02-18 17:43:12 +00:00
James Smith efc53f602a refactor file format responder to use format.any 2023-02-18 16:30:49 +00:00
Don Eisele 78c6b8f4d0 added notes/excerpt to model_files 2023-02-03 15:48:21 -06:00
James Smith 74ff7b02bf index alembic (.sbc) files 2022-11-24 19:30:20 +00:00
James Smith 0f1497ac80 Go back to model view after bulk editing files
resolves #796
2022-11-15 23:19:49 +00:00
James Smith 8039eaa8f8 Add ability to delete individual model files 2022-10-02 17:13:27 +01:00
James Smith 444e11121c Add bulk editing for all files in a model 2022-07-18 22:21:28 +01:00
James Smith c4c9d9e076 Scan and show GIF and SVG image formats 2022-07-04 21:58:00 +01:00
James Smith 65891812b8 rename files controller to model_files, and scale images properly 2022-01-06 21:52:04 +00:00