diff --git a/.vscode/extensions.json b/.vscode/extensions.json index fb896f97..80a16c64 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -19,9 +19,6 @@ "stylelint.vscode-stylelint", - "bradlc.vscode-tailwindcss", - - // https://marketplace.visualstudio.com/items?itemName=heybourn.headwind - "heybourn.headwind" + "bradlc.vscode-tailwindcss" ] } diff --git a/package.json b/package.json index 2c03bfd6..6549a770 100644 --- a/package.json +++ b/package.json @@ -131,6 +131,7 @@ "nodemon": "^2.0.15", "postcss": "^8.4.5", "prettier": "^2.5.1", + "prettier-plugin-tailwindcss": "^0.1.3", "semantic-release": "^19.0.2", "semantic-release-docker-buildx": "^1.0.1", "tailwindcss": "^3.0.15", @@ -150,7 +151,7 @@ "prettier --write", "eslint" ], - "**/*.{json,md}": [ + "**/*.{json,md,css}": [ "prettier --write" ] }, diff --git a/src/components/Common/Alert/index.tsx b/src/components/Common/Alert/index.tsx index cddcf992..e9789c70 100644 --- a/src/components/Common/Alert/index.tsx +++ b/src/components/Common/Alert/index.tsx @@ -15,7 +15,7 @@ const Alert: React.FC = ({ title, children, type }) => { bgColor: 'bg-yellow-600', titleColor: 'text-yellow-100', textColor: 'text-yellow-300', - svg: , + svg: , }; switch (type) { @@ -24,7 +24,7 @@ const Alert: React.FC = ({ title, children, type }) => { bgColor: 'bg-indigo-600', titleColor: 'text-indigo-100', textColor: 'text-indigo-300', - svg: , + svg: , }; break; case 'error': @@ -32,13 +32,13 @@ const Alert: React.FC = ({ title, children, type }) => { bgColor: 'bg-red-600', titleColor: 'text-red-100', textColor: 'text-red-300', - svg: , + svg: , }; break; } return ( -
+
{design.svg}
@@ -48,7 +48,7 @@ const Alert: React.FC = ({ title, children, type }) => {
)} {children && ( -
+
{children}
)} diff --git a/src/components/Common/ButtonWithDropdown/index.tsx b/src/components/Common/ButtonWithDropdown/index.tsx index 944c9d8b..6edb4a11 100644 --- a/src/components/Common/ButtonWithDropdown/index.tsx +++ b/src/components/Common/ButtonWithDropdown/index.tsx @@ -32,7 +32,7 @@ const DropdownItem: React.FC = ({ } return ( {children} @@ -84,7 +84,7 @@ const ButtonWithDropdown: React.FC = ({ {children && ( - +
diff --git a/src/components/Common/Table/index.tsx b/src/components/Common/Table/index.tsx index 65b1549f..9e0cb0ca 100644 --- a/src/components/Common/Table/index.tsx +++ b/src/components/Common/Table/index.tsx @@ -3,7 +3,7 @@ import { withProperties } from '../../../utils/typeHelpers'; const TBody: React.FC = ({ children }) => { return ( - {children} + {children} ); }; diff --git a/src/components/CompanyCard/index.tsx b/src/components/CompanyCard/index.tsx index 396f6e85..b6383a77 100644 --- a/src/components/CompanyCard/index.tsx +++ b/src/components/CompanyCard/index.tsx @@ -13,10 +13,10 @@ const CompanyCard: React.FC = ({ image, url, name }) => { return ( { setHovered(true); @@ -33,10 +33,10 @@ const CompanyCard: React.FC = ({ image, url, name }) => { {name}
diff --git a/src/components/Discover/DiscoverNetwork/index.tsx b/src/components/Discover/DiscoverNetwork/index.tsx index c2e96421..247c5ece 100644 --- a/src/components/Discover/DiscoverNetwork/index.tsx +++ b/src/components/Discover/DiscoverNetwork/index.tsx @@ -47,7 +47,7 @@ const DiscoverTvNetwork: React.FC = () => {
{firstResultData?.network.logoPath ? ( -
+
{firstResultData.network.name} {
{firstResultData?.studio.logoPath ? ( -
+
{firstResultData.studio.name} = ({ return (
-
+
{downloadItem.title}
-
+
= ({ }%`, }} /> -
+
{downloadItem.size ? Math.round( diff --git a/src/components/ExternalLinkBlock/index.tsx b/src/components/ExternalLinkBlock/index.tsx index 1b1f06ed..05f8c3bc 100644 --- a/src/components/ExternalLinkBlock/index.tsx +++ b/src/components/ExternalLinkBlock/index.tsx @@ -28,11 +28,11 @@ const ExternalLinkBlock: React.FC = ({ const { locale } = useLocale(); return ( -
+
{plexUrl && ( @@ -42,7 +42,7 @@ const ExternalLinkBlock: React.FC = ({ {tmdbId && ( @@ -52,7 +52,7 @@ const ExternalLinkBlock: React.FC = ({ {tvdbId && mediaType === MediaType.TV && ( @@ -62,7 +62,7 @@ const ExternalLinkBlock: React.FC = ({ {imdbId && ( @@ -72,7 +72,7 @@ const ExternalLinkBlock: React.FC = ({ {rtUrl && ( @@ -84,7 +84,7 @@ const ExternalLinkBlock: React.FC = ({ href={`https://trakt.tv/search/tmdb/${tmdbId}?id_type=${ mediaType === 'movie' ? 'movie' : 'show' }`} - className="w-8 transition duration-300 opacity-50 hover:opacity-100" + className="w-8 opacity-50 transition duration-300 hover:opacity-100" target="_blank" rel="noreferrer" > diff --git a/src/components/GenreCard/index.tsx b/src/components/GenreCard/index.tsx index fad201a5..85d888a3 100644 --- a/src/components/GenreCard/index.tsx +++ b/src/components/GenreCard/index.tsx @@ -21,13 +21,13 @@ const GenreCard: React.FC = ({ return ( { setHovered(true); }} @@ -42,11 +42,11 @@ const GenreCard: React.FC = ({ >
-
+
{name}
@@ -57,7 +57,7 @@ const GenreCard: React.FC = ({ const GenreCardPlaceholder: React.FC = () => { return (
); }; diff --git a/src/components/IssueBlock/index.tsx b/src/components/IssueBlock/index.tsx index 31882781..3367a2c2 100644 --- a/src/components/IssueBlock/index.tsx +++ b/src/components/IssueBlock/index.tsx @@ -30,15 +30,15 @@ const IssueBlock: React.FC = ({ issue }) => { return (
-
+
- + {intl.formatMessage(issueOption.name)}
-
- +
+ = ({ issue }) => {
-
- +
+ {intl.formatDate(issue.createdAt, { year: 'numeric', @@ -64,7 +64,7 @@ const IssueBlock: React.FC = ({ issue }) => {
-
+
{values.problemSeason > 0 && ( -
+
+
{issueOptions.map((setting, index) => ( = ({ ? 'rounded-bl-md rounded-br-md' : '', checked - ? 'bg-indigo-600 border-indigo-500 z-10' + ? 'z-10 border-indigo-500 bg-indigo-600' : 'border-gray-500', - 'relative border p-4 flex cursor-pointer focus:outline-none' + 'relative flex cursor-pointer border p-4 focus:outline-none' ) } > @@ -278,16 +278,16 @@ const CreateIssueModal: React.FC = ({
+
= ({ ))}
-
+
{ leaveTo="transform opacity-0 scale-95" >
-
+
-
- +
+
+
0 ? '1.75rem' : '' }} - className="block w-full py-2 pl-10 text-white placeholder-gray-300 bg-gray-900 border border-gray-600 rounded-full bg-opacity-80 focus:bg-opacity-100 focus:border-gray-500 hover:border-gray-500 focus:outline-none focus:ring-0 focus:placeholder-gray-400 sm:text-base" + className="block w-full rounded-full border border-gray-600 bg-gray-900 bg-opacity-80 py-2 pl-10 text-white placeholder-gray-300 hover:border-gray-500 focus:border-gray-500 focus:bg-opacity-100 focus:placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-base" placeholder={intl.formatMessage(messages.searchPlaceholder)} type="search" value={searchValue} @@ -44,10 +44,10 @@ const SearchInput: React.FC = () => { /> {searchValue.length > 0 && ( )}
diff --git a/src/components/Layout/Sidebar/index.tsx b/src/components/Layout/Sidebar/index.tsx index 92495db6..45716eeb 100644 --- a/src/components/Layout/Sidebar/index.tsx +++ b/src/components/Layout/Sidebar/index.tsx @@ -42,20 +42,20 @@ const SidebarLinks: SidebarLinkProps[] = [ { href: '/', messagesKey: 'dashboard', - svgIcon: , + svgIcon: , activeRegExp: /^\/(discover\/?(movies|tv)?)?$/, }, { href: '/requests', messagesKey: 'requests', - svgIcon: , + svgIcon: , activeRegExp: /^\/requests/, }, { href: '/issues', messagesKey: 'issues', svgIcon: ( - + ), activeRegExp: /^\/issues/, requiredPermission: [ @@ -68,14 +68,14 @@ const SidebarLinks: SidebarLinkProps[] = [ { href: '/users', messagesKey: 'users', - svgIcon: , + svgIcon: , activeRegExp: /^\/users/, requiredPermission: Permission.MANAGE_USERS, }, { href: '/settings', messagesKey: 'settings', - svgIcon: , + svgIcon: , activeRegExp: /^\/settings/, requiredPermission: Permission.MANAGE_SETTINGS, }, @@ -114,28 +114,28 @@ const Sidebar: React.FC = ({ open, setClosed }) => { leaveTo="-translate-x-full" > <> -
-
+
+
-
+ -
-
+
{/* */}
@@ -194,17 +194,17 @@ const Sidebar: React.FC = ({ open, setClosed }) => {
-
-
-
-
+
+
+
+ -