Commit Graph

57 Commits

Author SHA1 Message Date
1e4a6d5f5d + New buttons/fields for submitting data 2022-03-24 19:59:01 -07:00
d56bd6b7cd + Generally useful helper functions 2022-03-22 22:09:43 -07:00
367c798320 + /admin/remove-video...
+ /admin/upload-video
Code still requires some tests to ensure correctness
2022-03-22 22:09:04 -07:00
88a938d0c2 - Removing partial module from streaming branch
+ Moving DB_PATH into db module
2022-03-22 20:02:01 -07:00
0d9991c557 !* Splitting up the admin module
This is primarily for organizational reasons
however it should make things easier to
track as the complexity increases with
features getting filled out.
2022-03-22 20:01:19 -07:00
7c85c656e9 * script src=/static/dist/budle.js where required
* page module no longer sets 'script_src'
2022-03-22 17:49:09 -07:00
3ad4d4fa14 +! More fixing of dev dependencies 2022-03-22 17:35:03 -07:00
f65bc578a8 * Exposing page::default_map
+ Max width for login form
2022-03-13 12:49:36 -07:00
b7a3410fc4 Partial response ranges are now parsed properly 2022-03-02 21:21:04 -08:00
shockrah
db637c0889 * Cargo clippy cleanup 2022-02-05 13:49:49 -08:00
shockrah
0698f62659 + Adding thumbnail to video opengraph tags 2022-02-02 23:47:02 -08:00
shockrah
de70a177aa * Fixing Opengraph type from website to video.other 2022-02-02 23:12:03 -08:00
shockrah
b2296ff4ca * Exposing page::default_map
+ Max width for login form
2022-02-02 23:04:22 -08:00
shockrah
7b04401893 * Simplified video meta dump prior to uploading 2022-02-02 23:03:32 -08:00
shockrah
ff73995ff3 !!+ Optional backend code for admin feature
Features implemented thus far are proven to be working however
they will be left as optional features until they are more properly
tested in some kind of staging environment
2022-02-02 23:02:39 -08:00
shockrah
91d3d2b9fc +! Deps for admin feature
These are only compiled with the --features admin flag so placing these
alongside the normal feature dependencies is totally safe and won't
increase compile times as they are not compiled in default builds. They
are however downloaded so some extra overhead is spent fetching them
for builds.
2022-02-02 22:59:46 -08:00
shockrah
7a4d3d01e4 +! og:video tag 2022-02-02 22:29:44 -08:00
shockrah
03491a6396 + Adding back proper breadcrumbs to the navbar 2022-02-02 21:55:21 -08:00
shockrah
cbe0f7a29d *! Fixing buid pipeline to include JS 2022-02-02 19:44:32 -08:00
shockrah
c2eb93d3af + Proper linkage in navbar 2022-01-10 19:01:44 -08:00
shockrah
5440c508e5 - Removing workspace setup for cargo
This should make building much more straight forward in the future
as currently builds have to follow a much stranger method
- Removed fluff storage file
No longer going to support uploading API. This is with the assumption that
most who use this software are going to know how to upload files to their
server anyway
2022-01-02 14:21:32 -08:00
shockrah
1e2ff50214 * breadcrumb navbar should make navigation easier now 2021-10-26 18:47:24 -07:00
shockrah
baedfc72ea * Better opengraph meta tagging 2021-10-26 18:15:05 -07:00
shockrah
57181ee75e Merge branch 'master' of gitlab.com:shockrah/clippable 2021-10-26 09:57:21 -07:00
shockrah
64ef933267 + Adding simple navbar menu at the top
In theory breadcrumbs would look/feel better to use but for now
this will do to massively improve the UX
2021-10-26 09:57:08 -07:00
shockrah
6bb44e5d05 + Added support on /clips/<cat>/<file> to ignore the file extension
With this the frontend can produce opengraph fetch-friendly url's
2021-10-25 23:31:18 -07:00
shockrah
65ea393b7e * Better video titles
* Clickable images in categories pages
2021-10-22 23:24:59 -07:00
shockrah
46f9000358 + Meta data and page data are now split
More env vars to keep track of and doc in the landing page too -_-
2021-10-22 23:24:28 -07:00
shockrah
5707499af9 * Cleaner thumbnail finder with more controlled state 2021-10-22 23:12:04 -07:00
shockrah
31d9794d7f + Lazy static because we need to start caching
and avoid insane heap allocations
2021-10-22 23:11:24 -07:00
shockrah
c503cc5d9d * Hover divs and clickable images 2021-10-22 22:42:21 -07:00
shockrah
c74ee022fc * Category thumbnails are no longer awful
shug.jpg has entered the chat
2021-10-21 00:19:24 -07:00
shockrah
f42f125766 * Optimizing thumbnail generation so they're 640x?
This makes them literally 30Kb on average for my personal use
Also they're thumbnails so they could actually be smaller
! forcing thumbnails to be jpg as well
2021-10-20 21:45:47 -07:00
shockrah
de51b9141d + DOcker image in registry wew lad
+ Better docs
All around qol for people that don't know what this thing is
2021-10-18 02:18:00 -07:00
shockrah
7f9ff9bb65 - No more grabbing no directory entries in categories
+ Better video sizing
2021-10-17 21:26:04 -07:00
shockrah
c53d9a293e ! Finalizing video fetch endpoint
With this the backend is officially at an MVP stage and now requires polishing
Proper data streaming for larger clips is basically required
for a really good backend(especially async streaming)
and some better css for the video player
2021-10-16 18:14:04 -07:00
shockrah
d6b076970f + Video clip endpoint
Let's users actually request videos
+ Meta data handling for video clip pages
+ Template for video pages
2021-10-13 00:21:27 -07:00
shockrah
d924c2359a * Fixing broken 'missing thumbnail' default
* Fixing frontend TS to accomodate for new thumbnail uri path's
2021-10-12 22:44:08 -07:00
shockrah
254da1ae90 * vid_file_entries now uses common::get_clips_dir
- get_video_preview
This is because of the old base64 requirement
* /api/category/<cat> handler now returns Option<Json<Vec<VideoPreview>>>
While more verbose we can more easily convey intentions
to any consumers of this endpoint.
Those intentions being that None values just mean nothing was found
2021-10-12 22:17:50 -07:00
shockrah
e049512c03 * Sanity refactor to clean up common warnings
! ALso using the new common module
2021-10-12 21:09:20 -07:00
shockrah
ba7cd26f3a + /category page handler now fills out open graph meta data correctly 2021-10-12 17:37:37 -07:00
shockrah
e679ee563a * Frontend now accounts for new /static prefix 2021-10-12 11:20:09 -07:00
shockrah
b13270802f + THumbnail API code
This is all served behind /thumbail/...
2021-10-12 11:19:31 -07:00
shockrah
5836258c25 + Tiny thumbnail api
! Consider some new prefixes for the different API's
2021-10-12 11:18:58 -07:00
shockrah
d5b8fba7f6 * Opting to return a URI pathname to thumbnails now
Because of this the backend now only has to serve data that browsers req
Also helps out api clients since responses are generally smaller
And helps out servers since responses are faster
2021-10-12 11:18:32 -07:00
shockrah
69dfa488d9 * /api/categories/<cat> fully working and cleaned up 2021-10-11 23:39:06 -07:00
shockrah
b9c4cb7c6b * /api/categories/<cat> is now working properly
Output should be correct for the frontend
2021-10-11 20:39:51 -07:00
shockrah
d0413cfff2 + Misc changes that don't belong anywhere alone 2021-10-11 14:36:02 -07:00
shockrah
b763329abd + api::list_categories now re-added and working as intended
! This patch is massive but idc right now im sprinting to finish this conversion
2021-10-11 14:34:50 -07:00
shockrah
e4373560a4 - removing rocket_contrib from deps
+ Adding rocket feature json
2021-10-11 14:33:51 -07:00