From 32e900f1d0d8dfdeb362b28e2de9ba8e68c3b8cc Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 29 Jun 2022 14:12:31 -0700 Subject: [PATCH] Fix linter warnings --- web/.eslintrc.js | 2 +- web/stories/CustomPageContent.stories.tsx | 3 ++- web/stories/Footer.stories.tsx | 1 - web/stories/ImageAsset.tsx | 6 ------ web/stories/Modal.stories.tsx | 2 +- 5 files changed, 4 insertions(+), 10 deletions(-) diff --git a/web/.eslintrc.js b/web/.eslintrc.js index 65db95de3..e48bad176 100644 --- a/web/.eslintrc.js +++ b/web/.eslintrc.js @@ -37,7 +37,7 @@ module.exports = { '@typescript-eslint/no-unused-vars': 'error', 'no-console': 'off', 'no-use-before-define': [0], - '@typescript-eslint/no-use-before-define': [1], + '@typescript-eslint/no-use-before-define': [0], 'no-shadow': 'off', '@typescript-eslint/no-shadow': ['error'], 'no-restricted-exports': 'off', diff --git a/web/stories/CustomPageContent.stories.tsx b/web/stories/CustomPageContent.stories.tsx index 36c1e593d..2d6ddc6aa 100644 --- a/web/stories/CustomPageContent.stories.tsx +++ b/web/stories/CustomPageContent.stories.tsx @@ -1,3 +1,4 @@ +/* eslint-disable no-useless-escape */ import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import CustomPageContent from '../components/CustomPageContent'; @@ -23,5 +24,5 @@ Example2.args = { export const Example3 = Template.bind({}); Example3.args = { - content: `
\n

The upcoming streams

\n

Thursday, Apr. 28:

\n\n

Friday, Apr. 29:

\n\n

Saturday, Apr. 30:

\n\n

Sunday, May 1:

\n\n

Monday, May 2:

\n\n

Tuesday, May 3:

\n\n

Wednesday, May 4:

\n\n


\nI plan a duration of about 4 to 5 hours per stream.

\n

The VODs of my streams will be available on YouTube channel and on my hatVODs PeerTube channel (the last 14 days). Some additional videos can also be found on my haTube PeerTube channel.

\n

If this channel is offline you might want to checkout other great Owncast streams at the Owncast Directory.

\n
\n

Pro-tips for new viewers

\n

Change chat name

\n

When you visit an Owncast channel for the first time then you've been given a random chat name. You see this name on the top right above the chat box. Click on that name in order to pick your own preferred chat name.

\n

Chat formatting

\n

The chat supports some basic Markdown, like *Italic*, **Bold** and \`Code blocks\` (from the Owncast docs)

\n

Player shortcuts

\n

The web video player has some keyboard shortcuts for you to use:

\n\n

(from the Owncast docs)

\n

Watch Owncast via IPTV

\n

If you have a tv platform/set top box (apple, amazon, roku) that you can install IPTV apps on then you can add the url https://directory.owncast.online/api/iptv to watch this and other Owncast channels on the big screen.

\n

Watch the stream in a media player

\n

The stream is using HLS standard, so you can use your favorite media player to watch the stream using the url https://live.hatnix.net/hls/stream.m3u8

\n

Joining chat-only

\n

In case you want to join only the chat (because you're watching via IPTV?) you can do that using this url: https://live.hatnix.net/embed/chat/readwrite

\n
\n

About me and this channel

\n

My name is hatniX (or Frank), 48 years old. I'm a PC gamer for over 30 years now, playing games on Linux since 1998. And this is what you'll see here on this channel, me playing games on Linux. Preferable with a focus on storytelling and atmosphere, rather than "pro-gaming".

\n

Fediverse

\n

You can follow this server in the Fediverse: @hatnix@live.hatnix.net, in order to get announcements when the stream starts.

\n

Owncast

\n

This server is powered by Owncast. Check out the Owncast-Browser-Extension for Firefox or for Chrome browsers to see whether I'm live. Another great way to see when I (or other Owncast streamers) go online, is to follow the Owncast bots on Mastodon or Twitter.

\n

Chat bot

\n

I'm using an experimantal chat bot here, which I have written specifically for Owncast. Use !help in chat to get a list of the available commands. The source code of the bot is available at github.com/hatniX/hatbot (Public Domain).

\n

In case you wonder how I display the chat onscreen, incl. the fade effect, check out my CSS file.

\n

Music

\n

The music here, if not part of the game I'm playing, is provided by Jamando. I've got a license for livestream music for gaming.

\n
\n

How you can support me

\n

If you want to support me, visit my streams, either lurk or be active in chat. You can also help me getting more attention, by telling others about my channel, or just boosting my stream announcements on Mastodon or retweeting them on Twitter.

\n

Liberapay

\n

Liberapay is a non-profit subscription platform, which means that they don't take a share. If you like, you can support me there, either with a one-time or a regular donation. Thank you so much!

\n

Ko-fi

\n

In case you want to buy me a coffee then you can do so at ko-fi. I appreciate that a lot!

\n

Support is never required, but always much appreciated. Thank you very much! <3

\n
\n

My tech specs

\n

PC Hardware:

\n\n

PC Software:

\n\n

Stream Server: Hetzner Cloud „CPX11“

\n`, + content: `
\n

The upcoming streams

\n

Thursday, Apr. 28:

\n\n

Friday, Apr. 29:

\n\n

Saturday, Apr. 30:

\n\n

Sunday, May 1:

\n\n

Monday, May 2:

\n\n

Tuesday, May 3:

\n\n

Wednesday, May 4:

\n\n


\nI plan a duration of about 4 to 5 hours per stream.

\n

The VODs of my streams will be available on YouTube channel and on my hatVODs PeerTube channel (the last 14 days). Some additional videos can also be found on my haTube PeerTube channel.

\n

If this channel is offline you might want to checkout other great Owncast streams at the Owncast Directory.

\n
\n

Pro-tips for new viewers

\n

Change chat name

\n

When you visit an Owncast channel for the first time then you've been given a random chat name. You see this name on the top right above the chat box. Click on that name in order to pick your own preferred chat name.

\n

Chat formatting

\n

The chat supports some basic Markdown, like *Italic*, **Bold** and \`Code blocks\` (from the Owncast docs)

\n

Player shortcuts

\n

The web video player has some keyboard shortcuts for you to use:

\n\n

(from the Owncast docs)

\n

Watch Owncast via IPTV

\n

If you have a tv platform/set top box (apple, amazon, roku) that you can install IPTV apps on then you can add the url https://directory.owncast.online/api/iptv to watch this and other Owncast channels on the big screen.

\n

Watch the stream in a media player

\n

The stream is using HLS standard, so you can use your favorite media player to watch the stream using the url https://live.hatnix.net/hls/stream.m3u8

\n

Joining chat-only

\n

In case you want to join only the chat (because you're watching via IPTV?) you can do that using this url: https://live.hatnix.net/embed/chat/readwrite

\n
\n

About me and this channel

\n

My name is hatniX (or Frank), 48 years old. I'm a PC gamer for over 30 years now, playing games on Linux since 1998. And this is what you'll see here on this channel, me playing games on Linux. Preferable with a focus on storytelling and atmosphere, rather than "pro-gaming".

\n

Fediverse

\n

You can follow this server in the Fediverse: @hatnix@live.hatnix.net, in order to get announcements when the stream starts.

\n

Owncast

\n

This server is powered by Owncast. Check out the Owncast-Browser-Extension for Firefox or for Chrome browsers to see whether I'm live. Another great way to see when I (or other Owncast streamers) go online, is to follow the Owncast bots on Mastodon or Twitter.

\n

Chat bot

\n

I'm using an experimantal chat bot here, which I have written specifically for Owncast. Use !help in chat to get a list of the available commands. The source code of the bot is available at github.com/hatniX/hatbot (Public Domain).

\n

In case you wonder how I display the chat onscreen, incl. the fade effect, check out my CSS file.

\n

Music

\n

The music here, if not part of the game I'm playing, is provided by Jamando. I've got a license for livestream music for gaming.

\n
\n

How you can support me

\n

If you want to support me, visit my streams, either lurk or be active in chat. You can also help me getting more attention, by telling others about my channel, or just boosting my stream announcements on Mastodon or retweeting them on Twitter.

\n

Liberapay

\n

Liberapay is a non-profit subscription platform, which means that they don't take a share. If you like, you can support me there, either with a one-time or a regular donation. Thank you so much!

\n

Ko-fi

\n

In case you want to buy me a coffee then you can do so at ko-fi. I appreciate that a lot!

\n

Support is never required, but always much appreciated. Thank you very much! <3

\n
\n

My tech specs

\n

PC Hardware:

\n\n

PC Software:

\n\n

Stream Server: Hetzner Cloud „CPX11“

\n`, }; diff --git a/web/stories/Footer.stories.tsx b/web/stories/Footer.stories.tsx index a2bca4c41..46d88e7b0 100644 --- a/web/stories/Footer.stories.tsx +++ b/web/stories/Footer.stories.tsx @@ -8,7 +8,6 @@ export default { parameters: {}, } as ComponentMeta; -// eslint-disable-next-line @typescript-eslint/no-unused-Footer const Template: ComponentStory = args =>