mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 02:31:35 +00:00
Add local fetch option
This commit is contained in:
parent
f78ee4ff0f
commit
9a890574d5
7 changed files with 107 additions and 45 deletions
16
pug/local-video.pug
Normal file
16
pug/local-video.pug
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
extends includes/layout
|
||||
|
||||
include includes/video-list-item
|
||||
include includes/subscribe-button
|
||||
|
||||
block head
|
||||
title Fetching... - CloudTube
|
||||
script(type="module" src=getStaticURL("html", "/static/js/local-video.js"))
|
||||
script const id = !{JSON.stringify(id)}
|
||||
|
||||
block content
|
||||
main.video-error-page
|
||||
h2 Fetching video
|
||||
p#status Waiting...
|
||||
form(method="post")#form.local-video-form
|
||||
input(type="hidden" name="video")#video-data
|
||||
|
|
@ -20,7 +20,7 @@ mixin select(id, description, disabled, options)
|
|||
label.description(for=id)= description
|
||||
select(id=id name=id disabled=disabled).border-look
|
||||
each option in options
|
||||
option(value=option.value selected=(option.value === settings[id]))= option.text
|
||||
option(value=option.value selected=(option.value == settings[id]))= option.text
|
||||
|
||||
block head
|
||||
title Settings - CloudTube
|
||||
|
|
@ -38,9 +38,14 @@ block content
|
|||
])
|
||||
|
||||
+select("save_history", "Watch history", false, [
|
||||
{value: "", text: "Don't save"},
|
||||
{value: "yes", text: "Save"}
|
||||
{value: "0", text: "Don't save"},
|
||||
{value: "1", text: "Save"}
|
||||
])
|
||||
|
||||
+select("local", "Fetch videos", false, [
|
||||
{value: "0", text: "Remote instance"},
|
||||
{value: "1", text: "Locally"}
|
||||
])
|
||||
|
||||
.save-settings
|
||||
button.border-look Save
|
||||
button.border-look Save
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue