summaryrefslogtreecommitdiff
path: root/app
AgeCommit message (Collapse)Author
2023-02-12refactor: Extract copyFileFromFormToUploadDir from uploadHandlerHeinrich 'Henrik' Langos
Once we have some file in the upload_path directory, we only need to determine where it should go. The further processing can be passed on to a job queue and handled in the background.
2023-02-12refactor: Extract file and filename from upload form separatelyHeinrich 'Henrik' Langos
2023-02-12refactor: Prepare to isolate handling of upload form from further processingHeinrich 'Henrik' Langos
This will allow to extract the handling of uploaded files. Once that is done, we can prepare to handle uploaded, and imported files more similar.
2023-02-12refactor: More comments, minor path handling helpers, extract upload target ↵Heinrich 'Henrik' Langos
selection
2023-02-12refactor: sort uploadhandler tasks and add commentsHeinrich 'Henrik' Langos
This is an in-between step. By commenting I explain to myself what the code does and should help with the refactoring.
2023-02-12refactor: Extract simple case that renders the upload form pageHeinrich 'Henrik' Langos
2023-02-12refactor: Change names of various file names and handles in upload handlerHeinrich 'Henrik' Langos
2023-02-12refactor: Change names of variables derived from the upload formHeinrich 'Henrik' Langos
For now, I want to make clearer to myself where the data comes from.
2023-02-12refactor(upload): Expand argument namesHeinrich 'Henrik' Langos
One-letter names are ok, in a pinch, for a three line loop. Using them in a 200 line function however is not recommended.
2023-01-21fix: Add missing config defaut. (#62)Heinrich 'Henrik' Langos
Without this value, and without a corresponding config.json entry, the thumbnail will not be generated. Closes prologic/tube#41 Reviewed-on: https://git.mills.io/prologic/tube/pulls/62 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-21fix: Fix initial rendering of import page (#63)Heinrich 'Henrik' Langos
Without this, the GET request on the `import` function will fail. Reviewed-on: https://git.mills.io/prologic/tube/pulls/63 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-16preserve-video-filename (#49)Heinrich 'Henrik' Langos
This should fix issue #40 I have not made the `allowed_characters` configurable yet nor the `replacement_character`. Mostly because I couldn't decide if I should define those "globally" on a server basis, or on the library nodes. Feel free to modify, extend, rip apart. 😁 Reviewed-on: https://git.mills.io/prologic/tube/pulls/49 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-16improve logging at startup (#51)Heinrich 'Henrik' Langos
This bit me hard in the begining. While I was trying to figure out why tube I didn't show any files, it was silently creating directories all over the place. 😆 Reviewed-on: https://git.mills.io/prologic/tube/pulls/51 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2022-11-25feat: Make upload path selectable (#39)Heinrich 'Henrik' Langos
This works for me, but for a more public site, I think I'll also add a boolean attribute named "upload_allowed" and "writable" to Config.Library.. Something to allow you to configure which directories can receive new uploads, and which directories we consider writable for other purposes (like editing meta data in yml, creating new thumbnails, ...) Co-authored-by: Heinrich Langos <gumbo2000@noreply@mills.io> Reviewed-on: https://git.mills.io/prologic/tube/pulls/39 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2022-11-25Normalize library path before adding and improve error logging (#38)Heinrich 'Henrik' Langos
I hope this PR closes #9 Co-authored-by: Heinrich Langos <gumbo2000@noreply@mills.io> Reviewed-on: https://git.mills.io/prologic/tube/pulls/38 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2022-11-08Seriously wtfJames Mills
2022-09-24Add Sandstorm packaging files (#26)Jacob Weisz
I am not quite done here, I need to finish some of the packaging metadata, and I am going to maybe take a pass at permissions prior to release. Opening the pull request so you can easily track the progress. Note that Sandstorm app metadata is supposed to be less than 1 MB total, so I optimized your screenshots. I dare you to tell the difference with the naked eye. Co-authored-by: Jacob Weisz <inbox@jacobweisz.com> Reviewed-on: https://git.mills.io/prologic/tube/pulls/26 Co-authored-by: Jacob Weisz <ocdtrekkie@noreply@mills.io> Co-committed-by: Jacob Weisz <ocdtrekkie@noreply@mills.io>
2022-08-30Replace rice box with go embed (#25)gabek
Reviewed-on: https://git.mills.io/prologic/tube/pulls/25 Co-authored-by: gabek <gabek@noreply@mills.io> Co-committed-by: gabek <gabek@noreply@mills.io>
2022-08-25Optionally require auth for the /upload endpoint (#23)gabek
Reviewed-on: https://git.mills.io/prologic/tube/pulls/23 Co-authored-by: gabek <gabek@noreply@mills.io> Co-committed-by: gabek <gabek@noreply@mills.io>
2022-08-25Supply the seconds position where a thumbnail is generated (#22)gabek
Reviewed-on: https://git.mills.io/prologic/tube/pulls/22 Co-authored-by: gabek <gabek@noreply@mills.io> Co-committed-by: gabek <gabek@noreply@mills.io>
2022-08-01Add support for multi-arch binary and docker image releases (#20)James Mills
Reviewed-on: https://git.mills.io/prologic/tube/pulls/20
2021-08-27Fix deps (#8)James Mills
Fixes #7 ```#!sh (⎈ |local:default) prologic@Jamess-iMac Sat Aug 28 01:35:47 ~/Projects/tube (master) 0 $ make Removing tube Removing tube.db/ tube version v1.1.12@02e2aeb(⎈ |local:default) ``` Co-authored-by: James Mills <prologic@shortcircuit.net.au> Reviewed-on: https://git.mills.io/prologic/tube/pulls/8 Co-authored-by: James Mills <james@mills.io> Co-committed-by: James Mills <james@mills.io>
2021-07-13Fix import pathsJames Mills
2021-06-08Remove proprietary notices about video (#40)Srxr
* Make content proprietary configurable * Update README * Fixed a few template context bugs Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2021-06-08Update shortuuid depJames Mills
2020-10-16Added opengraphs (https://ogp.me/) tags to support embedding, #24 (#25)Bilel Medimegh
* Added opengraphs (https://ogp.me/) tags to support embedding, #24 * Edited AUTHORS
2020-07-08Update static assetsv1.1.12James Mills
2020-07-08Fix the import path of this packageJames Mills
2020-04-12Add tube app to myselfhosted.appJames Mills
2020-04-09fix hard-coded frontend max_upload_size validation (#20)X3STeNLiTE
2020-04-06app: fix bitcask migration path (#17)Adam Shannon
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2020-04-01Improve video id handling in import to be more user friendlyJames Mills
2020-03-31Fixed UI/UX bug with pressing tab or enter on url input fieldv1.1.10James Mills
2020-03-31Allow transcoding to smaller sizes a configurable and optional featureJames Mills
2020-03-29Add support for unlimited timeouts for transcoding and thumbnail generationJames Mills
2020-03-29Fix default server config and ensure upload and video paths existJames Mills
2020-03-29Add maximum upload size saftey and guardsJames Mills
2020-03-29Fixed a UI/UX bug with pressing enter on the importInput text input in the ↵James Mills
import screen
2020-03-28More minor UI tweaksv1.1.8James Mills
2020-03-28Fix sort persistanceJames Mills
2020-03-28More minor UI tweaksv1.1.7James Mills
2020-03-28Refactored UI to be more mobile friendly with new quality navsv1.1.6James Mills
2020-03-28Refactored quality UI/UX navbar with responsive layout and burger menuJames Mills
2020-03-28Make the import link more accessiblev1.1.5James Mills
2020-03-28Add UI controls for selecting lower quality video resolutionsJames Mills
2020-03-28Add a .dockerignore fielJames Mills
2020-03-28Add backend support for serving lower quality videos (if available)James Mills
2020-03-28Set preload to metdataJames Mills
2020-03-28Refactored video importersJames Mills
2020-03-28Improve import UIJames Mills