From 793229856a1749b873df42ac5e30199d8863587f Mon Sep 17 00:00:00 2001 From: Dominique Liberda Date: Wed, 18 Jan 2023 01:08:05 +0100 Subject: [PATCH] =?UTF-8?q?*=20templates=20extension=20change=20for=20Reas?= =?UTF-8?q?ons=E2=84=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/themes/default/{channel.t => channel.html} | 0 templates/themes/default/elements/{top.t => top.html} | 0 templates/themes/default/{fav.t => fav.html} | 0 templates/themes/default/{feed.t => feed.html} | 0 templates/themes/default/{index.t => index.html} | 0 templates/themes/default/{login.t => login.html} | 0 templates/themes/default/{playlist.t => playlist.html} | 0 templates/themes/default/{register.t => register.html} | 0 templates/themes/default/{search.t => search.html} | 0 templates/themes/default/{subscribe.t => subscribe.html} | 0 templates/themes/default/{watch.t => watch.html} | 0 .../themes/default/{watch_error.t => watch_error.html} | 0 webroot/channel.shs | 2 +- webroot/fav.shs | 2 +- webroot/feed.shs | 2 +- webroot/index.shs | 2 +- webroot/login.shs | 2 +- webroot/logout.shs | 2 +- webroot/playlist.shs | 2 +- webroot/register.shs | 2 +- webroot/search.shs | 2 +- webroot/subscribe.shs | 2 +- webroot/watch.shs | 8 ++++---- 23 files changed, 14 insertions(+), 14 deletions(-) rename templates/themes/default/{channel.t => channel.html} (100%) rename templates/themes/default/elements/{top.t => top.html} (100%) rename templates/themes/default/{fav.t => fav.html} (100%) rename templates/themes/default/{feed.t => feed.html} (100%) rename templates/themes/default/{index.t => index.html} (100%) rename templates/themes/default/{login.t => login.html} (100%) rename templates/themes/default/{playlist.t => playlist.html} (100%) rename templates/themes/default/{register.t => register.html} (100%) rename templates/themes/default/{search.t => search.html} (100%) rename templates/themes/default/{subscribe.t => subscribe.html} (100%) rename templates/themes/default/{watch.t => watch.html} (100%) rename templates/themes/default/{watch_error.t => watch_error.html} (100%) diff --git a/templates/themes/default/channel.t b/templates/themes/default/channel.html similarity index 100% rename from templates/themes/default/channel.t rename to templates/themes/default/channel.html diff --git a/templates/themes/default/elements/top.t b/templates/themes/default/elements/top.html similarity index 100% rename from templates/themes/default/elements/top.t rename to templates/themes/default/elements/top.html diff --git a/templates/themes/default/fav.t b/templates/themes/default/fav.html similarity index 100% rename from templates/themes/default/fav.t rename to templates/themes/default/fav.html diff --git a/templates/themes/default/feed.t b/templates/themes/default/feed.html similarity index 100% rename from templates/themes/default/feed.t rename to templates/themes/default/feed.html diff --git a/templates/themes/default/index.t b/templates/themes/default/index.html similarity index 100% rename from templates/themes/default/index.t rename to templates/themes/default/index.html diff --git a/templates/themes/default/login.t b/templates/themes/default/login.html similarity index 100% rename from templates/themes/default/login.t rename to templates/themes/default/login.html diff --git a/templates/themes/default/playlist.t b/templates/themes/default/playlist.html similarity index 100% rename from templates/themes/default/playlist.t rename to templates/themes/default/playlist.html diff --git a/templates/themes/default/register.t b/templates/themes/default/register.html similarity index 100% rename from templates/themes/default/register.t rename to templates/themes/default/register.html diff --git a/templates/themes/default/search.t b/templates/themes/default/search.html similarity index 100% rename from templates/themes/default/search.t rename to templates/themes/default/search.html diff --git a/templates/themes/default/subscribe.t b/templates/themes/default/subscribe.html similarity index 100% rename from templates/themes/default/subscribe.t rename to templates/themes/default/subscribe.html diff --git a/templates/themes/default/watch.t b/templates/themes/default/watch.html similarity index 100% rename from templates/themes/default/watch.t rename to templates/themes/default/watch.html diff --git a/templates/themes/default/watch_error.t b/templates/themes/default/watch_error.html similarity index 100% rename from templates/themes/default/watch_error.t rename to templates/themes/default/watch_error.html diff --git a/webroot/channel.shs b/webroot/channel.shs index eb2bba2..15c68eb 100644 --- a/webroot/channel.shs +++ b/webroot/channel.shs @@ -47,4 +47,4 @@ if [[ "${res[id]}" == '' ]]; then fi source "${cfg[namespace]}/templates/header.shs" -render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/channel.t" +render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/channel.html" diff --git a/webroot/fav.shs b/webroot/fav.shs index 0437011..5fcc0ea 100644 --- a/webroot/fav.shs +++ b/webroot/fav.shs @@ -28,4 +28,4 @@ if [[ ! ${strings[fav]} ]]; then fi source "${cfg[namespace]}/templates/header.shs" -render_unsafe strings "${cfg[namespace]}/templates/themes/${cfg[template]}/fav.t" +render_unsafe strings "${cfg[namespace]}/templates/themes/${cfg[template]}/fav.html" diff --git a/webroot/feed.shs b/webroot/feed.shs index 3f5449a..5d8dcce 100644 --- a/webroot/feed.shs +++ b/webroot/feed.shs @@ -29,4 +29,4 @@ else fi source "${cfg[namespace]}/templates/header.shs" -render_unsafe strings "${cfg[namespace]}/templates/themes/${cfg[template]}/feed.t" +render_unsafe strings "${cfg[namespace]}/templates/themes/${cfg[template]}/feed.html" diff --git a/webroot/index.shs b/webroot/index.shs index 6507e74..211fec2 100755 --- a/webroot/index.shs +++ b/webroot/index.shs @@ -20,4 +20,4 @@ for i in $(tac storage/faves); do strings[favourites]+="

