Merge remote-tracking branch 'origin' into mobile

This commit is contained in:
Tim 2022-05-17 08:21:02 +02:00
commit 24d8b072c0
276 changed files with 702 additions and 475 deletions

22
Dockerfile Normal file
View file

@ -0,0 +1,22 @@
# Stremio Node 14.x
FROM stremio/node-base:fermium
# Meta
LABEL Description="Stremio Web" Vendor="Smart Code OOD" Version="1.0.0"
# Create app directory
RUN mkdir -p /var/www/stremio-web
# Install app dependencies
WORKDIR /var/www/stremio-web
COPY . /var/www/stremio-web
RUN npm install
RUN npm install -g http-server
# Bundle app source
WORKDIR /var/www/stremio-web
RUN npm run build
EXPOSE 8080
CMD ["http-server", "/var/www/stremio-web/build/", "-p", "8080", "-d", "false"]

View file

@ -1,4 +1,4 @@
# Stremio - The media center you need # Stremio - Freedom to Stream
![Build](https://github.com/stremio/stremio-web/workflows/Build/badge.svg?branch=development) ![Build](https://github.com/stremio/stremio-web/workflows/Build/badge.svg?branch=development)
[![Netlify](https://api.netlify.com/api/v1/badges/ac26d7ae-d08b-4cc4-a14d-a83ba7c3e8ca/deploy-status)](https://stremio-development.netlify.app) [![Netlify](https://api.netlify.com/api/v1/badges/ac26d7ae-d08b-4cc4-a14d-a83ba7c3e8ca/deploy-status)](https://stremio-development.netlify.app)
@ -46,4 +46,4 @@ npm run build
## License ## License
Stremio is copyright 2017-2020 Smart code and available under GPLv2 license. See the [LICENSE](/LICENSE.md) file in the project for more information. Stremio is copyright 2017-2022 Smart code and available under GPLv2 license. See the [LICENSE](/LICENSE.md) file in the project for more information.

70
package-lock.json generated
View file

@ -1833,9 +1833,9 @@
"integrity": "sha512-yT3No1gIWKLV2BhQIeSgG94EzXxmEqXJLulO+pFpziqWNUbmmEKeE+nRvW5wtoIK4SLy+v0bLd0b6HBH3KFfWw==" "integrity": "sha512-yT3No1gIWKLV2BhQIeSgG94EzXxmEqXJLulO+pFpziqWNUbmmEKeE+nRvW5wtoIK4SLy+v0bLd0b6HBH3KFfWw=="
}, },
"@stremio/stremio-core-web": { "@stremio/stremio-core-web": {
"version": "0.30.0", "version": "0.35.0",
"resolved": "https://registry.npmjs.org/@stremio/stremio-core-web/-/stremio-core-web-0.30.0.tgz", "resolved": "https://registry.npmjs.org/@stremio/stremio-core-web/-/stremio-core-web-0.35.0.tgz",
"integrity": "sha512-ClPMHFTbhvNP0zhxM4um5lk/6mXv0DsIFW+n0yiIAigSsLzdCWoME8zWV6eCIde7rnBQu9xuOcNMTOzY9v5Eyg==", "integrity": "sha512-MN5Mb+5yYV5MQXjzeShqJJeRXc4QLoLP/6TbE6ay6kq8PQ8bT7BreFiFVJunICVo/OmXjYNS3CiJhM5q1J4xZw==",
"requires": { "requires": {
"@babel/runtime": "7.15.4" "@babel/runtime": "7.15.4"
}, },
@ -1856,10 +1856,11 @@
"integrity": "sha512-knlcBibqJW2mbEgid6YEeQN9FPkIGAEtozYWqzKWeHd2DPY2nl8kYX2pMQpa2Db/RVSqbVstu/gdey5TtSgGYw==" "integrity": "sha512-knlcBibqJW2mbEgid6YEeQN9FPkIGAEtozYWqzKWeHd2DPY2nl8kYX2pMQpa2Db/RVSqbVstu/gdey5TtSgGYw=="
}, },
"@stremio/stremio-video": { "@stremio/stremio-video": {
"version": "0.0.14", "version": "0.0.19-rc.1",
"resolved": "https://registry.npmjs.org/@stremio/stremio-video/-/stremio-video-0.0.14.tgz", "resolved": "https://registry.npmjs.org/@stremio/stremio-video/-/stremio-video-0.0.19-rc.1.tgz",
"integrity": "sha512-3Za1GtgRCOnmrTp7mLjGemK35AeH3gAOsKthFdhhYBoSWqrTsUG7HAKBhAGqxI+o/y0UV99CxVab0LzftlMStQ==", "integrity": "sha512-UiML0reTHcBhb2cddTrw7BqwYnJ7FcjOANltszmcG9Rx6PiJbZdfwZ2CR3VQX91nXbQlpeq81SjPt4WwcdXmuQ==",
"requires": { "requires": {
"color": "4.2.3",
"deep-freeze": "0.0.1", "deep-freeze": "0.0.1",
"eventemitter3": "4.0.7", "eventemitter3": "4.0.7",
"hat": "0.0.3", "hat": "0.0.3",
@ -1868,7 +1869,7 @@
"magnet-uri": "6.2.0", "magnet-uri": "6.2.0",
"url": "0.11.0", "url": "0.11.0",
"video-name-parser": "1.4.6", "video-name-parser": "1.4.6",
"vtt.js": "git://github.com/jaruba/vtt.js.git#e4f5f5603730866bacb174a93f51b734c9f29e6a" "vtt.js": "github:jaruba/vtt.js#e4f5f5603730866bacb174a93f51b734c9f29e6a"
} }
}, },
"@tootallnate/once": { "@tootallnate/once": {
@ -3198,6 +3199,30 @@
"integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==",
"dev": true "dev": true
}, },
"color": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",
"integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",
"requires": {
"color-convert": "^2.0.1",
"color-string": "^1.9.0"
},
"dependencies": {
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
}
}
},
"color-convert": { "color-convert": {
"version": "1.9.3", "version": "1.9.3",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
@ -3210,8 +3235,16 @@
"color-name": { "color-name": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
"dev": true },
"color-string": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz",
"integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",
"requires": {
"color-name": "^1.0.0",
"simple-swizzle": "^0.2.2"
}
}, },
"colord": { "colord": {
"version": "2.9.1", "version": "2.9.1",
@ -8924,6 +8957,21 @@
"integrity": "sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==", "integrity": "sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==",
"dev": true "dev": true
}, },
"simple-swizzle": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
"integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=",
"requires": {
"is-arrayish": "^0.3.1"
},
"dependencies": {
"is-arrayish": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",
"integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ=="
}
}
},
"sisteransi": { "sisteransi": {
"version": "1.0.5", "version": "1.0.5",
"resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
@ -9670,8 +9718,8 @@
"integrity": "sha512-ZdeYjh8X4ms1EzjY/UoiTZ6JWbi8SYyOPGY0jESSLq2BAmdc5sZHi+F8J19Qz0y7H1WSpaltojsCkO1p2dH4YA==" "integrity": "sha512-ZdeYjh8X4ms1EzjY/UoiTZ6JWbi8SYyOPGY0jESSLq2BAmdc5sZHi+F8J19Qz0y7H1WSpaltojsCkO1p2dH4YA=="
}, },
"vtt.js": { "vtt.js": {
"version": "git://github.com/jaruba/vtt.js.git#e4f5f5603730866bacb174a93f51b734c9f29e6a", "version": "github:jaruba/vtt.js#e4f5f5603730866bacb174a93f51b734c9f29e6a",
"from": "git://github.com/jaruba/vtt.js.git#e4f5f5603730866bacb174a93f51b734c9f29e6a" "from": "github:jaruba/vtt.js#e4f5f5603730866bacb174a93f51b734c9f29e6a"
}, },
"w3c-hr-time": { "w3c-hr-time": {
"version": "1.0.2", "version": "1.0.2",

View file

@ -15,9 +15,9 @@
"@babel/runtime": "7.16.0", "@babel/runtime": "7.16.0",
"@sentry/browser": "6.13.3", "@sentry/browser": "6.13.3",
"@stremio/stremio-colors": "4.0.1", "@stremio/stremio-colors": "4.0.1",
"@stremio/stremio-core-web": "0.30.0", "@stremio/stremio-core-web": "0.35.0",
"@stremio/stremio-icons": "3.0.5", "@stremio/stremio-icons": "3.0.5",
"@stremio/stremio-video": "0.0.14", "@stremio/stremio-video": "0.0.19-rc.1",
"a-color-picker": "1.2.1", "a-color-picker": "1.2.1",
"buffer": "6.0.3", "buffer": "6.0.3",
"classnames": "2.3.1", "classnames": "2.3.1",

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
require('spatial-navigation-polyfill'); require('spatial-navigation-polyfill');
const React = require('react'); const React = require('react');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const { useServices } = require('stremio/services'); const { useServices } = require('stremio/services');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const ErrorDialog = require('./ErrorDialog'); const ErrorDialog = require('./ErrorDialog');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const App = require('./App'); const App = require('./App');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const routes = require('stremio/routes'); const routes = require('stremio/routes');
const { routesRegexp } = require('stremio/common'); const { routesRegexp } = require('stremio/common');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (inline, once, css) '~stremio/common/roboto.css'; @import (inline, once, css) '~stremio/common/roboto.css';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const AddonDetails = require('./AddonDetails'); const AddonDetails = require('./AddonDetails');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const AddonDetailsModal = require('./AddonDetailsModal'); const AddonDetailsModal = require('./AddonDetailsModal');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const useModelState = require('stremio/common/useModelState'); const useModelState = require('stremio/common/useModelState');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const Button = require('./Button'); const Button = require('./Button');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const CHROMECAST_RECEIVER_APP_ID = '1634F54B'; const CHROMECAST_RECEIVER_APP_ID = '1634F54B';
const SUBTITLES_SIZES = [75, 100, 125, 150, 175, 200, 250]; const SUBTITLES_SIZES = [75, 100, 125, 150, 175, 200, 250];
@ -11,6 +11,7 @@ const SKIP_EXTRA_NAME = 'skip';
const META_LINK_CATEGORY = 'meta'; const META_LINK_CATEGORY = 'meta';
const IMDB_LINK_CATEGORY = 'imdb'; const IMDB_LINK_CATEGORY = 'imdb';
const SHARE_LINK_CATEGORY = 'share'; const SHARE_LINK_CATEGORY = 'share';
const WRITERS_LINK_CATEGORY = 'Writers';
const TYPE_PRIORITIES = { const TYPE_PRIORITIES = {
movie: 10, movie: 10,
series: 9, series: 9,
@ -37,5 +38,6 @@ module.exports = {
META_LINK_CATEGORY, META_LINK_CATEGORY,
IMDB_LINK_CATEGORY, IMDB_LINK_CATEGORY,
SHARE_LINK_CATEGORY, SHARE_LINK_CATEGORY,
WRITERS_LINK_CATEGORY,
TYPE_PRIORITIES TYPE_PRIORITIES
}; };

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const Checkbox = require('./Checkbox'); const Checkbox = require('./Checkbox');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const ColorPicker = require('./ColorPicker'); const ColorPicker = require('./ColorPicker');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
.color-picker-container { .color-picker-container {
overflow: visible; overflow: visible;

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const ColorInput = require('./ColorInput'); const ColorInput = require('./ColorInput');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const Image = require('./Image'); const Image = require('./Image');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const { useServices } = require('stremio/services'); const { useServices } = require('stremio/services');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const LibItem = require('./LibItem'); const LibItem = require('./LibItem');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const MainNavBars = require('./MainNavBars'); const MainNavBars = require('./MainNavBars');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const MetaItem = require('./MetaItem'); const MetaItem = require('./MetaItem');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const ActionButton = require('./ActionButton'); const ActionButton = require('./ActionButton');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const MetaLinks = require('./MetaLinks'); const MetaLinks = require('./MetaLinks');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');
@ -93,8 +93,8 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
return trailerStreams[0].deepLinks.player; return trailerStreams[0].deepLinks.player;
}, [trailerStreams]); }, [trailerStreams]);
const renderLogoFallback = React.useCallback(() => ( const renderLogoFallback = React.useCallback(() => (
<Icon className={styles['logo-placeholder-icon']} icon={'ic_broken_link'} /> <div className={styles['logo-placeholder']}>{!compact ? name : null}</div>
), []); ), [compact, name]);
return ( return (
<div className={classnames(className, styles['meta-preview-container'], { [styles['compact']]: compact })}> <div className={classnames(className, styles['meta-preview-container'], { [styles['compact']]: compact })}>
{ {
@ -112,6 +112,7 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
className={styles['logo']} className={styles['logo']}
src={logo} src={logo}
alt={' '} alt={' '}
title={name}
renderFallback={renderLogoFallback} renderFallback={renderLogoFallback}
/> />
: :
@ -155,7 +156,7 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
null null
} }
{ {
typeof name === 'string' && name.length > 0 ? compact && typeof name === 'string' && name.length > 0 ?
<div className={styles['name-container']}> <div className={styles['name-container']}>
{name} {name}
</div> </div>
@ -163,7 +164,7 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
null null
} }
{ {
typeof description === 'string' && description.length > 0 ? compact && typeof description === 'string' && description.length > 0 ?
<div className={styles['description-container']}>{description}</div> <div className={styles['description-container']}>{description}</div>
: :
null null
@ -172,7 +173,8 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
Array.from(linksGroups.keys()) Array.from(linksGroups.keys())
.filter((category) => { .filter((category) => {
return category !== CONSTANTS.IMDB_LINK_CATEGORY && return category !== CONSTANTS.IMDB_LINK_CATEGORY &&
category !== CONSTANTS.SHARE_LINK_CATEGORY; category !== CONSTANTS.SHARE_LINK_CATEGORY &&
category !== CONSTANTS.WRITERS_LINK_CATEGORY;
}) })
.map((category, index) => ( .map((category, index) => (
<MetaLinks <MetaLinks

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const MetaPreviewPlaceholder = require('./MetaPreviewPlaceholder'); const MetaPreviewPlaceholder = require('./MetaPreviewPlaceholder');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
.meta-preview-placeholder-container { .meta-preview-placeholder-container {
display: flex; display: flex;

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const MetaPreview = require('./MetaPreview'); const MetaPreview = require('./MetaPreview');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';
@ -11,8 +11,9 @@
&.compact { &.compact {
.meta-info-container { .meta-info-container {
.logo, .logo-placeholder-icon { .logo, .logo-placeholder {
width: 100%; width: 100%;
height: 8rem;
background-color: @color-surface-dark5-10; background-color: @color-surface-dark5-10;
} }
@ -83,20 +84,21 @@
} }
} }
.logo, .logo-placeholder-icon { .logo, .logo-placeholder {
display: block; display: block;
max-width: 100%; max-width: 100%;
height: 8rem;
margin: 2rem 0; margin: 2rem 0;
} }
.logo { .logo {
height: 8rem;
object-fit: contain; object-fit: contain;
object-position: center; object-position: center;
} }
.logo-placeholder-icon { .logo-placeholder {
fill: @color-surface-light1-90; font-size: 1.7rem;
color: @color-surface-light5-90;
} }
.runtime-release-info-container { .runtime-release-info-container {
@ -154,7 +156,7 @@
.name-container { .name-container {
margin-top: 1rem; margin-top: 1rem;
font-size: 1.7rem; font-size: 1.5rem;
color: @color-surface-light5-90; color: @color-surface-light5-90;
} }

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const ReactIs = require('react-is'); const ReactIs = require('react-is');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const MetaRowPlaceholder = require('./MetaRowPlaceholder'); const MetaRowPlaceholder = require('./MetaRowPlaceholder');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const MetaRow = require('./MetaRow'); const MetaRow = require('./MetaRow');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const ModalDialog = require('./ModalDialog'); const ModalDialog = require('./ModalDialog');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const Multiselect = require('./Multiselect'); const Multiselect = require('./Multiselect');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const NavMenu = require('./NavMenu'); const NavMenu = require('./NavMenu');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const SearchBar = require('./SearchBar'); const SearchBar = require('./SearchBar');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const HorizontalNavBar = require('./HorizontalNavBar'); const HorizontalNavBar = require('./HorizontalNavBar');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const NavTabButton = require('./NavTabButton'); const NavTabButton = require('./NavTabButton');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const VerticalNavBar = require('./VerticalNavBar'); const VerticalNavBar = require('./VerticalNavBar');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';
@import (reference) '~stremio/common/screen-sizes.less'; @import (reference) '~stremio/common/screen-sizes.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const HorizontalNavBar = require('./HorizontalNavBar'); const HorizontalNavBar = require('./HorizontalNavBar');
const VerticalNavBar = require('./VerticalNavBar'); const VerticalNavBar = require('./VerticalNavBar');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const PaginationInput = require('./PaginationInput'); const PaginationInput = require('./PaginationInput');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const PlayIconCircleCentered = require('./PlayIconCircleCentered'); const PlayIconCircleCentered = require('./PlayIconCircleCentered');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const Popup = require('./Popup'); const Popup = require('./Popup');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const SearchBarPlaceholder = require('./SearchBarPlaceholder'); const SearchBarPlaceholder = require('./SearchBarPlaceholder');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
.search-bar-container { .search-bar-container {
display: flex; display: flex;

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const SearchBar = require('./SearchBar'); const SearchBar = require('./SearchBar');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const SharePrompt = require('./SharePrompt'); const SharePrompt = require('./SharePrompt');

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less'; @import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017-2020 Smart code 203358507 // Copyright (C) 2017-2022 Smart code 203358507
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');

Some files were not shown because too many files have changed in this diff Show more