Merge branch 'development' of https://github.com/Stremio/stremio-web into feat/calendar

This commit is contained in:
Tim 2024-10-29 08:59:46 +01:00
commit 6337f25660
5 changed files with 11 additions and 9 deletions

View file

@ -2,7 +2,7 @@ import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginReact from 'eslint-plugin-react';
import stylistic from '@stylistic/eslint-plugin'
import stylistic from '@stylistic/eslint-plugin';
export default [
pluginJs.configs.recommended,
@ -83,6 +83,8 @@ export default [
'@stylistic/space-before-blocks': 'error',
'@stylistic/no-trailing-spaces': 'error',
'@stylistic/func-call-spacing': 'error',
'@stylistic/semi': 'error',
'@stylistic/no-extra-semi': 'error',
'@stylistic/eol-last': 'error',
'@stylistic/no-multi-spaces': 'error',
'@stylistic/no-multiple-empty-lines': ['error', {

View file

@ -19,7 +19,7 @@ const useTranslate = () => {
const catalogTitle = useCallback(({ addon, id, name, type } = {}, withType = true) => {
if (addon && id && name) {
const partialKey = `${addon.manifest.id.replaceAll('.', '_')}_${id}`;
const partialKey = `${addon.manifest.id.split('.').join('_')}_${id}`;
const translatedName = stringWithPrefix(partialKey, 'CATALOG_', name);
if (type && withType) {

View file

@ -23,7 +23,7 @@ type MetaItemPreview = {
type MetaItem = MetaItemPreview & {
videos: Video[],
}
};
type MetaItemDeepLinks = {
metaDetailsVideos: string | null,

View file

@ -56,7 +56,7 @@ type NotificationItem = {
metaId: string,
videoId: string,
videoReleased: string,
}
};
type SearchHistoryItem = {
query: string,

View file

@ -38,23 +38,23 @@ type Source = {
numFoundUniq: number,
numRequests: number,
url: string,
}
};
type Growler = {
flood: number,
pulse: number,
}
};
type PeerSearch = {
max: number,
min: number,
sources: string[],
}
};
type SwarmCap = {
maxSpeed: number,
minPeers: number,
}
};
type Options = {
connections: number,
@ -67,7 +67,7 @@ type Options = {
timeout: number,
tracker: boolean,
virtual: boolean,
}
};
type Statistics = {
name: string,