Skip to content

Commit 6de4498

Browse files
authored
Merge branch 'iv-org:master' into verified-badge
2 parents f8b2967 + 081fd54 commit 6de4498

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2504
-1247
lines changed

Makefile

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ test:
6262
crystal spec
6363

6464
verify:
65-
crystal build src/invidious.cr --no-codegen --progress --stats --error-trace
65+
crystal build src/invidious.cr -Dskip_videojs_download \
66+
--no-codegen --progress --stats --error-trace
6667

6768

6869
# -----------------------
@@ -88,28 +89,28 @@ distclean: clean
8889
# -----------------------
8990

9091
help:
91-
echo "Targets available in this Makefile:"
92-
echo ""
93-
echo "get-libs Fetch Crystal libraries"
94-
echo "invidious Build Invidious"
95-
echo "run Launch Invidious"
96-
echo ""
97-
echo "format Run the Crystal formatter"
98-
echo "test Run tests"
99-
echo "verify Just make sure that the code compiles, but without"
100-
echo " generating any binaries. Useful to search for errors"
101-
echo ""
102-
echo "clean Remove build artifacts"
103-
echo "distclean Remove build artifacts and libraries"
104-
echo ""
105-
echo ""
106-
echo "Build options available for this Makefile:"
107-
echo ""
108-
echo "RELEASE Make a release build (Default: 1)"
109-
echo "STATIC Link libraries statically (Default: 0)"
110-
echo ""
111-
echo "DISABLE_QUIC Disable support for QUIC (Default: 0)"
112-
echo "NO_DBG_SYMBOLS Strip debug symbols (Default: 0)"
92+
@echo "Targets available in this Makefile:"
93+
@echo ""
94+
@echo " get-libs Fetch Crystal libraries"
95+
@echo " invidious Build Invidious"
96+
@echo " run Launch Invidious"
97+
@echo ""
98+
@echo " format Run the Crystal formatter"
99+
@echo " test Run tests"
100+
@echo " verify Just make sure that the code compiles, but without"
101+
@echo " generating any binaries. Useful to search for errors"
102+
@echo ""
103+
@echo " clean Remove build artifacts"
104+
@echo " distclean Remove build artifacts and libraries"
105+
@echo ""
106+
@echo ""
107+
@echo "Build options available for this Makefile:"
108+
@echo ""
109+
@echo " RELEASE Make a release build (Default: 1)"
110+
@echo " STATIC Link libraries statically (Default: 0)"
111+
@echo ""
112+
@echo " DISABLE_QUIC Disable support for QUIC (Default: 0)"
113+
@echo " NO_DBG_SYMBOLS Strip debug symbols (Default: 0)"
113114

114115

115116

README.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
<img alt="Mastodon: @[email protected]" src="https://img.shields.io/badge/Mastodon-%40invidious%40social.tchncs.de-darkgreen">
5252
</a>
5353
<br>
54-
<a href="#contact-the-team-directly">
55-
<img alt="Contact the team directly" src="https://img.shields.io/badge/E%2d%2dmail-darkgreen">
54+
<a href="https://invidious.io/contact/">
55+
<img alt="E-mail" src="https://img.shields.io/badge/E%2d%2dmail-darkgreen">
5656
</a>
5757
</div>
5858

@@ -152,19 +152,6 @@ Weblate also allows you to log-in with major SSO providers like Github, Gitlab,
152152
- [HoloPlay](https://github.com/stephane-r/HoloPlay): Funny Android application connecting on Invidious API's with search, playlists and favorites.
153153

154154

155-
## Contact the team directly
156-
157-
Every team member is available through GitHub or through the Matrix room (bridged to IRC), however, if you need/have to, you can contact the team directly via e-mail (remove `+SPAMGUARD` from the addresses):
158-
159-
- General Inquiries (forwarded to all team members): `contact +SPAMGUARD [at] invidious [dot] io`
160-
161-
Note: before sending a bug report please check that it hasn't already be reported on GitHub - bug reports sent to this address will be copied to GitHub
162-
163-
- Security issues (forwarded to the two project owners, <a href="https://github.com/TheFrenchGhosty">@TheFrenchGhosty</a> and <a href="https://github.com/Perflyst">@Perflyst</a>): `security +SPAMGUARD [at] invidious [dot] io`
164-
165-
Note: the creation of a PGP key for this address is planned
166-
167-
168155
## Liability
169156

170157
We take no responsibility for the use of our tool, or external instances

assets/js/handlers.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@
150150

151151
// Ignore shortcuts if any text input is focused
152152
let focused_tag = document.activeElement.tagName.toLowerCase();
153-
let focused_type = document.activeElement.type.toLowerCase();
154-
let allowed = /^(button|checkbox|file|radio|submit)$/;
153+
const allowed = /^(button|checkbox|file|radio|submit)$/;
155154

156-
if (focused_tag === "textarea" ||
157-
(focused_tag === "input" && !focused_type.match(allowed))
158-
)
159-
return;
155+
if (focused_tag === "textarea") return;
156+
if (focused_tag === "input") {
157+
let focused_type = document.activeElement.type.toLowerCase();
158+
if (!focused_type.match(allowed)) return;
159+
}
160160

161161
// Focus search bar on '/'
162162
if (event.key == "/") {

0 commit comments

Comments
 (0)