${array[@]:2:999}

Favourited by ${array[0]}
"; done -render_unsafe strings "${cfg[namespace]}/templates/themes/${cfg[template]}/index.t" +render_unsafe strings "${cfg[namespace]}/templates/themes/${cfg[template]}/index.html" diff --git a/webroot/login.shs b/webroot/login.shs index ce53c56..b926b70 100755 --- a/webroot/login.shs +++ b/webroot/login.shs @@ -22,4 +22,4 @@ else strings[reason]="" fi -render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/login.t" +render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/login.html" diff --git a/webroot/logout.shs b/webroot/logout.shs index 3a8dd46..ec730f7 100755 --- a/webroot/logout.shs +++ b/webroot/logout.shs @@ -10,4 +10,4 @@ if [[ ${cfg[template]} == 'default' ]]; then echo "Logged out successully. Redirecting.." fi -render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/logout.t" +render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/logout.html" diff --git a/webroot/playlist.shs b/webroot/playlist.shs index 273879e..9362b2e 100644 --- a/webroot/playlist.shs +++ b/webroot/playlist.shs @@ -27,4 +27,4 @@ if [[ ! ${strings[playlist]} ]]; then fi source "${cfg[namespace]}/templates/header.shs" -render_unsafe strings "${cfg[namespace]}/templates/themes/${cfg[template]}/playlist.t" +render_unsafe strings "${cfg[namespace]}/templates/themes/${cfg[template]}/playlist.html" diff --git a/webroot/register.shs b/webroot/register.shs index 768f4d9..4668b8c 100755 --- a/webroot/register.shs +++ b/webroot/register.shs @@ -18,4 +18,4 @@ else strings[reason]="" fi -render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/register.t" +render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/register.html" diff --git a/webroot/search.shs b/webroot/search.shs index 3007074..d8f09a3 100755 --- a/webroot/search.shs +++ b/webroot/search.shs @@ -49,4 +49,4 @@ fi #fi source "${cfg[namespace]}/templates/header.shs" -render meow "${cfg[namespace]}/templates/themes/${cfg[template]}/search.t" +render meow "${cfg[namespace]}/templates/themes/${cfg[template]}/search.html" diff --git a/webroot/subscribe.shs b/webroot/subscribe.shs index bb79347..0edb154 100644 --- a/webroot/subscribe.shs +++ b/webroot/subscribe.shs @@ -32,4 +32,4 @@ if [[ ! ${strings[subscribe]} ]]; then fi source "${cfg[namespace]}/templates/header.shs" -render_unsafe strings "${cfg[namespace]}/templates/themes/${cfg[template]}/subscribe.t" +render_unsafe strings "${cfg[namespace]}/templates/themes/${cfg[template]}/subscribe.html" diff --git a/webroot/watch.shs b/webroot/watch.shs index 5290178..09f8088 100755 --- a/webroot/watch.shs +++ b/webroot/watch.shs @@ -64,7 +64,7 @@ if [[ "${get_data[v]}" ]]; then cd .. source templates/head.sh source "${cfg[namespace]}/templates/header.shs" - render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/watch_error.t" + render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/watch_error.html" return fi fi @@ -117,13 +117,13 @@ if [[ "${get_data[v]}" ]]; then declare -A player player[url]=$(xxd -p <<< "$url" | sed -E 's/.{2}/%&/g' | tr -d '\n') - player_render="$(render player "${cfg[namespace]}/templates/components/player_flash.t")" + player_render="$(render player "${cfg[namespace]}/templates/components/player_flash.html")" else declare -A player player[@formats]="$formats" player[@subs]="$subs" - player_render="$(render player "${cfg[namespace]}/templates/components/player.t")" + player_render="$(render player "${cfg[namespace]}/templates/components/player.html")" fi strings[upload_date]=$(date -d "$(echo $video | jq -r '.upload_date' | sed -E 's/..../&-/;s/....-../&-/')" "+%d %B %Y") @@ -228,7 +228,7 @@ if [[ "${get_data[v]}" ]]; then source "${cfg[namespace]}/templates/header.shs" echo "$player_render" - render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/watch.t" + render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/watch.html" else source templates/head.sh echo "pls add ?v param i'm still WiP"