Commit graph

232 commits

Author SHA1 Message Date
scampower3
fbcd543a26
Fix Same year appears in <year> - <year> format under card. 2023-10-11 01:49:41 +08:00
Bill Thornton
f1afaa975e Refactor home screen 2023-10-05 11:20:27 -04:00
Dmitriy Dubson
d77d69b570 Refactor desired aspect and posters per row functions to reduce cognitive complexity
Fixes gh-4828
2023-10-05 09:42:04 -04:00
Bill Thornton
1e3fa5418c Remove duplicate card shape functions 2023-10-01 02:54:23 -04:00
Bill Thornton
20381bd3ec Fix all loneliness 2023-09-12 23:45:36 -04:00
Bill Thornton
f35a8151e0 Add prefer optional chaining rule 2023-07-06 13:39:48 -04:00
Bill Thornton
d7d0d7305c
Merge pull request #4556 from thornbill/routes-cleanup
Cleanup routes
2023-05-04 13:02:33 -04:00
Bill Thornton
01acfeb3ac
Merge pull request #4552 from rqres/fix-codesmell-for-of
Refactor `for` loops to `for-of` loops
2023-05-03 09:52:18 -04:00
Bill Thornton
f96166657d Move remaining router components 2023-05-02 16:40:31 -04:00
Bill Thornton
8041167473 Use typescript eslint parser for all files 2023-05-02 15:51:46 -04:00
Rares Tamasanu
2b9141f4cd fix code smell: 'for loop should be for-of' 2023-04-30 19:15:14 +01:00
Daan Vankerkom
c6bcee3b26 Reduce TV card scale size
Reduced the transform scale from 10% to 7% to increase readability and reduce cognitive overload.
2023-04-24 11:47:40 -04:00
Bill Thornton
f2726653ae Fix indentation issues 2023-04-19 01:56:05 -04:00
Bill Thornton
6f3aa2f1df Fix eslint issues 2023-03-29 00:38:22 -04:00
Bill Thornton
4937f2d60c Add random int utility function 2023-03-14 01:32:36 -04:00
Bill Thornton
329cf77c81 Add eslint radix rule for parseInt 2023-03-09 00:20:11 -05:00
Pier-Luc Ducharme
cf5d65d86e
Simplify code with object shorthand syntax 2023-03-07 23:24:12 -05:00
Pier-Luc Ducharme
dc5ab265f6
Refactor cardBuilder to follow max-params rule 2023-03-07 22:50:29 -05:00
Hadi Charara
104ad71ea7 Merge branch 'master' into hadicharara/added-support-for-rtl-layouts 2022-10-12 08:29:53 -04:00
Bill Thornton
554cd1210c Fix sonarjs no-duplicated-branches 2022-10-05 12:58:48 -04:00
Bill Thornton
3417d56bf3 Fix weird ternary statements that sonar flags 2022-10-04 16:16:54 -04:00
Bill Thornton
1f4e65822b Fix sonarjs no-collapsible-if 2022-10-03 14:26:16 -04:00
Hadi Charara
a4f5803016 Fixed linting issues 2022-10-03 13:36:26 -04:00
Hadi Charara
32f103b852 Merge branch 'master' into hadicharara/added-support-for-rtl-layouts 2022-10-01 16:55:59 -04:00
Bill Thornton
3fb990fdd2 Backport pull request #3789 from jellyfin/release-10.8.z
Fix XSS in card aria labels

Original-merge: 747f7beae714a09e6b56e9557ad0a86d738b5218

Merged-by: Bill Thornton <thornbill@users.noreply.github.com>

Backported-by: Joshua Boniface <joshua@boniface.me>
2022-08-02 23:59:18 -04:00
Joshua Boniface
149e09b523 Backport pull request #3730 from jellyfin/release-10.8.z
CardBuilder: Test episode number in addition to episode name

Authored-by: SenorSmartyPants <senorsmartypants@gmail.com>

Merged-by: Bill Thornton <thornbill@users.noreply.github.com>

Original-merge: a38d0bbacc129add961d1e2a9c8b5085f49c0d39
2022-07-20 19:29:50 -04:00
Hadi Charara
d4202e0279 Replaced all inline entries with attribute bases selectors 2022-07-14 17:59:23 -04:00
Hadi Charara
db98c42956 Small css fix 2022-07-08 19:21:49 -04:00
Hadi Charara
cb234bf8ee Removed useless declarations 2022-07-05 15:28:13 -04:00
Hadi Charara
ea85b4a6d7 Added <bdi> to item titles 2022-07-03 15:05:09 -04:00
Hadi Charara
894d0d8038 fixed minor bug 2022-07-03 14:05:09 -04:00
Hadi Charara
df39a9a1ff Uses now proper toLocaleString function 2022-07-03 14:03:39 -04:00
Hadi Charara
974417ce3d use inline and block properties now 2022-07-02 22:59:40 -04:00
Hadi Charara
bac7d6467e Fixed Cards for RTL 2022-07-02 17:49:00 -04:00
Hadi Charara
0f994ccb5b Initial support for RTL layouts 2022-07-02 15:50:52 -04:00
Tobias Speicher
e0486e49c6
Replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-04-21 18:42:42 +02:00
Bill Thornton
cd24cd19b0 Fix underline in card images 2022-04-19 16:53:46 -04:00
Bill Thornton
89af1e339d
Merge pull request #3479 from davidmurdoch/fix/buttons-arent-for-links
Change buttons that act as links to anchor tags
2022-04-19 16:42:13 -04:00
Bill Thornton
7ec51f111c Merge pull request #3519 from dmitrylyzo/fix-escapehtml
Escape HTML

(cherry picked from commit ef811e699ca4473b2548badb6295256bccb82ea9)
Signed-off-by: crobibero <cody@robibe.ro>
2022-04-07 13:00:12 -04:00
David Murdoch
812abdd648
fix lint error by adding missing semicolon 2022-04-06 14:16:43 -04:00
David Murdoch
0ffff84a9e
change buttons that act as links to anchor tags
Buttons and links are different and serve different purposes. Links _go
somewhere_ while buttons _do something_.

When I click on a movie title to _go to_ the movie page the thing I
click should act like a link. If I ctrl+click or middle click it it
should still act like a link... by opening in a new tab.
2022-04-01 18:52:16 -04:00
Dmitry Lyzo
59adbc348a Escape HTML 2022-03-06 13:29:14 +03:00
Dmitry Lyzo
5d1fe2eeaf Add aria-labels for accessibility 2022-03-03 18:15:32 +03:00
Dmitry Lyzo
161ce2404b Add title to buttons 2022-03-03 17:19:27 +03:00
Dmitry Lyzo
c4f81a9bdd fix: Center card icon in Safari 10 2022-02-28 22:45:10 +03:00
Bill Thornton
4dd645bbfa Hide card padders in image loader 2022-02-28 00:10:29 -05:00
Bill Thornton
e89e92e25c Fix minor issues with card padder icons 2022-02-26 01:56:41 -05:00
Bill Thornton
bb46b32402
Merge pull request #3433 from dmitrylyzo/types-react
[TypeScript] Disable implicit any
2022-02-25 15:17:32 -05:00
Dmitry Lyzo
85e9aff281 docs: fix documentation for TypeScript 2022-02-25 19:11:07 +03:00
Dmitry Lyzo
119df2cc99 Add aria-hidden to button icons 2022-02-25 01:52:14 +03:00