From c6136fc35c6d1702c8773a3fc7ff6c292ed1371c Mon Sep 17 00:00:00 2001 From: Michael David Kuckuk <8076094+LBBO@users.noreply.github.com> Date: Wed, 1 Feb 2023 20:04:24 +0100 Subject: [PATCH] Add noscript for browsers without JS (#2592) * Make OwncastLogo more versatile * Add noscript tag * Commit updated API documentation * Show all content on vertical overflow --------- Co-authored-by: Owncast --- docs/api/index.html | 2 +- .../common/OwncastLogo/OwncastLogo.tsx | 7 +-- web/components/layouts/Main/Main.tsx | 3 ++ .../ui/Noscript/Noscript.module.scss | 50 +++++++++++++++++++ web/components/ui/Noscript/Noscript.tsx | 43 ++++++++++++++++ 5 files changed, 101 insertions(+), 4 deletions(-) create mode 100644 web/components/ui/Noscript/Noscript.module.scss create mode 100644 web/components/ui/Noscript/Noscript.tsx diff --git a/docs/api/index.html b/docs/api/index.html index 35370e8fa..d0a6cdb0a 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -2442,7 +2442,7 @@ data-styled.g138[id="sc-iIgjPs"]{content:"jIUTls,"}/*!sc*/

Responses

Response samples

Content type
application/json
{
  • "lastConnectTime": "2020-10-03T21:36:22-05:00",
  • "lastDisconnectTime": null,
  • "online": true,
  • "overallMaxViewerCount": 420,
  • "sessionMaxViewerCount": 12,
  • "viewerCount": 7
}

Custom Javascript to execute.

Returns custom Javascript that was set in the Owncast admin to be run in the Owncast frontend.

Responses

Response samples

Content type
application/javascript
console.log("Hello World");

Yellow Pages Information

Information to be used in the Yellow Pages service, a global directory of Owncast servers.

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "logo": "string",
  • "nsfw": true,
  • "tags": [
    ],
  • "online": true,
  • "viewerCount": 0,
  • "overallMaxViewerCount": 0,
  • "sessionMaxViewerCount": 0,
  • "lastConnectTime": "2019-08-24T14:15:22Z"
}

Get the public followers of this instance

Responses

Response samples

Content type
application/json
[]

Return the information needed to redirect a user to a fediverse server to perform a remote follow action.

Request Body schema: application/json
account
string

The fediverse username@server.tld account that wants to perform the remote follow action.

+

Response samples

Content type
application/json
[]

Return the information needed to redirect a user to a fediverse server to perform a remote follow action.

Request Body schema: application/json
account
string

The fediverse username@server.tld account that wants to perform the remote follow action.

Responses

Request samples

Content type
application/json
{
  • "account": "johnsmith@fediverse.biz"
}

Response samples