Fix lint and add footer desc to locale

This commit is contained in:
syeopite 2021-06-24 17:29:21 -07:00
parent 9b6d09c7b6
commit 462ef800ff
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82
30 changed files with 460 additions and 44 deletions

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -433,6 +433,7 @@
"This channel doesn't feature any other channels.": "This channel doesn't feature any other channels.",
"Navigation": "Navigation",
"Home": "Home",
"invidious_footer_description": "A free and open source frontend for Youtube that that respects your privacy! Now you can watch videos (ad-free), subscribe to channels, create playlist and much more all without the prying eyes of Google!",
"Project Homepage": "Project Homepage",
"Source Code": "Source Code",
"Issue tracker": "Issue tracker",

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -430,5 +430,21 @@
"Stats": "",
"Joined": "",
"Links": "",
"This channel doesn't feature any other channels.": ""
"This channel doesn't feature any other channels.": "",
"Navigation": "",
"Home": "",
"invidious_footer_description": "",
"Project Homepage": "",
"Source Code": "",
"Issue tracker": "",
"Public instances": "",
"Donate": "",
"Matrix": "",
"Support": "",
"Contact instance maintainer": "",
"Report a bug": "",
"FAQs": "",
"Legal": "",
"Licences": "",
"Privacy": ""
}

View File

@ -362,7 +362,6 @@ def fetch_channel_home(ucid, channel)
end
return home_sections
end
def fetch_channel_playlists(ucid, author, continuation, sort_by)
@ -411,11 +410,11 @@ def fetch_channel_featured_channels(ucid, tab_data, view = nil, shelf_id = nil,
continuation_token = fetch_continuation_token(initial_data)
return [Category.new({
title: query_title.not_nil!, # If continuation contents is requested then the query_title has to be passed along.
contents: items,
description_html: "",
url: nil,
badges: nil,
title: query_title.not_nil!, # If continuation contents is requested then the query_title has to be passed along.
contents: items,
description_html: "",
url: nil,
badges: nil,
})], continuation_token
else
url = nil
@ -455,11 +454,11 @@ def fetch_channel_featured_channels(ucid, tab_data, view = nil, shelf_id = nil,
end
category_array << Category.new({
title: category.title.empty? ? fallback_title : category.title,
contents: category.contents,
description_html: category.description_html,
url: category.url,
badges: nil,
title: category.title.empty? ? fallback_title : category.title,
contents: category.contents,
description_html: category.description_html,
url: category.url,
badges: nil,
})
end
@ -467,11 +466,11 @@ def fetch_channel_featured_channels(ucid, tab_data, view = nil, shelf_id = nil,
# the initial preview anymore. The frontend still needs a Category however, so we'll create one.
if category_array.empty?
category_array << Category.new({
title: fallback_title,
contents: items,
description_html: "",
url: url,
badges: nil,
title: fallback_title,
contents: items,
description_html: "",
url: url,
badges: nil,
})
end

View File

@ -171,7 +171,7 @@ class Invidious::Routes::Channels < Invidious::Routes::BaseRoute
ucid = html.xpath_node(%q(//link[@rel="canonical"])).try &.["href"].split("/")[-1]
if !ucid
env.response.status_code = 404
env.response.status_code = 404
return
end

View File

@ -142,7 +142,7 @@
<div class="pure-u-1 footer-content">
<div class="footer-section pure-u-1-4" id="about-invidious-description">
<b>Invidious</b>
<p>A free and open source frontend for Youtube that that respects your privacy! Now you can watch videos (ad-free), subscribe to channels, create playlist and much more all without the prying eyes of Google!</p>
<p><%=translate(locale, "invidious_footer_description")%></p>
</div>
<div class="footer-section">
<b class="footer-section-header"><%= translate(locale, "Navigation")%></b>