-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1528f5f
commit 65a2a84
Showing
37 changed files
with
726 additions
and
470 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
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,24 @@ | ||
import config, { reactConfig } from '@iobroker/eslint-config'; | ||
|
||
// disable temporary the rule 'jsdoc/require-param' and enable 'jsdoc/require-jsdoc' | ||
config.forEach(rule => { | ||
if (rule?.plugins?.jsdoc) { | ||
rule.rules['jsdoc/require-jsdoc'] = 'off'; | ||
rule.rules['jsdoc/require-param'] = 'off'; | ||
} | ||
}); | ||
|
||
export default [ | ||
...config, | ||
...reactConfig, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: { | ||
allowDefaultProject: ['*.js', '*.mjs'], | ||
}, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}, | ||
]; |
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,48 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link | ||
rel="shortcut icon" | ||
href="public/favicon.ico" | ||
/> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<meta | ||
name="theme-color" | ||
content="#000000" | ||
/> | ||
<link | ||
rel="manifest" | ||
href="public/manifest.json" | ||
/> | ||
<script> | ||
const script = document.createElement('script'); | ||
window.registerSocketOnLoad = function (cb) { | ||
window.socketLoadedHandler = cb; | ||
}; | ||
script.onload = function () { | ||
typeof window.socketLoadedHandler === 'function' && window.socketLoadedHandler(); | ||
}; | ||
setTimeout(() => { | ||
script.src = | ||
window.location.port === '3000' | ||
? window.location.protocol + '//' + window.location.hostname + ':8081/lib/js/socket.io.js' | ||
: '%PUBLIC_URL%/../../lib/js/socket.io.js'; | ||
}, 1000); | ||
|
||
document.head.appendChild(script); | ||
</script> | ||
<title>ioBroker.cameras</title> | ||
<script | ||
type="module" | ||
src="/src/index.tsx" | ||
></script> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
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,3 @@ | ||
import prettierConfig from '@iobroker/eslint-config/prettier.config.mjs'; | ||
|
||
export default prettierConfig; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
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
Oops, something went wrong.