-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #449 from WatchItDev/next
Next
- Loading branch information
Showing
83 changed files
with
1,503 additions
and
427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"react", | ||
"react-hooks", | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"react-hooks/exhaustive-deps": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"react/prop-types": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-namespace": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"@typescript-eslint/ban-types": "off", | ||
"react/no-unescaped-entities": "off", | ||
"no-async-promise-executor": "off", | ||
"react/no-children-prop": "off", | ||
"no-extra-boolean-cast": "off", | ||
"react/display-name": "off", | ||
"prefer-const": "off", | ||
"no-console": "off", | ||
"no-debugger": "off" | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "watchit", | ||
"author": "Watchit", | ||
"type": "module", | ||
"version": "2.2.0-beta.11", | ||
"version": "2.2.0-beta.12", | ||
"description": "Open videos everywhere", | ||
"email": "[email protected]", | ||
"private": true, | ||
|
@@ -43,6 +43,7 @@ | |
] | ||
}, | ||
"dependencies": { | ||
"@emailjs/browser": "^4.4.1", | ||
"@helia/unixfs": "^4.0.1", | ||
"@hookform/resolvers": "^3.1.1", | ||
"@iconify/react": "^4.1.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// @mui | ||
import Avatar from '@mui/material/Avatar'; | ||
import {FC} from "react"; | ||
import {dicebear} from "@src/utils/dicebear.ts"; | ||
|
||
interface AvatarProfileProps { | ||
src: string; | ||
alt?: string; | ||
sx?: any; | ||
[x: string]: any; | ||
} | ||
|
||
const AvatarProfile: FC<AvatarProfileProps> = ({ src, alt, sx, ...other }) => { | ||
|
||
//Check if src is a valid URL starting with http or https; if not, use the dicebear API to generate a random avatar | ||
if (!src.startsWith('http') && !src.startsWith('https')) { src = dicebear(src) } | ||
|
||
return ( | ||
<Avatar alt={alt ?? 'Avatar profile'} src={src} sx={sx} {...other} /> | ||
) | ||
} | ||
|
||
export default AvatarProfile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from '@src/components/avatar'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.